[Storage] Updated storage based newest swagger.

This commit is contained in:
Jason Yang 2017-08-31 17:43:04 +08:00
Родитель b2d50031e1
Коммит f72461e3a3
48 изменённых файлов: 1828 добавлений и 1560 удалений

Просмотреть файл

@ -11,42 +11,34 @@
'use strict';
/**
* @class
* Initializes a new instance of the AccountSasParameters class.
* @constructor
* The parameters to list SAS credentials of a storage account.
*
* @member {string} services The signed services accessible with the account
* SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f).
* Possible values include: 'b', 'q', 't', 'f'
*
* @member {string} resourceTypes The signed resource types that are accessible
* with the account SAS. Service (s): Access to service-level APIs; Container
* (c): Access to container-level APIs; Object (o): Access to object-level APIs
* for blobs, queue messages, table entities, and files. Possible values
* include: 's', 'c', 'o'
*
* @member {string} permissions The signed permissions for the account SAS.
* Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a),
* Create (c), Update (u) and Process (p). Possible values include: 'r', 'd',
* 'w', 'l', 'a', 'c', 'u', 'p'
*
* @member {string} [iPAddressOrRange] An IP address or a range of IP addresses
* from which to accept requests.
*
* @member {string} [protocols] The protocol permitted for a request made with
* the account SAS. Possible values include: 'https,http', 'https'
*
* @member {date} [sharedAccessStartTime] The time at which the SAS becomes
* valid.
*
* @member {date} sharedAccessExpiryTime The time at which the shared access
* signature becomes invalid.
*
* @member {string} [keyToSign] The key to sign the account SAS token with.
*
*/
class AccountSasParameters {
/**
* Create a AccountSasParameters.
* @member {string} services The signed services accessible with the account
* SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f).
* Possible values include: 'b', 'q', 't', 'f'
* @member {string} resourceTypes The signed resource types that are
* accessible with the account SAS. Service (s): Access to service-level
* APIs; Container (c): Access to container-level APIs; Object (o): Access to
* object-level APIs for blobs, queue messages, table entities, and files.
* Possible values include: 's', 'c', 'o'
* @member {string} permissions The signed permissions for the account SAS.
* Possible values include: Read (r), Write (w), Delete (d), List (l), Add
* (a), Create (c), Update (u) and Process (p). Possible values include: 'r',
* 'd', 'w', 'l', 'a', 'c', 'u', 'p'
* @member {string} [iPAddressOrRange] An IP address or a range of IP
* addresses from which to accept requests.
* @member {string} [protocols] The protocol permitted for a request made
* with the account SAS. Possible values include: 'https,http', 'https'
* @member {date} [sharedAccessStartTime] The time at which the SAS becomes
* valid.
* @member {date} sharedAccessExpiryTime The time at which the shared access
* signature becomes invalid.
* @member {string} [keyToSign] The key to sign the account SAS token with.
*/
constructor() {
}

Просмотреть файл

@ -11,25 +11,22 @@
'use strict';
/**
* @class
* Initializes a new instance of the CheckNameAvailabilityResult class.
* @constructor
* The CheckNameAvailability operation response.
*
* @member {boolean} [nameAvailable] Gets a boolean value that indicates
* whether the name is available for you to use. If true, the name is
* available. If false, the name has already been taken or is invalid and
* cannot be used.
*
* @member {string} [reason] Gets the reason that a storage account name could
* not be used. The Reason element is only returned if NameAvailable is false.
* Possible values include: 'AccountNameInvalid', 'AlreadyExists'
*
* @member {string} [message] Gets an error message explaining the Reason value
* in more detail.
*
*/
class CheckNameAvailabilityResult {
/**
* Create a CheckNameAvailabilityResult.
* @member {boolean} [nameAvailable] Gets a boolean value that indicates
* whether the name is available for you to use. If true, the name is
* available. If false, the name has already been taken or is invalid and
* cannot be used.
* @member {string} [reason] Gets the reason that a storage account name
* could not be used. The Reason element is only returned if NameAvailable is
* false. Possible values include: 'AccountNameInvalid', 'AlreadyExists'
* @member {string} [message] Gets an error message explaining the Reason
* value in more detail.
*/
constructor() {
}

Просмотреть файл

@ -11,20 +11,19 @@
'use strict';
/**
* @class
* Initializes a new instance of the CustomDomain class.
* @constructor
* The custom domain assigned to this storage account. This can be set via
* Update.
*
* @member {string} name Gets or sets the custom domain name assigned to the
* storage account. Name is the CNAME source.
*
* @member {boolean} [useSubDomain] Indicates whether indirect CName validation
* is enabled. Default value is false. This should only be set on updates.
*
*/
class CustomDomain {
/**
* Create a CustomDomain.
* @member {string} name Gets or sets the custom domain name assigned to the
* storage account. Name is the CNAME source.
* @member {boolean} [useSubDomain] Indicates whether indirect CName
* validation is enabled. Default value is false. This should only be set on
* updates.
*/
constructor() {
}

Просмотреть файл

@ -11,17 +11,15 @@
'use strict';
/**
* @class
* Initializes a new instance of the Dimension class.
* @constructor
* Dimensions.
*
* @member {string} [name] Display name of dimension.
*
* @member {string} [displayName] Display name of dimension.
* Dimension of blobs, possiblly be blob type or access tier.
*
*/
class Dimension {
/**
* Create a Dimension.
* @member {string} [name] Display name of dimension.
* @member {string} [displayName] Display name of dimension.
*/
constructor() {
}

Просмотреть файл

@ -13,73 +13,55 @@
const models = require('./index');
/**
* @class
* Initializes a new instance of the Encryption class.
* @constructor
* The encryption settings on the storage account.
*
* @member {object} [services] List of services which support encryption.
*
* @member {object} [services.blob] The encryption function of the blob storage
* service.
*
* @member {boolean} [services.blob.enabled] A boolean indicating whether or
* not the service encrypts the data as it is stored.
*
* @member {date} [services.blob.lastEnabledTime] Gets a rough estimate of the
* date/time when the encryption was last enabled by the user. Only returned
* when encryption is enabled. There might be some unencrypted blobs which were
* written after this time, as it is just a rough estimate.
*
* @member {object} [services.file] The encryption function of the file storage
* service.
*
* @member {boolean} [services.file.enabled] A boolean indicating whether or
* not the service encrypts the data as it is stored.
*
* @member {date} [services.file.lastEnabledTime] Gets a rough estimate of the
* date/time when the encryption was last enabled by the user. Only returned
* when encryption is enabled. There might be some unencrypted blobs which were
* written after this time, as it is just a rough estimate.
*
* @member {object} [services.table] The encryption function of the table
* storage service.
*
* @member {boolean} [services.table.enabled] A boolean indicating whether or
* not the service encrypts the data as it is stored.
*
* @member {date} [services.table.lastEnabledTime] Gets a rough estimate of the
* date/time when the encryption was last enabled by the user. Only returned
* when encryption is enabled. There might be some unencrypted blobs which were
* written after this time, as it is just a rough estimate.
*
* @member {object} [services.queue] The encryption function of the queue
* storage service.
*
* @member {boolean} [services.queue.enabled] A boolean indicating whether or
* not the service encrypts the data as it is stored.
*
* @member {date} [services.queue.lastEnabledTime] Gets a rough estimate of the
* date/time when the encryption was last enabled by the user. Only returned
* when encryption is enabled. There might be some unencrypted blobs which were
* written after this time, as it is just a rough estimate.
*
* @member {string} keySource The encryption keySource (provider). Possible
* values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Possible
* values include: 'Microsoft.Storage', 'Microsoft.Keyvault'. Default value:
* 'Microsoft.Storage' .
*
* @member {object} [keyVaultProperties] Properties provided by key vault.
*
* @member {string} [keyVaultProperties.keyName] The name of KeyVault key.
*
* @member {string} [keyVaultProperties.keyVersion] The version of KeyVault
* key.
*
* @member {string} [keyVaultProperties.keyVaultUri] The Uri of KeyVault.
*
*/
class Encryption {
/**
* Create a Encryption.
* @member {object} [services] List of services which support encryption.
* @member {object} [services.blob] The encryption function of the blob
* storage service.
* @member {boolean} [services.blob.enabled] A boolean indicating whether or
* not the service encrypts the data as it is stored.
* @member {date} [services.blob.lastEnabledTime] Gets a rough estimate of
* the date/time when the encryption was last enabled by the user. Only
* returned when encryption is enabled. There might be some unencrypted blobs
* which were written after this time, as it is just a rough estimate.
* @member {object} [services.file] The encryption function of the file
* storage service.
* @member {boolean} [services.file.enabled] A boolean indicating whether or
* not the service encrypts the data as it is stored.
* @member {date} [services.file.lastEnabledTime] Gets a rough estimate of
* the date/time when the encryption was last enabled by the user. Only
* returned when encryption is enabled. There might be some unencrypted blobs
* which were written after this time, as it is just a rough estimate.
* @member {object} [services.table] The encryption function of the table
* storage service.
* @member {boolean} [services.table.enabled] A boolean indicating whether or
* not the service encrypts the data as it is stored.
* @member {date} [services.table.lastEnabledTime] Gets a rough estimate of
* the date/time when the encryption was last enabled by the user. Only
* returned when encryption is enabled. There might be some unencrypted blobs
* which were written after this time, as it is just a rough estimate.
* @member {object} [services.queue] The encryption function of the queue
* storage service.
* @member {boolean} [services.queue.enabled] A boolean indicating whether or
* not the service encrypts the data as it is stored.
* @member {date} [services.queue.lastEnabledTime] Gets a rough estimate of
* the date/time when the encryption was last enabled by the user. Only
* returned when encryption is enabled. There might be some unencrypted blobs
* which were written after this time, as it is just a rough estimate.
* @member {string} keySource The encryption keySource (provider). Possible
* values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault.
* Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'.
* Default value: 'Microsoft.Storage' .
* @member {object} [keyVaultProperties] Properties provided by key vault.
* @member {string} [keyVaultProperties.keyName] The name of KeyVault key.
* @member {string} [keyVaultProperties.keyVersion] The version of KeyVault
* key.
* @member {string} [keyVaultProperties.keyVaultUri] The Uri of KeyVault.
*/
constructor() {
}

Просмотреть файл

@ -11,21 +11,19 @@
'use strict';
/**
* @class
* Initializes a new instance of the EncryptionService class.
* @constructor
* A service that allows server-side encryption to be used.
*
* @member {boolean} [enabled] A boolean indicating whether or not the service
* encrypts the data as it is stored.
*
* @member {date} [lastEnabledTime] Gets a rough estimate of the date/time when
* the encryption was last enabled by the user. Only returned when encryption
* is enabled. There might be some unencrypted blobs which were written after
* this time, as it is just a rough estimate.
*
*/
class EncryptionService {
/**
* Create a EncryptionService.
* @member {boolean} [enabled] A boolean indicating whether or not the
* service encrypts the data as it is stored.
* @member {date} [lastEnabledTime] Gets a rough estimate of the date/time
* when the encryption was last enabled by the user. Only returned when
* encryption is enabled. There might be some unencrypted blobs which were
* written after this time, as it is just a rough estimate.
*/
constructor() {
}

Просмотреть файл

@ -13,55 +13,45 @@
const models = require('./index');
/**
* @class
* Initializes a new instance of the EncryptionServices class.
* @constructor
* A list of services that support encryption.
*
* @member {object} [blob] The encryption function of the blob storage service.
*
* @member {boolean} [blob.enabled] A boolean indicating whether or not the
* service encrypts the data as it is stored.
*
* @member {date} [blob.lastEnabledTime] Gets a rough estimate of the date/time
* when the encryption was last enabled by the user. Only returned when
* encryption is enabled. There might be some unencrypted blobs which were
* written after this time, as it is just a rough estimate.
*
* @member {object} [file] The encryption function of the file storage service.
*
* @member {boolean} [file.enabled] A boolean indicating whether or not the
* service encrypts the data as it is stored.
*
* @member {date} [file.lastEnabledTime] Gets a rough estimate of the date/time
* when the encryption was last enabled by the user. Only returned when
* encryption is enabled. There might be some unencrypted blobs which were
* written after this time, as it is just a rough estimate.
*
* @member {object} [table] The encryption function of the table storage
* service.
*
* @member {boolean} [table.enabled] A boolean indicating whether or not the
* service encrypts the data as it is stored.
*
* @member {date} [table.lastEnabledTime] Gets a rough estimate of the
* date/time when the encryption was last enabled by the user. Only returned
* when encryption is enabled. There might be some unencrypted blobs which were
* written after this time, as it is just a rough estimate.
*
* @member {object} [queue] The encryption function of the queue storage
* service.
*
* @member {boolean} [queue.enabled] A boolean indicating whether or not the
* service encrypts the data as it is stored.
*
* @member {date} [queue.lastEnabledTime] Gets a rough estimate of the
* date/time when the encryption was last enabled by the user. Only returned
* when encryption is enabled. There might be some unencrypted blobs which were
* written after this time, as it is just a rough estimate.
*
*/
class EncryptionServices {
/**
* Create a EncryptionServices.
* @member {object} [blob] The encryption function of the blob storage
* service.
* @member {boolean} [blob.enabled] A boolean indicating whether or not the
* service encrypts the data as it is stored.
* @member {date} [blob.lastEnabledTime] Gets a rough estimate of the
* date/time when the encryption was last enabled by the user. Only returned
* when encryption is enabled. There might be some unencrypted blobs which
* were written after this time, as it is just a rough estimate.
* @member {object} [file] The encryption function of the file storage
* service.
* @member {boolean} [file.enabled] A boolean indicating whether or not the
* service encrypts the data as it is stored.
* @member {date} [file.lastEnabledTime] Gets a rough estimate of the
* date/time when the encryption was last enabled by the user. Only returned
* when encryption is enabled. There might be some unencrypted blobs which
* were written after this time, as it is just a rough estimate.
* @member {object} [table] The encryption function of the table storage
* service.
* @member {boolean} [table.enabled] A boolean indicating whether or not the
* service encrypts the data as it is stored.
* @member {date} [table.lastEnabledTime] Gets a rough estimate of the
* date/time when the encryption was last enabled by the user. Only returned
* when encryption is enabled. There might be some unencrypted blobs which
* were written after this time, as it is just a rough estimate.
* @member {object} [queue] The encryption function of the queue storage
* service.
* @member {boolean} [queue.enabled] A boolean indicating whether or not the
* service encrypts the data as it is stored.
* @member {date} [queue.lastEnabledTime] Gets a rough estimate of the
* date/time when the encryption was last enabled by the user. Only returned
* when encryption is enabled. There might be some unencrypted blobs which
* were written after this time, as it is just a rough estimate.
*/
constructor() {
}

Просмотреть файл

@ -11,22 +11,18 @@
'use strict';
/**
* @class
* Initializes a new instance of the Endpoints class.
* @constructor
* The URIs that are used to perform a retrieval of a public blob, queue, or
* table object.
*
* @member {string} [blob] Gets the blob endpoint.
*
* @member {string} [queue] Gets the queue endpoint.
*
* @member {string} [table] Gets the table endpoint.
*
* @member {string} [file] Gets the file endpoint.
*
*/
class Endpoints {
/**
* Create a Endpoints.
* @member {string} [blob] Gets the blob endpoint.
* @member {string} [queue] Gets the queue endpoint.
* @member {string} [table] Gets the table endpoint.
* @member {string} [file] Gets the file endpoint.
*/
constructor() {
}

Просмотреть файл

@ -11,19 +11,17 @@
'use strict';
/**
* @class
* Initializes a new instance of the IPRule class.
* @constructor
* IP rule with specific IP or IP range in CIDR format.
*
* @member {string} iPAddressOrRange Specifies the IP or IP range in CIDR
* format. Only IPV4 address is allowed.
*
* @member {string} [action] The action of IP ACL rule. Possible values
* include: 'Allow'. Default value: 'Allow' .
*
*/
class IPRule {
/**
* Create a IPRule.
* @member {string} iPAddressOrRange Specifies the IP or IP range in CIDR
* format. Only IPV4 address is allowed.
* @member {string} [action] The action of IP ACL rule. Possible values
* include: 'Allow'. Default value: 'Allow' .
*/
constructor() {
}

Просмотреть файл

@ -11,17 +11,15 @@
'use strict';
/**
* @class
* Initializes a new instance of the Identity class.
* @constructor
* Identity for the resource.
*
* @member {string} [principalId] The principal ID of resource identity.
*
* @member {string} [tenantId] The tenant ID of resource.
*
*/
class Identity {
/**
* Create a Identity.
* @member {string} [principalId] The principal ID of resource identity.
* @member {string} [tenantId] The tenant ID of resource.
*/
constructor() {
}

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -25,8 +25,11 @@ exports.ServiceSpecification = require('./serviceSpecification');
exports.Operation = require('./operation');
exports.OperationListResult = require('./operationListResult');
exports.StorageAccountCheckNameAvailabilityParameters = require('./storageAccountCheckNameAvailabilityParameters');
exports.CheckNameAvailabilityResult = require('./checkNameAvailabilityResult');
exports.SKUCapability = require('./sKUCapability');
exports.Restriction = require('./restriction');
exports.Sku = require('./sku');
exports.StorageSkuListResult = require('./storageSkuListResult');
exports.CheckNameAvailabilityResult = require('./checkNameAvailabilityResult');
exports.CustomDomain = require('./customDomain');
exports.EncryptionService = require('./encryptionService');
exports.EncryptionServices = require('./encryptionServices');
@ -34,7 +37,7 @@ exports.KeyVaultProperties = require('./keyVaultProperties');
exports.Encryption = require('./encryption');
exports.VirtualNetworkRule = require('./virtualNetworkRule');
exports.IPRule = require('./iPRule');
exports.StorageNetworkAcls = require('./storageNetworkAcls');
exports.NetworkRuleSet = require('./networkRuleSet');
exports.Identity = require('./identity');
exports.StorageAccountCreateParameters = require('./storageAccountCreateParameters');
exports.Endpoints = require('./endpoints');
@ -53,5 +56,6 @@ exports.ListAccountSasResponse = require('./listAccountSasResponse');
exports.ServiceSasParameters = require('./serviceSasParameters');
exports.ListServiceSasResponse = require('./listServiceSasResponse');
exports.OperationListResult = require('./operationListResult');
exports.StorageSkuListResult = require('./storageSkuListResult');
exports.StorageAccountListResult = require('./storageAccountListResult');
exports.UsageListResult = require('./usageListResult');

Просмотреть файл

@ -11,19 +11,16 @@
'use strict';
/**
* @class
* Initializes a new instance of the KeyVaultProperties class.
* @constructor
* Properties of key vault.
*
* @member {string} [keyName] The name of KeyVault key.
*
* @member {string} [keyVersion] The version of KeyVault key.
*
* @member {string} [keyVaultUri] The Uri of KeyVault.
*
*/
class KeyVaultProperties {
/**
* Create a KeyVaultProperties.
* @member {string} [keyName] The name of KeyVault key.
* @member {string} [keyVersion] The version of KeyVault key.
* @member {string} [keyVaultUri] The Uri of KeyVault.
*/
constructor() {
}

Просмотреть файл

@ -11,15 +11,15 @@
'use strict';
/**
* @class
* Initializes a new instance of the ListAccountSasResponse class.
* @constructor
* The List SAS credentials operation response.
*
* @member {string} [accountSasToken] List SAS credentials of storage account.
*
*/
class ListAccountSasResponse {
/**
* Create a ListAccountSasResponse.
* @member {string} [accountSasToken] List SAS credentials of storage
* account.
*/
constructor() {
}

Просмотреть файл

@ -11,16 +11,15 @@
'use strict';
/**
* @class
* Initializes a new instance of the ListServiceSasResponse class.
* @constructor
* The List service SAS credentials operation response.
*
* @member {string} [serviceSasToken] List service SAS credentials of speicific
* resource.
*
*/
class ListServiceSasResponse {
/**
* Create a ListServiceSasResponse.
* @member {string} [serviceSasToken] List service SAS credentials of
* speicific resource.
*/
constructor() {
}

Просмотреть файл

@ -13,34 +13,26 @@
const models = require('./index');
/**
* @class
* Initializes a new instance of the MetricSpecification class.
* @constructor
* Metric specification of operation.
*
* @member {string} [name] Name of metric specification.
*
* @member {string} [displayName] Display name of metric specification.
*
* @member {string} [displayDescription] Display description of metric
* specification.
*
* @member {string} [unit] Unit could be Bytes or Count.
*
* @member {array} [dimensions] Dimensions.
*
* @member {string} [aggregationType] Aggregation type could be Average.
*
* @member {boolean} [fillGapWithZero] The property to decide fill gap with
* zero or not.
*
* @member {string} [category] The category this metric specification belong
* to, could be Capacity.
*
* @member {string} [resourceIdDimensionNameOverride] Account Resource Id.
*
*/
class MetricSpecification {
/**
* Create a MetricSpecification.
* @member {string} [name] Name of metric specification.
* @member {string} [displayName] Display name of metric specification.
* @member {string} [displayDescription] Display description of metric
* specification.
* @member {string} [unit] Unit could be Bytes or Count.
* @member {array} [dimensions] Dimensions of blobs, including blob type and
* access tier.
* @member {string} [aggregationType] Aggregation type could be Average.
* @member {boolean} [fillGapWithZero] The property to decide fill gap with
* zero or not.
* @member {string} [category] The category this metric specification belong
* to, could be Capacity.
* @member {string} [resourceIdDimensionNameOverride] Account Resource Id.
*/
constructor() {
}

Просмотреть файл

@ -13,43 +13,39 @@
const models = require('./index');
/**
* @class
* Initializes a new instance of the StorageNetworkAcls class.
* @constructor
* Network ACL
*
* @member {string} [bypass] Specifies whether traffic is bypassed for
* Logging/Metrics/AzureServices. Possible values are any combination of
* Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to
* bypass none of those traffics. Possible values include: 'None', 'Logging',
* 'Metrics', 'AzureServices'. Default value: 'AzureServices' .
*
* @member {array} [virtualNetworkRules] Sets the virtual network ACL rules
*
* @member {array} [ipRules] Sets the IP ACL rules
*
* @member {string} defaultAction Specifies the default action of allow or deny
* when no other rules match. Possible values include: 'Allow', 'Deny'. Default
* value: 'Allow' .
* Network rule set
*
*/
class StorageNetworkAcls {
class NetworkRuleSet {
/**
* Create a NetworkRuleSet.
* @member {string} [bypass] Specifies whether traffic is bypassed for
* Logging/Metrics/AzureServices. Possible values are any combination of
* Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None
* to bypass none of those traffics. Possible values include: 'None',
* 'Logging', 'Metrics', 'AzureServices'. Default value: 'AzureServices' .
* @member {array} [virtualNetworkRules] Sets the virtual network rules
* @member {array} [ipRules] Sets the IP ACL rules
* @member {string} defaultAction Specifies the default action of allow or
* deny when no other rules match. Possible values include: 'Allow', 'Deny'.
* Default value: 'Allow' .
*/
constructor() {
}
/**
* Defines the metadata of StorageNetworkAcls
* Defines the metadata of NetworkRuleSet
*
* @returns {object} metadata of StorageNetworkAcls
* @returns {object} metadata of NetworkRuleSet
*
*/
mapper() {
return {
required: false,
serializedName: 'StorageNetworkAcls',
serializedName: 'NetworkRuleSet',
type: {
name: 'Composite',
className: 'StorageNetworkAcls',
className: 'NetworkRuleSet',
modelProperties: {
bypass: {
required: false,
@ -104,4 +100,4 @@ class StorageNetworkAcls {
}
}
module.exports = StorageNetworkAcls;
module.exports = NetworkRuleSet;

Просмотреть файл

@ -13,33 +13,25 @@
const models = require('./index');
/**
* @class
* Initializes a new instance of the Operation class.
* @constructor
* Storage REST API operation definition.
*
* @member {string} [name] Operation name: {provider}/{resource}/{operation}
*
* @member {object} [display] Display metadata associated with the operation.
*
* @member {string} [display.provider] Service provider: Microsoft Storage.
*
* @member {string} [display.resource] Resource on which the operation is
* performed etc.
*
* @member {string} [display.operation] Type of operation: get, read, delete,
* etc.
*
* @member {string} [origin] The origin of operations.
*
* @member {object} [serviceSpecification] One property of operation, include
* metric specifications.
*
* @member {array} [serviceSpecification.metricSpecifications] Metric
* specifications of operation.
*
*/
class Operation {
/**
* Create a Operation.
* @member {string} [name] Operation name: {provider}/{resource}/{operation}
* @member {object} [display] Display metadata associated with the operation.
* @member {string} [display.provider] Service provider: Microsoft Storage.
* @member {string} [display.resource] Resource on which the operation is
* performed etc.
* @member {string} [display.operation] Type of operation: get, read, delete,
* etc.
* @member {string} [origin] The origin of operations.
* @member {object} [serviceSpecification] One property of operation, include
* metric specifications.
* @member {array} [serviceSpecification.metricSpecifications] Metric
* specifications of operation.
*/
constructor() {
}

Просмотреть файл

@ -11,20 +11,17 @@
'use strict';
/**
* @class
* Initializes a new instance of the OperationDisplay class.
* @constructor
* Display metadata associated with the operation.
*
* @member {string} [provider] Service provider: Microsoft Storage.
*
* @member {string} [resource] Resource on which the operation is performed
* etc.
*
* @member {string} [operation] Type of operation: get, read, delete, etc.
*
*/
class OperationDisplay {
/**
* Create a OperationDisplay.
* @member {string} [provider] Service provider: Microsoft Storage.
* @member {string} [resource] Resource on which the operation is performed
* etc.
* @member {string} [operation] Type of operation: get, read, delete, etc.
*/
constructor() {
}

Просмотреть файл

@ -11,14 +11,13 @@
'use strict';
/**
* @class
* Initializes a new instance of the OperationListResult class.
* @constructor
* Result of the request to list Storage operations. It contains a list of
* operations and a URL link to get the next set of results.
*
*/
class OperationListResult extends Array {
/**
* Create a OperationListResult.
*/
constructor() {
super();
}

Просмотреть файл

@ -13,24 +13,20 @@
const models = require('./index');
/**
* @class
* Initializes a new instance of the Resource class.
* @constructor
* Describes a storage resource.
*
* @member {string} [id] Resource Id
*
* @member {string} [name] Resource name
*
* @member {string} [type] Resource type
*
* @member {string} [location] Resource location
*
* @member {object} [tags] Tags assigned to a resource; can be used for viewing
* and grouping a resource (across resource groups).
*
* @extends models['BaseResource']
*/
class Resource extends models['BaseResource'] {
/**
* Create a Resource.
* @member {string} [id] Resource Id
* @member {string} [name] Resource name
* @member {string} [type] Resource type
* @member {string} [location] Resource location
* @member {object} [tags] Tags assigned to a resource; can be used for
* viewing and grouping a resource (across resource groups).
*/
constructor() {
super();
}

Просмотреть файл

@ -0,0 +1,85 @@
/*
* 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';
/**
* The restriction because of which SKU cannot be used.
*
*/
class Restriction {
/**
* Create a Restriction.
* @member {string} [type] The type of restrictions. As of now only possible
* value for this is location.
* @member {array} [values] The value of restrictions. If the 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
* when the SKU has requiredQuotas parameter as the subscription does not
* belong to that quota. The NotAvailableForSubscription is related to
* capacity at DC. Possible values include: 'QuotaId',
* 'NotAvailableForSubscription'
*/
constructor() {
}
/**
* Defines the metadata of Restriction
*
* @returns {object} metadata of Restriction
*
*/
mapper() {
return {
required: false,
serializedName: 'Restriction',
type: {
name: 'Composite',
className: 'Restriction',
modelProperties: {
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
values: {
required: false,
readOnly: true,
serializedName: 'values',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
reasonCode: {
required: false,
serializedName: 'reasonCode',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = Restriction;

Просмотреть файл

@ -0,0 +1,66 @@
/*
* 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';
/**
* The capability information in the specified sku, including file encryption,
* network acls, change notification, etc.
*
*/
class SKUCapability {
/**
* Create a SKUCapability.
* @member {string} [name] The name of capability, The capability information
* in the specified sku, including file encryption, network acls, change
* notification, etc.
* @member {string} [value] A string value to indicate states of given
* capability. Possibly 'true' or 'false'.
*/
constructor() {
}
/**
* Defines the metadata of SKUCapability
*
* @returns {object} metadata of SKUCapability
*
*/
mapper() {
return {
required: false,
serializedName: 'SKUCapability',
type: {
name: 'Composite',
className: 'SKUCapability',
modelProperties: {
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
value: {
required: false,
readOnly: true,
serializedName: 'value',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = SKUCapability;

Просмотреть файл

@ -11,66 +11,48 @@
'use strict';
/**
* @class
* Initializes a new instance of the ServiceSasParameters class.
* @constructor
* The parameters to list service SAS credentials of a speicific resource.
*
* @member {string} canonicalizedResource The canonical path to the signed
* resource.
*
* @member {string} resource The signed services accessible with the service
* SAS. Possible values include: Blob (b), Container (c), File (f), Share (s).
* Possible values include: 'b', 'c', 'f', 's'
*
* @member {string} [permissions] The signed permissions for the service SAS.
* Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a),
* Create (c), Update (u) and Process (p). Possible values include: 'r', 'd',
* 'w', 'l', 'a', 'c', 'u', 'p'
*
* @member {string} [iPAddressOrRange] An IP address or a range of IP addresses
* from which to accept requests.
*
* @member {string} [protocols] The protocol permitted for a request made with
* the account SAS. Possible values include: 'https,http', 'https'
*
* @member {date} [sharedAccessStartTime] The time at which the SAS becomes
* valid.
*
* @member {date} [sharedAccessExpiryTime] The time at which the shared access
* signature becomes invalid.
*
* @member {string} [identifier] A unique value up to 64 characters in length
* that correlates to an access policy specified for the container, queue, or
* table.
*
* @member {string} [partitionKeyStart] The start of partition key.
*
* @member {string} [partitionKeyEnd] The end of partition key.
*
* @member {string} [rowKeyStart] The start of row key.
*
* @member {string} [rowKeyEnd] The end of row key.
*
* @member {string} [keyToSign] The key to sign the account SAS token with.
*
* @member {string} [cacheControl] The response header override for cache
* control.
*
* @member {string} [contentDisposition] The response header override for
* content disposition.
*
* @member {string} [contentEncoding] The response header override for content
* encoding.
*
* @member {string} [contentLanguage] The response header override for content
* language.
*
* @member {string} [contentType] The response header override for content
* type.
*
*/
class ServiceSasParameters {
/**
* Create a ServiceSasParameters.
* @member {string} canonicalizedResource The canonical path to the signed
* resource.
* @member {string} resource The signed services accessible with the service
* SAS. Possible values include: Blob (b), Container (c), File (f), Share
* (s). Possible values include: 'b', 'c', 'f', 's'
* @member {string} [permissions] The signed permissions for the service SAS.
* Possible values include: Read (r), Write (w), Delete (d), List (l), Add
* (a), Create (c), Update (u) and Process (p). Possible values include: 'r',
* 'd', 'w', 'l', 'a', 'c', 'u', 'p'
* @member {string} [iPAddressOrRange] An IP address or a range of IP
* addresses from which to accept requests.
* @member {string} [protocols] The protocol permitted for a request made
* with the account SAS. Possible values include: 'https,http', 'https'
* @member {date} [sharedAccessStartTime] The time at which the SAS becomes
* valid.
* @member {date} [sharedAccessExpiryTime] The time at which the shared
* access signature becomes invalid.
* @member {string} [identifier] A unique value up to 64 characters in length
* that correlates to an access policy specified for the container, queue, or
* table.
* @member {string} [partitionKeyStart] The start of partition key.
* @member {string} [partitionKeyEnd] The end of partition key.
* @member {string} [rowKeyStart] The start of row key.
* @member {string} [rowKeyEnd] The end of row key.
* @member {string} [keyToSign] The key to sign the account SAS token with.
* @member {string} [cacheControl] The response header override for cache
* control.
* @member {string} [contentDisposition] The response header override for
* content disposition.
* @member {string} [contentEncoding] The response header override for
* content encoding.
* @member {string} [contentLanguage] The response header override for
* content language.
* @member {string} [contentType] The response header override for content
* type.
*/
constructor() {
}

Просмотреть файл

@ -13,15 +13,14 @@
const models = require('./index');
/**
* @class
* Initializes a new instance of the ServiceSpecification class.
* @constructor
* One property of operation, include metric specifications.
*
* @member {array} [metricSpecifications] Metric specifications of operation.
*
*/
class ServiceSpecification {
/**
* Create a ServiceSpecification.
* @member {array} [metricSpecifications] Metric specifications of operation.
*/
constructor() {
}

Просмотреть файл

@ -10,22 +10,33 @@
'use strict';
const models = require('./index');
/**
* @class
* Initializes a new instance of the Sku class.
* @constructor
* The SKU of the storage account.
*
* @member {string} name Gets or sets the sku name. Required for account
* creation; optional for update. Note that in older versions, sku name was
* called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS',
* 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @member {string} [tier] Gets the sku tier. This is based on the SKU name.
* Possible values include: 'Standard', 'Premium'
*
*/
class Sku {
/**
* Create a Sku.
* @member {string} name Gets or sets the sku name. Required for account
* creation; optional for update. Note that in older versions, sku name was
* called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
* @member {string} [tier] Gets the sku tier. This is based on the SKU name.
* Possible values include: 'Standard', 'Premium'
* @member {string} [resourceType] The type of the resource, usually it is
* 'storageAccounts'.
* @member {string} [kind] Indicates the type of storage account. Possible
* values include: 'Storage', 'BlobStorage'
* @member {array} [locations] The set of locations that the SKU is
* available. This will be supported and registered Azure Geo Regions (e.g.
* West US, East US, Southeast Asia, etc.).
* @member {array} [capabilities] The capability information in the specified
* sku, including file encryption, network acls, change notification, etc.
* @member {array} [restrictions] The restrictions because of which SKU
* cannot be used. This is empty if there are no restrictions.
*/
constructor() {
}
@ -59,6 +70,69 @@ class Sku {
name: 'Enum',
allowedValues: [ 'Standard', 'Premium' ]
}
},
resourceType: {
required: false,
readOnly: true,
serializedName: 'resourceType',
type: {
name: 'String'
}
},
kind: {
required: false,
readOnly: true,
serializedName: 'kind',
type: {
name: 'Enum',
allowedValues: [ 'Storage', 'BlobStorage' ]
}
},
locations: {
required: false,
readOnly: true,
serializedName: 'locations',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
capabilities: {
required: false,
readOnly: true,
serializedName: 'capabilities',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'SKUCapabilityElementType',
type: {
name: 'Composite',
className: 'SKUCapability'
}
}
}
},
restrictions: {
required: false,
serializedName: 'restrictions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'RestrictionElementType',
type: {
name: 'Composite',
className: 'Restriction'
}
}
}
}
}
}

Просмотреть файл

@ -13,187 +13,152 @@
const models = require('./index');
/**
* @class
* Initializes a new instance of the StorageAccount class.
* @constructor
* The storage account.
*
* @member {object} [sku] Gets the SKU.
*
* @member {string} [sku.name] Gets or sets the sku name. Required for account
* creation; optional for update. Note that in older versions, sku name was
* called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS',
* 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @member {string} [sku.tier] Gets the sku tier. This is based on the SKU
* name. Possible values include: 'Standard', 'Premium'
*
* @member {string} [kind] Gets the Kind. Possible values include: 'Storage',
* 'BlobStorage'
*
* @member {object} [identity] The identity of the resource.
*
* @member {string} [identity.principalId] The principal ID of resource
* identity.
*
* @member {string} [identity.tenantId] The tenant ID of resource.
*
* @member {string} [provisioningState] Gets the status of the storage account
* at the time the operation was called. Possible values include: 'Creating',
* 'ResolvingDNS', 'Succeeded'
*
* @member {object} [primaryEndpoints] Gets the URLs that are used to perform a
* retrieval of a public blob, queue, or table object. Note that Standard_ZRS
* and Premium_LRS accounts only return the blob endpoint.
*
* @member {string} [primaryEndpoints.blob] Gets the blob endpoint.
*
* @member {string} [primaryEndpoints.queue] Gets the queue endpoint.
*
* @member {string} [primaryEndpoints.table] Gets the table endpoint.
*
* @member {string} [primaryEndpoints.file] Gets the file endpoint.
*
* @member {string} [primaryLocation] Gets the location of the primary data
* center for the storage account.
*
* @member {string} [statusOfPrimary] Gets the status indicating whether the
* primary location of the storage account is available or unavailable.
* Possible values include: 'available', 'unavailable'
*
* @member {date} [lastGeoFailoverTime] Gets the timestamp of the most recent
* instance of a failover to the secondary location. Only the most recent
* timestamp is retained. This element is not returned if there has never been
* a failover instance. Only available if the accountType is Standard_GRS or
* Standard_RAGRS.
*
* @member {string} [secondaryLocation] Gets the location of the geo-replicated
* secondary for the storage account. Only available if the accountType is
* Standard_GRS or Standard_RAGRS.
*
* @member {string} [statusOfSecondary] Gets the status indicating whether the
* secondary location of the storage account is available or unavailable. Only
* available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values
* include: 'available', 'unavailable'
*
* @member {date} [creationTime] Gets the creation date and time of the storage
* account in UTC.
*
* @member {object} [customDomain] Gets the custom domain the user assigned to
* this storage account.
*
* @member {string} [customDomain.name] Gets or sets the custom domain name
* assigned to the storage account. Name is the CNAME source.
*
* @member {boolean} [customDomain.useSubDomain] Indicates whether indirect
* CName validation is enabled. Default value is false. This should only be set
* on updates.
*
* @member {object} [secondaryEndpoints] Gets the URLs that are used to perform
* a retrieval of a public blob, queue, or table object from the secondary
* location of the storage account. Only available if the SKU name is
* Standard_RAGRS.
*
* @member {string} [secondaryEndpoints.blob] Gets the blob endpoint.
*
* @member {string} [secondaryEndpoints.queue] Gets the queue endpoint.
*
* @member {string} [secondaryEndpoints.table] Gets the table endpoint.
*
* @member {string} [secondaryEndpoints.file] Gets the file endpoint.
*
* @member {object} [encryption] Gets the encryption settings on the account.
* If unspecified, the account is unencrypted.
*
* @member {object} [encryption.services] List of services which support
* encryption.
*
* @member {object} [encryption.services.blob] The encryption function of the
* blob storage service.
*
* @member {boolean} [encryption.services.blob.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
*
* @member {date} [encryption.services.blob.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the user.
* Only returned when encryption is enabled. There might be some unencrypted
* blobs which were written after this time, as it is just a rough estimate.
*
* @member {object} [encryption.services.file] The encryption function of the
* file storage service.
*
* @member {boolean} [encryption.services.file.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
*
* @member {date} [encryption.services.file.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the user.
* Only returned when encryption is enabled. There might be some unencrypted
* blobs which were written after this time, as it is just a rough estimate.
*
* @member {object} [encryption.services.table] The encryption function of the
* table storage service.
*
* @member {boolean} [encryption.services.table.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
*
* @member {date} [encryption.services.table.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the user.
* Only returned when encryption is enabled. There might be some unencrypted
* blobs which were written after this time, as it is just a rough estimate.
*
* @member {object} [encryption.services.queue] The encryption function of the
* queue storage service.
*
* @member {boolean} [encryption.services.queue.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
*
* @member {date} [encryption.services.queue.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the user.
* Only returned when encryption is enabled. There might be some unencrypted
* blobs which were written after this time, as it is just a rough estimate.
*
* @member {string} [encryption.keySource] The encryption keySource (provider).
* Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault.
* Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'
*
* @member {object} [encryption.keyVaultProperties] Properties provided by key
* vault.
*
* @member {string} [encryption.keyVaultProperties.keyName] The name of
* KeyVault key.
*
* @member {string} [encryption.keyVaultProperties.keyVersion] The version of
* KeyVault key.
*
* @member {string} [encryption.keyVaultProperties.keyVaultUri] The Uri of
* KeyVault.
*
* @member {string} [accessTier] Required for storage accounts where kind =
* BlobStorage. The access tier used for billing. Possible values include:
* 'Hot', 'Cool'
*
* @member {boolean} [enableHttpsTrafficOnly] Allows https traffic only to
* storage service if sets to true. Default value: false .
*
* @member {object} [networkAcls] Network ACL
*
* @member {string} [networkAcls.bypass] Specifies whether traffic is bypassed
* for Logging/Metrics/AzureServices. Possible values are any combination of
* Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to
* bypass none of those traffics. Possible values include: 'None', 'Logging',
* 'Metrics', 'AzureServices'
*
* @member {array} [networkAcls.virtualNetworkRules] Sets the virtual network
* ACL rules
*
* @member {array} [networkAcls.ipRules] Sets the IP ACL rules
*
* @member {string} [networkAcls.defaultAction] Specifies the default action of
* allow or deny when no other rules match. Possible values include: 'Allow',
* 'Deny'
*
* @extends models['Resource']
*/
class StorageAccount extends models['Resource'] {
/**
* Create a StorageAccount.
* @member {object} [sku] Gets the SKU.
* @member {string} [sku.name] Gets or sets the sku name. Required for
* account creation; optional for update. Note that in older versions, sku
* name was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
* @member {string} [sku.tier] Gets the sku tier. This is based on the SKU
* name. Possible values include: 'Standard', 'Premium'
* @member {string} [sku.resourceType] The type of the resource, usually it
* is 'storageAccounts'.
* @member {string} [sku.kind] Indicates the type of storage account.
* Possible values include: 'Storage', 'BlobStorage'
* @member {array} [sku.locations] The set of locations that the SKU is
* available. This will be supported and registered Azure Geo Regions (e.g.
* West US, East US, Southeast Asia, etc.).
* @member {array} [sku.capabilities] The capability information in the
* specified sku, including file encryption, network acls, change
* notification, etc.
* @member {array} [sku.restrictions] The restrictions because of which SKU
* cannot be used. This is empty if there are no restrictions.
* @member {string} [kind] Gets the Kind. Possible values include: 'Storage',
* 'BlobStorage'
* @member {object} [identity] The identity of the resource.
* @member {string} [identity.principalId] The principal ID of resource
* identity.
* @member {string} [identity.tenantId] The tenant ID of resource.
* @member {string} [provisioningState] Gets the status of the storage
* account at the time the operation was called. Possible values include:
* 'Creating', 'ResolvingDNS', 'Succeeded'
* @member {object} [primaryEndpoints] Gets the URLs that are used to perform
* a retrieval of a public blob, queue, or table object. Note that
* Standard_ZRS and Premium_LRS accounts only return the blob endpoint.
* @member {string} [primaryEndpoints.blob] Gets the blob endpoint.
* @member {string} [primaryEndpoints.queue] Gets the queue endpoint.
* @member {string} [primaryEndpoints.table] Gets the table endpoint.
* @member {string} [primaryEndpoints.file] Gets the file endpoint.
* @member {string} [primaryLocation] Gets the location of the primary data
* center for the storage account.
* @member {string} [statusOfPrimary] Gets the status indicating whether the
* primary location of the storage account is available or unavailable.
* Possible values include: 'available', 'unavailable'
* @member {date} [lastGeoFailoverTime] Gets the timestamp of the most recent
* instance of a failover to the secondary location. Only the most recent
* timestamp is retained. This element is not returned if there has never
* been a failover instance. Only available if the accountType is
* Standard_GRS or Standard_RAGRS.
* @member {string} [secondaryLocation] Gets the location of the
* geo-replicated secondary for the storage account. Only available if the
* accountType is Standard_GRS or Standard_RAGRS.
* @member {string} [statusOfSecondary] Gets the status indicating whether
* the secondary location of the storage account is available or unavailable.
* Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible
* values include: 'available', 'unavailable'
* @member {date} [creationTime] Gets the creation date and time of the
* storage account in UTC.
* @member {object} [customDomain] Gets the custom domain the user assigned
* to this storage account.
* @member {string} [customDomain.name] Gets or sets the custom domain name
* assigned to the storage account. Name is the CNAME source.
* @member {boolean} [customDomain.useSubDomain] Indicates whether indirect
* CName validation is enabled. Default value is false. This should only be
* set on updates.
* @member {object} [secondaryEndpoints] Gets the URLs that are used to
* perform a retrieval of a public blob, queue, or table object from the
* secondary location of the storage account. Only available if the SKU name
* is Standard_RAGRS.
* @member {string} [secondaryEndpoints.blob] Gets the blob endpoint.
* @member {string} [secondaryEndpoints.queue] Gets the queue endpoint.
* @member {string} [secondaryEndpoints.table] Gets the table endpoint.
* @member {string} [secondaryEndpoints.file] Gets the file endpoint.
* @member {object} [encryption] Gets the encryption settings on the account.
* If unspecified, the account is unencrypted.
* @member {object} [encryption.services] List of services which support
* encryption.
* @member {object} [encryption.services.blob] The encryption function of the
* blob storage service.
* @member {boolean} [encryption.services.blob.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
* @member {date} [encryption.services.blob.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the
* user. Only returned when encryption is enabled. There might be some
* unencrypted blobs which were written after this time, as it is just a
* rough estimate.
* @member {object} [encryption.services.file] The encryption function of the
* file storage service.
* @member {boolean} [encryption.services.file.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
* @member {date} [encryption.services.file.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the
* user. Only returned when encryption is enabled. There might be some
* unencrypted blobs which were written after this time, as it is just a
* rough estimate.
* @member {object} [encryption.services.table] The encryption function of
* the table storage service.
* @member {boolean} [encryption.services.table.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
* @member {date} [encryption.services.table.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the
* user. Only returned when encryption is enabled. There might be some
* unencrypted blobs which were written after this time, as it is just a
* rough estimate.
* @member {object} [encryption.services.queue] The encryption function of
* the queue storage service.
* @member {boolean} [encryption.services.queue.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
* @member {date} [encryption.services.queue.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the
* user. Only returned when encryption is enabled. There might be some
* unencrypted blobs which were written after this time, as it is just a
* rough estimate.
* @member {string} [encryption.keySource] The encryption keySource
* (provider). Possible values (case-insensitive): Microsoft.Storage,
* Microsoft.Keyvault. Possible values include: 'Microsoft.Storage',
* 'Microsoft.Keyvault'
* @member {object} [encryption.keyVaultProperties] Properties provided by
* key vault.
* @member {string} [encryption.keyVaultProperties.keyName] The name of
* KeyVault key.
* @member {string} [encryption.keyVaultProperties.keyVersion] The version of
* KeyVault key.
* @member {string} [encryption.keyVaultProperties.keyVaultUri] The Uri of
* KeyVault.
* @member {string} [accessTier] Required for storage accounts where kind =
* BlobStorage. The access tier used for billing. Possible values include:
* 'Hot', 'Cool'
* @member {boolean} [enableHttpsTrafficOnly] Allows https traffic only to
* storage service if sets to true. Default value: false .
* @member {object} [networkRuleSet] Network rule set
* @member {string} [networkRuleSet.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
* @member {array} [networkRuleSet.virtualNetworkRules] Sets the virtual
* network rules
* @member {array} [networkRuleSet.ipRules] Sets the IP ACL rules
* @member {string} [networkRuleSet.defaultAction] Specifies the default
* action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*/
constructor() {
super();
}
@ -395,13 +360,13 @@ class StorageAccount extends models['Resource'] {
name: 'Boolean'
}
},
networkAcls: {
networkRuleSet: {
required: false,
readOnly: true,
serializedName: 'properties.networkAcls',
type: {
name: 'Composite',
className: 'StorageNetworkAcls'
className: 'NetworkRuleSet'
}
}
}

Просмотреть файл

@ -11,15 +11,14 @@
'use strict';
/**
* @class
* Initializes a new instance of the StorageAccountCheckNameAvailabilityParameters class.
* @constructor
* The parameters used to check the availabity of the storage account name.
*
* @member {string} name The storage account name.
*
*/
class StorageAccountCheckNameAvailabilityParameters {
/**
* Create a StorageAccountCheckNameAvailabilityParameters.
* @member {string} name The storage account name.
*/
constructor() {
}

Просмотреть файл

@ -13,148 +13,128 @@
const models = require('./index');
/**
* @class
* Initializes a new instance of the StorageAccountCreateParameters class.
* @constructor
* The parameters used when creating a storage account.
*
* @member {object} sku Required. Gets or sets the sku name.
*
* @member {string} [sku.name] Gets or sets the sku name. Required for account
* creation; optional for update. Note that in older versions, sku name was
* called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS',
* 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @member {string} [sku.tier] Gets the sku tier. This is based on the SKU
* name. Possible values include: 'Standard', 'Premium'
*
* @member {string} kind Required. Indicates the type of storage account.
* Possible values include: 'Storage', 'BlobStorage'
*
* @member {string} location Required. Gets or sets the location of the
* resource. This will be one of the supported and registered Azure Geo Regions
* (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource
* cannot be changed once it is created, but if an identical geo region is
* specified on update, the request will succeed.
*
* @member {object} [tags] Gets or sets a list of key value pairs that describe
* the resource. These tags can be used for viewing and grouping this resource
* (across resource groups). A maximum of 15 tags can be provided for a
* resource. Each tag must have a key with a length no greater than 128
* characters and a value with a length no greater than 256 characters.
*
* @member {object} [identity] The identity of the resource.
*
* @member {string} [identity.principalId] The principal ID of resource
* identity.
*
* @member {string} [identity.tenantId] The tenant ID of resource.
*
* @member {object} [customDomain] User domain assigned to the storage account.
* Name is the CNAME source. Only one custom domain is supported per storage
* account at this time. To clear the existing custom domain, use an empty
* string for the custom domain name property.
*
* @member {string} [customDomain.name] Gets or sets the custom domain name
* assigned to the storage account. Name is the CNAME source.
*
* @member {boolean} [customDomain.useSubDomain] Indicates whether indirect
* CName validation is enabled. Default value is false. This should only be set
* on updates.
*
* @member {object} [encryption] Provides the encryption settings on the
* account. If left unspecified the account encryption settings will remain the
* same. The default setting is unencrypted.
*
* @member {object} [encryption.services] List of services which support
* encryption.
*
* @member {object} [encryption.services.blob] The encryption function of the
* blob storage service.
*
* @member {boolean} [encryption.services.blob.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
*
* @member {date} [encryption.services.blob.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the user.
* Only returned when encryption is enabled. There might be some unencrypted
* blobs which were written after this time, as it is just a rough estimate.
*
* @member {object} [encryption.services.file] The encryption function of the
* file storage service.
*
* @member {boolean} [encryption.services.file.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
*
* @member {date} [encryption.services.file.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the user.
* Only returned when encryption is enabled. There might be some unencrypted
* blobs which were written after this time, as it is just a rough estimate.
*
* @member {object} [encryption.services.table] The encryption function of the
* table storage service.
*
* @member {boolean} [encryption.services.table.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
*
* @member {date} [encryption.services.table.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the user.
* Only returned when encryption is enabled. There might be some unencrypted
* blobs which were written after this time, as it is just a rough estimate.
*
* @member {object} [encryption.services.queue] The encryption function of the
* queue storage service.
*
* @member {boolean} [encryption.services.queue.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
*
* @member {date} [encryption.services.queue.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the user.
* Only returned when encryption is enabled. There might be some unencrypted
* blobs which were written after this time, as it is just a rough estimate.
*
* @member {string} [encryption.keySource] The encryption keySource (provider).
* Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault.
* Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'
*
* @member {object} [encryption.keyVaultProperties] Properties provided by key
* vault.
*
* @member {string} [encryption.keyVaultProperties.keyName] The name of
* KeyVault key.
*
* @member {string} [encryption.keyVaultProperties.keyVersion] The version of
* KeyVault key.
*
* @member {string} [encryption.keyVaultProperties.keyVaultUri] The Uri of
* KeyVault.
*
* @member {object} [networkAcls] Network ACL
*
* @member {string} [networkAcls.bypass] Specifies whether traffic is bypassed
* for Logging/Metrics/AzureServices. Possible values are any combination of
* Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to
* bypass none of those traffics. Possible values include: 'None', 'Logging',
* 'Metrics', 'AzureServices'
*
* @member {array} [networkAcls.virtualNetworkRules] Sets the virtual network
* ACL rules
*
* @member {array} [networkAcls.ipRules] Sets the IP ACL rules
*
* @member {string} [networkAcls.defaultAction] Specifies the default action of
* allow or deny when no other rules match. Possible values include: 'Allow',
* 'Deny'
*
* @member {string} [accessTier] Required for storage accounts where kind =
* BlobStorage. The access tier used for billing. Possible values include:
* 'Hot', 'Cool'
*
* @member {boolean} [enableHttpsTrafficOnly] Allows https traffic only to
* storage service if sets to true. Default value: false .
*
*/
class StorageAccountCreateParameters {
/**
* Create a StorageAccountCreateParameters.
* @member {object} sku Required. Gets or sets the sku name.
* @member {string} [sku.name] Gets or sets the sku name. Required for
* account creation; optional for update. Note that in older versions, sku
* name was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
* @member {string} [sku.tier] Gets the sku tier. This is based on the SKU
* name. Possible values include: 'Standard', 'Premium'
* @member {string} [sku.resourceType] The type of the resource, usually it
* is 'storageAccounts'.
* @member {string} [sku.kind] Indicates the type of storage account.
* Possible values include: 'Storage', 'BlobStorage'
* @member {array} [sku.locations] The set of locations that the SKU is
* available. This will be supported and registered Azure Geo Regions (e.g.
* West US, East US, Southeast Asia, etc.).
* @member {array} [sku.capabilities] The capability information in the
* specified sku, including file encryption, network acls, change
* notification, etc.
* @member {array} [sku.restrictions] The restrictions because of which SKU
* cannot be used. This is empty if there are no restrictions.
* @member {string} kind Required. Indicates the type of storage account.
* Possible values include: 'Storage', 'BlobStorage'
* @member {string} location Required. Gets or sets the location of the
* resource. This will be one of the supported and registered Azure Geo
* Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a
* resource cannot be changed once it is created, but if an identical geo
* region is specified on update, the request will succeed.
* @member {object} [tags] Gets or sets a list of key value pairs that
* describe the resource. These tags can be used for viewing and grouping
* this resource (across resource groups). A maximum of 15 tags can be
* provided for a resource. Each tag must have a key with a length no greater
* than 128 characters and a value with a length no greater than 256
* characters.
* @member {object} [identity] The identity of the resource.
* @member {string} [identity.principalId] The principal ID of resource
* identity.
* @member {string} [identity.tenantId] The tenant ID of resource.
* @member {object} [customDomain] User domain assigned to the storage
* account. Name is the CNAME source. Only one custom domain is supported per
* storage account at this time. To clear the existing custom domain, use an
* empty string for the custom domain name property.
* @member {string} [customDomain.name] Gets or sets the custom domain name
* assigned to the storage account. Name is the CNAME source.
* @member {boolean} [customDomain.useSubDomain] Indicates whether indirect
* CName validation is enabled. Default value is false. This should only be
* set on updates.
* @member {object} [encryption] Provides the encryption settings on the
* account. If left unspecified the account encryption settings will remain
* the same. The default setting is unencrypted.
* @member {object} [encryption.services] List of services which support
* encryption.
* @member {object} [encryption.services.blob] The encryption function of the
* blob storage service.
* @member {boolean} [encryption.services.blob.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
* @member {date} [encryption.services.blob.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the
* user. Only returned when encryption is enabled. There might be some
* unencrypted blobs which were written after this time, as it is just a
* rough estimate.
* @member {object} [encryption.services.file] The encryption function of the
* file storage service.
* @member {boolean} [encryption.services.file.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
* @member {date} [encryption.services.file.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the
* user. Only returned when encryption is enabled. There might be some
* unencrypted blobs which were written after this time, as it is just a
* rough estimate.
* @member {object} [encryption.services.table] The encryption function of
* the table storage service.
* @member {boolean} [encryption.services.table.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
* @member {date} [encryption.services.table.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the
* user. Only returned when encryption is enabled. There might be some
* unencrypted blobs which were written after this time, as it is just a
* rough estimate.
* @member {object} [encryption.services.queue] The encryption function of
* the queue storage service.
* @member {boolean} [encryption.services.queue.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
* @member {date} [encryption.services.queue.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the
* user. Only returned when encryption is enabled. There might be some
* unencrypted blobs which were written after this time, as it is just a
* rough estimate.
* @member {string} [encryption.keySource] The encryption keySource
* (provider). Possible values (case-insensitive): Microsoft.Storage,
* Microsoft.Keyvault. Possible values include: 'Microsoft.Storage',
* 'Microsoft.Keyvault'
* @member {object} [encryption.keyVaultProperties] Properties provided by
* key vault.
* @member {string} [encryption.keyVaultProperties.keyName] The name of
* KeyVault key.
* @member {string} [encryption.keyVaultProperties.keyVersion] The version of
* KeyVault key.
* @member {string} [encryption.keyVaultProperties.keyVaultUri] The Uri of
* KeyVault.
* @member {object} [networkRuleSet] Network rule set
* @member {string} [networkRuleSet.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
* @member {array} [networkRuleSet.virtualNetworkRules] Sets the virtual
* network rules
* @member {array} [networkRuleSet.ipRules] Sets the IP ACL rules
* @member {string} [networkRuleSet.defaultAction] Specifies the default
* action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
* @member {string} [accessTier] Required for storage accounts where kind =
* BlobStorage. The access tier used for billing. Possible values include:
* 'Hot', 'Cool'
* @member {boolean} [enableHttpsTrafficOnly] Allows https traffic only to
* storage service if sets to true. Default value: false .
*/
constructor() {
}
@ -233,12 +213,12 @@ class StorageAccountCreateParameters {
className: 'Encryption'
}
},
networkAcls: {
networkRuleSet: {
required: false,
serializedName: 'properties.networkAcls',
type: {
name: 'Composite',
className: 'StorageNetworkAcls'
className: 'NetworkRuleSet'
}
},
accessTier: {

Просмотреть файл

@ -11,20 +11,17 @@
'use strict';
/**
* @class
* Initializes a new instance of the StorageAccountKey class.
* @constructor
* An access key for the storage account.
*
* @member {string} [keyName] Name of the key.
*
* @member {string} [value] Base 64-encoded value of the key.
*
* @member {string} [permissions] Permissions for the key -- read-only or full
* permissions. Possible values include: 'Read', 'Full'
*
*/
class StorageAccountKey {
/**
* Create a StorageAccountKey.
* @member {string} [keyName] Name of the key.
* @member {string} [value] Base 64-encoded value of the key.
* @member {string} [permissions] Permissions for the key -- read-only or
* full permissions. Possible values include: 'Read', 'Full'
*/
constructor() {
}

Просмотреть файл

@ -13,16 +13,15 @@
const models = require('./index');
/**
* @class
* Initializes a new instance of the StorageAccountListKeysResult class.
* @constructor
* The response from the ListKeys operation.
*
* @member {array} [keys] Gets the list of storage account keys and their
* properties for the specified storage account.
*
*/
class StorageAccountListKeysResult {
/**
* Create a StorageAccountListKeysResult.
* @member {array} [keys] Gets the list of storage account keys and their
* properties for the specified storage account.
*/
constructor() {
}

Просмотреть файл

@ -11,13 +11,12 @@
'use strict';
/**
* @class
* Initializes a new instance of the StorageAccountListResult class.
* @constructor
* The response from the List Storage Accounts operation.
*
*/
class StorageAccountListResult extends Array {
/**
* Create a StorageAccountListResult.
*/
constructor() {
super();
}

Просмотреть файл

@ -11,16 +11,15 @@
'use strict';
/**
* @class
* Initializes a new instance of the StorageAccountRegenerateKeyParameters class.
* @constructor
* The parameters used to regenerate the storage account key.
*
* @member {string} keyName The name of storage keys that want to be
* regenerated, possible vaules are key1, key2.
*
*/
class StorageAccountRegenerateKeyParameters {
/**
* Create a StorageAccountRegenerateKeyParameters.
* @member {string} keyName The name of storage keys that want to be
* regenerated, possible vaules are key1, key2.
*/
constructor() {
}

Просмотреть файл

@ -13,141 +13,122 @@
const models = require('./index');
/**
* @class
* Initializes a new instance of the StorageAccountUpdateParameters class.
* @constructor
* The parameters that can be provided when updating the storage account
* properties.
*
* @member {object} [sku] Gets or sets the SKU name. Note that the SKU name
* cannot be updated to Standard_ZRS or Premium_LRS, nor can accounts of those
* sku names be updated to any other value.
*
* @member {string} [sku.name] Gets or sets the sku name. Required for account
* creation; optional for update. Note that in older versions, sku name was
* called accountType. Possible values include: 'Standard_LRS', 'Standard_GRS',
* 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @member {string} [sku.tier] Gets the sku tier. This is based on the SKU
* name. Possible values include: 'Standard', 'Premium'
*
* @member {object} [tags] Gets or sets a list of key value pairs that describe
* the resource. These tags can be used in viewing and grouping this resource
* (across resource groups). A maximum of 15 tags can be provided for a
* resource. Each tag must have a key no greater in length than 128 characters
* and a value no greater in length than 256 characters.
*
* @member {object} [identity] The identity of the resource.
*
* @member {string} [identity.principalId] The principal ID of resource
* identity.
*
* @member {string} [identity.tenantId] The tenant ID of resource.
*
* @member {object} [customDomain] Custom domain assigned to the storage
* account by the user. Name is the CNAME source. Only one custom domain is
* supported per storage account at this time. To clear the existing custom
* domain, use an empty string for the custom domain name property.
*
* @member {string} [customDomain.name] Gets or sets the custom domain name
* assigned to the storage account. Name is the CNAME source.
*
* @member {boolean} [customDomain.useSubDomain] Indicates whether indirect
* CName validation is enabled. Default value is false. This should only be set
* on updates.
*
* @member {object} [encryption] Provides the encryption settings on the
* account. The default setting is unencrypted.
*
* @member {object} [encryption.services] List of services which support
* encryption.
*
* @member {object} [encryption.services.blob] The encryption function of the
* blob storage service.
*
* @member {boolean} [encryption.services.blob.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
*
* @member {date} [encryption.services.blob.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the user.
* Only returned when encryption is enabled. There might be some unencrypted
* blobs which were written after this time, as it is just a rough estimate.
*
* @member {object} [encryption.services.file] The encryption function of the
* file storage service.
*
* @member {boolean} [encryption.services.file.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
*
* @member {date} [encryption.services.file.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the user.
* Only returned when encryption is enabled. There might be some unencrypted
* blobs which were written after this time, as it is just a rough estimate.
*
* @member {object} [encryption.services.table] The encryption function of the
* table storage service.
*
* @member {boolean} [encryption.services.table.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
*
* @member {date} [encryption.services.table.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the user.
* Only returned when encryption is enabled. There might be some unencrypted
* blobs which were written after this time, as it is just a rough estimate.
*
* @member {object} [encryption.services.queue] The encryption function of the
* queue storage service.
*
* @member {boolean} [encryption.services.queue.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
*
* @member {date} [encryption.services.queue.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the user.
* Only returned when encryption is enabled. There might be some unencrypted
* blobs which were written after this time, as it is just a rough estimate.
*
* @member {string} [encryption.keySource] The encryption keySource (provider).
* Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault.
* Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'
*
* @member {object} [encryption.keyVaultProperties] Properties provided by key
* vault.
*
* @member {string} [encryption.keyVaultProperties.keyName] The name of
* KeyVault key.
*
* @member {string} [encryption.keyVaultProperties.keyVersion] The version of
* KeyVault key.
*
* @member {string} [encryption.keyVaultProperties.keyVaultUri] The Uri of
* KeyVault.
*
* @member {string} [accessTier] Required for storage accounts where kind =
* BlobStorage. The access tier used for billing. Possible values include:
* 'Hot', 'Cool'
*
* @member {boolean} [enableHttpsTrafficOnly] Allows https traffic only to
* storage service if sets to true. Default value: false .
*
* @member {object} [networkAcls] Network ACL
*
* @member {string} [networkAcls.bypass] Specifies whether traffic is bypassed
* for Logging/Metrics/AzureServices. Possible values are any combination of
* Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to
* bypass none of those traffics. Possible values include: 'None', 'Logging',
* 'Metrics', 'AzureServices'
*
* @member {array} [networkAcls.virtualNetworkRules] Sets the virtual network
* ACL rules
*
* @member {array} [networkAcls.ipRules] Sets the IP ACL rules
*
* @member {string} [networkAcls.defaultAction] Specifies the default action of
* allow or deny when no other rules match. Possible values include: 'Allow',
* 'Deny'
*
*/
class StorageAccountUpdateParameters {
/**
* Create a StorageAccountUpdateParameters.
* @member {object} [sku] Gets or sets the SKU name. Note that the SKU name
* cannot be updated to Standard_ZRS or Premium_LRS, nor can accounts of
* those sku names be updated to any other value.
* @member {string} [sku.name] Gets or sets the sku name. Required for
* account creation; optional for update. Note that in older versions, sku
* name was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
* @member {string} [sku.tier] Gets the sku tier. This is based on the SKU
* name. Possible values include: 'Standard', 'Premium'
* @member {string} [sku.resourceType] The type of the resource, usually it
* is 'storageAccounts'.
* @member {string} [sku.kind] Indicates the type of storage account.
* Possible values include: 'Storage', 'BlobStorage'
* @member {array} [sku.locations] The set of locations that the SKU is
* available. This will be supported and registered Azure Geo Regions (e.g.
* West US, East US, Southeast Asia, etc.).
* @member {array} [sku.capabilities] The capability information in the
* specified sku, including file encryption, network acls, change
* notification, etc.
* @member {array} [sku.restrictions] The restrictions because of which SKU
* cannot be used. This is empty if there are no restrictions.
* @member {object} [tags] Gets or sets a list of key value pairs that
* describe the resource. These tags can be used in viewing and grouping this
* resource (across resource groups). A maximum of 15 tags can be provided
* for a resource. Each tag must have a key no greater in length than 128
* characters and a value no greater in length than 256 characters.
* @member {object} [identity] The identity of the resource.
* @member {string} [identity.principalId] The principal ID of resource
* identity.
* @member {string} [identity.tenantId] The tenant ID of resource.
* @member {object} [customDomain] Custom domain assigned to the storage
* account by the user. Name is the CNAME source. Only one custom domain is
* supported per storage account at this time. To clear the existing custom
* domain, use an empty string for the custom domain name property.
* @member {string} [customDomain.name] Gets or sets the custom domain name
* assigned to the storage account. Name is the CNAME source.
* @member {boolean} [customDomain.useSubDomain] Indicates whether indirect
* CName validation is enabled. Default value is false. This should only be
* set on updates.
* @member {object} [encryption] Provides the encryption settings on the
* account. The default setting is unencrypted.
* @member {object} [encryption.services] List of services which support
* encryption.
* @member {object} [encryption.services.blob] The encryption function of the
* blob storage service.
* @member {boolean} [encryption.services.blob.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
* @member {date} [encryption.services.blob.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the
* user. Only returned when encryption is enabled. There might be some
* unencrypted blobs which were written after this time, as it is just a
* rough estimate.
* @member {object} [encryption.services.file] The encryption function of the
* file storage service.
* @member {boolean} [encryption.services.file.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
* @member {date} [encryption.services.file.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the
* user. Only returned when encryption is enabled. There might be some
* unencrypted blobs which were written after this time, as it is just a
* rough estimate.
* @member {object} [encryption.services.table] The encryption function of
* the table storage service.
* @member {boolean} [encryption.services.table.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
* @member {date} [encryption.services.table.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the
* user. Only returned when encryption is enabled. There might be some
* unencrypted blobs which were written after this time, as it is just a
* rough estimate.
* @member {object} [encryption.services.queue] The encryption function of
* the queue storage service.
* @member {boolean} [encryption.services.queue.enabled] A boolean indicating
* whether or not the service encrypts the data as it is stored.
* @member {date} [encryption.services.queue.lastEnabledTime] Gets a rough
* estimate of the date/time when the encryption was last enabled by the
* user. Only returned when encryption is enabled. There might be some
* unencrypted blobs which were written after this time, as it is just a
* rough estimate.
* @member {string} [encryption.keySource] The encryption keySource
* (provider). Possible values (case-insensitive): Microsoft.Storage,
* Microsoft.Keyvault. Possible values include: 'Microsoft.Storage',
* 'Microsoft.Keyvault'
* @member {object} [encryption.keyVaultProperties] Properties provided by
* key vault.
* @member {string} [encryption.keyVaultProperties.keyName] The name of
* KeyVault key.
* @member {string} [encryption.keyVaultProperties.keyVersion] The version of
* KeyVault key.
* @member {string} [encryption.keyVaultProperties.keyVaultUri] The Uri of
* KeyVault.
* @member {string} [accessTier] Required for storage accounts where kind =
* BlobStorage. The access tier used for billing. Possible values include:
* 'Hot', 'Cool'
* @member {boolean} [enableHttpsTrafficOnly] Allows https traffic only to
* storage service if sets to true. Default value: false .
* @member {object} [networkRuleSet] Network rule set
* @member {string} [networkRuleSet.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
* @member {array} [networkRuleSet.virtualNetworkRules] Sets the virtual
* network rules
* @member {array} [networkRuleSet.ipRules] Sets the IP ACL rules
* @member {string} [networkRuleSet.defaultAction] Specifies the default
* action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*/
constructor() {
}
@ -227,12 +208,12 @@ class StorageAccountUpdateParameters {
name: 'Boolean'
}
},
networkAcls: {
networkRuleSet: {
required: false,
serializedName: 'properties.networkAcls',
type: {
name: 'Composite',
className: 'StorageNetworkAcls'
className: 'NetworkRuleSet'
}
}
}

Просмотреть файл

@ -0,0 +1,60 @@
/*
* 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';
/**
* The response from the List Storage SKUs operation.
*/
class StorageSkuListResult extends Array {
/**
* Create a StorageSkuListResult.
*/
constructor() {
super();
}
/**
* Defines the metadata of StorageSkuListResult
*
* @returns {object} metadata of StorageSkuListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'StorageSkuListResult',
type: {
name: 'Composite',
className: 'StorageSkuListResult',
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'SkuElementType',
type: {
name: 'Composite',
className: 'Sku'
}
}
}
}
}
}
};
}
}
module.exports = StorageSkuListResult;

Просмотреть файл

@ -13,30 +13,24 @@
const models = require('./index');
/**
* @class
* Initializes a new instance of the Usage class.
* @constructor
* Describes Storage Resource Usage.
*
* @member {string} [unit] Gets the unit of measurement. Possible values
* include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond',
* 'BytesPerSecond'
*
* @member {number} [currentValue] Gets the current count of the allocated
* resources in the subscription.
*
* @member {number} [limit] Gets the maximum count of the resources that can be
* allocated in the subscription.
*
* @member {object} [name] Gets the name of the type of usage.
*
* @member {string} [name.value] Gets a string describing the resource name.
*
* @member {string} [name.localizedValue] Gets a localized string describing
* the resource name.
*
*/
class Usage {
/**
* Create a Usage.
* @member {string} [unit] Gets the unit of measurement. Possible values
* include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond',
* 'BytesPerSecond'
* @member {number} [currentValue] Gets the current count of the allocated
* resources in the subscription.
* @member {number} [limit] Gets the maximum count of the resources that can
* be allocated in the subscription.
* @member {object} [name] Gets the name of the type of usage.
* @member {string} [name.value] Gets a string describing the resource name.
* @member {string} [name.localizedValue] Gets a localized string describing
* the resource name.
*/
constructor() {
}

Просмотреть файл

@ -11,13 +11,12 @@
'use strict';
/**
* @class
* Initializes a new instance of the UsageListResult class.
* @constructor
* The response from the List Usages operation.
*
*/
class UsageListResult extends Array {
/**
* Create a UsageListResult.
*/
constructor() {
super();
}

Просмотреть файл

@ -11,18 +11,16 @@
'use strict';
/**
* @class
* Initializes a new instance of the UsageName class.
* @constructor
* The usage names that can be used; currently limited to StorageAccount.
*
* @member {string} [value] Gets a string describing the resource name.
*
* @member {string} [localizedValue] Gets a localized string describing the
* resource name.
*
*/
class UsageName {
/**
* Create a UsageName.
* @member {string} [value] Gets a string describing the resource name.
* @member {string} [localizedValue] Gets a localized string describing the
* resource name.
*/
constructor() {
}

Просмотреть файл

@ -11,23 +11,21 @@
'use strict';
/**
* @class
* Initializes a new instance of the VirtualNetworkRule class.
* @constructor
* Virtual Network rule.
*
* @member {string} virtualNetworkResourceId A URL of vnet, subnet, classicVnet
* or classicSubnet.
*
* @member {string} [action] The action of virtual network ACL rule. Possible
* values include: 'Allow'. Default value: 'Allow' .
*
* @member {string} [state] Gets the state of virtual network ACL rule.
* Possible values include: 'provisioning', 'deprovisioning', 'succeeded',
* 'failed', 'networkSourceDeleted'
*
*/
class VirtualNetworkRule {
/**
* Create a VirtualNetworkRule.
* @member {string} virtualNetworkResourceId Resource ID of a subnet, for
* example:
* /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
* @member {string} [action] The action of virtual network rule. Possible
* values include: 'Allow'. Default value: 'Allow' .
* @member {string} [state] Gets the state of virtual network rule. Possible
* values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed',
* 'networkSourceDeleted'
*/
constructor() {
}

Просмотреть файл

@ -72,6 +72,68 @@ export interface Operations {
list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.OperationListResult>): void;
}
/**
* @class
* SKUs
* __NOTE__: An instance of this class is automatically created for an
* instance of the StorageManagementClient.
*/
export interface SKUs {
/**
* Lists the available SKUs supported by Microsoft.Storage for given
* subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<StorageSkuListResult>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.StorageSkuListResult>>;
/**
* Lists the available SKUs supported by Microsoft.Storage for given
* subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {StorageSkuListResult} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {StorageSkuListResult} [result] - The deserialized result object if an error did not occur.
* See {@link StorageSkuListResult} for more information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.StorageSkuListResult>;
list(callback: ServiceCallback<models.StorageSkuListResult>): void;
list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.StorageSkuListResult>): void;
}
/**
* @class
* StorageAccounts
@ -84,11 +146,7 @@ export interface StorageAccounts {
/**
* Checks that the storage account name is valid and is not already in use.
*
* @param {object} accountName The name of the storage account within the
* specified resource group. Storage account names must be between 3 and 24
* characters in length and use numbers and lower-case letters only.
*
* @param {string} accountName.name The storage account name.
* @param {string} name The storage account name.
*
* @param {object} [options] Optional Parameters.
*
@ -101,16 +159,12 @@ export interface StorageAccounts {
*
* @reject {Error|ServiceError} - The error object.
*/
checkNameAvailabilityWithHttpOperationResponse(accountName: models.StorageAccountCheckNameAvailabilityParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.CheckNameAvailabilityResult>>;
checkNameAvailabilityWithHttpOperationResponse(name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.CheckNameAvailabilityResult>>;
/**
* Checks that the storage account name is valid and is not already in use.
*
* @param {object} accountName The name of the storage account within the
* specified resource group. Storage account names must be between 3 and 24
* characters in length and use numbers and lower-case letters only.
*
* @param {string} accountName.name The storage account name.
* @param {string} name The storage account name.
*
* @param {object} [options] Optional Parameters.
*
@ -140,9 +194,9 @@ export interface StorageAccounts {
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
checkNameAvailability(accountName: models.StorageAccountCheckNameAvailabilityParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.CheckNameAvailabilityResult>;
checkNameAvailability(accountName: models.StorageAccountCheckNameAvailabilityParameters, callback: ServiceCallback<models.CheckNameAvailabilityResult>): void;
checkNameAvailability(accountName: models.StorageAccountCheckNameAvailabilityParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.CheckNameAvailabilityResult>): void;
checkNameAvailability(name: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.CheckNameAvailabilityResult>;
checkNameAvailability(name: string, callback: ServiceCallback<models.CheckNameAvailabilityResult>): void;
checkNameAvailability(name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.CheckNameAvailabilityResult>): void;
/**
@ -169,6 +223,9 @@ export interface StorageAccounts {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {string} parameters.kind Required. Indicates the type of storage
* account. Possible values include: 'Storage', 'BlobStorage'
*
@ -231,22 +288,22 @@ export interface StorageAccounts {
* @param {string} [parameters.encryption.keyVaultProperties.keyVaultUri] The
* Uri of KeyVault.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {string} [parameters.accessTier] Required for storage accounts where
* kind = BlobStorage. The access tier used for billing. Possible values
@ -292,6 +349,9 @@ export interface StorageAccounts {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {string} parameters.kind Required. Indicates the type of storage
* account. Possible values include: 'Storage', 'BlobStorage'
*
@ -354,22 +414,22 @@ export interface StorageAccounts {
* @param {string} [parameters.encryption.keyVaultProperties.keyVaultUri] The
* Uri of KeyVault.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {string} [parameters.accessTier] Required for storage accounts where
* kind = BlobStorage. The access tier used for billing. Possible values
@ -573,6 +633,9 @@ export interface StorageAccounts {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {object} [parameters.tags] Gets or sets a list of key value pairs
* that describe the resource. These tags can be used in viewing and grouping
* this resource (across resource groups). A maximum of 15 tags can be provided
@ -632,22 +695,22 @@ export interface StorageAccounts {
* @param {boolean} [parameters.enableHttpsTrafficOnly] Allows https traffic
* only to storage service if sets to true.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {object} [options] Optional Parameters.
*
@ -692,6 +755,9 @@ export interface StorageAccounts {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {object} [parameters.tags] Gets or sets a list of key value pairs
* that describe the resource. These tags can be used in viewing and grouping
* this resource (across resource groups). A maximum of 15 tags can be provided
@ -751,22 +817,22 @@ export interface StorageAccounts {
* @param {boolean} [parameters.enableHttpsTrafficOnly] Allows https traffic
* only to storage service if sets to true.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {object} [options] Optional Parameters.
*
@ -992,11 +1058,8 @@ export interface StorageAccounts {
* specified resource group. Storage account names must be between 3 and 24
* characters in length and use numbers and lower-case letters only.
*
* @param {object} regenerateKeyParameter Specifies name of the key which
* should be regenerated -- key1 or key2.
*
* @param {string} regenerateKeyParameter.keyName The name of storage keys that
* want to be regenerated, possible vaules are key1, key2.
* @param {string} keyName The name of storage keys that want to be
* regenerated, possible vaules are key1, key2.
*
* @param {object} [options] Optional Parameters.
*
@ -1009,7 +1072,7 @@ export interface StorageAccounts {
*
* @reject {Error|ServiceError} - The error object.
*/
regenerateKeyWithHttpOperationResponse(resourceGroupName: string, accountName: string, regenerateKeyParameter: models.StorageAccountRegenerateKeyParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.StorageAccountListKeysResult>>;
regenerateKeyWithHttpOperationResponse(resourceGroupName: string, accountName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.StorageAccountListKeysResult>>;
/**
* Regenerates one of the access keys for the specified storage account.
@ -1021,11 +1084,8 @@ export interface StorageAccounts {
* specified resource group. Storage account names must be between 3 and 24
* characters in length and use numbers and lower-case letters only.
*
* @param {object} regenerateKeyParameter Specifies name of the key which
* should be regenerated -- key1 or key2.
*
* @param {string} regenerateKeyParameter.keyName The name of storage keys that
* want to be regenerated, possible vaules are key1, key2.
* @param {string} keyName The name of storage keys that want to be
* regenerated, possible vaules are key1, key2.
*
* @param {object} [options] Optional Parameters.
*
@ -1055,9 +1115,9 @@ export interface StorageAccounts {
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
regenerateKey(resourceGroupName: string, accountName: string, regenerateKeyParameter: models.StorageAccountRegenerateKeyParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.StorageAccountListKeysResult>;
regenerateKey(resourceGroupName: string, accountName: string, regenerateKeyParameter: models.StorageAccountRegenerateKeyParameters, callback: ServiceCallback<models.StorageAccountListKeysResult>): void;
regenerateKey(resourceGroupName: string, accountName: string, regenerateKeyParameter: models.StorageAccountRegenerateKeyParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.StorageAccountListKeysResult>): void;
regenerateKey(resourceGroupName: string, accountName: string, keyName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.StorageAccountListKeysResult>;
regenerateKey(resourceGroupName: string, accountName: string, keyName: string, callback: ServiceCallback<models.StorageAccountListKeysResult>): void;
regenerateKey(resourceGroupName: string, accountName: string, keyName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.StorageAccountListKeysResult>): void;
/**
@ -1396,6 +1456,9 @@ export interface StorageAccounts {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {string} parameters.kind Required. Indicates the type of storage
* account. Possible values include: 'Storage', 'BlobStorage'
*
@ -1458,22 +1521,22 @@ export interface StorageAccounts {
* @param {string} [parameters.encryption.keyVaultProperties.keyVaultUri] The
* Uri of KeyVault.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {string} [parameters.accessTier] Required for storage accounts where
* kind = BlobStorage. The access tier used for billing. Possible values
@ -1519,6 +1582,9 @@ export interface StorageAccounts {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {string} parameters.kind Required. Indicates the type of storage
* account. Possible values include: 'Storage', 'BlobStorage'
*
@ -1581,22 +1647,22 @@ export interface StorageAccounts {
* @param {string} [parameters.encryption.keyVaultProperties.keyVaultUri] The
* Uri of KeyVault.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {string} [parameters.accessTier] Required for storage accounts where
* kind = BlobStorage. The access tier used for billing. Possible values

Просмотреть файл

@ -15,5 +15,6 @@
'use strict';
exports.Operations = require('./operations');
exports.SKUs = require('./sKUs');
exports.StorageAccounts = require('./storageAccounts');
exports.UsageOperations = require('./usageOperations');

Просмотреть файл

@ -69,9 +69,10 @@ function _list(options, callback) {
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -85,7 +86,6 @@ function _list(options, callback) {
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, (err, response, responseBody) => {
@ -143,17 +143,12 @@ function _list(options, callback) {
});
}
/**
* @class
* Operations
* __NOTE__: An instance of this class is automatically created for an
* instance of the StorageManagementClient.
* Initializes a new instance of the Operations class.
* @constructor
*
* @param {StorageManagementClient} client Reference to the service client.
*/
/** Class representing a Operations. */
class Operations {
/**
* Create a Operations.
* @param {StorageManagementClient} client Reference to the service client.
*/
constructor(client) {
this.client = client;
this._list = _list;

Просмотреть файл

@ -0,0 +1,244 @@
/*
* 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 msRest = require('ms-rest');
const msRestAzure = require('ms-rest-azure');
const WebResource = msRest.WebResource;
/**
* Lists the available SKUs supported by Microsoft.Storage for given
* subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {function} callback - The callback.
*
* @returns {function} callback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
* See {@link StorageSkuListResult} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
function _list(options, callback) {
/* jshint validthis: true */
let client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
options = null;
}
if (!callback) {
throw new Error('callback cannot be null.');
}
// Validate
try {
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
}
if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.client.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
// Construct URL
let baseUrl = this.client.baseUri;
let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus';
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
let queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
httpRequest.headers['accept-language'] = this.client.acceptLanguage;
}
if(options) {
for(let headerName in options['customHeaders']) {
if (options['customHeaders'].hasOwnProperty(headerName)) {
httpRequest.headers[headerName] = options['customHeaders'][headerName];
}
}
}
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, (err, response, responseBody) => {
if (err) {
return callback(err);
}
let statusCode = response.statusCode;
if (statusCode !== 200) {
let error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
error.response = msRest.stripResponse(response);
if (responseBody === '') responseBody = null;
let parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
let resultMapper = new client.models['CloudError']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` +
`- "${responseBody}" for the default response.`;
return callback(error);
}
return callback(error);
}
// Create Result
let result = null;
if (responseBody === '') responseBody = null;
// Deserialize Response
if (statusCode === 200) {
let parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
let resultMapper = new client.models['StorageSkuListResult']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`);
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
}
return callback(null, result, httpRequest, response);
});
}
/** Class representing a SKUs. */
class SKUs {
/**
* Create a SKUs.
* @param {StorageManagementClient} client Reference to the service client.
*/
constructor(client) {
this.client = client;
this._list = _list;
}
/**
* Lists the available SKUs supported by Microsoft.Storage for given
* subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<StorageSkuListResult>} - The deserialized result object.
*
* @reject {Error} - The error object.
*/
listWithHttpOperationResponse(options) {
let client = this.client;
let self = this;
return new Promise((resolve, reject) => {
self._list(options, (err, result, request, response) => {
let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
httpOperationResponse.body = result;
if (err) { reject(err); }
else { resolve(httpOperationResponse); }
return;
});
});
}
/**
* Lists the available SKUs supported by Microsoft.Storage for given
* subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {function} [optionalCallback] - The optional callback.
*
* @returns {function|Promise} If a callback was passed as the last parameter
* then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned
*
* @resolve {StorageSkuListResult} - The deserialized result object.
*
* @reject {Error} - The error object.
*
* {function} optionalCallback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
* See {@link StorageSkuListResult} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
list(options, optionalCallback) {
let client = this.client;
let self = this;
if (!optionalCallback && typeof options === 'function') {
optionalCallback = options;
options = null;
}
if (!optionalCallback) {
return new Promise((resolve, reject) => {
self._list(options, (err, result, request, response) => {
if (err) { reject(err); }
else { resolve(result); }
return;
});
});
} else {
return self._list(options, optionalCallback);
}
}
}
module.exports = SKUs;

Просмотреть файл

@ -17,11 +17,7 @@ const WebResource = msRest.WebResource;
/**
* Checks that the storage account name is valid and is not already in use.
*
* @param {object} accountName The name of the storage account within the
* specified resource group. Storage account names must be between 3 and 24
* characters in length and use numbers and lower-case letters only.
*
* @param {string} accountName.name The storage account name.
* @param {string} name The storage account name.
*
* @param {object} [options] Optional Parameters.
*
@ -42,7 +38,7 @@ const WebResource = msRest.WebResource;
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
function _checkNameAvailability(accountName, options, callback) {
function _checkNameAvailability(name, options, callback) {
/* jshint validthis: true */
let client = this.client;
if(!callback && typeof options === 'function') {
@ -52,27 +48,32 @@ function _checkNameAvailability(accountName, options, callback) {
if (!callback) {
throw new Error('callback cannot be null.');
}
if (accountName === null || accountName === undefined)
{
accountName = {};
}
// Validate
try {
if (accountName === null || accountName === undefined) {
throw new Error('accountName cannot be null or undefined.');
}
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
}
if (name === null || name === undefined || typeof name.valueOf() !== 'string') {
throw new Error('name cannot be null or undefined and it must be of type string.');
}
if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.client.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
let accountName = new client.models['StorageAccountCheckNameAvailabilityParameters']();
try {
if (name !== null && name !== undefined)
{
accountName.name = name;
}
} catch (error) {
return callback(error);
}
// Construct URL
let baseUrl = this.client.baseUri;
@ -87,9 +88,10 @@ function _checkNameAvailability(accountName, options, callback) {
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'POST';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -103,7 +105,6 @@ function _checkNameAvailability(accountName, options, callback) {
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
// Serialize Request
let requestContent = null;
let requestModel = null;
@ -200,6 +201,9 @@ function _checkNameAvailability(accountName, options, callback) {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {string} parameters.kind Required. Indicates the type of storage
* account. Possible values include: 'Storage', 'BlobStorage'
*
@ -262,22 +266,22 @@ function _checkNameAvailability(accountName, options, callback) {
* @param {string} [parameters.encryption.keyVaultProperties.keyVaultUri] The
* Uri of KeyVault.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {string} [parameters.accessTier] Required for storage accounts where
* kind = BlobStorage. The access tier used for billing. Possible values
@ -453,9 +457,10 @@ function _deleteMethod(resourceGroupName, accountName, options, callback) {
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'DELETE';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -469,7 +474,6 @@ function _deleteMethod(resourceGroupName, accountName, options, callback) {
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, (err, response, responseBody) => {
@ -610,9 +614,10 @@ function _getProperties(resourceGroupName, accountName, options, callback) {
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -626,7 +631,6 @@ function _getProperties(resourceGroupName, accountName, options, callback) {
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, (err, response, responseBody) => {
@ -714,6 +718,9 @@ function _getProperties(resourceGroupName, accountName, options, callback) {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {object} [parameters.tags] Gets or sets a list of key value pairs
* that describe the resource. These tags can be used in viewing and grouping
* this resource (across resource groups). A maximum of 15 tags can be provided
@ -773,22 +780,22 @@ function _getProperties(resourceGroupName, accountName, options, callback) {
* @param {boolean} [parameters.enableHttpsTrafficOnly] Allows https traffic
* only to storage service if sets to true.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {object} [options] Optional Parameters.
*
@ -885,9 +892,10 @@ function _update(resourceGroupName, accountName, parameters, options, callback)
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'PATCH';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -901,7 +909,6 @@ function _update(resourceGroupName, accountName, parameters, options, callback)
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
// Serialize Request
let requestContent = null;
let requestModel = null;
@ -1034,9 +1041,10 @@ function _list(options, callback) {
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -1050,7 +1058,6 @@ function _list(options, callback) {
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, (err, response, responseBody) => {
@ -1191,9 +1198,10 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -1207,7 +1215,6 @@ function _listByResourceGroup(resourceGroupName, options, callback) {
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, (err, response, responseBody) => {
@ -1364,9 +1371,10 @@ function _listKeys(resourceGroupName, accountName, options, callback) {
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'POST';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -1380,7 +1388,6 @@ function _listKeys(resourceGroupName, accountName, options, callback) {
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, (err, response, responseBody) => {
@ -1448,11 +1455,8 @@ function _listKeys(resourceGroupName, accountName, options, callback) {
* specified resource group. Storage account names must be between 3 and 24
* characters in length and use numbers and lower-case letters only.
*
* @param {object} regenerateKeyParameter Specifies name of the key which
* should be regenerated -- key1 or key2.
*
* @param {string} regenerateKeyParameter.keyName The name of storage keys that
* want to be regenerated, possible vaules are key1, key2.
* @param {string} keyName The name of storage keys that want to be
* regenerated, possible vaules are key1, key2.
*
* @param {object} [options] Optional Parameters.
*
@ -1473,7 +1477,7 @@ function _listKeys(resourceGroupName, accountName, options, callback) {
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
function _regenerateKey(resourceGroupName, accountName, regenerateKeyParameter, options, callback) {
function _regenerateKey(resourceGroupName, accountName, keyName, options, callback) {
/* jshint validthis: true */
let client = this.client;
if(!callback && typeof options === 'function') {
@ -1515,21 +1519,26 @@ function _regenerateKey(resourceGroupName, accountName, regenerateKeyParameter,
throw new Error('"accountName" should satisfy the constraint - "MinLength": 3');
}
}
if (regenerateKeyParameter === null || regenerateKeyParameter === undefined) {
throw new Error('regenerateKeyParameter cannot be null or undefined.');
}
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
}
if (keyName === null || keyName === undefined || typeof keyName.valueOf() !== 'string') {
throw new Error('keyName cannot be null or undefined and it must be of type string.');
}
if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.client.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
let regenerateKeyParameter;
if (keyName !== null && keyName !== undefined) {
regenerateKeyParameter = new client.models['StorageAccountRegenerateKeyParameters']();
regenerateKeyParameter.keyName = keyName;
}
// Construct URL
let baseUrl = this.client.baseUri;
@ -1546,9 +1555,10 @@ function _regenerateKey(resourceGroupName, accountName, regenerateKeyParameter,
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'POST';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -1562,7 +1572,6 @@ function _regenerateKey(resourceGroupName, accountName, regenerateKeyParameter,
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
// Serialize Request
let requestContent = null;
let requestModel = null;
@ -1769,9 +1778,10 @@ function _listAccountSAS(resourceGroupName, accountName, parameters, options, ca
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'POST';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -1785,7 +1795,6 @@ function _listAccountSAS(resourceGroupName, accountName, parameters, options, ca
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
// Serialize Request
let requestContent = null;
let requestModel = null;
@ -2016,9 +2025,10 @@ function _listServiceSAS(resourceGroupName, accountName, parameters, options, ca
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'POST';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -2032,7 +2042,6 @@ function _listServiceSAS(resourceGroupName, accountName, parameters, options, ca
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
// Serialize Request
let requestContent = null;
let requestModel = null;
@ -2128,6 +2137,9 @@ function _listServiceSAS(resourceGroupName, accountName, parameters, options, ca
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {string} parameters.kind Required. Indicates the type of storage
* account. Possible values include: 'Storage', 'BlobStorage'
*
@ -2190,22 +2202,22 @@ function _listServiceSAS(resourceGroupName, accountName, parameters, options, ca
* @param {string} [parameters.encryption.keyVaultProperties.keyVaultUri] The
* Uri of KeyVault.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {string} [parameters.accessTier] Required for storage accounts where
* kind = BlobStorage. The access tier used for billing. Possible values
@ -2309,9 +2321,10 @@ function _beginCreate(resourceGroupName, accountName, parameters, options, callb
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'PUT';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -2325,7 +2338,6 @@ function _beginCreate(resourceGroupName, accountName, parameters, options, callb
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
// Serialize Request
let requestContent = null;
let requestModel = null;
@ -2397,17 +2409,12 @@ function _beginCreate(resourceGroupName, accountName, parameters, options, callb
});
}
/**
* @class
* StorageAccounts
* __NOTE__: An instance of this class is automatically created for an
* instance of the StorageManagementClient.
* Initializes a new instance of the StorageAccounts class.
* @constructor
*
* @param {StorageManagementClient} client Reference to the service client.
*/
/** Class representing a StorageAccounts. */
class StorageAccounts {
/**
* Create a StorageAccounts.
* @param {StorageManagementClient} client Reference to the service client.
*/
constructor(client) {
this.client = client;
this._checkNameAvailability = _checkNameAvailability;
@ -2427,11 +2434,7 @@ class StorageAccounts {
/**
* Checks that the storage account name is valid and is not already in use.
*
* @param {object} accountName The name of the storage account within the
* specified resource group. Storage account names must be between 3 and 24
* characters in length and use numbers and lower-case letters only.
*
* @param {string} accountName.name The storage account name.
* @param {string} name The storage account name.
*
* @param {object} [options] Optional Parameters.
*
@ -2444,11 +2447,11 @@ class StorageAccounts {
*
* @reject {Error} - The error object.
*/
checkNameAvailabilityWithHttpOperationResponse(accountName, options) {
checkNameAvailabilityWithHttpOperationResponse(name, options) {
let client = this.client;
let self = this;
return new Promise((resolve, reject) => {
self._checkNameAvailability(accountName, options, (err, result, request, response) => {
self._checkNameAvailability(name, options, (err, result, request, response) => {
let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
httpOperationResponse.body = result;
if (err) { reject(err); }
@ -2461,11 +2464,7 @@ class StorageAccounts {
/**
* Checks that the storage account name is valid and is not already in use.
*
* @param {object} accountName The name of the storage account within the
* specified resource group. Storage account names must be between 3 and 24
* characters in length and use numbers and lower-case letters only.
*
* @param {string} accountName.name The storage account name.
* @param {string} name The storage account name.
*
* @param {object} [options] Optional Parameters.
*
@ -2495,7 +2494,7 @@ class StorageAccounts {
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
checkNameAvailability(accountName, options, optionalCallback) {
checkNameAvailability(name, options, optionalCallback) {
let client = this.client;
let self = this;
if (!optionalCallback && typeof options === 'function') {
@ -2504,14 +2503,14 @@ class StorageAccounts {
}
if (!optionalCallback) {
return new Promise((resolve, reject) => {
self._checkNameAvailability(accountName, options, (err, result, request, response) => {
self._checkNameAvailability(name, options, (err, result, request, response) => {
if (err) { reject(err); }
else { resolve(result); }
return;
});
});
} else {
return self._checkNameAvailability(accountName, options, optionalCallback);
return self._checkNameAvailability(name, options, optionalCallback);
}
}
@ -2539,6 +2538,9 @@ class StorageAccounts {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {string} parameters.kind Required. Indicates the type of storage
* account. Possible values include: 'Storage', 'BlobStorage'
*
@ -2601,22 +2603,22 @@ class StorageAccounts {
* @param {string} [parameters.encryption.keyVaultProperties.keyVaultUri] The
* Uri of KeyVault.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {string} [parameters.accessTier] Required for storage accounts where
* kind = BlobStorage. The access tier used for billing. Possible values
@ -2674,6 +2676,9 @@ class StorageAccounts {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {string} parameters.kind Required. Indicates the type of storage
* account. Possible values include: 'Storage', 'BlobStorage'
*
@ -2736,22 +2741,22 @@ class StorageAccounts {
* @param {string} [parameters.encryption.keyVaultProperties.keyVaultUri] The
* Uri of KeyVault.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {string} [parameters.accessTier] Required for storage accounts where
* kind = BlobStorage. The access tier used for billing. Possible values
@ -3024,6 +3029,9 @@ class StorageAccounts {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {object} [parameters.tags] Gets or sets a list of key value pairs
* that describe the resource. These tags can be used in viewing and grouping
* this resource (across resource groups). A maximum of 15 tags can be provided
@ -3083,22 +3091,22 @@ class StorageAccounts {
* @param {boolean} [parameters.enableHttpsTrafficOnly] Allows https traffic
* only to storage service if sets to true.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {object} [options] Optional Parameters.
*
@ -3155,6 +3163,9 @@ class StorageAccounts {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {object} [parameters.tags] Gets or sets a list of key value pairs
* that describe the resource. These tags can be used in viewing and grouping
* this resource (across resource groups). A maximum of 15 tags can be provided
@ -3214,22 +3225,22 @@ class StorageAccounts {
* @param {boolean} [parameters.enableHttpsTrafficOnly] Allows https traffic
* only to storage service if sets to true.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {object} [options] Optional Parameters.
*
@ -3551,11 +3562,8 @@ class StorageAccounts {
* specified resource group. Storage account names must be between 3 and 24
* characters in length and use numbers and lower-case letters only.
*
* @param {object} regenerateKeyParameter Specifies name of the key which
* should be regenerated -- key1 or key2.
*
* @param {string} regenerateKeyParameter.keyName The name of storage keys that
* want to be regenerated, possible vaules are key1, key2.
* @param {string} keyName The name of storage keys that want to be
* regenerated, possible vaules are key1, key2.
*
* @param {object} [options] Optional Parameters.
*
@ -3568,11 +3576,11 @@ class StorageAccounts {
*
* @reject {Error} - The error object.
*/
regenerateKeyWithHttpOperationResponse(resourceGroupName, accountName, regenerateKeyParameter, options) {
regenerateKeyWithHttpOperationResponse(resourceGroupName, accountName, keyName, options) {
let client = this.client;
let self = this;
return new Promise((resolve, reject) => {
self._regenerateKey(resourceGroupName, accountName, regenerateKeyParameter, options, (err, result, request, response) => {
self._regenerateKey(resourceGroupName, accountName, keyName, options, (err, result, request, response) => {
let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
httpOperationResponse.body = result;
if (err) { reject(err); }
@ -3592,11 +3600,8 @@ class StorageAccounts {
* specified resource group. Storage account names must be between 3 and 24
* characters in length and use numbers and lower-case letters only.
*
* @param {object} regenerateKeyParameter Specifies name of the key which
* should be regenerated -- key1 or key2.
*
* @param {string} regenerateKeyParameter.keyName The name of storage keys that
* want to be regenerated, possible vaules are key1, key2.
* @param {string} keyName The name of storage keys that want to be
* regenerated, possible vaules are key1, key2.
*
* @param {object} [options] Optional Parameters.
*
@ -3626,7 +3631,7 @@ class StorageAccounts {
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
regenerateKey(resourceGroupName, accountName, regenerateKeyParameter, options, optionalCallback) {
regenerateKey(resourceGroupName, accountName, keyName, options, optionalCallback) {
let client = this.client;
let self = this;
if (!optionalCallback && typeof options === 'function') {
@ -3635,14 +3640,14 @@ class StorageAccounts {
}
if (!optionalCallback) {
return new Promise((resolve, reject) => {
self._regenerateKey(resourceGroupName, accountName, regenerateKeyParameter, options, (err, result, request, response) => {
self._regenerateKey(resourceGroupName, accountName, keyName, options, (err, result, request, response) => {
if (err) { reject(err); }
else { resolve(result); }
return;
});
});
} else {
return self._regenerateKey(resourceGroupName, accountName, regenerateKeyParameter, options, optionalCallback);
return self._regenerateKey(resourceGroupName, accountName, keyName, options, optionalCallback);
}
}
@ -4036,6 +4041,9 @@ class StorageAccounts {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {string} parameters.kind Required. Indicates the type of storage
* account. Possible values include: 'Storage', 'BlobStorage'
*
@ -4098,22 +4106,22 @@ class StorageAccounts {
* @param {string} [parameters.encryption.keyVaultProperties.keyVaultUri] The
* Uri of KeyVault.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {string} [parameters.accessTier] Required for storage accounts where
* kind = BlobStorage. The access tier used for billing. Possible values
@ -4171,6 +4179,9 @@ class StorageAccounts {
* was called accountType. Possible values include: 'Standard_LRS',
* 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
*
* @param {array} [parameters.sku.restrictions] The restrictions because of
* which SKU cannot be used. This is empty if there are no restrictions.
*
* @param {string} parameters.kind Required. Indicates the type of storage
* account. Possible values include: 'Storage', 'BlobStorage'
*
@ -4233,22 +4244,22 @@ class StorageAccounts {
* @param {string} [parameters.encryption.keyVaultProperties.keyVaultUri] The
* Uri of KeyVault.
*
* @param {object} [parameters.networkAcls] Network ACL
* @param {object} [parameters.networkRuleSet] Network rule set
*
* @param {string} [parameters.networkAcls.bypass] Specifies whether traffic is
* bypassed for Logging/Metrics/AzureServices. Possible values are any
* @param {string} [parameters.networkRuleSet.bypass] Specifies whether traffic
* is bypassed for Logging/Metrics/AzureServices. Possible values are any
* combination of Logging|Metrics|AzureServices (For example, "Logging,
* Metrics"), or None to bypass none of those traffics. Possible values
* include: 'None', 'Logging', 'Metrics', 'AzureServices'
*
* @param {array} [parameters.networkAcls.virtualNetworkRules] Sets the virtual
* network ACL rules
* @param {array} [parameters.networkRuleSet.virtualNetworkRules] Sets the
* virtual network rules
*
* @param {array} [parameters.networkAcls.ipRules] Sets the IP ACL rules
* @param {array} [parameters.networkRuleSet.ipRules] Sets the IP ACL rules
*
* @param {string} parameters.networkAcls.defaultAction Specifies the default
* action of allow or deny when no other rules match. Possible values include:
* 'Allow', 'Deny'
* @param {string} parameters.networkRuleSet.defaultAction Specifies the
* default action of allow or deny when no other rules match. Possible values
* include: 'Allow', 'Deny'
*
* @param {string} [parameters.accessTier] Required for storage accounts where
* kind = BlobStorage. The access tier used for billing. Possible values

Просмотреть файл

@ -74,9 +74,10 @@ function _list(options, callback) {
// Create HTTP transport objects
let httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.headers = {};
httpRequest.url = requestUrl;
httpRequest.headers = {};
// Set Headers
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
@ -90,7 +91,6 @@ function _list(options, callback) {
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, (err, response, responseBody) => {
@ -148,17 +148,12 @@ function _list(options, callback) {
});
}
/**
* @class
* UsageOperations
* __NOTE__: An instance of this class is automatically created for an
* instance of the StorageManagementClient.
* Initializes a new instance of the UsageOperations class.
* @constructor
*
* @param {StorageManagementClient} client Reference to the service client.
*/
/** Class representing a UsageOperations. */
class UsageOperations {
/**
* Create a UsageOperations.
* @param {StorageManagementClient} client Reference to the service client.
*/
constructor(client) {
this.client = client;
this._list = _list;

Просмотреть файл

@ -8,10 +8,11 @@
* regenerated.
*/
import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import { ServiceClient, ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as operations from "./operations";
declare class StorageManagementClient {
declare class StorageManagementClient extends AzureServiceClient {
/**
* Initializes a new instance of the StorageManagementClient class.
* @constructor
@ -41,7 +42,7 @@ declare class StorageManagementClient {
* @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.
*
*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: ServiceClientOptions);
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);
credentials: ServiceClientCredentials;
@ -57,6 +58,7 @@ declare class StorageManagementClient {
// Operation groups
operations: operations.Operations;
sKUs: operations.SKUs;
storageAccounts: operations.StorageAccounts;
usageOperations: operations.UsageOperations;
}

Просмотреть файл

@ -22,36 +22,23 @@ const models = require('./models');
const operations = require('./operations');
/**
* @class
* Initializes a new instance of the StorageManagementClient class.
* @constructor
*
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
*
* @param {string} [baseUri] - The base URI of the service.
*
* @param {object} [options] - The parameter options
*
* @param {Array} [options.filters] - Filters to be added to the request pipeline
*
* @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.apiVersion] - Client Api Version.
*
* @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.
*
*/
/** Class representing a StorageManagementClient. */
class StorageManagementClient extends ServiceClient {
/**
* Create a StorageManagementClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
* @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.apiVersion] - Client Api Version.
* @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.
*/
constructor(credentials, subscriptionId, baseUri, options) {
if (credentials === null || credentials === undefined) {
throw new Error('\'credentials\' cannot be null.');
@ -90,6 +77,7 @@ class StorageManagementClient extends ServiceClient {
this.generateClientRequestId = options.generateClientRequestId;
}
this.operations = new operations.Operations(this);
this.sKUs = new operations.SKUs(this);
this.storageAccounts = new operations.StorageAccounts(this);
this.usageOperations = new operations.UsageOperations(this);
this.models = models;

Просмотреть файл

@ -154,7 +154,7 @@
"output_dir": "lib/services/serviceBusManagement2/lib"
},
"storage": {
"swagger": "arm-storage/2016-01-01/swagger/storage.json",
"swagger": "arm-storage/storage/resource-manager/Microsoft.Storage/2017-06-01/swagger/storage.json",
"autorest_options": {
"FT": 2
},