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

Update storage spec to 2016-05-01 #2004

Merged
merged 5 commits into from
Dec 21, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ var mappings = {
},
'storage': {
'dir': 'storageManagement2/lib',
'source': 'arm-storage/2016-01-01/swagger/storage.json',
'ft': 2
'source': 'arm-storage/2016-05-01/swagger/storage.json',
'ft': 2,
'ClientName': 'StorageManagementClient'
},
'traffic':{
'dir': 'trafficManagerManagement2/lib',
Expand All @@ -178,7 +179,7 @@ var mappings = {
}
};

var defaultAutoRestVersion = '0.17.0-Nightly20161019';
var defaultAutoRestVersion = '1.0.0-Nightly20161212';
var usingAutoRestVersion;
var specRoot = args['spec-root'] || "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master";
var project = args['project'];
Expand Down Expand Up @@ -242,6 +243,7 @@ function generateProject(project, specRoot, autoRestVersion) {
var cmd = util.format('%s -Modeler %s -CodeGenerator %s -Input %s -outputDirectory lib/services/%s -Header MICROSOFT_MIT_NO_VERSION',
autoRestExe, currentModeler, language, specPath, mappings[project].dir);
if (mappings[project].ft !== null && mappings[project].ft !== undefined) cmd += ' -FT ' + mappings[project].ft;
if (mappings[project].ClientName !== null && mappings[project].ClientName !== undefined) cmd += ' -ClientName ' + mappings[project].ClientName;
if (mappings[project].args !== undefined) {
cmd = cmd + ' ' + args;
}
Expand Down
128 changes: 128 additions & 0 deletions lib/services/storageManagement2/lib/models/accountSasParameters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
/*
* 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';

/**
* @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.
*
*/
function AccountSasParameters() {
}

/**
* Defines the metadata of AccountSasParameters
*
* @returns {object} metadata of AccountSasParameters
*
*/
AccountSasParameters.prototype.mapper = function () {
return {
required: false,
serializedName: 'AccountSasParameters',
type: {
name: 'Composite',
className: 'AccountSasParameters',
modelProperties: {
services: {
required: true,
serializedName: 'signedServices',
type: {
name: 'String'
}
},
resourceTypes: {
required: true,
serializedName: 'signedResourceTypes',
type: {
name: 'String'
}
},
permissions: {
required: true,
serializedName: 'signedPermission',
type: {
name: 'String'
}
},
iPAddressOrRange: {
required: false,
serializedName: 'signedIp',
type: {
name: 'String'
}
},
protocols: {
required: false,
serializedName: 'signedProtocol',
type: {
name: 'Enum',
allowedValues: [ 'https,http', 'https' ]
}
},
sharedAccessStartTime: {
required: false,
serializedName: 'signedStart',
type: {
name: 'DateTime'
}
},
sharedAccessExpiryTime: {
required: true,
serializedName: 'signedExpiry',
type: {
name: 'DateTime'
}
},
keyToSign: {
required: false,
serializedName: 'keyToSign',
type: {
name: 'String'
}
}
}
}
};
};

module.exports = AccountSasParameters;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* 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.
Expand All @@ -18,16 +18,16 @@
*
* @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 invalid and cannot
* be used.
*
* 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.
*
* 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.
*
*/
function CheckNameAvailabilityResult() {
}
Expand Down
15 changes: 7 additions & 8 deletions lib/services/storageManagement2/lib/models/customDomain.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* 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.
Expand All @@ -17,13 +17,12 @@
* The custom domain assigned to this storage account. This can be set via
* Update.
*
* @member {string} name Gets or sets the custom domain name. 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
*
* @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.
*
*/
function CustomDomain() {
}
Expand Down
28 changes: 14 additions & 14 deletions lib/services/storageManagement2/lib/models/encryption.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* 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.
Expand All @@ -16,21 +16,21 @@ var models = require('./index');
* @class
* Initializes a new instance of the Encryption class.
* @constructor
* The encryption settings on the account.
* 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 {object} [services] Gets the services which are encrypted.
*
* @member {object} [services.blob] The blob service.
*
* @member {boolean} [services.blob.enabled] A boolean indicating whether or
* not the service is encrypted.
*
* @member {date} [services.blob.lastEnabledTime] Gets a time value indicating
* when was the encryption enabled by the user last time. We return this
* value only when encryption is enabled. There might be some unencrypted
* blobs which were written after this time. This time is just to give a
* rough estimate of when encryption was enabled.
*
* 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.
*
*/
function Encryption() {
}
Expand Down
19 changes: 9 additions & 10 deletions lib/services/storageManagement2/lib/models/encryptionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* 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.
Expand All @@ -14,17 +14,16 @@
* @class
* Initializes a new instance of the EncryptionService class.
* @constructor
* An encrypted service.
* A service that allows server-side encryption to be used.
*
* @member {boolean} [enabled] A boolean indicating whether or not the service
* is encrypted.
*
* @member {date} [lastEnabledTime] Gets a time value indicating when was the
* encryption enabled by the user last time. We return this value only when
* encryption is enabled. There might be some unencrypted blobs which were
* written after this time. This time is just to give a rough estimate of
* when encryption was enabled.
*
* 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.
*
*/
function EncryptionService() {
}
Expand Down
23 changes: 11 additions & 12 deletions lib/services/storageManagement2/lib/models/encryptionServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* 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.
Expand All @@ -16,19 +16,18 @@ var models = require('./index');
* @class
* Initializes a new instance of the EncryptionServices class.
* @constructor
* The encrypted services.
* A list of services that support encryption.
*
* @member {object} [blob] The encryption function of the blob storage service.
*
* @member {object} [blob] The blob service.
*
* @member {boolean} [blob.enabled] A boolean indicating whether or not the
* service is encrypted.
*
* @member {date} [blob.lastEnabledTime] Gets a time value indicating when was
* the encryption enabled by the user last time. We return this value only
* when encryption is enabled. There might be some unencrypted blobs which
* were written after this time. This time is just to give a rough estimate
* of when encryption was enabled.
*
* 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.
*
*/
function EncryptionServices() {
}
Expand Down
12 changes: 6 additions & 6 deletions lib/services/storageManagement2/lib/models/endpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* 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.
Expand All @@ -14,17 +14,17 @@
* @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
* 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.
*
*
*/
function Endpoints() {
}
Expand Down
Loading