Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/storage/storage-blob/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Fixed a bug where the `credential` property of the `StorageClient` is not set correctly when using a Token credential. Fixed bug [12219](https://github.com/Azure/azure-sdk-for-js/issues/12219).
- Blob Batch operations now reorder the subresponses in the client side to perserve the original input order. See `BlobBatchClient.submitBatch()` and [12335](https://github.com/Azure/azure-sdk-for-js/issues/12335).
- Added `isHierarchicalNamespaceEnabled` to the response of `BlobServiceClient.getAccountInfo()`.

## 12.3.0 (2020-11-10)

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sdk/storage/storage-blob/review/storage-blob.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2708,6 +2708,7 @@ export interface ServiceGetAccountInfoHeaders {
date?: Date;
// (undocumented)
errorCode?: string;
isHierarchicalNamespaceEnabled?: boolean;
requestId?: string;
skuName?: SkuName;
version?: string;
Expand Down
4 changes: 4 additions & 0 deletions sdk/storage/storage-blob/src/generated/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3506,6 +3506,10 @@ export interface ServiceGetAccountInfoHeaders {
* 'FileStorage', 'BlockBlobStorage'
*/
accountKind?: AccountKind;
/**
* Version 2019-07-07 and newer. Indicates if the account has a hierarchical namespace enabled.
*/
isHierarchicalNamespaceEnabled?: boolean;
errorCode?: string;
}

Expand Down
6 changes: 6 additions & 0 deletions sdk/storage/storage-blob/src/generated/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2506,6 +2506,12 @@ export const ServiceGetAccountInfoHeaders: coreHttp.CompositeMapper = {
]
}
},
isHierarchicalNamespaceEnabled: {
serializedName: "x-ms-is-hns-enabled",
type: {
name: "Boolean"
}
},
errorCode: {
serializedName: "x-ms-error-code",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class StorageClientContext extends coreHttp.ServiceClient {

super(undefined, options);

this.version = "2020-02-10";
this.version = '2020-02-10';
this.baseUri = "{url}";
this.requestContentType = "application/json; charset=utf-8";
this.url = url;
Expand Down
1 change: 1 addition & 0 deletions sdk/storage/storage-blob/test/blobserviceclient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ describe("BlobServiceClient", () => {
const accountInfo = await blobServiceClient.getAccountInfo();
assert.ok(accountInfo.accountKind);
assert.ok(accountInfo.skuName);
assert.deepStrictEqual(accountInfo.isHierarchicalNamespaceEnabled, false);
});

it("createContainer and deleteContainer", async () => {
Expand Down