Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release storage 2019-04 #5277

Merged
merged 1 commit into from
Sep 27, 2019
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: 1 addition & 1 deletion sdk/storage/arm-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
49 changes: 49 additions & 0 deletions sdk/storage/arm-storage/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -1876,6 +1891,12 @@ export interface StorageSkuListResult extends Array<Sku> {
* @extends Array<StorageAccount>
*/
export interface StorageAccountListResult extends Array<StorageAccount> {
/**
* 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;
}

/**
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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.
*/
Expand Down
25 changes: 25 additions & 0 deletions sdk/storage/arm-storage/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,12 @@ export const StorageAccountCreateParameters: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
},
largeFileSharesState: {
serializedName: "properties.largeFileSharesState",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -1129,6 +1135,12 @@ export const StorageAccount: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
},
largeFileSharesState: {
serializedName: "properties.largeFileSharesState",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -1284,6 +1296,12 @@ export const StorageAccountUpdateParameters: msRest.CompositeMapper = {
className: "NetworkRuleSet"
}
},
largeFileSharesState: {
serializedName: "properties.largeFileSharesState",
type: {
name: "String"
}
},
kind: {
serializedName: "kind",
type: {
Expand Down Expand Up @@ -2785,6 +2803,13 @@ export const StorageAccountListResult: msRest.CompositeMapper = {
}
}
}
},
nextLink: {
readOnly: true,
serializedName: "nextLink",
type: {
name: "String"
}
}
}
}
Expand Down
50 changes: 50 additions & 0 deletions sdk/storage/arm-storage/src/operations/storageAccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Models.StorageAccountsListNextResponse>
*/
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.StorageAccountsListNextResponse>;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
*/
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.StorageAccountListResult>): 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.StorageAccountListResult>): void;
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.StorageAccountListResult>, callback?: msRest.ServiceCallback<Models.StorageAccountListResult>): Promise<Models.StorageAccountsListNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
options
},
listNextOperationSpec,
callback) as Promise<Models.StorageAccountsListNextResponse>;
}
}

// Operation Specifications
Expand Down Expand Up @@ -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
};
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down