diff --git a/sdk/storage/arm-storage/package.json b/sdk/storage/arm-storage/package.json index 45b19f56811a..08d61277e853 100644 --- a/sdk/storage/arm-storage/package.json +++ b/sdk/storage/arm-storage/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-storage", "author": "Microsoft Corporation", "description": "StorageManagementClient Library with typescript type definitions for node.js and browser.", - "version": "10.0.0", + "version": "10.1.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.0.1", "@azure/ms-rest-js": "^2.0.4", diff --git a/sdk/storage/arm-storage/src/models/index.ts b/sdk/storage/arm-storage/src/models/index.ts index d24fd49dc377..d7fac0fb0a99 100644 --- a/sdk/storage/arm-storage/src/models/index.ts +++ b/sdk/storage/arm-storage/src/models/index.ts @@ -488,6 +488,11 @@ export interface StorageAccountCreateParameters { * Account HierarchicalNamespace enabled if sets to true. */ isHnsEnabled?: boolean; + /** + * Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible + * values include: 'Disabled', 'Enabled' + */ + largeFileSharesState?: LargeFileSharesState; } /** @@ -709,6 +714,11 @@ export interface StorageAccount extends TrackedResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly failoverInProgress?: boolean; + /** + * Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible + * values include: 'Disabled', 'Enabled' + */ + largeFileSharesState?: LargeFileSharesState; } /** @@ -801,6 +811,11 @@ export interface StorageAccountUpdateParameters { * Network rule set */ networkRuleSet?: NetworkRuleSet; + /** + * Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible + * values include: 'Disabled', 'Enabled' + */ + largeFileSharesState?: LargeFileSharesState; /** * Optional. Indicates the type of storage account. Currently only StorageV2 value supported by * server. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', @@ -1876,6 +1891,12 @@ export interface StorageSkuListResult extends Array { * @extends Array */ export interface StorageAccountListResult extends Array { + /** + * Request URL that can be used to query next page of storage accounts. Returned when total + * number of requested storage accounts exceed maximum page size. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; } /** @@ -2023,6 +2044,14 @@ export type DirectoryServiceOptions = 'None' | 'AADDS'; */ export type AccessTier = 'Hot' | 'Cool'; +/** + * Defines values for LargeFileSharesState. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type LargeFileSharesState = 'Disabled' | 'Enabled'; + /** * Defines values for GeoReplicationStatus. * Possible values include: 'Live', 'Bootstrap', 'Unavailable' @@ -2428,6 +2457,26 @@ export type StorageAccountsBeginCreateResponse = StorageAccount & { }; }; +/** + * Contains response data for the listNext operation. + */ +export type StorageAccountsListNextResponse = StorageAccountListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: StorageAccountListResult; + }; +}; + /** * Contains response data for the listByLocation operation. */ diff --git a/sdk/storage/arm-storage/src/models/mappers.ts b/sdk/storage/arm-storage/src/models/mappers.ts index 8a9261198002..a3a34371333d 100644 --- a/sdk/storage/arm-storage/src/models/mappers.ts +++ b/sdk/storage/arm-storage/src/models/mappers.ts @@ -806,6 +806,12 @@ export const StorageAccountCreateParameters: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + largeFileSharesState: { + serializedName: "properties.largeFileSharesState", + type: { + name: "String" + } } } } @@ -1129,6 +1135,12 @@ export const StorageAccount: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + largeFileSharesState: { + serializedName: "properties.largeFileSharesState", + type: { + name: "String" + } } } } @@ -1284,6 +1296,12 @@ export const StorageAccountUpdateParameters: msRest.CompositeMapper = { className: "NetworkRuleSet" } }, + largeFileSharesState: { + serializedName: "properties.largeFileSharesState", + type: { + name: "String" + } + }, kind: { serializedName: "kind", type: { @@ -2785,6 +2803,13 @@ export const StorageAccountListResult: msRest.CompositeMapper = { } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } diff --git a/sdk/storage/arm-storage/src/operations/storageAccounts.ts b/sdk/storage/arm-storage/src/operations/storageAccounts.ts index 23f30a744e05..570831e340a1 100644 --- a/sdk/storage/arm-storage/src/operations/storageAccounts.ts +++ b/sdk/storage/arm-storage/src/operations/storageAccounts.ts @@ -552,6 +552,35 @@ export class StorageAccounts { beginFailoverOperationSpec, options); } + + /** + * Lists all the storage accounts available under the subscription. Note that storage keys are not + * returned; use the ListKeys operation for this. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -919,3 +948,24 @@ const beginFailoverOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.StorageAccountListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/storage/arm-storage/src/storageManagementClientContext.ts b/sdk/storage/arm-storage/src/storageManagementClientContext.ts index 495dc4f2646c..b704b6d8456c 100644 --- a/sdk/storage/arm-storage/src/storageManagementClientContext.ts +++ b/sdk/storage/arm-storage/src/storageManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-storage"; -const packageVersion = "10.0.0"; +const packageVersion = "10.1.0"; export class StorageManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials;