Skip to content

Commit

Permalink
Regenerate samples
Browse files Browse the repository at this point in the history
  • Loading branch information
matthchr committed Jun 14, 2016
1 parent cbb0c20 commit 191eb30
Show file tree
Hide file tree
Showing 49 changed files with 270 additions and 125 deletions.
5 changes: 5 additions & 0 deletions Samples/azure-storage/Azure.CSharp/StorageManagementClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ public StorageManagementClient(Uri baseUri, ServiceClientCredentials credentials
}
}

/// <summary>
/// An optional partial-method to perform custom initialization.
/// </summary>
partial void CustomInitialize();
/// <summary>
/// Initializes client properties.
/// </summary>
Expand Down Expand Up @@ -311,6 +315,7 @@ private void Initialize()
new Iso8601TimeSpanConverter()
}
};
CustomInitialize();
DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* 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 invalid and cannot
Expand Down
1 change: 1 addition & 0 deletions Samples/azure-storage/Azure.NodeJS/models/customDomain.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @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. Name is the
* CNAME source.
*
Expand Down
1 change: 1 addition & 0 deletions Samples/azure-storage/Azure.NodeJS/models/endpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @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.
Expand Down
12 changes: 11 additions & 1 deletion Samples/azure-storage/Azure.NodeJS/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
* @constructor
* @member {string} name
*
* @member {string} [type]
* @member {string} [type] Default value: 'Microsoft.Storage/storageAccounts'
* .
*
*/
export interface StorageAccountCheckNameAvailabilityParameters {
Expand All @@ -22,6 +23,7 @@ export interface StorageAccountCheckNameAvailabilityParameters {
* 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 invalid and cannot
Expand Down Expand Up @@ -59,6 +61,7 @@ export interface StorageAccountPropertiesCreateParameters {
* Initializes a new instance of the StorageAccountCreateParameters class.
* @constructor
* The parameters to provide for the account.
*
* @member {string} location Resource location
*
* @member {object} [tags] Resource tags
Expand All @@ -82,6 +85,7 @@ export interface StorageAccountCreateParameters extends BaseResource {
* @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.
Expand All @@ -104,6 +108,7 @@ export interface Endpoints {
* @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. Name is the
* CNAME source.
*
Expand Down Expand Up @@ -232,6 +237,7 @@ export interface Resource extends BaseResource {
* Initializes a new instance of the StorageAccount class.
* @constructor
* The storage account.
*
* @member {object} [properties]
*
* @member {string} [properties.provisioningState] Gets the status of the
Expand Down Expand Up @@ -318,6 +324,7 @@ export interface StorageAccount extends Resource {
* Initializes a new instance of the StorageAccountKeys class.
* @constructor
* The access keys for the storage account.
*
* @member {string} [key1] Gets the value of key 1.
*
* @member {string} [key2] Gets the value of key 2.
Expand Down Expand Up @@ -361,6 +368,7 @@ export interface StorageAccountPropertiesUpdateParameters {
* Initializes a new instance of the StorageAccountUpdateParameters class.
* @constructor
* The parameters to update on the account.
*
* @member {object} [tags] Resource tags
*
* @member {object} [properties]
Expand Down Expand Up @@ -405,6 +413,7 @@ export interface StorageAccountRegenerateKeyParameters {
* Initializes a new instance of the UsageName class.
* @constructor
* The Usage Names.
*
* @member {string} [value] Gets a string describing the resource name.
*
* @member {string} [localizedValue] Gets a localized string describing the
Expand All @@ -421,6 +430,7 @@ export interface UsageName {
* 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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var util = require('util');
* Initializes a new instance of the StorageAccount class.
* @constructor
* The storage account.
*
* @member {object} [properties]
*
* @member {string} [properties.provisioningState] Gets the status of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var util = require('util');
* Initializes a new instance of the StorageAccountCreateParameters class.
* @constructor
* The parameters to provide for the account.
*
* @member {string} location Resource location
*
* @member {object} [tags] Resource tags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Initializes a new instance of the StorageAccountKeys class.
* @constructor
* The access keys for the storage account.
*
* @member {string} [key1] Gets the value of key 1.
*
* @member {string} [key2] Gets the value of key 2.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var util = require('util');
* Initializes a new instance of the StorageAccountUpdateParameters class.
* @constructor
* The parameters to update on the account.
*
* @member {object} [tags] Resource tags
*
* @member {object} [properties]
Expand Down
1 change: 1 addition & 0 deletions Samples/azure-storage/Azure.NodeJS/models/usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var models = require('./index');
* 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'
Expand Down
1 change: 1 addition & 0 deletions Samples/azure-storage/Azure.NodeJS/models/usageName.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Initializes a new instance of the UsageName class.
* @constructor
* The Usage Names.
*
* @member {string} [value] Gets a string describing the resource name.
*
* @member {string} [localizedValue] Gets a localized string describing the
Expand Down
2 changes: 1 addition & 1 deletion Samples/azure-storage/Azure.Python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools

REQUIRES = ["msrest>=0.3.0", "msrestazure>=0.3.0"]
REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"]

setup(
name=NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


class CheckNameAvailabilityResult(Model):
"""
The CheckNameAvailability operation response.
"""The CheckNameAvailability operation response.
:param name_available: Gets a boolean value that indicates whether the
name is available for you to use. If true, the name is available. If
Expand All @@ -16,8 +15,7 @@ class CheckNameAvailabilityResult(Model):
:param 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'
:type reason: str or :class:`Reason
<storagemanagementclient.models.Reason>`
:type reason: str or :class:`Reason <petstore.models.Reason>`
:param message: Gets an error message explaining the Reason value in more
detail.
:type message: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


class CustomDomain(Model):
"""
The custom domain assigned to this storage account. This can be set via
"""The custom domain assigned to this storage account. This can be set via
Update.
:param name: Gets or sets the custom domain name. Name is the CNAME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


class Endpoints(Model):
"""
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.
:param blob: Gets the blob endpoint.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class Resource(Model):
"""Resource
"""Resource.
Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


class StorageAccount(Resource):
"""
The storage account.
"""The storage account.
Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class StorageAccountCheckNameAvailabilityParameters(Model):
"""StorageAccountCheckNameAvailabilityParameters
"""StorageAccountCheckNameAvailabilityParameters.
:param name:
:type name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


class StorageAccountCreateParameters(Model):
"""
The parameters to provide for the account.
"""The parameters to provide for the account.
:param location: Resource location
:type location: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


class StorageAccountKeys(Model):
"""
The access keys for the storage account.
"""The access keys for the storage account.
:param key1: Gets the value of key 1.
:type key1: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@


class StorageAccountProperties(Model):
"""StorageAccountProperties
"""StorageAccountProperties.
:param provisioning_state: Gets the status of the storage account at the
time the operation was called. Possible values include: 'Creating',
'ResolvingDNS', 'Succeeded'
:type provisioning_state: str or :class:`ProvisioningState
<storagemanagementclient.models.ProvisioningState>`
<petstore.models.ProvisioningState>`
:param account_type: Gets the type of the storage account. Possible
values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS',
'Standard_RAGRS', 'Premium_LRS'
:type account_type: str or :class:`AccountType
<storagemanagementclient.models.AccountType>`
<petstore.models.AccountType>`
:param primary_endpoints: Gets the URLs that are used to perform a
retrieval of a public blob, queue or table object.Note that StandardZRS
and PremiumLRS accounts only return the blob endpoint.
Expand All @@ -29,7 +29,7 @@ class StorageAccountProperties(Model):
location of the storage account is available or unavailable. Possible
values include: 'Available', 'Unavailable'
:type status_of_primary: str or :class:`AccountStatus
<storagemanagementclient.models.AccountStatus>`
<petstore.models.AccountStatus>`
:param last_geo_failover_time: 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
Expand All @@ -45,7 +45,7 @@ class StorageAccountProperties(Model):
Only available if the accountType is StandardGRS or StandardRAGRS.
Possible values include: 'Available', 'Unavailable'
:type status_of_secondary: str or :class:`AccountStatus
<storagemanagementclient.models.AccountStatus>`
<petstore.models.AccountStatus>`
:param creation_time: Gets the creation date and time of the storage
account in UTC.
:type creation_time: datetime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@


class StorageAccountPropertiesCreateParameters(Model):
"""StorageAccountPropertiesCreateParameters
"""StorageAccountPropertiesCreateParameters.
:param account_type: Gets or sets the account type. Possible values
include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS',
'Standard_RAGRS', 'Premium_LRS'
:type account_type: str or :class:`AccountType
<storagemanagementclient.models.AccountType>`
<petstore.models.AccountType>`
"""

_validation = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@


class StorageAccountPropertiesUpdateParameters(Model):
"""StorageAccountPropertiesUpdateParameters
"""StorageAccountPropertiesUpdateParameters.
:param account_type: Gets or sets the account type. Note that StandardZRS
and PremiumLRS accounts cannot be changed to other account types, and
other account types cannot be changed to StandardZRS or PremiumLRS.
Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS',
'Standard_RAGRS', 'Premium_LRS'
:type account_type: str or :class:`AccountType
<storagemanagementclient.models.AccountType>`
<petstore.models.AccountType>`
:param custom_domain: 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class StorageAccountRegenerateKeyParameters(Model):
"""StorageAccountRegenerateKeyParameters
"""StorageAccountRegenerateKeyParameters.
:param key_name:
:type key_name: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


class StorageAccountUpdateParameters(Model):
"""
The parameters to update on the account.
"""The parameters to update on the account.
:param tags: Resource tags
:type tags: dict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@


class Usage(Model):
"""
Describes Storage Resource Usage.
"""Describes Storage Resource Usage.
:param unit: Gets the unit of measurement. Possible values include:
'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond',
'BytesPerSecond'
:type unit: str or :class:`UsageUnit
<storagemanagementclient.models.UsageUnit>`
:type unit: str or :class:`UsageUnit <petstore.models.UsageUnit>`
:param current_value: Gets the current count of the allocated resources
in the subscription.
:type current_value: int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


class UsageName(Model):
"""
The Usage Names.
"""The Usage Names.
:param value: Gets a string describing the resource name.
:type value: str
Expand Down
Loading

0 comments on commit 191eb30

Please sign in to comment.