Skip to content
Closed
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
35 changes: 31 additions & 4 deletions sdk/storage/arm-storage/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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.
*/
Expand Down
8 changes: 8 additions & 0 deletions sdk/storage/arm-storage/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2272,6 +2272,7 @@ export const ListContainerItems: msRest.CompositeMapper = {
className: "ListContainerItems",
modelProperties: {
value: {
readOnly: true,
serializedName: "value",
type: {
name: "Sequence",
Expand All @@ -2282,6 +2283,13 @@ export const ListContainerItems: msRest.CompositeMapper = {
}
}
}
},
nextLink: {
readOnly: true,
serializedName: "nextLink",
type: {
name: "String"
}
}
}
}
Expand Down
36 changes: 36 additions & 0 deletions sdk/storage/arm-storage/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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: {
Expand All @@ -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: {
Expand Down
11 changes: 7 additions & 4 deletions sdk/storage/arm-storage/src/operations/blobContainers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class BlobContainers {
* @param [options] The optional parameters
* @returns Promise<Models.BlobContainersListResponse>
*/
list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.BlobContainersListResponse>;
list(resourceGroupName: string, accountName: string, options?: Models.BlobContainersListOptionalParams): Promise<Models.BlobContainersListResponse>;
/**
* @param resourceGroupName The name of the resource group within the user's subscription. The name
* is case insensitive.
Expand All @@ -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<Models.ListContainerItems>): void;
list(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ListContainerItems>, callback?: msRest.ServiceCallback<Models.ListContainerItems>): Promise<Models.BlobContainersListResponse> {
list(resourceGroupName: string, accountName: string, options: Models.BlobContainersListOptionalParams, callback: msRest.ServiceCallback<Models.ListContainerItems>): void;
list(resourceGroupName: string, accountName: string, options?: Models.BlobContainersListOptionalParams | msRest.ServiceCallback<Models.ListContainerItems>, callback?: msRest.ServiceCallback<Models.ListContainerItems>): Promise<Models.BlobContainersListResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
Expand Down Expand Up @@ -801,7 +801,10 @@ const listOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion
Parameters.apiVersion,
Parameters.skipToken,
Parameters.maxpagesize,
Parameters.filter
],
headerParameters: [
Parameters.acceptLanguage
Expand Down