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
2 changes: 0 additions & 2 deletions sdk/storage/arm-storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/storage/arm-storage/README.png)
6 changes: 3 additions & 3 deletions sdk/storage/arm-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/arm-storage",
"homepage": "https://github.com/azure/azure-sdk-for-js",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
"url": "https://github.com/azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
"url": "https://github.com/azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
Expand Down
53 changes: 35 additions & 18 deletions sdk/storage/arm-storage/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1430,24 +1430,6 @@ export interface ListContainerItem extends AzureEntityResource {
readonly hasImmutabilityPolicy?: boolean;
}

/**
* Response schema. Contains list of blobs returned, and if paging is requested or required, a URL
* to next page of containers.
*/
export interface ListContainerItems {
/**
* 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.**
*/
readonly nextLink?: string;
}

/**
* Specifies a CORS rule for the Blob service.
*/
Expand Down Expand Up @@ -1767,6 +1749,21 @@ export interface StorageAccountListResult extends Array<StorageAccount> {
export interface UsageListResult extends Array<Usage> {
}

/**
* @interface
* Response schema. Contains list of blobs returned, and if paging is requested or required, a URL
* to next page of containers.
* @extends Array<ListContainerItem>
*/
export interface ListContainerItems extends Array<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.**
*/
readonly nextLink?: string;
}

/**
* Defines values for ReasonCode.
* Possible values include: 'QuotaId', 'NotAvailableForSubscription'
Expand Down Expand Up @@ -2635,3 +2632,23 @@ export type BlobContainersLeaseResponse = LeaseContainerResponse & {
parsedBody: LeaseContainerResponse;
};
};

/**
* Contains response data for the listNext operation.
*/
export type BlobContainersListNextResponse = ListContainerItems & {
/**
* 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: ListContainerItems;
};
};
60 changes: 30 additions & 30 deletions sdk/storage/arm-storage/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2285,36 +2285,6 @@ export const ListContainerItem: msRest.CompositeMapper = {
}
};

export const ListContainerItems: msRest.CompositeMapper = {
serializedName: "ListContainerItems",
type: {
name: "Composite",
className: "ListContainerItems",
modelProperties: {
value: {
readOnly: true,
serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "ListContainerItem"
}
}
}
},
nextLink: {
readOnly: true,
serializedName: "nextLink",
type: {
name: "String"
}
}
}
}
};

export const CorsRule: msRest.CompositeMapper = {
serializedName: "CorsRule",
type: {
Expand Down Expand Up @@ -2697,3 +2667,33 @@ export const UsageListResult: msRest.CompositeMapper = {
}
}
};

export const ListContainerItems: msRest.CompositeMapper = {
serializedName: "ListContainerItems",
type: {
name: "Composite",
className: "ListContainerItems",
modelProperties: {
value: {
readOnly: true,
serializedName: "",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "ListContainerItem"
}
}
}
},
nextLink: {
readOnly: true,
serializedName: "nextLink",
type: {
name: "String"
}
}
}
}
};
11 changes: 11 additions & 0 deletions sdk/storage/arm-storage/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,17 @@ export const maxpagesize: msRest.OperationQueryParameter = {
}
}
};
export const nextPageLink: msRest.OperationURLParameter = {
parameterPath: "nextPageLink",
mapper: {
required: true,
serializedName: "nextLink",
type: {
name: "String"
}
},
skipEncoding: true
};
export const resourceGroupName: msRest.OperationURLParameter = {
parameterPath: "resourceGroupName",
mapper: {
Expand Down
50 changes: 50 additions & 0 deletions sdk/storage/arm-storage/src/operations/blobContainers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,35 @@ export class BlobContainers {
leaseOperationSpec,
callback) as Promise<Models.BlobContainersLeaseResponse>;
}

/**
* Lists all containers and does not support a prefix like data plane. Also SRP today does not
* return continuation token.
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param [options] The optional parameters
* @returns Promise<Models.BlobContainersListNextResponse>
*/
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.BlobContainersListNextResponse>;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
*/
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ListContainerItems>): 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<Models.ListContainerItems>): void;
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ListContainerItems>, callback?: msRest.ServiceCallback<Models.ListContainerItems>): Promise<Models.BlobContainersListNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
options
},
listNextOperationSpec,
callback) as Promise<Models.BlobContainersListNextResponse>;
}
}

// Operation Specifications
Expand Down Expand Up @@ -1215,3 +1244,24 @@ const leaseOperationSpec: 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.ListContainerItems
},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};