diff --git a/lib/services/storageManagement2/lib/models/azureResource.js b/lib/services/storageManagement2/lib/models/azureResource.js new file mode 100644 index 0000000000..410a9f8235 --- /dev/null +++ b/lib/services/storageManagement2/lib/models/azureResource.js @@ -0,0 +1,77 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +const models = require('./index'); + +/** + * An Azure Resource Manager resource. + * + * @extends models['BaseResource'] + */ +class AzureResource extends models['BaseResource'] { + /** + * Create a AzureResource. + * @member {string} [id] Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * @member {string} [name] The name of the resource. + * @member {string} [type] The type of the resource. Ex- + * Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AzureResource + * + * @returns {object} metadata of AzureResource + * + */ + mapper() { + return { + required: false, + serializedName: 'AzureResource', + type: { + name: 'Composite', + className: 'AzureResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = AzureResource; diff --git a/lib/services/storageManagement2/lib/models/index.d.ts b/lib/services/storageManagement2/lib/models/index.d.ts index 70e282db58..2c2a3db422 100644 --- a/lib/services/storageManagement2/lib/models/index.d.ts +++ b/lib/services/storageManagement2/lib/models/index.d.ts @@ -159,9 +159,9 @@ export interface SKUCapability { * is set to location. This would be different locations where the SKU is * restricted. * @member {string} [reasonCode] The reason for the restriction. As of now this - * can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the + * can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the * SKU has requiredQuotas parameter as the subscription does not belong to that - * quota. The “NotAvailableForSubscription” is related to capacity at DC. + * quota. The "NotAvailableForSubscription" is related to capacity at DC. * Possible values include: 'QuotaId', 'NotAvailableForSubscription' */ export interface Restriction { diff --git a/lib/services/storageManagement2/lib/models/restriction.js b/lib/services/storageManagement2/lib/models/restriction.js index 425ff0dbd8..e5a54d02ec 100644 --- a/lib/services/storageManagement2/lib/models/restriction.js +++ b/lib/services/storageManagement2/lib/models/restriction.js @@ -23,9 +23,9 @@ class Restriction { * type is set to location. This would be different locations where the SKU * is restricted. * @member {string} [reasonCode] The reason for the restriction. As of now - * this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set + * this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set * when the SKU has requiredQuotas parameter as the subscription does not - * belong to that quota. The “NotAvailableForSubscription” is related to + * belong to that quota. The "NotAvailableForSubscription" is related to * capacity at DC. Possible values include: 'QuotaId', * 'NotAvailableForSubscription' */ diff --git a/lib/services/storageManagement2/lib/storageManagementClient.d.ts b/lib/services/storageManagement2/lib/storageManagementClient.d.ts index 328782dcf9..3d12a541e2 100644 --- a/lib/services/storageManagement2/lib/storageManagementClient.d.ts +++ b/lib/services/storageManagement2/lib/storageManagementClient.d.ts @@ -34,11 +34,11 @@ export default class StorageManagementClient extends AzureServiceClient { * * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy * - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. + * @param {string} [options.acceptLanguage] - The preferred language for the response. * - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30. * - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. * */ constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); diff --git a/lib/services/storageManagement2/lib/storageManagementClient.js b/lib/services/storageManagement2/lib/storageManagementClient.js index 8e4064c121..9a3fda0a16 100644 --- a/lib/services/storageManagement2/lib/storageManagementClient.js +++ b/lib/services/storageManagement2/lib/storageManagementClient.js @@ -34,9 +34,9 @@ class StorageManagementClient extends ServiceClient { * @param {object} [options.requestOptions] - Options for the underlying request object * {@link https://github.com/request/request#requestoptions-callback Options doc} * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy - * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response. - * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. - * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. + * @param {string} [options.acceptLanguage] - The preferred language for the response. + * @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30. + * @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */ constructor(credentials, subscriptionId, baseUri, options) { if (credentials === null || credentials === undefined) { diff --git a/lib/services/storageManagement2/package.json b/lib/services/storageManagement2/package.json index f69d98d2ab..8d244ae2db 100644 --- a/lib/services/storageManagement2/package.json +++ b/lib/services/storageManagement2/package.json @@ -12,7 +12,7 @@ "Wang, Yugang ", "Zavery, Amar " ], - "version": "5.1.0-preview", + "version": "5.1.1-preview", "description": "Microsoft Azure Storage Resource Provider Management Client Library for Node", "tags": [ "azure", @@ -26,8 +26,8 @@ "types": "./lib/storageManagementClient.d.ts", "license": "MIT", "dependencies": { - "ms-rest": "^2.2.2", - "ms-rest-azure": "^2.3.3" + "ms-rest": "^2.3.3", + "ms-rest-azure": "^2.5.5" }, "homepage": "http://github.com/Azure/azure-sdk-for-node", "repository": {