Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
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
77 changes: 77 additions & 0 deletions lib/services/storageManagement2/lib/models/azureResource.js
Original file line number Diff line number Diff line change
@@ -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;
4 changes: 2 additions & 2 deletions lib/services/storageManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions lib/services/storageManagement2/lib/models/restriction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions lib/services/storageManagement2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"Wang, Yugang <yugangw@microsoft.com>",
"Zavery, Amar <amzavery@microsoft.com>"
],
"version": "5.1.0-preview",
"version": "5.1.1-preview",
"description": "Microsoft Azure Storage Resource Provider Management Client Library for Node",
"tags": [
"azure",
Expand All @@ -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": "https://github.com/Azure/azure-sdk-for-node",
"repository": {
Expand Down