Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit f72461e

Browse files
[Storage] Updated storage based newest swagger.
1 parent b2d5003 commit f72461e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1829
-1561
lines changed

lib/services/storageManagement2/lib/models/accountSasParameters.js

+24-32
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,34 @@
1111
'use strict';
1212

1313
/**
14-
* @class
15-
* Initializes a new instance of the AccountSasParameters class.
16-
* @constructor
1714
* The parameters to list SAS credentials of a storage account.
1815
*
19-
* @member {string} services The signed services accessible with the account
20-
* SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f).
21-
* Possible values include: 'b', 'q', 't', 'f'
22-
*
23-
* @member {string} resourceTypes The signed resource types that are accessible
24-
* with the account SAS. Service (s): Access to service-level APIs; Container
25-
* (c): Access to container-level APIs; Object (o): Access to object-level APIs
26-
* for blobs, queue messages, table entities, and files. Possible values
27-
* include: 's', 'c', 'o'
28-
*
29-
* @member {string} permissions The signed permissions for the account SAS.
30-
* Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a),
31-
* Create (c), Update (u) and Process (p). Possible values include: 'r', 'd',
32-
* 'w', 'l', 'a', 'c', 'u', 'p'
33-
*
34-
* @member {string} [iPAddressOrRange] An IP address or a range of IP addresses
35-
* from which to accept requests.
36-
*
37-
* @member {string} [protocols] The protocol permitted for a request made with
38-
* the account SAS. Possible values include: 'https,http', 'https'
39-
*
40-
* @member {date} [sharedAccessStartTime] The time at which the SAS becomes
41-
* valid.
42-
*
43-
* @member {date} sharedAccessExpiryTime The time at which the shared access
44-
* signature becomes invalid.
45-
*
46-
* @member {string} [keyToSign] The key to sign the account SAS token with.
47-
*
4816
*/
4917
class AccountSasParameters {
18+
/**
19+
* Create a AccountSasParameters.
20+
* @member {string} services The signed services accessible with the account
21+
* SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f).
22+
* Possible values include: 'b', 'q', 't', 'f'
23+
* @member {string} resourceTypes The signed resource types that are
24+
* accessible with the account SAS. Service (s): Access to service-level
25+
* APIs; Container (c): Access to container-level APIs; Object (o): Access to
26+
* object-level APIs for blobs, queue messages, table entities, and files.
27+
* Possible values include: 's', 'c', 'o'
28+
* @member {string} permissions The signed permissions for the account SAS.
29+
* Possible values include: Read (r), Write (w), Delete (d), List (l), Add
30+
* (a), Create (c), Update (u) and Process (p). Possible values include: 'r',
31+
* 'd', 'w', 'l', 'a', 'c', 'u', 'p'
32+
* @member {string} [iPAddressOrRange] An IP address or a range of IP
33+
* addresses from which to accept requests.
34+
* @member {string} [protocols] The protocol permitted for a request made
35+
* with the account SAS. Possible values include: 'https,http', 'https'
36+
* @member {date} [sharedAccessStartTime] The time at which the SAS becomes
37+
* valid.
38+
* @member {date} sharedAccessExpiryTime The time at which the shared access
39+
* signature becomes invalid.
40+
* @member {string} [keyToSign] The key to sign the account SAS token with.
41+
*/
5042
constructor() {
5143
}
5244

lib/services/storageManagement2/lib/models/checkNameAvailabilityResult.js

+12-15
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,22 @@
1111
'use strict';
1212

1313
/**
14-
* @class
15-
* Initializes a new instance of the CheckNameAvailabilityResult class.
16-
* @constructor
1714
* The CheckNameAvailability operation response.
1815
*
19-
* @member {boolean} [nameAvailable] Gets a boolean value that indicates
20-
* whether the name is available for you to use. If true, the name is
21-
* available. If false, the name has already been taken or is invalid and
22-
* cannot be used.
23-
*
24-
* @member {string} [reason] Gets the reason that a storage account name could
25-
* not be used. The Reason element is only returned if NameAvailable is false.
26-
* Possible values include: 'AccountNameInvalid', 'AlreadyExists'
27-
*
28-
* @member {string} [message] Gets an error message explaining the Reason value
29-
* in more detail.
30-
*
3116
*/
3217
class CheckNameAvailabilityResult {
18+
/**
19+
* Create a CheckNameAvailabilityResult.
20+
* @member {boolean} [nameAvailable] Gets a boolean value that indicates
21+
* whether the name is available for you to use. If true, the name is
22+
* available. If false, the name has already been taken or is invalid and
23+
* cannot be used.
24+
* @member {string} [reason] Gets the reason that a storage account name
25+
* could not be used. The Reason element is only returned if NameAvailable is
26+
* false. Possible values include: 'AccountNameInvalid', 'AlreadyExists'
27+
* @member {string} [message] Gets an error message explaining the Reason
28+
* value in more detail.
29+
*/
3330
constructor() {
3431
}
3532

lib/services/storageManagement2/lib/models/customDomain.js

+8-9
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,19 @@
1111
'use strict';
1212

1313
/**
14-
* @class
15-
* Initializes a new instance of the CustomDomain class.
16-
* @constructor
1714
* The custom domain assigned to this storage account. This can be set via
1815
* Update.
1916
*
20-
* @member {string} name Gets or sets the custom domain name assigned to the
21-
* storage account. Name is the CNAME source.
22-
*
23-
* @member {boolean} [useSubDomain] Indicates whether indirect CName validation
24-
* is enabled. Default value is false. This should only be set on updates.
25-
*
2617
*/
2718
class CustomDomain {
19+
/**
20+
* Create a CustomDomain.
21+
* @member {string} name Gets or sets the custom domain name assigned to the
22+
* storage account. Name is the CNAME source.
23+
* @member {boolean} [useSubDomain] Indicates whether indirect CName
24+
* validation is enabled. Default value is false. This should only be set on
25+
* updates.
26+
*/
2827
constructor() {
2928
}
3029

lib/services/storageManagement2/lib/models/dimension.js

+6-8
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@
1111
'use strict';
1212

1313
/**
14-
* @class
15-
* Initializes a new instance of the Dimension class.
16-
* @constructor
17-
* Dimensions.
18-
*
19-
* @member {string} [name] Display name of dimension.
20-
*
21-
* @member {string} [displayName] Display name of dimension.
14+
* Dimension of blobs, possiblly be blob type or access tier.
2215
*
2316
*/
2417
class Dimension {
18+
/**
19+
* Create a Dimension.
20+
* @member {string} [name] Display name of dimension.
21+
* @member {string} [displayName] Display name of dimension.
22+
*/
2523
constructor() {
2624
}
2725

lib/services/storageManagement2/lib/models/encryption.js

+45-63
Original file line numberDiff line numberDiff line change
@@ -13,73 +13,55 @@
1313
const models = require('./index');
1414

1515
/**
16-
* @class
17-
* Initializes a new instance of the Encryption class.
18-
* @constructor
1916
* The encryption settings on the storage account.
2017
*
21-
* @member {object} [services] List of services which support encryption.
22-
*
23-
* @member {object} [services.blob] The encryption function of the blob storage
24-
* service.
25-
*
26-
* @member {boolean} [services.blob.enabled] A boolean indicating whether or
27-
* not the service encrypts the data as it is stored.
28-
*
29-
* @member {date} [services.blob.lastEnabledTime] Gets a rough estimate of the
30-
* date/time when the encryption was last enabled by the user. Only returned
31-
* when encryption is enabled. There might be some unencrypted blobs which were
32-
* written after this time, as it is just a rough estimate.
33-
*
34-
* @member {object} [services.file] The encryption function of the file storage
35-
* service.
36-
*
37-
* @member {boolean} [services.file.enabled] A boolean indicating whether or
38-
* not the service encrypts the data as it is stored.
39-
*
40-
* @member {date} [services.file.lastEnabledTime] Gets a rough estimate of the
41-
* date/time when the encryption was last enabled by the user. Only returned
42-
* when encryption is enabled. There might be some unencrypted blobs which were
43-
* written after this time, as it is just a rough estimate.
44-
*
45-
* @member {object} [services.table] The encryption function of the table
46-
* storage service.
47-
*
48-
* @member {boolean} [services.table.enabled] A boolean indicating whether or
49-
* not the service encrypts the data as it is stored.
50-
*
51-
* @member {date} [services.table.lastEnabledTime] Gets a rough estimate of the
52-
* date/time when the encryption was last enabled by the user. Only returned
53-
* when encryption is enabled. There might be some unencrypted blobs which were
54-
* written after this time, as it is just a rough estimate.
55-
*
56-
* @member {object} [services.queue] The encryption function of the queue
57-
* storage service.
58-
*
59-
* @member {boolean} [services.queue.enabled] A boolean indicating whether or
60-
* not the service encrypts the data as it is stored.
61-
*
62-
* @member {date} [services.queue.lastEnabledTime] Gets a rough estimate of the
63-
* date/time when the encryption was last enabled by the user. Only returned
64-
* when encryption is enabled. There might be some unencrypted blobs which were
65-
* written after this time, as it is just a rough estimate.
66-
*
67-
* @member {string} keySource The encryption keySource (provider). Possible
68-
* values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault. Possible
69-
* values include: 'Microsoft.Storage', 'Microsoft.Keyvault'. Default value:
70-
* 'Microsoft.Storage' .
71-
*
72-
* @member {object} [keyVaultProperties] Properties provided by key vault.
73-
*
74-
* @member {string} [keyVaultProperties.keyName] The name of KeyVault key.
75-
*
76-
* @member {string} [keyVaultProperties.keyVersion] The version of KeyVault
77-
* key.
78-
*
79-
* @member {string} [keyVaultProperties.keyVaultUri] The Uri of KeyVault.
80-
*
8118
*/
8219
class Encryption {
20+
/**
21+
* Create a Encryption.
22+
* @member {object} [services] List of services which support encryption.
23+
* @member {object} [services.blob] The encryption function of the blob
24+
* storage service.
25+
* @member {boolean} [services.blob.enabled] A boolean indicating whether or
26+
* not the service encrypts the data as it is stored.
27+
* @member {date} [services.blob.lastEnabledTime] Gets a rough estimate of
28+
* the date/time when the encryption was last enabled by the user. Only
29+
* returned when encryption is enabled. There might be some unencrypted blobs
30+
* which were written after this time, as it is just a rough estimate.
31+
* @member {object} [services.file] The encryption function of the file
32+
* storage service.
33+
* @member {boolean} [services.file.enabled] A boolean indicating whether or
34+
* not the service encrypts the data as it is stored.
35+
* @member {date} [services.file.lastEnabledTime] Gets a rough estimate of
36+
* the date/time when the encryption was last enabled by the user. Only
37+
* returned when encryption is enabled. There might be some unencrypted blobs
38+
* which were written after this time, as it is just a rough estimate.
39+
* @member {object} [services.table] The encryption function of the table
40+
* storage service.
41+
* @member {boolean} [services.table.enabled] A boolean indicating whether or
42+
* not the service encrypts the data as it is stored.
43+
* @member {date} [services.table.lastEnabledTime] Gets a rough estimate of
44+
* the date/time when the encryption was last enabled by the user. Only
45+
* returned when encryption is enabled. There might be some unencrypted blobs
46+
* which were written after this time, as it is just a rough estimate.
47+
* @member {object} [services.queue] The encryption function of the queue
48+
* storage service.
49+
* @member {boolean} [services.queue.enabled] A boolean indicating whether or
50+
* not the service encrypts the data as it is stored.
51+
* @member {date} [services.queue.lastEnabledTime] Gets a rough estimate of
52+
* the date/time when the encryption was last enabled by the user. Only
53+
* returned when encryption is enabled. There might be some unencrypted blobs
54+
* which were written after this time, as it is just a rough estimate.
55+
* @member {string} keySource The encryption keySource (provider). Possible
56+
* values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault.
57+
* Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'.
58+
* Default value: 'Microsoft.Storage' .
59+
* @member {object} [keyVaultProperties] Properties provided by key vault.
60+
* @member {string} [keyVaultProperties.keyName] The name of KeyVault key.
61+
* @member {string} [keyVaultProperties.keyVersion] The version of KeyVault
62+
* key.
63+
* @member {string} [keyVaultProperties.keyVaultUri] The Uri of KeyVault.
64+
*/
8365
constructor() {
8466
}
8567

lib/services/storageManagement2/lib/models/encryptionService.js

+9-11
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,19 @@
1111
'use strict';
1212

1313
/**
14-
* @class
15-
* Initializes a new instance of the EncryptionService class.
16-
* @constructor
1714
* A service that allows server-side encryption to be used.
1815
*
19-
* @member {boolean} [enabled] A boolean indicating whether or not the service
20-
* encrypts the data as it is stored.
21-
*
22-
* @member {date} [lastEnabledTime] Gets a rough estimate of the date/time when
23-
* the encryption was last enabled by the user. Only returned when encryption
24-
* is enabled. There might be some unencrypted blobs which were written after
25-
* this time, as it is just a rough estimate.
26-
*
2716
*/
2817
class EncryptionService {
18+
/**
19+
* Create a EncryptionService.
20+
* @member {boolean} [enabled] A boolean indicating whether or not the
21+
* service encrypts the data as it is stored.
22+
* @member {date} [lastEnabledTime] Gets a rough estimate of the date/time
23+
* when the encryption was last enabled by the user. Only returned when
24+
* encryption is enabled. There might be some unencrypted blobs which were
25+
* written after this time, as it is just a rough estimate.
26+
*/
2927
constructor() {
3028
}
3129

lib/services/storageManagement2/lib/models/encryptionServices.js

+35-45
Original file line numberDiff line numberDiff line change
@@ -13,55 +13,45 @@
1313
const models = require('./index');
1414

1515
/**
16-
* @class
17-
* Initializes a new instance of the EncryptionServices class.
18-
* @constructor
1916
* A list of services that support encryption.
2017
*
21-
* @member {object} [blob] The encryption function of the blob storage service.
22-
*
23-
* @member {boolean} [blob.enabled] A boolean indicating whether or not the
24-
* service encrypts the data as it is stored.
25-
*
26-
* @member {date} [blob.lastEnabledTime] Gets a rough estimate of the date/time
27-
* when the encryption was last enabled by the user. Only returned when
28-
* encryption is enabled. There might be some unencrypted blobs which were
29-
* written after this time, as it is just a rough estimate.
30-
*
31-
* @member {object} [file] The encryption function of the file storage service.
32-
*
33-
* @member {boolean} [file.enabled] A boolean indicating whether or not the
34-
* service encrypts the data as it is stored.
35-
*
36-
* @member {date} [file.lastEnabledTime] Gets a rough estimate of the date/time
37-
* when the encryption was last enabled by the user. Only returned when
38-
* encryption is enabled. There might be some unencrypted blobs which were
39-
* written after this time, as it is just a rough estimate.
40-
*
41-
* @member {object} [table] The encryption function of the table storage
42-
* service.
43-
*
44-
* @member {boolean} [table.enabled] A boolean indicating whether or not the
45-
* service encrypts the data as it is stored.
46-
*
47-
* @member {date} [table.lastEnabledTime] Gets a rough estimate of the
48-
* date/time when the encryption was last enabled by the user. Only returned
49-
* when encryption is enabled. There might be some unencrypted blobs which were
50-
* written after this time, as it is just a rough estimate.
51-
*
52-
* @member {object} [queue] The encryption function of the queue storage
53-
* service.
54-
*
55-
* @member {boolean} [queue.enabled] A boolean indicating whether or not the
56-
* service encrypts the data as it is stored.
57-
*
58-
* @member {date} [queue.lastEnabledTime] Gets a rough estimate of the
59-
* date/time when the encryption was last enabled by the user. Only returned
60-
* when encryption is enabled. There might be some unencrypted blobs which were
61-
* written after this time, as it is just a rough estimate.
62-
*
6318
*/
6419
class EncryptionServices {
20+
/**
21+
* Create a EncryptionServices.
22+
* @member {object} [blob] The encryption function of the blob storage
23+
* service.
24+
* @member {boolean} [blob.enabled] A boolean indicating whether or not the
25+
* service encrypts the data as it is stored.
26+
* @member {date} [blob.lastEnabledTime] Gets a rough estimate of the
27+
* date/time when the encryption was last enabled by the user. Only returned
28+
* when encryption is enabled. There might be some unencrypted blobs which
29+
* were written after this time, as it is just a rough estimate.
30+
* @member {object} [file] The encryption function of the file storage
31+
* service.
32+
* @member {boolean} [file.enabled] A boolean indicating whether or not the
33+
* service encrypts the data as it is stored.
34+
* @member {date} [file.lastEnabledTime] Gets a rough estimate of the
35+
* date/time when the encryption was last enabled by the user. Only returned
36+
* when encryption is enabled. There might be some unencrypted blobs which
37+
* were written after this time, as it is just a rough estimate.
38+
* @member {object} [table] The encryption function of the table storage
39+
* service.
40+
* @member {boolean} [table.enabled] A boolean indicating whether or not the
41+
* service encrypts the data as it is stored.
42+
* @member {date} [table.lastEnabledTime] Gets a rough estimate of the
43+
* date/time when the encryption was last enabled by the user. Only returned
44+
* when encryption is enabled. There might be some unencrypted blobs which
45+
* were written after this time, as it is just a rough estimate.
46+
* @member {object} [queue] The encryption function of the queue storage
47+
* service.
48+
* @member {boolean} [queue.enabled] A boolean indicating whether or not the
49+
* service encrypts the data as it is stored.
50+
* @member {date} [queue.lastEnabledTime] Gets a rough estimate of the
51+
* date/time when the encryption was last enabled by the user. Only returned
52+
* when encryption is enabled. There might be some unencrypted blobs which
53+
* were written after this time, as it is just a rough estimate.
54+
*/
6555
constructor() {
6656
}
6757

0 commit comments

Comments
 (0)