diff --git a/sdk/storage/arm-storage/src/models/index.ts b/sdk/storage/arm-storage/src/models/index.ts index 0b16abddf3c0..d5b82e220ec3 100644 --- a/sdk/storage/arm-storage/src/models/index.ts +++ b/sdk/storage/arm-storage/src/models/index.ts @@ -470,7 +470,8 @@ export interface StorageAccountCreateParameters { */ enableAzureFilesAadIntegration?: boolean; /** - * Allows https traffic only to storage service if sets to true. + * Allows https traffic only to storage service if sets to true. The default value is true since + * API version 2019-04-01. */ enableHttpsTrafficOnly?: boolean; /** @@ -1420,13 +1421,21 @@ export interface ListContainerItem extends AzureEntityResource { } /** - * The list of blob containers. + * Response schema. Contains list of blobs returned, and if paging is requested or required, a URL + * to next page of containers. */ export interface ListContainerItems { /** - * The list of blob containers. + * List of blobs containers returned. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: ListContainerItem[]; + /** + * Request URL that can be used to query next page of containers. Returned when total number of + * requested containers exceed maximum page size. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - value?: ListContainerItem[]; + readonly nextLink?: string; } /** @@ -1566,6 +1575,24 @@ export interface StorageAccountsGetPropertiesOptionalParams extends msRest.Reque expand?: StorageAccountExpand; } +/** + * Optional Parameters. + */ +export interface BlobContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * Optional. Continuation token for the list operation. + */ + skipToken?: string; + /** + * Optional. Specified maximum number of containers that can be included in the list. + */ + maxpagesize?: string; + /** + * Optional. When specified, only container names starting with the filter will be listed. + */ + filter?: string; +} + /** * Optional Parameters. */ diff --git a/sdk/storage/arm-storage/src/models/mappers.ts b/sdk/storage/arm-storage/src/models/mappers.ts index b5a6b08dfd98..f17e17ee233d 100644 --- a/sdk/storage/arm-storage/src/models/mappers.ts +++ b/sdk/storage/arm-storage/src/models/mappers.ts @@ -2272,6 +2272,7 @@ export const ListContainerItems: msRest.CompositeMapper = { className: "ListContainerItems", modelProperties: { value: { + readOnly: true, serializedName: "value", type: { name: "Sequence", @@ -2282,6 +2283,13 @@ export const ListContainerItems: msRest.CompositeMapper = { } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } diff --git a/sdk/storage/arm-storage/src/models/parameters.ts b/sdk/storage/arm-storage/src/models/parameters.ts index cd6e0b657091..269151541846 100644 --- a/sdk/storage/arm-storage/src/models/parameters.ts +++ b/sdk/storage/arm-storage/src/models/parameters.ts @@ -88,6 +88,18 @@ export const expand: msRest.OperationQueryParameter = { } } }; +export const filter: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; export const ifMatch0: msRest.OperationParameter = { parameterPath: [ "options", @@ -144,6 +156,18 @@ export const managementPolicyName: msRest.OperationURLParameter = { } } }; +export const maxpagesize: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "maxpagesize" + ], + mapper: { + serializedName: "$maxpagesize", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -159,6 +183,18 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const skipToken: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skipToken" + ], + mapper: { + serializedName: "$skipToken", + type: { + name: "String" + } + } +}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { diff --git a/sdk/storage/arm-storage/src/operations/blobContainers.ts b/sdk/storage/arm-storage/src/operations/blobContainers.ts index 2233dda199c1..c64edd7c61f9 100644 --- a/sdk/storage/arm-storage/src/operations/blobContainers.ts +++ b/sdk/storage/arm-storage/src/operations/blobContainers.ts @@ -37,7 +37,7 @@ export class BlobContainers { * @param [options] The optional parameters * @returns Promise */ - list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + list(resourceGroupName: string, accountName: string, options?: Models.BlobContainersListOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. @@ -56,8 +56,8 @@ export class BlobContainers { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, accountName: string, options: Models.BlobContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, accountName: string, options?: Models.BlobContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -801,7 +801,10 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion, + Parameters.skipToken, + Parameters.maxpagesize, + Parameters.filter ], headerParameters: [ Parameters.acceptLanguage