diff --git a/azure_sdk/lib/azure_sdk.rb b/azure_sdk/lib/azure_sdk.rb index 4de13c3d8b..3d3eabaa94 100644 --- a/azure_sdk/lib/azure_sdk.rb +++ b/azure_sdk/lib/azure_sdk.rb @@ -2,5 +2,5 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -require 'latest/latest_profile_client' require 'v2017_03_09/v2017_03_09_profile_client' +require 'latest/latest_profile_client' diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/check_name_availability_result.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/check_name_availability_result.rb index 47c6c2ecc4..5a22541791 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/check_name_availability_result.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/check_name_availability_result.rb @@ -33,7 +33,6 @@ class CheckNameAvailabilityResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityResult', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityResult', model_properties: { name_available: { - client_side_validation: true, required: false, serialized_name: 'nameAvailable', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, serialized_name: 'reason', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/custom_domain.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/custom_domain.rb index a2281d5adf..0611d8f924 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/custom_domain.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/custom_domain.rb @@ -28,7 +28,6 @@ class CustomDomain # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomain', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'CustomDomain', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, use_sub_domain: { - client_side_validation: true, required: false, serialized_name: 'useSubDomain', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/endpoints.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/endpoints.rb index b41510757d..7366cadba8 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/endpoints.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/endpoints.rb @@ -29,7 +29,6 @@ class Endpoints # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Endpoints', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'Endpoints', model_properties: { blob: { - client_side_validation: true, required: false, serialized_name: 'blob', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, queue: { - client_side_validation: true, required: false, serialized_name: 'queue', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, table: { - client_side_validation: true, required: false, serialized_name: 'table', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/resource.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/resource.rb index 68753b5b99..fe17cacacf 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/resource.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/resource.rb @@ -35,7 +35,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -52,7 +50,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -61,7 +58,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -70,7 +66,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -78,13 +73,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account.rb index d19d1c6a88..3f2b921162 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account.rb @@ -75,7 +75,6 @@ class StorageAccount < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccount', type: { @@ -83,7 +82,6 @@ def self.mapper() class_name: 'StorageAccount', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -92,7 +90,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -101,7 +98,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -110,7 +106,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -118,13 +113,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -134,7 +127,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -143,7 +135,6 @@ def self.mapper() } }, account_type: { - client_side_validation: true, required: false, serialized_name: 'properties.accountType', type: { @@ -152,7 +143,6 @@ def self.mapper() } }, primary_endpoints: { - client_side_validation: true, required: false, serialized_name: 'properties.primaryEndpoints', type: { @@ -161,7 +151,6 @@ def self.mapper() } }, primary_location: { - client_side_validation: true, required: false, serialized_name: 'properties.primaryLocation', type: { @@ -169,7 +158,6 @@ def self.mapper() } }, status_of_primary: { - client_side_validation: true, required: false, serialized_name: 'properties.statusOfPrimary', type: { @@ -178,7 +166,6 @@ def self.mapper() } }, last_geo_failover_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastGeoFailoverTime', type: { @@ -186,7 +173,6 @@ def self.mapper() } }, secondary_location: { - client_side_validation: true, required: false, serialized_name: 'properties.secondaryLocation', type: { @@ -194,7 +180,6 @@ def self.mapper() } }, status_of_secondary: { - client_side_validation: true, required: false, serialized_name: 'properties.statusOfSecondary', type: { @@ -203,7 +188,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -211,7 +195,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { @@ -220,7 +203,6 @@ def self.mapper() } }, secondary_endpoints: { - client_side_validation: true, required: false, serialized_name: 'properties.secondaryEndpoints', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb index 91b5cbae33..ad3bd01344 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb @@ -27,7 +27,6 @@ class StorageAccountCheckNameAvailabilityParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCheckNameAvailabilityParameters', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'StorageAccountCheckNameAvailabilityParameters', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -43,7 +41,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb index e8173866f5..115fdbbe5d 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb @@ -24,7 +24,6 @@ class StorageAccountCreateParameters < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCreateParameters', type: { @@ -32,7 +31,6 @@ def self.mapper() class_name: 'StorageAccountCreateParameters', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -41,7 +39,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -50,7 +47,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -59,7 +55,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -67,13 +62,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -83,7 +76,6 @@ def self.mapper() } }, account_type: { - client_side_validation: true, required: false, serialized_name: 'properties.accountType', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_keys.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_keys.rb index a248f46224..7f5b64dec4 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_keys.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_keys.rb @@ -25,7 +25,6 @@ class StorageAccountKeys # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountKeys', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'StorageAccountKeys', model_properties: { key1: { - client_side_validation: true, required: false, serialized_name: 'key1', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, key2: { - client_side_validation: true, required: false, serialized_name: 'key2', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_list_result.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_list_result.rb index 78687ff0e8..82cc0fcbab 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_list_result.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_list_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountListResult', type: { @@ -67,13 +66,11 @@ def self.mapper() class_name: 'StorageAccountListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StorageAccountElementType', type: { @@ -84,7 +81,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb index 53f4e1dee2..1a8ade34bf 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb @@ -23,7 +23,6 @@ class StorageAccountRegenerateKeyParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountRegenerateKeyParameters', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'StorageAccountRegenerateKeyParameters', model_properties: { key_name: { - client_side_validation: true, required: false, serialized_name: 'keyName', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb index d9caeb7160..d5af8b4aa8 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb @@ -32,7 +32,6 @@ class StorageAccountUpdateParameters < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountUpdateParameters', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'StorageAccountUpdateParameters', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -49,7 +47,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -58,7 +55,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -67,7 +63,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -75,13 +70,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -91,7 +84,6 @@ def self.mapper() } }, account_type: { - client_side_validation: true, required: false, serialized_name: 'properties.accountType', type: { @@ -100,7 +92,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/sub_resource.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/sub_resource.rb index 30a23a3c31..55f621b51d 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/sub_resource.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/sub_resource.rb @@ -23,7 +23,6 @@ class SubResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubResource', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'SubResource', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/usage.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/usage.rb index 710bb2595a..03b0b10614 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/usage.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/usage.rb @@ -35,7 +35,6 @@ class Usage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Usage', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Usage', model_properties: { unit: { - client_side_validation: true, required: false, serialized_name: 'unit', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: false, serialized_name: 'currentValue', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: false, serialized_name: 'limit', type: { @@ -68,7 +64,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/usage_list_result.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/usage_list_result.rb index a97d07d8d1..338f60eaed 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/usage_list_result.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/usage_list_result.rb @@ -22,7 +22,6 @@ class UsageListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageListResult', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'UsageListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UsageElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/usage_name.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/usage_name.rb index b9b630a597..be1fc9d6d1 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/usage_name.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/models/usage_name.rb @@ -25,7 +25,6 @@ class UsageName # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageName', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UsageName', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, localized_value: { - client_side_validation: true, required: false, serialized_name: 'localizedValue', type: { diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_accounts.rb index dd6af902ca..b3fd130dd8 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers:nil) - response = check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability(account_name, custom_headers = nil) + response = check_name_availability_async(account_name, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def check_name_availability(account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers:nil) - check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers = nil) + check_name_availability_async(account_name, custom_headers).value! end # @@ -66,19 +66,20 @@ def check_name_availability_with_http_info(account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers:nil) + def check_name_availability_async(account_name, custom_headers = nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2015_05_01_preview::Models::StorageAccountCheckNameAvailabilityParameters.mapper() request_content = @client.serialize(request_mapper, account_name) @@ -144,8 +145,8 @@ def check_name_availability_async(account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers:nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers = nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -163,9 +164,9 @@ def create(resource_group_name, account_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def create_async(resource_group_name, account_name, parameters, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -193,8 +194,8 @@ def create_async(resource_group_name, account_name, parameters, custom_headers:n # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers:nil) - response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete(resource_group_name, account_name, custom_headers = nil) + response = delete_async(resource_group_name, account_name, custom_headers).value! nil end @@ -211,8 +212,8 @@ def delete(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) - delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) + delete_async(resource_group_name, account_name, custom_headers).value! end # @@ -228,7 +229,7 @@ def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers:nil) + def delete_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -236,7 +237,6 @@ def delete_async(resource_group_name, account_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -286,8 +286,8 @@ def delete_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers:nil) - response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers = nil) + response = get_properties_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -306,8 +306,8 @@ def get_properties(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) - get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) + get_properties_async(resource_group_name, account_name, custom_headers).value! end # @@ -325,7 +325,7 @@ def get_properties_with_http_info(resource_group_name, account_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers:nil) + def get_properties_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -333,7 +333,6 @@ def get_properties_async(resource_group_name, account_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -402,8 +401,8 @@ def get_properties_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers:nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers = nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -431,8 +430,8 @@ def update(resource_group_name, account_name, parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + update_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -459,7 +458,7 @@ def update_with_http_info(resource_group_name, account_name, parameters, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers:nil) + def update_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -468,12 +467,13 @@ def update_async(resource_group_name, account_name, parameters, custom_headers:n request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2015_05_01_preview::Models::StorageAccountUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -530,8 +530,8 @@ def update_async(resource_group_name, account_name, parameters, custom_headers:n # # @return [StorageAccountKeys] operation results. # - def list_keys(resource_group_name, account_name, custom_headers:nil) - response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers = nil) + response = list_keys_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -545,8 +545,8 @@ def list_keys(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) - list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) + list_keys_async(resource_group_name, account_name, custom_headers).value! end # @@ -559,7 +559,7 @@ def list_keys_with_http_info(resource_group_name, account_name, custom_headers:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers:nil) + def list_keys_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -567,7 +567,6 @@ def list_keys_async(resource_group_name, account_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -621,8 +620,8 @@ def list_keys_async(resource_group_name, account_name, custom_headers:nil) # # @return [Array] operation results. # - def list(custom_headers:nil) - first_page = list_as_lazy(custom_headers:custom_headers) + def list(custom_headers = nil) + first_page = list_as_lazy(custom_headers) first_page.get_all_items end @@ -635,8 +634,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -648,13 +647,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -710,8 +708,8 @@ def list_async(custom_headers:nil) # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) + def list_by_resource_group(resource_group_name, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) first_page.get_all_items end @@ -726,8 +724,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -741,14 +739,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -808,8 +805,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [StorageAccountKeys] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! response.body unless response.nil? end @@ -828,8 +825,8 @@ def regenerate_key(resource_group_name, account_name, regenerate_key, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! end # @@ -847,7 +844,7 @@ def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'regenerate_key is nil' if regenerate_key.nil? @@ -856,12 +853,13 @@ def regenerate_key_async(resource_group_name, account_name, regenerate_key, cust request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2015_05_01_preview::Models::StorageAccountRegenerateKeyParameters.mapper() request_content = @client.serialize(request_mapper, regenerate_key) @@ -927,8 +925,8 @@ def regenerate_key_async(resource_group_name, account_name, regenerate_key, cust # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -951,8 +949,8 @@ def begin_create(resource_group_name, account_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -974,7 +972,7 @@ def begin_create_with_http_info(resource_group_name, account_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -983,12 +981,13 @@ def begin_create_async(resource_group_name, account_name, parameters, custom_hea request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2015_05_01_preview::Models::StorageAccountCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1046,8 +1045,8 @@ def begin_create_async(resource_group_name, account_name, parameters, custom_hea # # @return [StorageAccountListResult] operation results. # - def list_next(next_page_link, custom_headers:nil) - response = list_next_async(next_page_link, custom_headers:custom_headers).value! + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1062,8 +1061,8 @@ def list_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers:nil) - list_next_async(next_page_link, custom_headers:custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! end # @@ -1077,12 +1076,11 @@ def list_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers:nil) + def list_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1137,8 +1135,8 @@ def list_next_async(next_page_link, custom_headers:nil) # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers:nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers = nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1153,8 +1151,8 @@ def list_by_resource_group_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) - list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) + list_by_resource_group_next_async(next_page_link, custom_headers).value! end # @@ -1168,12 +1166,11 @@ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers:nil) + def list_by_resource_group_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1227,12 +1224,12 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # @return [StorageAccountListResult] which provide lazy access to pages of the # response. # - def list_as_lazy(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list_as_lazy(custom_headers = nil) + response = list_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers:custom_headers) + list_next_async(next_page_link, custom_headers) end page end @@ -1250,12 +1247,12 @@ def list_as_lazy(custom_headers:nil) # @return [StorageAccountListResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb index e60ed3c47f..246e3d6cd8 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb @@ -110,9 +110,6 @@ def make_request_async(method, path, options = {}) fail ArgumentError, 'path is nil' if path.nil? request_url = options[:base_url] || @base_url - if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?) - @request_headers['Content-Type'] = options[:headers]['Content-Type'] - end request_headers = @request_headers request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? @@ -129,7 +126,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_storage' - sdk_information = "#{sdk_information}/0.16.1" + if defined? Azure::Storage::Mgmt::V2015_05_01_preview::VERSION + sdk_information = "#{sdk_information}/#{Azure::Storage::Mgmt::V2015_05_01_preview::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/usage_operations.rb index ebabe3d6c2..9d85fca041 100644 --- a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [UsageListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -57,13 +57,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/version.rb b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/version.rb new file mode 100644 index 0000000000..3846a33325 --- /dev/null +++ b/management/azure_mgmt_storage/lib/2015-05-01-preview/generated/azure_mgmt_storage/version.rb @@ -0,0 +1,8 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Storage::Mgmt::V2015_05_01_preview + VERSION = '0.16.1' +end diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/check_name_availability_result.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/check_name_availability_result.rb index 051d524a9b..61d81a8251 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/check_name_availability_result.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/check_name_availability_result.rb @@ -33,7 +33,6 @@ class CheckNameAvailabilityResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityResult', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityResult', model_properties: { name_available: { - client_side_validation: true, required: false, serialized_name: 'nameAvailable', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, serialized_name: 'reason', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/custom_domain.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/custom_domain.rb index 410b99b0f6..00d4fd0a73 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/custom_domain.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/custom_domain.rb @@ -27,7 +27,6 @@ class CustomDomain # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomain', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'CustomDomain', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -43,7 +41,6 @@ def self.mapper() } }, use_sub_domain: { - client_side_validation: true, required: false, serialized_name: 'useSubDomain', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/endpoints.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/endpoints.rb index f24196170f..c5ed538d97 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/endpoints.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/endpoints.rb @@ -32,7 +32,6 @@ class Endpoints # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Endpoints', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'Endpoints', model_properties: { blob: { - client_side_validation: true, required: false, serialized_name: 'blob', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, queue: { - client_side_validation: true, required: false, serialized_name: 'queue', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, table: { - client_side_validation: true, required: false, serialized_name: 'table', type: { @@ -64,7 +60,6 @@ def self.mapper() } }, file: { - client_side_validation: true, required: false, serialized_name: 'file', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/resource.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/resource.rb index a6b4f80f4e..0a8e60fa5c 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/resource.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/resource.rb @@ -34,7 +34,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -51,7 +49,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -60,7 +57,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -69,7 +65,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -77,13 +72,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb index 76c47f3184..abb9039257 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account.rb @@ -74,7 +74,6 @@ class StorageAccount < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccount', type: { @@ -82,7 +81,6 @@ def self.mapper() class_name: 'StorageAccount', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -91,7 +89,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -100,7 +97,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -109,7 +105,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -117,13 +112,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -133,7 +126,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -142,7 +134,6 @@ def self.mapper() } }, account_type: { - client_side_validation: true, required: false, serialized_name: 'properties.accountType', type: { @@ -151,7 +142,6 @@ def self.mapper() } }, primary_endpoints: { - client_side_validation: true, required: false, serialized_name: 'properties.primaryEndpoints', type: { @@ -160,7 +150,6 @@ def self.mapper() } }, primary_location: { - client_side_validation: true, required: false, serialized_name: 'properties.primaryLocation', type: { @@ -168,7 +157,6 @@ def self.mapper() } }, status_of_primary: { - client_side_validation: true, required: false, serialized_name: 'properties.statusOfPrimary', type: { @@ -177,7 +165,6 @@ def self.mapper() } }, last_geo_failover_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastGeoFailoverTime', type: { @@ -185,7 +172,6 @@ def self.mapper() } }, secondary_location: { - client_side_validation: true, required: false, serialized_name: 'properties.secondaryLocation', type: { @@ -193,7 +179,6 @@ def self.mapper() } }, status_of_secondary: { - client_side_validation: true, required: false, serialized_name: 'properties.statusOfSecondary', type: { @@ -202,7 +187,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -210,7 +194,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { @@ -219,7 +202,6 @@ def self.mapper() } }, secondary_endpoints: { - client_side_validation: true, required: false, serialized_name: 'properties.secondaryEndpoints', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb index c4de54b440..473681a81f 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb @@ -26,7 +26,6 @@ class StorageAccountCheckNameAvailabilityParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCheckNameAvailabilityParameters', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'StorageAccountCheckNameAvailabilityParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', default_value: 'Microsoft.Storage/storageAccounts', diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb index 1f5dd93ebd..74c3308cdc 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb @@ -40,7 +40,6 @@ class StorageAccountCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCreateParameters', type: { @@ -48,7 +47,6 @@ def self.mapper() class_name: 'StorageAccountCreateParameters', model_properties: { location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -56,13 +54,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -72,7 +68,6 @@ def self.mapper() } }, account_type: { - client_side_validation: true, required: true, serialized_name: 'properties.accountType', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_keys.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_keys.rb index 5a13b6caa9..b237b6d482 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_keys.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_keys.rb @@ -25,7 +25,6 @@ class StorageAccountKeys # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountKeys', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'StorageAccountKeys', model_properties: { key1: { - client_side_validation: true, required: false, serialized_name: 'key1', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, key2: { - client_side_validation: true, required: false, serialized_name: 'key2', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_list_result.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_list_result.rb index 68e1d6210e..64cb4113d5 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_list_result.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_list_result.rb @@ -23,7 +23,6 @@ class StorageAccountListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'StorageAccountListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StorageAccountElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb index 06e2af17e1..699fd11386 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb @@ -22,7 +22,6 @@ class StorageAccountRegenerateKeyParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountRegenerateKeyParameters', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'StorageAccountRegenerateKeyParameters', model_properties: { key_name: { - client_side_validation: true, required: true, serialized_name: 'keyName', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb index e16e273c95..46a1889d40 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb @@ -35,7 +35,6 @@ class StorageAccountUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountUpdateParameters', type: { @@ -43,13 +42,11 @@ def self.mapper() class_name: 'StorageAccountUpdateParameters', model_properties: { tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -59,7 +56,6 @@ def self.mapper() } }, account_type: { - client_side_validation: true, required: false, serialized_name: 'properties.accountType', type: { @@ -68,7 +64,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/usage.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/usage.rb index c411dfb546..84f2a8c6d4 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/usage.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/usage.rb @@ -35,7 +35,6 @@ class Usage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Usage', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Usage', model_properties: { unit: { - client_side_validation: true, required: true, serialized_name: 'unit', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: true, serialized_name: 'currentValue', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: true, serialized_name: 'limit', type: { @@ -68,7 +64,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/usage_list_result.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/usage_list_result.rb index 2b77dff844..18728e0700 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/usage_list_result.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/usage_list_result.rb @@ -22,7 +22,6 @@ class UsageListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageListResult', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'UsageListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UsageElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/usage_name.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/usage_name.rb index 65a7802750..db92dbfcf2 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/usage_name.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/models/usage_name.rb @@ -25,7 +25,6 @@ class UsageName # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageName', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UsageName', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, localized_value: { - client_side_validation: true, required: false, serialized_name: 'localizedValue', type: { diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/storage_accounts.rb index bdc35f03c8..03863d667c 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers:nil) - response = check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability(account_name, custom_headers = nil) + response = check_name_availability_async(account_name, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def check_name_availability(account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers:nil) - check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers = nil) + check_name_availability_async(account_name, custom_headers).value! end # @@ -66,19 +66,20 @@ def check_name_availability_with_http_info(account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers:nil) + def check_name_availability_async(account_name, custom_headers = nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountCheckNameAvailabilityParameters.mapper() request_content = @client.serialize(request_mapper, account_name) @@ -144,8 +145,8 @@ def check_name_availability_async(account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers:nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers = nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -163,9 +164,9 @@ def create(resource_group_name, account_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def create_async(resource_group_name, account_name, parameters, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -193,8 +194,8 @@ def create_async(resource_group_name, account_name, parameters, custom_headers:n # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers:nil) - response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete(resource_group_name, account_name, custom_headers = nil) + response = delete_async(resource_group_name, account_name, custom_headers).value! nil end @@ -211,8 +212,8 @@ def delete(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) - delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) + delete_async(resource_group_name, account_name, custom_headers).value! end # @@ -228,20 +229,14 @@ def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers:nil) + def delete_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +286,8 @@ def delete_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers:nil) - response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers = nil) + response = get_properties_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -311,8 +306,8 @@ def get_properties(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) - get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) + get_properties_async(resource_group_name, account_name, custom_headers).value! end # @@ -330,20 +325,14 @@ def get_properties_with_http_info(resource_group_name, account_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers:nil) + def get_properties_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -411,8 +400,8 @@ def get_properties_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers:nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers = nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -439,8 +428,8 @@ def update(resource_group_name, account_name, parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + update_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -466,26 +455,22 @@ def update_with_http_info(resource_group_name, account_name, parameters, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers:nil) + def update_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -541,8 +526,8 @@ def update_async(resource_group_name, account_name, parameters, custom_headers:n # # @return [StorageAccountListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -555,8 +540,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -568,13 +553,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -630,8 +614,8 @@ def list_async(custom_headers:nil) # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -646,8 +630,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -661,17 +645,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -729,8 +709,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [StorageAccountKeys] operation results. # - def list_keys(resource_group_name, account_name, custom_headers:nil) - response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers = nil) + response = list_keys_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -747,8 +727,8 @@ def list_keys(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) - list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) + list_keys_async(resource_group_name, account_name, custom_headers).value! end # @@ -764,20 +744,14 @@ def list_keys_with_http_info(resource_group_name, account_name, custom_headers:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers:nil) + def list_keys_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -837,8 +811,8 @@ def list_keys_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccountKeys] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! response.body unless response.nil? end @@ -857,8 +831,8 @@ def regenerate_key(resource_group_name, account_name, regenerate_key, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! end # @@ -876,26 +850,22 @@ def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'regenerate_key is nil' if regenerate_key.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountRegenerateKeyParameters.mapper() request_content = @client.serialize(request_mapper, regenerate_key) @@ -961,8 +931,8 @@ def regenerate_key_async(resource_group_name, account_name, regenerate_key, cust # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -985,8 +955,8 @@ def begin_create(resource_group_name, account_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -1008,26 +978,22 @@ def begin_create_with_http_info(resource_group_name, account_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb index 3a8f6f3ded..d9ce372e75 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb @@ -110,9 +110,6 @@ def make_request_async(method, path, options = {}) fail ArgumentError, 'path is nil' if path.nil? request_url = options[:base_url] || @base_url - if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?) - @request_headers['Content-Type'] = options[:headers]['Content-Type'] - end request_headers = @request_headers request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? @@ -129,7 +126,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_storage' - sdk_information = "#{sdk_information}/0.16.1" + if defined? Azure::Storage::Mgmt::V2015_06_15::VERSION + sdk_information = "#{sdk_information}/#{Azure::Storage::Mgmt::V2015_06_15::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/usage_operations.rb index 1a955f3604..75e047d5bb 100644 --- a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [UsageListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -57,13 +57,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/version.rb b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/version.rb new file mode 100644 index 0000000000..7eb169dd57 --- /dev/null +++ b/management/azure_mgmt_storage/lib/2015-06-15/generated/azure_mgmt_storage/version.rb @@ -0,0 +1,8 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Storage::Mgmt::V2015_06_15 + VERSION = '0.16.1' +end diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb index 4e0f551d78..7d75a2cfa9 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb @@ -33,7 +33,6 @@ class CheckNameAvailabilityResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityResult', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityResult', model_properties: { name_available: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'nameAvailable', @@ -50,7 +48,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'reason', @@ -60,7 +57,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/custom_domain.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/custom_domain.rb index 45068ef14f..c3722e9f39 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/custom_domain.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/custom_domain.rb @@ -28,7 +28,6 @@ class CustomDomain # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomain', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'CustomDomain', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, use_sub_domain: { - client_side_validation: true, required: false, serialized_name: 'useSubDomain', type: { diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/encryption.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/encryption.rb index 1bdb04635c..f48b6d9df7 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/encryption.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/encryption.rb @@ -27,7 +27,6 @@ class Encryption # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Encryption', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'Encryption', model_properties: { services: { - client_side_validation: true, required: false, serialized_name: 'services', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, key_source: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'keySource', diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/encryption_service.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/encryption_service.rb index 863aea77a0..2f73480082 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/encryption_service.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/encryption_service.rb @@ -29,7 +29,6 @@ class EncryptionService # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EncryptionService', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'EncryptionService', model_properties: { enabled: { - client_side_validation: true, required: false, serialized_name: 'enabled', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, last_enabled_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'lastEnabledTime', diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/encryption_services.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/encryption_services.rb index 300c5a69c0..eb9dd04d35 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/encryption_services.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/encryption_services.rb @@ -23,7 +23,6 @@ class EncryptionServices # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EncryptionServices', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'EncryptionServices', model_properties: { blob: { - client_side_validation: true, required: false, serialized_name: 'blob', type: { diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/endpoints.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/endpoints.rb index e39bf1aee1..01cfa91612 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/endpoints.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/endpoints.rb @@ -32,7 +32,6 @@ class Endpoints # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Endpoints', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'Endpoints', model_properties: { blob: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'blob', @@ -49,7 +47,6 @@ def self.mapper() } }, queue: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'queue', @@ -58,7 +55,6 @@ def self.mapper() } }, table: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'table', @@ -67,7 +63,6 @@ def self.mapper() } }, file: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'file', diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/resource.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/resource.rb index 074375c8b5..18db17440f 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/resource.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/resource.rb @@ -36,7 +36,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -53,7 +51,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -62,7 +59,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -71,7 +67,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -79,13 +74,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/sku.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/sku.rb index a9dc79e5ad..b121b1bbb8 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/sku.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/sku.rb @@ -29,7 +29,6 @@ class Sku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Sku', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'Sku', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, tier: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'tier', diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account.rb index aad15c4fa3..bd8cbed599 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account.rb @@ -85,7 +85,6 @@ class StorageAccount < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccount', type: { @@ -93,7 +92,6 @@ def self.mapper() class_name: 'StorageAccount', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -102,7 +100,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -111,7 +108,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -120,7 +116,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -128,13 +123,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -144,7 +137,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'sku', @@ -154,7 +146,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'kind', @@ -164,7 +155,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -174,7 +164,6 @@ def self.mapper() } }, primary_endpoints: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.primaryEndpoints', @@ -184,7 +173,6 @@ def self.mapper() } }, primary_location: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.primaryLocation', @@ -193,7 +181,6 @@ def self.mapper() } }, status_of_primary: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.statusOfPrimary', @@ -203,7 +190,6 @@ def self.mapper() } }, last_geo_failover_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastGeoFailoverTime', @@ -212,7 +198,6 @@ def self.mapper() } }, secondary_location: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.secondaryLocation', @@ -221,7 +206,6 @@ def self.mapper() } }, status_of_secondary: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.statusOfSecondary', @@ -231,7 +215,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -240,7 +223,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.customDomain', @@ -250,7 +232,6 @@ def self.mapper() } }, secondary_endpoints: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.secondaryEndpoints', @@ -260,7 +241,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.encryption', @@ -270,7 +250,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.accessTier', diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb index d40d4d05a5..860c6e8a05 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb @@ -27,7 +27,6 @@ class StorageAccountCheckNameAvailabilityParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCheckNameAvailabilityParameters', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'StorageAccountCheckNameAvailabilityParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -43,7 +41,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb index ad16f15f0f..6aa3a60221 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb @@ -57,7 +57,6 @@ class StorageAccountCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCreateParameters', type: { @@ -65,7 +64,6 @@ def self.mapper() class_name: 'StorageAccountCreateParameters', model_properties: { sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -74,7 +72,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: true, serialized_name: 'kind', type: { @@ -83,7 +80,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -91,13 +87,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -107,7 +101,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { @@ -116,7 +109,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, serialized_name: 'properties.encryption', type: { @@ -125,7 +117,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, serialized_name: 'properties.accessTier', type: { diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_key.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_key.rb index d770741600..faed8288f7 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_key.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_key.rb @@ -29,7 +29,6 @@ class StorageAccountKey # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountKey', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'StorageAccountKey', model_properties: { key_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'keyName', @@ -46,7 +44,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', @@ -55,7 +52,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'permissions', diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb index d1060871bc..c1baa31770 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb @@ -23,7 +23,6 @@ class StorageAccountListKeysResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountListKeysResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageAccountListKeysResult', model_properties: { keys: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'keys', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StorageAccountKeyElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb index 9d21399bb3..3cdf3a96d0 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb @@ -23,7 +23,6 @@ class StorageAccountListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountListResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageAccountListResult', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StorageAccountElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb index 29ea7349e8..707a58600d 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb @@ -23,7 +23,6 @@ class StorageAccountRegenerateKeyParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountRegenerateKeyParameters', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'StorageAccountRegenerateKeyParameters', model_properties: { key_name: { - client_side_validation: true, required: true, serialized_name: 'keyName', type: { diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb index 0dbf3a1f81..7ce04d08ae 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb @@ -48,7 +48,6 @@ class StorageAccountUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountUpdateParameters', type: { @@ -56,7 +55,6 @@ def self.mapper() class_name: 'StorageAccountUpdateParameters', model_properties: { sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { @@ -65,13 +63,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -81,7 +77,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { @@ -90,7 +85,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, serialized_name: 'properties.encryption', type: { @@ -99,7 +93,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, serialized_name: 'properties.accessTier', type: { diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/usage.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/usage.rb index bf326673a1..11b2318570 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/usage.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/usage.rb @@ -35,7 +35,6 @@ class Usage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Usage', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Usage', model_properties: { unit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'unit', @@ -53,7 +51,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'currentValue', @@ -62,7 +59,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'limit', @@ -71,7 +67,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/usage_list_result.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/usage_list_result.rb index 8468a05c43..e7e0f194af 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/usage_list_result.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/usage_list_result.rb @@ -23,7 +23,6 @@ class UsageListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'UsageListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UsageElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/usage_name.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/usage_name.rb index 36585f3fda..ee425b6726 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/usage_name.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/models/usage_name.rb @@ -25,7 +25,6 @@ class UsageName # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageName', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UsageName', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', @@ -42,7 +40,6 @@ def self.mapper() } }, localized_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'localizedValue', diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/storage_accounts.rb index ee60e390be..fe1f3f3b42 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers:nil) - response = check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability(account_name, custom_headers = nil) + response = check_name_availability_async(account_name, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def check_name_availability(account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers:nil) - check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers = nil) + check_name_availability_async(account_name, custom_headers).value! end # @@ -66,19 +66,20 @@ def check_name_availability_with_http_info(account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers:nil) + def check_name_availability_async(account_name, custom_headers = nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters.mapper() request_content = @client.serialize(request_mapper, account_name) @@ -144,8 +145,8 @@ def check_name_availability_async(account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers:nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers = nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -163,9 +164,9 @@ def create(resource_group_name, account_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def create_async(resource_group_name, account_name, parameters, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -193,8 +194,8 @@ def create_async(resource_group_name, account_name, parameters, custom_headers:n # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers:nil) - response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete(resource_group_name, account_name, custom_headers = nil) + response = delete_async(resource_group_name, account_name, custom_headers).value! nil end @@ -211,8 +212,8 @@ def delete(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) - delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) + delete_async(resource_group_name, account_name, custom_headers).value! end # @@ -228,17 +229,14 @@ def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers:nil) + def delete_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -288,8 +286,8 @@ def delete_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers:nil) - response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers = nil) + response = get_properties_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -308,8 +306,8 @@ def get_properties(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) - get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) + get_properties_async(resource_group_name, account_name, custom_headers).value! end # @@ -327,17 +325,14 @@ def get_properties_with_http_info(resource_group_name, account_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers:nil) + def get_properties_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -405,8 +400,8 @@ def get_properties_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers:nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers = nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -433,8 +428,8 @@ def update(resource_group_name, account_name, parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + update_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -460,23 +455,22 @@ def update_with_http_info(resource_group_name, account_name, parameters, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers:nil) + def update_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -532,8 +526,8 @@ def update_async(resource_group_name, account_name, parameters, custom_headers:n # # @return [StorageAccountListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -546,8 +540,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -559,13 +553,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -621,8 +614,8 @@ def list_async(custom_headers:nil) # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -637,8 +630,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -652,14 +645,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -717,8 +709,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [StorageAccountListKeysResult] operation results. # - def list_keys(resource_group_name, account_name, custom_headers:nil) - response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers = nil) + response = list_keys_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -735,8 +727,8 @@ def list_keys(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) - list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) + list_keys_async(resource_group_name, account_name, custom_headers).value! end # @@ -752,17 +744,14 @@ def list_keys_with_http_info(resource_group_name, account_name, custom_headers:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers:nil) + def list_keys_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -822,8 +811,8 @@ def list_keys_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccountListKeysResult] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! response.body unless response.nil? end @@ -842,8 +831,8 @@ def regenerate_key(resource_group_name, account_name, regenerate_key, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! end # @@ -861,23 +850,22 @@ def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'regenerate_key is nil' if regenerate_key.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters.mapper() request_content = @client.serialize(request_mapper, regenerate_key) @@ -943,8 +931,8 @@ def regenerate_key_async(resource_group_name, account_name, regenerate_key, cust # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -967,8 +955,8 @@ def begin_create(resource_group_name, account_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -990,23 +978,22 @@ def begin_create_with_http_info(resource_group_name, account_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb index 27c1e61c59..c44ac7bce1 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb @@ -110,9 +110,6 @@ def make_request_async(method, path, options = {}) fail ArgumentError, 'path is nil' if path.nil? request_url = options[:base_url] || @base_url - if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?) - @request_headers['Content-Type'] = options[:headers]['Content-Type'] - end request_headers = @request_headers request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? @@ -129,7 +126,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_storage' - sdk_information = "#{sdk_information}/0.16.1" + if defined? Azure::Storage::Mgmt::V2016_01_01::VERSION + sdk_information = "#{sdk_information}/#{Azure::Storage::Mgmt::V2016_01_01::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/usage_operations.rb index 94e9435be6..ac57e75599 100644 --- a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [UsageListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -57,13 +57,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/version.rb b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/version.rb new file mode 100644 index 0000000000..fcda72468c --- /dev/null +++ b/management/azure_mgmt_storage/lib/2016-01-01/generated/azure_mgmt_storage/version.rb @@ -0,0 +1,8 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Storage::Mgmt::V2016_01_01 + VERSION = '0.16.1' +end diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb index 893ab58d03..dca7e658c7 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb @@ -55,7 +55,6 @@ class AccountSasParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AccountSasParameters', type: { @@ -63,7 +62,6 @@ def self.mapper() class_name: 'AccountSasParameters', model_properties: { services: { - client_side_validation: true, required: true, serialized_name: 'signedServices', type: { @@ -71,7 +69,6 @@ def self.mapper() } }, resource_types: { - client_side_validation: true, required: true, serialized_name: 'signedResourceTypes', type: { @@ -79,7 +76,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: true, serialized_name: 'signedPermission', type: { @@ -87,7 +83,6 @@ def self.mapper() } }, ipaddress_or_range: { - client_side_validation: true, required: false, serialized_name: 'signedIp', type: { @@ -95,7 +90,6 @@ def self.mapper() } }, protocols: { - client_side_validation: true, required: false, serialized_name: 'signedProtocol', type: { @@ -104,7 +98,6 @@ def self.mapper() } }, shared_access_start_time: { - client_side_validation: true, required: false, serialized_name: 'signedStart', type: { @@ -112,7 +105,6 @@ def self.mapper() } }, shared_access_expiry_time: { - client_side_validation: true, required: true, serialized_name: 'signedExpiry', type: { @@ -120,7 +112,6 @@ def self.mapper() } }, key_to_sign: { - client_side_validation: true, required: false, serialized_name: 'keyToSign', type: { diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb index 2f1414bf3f..22476337a3 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb @@ -33,7 +33,6 @@ class CheckNameAvailabilityResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityResult', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityResult', model_properties: { name_available: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'nameAvailable', @@ -50,7 +48,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'reason', @@ -60,7 +57,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/custom_domain.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/custom_domain.rb index a15d0c9c4e..8911fef852 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/custom_domain.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/custom_domain.rb @@ -28,7 +28,6 @@ class CustomDomain # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomain', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'CustomDomain', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, use_sub_domain: { - client_side_validation: true, required: false, serialized_name: 'useSubDomain', type: { diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/encryption.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/encryption.rb index 4d432d6024..26fc86bd71 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/encryption.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/encryption.rb @@ -27,7 +27,6 @@ class Encryption # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Encryption', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'Encryption', model_properties: { services: { - client_side_validation: true, required: false, serialized_name: 'services', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, key_source: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'keySource', diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/encryption_service.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/encryption_service.rb index 6dc720ee7a..afffd8fad0 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/encryption_service.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/encryption_service.rb @@ -29,7 +29,6 @@ class EncryptionService # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EncryptionService', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'EncryptionService', model_properties: { enabled: { - client_side_validation: true, required: false, serialized_name: 'enabled', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, last_enabled_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'lastEnabledTime', diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/encryption_services.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/encryption_services.rb index 732fe51fc2..f1054962e0 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/encryption_services.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/encryption_services.rb @@ -35,7 +35,6 @@ class EncryptionServices # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EncryptionServices', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'EncryptionServices', model_properties: { blob: { - client_side_validation: true, required: false, serialized_name: 'blob', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, file: { - client_side_validation: true, required: false, serialized_name: 'file', type: { @@ -61,7 +58,6 @@ def self.mapper() } }, table: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'table', @@ -71,7 +67,6 @@ def self.mapper() } }, queue: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'queue', diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/endpoints.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/endpoints.rb index be4e403479..2319c694af 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/endpoints.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/endpoints.rb @@ -32,7 +32,6 @@ class Endpoints # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Endpoints', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'Endpoints', model_properties: { blob: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'blob', @@ -49,7 +47,6 @@ def self.mapper() } }, queue: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'queue', @@ -58,7 +55,6 @@ def self.mapper() } }, table: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'table', @@ -67,7 +63,6 @@ def self.mapper() } }, file: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'file', diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb index 93b98937bb..1e5a312a5b 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb @@ -22,7 +22,6 @@ class ListAccountSasResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ListAccountSasResponse', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ListAccountSasResponse', model_properties: { account_sas_token: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'accountSasToken', diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb index 604365ad35..beb7e58895 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb @@ -22,7 +22,6 @@ class ListServiceSasResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ListServiceSasResponse', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ListServiceSasResponse', model_properties: { service_sas_token: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'serviceSasToken', diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/resource.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/resource.rb index 584dde06f8..7b31c453ed 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/resource.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/resource.rb @@ -35,7 +35,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -52,7 +50,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -61,7 +58,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -70,7 +66,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -78,13 +73,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb index a8a8e011d0..98f04ac42e 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb @@ -83,7 +83,6 @@ class ServiceSasParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ServiceSasParameters', type: { @@ -91,7 +90,6 @@ def self.mapper() class_name: 'ServiceSasParameters', model_properties: { canonicalized_resource: { - client_side_validation: true, required: true, serialized_name: 'canonicalizedResource', type: { @@ -99,7 +97,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: true, serialized_name: 'signedResource', type: { @@ -107,7 +104,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: false, serialized_name: 'signedPermission', type: { @@ -115,7 +111,6 @@ def self.mapper() } }, ipaddress_or_range: { - client_side_validation: true, required: false, serialized_name: 'signedIp', type: { @@ -123,7 +118,6 @@ def self.mapper() } }, protocols: { - client_side_validation: true, required: false, serialized_name: 'signedProtocol', type: { @@ -132,7 +126,6 @@ def self.mapper() } }, shared_access_start_time: { - client_side_validation: true, required: false, serialized_name: 'signedStart', type: { @@ -140,7 +133,6 @@ def self.mapper() } }, shared_access_expiry_time: { - client_side_validation: true, required: false, serialized_name: 'signedExpiry', type: { @@ -148,7 +140,6 @@ def self.mapper() } }, identifier: { - client_side_validation: true, required: false, serialized_name: 'signedIdentifier', constraints: { @@ -159,7 +150,6 @@ def self.mapper() } }, partition_key_start: { - client_side_validation: true, required: false, serialized_name: 'startPk', type: { @@ -167,7 +157,6 @@ def self.mapper() } }, partition_key_end: { - client_side_validation: true, required: false, serialized_name: 'endPk', type: { @@ -175,7 +164,6 @@ def self.mapper() } }, row_key_start: { - client_side_validation: true, required: false, serialized_name: 'startRk', type: { @@ -183,7 +171,6 @@ def self.mapper() } }, row_key_end: { - client_side_validation: true, required: false, serialized_name: 'endRk', type: { @@ -191,7 +178,6 @@ def self.mapper() } }, key_to_sign: { - client_side_validation: true, required: false, serialized_name: 'keyToSign', type: { @@ -199,7 +185,6 @@ def self.mapper() } }, cache_control: { - client_side_validation: true, required: false, serialized_name: 'rscc', type: { @@ -207,7 +192,6 @@ def self.mapper() } }, content_disposition: { - client_side_validation: true, required: false, serialized_name: 'rscd', type: { @@ -215,7 +199,6 @@ def self.mapper() } }, content_encoding: { - client_side_validation: true, required: false, serialized_name: 'rsce', type: { @@ -223,7 +206,6 @@ def self.mapper() } }, content_language: { - client_side_validation: true, required: false, serialized_name: 'rscl', type: { @@ -231,7 +213,6 @@ def self.mapper() } }, content_type: { - client_side_validation: true, required: false, serialized_name: 'rsct', type: { diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/sku.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/sku.rb index c0eb9ee4cc..8f0cec1953 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/sku.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/sku.rb @@ -29,7 +29,6 @@ class Sku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Sku', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'Sku', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, tier: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'tier', diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account.rb index 9dcb418e33..8323fbfbf5 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account.rb @@ -89,7 +89,6 @@ class StorageAccount < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccount', type: { @@ -97,7 +96,6 @@ def self.mapper() class_name: 'StorageAccount', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -106,7 +104,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -115,7 +112,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -124,7 +120,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -132,13 +127,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -148,7 +141,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'sku', @@ -158,7 +150,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'kind', @@ -168,7 +159,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -178,7 +168,6 @@ def self.mapper() } }, primary_endpoints: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.primaryEndpoints', @@ -188,7 +177,6 @@ def self.mapper() } }, primary_location: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.primaryLocation', @@ -197,7 +185,6 @@ def self.mapper() } }, status_of_primary: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.statusOfPrimary', @@ -207,7 +194,6 @@ def self.mapper() } }, last_geo_failover_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastGeoFailoverTime', @@ -216,7 +202,6 @@ def self.mapper() } }, secondary_location: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.secondaryLocation', @@ -225,7 +210,6 @@ def self.mapper() } }, status_of_secondary: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.statusOfSecondary', @@ -235,7 +219,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -244,7 +227,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.customDomain', @@ -254,7 +236,6 @@ def self.mapper() } }, secondary_endpoints: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.secondaryEndpoints', @@ -264,7 +245,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.encryption', @@ -274,7 +254,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.accessTier', @@ -284,7 +263,6 @@ def self.mapper() } }, enable_https_traffic_only: { - client_side_validation: true, required: false, serialized_name: 'properties.supportsHttpsTrafficOnly', default_value: false, diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb index 78b0c8229d..c99f228a9f 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb @@ -26,7 +26,6 @@ class StorageAccountCheckNameAvailabilityParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCheckNameAvailabilityParameters', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'StorageAccountCheckNameAvailabilityParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb index 1d8c21c38a..3c21a09c8e 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb @@ -61,7 +61,6 @@ class StorageAccountCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCreateParameters', type: { @@ -69,7 +68,6 @@ def self.mapper() class_name: 'StorageAccountCreateParameters', model_properties: { sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -78,7 +76,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: true, serialized_name: 'kind', type: { @@ -87,7 +84,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -95,13 +91,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -111,7 +105,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { @@ -120,7 +113,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, serialized_name: 'properties.encryption', type: { @@ -129,7 +121,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, serialized_name: 'properties.accessTier', type: { @@ -138,7 +129,6 @@ def self.mapper() } }, enable_https_traffic_only: { - client_side_validation: true, required: false, serialized_name: 'properties.supportsHttpsTrafficOnly', default_value: false, diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_key.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_key.rb index 55ff0094b1..5f9632b3ca 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_key.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_key.rb @@ -29,7 +29,6 @@ class StorageAccountKey # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountKey', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'StorageAccountKey', model_properties: { key_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'keyName', @@ -46,7 +44,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', @@ -55,7 +52,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'permissions', diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb index a3733d7a4a..965b53f095 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb @@ -23,7 +23,6 @@ class StorageAccountListKeysResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountListKeysResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageAccountListKeysResult', model_properties: { keys: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'keys', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StorageAccountKeyElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb index ccb4afaa00..b9178b4c3b 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb @@ -23,7 +23,6 @@ class StorageAccountListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountListResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageAccountListResult', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StorageAccountElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb index 0e4d496dda..3370405157 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb @@ -22,7 +22,6 @@ class StorageAccountRegenerateKeyParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountRegenerateKeyParameters', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'StorageAccountRegenerateKeyParameters', model_properties: { key_name: { - client_side_validation: true, required: true, serialized_name: 'keyName', type: { diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb index 6c93c7393e..b5e63aaa83 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb @@ -52,7 +52,6 @@ class StorageAccountUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountUpdateParameters', type: { @@ -60,7 +59,6 @@ def self.mapper() class_name: 'StorageAccountUpdateParameters', model_properties: { sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { @@ -69,13 +67,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -85,7 +81,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { @@ -94,7 +89,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, serialized_name: 'properties.encryption', type: { @@ -103,7 +97,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, serialized_name: 'properties.accessTier', type: { @@ -112,7 +105,6 @@ def self.mapper() } }, enable_https_traffic_only: { - client_side_validation: true, required: false, serialized_name: 'properties.supportsHttpsTrafficOnly', default_value: false, diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/usage.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/usage.rb index 525f587570..26226cad02 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/usage.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/usage.rb @@ -35,7 +35,6 @@ class Usage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Usage', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Usage', model_properties: { unit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'unit', @@ -53,7 +51,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'currentValue', @@ -62,7 +59,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'limit', @@ -71,7 +67,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/usage_list_result.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/usage_list_result.rb index 7a22a12df7..1343dfff7a 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/usage_list_result.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/usage_list_result.rb @@ -23,7 +23,6 @@ class UsageListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'UsageListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UsageElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/usage_name.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/usage_name.rb index 5129fab7f8..a70bcf3649 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/usage_name.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/models/usage_name.rb @@ -25,7 +25,6 @@ class UsageName # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageName', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UsageName', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', @@ -42,7 +40,6 @@ def self.mapper() } }, localized_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'localizedValue', diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/storage_accounts.rb index 3768b5fb7b..df21e3f64a 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers:nil) - response = check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability(account_name, custom_headers = nil) + response = check_name_availability_async(account_name, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def check_name_availability(account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers:nil) - check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers = nil) + check_name_availability_async(account_name, custom_headers).value! end # @@ -66,19 +66,20 @@ def check_name_availability_with_http_info(account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers:nil) + def check_name_availability_async(account_name, custom_headers = nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2016_12_01::Models::StorageAccountCheckNameAvailabilityParameters.mapper() request_content = @client.serialize(request_mapper, account_name) @@ -144,8 +145,8 @@ def check_name_availability_async(account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers:nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers = nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -163,9 +164,9 @@ def create(resource_group_name, account_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def create_async(resource_group_name, account_name, parameters, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -193,8 +194,8 @@ def create_async(resource_group_name, account_name, parameters, custom_headers:n # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers:nil) - response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete(resource_group_name, account_name, custom_headers = nil) + response = delete_async(resource_group_name, account_name, custom_headers).value! nil end @@ -211,8 +212,8 @@ def delete(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) - delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) + delete_async(resource_group_name, account_name, custom_headers).value! end # @@ -228,20 +229,14 @@ def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers:nil) + def delete_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +286,8 @@ def delete_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers:nil) - response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers = nil) + response = get_properties_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -311,8 +306,8 @@ def get_properties(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) - get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) + get_properties_async(resource_group_name, account_name, custom_headers).value! end # @@ -330,20 +325,14 @@ def get_properties_with_http_info(resource_group_name, account_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers:nil) + def get_properties_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -411,8 +400,8 @@ def get_properties_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers:nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers = nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -439,8 +428,8 @@ def update(resource_group_name, account_name, parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + update_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -466,26 +455,22 @@ def update_with_http_info(resource_group_name, account_name, parameters, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers:nil) + def update_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2016_12_01::Models::StorageAccountUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -541,8 +526,8 @@ def update_async(resource_group_name, account_name, parameters, custom_headers:n # # @return [StorageAccountListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -555,8 +540,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -568,13 +553,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -630,8 +614,8 @@ def list_async(custom_headers:nil) # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -646,8 +630,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -661,17 +645,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -729,8 +709,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [StorageAccountListKeysResult] operation results. # - def list_keys(resource_group_name, account_name, custom_headers:nil) - response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers = nil) + response = list_keys_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -747,8 +727,8 @@ def list_keys(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) - list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) + list_keys_async(resource_group_name, account_name, custom_headers).value! end # @@ -764,20 +744,14 @@ def list_keys_with_http_info(resource_group_name, account_name, custom_headers:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers:nil) + def list_keys_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -837,8 +811,8 @@ def list_keys_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccountListKeysResult] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! response.body unless response.nil? end @@ -857,8 +831,8 @@ def regenerate_key(resource_group_name, account_name, regenerate_key, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! end # @@ -876,26 +850,22 @@ def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'regenerate_key is nil' if regenerate_key.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2016_12_01::Models::StorageAccountRegenerateKeyParameters.mapper() request_content = @client.serialize(request_mapper, regenerate_key) @@ -957,8 +927,8 @@ def regenerate_key_async(resource_group_name, account_name, regenerate_key, cust # # @return [ListAccountSasResponse] operation results. # - def list_account_sas(resource_group_name, account_name, parameters, custom_headers:nil) - response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_account_sas(resource_group_name, account_name, parameters, custom_headers = nil) + response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -977,8 +947,8 @@ def list_account_sas(resource_group_name, account_name, parameters, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -996,26 +966,22 @@ def list_account_sas_with_http_info(resource_group_name, account_name, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) + def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2016_12_01::Models::AccountSasParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1077,8 +1043,8 @@ def list_account_sas_async(resource_group_name, account_name, parameters, custom # # @return [ListServiceSasResponse] operation results. # - def list_service_sas(resource_group_name, account_name, parameters, custom_headers:nil) - response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_service_sas(resource_group_name, account_name, parameters, custom_headers = nil) + response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1097,8 +1063,8 @@ def list_service_sas(resource_group_name, account_name, parameters, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -1116,26 +1082,22 @@ def list_service_sas_with_http_info(resource_group_name, account_name, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) + def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2016_12_01::Models::ServiceSasParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1201,8 +1163,8 @@ def list_service_sas_async(resource_group_name, account_name, parameters, custom # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1225,8 +1187,8 @@ def begin_create(resource_group_name, account_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -1248,26 +1210,22 @@ def begin_create_with_http_info(resource_group_name, account_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2016_12_01::Models::StorageAccountCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb index baefb3e05d..e520710e5d 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb @@ -110,9 +110,6 @@ def make_request_async(method, path, options = {}) fail ArgumentError, 'path is nil' if path.nil? request_url = options[:base_url] || @base_url - if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?) - @request_headers['Content-Type'] = options[:headers]['Content-Type'] - end request_headers = @request_headers request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? @@ -129,7 +126,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_storage' - sdk_information = "#{sdk_information}/0.16.1" + if defined? Azure::Storage::Mgmt::V2016_12_01::VERSION + sdk_information = "#{sdk_information}/#{Azure::Storage::Mgmt::V2016_12_01::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/usage_operations.rb index ff12a08bcc..4b264e66a5 100644 --- a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [UsageListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -57,13 +57,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/version.rb b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/version.rb new file mode 100644 index 0000000000..a84db8d0a3 --- /dev/null +++ b/management/azure_mgmt_storage/lib/2016-12-01/generated/azure_mgmt_storage/version.rb @@ -0,0 +1,8 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Storage::Mgmt::V2016_12_01 + VERSION = '0.16.1' +end diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb index aff2989057..067efc519e 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb @@ -55,7 +55,6 @@ class AccountSasParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AccountSasParameters', type: { @@ -63,7 +62,6 @@ def self.mapper() class_name: 'AccountSasParameters', model_properties: { services: { - client_side_validation: true, required: true, serialized_name: 'signedServices', type: { @@ -71,7 +69,6 @@ def self.mapper() } }, resource_types: { - client_side_validation: true, required: true, serialized_name: 'signedResourceTypes', type: { @@ -79,7 +76,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: true, serialized_name: 'signedPermission', type: { @@ -87,7 +83,6 @@ def self.mapper() } }, ipaddress_or_range: { - client_side_validation: true, required: false, serialized_name: 'signedIp', type: { @@ -95,7 +90,6 @@ def self.mapper() } }, protocols: { - client_side_validation: true, required: false, serialized_name: 'signedProtocol', type: { @@ -104,7 +98,6 @@ def self.mapper() } }, shared_access_start_time: { - client_side_validation: true, required: false, serialized_name: 'signedStart', type: { @@ -112,7 +105,6 @@ def self.mapper() } }, shared_access_expiry_time: { - client_side_validation: true, required: true, serialized_name: 'signedExpiry', type: { @@ -120,7 +112,6 @@ def self.mapper() } }, key_to_sign: { - client_side_validation: true, required: false, serialized_name: 'keyToSign', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb index 6823df26bf..631e473a92 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb @@ -33,7 +33,6 @@ class CheckNameAvailabilityResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityResult', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityResult', model_properties: { name_available: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'nameAvailable', @@ -50,7 +48,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'reason', @@ -60,7 +57,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/custom_domain.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/custom_domain.rb index 89192c4fc2..187aa5c65d 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/custom_domain.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/custom_domain.rb @@ -28,7 +28,6 @@ class CustomDomain # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomain', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'CustomDomain', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, use_sub_domain: { - client_side_validation: true, required: false, serialized_name: 'useSubDomain', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/dimension.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/dimension.rb index a89fcf25b1..049f4cc8c1 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/dimension.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/dimension.rb @@ -25,7 +25,6 @@ class Dimension # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Dimension', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Dimension', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, display_name: { - client_side_validation: true, required: false, serialized_name: 'displayName', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/encryption.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/encryption.rb index 59e814dd54..9bab146d39 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/encryption.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/encryption.rb @@ -31,7 +31,6 @@ class Encryption # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Encryption', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'Encryption', model_properties: { services: { - client_side_validation: true, required: false, serialized_name: 'services', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, key_source: { - client_side_validation: true, required: true, serialized_name: 'keySource', default_value: 'Microsoft.Storage', @@ -57,7 +54,6 @@ def self.mapper() } }, key_vault_properties: { - client_side_validation: true, required: false, serialized_name: 'keyvaultproperties', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/encryption_service.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/encryption_service.rb index a8fa68c4ad..41baa9b2ba 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/encryption_service.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/encryption_service.rb @@ -29,7 +29,6 @@ class EncryptionService # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EncryptionService', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'EncryptionService', model_properties: { enabled: { - client_side_validation: true, required: false, serialized_name: 'enabled', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, last_enabled_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'lastEnabledTime', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/encryption_services.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/encryption_services.rb index 5ca4690c7c..86f705405b 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/encryption_services.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/encryption_services.rb @@ -35,7 +35,6 @@ class EncryptionServices # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EncryptionServices', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'EncryptionServices', model_properties: { blob: { - client_side_validation: true, required: false, serialized_name: 'blob', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, file: { - client_side_validation: true, required: false, serialized_name: 'file', type: { @@ -61,7 +58,6 @@ def self.mapper() } }, table: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'table', @@ -71,7 +67,6 @@ def self.mapper() } }, queue: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'queue', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/endpoints.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/endpoints.rb index e32a0a1aab..2c6dc815cc 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/endpoints.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/endpoints.rb @@ -32,7 +32,6 @@ class Endpoints # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Endpoints', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'Endpoints', model_properties: { blob: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'blob', @@ -49,7 +47,6 @@ def self.mapper() } }, queue: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'queue', @@ -58,7 +55,6 @@ def self.mapper() } }, table: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'table', @@ -67,7 +63,6 @@ def self.mapper() } }, file: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'file', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/identity.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/identity.rb index 5508bbf437..2002c21ea9 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/identity.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/identity.rb @@ -28,7 +28,6 @@ class Identity # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Identity', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'Identity', model_properties: { principal_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'principalId', @@ -45,7 +43,6 @@ def self.mapper() } }, tenant_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'tenantId', @@ -54,7 +51,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/iprule.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/iprule.rb index af03dd2524..42c8d5db59 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/iprule.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/iprule.rb @@ -27,7 +27,6 @@ class IPRule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IPRule', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'IPRule', model_properties: { ipaddress_or_range: { - client_side_validation: true, required: true, serialized_name: 'value', type: { @@ -43,7 +41,6 @@ def self.mapper() } }, action: { - client_side_validation: true, required: false, serialized_name: 'action', default_value: 'Allow', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/key_vault_properties.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/key_vault_properties.rb index 2560fd4408..43cdb851a8 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/key_vault_properties.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/key_vault_properties.rb @@ -28,7 +28,6 @@ class KeyVaultProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'KeyVaultProperties', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'KeyVaultProperties', model_properties: { key_name: { - client_side_validation: true, required: false, serialized_name: 'keyname', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, key_version: { - client_side_validation: true, required: false, serialized_name: 'keyversion', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, key_vault_uri: { - client_side_validation: true, required: false, serialized_name: 'keyvaulturi', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb index 84a73cef3e..f54387a0be 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb @@ -22,7 +22,6 @@ class ListAccountSasResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ListAccountSasResponse', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ListAccountSasResponse', model_properties: { account_sas_token: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'accountSasToken', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb index feade39b5d..9411e8b7af 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb @@ -22,7 +22,6 @@ class ListServiceSasResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ListServiceSasResponse', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ListServiceSasResponse', model_properties: { service_sas_token: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'serviceSasToken', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/metric_specification.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/metric_specification.rb index dc28c74bc0..19d6feb09e 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/metric_specification.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/metric_specification.rb @@ -48,7 +48,6 @@ class MetricSpecification # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'MetricSpecification', type: { @@ -56,7 +55,6 @@ def self.mapper() class_name: 'MetricSpecification', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -64,7 +62,6 @@ def self.mapper() } }, display_name: { - client_side_validation: true, required: false, serialized_name: 'displayName', type: { @@ -72,7 +69,6 @@ def self.mapper() } }, display_description: { - client_side_validation: true, required: false, serialized_name: 'displayDescription', type: { @@ -80,7 +76,6 @@ def self.mapper() } }, unit: { - client_side_validation: true, required: false, serialized_name: 'unit', type: { @@ -88,13 +83,11 @@ def self.mapper() } }, dimensions: { - client_side_validation: true, required: false, serialized_name: 'dimensions', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DimensionElementType', type: { @@ -105,7 +98,6 @@ def self.mapper() } }, aggregation_type: { - client_side_validation: true, required: false, serialized_name: 'aggregationType', type: { @@ -113,7 +105,6 @@ def self.mapper() } }, fill_gap_with_zero: { - client_side_validation: true, required: false, serialized_name: 'fillGapWithZero', type: { @@ -121,7 +112,6 @@ def self.mapper() } }, category: { - client_side_validation: true, required: false, serialized_name: 'category', type: { @@ -129,7 +119,6 @@ def self.mapper() } }, resource_id_dimension_name_override: { - client_side_validation: true, required: false, serialized_name: 'resourceIdDimensionNameOverride', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/network_rule_set.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/network_rule_set.rb index f2a2d4b2a8..1182ca8a94 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/network_rule_set.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/network_rule_set.rb @@ -37,7 +37,6 @@ class NetworkRuleSet # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'NetworkRuleSet', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'NetworkRuleSet', model_properties: { bypass: { - client_side_validation: true, required: false, serialized_name: 'bypass', default_value: 'AzureServices', @@ -54,13 +52,11 @@ def self.mapper() } }, virtual_network_rules: { - client_side_validation: true, required: false, serialized_name: 'virtualNetworkRules', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VirtualNetworkRuleElementType', type: { @@ -71,13 +67,11 @@ def self.mapper() } }, ip_rules: { - client_side_validation: true, required: false, serialized_name: 'ipRules', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'IPRuleElementType', type: { @@ -88,7 +82,6 @@ def self.mapper() } }, default_action: { - client_side_validation: true, required: true, serialized_name: 'defaultAction', default_value: 'Allow', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/operation.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/operation.rb index b6de263160..664cdce878 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/operation.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/operation.rb @@ -33,7 +33,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: false, serialized_name: 'display', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, origin: { - client_side_validation: true, required: false, serialized_name: 'origin', type: { @@ -66,7 +62,6 @@ def self.mapper() } }, service_specification: { - client_side_validation: true, required: false, serialized_name: 'properties.serviceSpecification', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/operation_display.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/operation_display.rb index 7b2cf740e1..06f82970b3 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/operation_display.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/operation_display.rb @@ -28,7 +28,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, serialized_name: 'resource', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, serialized_name: 'operation', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/operation_list_result.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/operation_list_result.rb index ca69731bb4..7bf28cc37c 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/operation_list_result.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/operation_list_result.rb @@ -24,7 +24,6 @@ class OperationListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationListResult', type: { @@ -32,13 +31,11 @@ def self.mapper() class_name: 'OperationListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OperationElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/resource.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/resource.rb index ce8fc993df..74b7eea974 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/resource.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/resource.rb @@ -35,7 +35,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -52,7 +50,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -61,7 +58,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -70,7 +66,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -78,13 +73,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/restriction.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/restriction.rb index f806ca4524..0ed5baccea 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/restriction.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/restriction.rb @@ -35,7 +35,6 @@ class Restriction # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Restriction', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Restriction', model_properties: { type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -52,14 +50,12 @@ def self.mapper() } }, values: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'values', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, reason_code: { - client_side_validation: true, required: false, serialized_name: 'reasonCode', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb index e54008f982..0e5686db62 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb @@ -83,7 +83,6 @@ class ServiceSasParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ServiceSasParameters', type: { @@ -91,7 +90,6 @@ def self.mapper() class_name: 'ServiceSasParameters', model_properties: { canonicalized_resource: { - client_side_validation: true, required: true, serialized_name: 'canonicalizedResource', type: { @@ -99,7 +97,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: true, serialized_name: 'signedResource', type: { @@ -107,7 +104,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: false, serialized_name: 'signedPermission', type: { @@ -115,7 +111,6 @@ def self.mapper() } }, ipaddress_or_range: { - client_side_validation: true, required: false, serialized_name: 'signedIp', type: { @@ -123,7 +118,6 @@ def self.mapper() } }, protocols: { - client_side_validation: true, required: false, serialized_name: 'signedProtocol', type: { @@ -132,7 +126,6 @@ def self.mapper() } }, shared_access_start_time: { - client_side_validation: true, required: false, serialized_name: 'signedStart', type: { @@ -140,7 +133,6 @@ def self.mapper() } }, shared_access_expiry_time: { - client_side_validation: true, required: false, serialized_name: 'signedExpiry', type: { @@ -148,7 +140,6 @@ def self.mapper() } }, identifier: { - client_side_validation: true, required: false, serialized_name: 'signedIdentifier', constraints: { @@ -159,7 +150,6 @@ def self.mapper() } }, partition_key_start: { - client_side_validation: true, required: false, serialized_name: 'startPk', type: { @@ -167,7 +157,6 @@ def self.mapper() } }, partition_key_end: { - client_side_validation: true, required: false, serialized_name: 'endPk', type: { @@ -175,7 +164,6 @@ def self.mapper() } }, row_key_start: { - client_side_validation: true, required: false, serialized_name: 'startRk', type: { @@ -183,7 +171,6 @@ def self.mapper() } }, row_key_end: { - client_side_validation: true, required: false, serialized_name: 'endRk', type: { @@ -191,7 +178,6 @@ def self.mapper() } }, key_to_sign: { - client_side_validation: true, required: false, serialized_name: 'keyToSign', type: { @@ -199,7 +185,6 @@ def self.mapper() } }, cache_control: { - client_side_validation: true, required: false, serialized_name: 'rscc', type: { @@ -207,7 +192,6 @@ def self.mapper() } }, content_disposition: { - client_side_validation: true, required: false, serialized_name: 'rscd', type: { @@ -215,7 +199,6 @@ def self.mapper() } }, content_encoding: { - client_side_validation: true, required: false, serialized_name: 'rsce', type: { @@ -223,7 +206,6 @@ def self.mapper() } }, content_language: { - client_side_validation: true, required: false, serialized_name: 'rscl', type: { @@ -231,7 +213,6 @@ def self.mapper() } }, content_type: { - client_side_validation: true, required: false, serialized_name: 'rsct', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/service_specification.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/service_specification.rb index 13b3f665f4..9c6603648a 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/service_specification.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/service_specification.rb @@ -23,7 +23,6 @@ class ServiceSpecification # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ServiceSpecification', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'ServiceSpecification', model_properties: { metric_specifications: { - client_side_validation: true, required: false, serialized_name: 'metricSpecifications', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'MetricSpecificationElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/sku.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/sku.rb index 27ec27a53e..654815fcad 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/sku.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/sku.rb @@ -51,7 +51,6 @@ class Sku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Sku', type: { @@ -59,7 +58,6 @@ def self.mapper() class_name: 'Sku', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -68,7 +66,6 @@ def self.mapper() } }, tier: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'tier', @@ -78,7 +75,6 @@ def self.mapper() } }, resource_type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'resourceType', @@ -87,7 +83,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'kind', @@ -97,14 +92,12 @@ def self.mapper() } }, locations: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'locations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -114,14 +107,12 @@ def self.mapper() } }, capabilities: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'capabilities', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SKUCapabilityElementType', type: { @@ -132,13 +123,11 @@ def self.mapper() } }, restrictions: { - client_side_validation: true, required: false, serialized_name: 'restrictions', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'RestrictionElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/skucapability.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/skucapability.rb index bc2ce0e365..a689d1ca8e 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/skucapability.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/skucapability.rb @@ -29,7 +29,6 @@ class SKUCapability # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SKUCapability', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'SKUCapability', model_properties: { name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -46,7 +44,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account.rb index 3a52c7f179..293adb9fcc 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account.rb @@ -95,7 +95,6 @@ class StorageAccount < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccount', type: { @@ -103,7 +102,6 @@ def self.mapper() class_name: 'StorageAccount', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -112,7 +110,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -121,7 +118,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -130,7 +126,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -138,13 +133,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -154,7 +147,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'sku', @@ -164,7 +156,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'kind', @@ -174,7 +165,6 @@ def self.mapper() } }, identity: { - client_side_validation: true, required: false, serialized_name: 'identity', type: { @@ -183,7 +173,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -193,7 +182,6 @@ def self.mapper() } }, primary_endpoints: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.primaryEndpoints', @@ -203,7 +191,6 @@ def self.mapper() } }, primary_location: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.primaryLocation', @@ -212,7 +199,6 @@ def self.mapper() } }, status_of_primary: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.statusOfPrimary', @@ -222,7 +208,6 @@ def self.mapper() } }, last_geo_failover_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastGeoFailoverTime', @@ -231,7 +216,6 @@ def self.mapper() } }, secondary_location: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.secondaryLocation', @@ -240,7 +224,6 @@ def self.mapper() } }, status_of_secondary: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.statusOfSecondary', @@ -250,7 +233,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -259,7 +241,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.customDomain', @@ -269,7 +250,6 @@ def self.mapper() } }, secondary_endpoints: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.secondaryEndpoints', @@ -279,7 +259,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.encryption', @@ -289,7 +268,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.accessTier', @@ -299,7 +277,6 @@ def self.mapper() } }, enable_https_traffic_only: { - client_side_validation: true, required: false, serialized_name: 'properties.supportsHttpsTrafficOnly', default_value: false, @@ -308,7 +285,6 @@ def self.mapper() } }, network_rule_set: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.networkAcls', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb index 4c4588bcac..096160ceb4 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb @@ -28,7 +28,6 @@ class StorageAccountCheckNameAvailabilityParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCheckNameAvailabilityParameters', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'StorageAccountCheckNameAvailabilityParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb index de88970221..ab1a6bef74 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb @@ -67,7 +67,6 @@ class StorageAccountCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCreateParameters', type: { @@ -75,7 +74,6 @@ def self.mapper() class_name: 'StorageAccountCreateParameters', model_properties: { sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -84,7 +82,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: true, serialized_name: 'kind', type: { @@ -93,7 +90,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -101,13 +97,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -117,7 +111,6 @@ def self.mapper() } }, identity: { - client_side_validation: true, required: false, serialized_name: 'identity', type: { @@ -126,7 +119,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { @@ -135,7 +127,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, serialized_name: 'properties.encryption', type: { @@ -144,7 +135,6 @@ def self.mapper() } }, network_rule_set: { - client_side_validation: true, required: false, serialized_name: 'properties.networkAcls', type: { @@ -153,7 +143,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, serialized_name: 'properties.accessTier', type: { @@ -162,7 +151,6 @@ def self.mapper() } }, enable_https_traffic_only: { - client_side_validation: true, required: false, serialized_name: 'properties.supportsHttpsTrafficOnly', default_value: false, diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_key.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_key.rb index aaed7b5fea..b8e5c82a50 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_key.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_key.rb @@ -29,7 +29,6 @@ class StorageAccountKey # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountKey', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'StorageAccountKey', model_properties: { key_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'keyName', @@ -46,7 +44,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', @@ -55,7 +52,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'permissions', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb index 6b35fa2fae..f8c07da62a 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb @@ -23,7 +23,6 @@ class StorageAccountListKeysResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountListKeysResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageAccountListKeysResult', model_properties: { keys: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'keys', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StorageAccountKeyElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb index 0b34365578..a4fb02a66f 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb @@ -23,7 +23,6 @@ class StorageAccountListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountListResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageAccountListResult', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StorageAccountElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb index 834727b082..1bcae66395 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb @@ -23,7 +23,6 @@ class StorageAccountRegenerateKeyParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountRegenerateKeyParameters', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'StorageAccountRegenerateKeyParameters', model_properties: { key_name: { - client_side_validation: true, required: true, serialized_name: 'keyName', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb index 3ba446743b..68d0a0c290 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb @@ -58,7 +58,6 @@ class StorageAccountUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountUpdateParameters', type: { @@ -66,7 +65,6 @@ def self.mapper() class_name: 'StorageAccountUpdateParameters', model_properties: { sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { @@ -75,13 +73,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -91,7 +87,6 @@ def self.mapper() } }, identity: { - client_side_validation: true, required: false, serialized_name: 'identity', type: { @@ -100,7 +95,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { @@ -109,7 +103,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, serialized_name: 'properties.encryption', type: { @@ -118,7 +111,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, serialized_name: 'properties.accessTier', type: { @@ -127,7 +119,6 @@ def self.mapper() } }, enable_https_traffic_only: { - client_side_validation: true, required: false, serialized_name: 'properties.supportsHttpsTrafficOnly', default_value: false, @@ -136,7 +127,6 @@ def self.mapper() } }, network_rule_set: { - client_side_validation: true, required: false, serialized_name: 'properties.networkAcls', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb index 5079d72ef9..aa398978c9 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb @@ -23,7 +23,6 @@ class StorageSkuListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageSkuListResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageSkuListResult', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SkuElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/usage.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/usage.rb index a1af185e6b..b308fbdc80 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/usage.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/usage.rb @@ -35,7 +35,6 @@ class Usage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Usage', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Usage', model_properties: { unit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'unit', @@ -53,7 +51,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'currentValue', @@ -62,7 +59,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'limit', @@ -71,7 +67,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/usage_list_result.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/usage_list_result.rb index 0be6a3f855..077953fc1f 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/usage_list_result.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/usage_list_result.rb @@ -23,7 +23,6 @@ class UsageListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'UsageListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UsageElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/usage_name.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/usage_name.rb index b117eb6836..48f44f997b 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/usage_name.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/usage_name.rb @@ -25,7 +25,6 @@ class UsageName # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageName', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UsageName', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', @@ -42,7 +40,6 @@ def self.mapper() } }, localized_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'localizedValue', diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb index e3a24d8336..519f5b864b 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb @@ -32,7 +32,6 @@ class VirtualNetworkRule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VirtualNetworkRule', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'VirtualNetworkRule', model_properties: { virtual_network_resource_id: { - client_side_validation: true, required: true, serialized_name: 'id', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, action: { - client_side_validation: true, required: false, serialized_name: 'action', default_value: 'Allow', @@ -58,7 +55,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/operations.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/operations.rb index 56bbe3ce57..d1cce60182 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/operations.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/operations.rb @@ -29,8 +29,8 @@ def initialize(client) # # @return [OperationListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -54,12 +54,11 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/skus.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/skus.rb index 15b3b7669c..b3a0976a72 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/skus.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/skus.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [StorageSkuListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -57,13 +57,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/storage_accounts.rb index f4b754d5b8..bea9f2f0d2 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers:nil) - response = check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability(account_name, custom_headers = nil) + response = check_name_availability_async(account_name, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def check_name_availability(account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers:nil) - check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers = nil) + check_name_availability_async(account_name, custom_headers).value! end # @@ -66,19 +66,20 @@ def check_name_availability_with_http_info(account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers:nil) + def check_name_availability_async(account_name, custom_headers = nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountCheckNameAvailabilityParameters.mapper() request_content = @client.serialize(request_mapper, account_name) @@ -144,8 +145,8 @@ def check_name_availability_async(account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers:nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers = nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -163,9 +164,9 @@ def create(resource_group_name, account_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def create_async(resource_group_name, account_name, parameters, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -193,8 +194,8 @@ def create_async(resource_group_name, account_name, parameters, custom_headers:n # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers:nil) - response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete(resource_group_name, account_name, custom_headers = nil) + response = delete_async(resource_group_name, account_name, custom_headers).value! nil end @@ -211,8 +212,8 @@ def delete(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) - delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) + delete_async(resource_group_name, account_name, custom_headers).value! end # @@ -228,20 +229,14 @@ def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers:nil) + def delete_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +286,8 @@ def delete_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers:nil) - response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers = nil) + response = get_properties_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -311,8 +306,8 @@ def get_properties(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) - get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) + get_properties_async(resource_group_name, account_name, custom_headers).value! end # @@ -330,20 +325,14 @@ def get_properties_with_http_info(resource_group_name, account_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers:nil) + def get_properties_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -411,8 +400,8 @@ def get_properties_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers:nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers = nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -439,8 +428,8 @@ def update(resource_group_name, account_name, parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + update_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -466,26 +455,22 @@ def update_with_http_info(resource_group_name, account_name, parameters, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers:nil) + def update_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -541,8 +526,8 @@ def update_async(resource_group_name, account_name, parameters, custom_headers:n # # @return [StorageAccountListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -555,8 +540,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -568,13 +553,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -630,8 +614,8 @@ def list_async(custom_headers:nil) # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -646,8 +630,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -661,17 +645,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -729,8 +709,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [StorageAccountListKeysResult] operation results. # - def list_keys(resource_group_name, account_name, custom_headers:nil) - response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers = nil) + response = list_keys_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -747,8 +727,8 @@ def list_keys(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) - list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) + list_keys_async(resource_group_name, account_name, custom_headers).value! end # @@ -764,20 +744,14 @@ def list_keys_with_http_info(resource_group_name, account_name, custom_headers:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers:nil) + def list_keys_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -837,8 +811,8 @@ def list_keys_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccountListKeysResult] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! response.body unless response.nil? end @@ -857,8 +831,8 @@ def regenerate_key(resource_group_name, account_name, regenerate_key, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! end # @@ -876,26 +850,22 @@ def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'regenerate_key is nil' if regenerate_key.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountRegenerateKeyParameters.mapper() request_content = @client.serialize(request_mapper, regenerate_key) @@ -957,8 +927,8 @@ def regenerate_key_async(resource_group_name, account_name, regenerate_key, cust # # @return [ListAccountSasResponse] operation results. # - def list_account_sas(resource_group_name, account_name, parameters, custom_headers:nil) - response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_account_sas(resource_group_name, account_name, parameters, custom_headers = nil) + response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -977,8 +947,8 @@ def list_account_sas(resource_group_name, account_name, parameters, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -996,26 +966,22 @@ def list_account_sas_with_http_info(resource_group_name, account_name, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) + def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2017_06_01::Models::AccountSasParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1077,8 +1043,8 @@ def list_account_sas_async(resource_group_name, account_name, parameters, custom # # @return [ListServiceSasResponse] operation results. # - def list_service_sas(resource_group_name, account_name, parameters, custom_headers:nil) - response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_service_sas(resource_group_name, account_name, parameters, custom_headers = nil) + response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1097,8 +1063,8 @@ def list_service_sas(resource_group_name, account_name, parameters, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -1116,26 +1082,22 @@ def list_service_sas_with_http_info(resource_group_name, account_name, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) + def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2017_06_01::Models::ServiceSasParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1201,8 +1163,8 @@ def list_service_sas_async(resource_group_name, account_name, parameters, custom # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1225,8 +1187,8 @@ def begin_create(resource_group_name, account_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -1248,26 +1210,22 @@ def begin_create_with_http_info(resource_group_name, account_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb index 6f4a3b2b32..adaa1fbf48 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb @@ -118,9 +118,6 @@ def make_request_async(method, path, options = {}) fail ArgumentError, 'path is nil' if path.nil? request_url = options[:base_url] || @base_url - if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?) - @request_headers['Content-Type'] = options[:headers]['Content-Type'] - end request_headers = @request_headers request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? @@ -137,7 +134,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_storage' - sdk_information = "#{sdk_information}/0.16.1" + if defined? Azure::Storage::Mgmt::V2017_06_01::VERSION + sdk_information = "#{sdk_information}/#{Azure::Storage::Mgmt::V2017_06_01::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/usage_operations.rb index 3d2c31b46e..32d0daece8 100644 --- a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [UsageListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -57,13 +57,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/version.rb b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/version.rb new file mode 100644 index 0000000000..e1f526cb2d --- /dev/null +++ b/management/azure_mgmt_storage/lib/2017-06-01/generated/azure_mgmt_storage/version.rb @@ -0,0 +1,8 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Storage::Mgmt::V2017_06_01 + VERSION = '0.16.1' +end diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb index f89c4126ae..6e141ad1e4 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb @@ -55,7 +55,6 @@ class AccountSasParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AccountSasParameters', type: { @@ -63,7 +62,6 @@ def self.mapper() class_name: 'AccountSasParameters', model_properties: { services: { - client_side_validation: true, required: true, serialized_name: 'signedServices', type: { @@ -71,7 +69,6 @@ def self.mapper() } }, resource_types: { - client_side_validation: true, required: true, serialized_name: 'signedResourceTypes', type: { @@ -79,7 +76,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: true, serialized_name: 'signedPermission', type: { @@ -87,7 +83,6 @@ def self.mapper() } }, ipaddress_or_range: { - client_side_validation: true, required: false, serialized_name: 'signedIp', type: { @@ -95,7 +90,6 @@ def self.mapper() } }, protocols: { - client_side_validation: true, required: false, serialized_name: 'signedProtocol', type: { @@ -104,7 +98,6 @@ def self.mapper() } }, shared_access_start_time: { - client_side_validation: true, required: false, serialized_name: 'signedStart', type: { @@ -112,7 +105,6 @@ def self.mapper() } }, shared_access_expiry_time: { - client_side_validation: true, required: true, serialized_name: 'signedExpiry', type: { @@ -120,7 +112,6 @@ def self.mapper() } }, key_to_sign: { - client_side_validation: true, required: false, serialized_name: 'keyToSign', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb index 0c2596a2b8..e3b10b4283 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb @@ -33,7 +33,6 @@ class CheckNameAvailabilityResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityResult', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityResult', model_properties: { name_available: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'nameAvailable', @@ -50,7 +48,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'reason', @@ -60,7 +57,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/custom_domain.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/custom_domain.rb index 1646f90a30..a4c773f419 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/custom_domain.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/custom_domain.rb @@ -28,7 +28,6 @@ class CustomDomain # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomain', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'CustomDomain', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, use_sub_domain: { - client_side_validation: true, required: false, serialized_name: 'useSubDomain', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/dimension.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/dimension.rb index 15bf88a15e..a8e92291ed 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/dimension.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/dimension.rb @@ -25,7 +25,6 @@ class Dimension # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Dimension', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Dimension', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, display_name: { - client_side_validation: true, required: false, serialized_name: 'displayName', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/encryption.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/encryption.rb index 680c032e80..97953dabb6 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/encryption.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/encryption.rb @@ -31,7 +31,6 @@ class Encryption # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Encryption', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'Encryption', model_properties: { services: { - client_side_validation: true, required: false, serialized_name: 'services', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, key_source: { - client_side_validation: true, required: true, serialized_name: 'keySource', default_value: 'Microsoft.Storage', @@ -57,7 +54,6 @@ def self.mapper() } }, key_vault_properties: { - client_side_validation: true, required: false, serialized_name: 'keyvaultproperties', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/encryption_service.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/encryption_service.rb index 1da83b8fee..46207eab56 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/encryption_service.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/encryption_service.rb @@ -29,7 +29,6 @@ class EncryptionService # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EncryptionService', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'EncryptionService', model_properties: { enabled: { - client_side_validation: true, required: false, serialized_name: 'enabled', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, last_enabled_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'lastEnabledTime', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/encryption_services.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/encryption_services.rb index afa9e58ee9..1023402a4f 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/encryption_services.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/encryption_services.rb @@ -35,7 +35,6 @@ class EncryptionServices # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EncryptionServices', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'EncryptionServices', model_properties: { blob: { - client_side_validation: true, required: false, serialized_name: 'blob', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, file: { - client_side_validation: true, required: false, serialized_name: 'file', type: { @@ -61,7 +58,6 @@ def self.mapper() } }, table: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'table', @@ -71,7 +67,6 @@ def self.mapper() } }, queue: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'queue', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/endpoints.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/endpoints.rb index d3bdfaf83d..627765c6f6 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/endpoints.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/endpoints.rb @@ -32,7 +32,6 @@ class Endpoints # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Endpoints', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'Endpoints', model_properties: { blob: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'blob', @@ -49,7 +47,6 @@ def self.mapper() } }, queue: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'queue', @@ -58,7 +55,6 @@ def self.mapper() } }, table: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'table', @@ -67,7 +63,6 @@ def self.mapper() } }, file: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'file', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/identity.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/identity.rb index fdde843edf..02cead8578 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/identity.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/identity.rb @@ -28,7 +28,6 @@ class Identity # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Identity', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'Identity', model_properties: { principal_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'principalId', @@ -45,7 +43,6 @@ def self.mapper() } }, tenant_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'tenantId', @@ -54,7 +51,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/iprule.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/iprule.rb index bdb2d4ff91..ba4d58eefb 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/iprule.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/iprule.rb @@ -27,7 +27,6 @@ class IPRule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IPRule', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'IPRule', model_properties: { ipaddress_or_range: { - client_side_validation: true, required: true, serialized_name: 'value', type: { @@ -43,7 +41,6 @@ def self.mapper() } }, action: { - client_side_validation: true, required: false, serialized_name: 'action', default_value: 'Allow', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/key_vault_properties.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/key_vault_properties.rb index cf70098cb0..cb5f5e421f 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/key_vault_properties.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/key_vault_properties.rb @@ -28,7 +28,6 @@ class KeyVaultProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'KeyVaultProperties', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'KeyVaultProperties', model_properties: { key_name: { - client_side_validation: true, required: false, serialized_name: 'keyname', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, key_version: { - client_side_validation: true, required: false, serialized_name: 'keyversion', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, key_vault_uri: { - client_side_validation: true, required: false, serialized_name: 'keyvaulturi', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb index 9460d98b54..db50ecbb05 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb @@ -22,7 +22,6 @@ class ListAccountSasResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ListAccountSasResponse', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ListAccountSasResponse', model_properties: { account_sas_token: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'accountSasToken', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb index 4da5bf7c3e..385ff7d49d 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb @@ -22,7 +22,6 @@ class ListServiceSasResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ListServiceSasResponse', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ListServiceSasResponse', model_properties: { service_sas_token: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'serviceSasToken', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/metric_specification.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/metric_specification.rb index c54977cee2..6b76ef5f41 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/metric_specification.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/metric_specification.rb @@ -48,7 +48,6 @@ class MetricSpecification # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'MetricSpecification', type: { @@ -56,7 +55,6 @@ def self.mapper() class_name: 'MetricSpecification', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -64,7 +62,6 @@ def self.mapper() } }, display_name: { - client_side_validation: true, required: false, serialized_name: 'displayName', type: { @@ -72,7 +69,6 @@ def self.mapper() } }, display_description: { - client_side_validation: true, required: false, serialized_name: 'displayDescription', type: { @@ -80,7 +76,6 @@ def self.mapper() } }, unit: { - client_side_validation: true, required: false, serialized_name: 'unit', type: { @@ -88,13 +83,11 @@ def self.mapper() } }, dimensions: { - client_side_validation: true, required: false, serialized_name: 'dimensions', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DimensionElementType', type: { @@ -105,7 +98,6 @@ def self.mapper() } }, aggregation_type: { - client_side_validation: true, required: false, serialized_name: 'aggregationType', type: { @@ -113,7 +105,6 @@ def self.mapper() } }, fill_gap_with_zero: { - client_side_validation: true, required: false, serialized_name: 'fillGapWithZero', type: { @@ -121,7 +112,6 @@ def self.mapper() } }, category: { - client_side_validation: true, required: false, serialized_name: 'category', type: { @@ -129,7 +119,6 @@ def self.mapper() } }, resource_id_dimension_name_override: { - client_side_validation: true, required: false, serialized_name: 'resourceIdDimensionNameOverride', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/network_rule_set.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/network_rule_set.rb index 36830b2e70..63e3ae032d 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/network_rule_set.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/network_rule_set.rb @@ -37,7 +37,6 @@ class NetworkRuleSet # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'NetworkRuleSet', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'NetworkRuleSet', model_properties: { bypass: { - client_side_validation: true, required: false, serialized_name: 'bypass', default_value: 'AzureServices', @@ -54,13 +52,11 @@ def self.mapper() } }, virtual_network_rules: { - client_side_validation: true, required: false, serialized_name: 'virtualNetworkRules', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VirtualNetworkRuleElementType', type: { @@ -71,13 +67,11 @@ def self.mapper() } }, ip_rules: { - client_side_validation: true, required: false, serialized_name: 'ipRules', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'IPRuleElementType', type: { @@ -88,7 +82,6 @@ def self.mapper() } }, default_action: { - client_side_validation: true, required: true, serialized_name: 'defaultAction', default_value: 'Allow', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/operation.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/operation.rb index 24d5e9af4d..863fe000c0 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/operation.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/operation.rb @@ -33,7 +33,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: false, serialized_name: 'display', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, origin: { - client_side_validation: true, required: false, serialized_name: 'origin', type: { @@ -66,7 +62,6 @@ def self.mapper() } }, service_specification: { - client_side_validation: true, required: false, serialized_name: 'properties.serviceSpecification', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/operation_display.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/operation_display.rb index 4485b9db55..ac07cee134 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/operation_display.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/operation_display.rb @@ -28,7 +28,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, serialized_name: 'resource', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, serialized_name: 'operation', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/operation_list_result.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/operation_list_result.rb index 7b68fadf19..fe73ced102 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/operation_list_result.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/operation_list_result.rb @@ -24,7 +24,6 @@ class OperationListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationListResult', type: { @@ -32,13 +31,11 @@ def self.mapper() class_name: 'OperationListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OperationElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/resource.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/resource.rb index 1b58d10ea9..8342ed86f8 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/resource.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/resource.rb @@ -35,7 +35,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -52,7 +50,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -61,7 +58,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -70,7 +66,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -78,13 +73,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/restriction.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/restriction.rb index b722ca9be3..099b889d18 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/restriction.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/restriction.rb @@ -35,7 +35,6 @@ class Restriction # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Restriction', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Restriction', model_properties: { type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -52,14 +50,12 @@ def self.mapper() } }, values: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'values', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, reason_code: { - client_side_validation: true, required: false, serialized_name: 'reasonCode', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb index 07b1be0864..d5f3b94610 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb @@ -83,7 +83,6 @@ class ServiceSasParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ServiceSasParameters', type: { @@ -91,7 +90,6 @@ def self.mapper() class_name: 'ServiceSasParameters', model_properties: { canonicalized_resource: { - client_side_validation: true, required: true, serialized_name: 'canonicalizedResource', type: { @@ -99,7 +97,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: true, serialized_name: 'signedResource', type: { @@ -107,7 +104,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: false, serialized_name: 'signedPermission', type: { @@ -115,7 +111,6 @@ def self.mapper() } }, ipaddress_or_range: { - client_side_validation: true, required: false, serialized_name: 'signedIp', type: { @@ -123,7 +118,6 @@ def self.mapper() } }, protocols: { - client_side_validation: true, required: false, serialized_name: 'signedProtocol', type: { @@ -132,7 +126,6 @@ def self.mapper() } }, shared_access_start_time: { - client_side_validation: true, required: false, serialized_name: 'signedStart', type: { @@ -140,7 +133,6 @@ def self.mapper() } }, shared_access_expiry_time: { - client_side_validation: true, required: false, serialized_name: 'signedExpiry', type: { @@ -148,7 +140,6 @@ def self.mapper() } }, identifier: { - client_side_validation: true, required: false, serialized_name: 'signedIdentifier', constraints: { @@ -159,7 +150,6 @@ def self.mapper() } }, partition_key_start: { - client_side_validation: true, required: false, serialized_name: 'startPk', type: { @@ -167,7 +157,6 @@ def self.mapper() } }, partition_key_end: { - client_side_validation: true, required: false, serialized_name: 'endPk', type: { @@ -175,7 +164,6 @@ def self.mapper() } }, row_key_start: { - client_side_validation: true, required: false, serialized_name: 'startRk', type: { @@ -183,7 +171,6 @@ def self.mapper() } }, row_key_end: { - client_side_validation: true, required: false, serialized_name: 'endRk', type: { @@ -191,7 +178,6 @@ def self.mapper() } }, key_to_sign: { - client_side_validation: true, required: false, serialized_name: 'keyToSign', type: { @@ -199,7 +185,6 @@ def self.mapper() } }, cache_control: { - client_side_validation: true, required: false, serialized_name: 'rscc', type: { @@ -207,7 +192,6 @@ def self.mapper() } }, content_disposition: { - client_side_validation: true, required: false, serialized_name: 'rscd', type: { @@ -215,7 +199,6 @@ def self.mapper() } }, content_encoding: { - client_side_validation: true, required: false, serialized_name: 'rsce', type: { @@ -223,7 +206,6 @@ def self.mapper() } }, content_language: { - client_side_validation: true, required: false, serialized_name: 'rscl', type: { @@ -231,7 +213,6 @@ def self.mapper() } }, content_type: { - client_side_validation: true, required: false, serialized_name: 'rsct', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/service_specification.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/service_specification.rb index 3e59d87950..0d0a39a40c 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/service_specification.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/service_specification.rb @@ -23,7 +23,6 @@ class ServiceSpecification # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ServiceSpecification', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'ServiceSpecification', model_properties: { metric_specifications: { - client_side_validation: true, required: false, serialized_name: 'metricSpecifications', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'MetricSpecificationElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/sku.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/sku.rb index 078575b85c..ff29940aa6 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/sku.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/sku.rb @@ -51,7 +51,6 @@ class Sku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Sku', type: { @@ -59,7 +58,6 @@ def self.mapper() class_name: 'Sku', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -68,7 +66,6 @@ def self.mapper() } }, tier: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'tier', @@ -78,7 +75,6 @@ def self.mapper() } }, resource_type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'resourceType', @@ -87,7 +83,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'kind', @@ -97,14 +92,12 @@ def self.mapper() } }, locations: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'locations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -114,14 +107,12 @@ def self.mapper() } }, capabilities: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'capabilities', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SKUCapabilityElementType', type: { @@ -132,13 +123,11 @@ def self.mapper() } }, restrictions: { - client_side_validation: true, required: false, serialized_name: 'restrictions', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'RestrictionElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/skucapability.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/skucapability.rb index 5cdc1fcef3..bd8490f453 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/skucapability.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/skucapability.rb @@ -29,7 +29,6 @@ class SKUCapability # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SKUCapability', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'SKUCapability', model_properties: { name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -46,7 +44,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account.rb index 8ad4871ded..f2122d36d3 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account.rb @@ -95,7 +95,6 @@ class StorageAccount < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccount', type: { @@ -103,7 +102,6 @@ def self.mapper() class_name: 'StorageAccount', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -112,7 +110,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -121,7 +118,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -130,7 +126,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -138,13 +133,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -154,7 +147,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'sku', @@ -164,7 +156,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'kind', @@ -174,7 +165,6 @@ def self.mapper() } }, identity: { - client_side_validation: true, required: false, serialized_name: 'identity', type: { @@ -183,7 +173,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -193,7 +182,6 @@ def self.mapper() } }, primary_endpoints: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.primaryEndpoints', @@ -203,7 +191,6 @@ def self.mapper() } }, primary_location: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.primaryLocation', @@ -212,7 +199,6 @@ def self.mapper() } }, status_of_primary: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.statusOfPrimary', @@ -222,7 +208,6 @@ def self.mapper() } }, last_geo_failover_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastGeoFailoverTime', @@ -231,7 +216,6 @@ def self.mapper() } }, secondary_location: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.secondaryLocation', @@ -240,7 +224,6 @@ def self.mapper() } }, status_of_secondary: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.statusOfSecondary', @@ -250,7 +233,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -259,7 +241,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.customDomain', @@ -269,7 +250,6 @@ def self.mapper() } }, secondary_endpoints: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.secondaryEndpoints', @@ -279,7 +259,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.encryption', @@ -289,7 +268,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.accessTier', @@ -299,7 +277,6 @@ def self.mapper() } }, enable_https_traffic_only: { - client_side_validation: true, required: false, serialized_name: 'properties.supportsHttpsTrafficOnly', default_value: false, @@ -308,7 +285,6 @@ def self.mapper() } }, network_rule_set: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.networkAcls', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb index e00bef28f1..81f4d23f1d 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb @@ -28,7 +28,6 @@ class StorageAccountCheckNameAvailabilityParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCheckNameAvailabilityParameters', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'StorageAccountCheckNameAvailabilityParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb index 7620dcf9ac..446399fc59 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb @@ -67,7 +67,6 @@ class StorageAccountCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCreateParameters', type: { @@ -75,7 +74,6 @@ def self.mapper() class_name: 'StorageAccountCreateParameters', model_properties: { sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -84,7 +82,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: true, serialized_name: 'kind', type: { @@ -93,7 +90,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -101,13 +97,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -117,7 +111,6 @@ def self.mapper() } }, identity: { - client_side_validation: true, required: false, serialized_name: 'identity', type: { @@ -126,7 +119,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { @@ -135,7 +127,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, serialized_name: 'properties.encryption', type: { @@ -144,7 +135,6 @@ def self.mapper() } }, network_rule_set: { - client_side_validation: true, required: false, serialized_name: 'properties.networkAcls', type: { @@ -153,7 +143,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, serialized_name: 'properties.accessTier', type: { @@ -162,7 +151,6 @@ def self.mapper() } }, enable_https_traffic_only: { - client_side_validation: true, required: false, serialized_name: 'properties.supportsHttpsTrafficOnly', default_value: false, diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_key.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_key.rb index 75e80176be..fc26ee0f30 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_key.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_key.rb @@ -29,7 +29,6 @@ class StorageAccountKey # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountKey', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'StorageAccountKey', model_properties: { key_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'keyName', @@ -46,7 +44,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', @@ -55,7 +52,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'permissions', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb index d5b1a0b2ce..725e72af2e 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb @@ -23,7 +23,6 @@ class StorageAccountListKeysResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountListKeysResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageAccountListKeysResult', model_properties: { keys: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'keys', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StorageAccountKeyElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb index 159f9c81ac..d82126efc9 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb @@ -23,7 +23,6 @@ class StorageAccountListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountListResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageAccountListResult', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StorageAccountElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb index e9f6b8f587..37eb7df1f4 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb @@ -23,7 +23,6 @@ class StorageAccountRegenerateKeyParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountRegenerateKeyParameters', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'StorageAccountRegenerateKeyParameters', model_properties: { key_name: { - client_side_validation: true, required: true, serialized_name: 'keyName', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb index 83f6999532..c72e81b9ff 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb @@ -63,7 +63,6 @@ class StorageAccountUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountUpdateParameters', type: { @@ -71,7 +70,6 @@ def self.mapper() class_name: 'StorageAccountUpdateParameters', model_properties: { sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { @@ -80,13 +78,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -96,7 +92,6 @@ def self.mapper() } }, identity: { - client_side_validation: true, required: false, serialized_name: 'identity', type: { @@ -105,7 +100,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { @@ -114,7 +108,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, serialized_name: 'properties.encryption', type: { @@ -123,7 +116,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, serialized_name: 'properties.accessTier', type: { @@ -132,7 +124,6 @@ def self.mapper() } }, enable_https_traffic_only: { - client_side_validation: true, required: false, serialized_name: 'properties.supportsHttpsTrafficOnly', default_value: false, @@ -141,7 +132,6 @@ def self.mapper() } }, network_rule_set: { - client_side_validation: true, required: false, serialized_name: 'properties.networkAcls', type: { @@ -150,7 +140,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: false, serialized_name: 'kind', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb index da969e33c8..1ec49bde96 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb @@ -23,7 +23,6 @@ class StorageSkuListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageSkuListResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageSkuListResult', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SkuElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/usage.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/usage.rb index 9b39fcbaa9..7db908ca29 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/usage.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/usage.rb @@ -35,7 +35,6 @@ class Usage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Usage', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Usage', model_properties: { unit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'unit', @@ -53,7 +51,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'currentValue', @@ -62,7 +59,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'limit', @@ -71,7 +67,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/usage_list_result.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/usage_list_result.rb index 2ddaefead4..4767eb53f5 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/usage_list_result.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/usage_list_result.rb @@ -23,7 +23,6 @@ class UsageListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'UsageListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UsageElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/usage_name.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/usage_name.rb index e694d469ce..95cea63860 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/usage_name.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/usage_name.rb @@ -25,7 +25,6 @@ class UsageName # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageName', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UsageName', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', @@ -42,7 +40,6 @@ def self.mapper() } }, localized_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'localizedValue', diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb index f15aa28029..12dcc078ab 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb @@ -32,7 +32,6 @@ class VirtualNetworkRule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VirtualNetworkRule', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'VirtualNetworkRule', model_properties: { virtual_network_resource_id: { - client_side_validation: true, required: true, serialized_name: 'id', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, action: { - client_side_validation: true, required: false, serialized_name: 'action', default_value: 'Allow', @@ -58,7 +55,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/operations.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/operations.rb index fe7d0148a9..089e335c47 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/operations.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/operations.rb @@ -29,8 +29,8 @@ def initialize(client) # # @return [OperationListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -54,12 +54,11 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/skus.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/skus.rb index 0f01e2ef0a..af8ace817e 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/skus.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/skus.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [StorageSkuListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -57,13 +57,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/storage_accounts.rb index 17646a7e5e..df913c5d51 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers:nil) - response = check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability(account_name, custom_headers = nil) + response = check_name_availability_async(account_name, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def check_name_availability(account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers:nil) - check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers = nil) + check_name_availability_async(account_name, custom_headers).value! end # @@ -66,19 +66,20 @@ def check_name_availability_with_http_info(account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers:nil) + def check_name_availability_async(account_name, custom_headers = nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCheckNameAvailabilityParameters.mapper() request_content = @client.serialize(request_mapper, account_name) @@ -144,8 +145,8 @@ def check_name_availability_async(account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers:nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers = nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -163,9 +164,9 @@ def create(resource_group_name, account_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def create_async(resource_group_name, account_name, parameters, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -193,8 +194,8 @@ def create_async(resource_group_name, account_name, parameters, custom_headers:n # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers:nil) - response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete(resource_group_name, account_name, custom_headers = nil) + response = delete_async(resource_group_name, account_name, custom_headers).value! nil end @@ -211,8 +212,8 @@ def delete(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) - delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) + delete_async(resource_group_name, account_name, custom_headers).value! end # @@ -228,20 +229,14 @@ def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers:nil) + def delete_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -291,8 +286,8 @@ def delete_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers:nil) - response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers = nil) + response = get_properties_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -311,8 +306,8 @@ def get_properties(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) - get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) + get_properties_async(resource_group_name, account_name, custom_headers).value! end # @@ -330,20 +325,14 @@ def get_properties_with_http_info(resource_group_name, account_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers:nil) + def get_properties_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -411,8 +400,8 @@ def get_properties_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers:nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers = nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -439,8 +428,8 @@ def update(resource_group_name, account_name, parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + update_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -466,26 +455,22 @@ def update_with_http_info(resource_group_name, account_name, parameters, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers:nil) + def update_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -541,8 +526,8 @@ def update_async(resource_group_name, account_name, parameters, custom_headers:n # # @return [StorageAccountListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -555,8 +540,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -568,13 +553,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -630,8 +614,8 @@ def list_async(custom_headers:nil) # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -646,8 +630,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -661,17 +645,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -729,8 +709,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [StorageAccountListKeysResult] operation results. # - def list_keys(resource_group_name, account_name, custom_headers:nil) - response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers = nil) + response = list_keys_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -747,8 +727,8 @@ def list_keys(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) - list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) + list_keys_async(resource_group_name, account_name, custom_headers).value! end # @@ -764,20 +744,14 @@ def list_keys_with_http_info(resource_group_name, account_name, custom_headers:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers:nil) + def list_keys_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -837,8 +811,8 @@ def list_keys_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccountListKeysResult] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! response.body unless response.nil? end @@ -857,8 +831,8 @@ def regenerate_key(resource_group_name, account_name, regenerate_key, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! end # @@ -876,26 +850,22 @@ def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'regenerate_key is nil' if regenerate_key.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountRegenerateKeyParameters.mapper() request_content = @client.serialize(request_mapper, regenerate_key) @@ -957,8 +927,8 @@ def regenerate_key_async(resource_group_name, account_name, regenerate_key, cust # # @return [ListAccountSasResponse] operation results. # - def list_account_sas(resource_group_name, account_name, parameters, custom_headers:nil) - response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_account_sas(resource_group_name, account_name, parameters, custom_headers = nil) + response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -977,8 +947,8 @@ def list_account_sas(resource_group_name, account_name, parameters, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -996,26 +966,22 @@ def list_account_sas_with_http_info(resource_group_name, account_name, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) + def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2017_10_01::Models::AccountSasParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1077,8 +1043,8 @@ def list_account_sas_async(resource_group_name, account_name, parameters, custom # # @return [ListServiceSasResponse] operation results. # - def list_service_sas(resource_group_name, account_name, parameters, custom_headers:nil) - response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_service_sas(resource_group_name, account_name, parameters, custom_headers = nil) + response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1097,8 +1063,8 @@ def list_service_sas(resource_group_name, account_name, parameters, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -1116,26 +1082,22 @@ def list_service_sas_with_http_info(resource_group_name, account_name, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) + def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSasParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1201,8 +1163,8 @@ def list_service_sas_async(resource_group_name, account_name, parameters, custom # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1225,8 +1187,8 @@ def begin_create(resource_group_name, account_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -1248,26 +1210,22 @@ def begin_create_with_http_info(resource_group_name, account_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb index dd7bdb2022..04e97f26b2 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb @@ -118,9 +118,6 @@ def make_request_async(method, path, options = {}) fail ArgumentError, 'path is nil' if path.nil? request_url = options[:base_url] || @base_url - if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?) - @request_headers['Content-Type'] = options[:headers]['Content-Type'] - end request_headers = @request_headers request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? @@ -137,7 +134,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_storage' - sdk_information = "#{sdk_information}/0.16.1" + if defined? Azure::Storage::Mgmt::V2017_10_01::VERSION + sdk_information = "#{sdk_information}/#{Azure::Storage::Mgmt::V2017_10_01::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/usage_operations.rb index 7385efc490..5f3c7403dc 100644 --- a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [UsageListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -57,13 +57,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/version.rb b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/version.rb new file mode 100644 index 0000000000..3777c6cad8 --- /dev/null +++ b/management/azure_mgmt_storage/lib/2017-10-01/generated/azure_mgmt_storage/version.rb @@ -0,0 +1,8 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Storage::Mgmt::V2017_10_01 + VERSION = '0.16.1' +end diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/blob_containers.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/blob_containers.rb index 3528bb5a1b..e13ca29bdf 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/blob_containers.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/blob_containers.rb @@ -35,8 +35,8 @@ def initialize(client) # # @return [ListContainerItems] operation results. # - def list(resource_group_name, account_name, custom_headers:nil) - response = list_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list(resource_group_name, account_name, custom_headers = nil) + response = list_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -54,8 +54,8 @@ def list(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, account_name, custom_headers:nil) - list_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_with_http_info(resource_group_name, account_name, custom_headers = nil) + list_async(resource_group_name, account_name, custom_headers).value! end # @@ -72,22 +72,14 @@ def list_with_http_info(resource_group_name, account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, account_name, custom_headers:nil) + def list_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -155,8 +147,8 @@ def list_async(resource_group_name, account_name, custom_headers:nil) # # @return [BlobContainer] operation results. # - def create(resource_group_name, account_name, container_name, blob_container, custom_headers:nil) - response = create_async(resource_group_name, account_name, container_name, blob_container, custom_headers:custom_headers).value! + def create(resource_group_name, account_name, container_name, blob_container, custom_headers = nil) + response = create_async(resource_group_name, account_name, container_name, blob_container, custom_headers).value! response.body unless response.nil? end @@ -183,8 +175,8 @@ def create(resource_group_name, account_name, container_name, blob_container, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, account_name, container_name, blob_container, custom_headers:nil) - create_async(resource_group_name, account_name, container_name, blob_container, custom_headers:custom_headers).value! + def create_with_http_info(resource_group_name, account_name, container_name, blob_container, custom_headers = nil) + create_async(resource_group_name, account_name, container_name, blob_container, custom_headers).value! end # @@ -210,31 +202,23 @@ def create_with_http_info(resource_group_name, account_name, container_name, blo # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, account_name, container_name, blob_container, custom_headers:nil) + def create_async(resource_group_name, account_name, container_name, blob_container, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'container_name is nil' if container_name.nil? - fail ArgumentError, "'container_name' should satisfy the constraint - 'MaxLength': '63'" if !container_name.nil? && container_name.length > 63 - fail ArgumentError, "'container_name' should satisfy the constraint - 'MinLength': '3'" if !container_name.nil? && container_name.length < 3 fail ArgumentError, 'blob_container is nil' if blob_container.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::BlobContainer.mapper() request_content = @client.serialize(request_mapper, blob_container) @@ -303,8 +287,8 @@ def create_async(resource_group_name, account_name, container_name, blob_contain # # @return [BlobContainer] operation results. # - def update(resource_group_name, account_name, container_name, blob_container, custom_headers:nil) - response = update_async(resource_group_name, account_name, container_name, blob_container, custom_headers:custom_headers).value! + def update(resource_group_name, account_name, container_name, blob_container, custom_headers = nil) + response = update_async(resource_group_name, account_name, container_name, blob_container, custom_headers).value! response.body unless response.nil? end @@ -330,8 +314,8 @@ def update(resource_group_name, account_name, container_name, blob_container, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, container_name, blob_container, custom_headers:nil) - update_async(resource_group_name, account_name, container_name, blob_container, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, account_name, container_name, blob_container, custom_headers = nil) + update_async(resource_group_name, account_name, container_name, blob_container, custom_headers).value! end # @@ -356,31 +340,23 @@ def update_with_http_info(resource_group_name, account_name, container_name, blo # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, container_name, blob_container, custom_headers:nil) + def update_async(resource_group_name, account_name, container_name, blob_container, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'container_name is nil' if container_name.nil? - fail ArgumentError, "'container_name' should satisfy the constraint - 'MaxLength': '63'" if !container_name.nil? && container_name.length > 63 - fail ArgumentError, "'container_name' should satisfy the constraint - 'MinLength': '3'" if !container_name.nil? && container_name.length < 3 fail ArgumentError, 'blob_container is nil' if blob_container.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::BlobContainer.mapper() request_content = @client.serialize(request_mapper, blob_container) @@ -445,8 +421,8 @@ def update_async(resource_group_name, account_name, container_name, blob_contain # # @return [BlobContainer] operation results. # - def get(resource_group_name, account_name, container_name, custom_headers:nil) - response = get_async(resource_group_name, account_name, container_name, custom_headers:custom_headers).value! + def get(resource_group_name, account_name, container_name, custom_headers = nil) + response = get_async(resource_group_name, account_name, container_name, custom_headers).value! response.body unless response.nil? end @@ -468,8 +444,8 @@ def get(resource_group_name, account_name, container_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, account_name, container_name, custom_headers:nil) - get_async(resource_group_name, account_name, container_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, account_name, container_name, custom_headers = nil) + get_async(resource_group_name, account_name, container_name, custom_headers).value! end # @@ -490,25 +466,15 @@ def get_with_http_info(resource_group_name, account_name, container_name, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, account_name, container_name, custom_headers:nil) + def get_async(resource_group_name, account_name, container_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'container_name is nil' if container_name.nil? - fail ArgumentError, "'container_name' should satisfy the constraint - 'MaxLength': '63'" if !container_name.nil? && container_name.length > 63 - fail ArgumentError, "'container_name' should satisfy the constraint - 'MinLength': '3'" if !container_name.nil? && container_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -570,8 +536,8 @@ def get_async(resource_group_name, account_name, container_name, custom_headers: # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, container_name, custom_headers:nil) - response = delete_async(resource_group_name, account_name, container_name, custom_headers:custom_headers).value! + def delete(resource_group_name, account_name, container_name, custom_headers = nil) + response = delete_async(resource_group_name, account_name, container_name, custom_headers).value! nil end @@ -593,8 +559,8 @@ def delete(resource_group_name, account_name, container_name, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, container_name, custom_headers:nil) - delete_async(resource_group_name, account_name, container_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, container_name, custom_headers = nil) + delete_async(resource_group_name, account_name, container_name, custom_headers).value! end # @@ -615,25 +581,15 @@ def delete_with_http_info(resource_group_name, account_name, container_name, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, container_name, custom_headers:nil) + def delete_async(resource_group_name, account_name, container_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'container_name is nil' if container_name.nil? - fail ArgumentError, "'container_name' should satisfy the constraint - 'MaxLength': '63'" if !container_name.nil? && container_name.length > 63 - fail ArgumentError, "'container_name' should satisfy the constraint - 'MinLength': '3'" if !container_name.nil? && container_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -690,8 +646,8 @@ def delete_async(resource_group_name, account_name, container_name, custom_heade # # @return [LegalHold] operation results. # - def set_legal_hold(resource_group_name, account_name, container_name, legal_hold, custom_headers:nil) - response = set_legal_hold_async(resource_group_name, account_name, container_name, legal_hold, custom_headers:custom_headers).value! + def set_legal_hold(resource_group_name, account_name, container_name, legal_hold, custom_headers = nil) + response = set_legal_hold_async(resource_group_name, account_name, container_name, legal_hold, custom_headers).value! response.body unless response.nil? end @@ -717,8 +673,8 @@ def set_legal_hold(resource_group_name, account_name, container_name, legal_hold # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def set_legal_hold_with_http_info(resource_group_name, account_name, container_name, legal_hold, custom_headers:nil) - set_legal_hold_async(resource_group_name, account_name, container_name, legal_hold, custom_headers:custom_headers).value! + def set_legal_hold_with_http_info(resource_group_name, account_name, container_name, legal_hold, custom_headers = nil) + set_legal_hold_async(resource_group_name, account_name, container_name, legal_hold, custom_headers).value! end # @@ -743,31 +699,23 @@ def set_legal_hold_with_http_info(resource_group_name, account_name, container_n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def set_legal_hold_async(resource_group_name, account_name, container_name, legal_hold, custom_headers:nil) + def set_legal_hold_async(resource_group_name, account_name, container_name, legal_hold, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'container_name is nil' if container_name.nil? - fail ArgumentError, "'container_name' should satisfy the constraint - 'MaxLength': '63'" if !container_name.nil? && container_name.length > 63 - fail ArgumentError, "'container_name' should satisfy the constraint - 'MinLength': '3'" if !container_name.nil? && container_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 fail ArgumentError, 'legal_hold is nil' if legal_hold.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::LegalHold.mapper() request_content = @client.serialize(request_mapper, legal_hold) @@ -836,8 +784,8 @@ def set_legal_hold_async(resource_group_name, account_name, container_name, lega # # @return [LegalHold] operation results. # - def clear_legal_hold(resource_group_name, account_name, container_name, legal_hold, custom_headers:nil) - response = clear_legal_hold_async(resource_group_name, account_name, container_name, legal_hold, custom_headers:custom_headers).value! + def clear_legal_hold(resource_group_name, account_name, container_name, legal_hold, custom_headers = nil) + response = clear_legal_hold_async(resource_group_name, account_name, container_name, legal_hold, custom_headers).value! response.body unless response.nil? end @@ -863,8 +811,8 @@ def clear_legal_hold(resource_group_name, account_name, container_name, legal_ho # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def clear_legal_hold_with_http_info(resource_group_name, account_name, container_name, legal_hold, custom_headers:nil) - clear_legal_hold_async(resource_group_name, account_name, container_name, legal_hold, custom_headers:custom_headers).value! + def clear_legal_hold_with_http_info(resource_group_name, account_name, container_name, legal_hold, custom_headers = nil) + clear_legal_hold_async(resource_group_name, account_name, container_name, legal_hold, custom_headers).value! end # @@ -889,31 +837,23 @@ def clear_legal_hold_with_http_info(resource_group_name, account_name, container # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def clear_legal_hold_async(resource_group_name, account_name, container_name, legal_hold, custom_headers:nil) + def clear_legal_hold_async(resource_group_name, account_name, container_name, legal_hold, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'container_name is nil' if container_name.nil? - fail ArgumentError, "'container_name' should satisfy the constraint - 'MaxLength': '63'" if !container_name.nil? && container_name.length > 63 - fail ArgumentError, "'container_name' should satisfy the constraint - 'MinLength': '3'" if !container_name.nil? && container_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 fail ArgumentError, 'legal_hold is nil' if legal_hold.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::LegalHold.mapper() request_content = @client.serialize(request_mapper, legal_hold) @@ -985,8 +925,8 @@ def clear_legal_hold_async(resource_group_name, account_name, container_name, le # # @return [ImmutabilityPolicy] operation results. # - def create_or_update_immutability_policy(resource_group_name, account_name, container_name, parameters:nil, if_match:nil, custom_headers:nil) - response = create_or_update_immutability_policy_async(resource_group_name, account_name, container_name, parameters:parameters, if_match:if_match, custom_headers:custom_headers).value! + def create_or_update_immutability_policy(resource_group_name, account_name, container_name, parameters = nil, if_match = nil, custom_headers = nil) + response = create_or_update_immutability_policy_async(resource_group_name, account_name, container_name, parameters, if_match, custom_headers).value! response.body unless response.nil? end @@ -1015,8 +955,8 @@ def create_or_update_immutability_policy(resource_group_name, account_name, cont # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_immutability_policy_with_http_info(resource_group_name, account_name, container_name, parameters:nil, if_match:nil, custom_headers:nil) - create_or_update_immutability_policy_async(resource_group_name, account_name, container_name, parameters:parameters, if_match:if_match, custom_headers:custom_headers).value! + def create_or_update_immutability_policy_with_http_info(resource_group_name, account_name, container_name, parameters = nil, if_match = nil, custom_headers = nil) + create_or_update_immutability_policy_async(resource_group_name, account_name, container_name, parameters, if_match, custom_headers).value! end # @@ -1044,32 +984,24 @@ def create_or_update_immutability_policy_with_http_info(resource_group_name, acc # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_immutability_policy_async(resource_group_name, account_name, container_name, parameters:nil, if_match:nil, custom_headers:nil) + def create_or_update_immutability_policy_async(resource_group_name, account_name, container_name, parameters = nil, if_match = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'container_name is nil' if container_name.nil? - fail ArgumentError, "'container_name' should satisfy the constraint - 'MaxLength': '63'" if !container_name.nil? && container_name.length > 63 - fail ArgumentError, "'container_name' should satisfy the constraint - 'MinLength': '3'" if !container_name.nil? && container_name.length < 3 immutability_policy_name = 'default' fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::ImmutabilityPolicy.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1139,8 +1071,8 @@ def create_or_update_immutability_policy_async(resource_group_name, account_name # # @return [ImmutabilityPolicy] operation results. # - def get_immutability_policy(resource_group_name, account_name, container_name, if_match:nil, custom_headers:nil) - response = get_immutability_policy_async(resource_group_name, account_name, container_name, if_match:if_match, custom_headers:custom_headers).value! + def get_immutability_policy(resource_group_name, account_name, container_name, if_match = nil, custom_headers = nil) + response = get_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers).value! response.body unless response.nil? end @@ -1167,8 +1099,8 @@ def get_immutability_policy(resource_group_name, account_name, container_name, i # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_immutability_policy_with_http_info(resource_group_name, account_name, container_name, if_match:nil, custom_headers:nil) - get_immutability_policy_async(resource_group_name, account_name, container_name, if_match:if_match, custom_headers:custom_headers).value! + def get_immutability_policy_with_http_info(resource_group_name, account_name, container_name, if_match = nil, custom_headers = nil) + get_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers).value! end # @@ -1194,26 +1126,16 @@ def get_immutability_policy_with_http_info(resource_group_name, account_name, co # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_immutability_policy_async(resource_group_name, account_name, container_name, if_match:nil, custom_headers:nil) + def get_immutability_policy_async(resource_group_name, account_name, container_name, if_match = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'container_name is nil' if container_name.nil? - fail ArgumentError, "'container_name' should satisfy the constraint - 'MaxLength': '63'" if !container_name.nil? && container_name.length > 63 - fail ArgumentError, "'container_name' should satisfy the constraint - 'MinLength': '3'" if !container_name.nil? && container_name.length < 3 immutability_policy_name = 'default' fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1285,8 +1207,8 @@ def get_immutability_policy_async(resource_group_name, account_name, container_n # # @return [ImmutabilityPolicy] operation results. # - def delete_immutability_policy(resource_group_name, account_name, container_name, if_match, custom_headers:nil) - response = delete_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers:custom_headers).value! + def delete_immutability_policy(resource_group_name, account_name, container_name, if_match, custom_headers = nil) + response = delete_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers).value! response.body unless response.nil? end @@ -1316,8 +1238,8 @@ def delete_immutability_policy(resource_group_name, account_name, container_name # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_immutability_policy_with_http_info(resource_group_name, account_name, container_name, if_match, custom_headers:nil) - delete_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers:custom_headers).value! + def delete_immutability_policy_with_http_info(resource_group_name, account_name, container_name, if_match, custom_headers = nil) + delete_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers).value! end # @@ -1346,27 +1268,17 @@ def delete_immutability_policy_with_http_info(resource_group_name, account_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers:nil) + def delete_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'container_name is nil' if container_name.nil? - fail ArgumentError, "'container_name' should satisfy the constraint - 'MaxLength': '63'" if !container_name.nil? && container_name.length > 63 - fail ArgumentError, "'container_name' should satisfy the constraint - 'MinLength': '3'" if !container_name.nil? && container_name.length < 3 immutability_policy_name = 'default' fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 fail ArgumentError, 'if_match is nil' if if_match.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1436,8 +1348,8 @@ def delete_immutability_policy_async(resource_group_name, account_name, containe # # @return [ImmutabilityPolicy] operation results. # - def lock_immutability_policy(resource_group_name, account_name, container_name, if_match, custom_headers:nil) - response = lock_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers:custom_headers).value! + def lock_immutability_policy(resource_group_name, account_name, container_name, if_match, custom_headers = nil) + response = lock_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers).value! response.body unless response.nil? end @@ -1465,8 +1377,8 @@ def lock_immutability_policy(resource_group_name, account_name, container_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def lock_immutability_policy_with_http_info(resource_group_name, account_name, container_name, if_match, custom_headers:nil) - lock_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers:custom_headers).value! + def lock_immutability_policy_with_http_info(resource_group_name, account_name, container_name, if_match, custom_headers = nil) + lock_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers).value! end # @@ -1493,26 +1405,16 @@ def lock_immutability_policy_with_http_info(resource_group_name, account_name, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def lock_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers:nil) + def lock_immutability_policy_async(resource_group_name, account_name, container_name, if_match, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'container_name is nil' if container_name.nil? - fail ArgumentError, "'container_name' should satisfy the constraint - 'MaxLength': '63'" if !container_name.nil? && container_name.length > 63 - fail ArgumentError, "'container_name' should satisfy the constraint - 'MinLength': '3'" if !container_name.nil? && container_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 fail ArgumentError, 'if_match is nil' if if_match.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1584,8 +1486,8 @@ def lock_immutability_policy_async(resource_group_name, account_name, container_ # # @return [ImmutabilityPolicy] operation results. # - def extend_immutability_policy(resource_group_name, account_name, container_name, if_match, parameters:nil, custom_headers:nil) - response = extend_immutability_policy_async(resource_group_name, account_name, container_name, if_match, parameters:parameters, custom_headers:custom_headers).value! + def extend_immutability_policy(resource_group_name, account_name, container_name, if_match, parameters = nil, custom_headers = nil) + response = extend_immutability_policy_async(resource_group_name, account_name, container_name, if_match, parameters, custom_headers).value! response.body unless response.nil? end @@ -1615,8 +1517,8 @@ def extend_immutability_policy(resource_group_name, account_name, container_name # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def extend_immutability_policy_with_http_info(resource_group_name, account_name, container_name, if_match, parameters:nil, custom_headers:nil) - extend_immutability_policy_async(resource_group_name, account_name, container_name, if_match, parameters:parameters, custom_headers:custom_headers).value! + def extend_immutability_policy_with_http_info(resource_group_name, account_name, container_name, if_match, parameters = nil, custom_headers = nil) + extend_immutability_policy_async(resource_group_name, account_name, container_name, if_match, parameters, custom_headers).value! end # @@ -1645,32 +1547,24 @@ def extend_immutability_policy_with_http_info(resource_group_name, account_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def extend_immutability_policy_async(resource_group_name, account_name, container_name, if_match, parameters:nil, custom_headers:nil) + def extend_immutability_policy_async(resource_group_name, account_name, container_name, if_match, parameters = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'container_name is nil' if container_name.nil? - fail ArgumentError, "'container_name' should satisfy the constraint - 'MaxLength': '63'" if !container_name.nil? && container_name.length > 63 - fail ArgumentError, "'container_name' should satisfy the constraint - 'MinLength': '3'" if !container_name.nil? && container_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 fail ArgumentError, 'if_match is nil' if if_match.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['If-Match'] = if_match unless if_match.nil? request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::ImmutabilityPolicy.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb index e8faa1e50d..c61a768f56 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb @@ -55,7 +55,6 @@ class AccountSasParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AccountSasParameters', type: { @@ -63,7 +62,6 @@ def self.mapper() class_name: 'AccountSasParameters', model_properties: { services: { - client_side_validation: true, required: true, serialized_name: 'signedServices', type: { @@ -71,7 +69,6 @@ def self.mapper() } }, resource_types: { - client_side_validation: true, required: true, serialized_name: 'signedResourceTypes', type: { @@ -79,7 +76,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: true, serialized_name: 'signedPermission', type: { @@ -87,7 +83,6 @@ def self.mapper() } }, ipaddress_or_range: { - client_side_validation: true, required: false, serialized_name: 'signedIp', type: { @@ -95,7 +90,6 @@ def self.mapper() } }, protocols: { - client_side_validation: true, required: false, serialized_name: 'signedProtocol', type: { @@ -104,7 +98,6 @@ def self.mapper() } }, shared_access_start_time: { - client_side_validation: true, required: false, serialized_name: 'signedStart', type: { @@ -112,7 +105,6 @@ def self.mapper() } }, shared_access_expiry_time: { - client_side_validation: true, required: true, serialized_name: 'signedExpiry', type: { @@ -120,7 +112,6 @@ def self.mapper() } }, key_to_sign: { - client_side_validation: true, required: false, serialized_name: 'keyToSign', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb index 88d9303ffd..024cac2f58 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb @@ -23,7 +23,6 @@ class AzureEntityResource < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AzureEntityResource', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'AzureEntityResource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -40,7 +38,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -49,7 +46,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -58,7 +54,6 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'etag', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb index a5a31ff3e6..95e58f08e8 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/blob_container.rb @@ -66,7 +66,6 @@ class BlobContainer < AzureEntityResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'BlobContainer', type: { @@ -74,7 +73,6 @@ def self.mapper() class_name: 'BlobContainer', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -83,7 +81,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -92,7 +89,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -101,7 +97,6 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'etag', @@ -110,7 +105,6 @@ def self.mapper() } }, public_access: { - client_side_validation: true, required: false, serialized_name: 'properties.publicAccess', type: { @@ -119,7 +113,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTime', @@ -128,7 +121,6 @@ def self.mapper() } }, lease_status: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.leaseStatus', @@ -137,7 +129,6 @@ def self.mapper() } }, lease_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.leaseState', @@ -146,7 +137,6 @@ def self.mapper() } }, lease_duration: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.leaseDuration', @@ -155,13 +145,11 @@ def self.mapper() } }, metadata: { - client_side_validation: true, required: false, serialized_name: 'properties.metadata', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -171,7 +159,6 @@ def self.mapper() } }, immutability_policy: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.immutabilityPolicy', @@ -181,7 +168,6 @@ def self.mapper() } }, legal_hold: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.legalHold', @@ -191,7 +177,6 @@ def self.mapper() } }, has_legal_hold: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.hasLegalHold', @@ -200,7 +185,6 @@ def self.mapper() } }, has_immutability_policy: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.hasImmutabilityPolicy', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb index c9e7c3e788..78066e8875 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb @@ -33,7 +33,6 @@ class CheckNameAvailabilityResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityResult', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityResult', model_properties: { name_available: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'nameAvailable', @@ -50,7 +48,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'reason', @@ -60,7 +57,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/custom_domain.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/custom_domain.rb index 3214e947ec..4b9535ad2d 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/custom_domain.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/custom_domain.rb @@ -28,7 +28,6 @@ class CustomDomain # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomain', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'CustomDomain', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, use_sub_domain: { - client_side_validation: true, required: false, serialized_name: 'useSubDomain', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/dimension.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/dimension.rb index d827009212..3e4674cb45 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/dimension.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/dimension.rb @@ -25,7 +25,6 @@ class Dimension # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Dimension', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Dimension', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, display_name: { - client_side_validation: true, required: false, serialized_name: 'displayName', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/encryption.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/encryption.rb index 233e72c7ae..c66cba8342 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/encryption.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/encryption.rb @@ -31,7 +31,6 @@ class Encryption # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Encryption', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'Encryption', model_properties: { services: { - client_side_validation: true, required: false, serialized_name: 'services', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, key_source: { - client_side_validation: true, required: true, serialized_name: 'keySource', default_value: 'Microsoft.Storage', @@ -57,7 +54,6 @@ def self.mapper() } }, key_vault_properties: { - client_side_validation: true, required: false, serialized_name: 'keyvaultproperties', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/encryption_service.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/encryption_service.rb index 5d4610389f..7c3801affd 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/encryption_service.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/encryption_service.rb @@ -29,7 +29,6 @@ class EncryptionService # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EncryptionService', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'EncryptionService', model_properties: { enabled: { - client_side_validation: true, required: false, serialized_name: 'enabled', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, last_enabled_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'lastEnabledTime', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/encryption_services.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/encryption_services.rb index 951522b5fc..5e82fd6666 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/encryption_services.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/encryption_services.rb @@ -35,7 +35,6 @@ class EncryptionServices # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EncryptionServices', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'EncryptionServices', model_properties: { blob: { - client_side_validation: true, required: false, serialized_name: 'blob', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, file: { - client_side_validation: true, required: false, serialized_name: 'file', type: { @@ -61,7 +58,6 @@ def self.mapper() } }, table: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'table', @@ -71,7 +67,6 @@ def self.mapper() } }, queue: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'queue', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/endpoints.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/endpoints.rb index 457a43ec74..0afbd32b8f 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/endpoints.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/endpoints.rb @@ -32,7 +32,6 @@ class Endpoints # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Endpoints', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'Endpoints', model_properties: { blob: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'blob', @@ -49,7 +47,6 @@ def self.mapper() } }, queue: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'queue', @@ -58,7 +55,6 @@ def self.mapper() } }, table: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'table', @@ -67,7 +63,6 @@ def self.mapper() } }, file: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'file', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/identity.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/identity.rb index e7896ae156..51a417d742 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/identity.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/identity.rb @@ -28,7 +28,6 @@ class Identity # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Identity', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'Identity', model_properties: { principal_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'principalId', @@ -45,7 +43,6 @@ def self.mapper() } }, tenant_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'tenantId', @@ -54,7 +51,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/immutability_policy.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/immutability_policy.rb index fbb43a6339..8f9d5adc6b 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/immutability_policy.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/immutability_policy.rb @@ -29,7 +29,6 @@ class ImmutabilityPolicy < AzureEntityResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ImmutabilityPolicy', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ImmutabilityPolicy', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -46,7 +44,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -55,7 +52,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -64,7 +60,6 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'etag', @@ -73,7 +68,6 @@ def self.mapper() } }, immutability_period_since_creation_in_days: { - client_side_validation: true, required: true, serialized_name: 'properties.immutabilityPeriodSinceCreationInDays', type: { @@ -81,7 +75,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.state', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb index 233b119eb1..46ac5ba634 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb @@ -35,7 +35,6 @@ class ImmutabilityPolicyProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ImmutabilityPolicyProperties', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'ImmutabilityPolicyProperties', model_properties: { immutability_period_since_creation_in_days: { - client_side_validation: true, required: true, serialized_name: 'properties.immutabilityPeriodSinceCreationInDays', type: { @@ -51,7 +49,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.state', @@ -60,7 +57,6 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'etag', @@ -69,14 +65,12 @@ def self.mapper() } }, update_history: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'updateHistory', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UpdateHistoryPropertyElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/iprule.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/iprule.rb index 31089b07d2..5b0462d674 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/iprule.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/iprule.rb @@ -27,7 +27,6 @@ class IPRule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IPRule', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'IPRule', model_properties: { ipaddress_or_range: { - client_side_validation: true, required: true, serialized_name: 'value', type: { @@ -43,7 +41,6 @@ def self.mapper() } }, action: { - client_side_validation: true, required: false, serialized_name: 'action', default_value: 'Allow', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/key_vault_properties.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/key_vault_properties.rb index dd20a0429f..4e979de607 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/key_vault_properties.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/key_vault_properties.rb @@ -28,7 +28,6 @@ class KeyVaultProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'KeyVaultProperties', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'KeyVaultProperties', model_properties: { key_name: { - client_side_validation: true, required: false, serialized_name: 'keyname', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, key_version: { - client_side_validation: true, required: false, serialized_name: 'keyversion', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, key_vault_uri: { - client_side_validation: true, required: false, serialized_name: 'keyvaulturi', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/legal_hold.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/legal_hold.rb index 5f9a96e7b0..d49552518f 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/legal_hold.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/legal_hold.rb @@ -30,7 +30,6 @@ class LegalHold # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LegalHold', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'LegalHold', model_properties: { has_legal_hold: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'hasLegalHold', @@ -47,13 +45,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: true, serialized_name: 'tags', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb index 68a858a6e1..486d8caa89 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb @@ -30,7 +30,6 @@ class LegalHoldProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LegalHoldProperties', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'LegalHoldProperties', model_properties: { has_legal_hold: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'hasLegalHold', @@ -47,13 +45,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'TagPropertyElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb index b0433e0896..e66e02df6c 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb @@ -22,7 +22,6 @@ class ListAccountSasResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ListAccountSasResponse', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ListAccountSasResponse', model_properties: { account_sas_token: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'accountSasToken', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_container_item.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_container_item.rb index 63d8814434..cec2084b38 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_container_item.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_container_item.rb @@ -65,7 +65,6 @@ class ListContainerItem < AzureEntityResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ListContainerItem', type: { @@ -73,7 +72,6 @@ def self.mapper() class_name: 'ListContainerItem', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -82,7 +80,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -91,7 +88,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -100,7 +96,6 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'etag', @@ -109,7 +104,6 @@ def self.mapper() } }, public_access: { - client_side_validation: true, required: false, serialized_name: 'properties.publicAccess', type: { @@ -118,7 +112,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTime', @@ -127,7 +120,6 @@ def self.mapper() } }, lease_status: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.leaseStatus', @@ -136,7 +128,6 @@ def self.mapper() } }, lease_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.leaseState', @@ -145,7 +136,6 @@ def self.mapper() } }, lease_duration: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.leaseDuration', @@ -154,13 +144,11 @@ def self.mapper() } }, metadata: { - client_side_validation: true, required: false, serialized_name: 'properties.metadata', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -170,7 +158,6 @@ def self.mapper() } }, immutability_policy: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.immutabilityPolicy', @@ -180,7 +167,6 @@ def self.mapper() } }, legal_hold: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.legalHold', @@ -190,7 +176,6 @@ def self.mapper() } }, has_legal_hold: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.hasLegalHold', @@ -199,7 +184,6 @@ def self.mapper() } }, has_immutability_policy: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.hasImmutabilityPolicy', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_container_items.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_container_items.rb index 17787db297..556aee5431 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_container_items.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_container_items.rb @@ -22,7 +22,6 @@ class ListContainerItems # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ListContainerItems', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'ListContainerItems', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ListContainerItemElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb index f30089c046..56d3baceab 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb @@ -22,7 +22,6 @@ class ListServiceSasResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ListServiceSasResponse', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ListServiceSasResponse', model_properties: { service_sas_token: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'serviceSasToken', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/metric_specification.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/metric_specification.rb index b65950d6cd..10a8275cb5 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/metric_specification.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/metric_specification.rb @@ -48,7 +48,6 @@ class MetricSpecification # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'MetricSpecification', type: { @@ -56,7 +55,6 @@ def self.mapper() class_name: 'MetricSpecification', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -64,7 +62,6 @@ def self.mapper() } }, display_name: { - client_side_validation: true, required: false, serialized_name: 'displayName', type: { @@ -72,7 +69,6 @@ def self.mapper() } }, display_description: { - client_side_validation: true, required: false, serialized_name: 'displayDescription', type: { @@ -80,7 +76,6 @@ def self.mapper() } }, unit: { - client_side_validation: true, required: false, serialized_name: 'unit', type: { @@ -88,13 +83,11 @@ def self.mapper() } }, dimensions: { - client_side_validation: true, required: false, serialized_name: 'dimensions', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DimensionElementType', type: { @@ -105,7 +98,6 @@ def self.mapper() } }, aggregation_type: { - client_side_validation: true, required: false, serialized_name: 'aggregationType', type: { @@ -113,7 +105,6 @@ def self.mapper() } }, fill_gap_with_zero: { - client_side_validation: true, required: false, serialized_name: 'fillGapWithZero', type: { @@ -121,7 +112,6 @@ def self.mapper() } }, category: { - client_side_validation: true, required: false, serialized_name: 'category', type: { @@ -129,7 +119,6 @@ def self.mapper() } }, resource_id_dimension_name_override: { - client_side_validation: true, required: false, serialized_name: 'resourceIdDimensionNameOverride', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/network_rule_set.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/network_rule_set.rb index 9c1be57abd..9127d9681e 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/network_rule_set.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/network_rule_set.rb @@ -37,7 +37,6 @@ class NetworkRuleSet # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'NetworkRuleSet', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'NetworkRuleSet', model_properties: { bypass: { - client_side_validation: true, required: false, serialized_name: 'bypass', default_value: 'AzureServices', @@ -54,13 +52,11 @@ def self.mapper() } }, virtual_network_rules: { - client_side_validation: true, required: false, serialized_name: 'virtualNetworkRules', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VirtualNetworkRuleElementType', type: { @@ -71,13 +67,11 @@ def self.mapper() } }, ip_rules: { - client_side_validation: true, required: false, serialized_name: 'ipRules', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'IPRuleElementType', type: { @@ -88,7 +82,6 @@ def self.mapper() } }, default_action: { - client_side_validation: true, required: true, serialized_name: 'defaultAction', default_value: 'Allow', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/operation.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/operation.rb index ab688852b5..6c5ed55c20 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/operation.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/operation.rb @@ -33,7 +33,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: false, serialized_name: 'display', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, origin: { - client_side_validation: true, required: false, serialized_name: 'origin', type: { @@ -66,7 +62,6 @@ def self.mapper() } }, service_specification: { - client_side_validation: true, required: false, serialized_name: 'properties.serviceSpecification', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/operation_display.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/operation_display.rb index 1588f21c1c..13a6a5b869 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/operation_display.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/operation_display.rb @@ -28,7 +28,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, serialized_name: 'resource', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, serialized_name: 'operation', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/operation_list_result.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/operation_list_result.rb index 3754ae5e4e..3504954b01 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/operation_list_result.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/operation_list_result.rb @@ -24,7 +24,6 @@ class OperationListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationListResult', type: { @@ -32,13 +31,11 @@ def self.mapper() class_name: 'OperationListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OperationElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/proxy_resource.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/proxy_resource.rb index 4da1f3848c..40d4157e1d 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/proxy_resource.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/proxy_resource.rb @@ -20,7 +20,6 @@ class ProxyResource < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProxyResource', type: { @@ -28,7 +27,6 @@ def self.mapper() class_name: 'ProxyResource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -37,7 +35,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -46,7 +43,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/resource.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/resource.rb index 2a95345b09..67e376d6b8 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/resource.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/resource.rb @@ -31,7 +31,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -48,7 +46,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -57,7 +54,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/restriction.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/restriction.rb index ff4e0db990..3ca7d38e3f 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/restriction.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/restriction.rb @@ -35,7 +35,6 @@ class Restriction # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Restriction', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Restriction', model_properties: { type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -52,14 +50,12 @@ def self.mapper() } }, values: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'values', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, reason_code: { - client_side_validation: true, required: false, serialized_name: 'reasonCode', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb index 605316fc02..fcc80cf32b 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb @@ -83,7 +83,6 @@ class ServiceSasParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ServiceSasParameters', type: { @@ -91,7 +90,6 @@ def self.mapper() class_name: 'ServiceSasParameters', model_properties: { canonicalized_resource: { - client_side_validation: true, required: true, serialized_name: 'canonicalizedResource', type: { @@ -99,7 +97,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: true, serialized_name: 'signedResource', type: { @@ -107,7 +104,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: false, serialized_name: 'signedPermission', type: { @@ -115,7 +111,6 @@ def self.mapper() } }, ipaddress_or_range: { - client_side_validation: true, required: false, serialized_name: 'signedIp', type: { @@ -123,7 +118,6 @@ def self.mapper() } }, protocols: { - client_side_validation: true, required: false, serialized_name: 'signedProtocol', type: { @@ -132,7 +126,6 @@ def self.mapper() } }, shared_access_start_time: { - client_side_validation: true, required: false, serialized_name: 'signedStart', type: { @@ -140,7 +133,6 @@ def self.mapper() } }, shared_access_expiry_time: { - client_side_validation: true, required: false, serialized_name: 'signedExpiry', type: { @@ -148,7 +140,6 @@ def self.mapper() } }, identifier: { - client_side_validation: true, required: false, serialized_name: 'signedIdentifier', constraints: { @@ -159,7 +150,6 @@ def self.mapper() } }, partition_key_start: { - client_side_validation: true, required: false, serialized_name: 'startPk', type: { @@ -167,7 +157,6 @@ def self.mapper() } }, partition_key_end: { - client_side_validation: true, required: false, serialized_name: 'endPk', type: { @@ -175,7 +164,6 @@ def self.mapper() } }, row_key_start: { - client_side_validation: true, required: false, serialized_name: 'startRk', type: { @@ -183,7 +171,6 @@ def self.mapper() } }, row_key_end: { - client_side_validation: true, required: false, serialized_name: 'endRk', type: { @@ -191,7 +178,6 @@ def self.mapper() } }, key_to_sign: { - client_side_validation: true, required: false, serialized_name: 'keyToSign', type: { @@ -199,7 +185,6 @@ def self.mapper() } }, cache_control: { - client_side_validation: true, required: false, serialized_name: 'rscc', type: { @@ -207,7 +192,6 @@ def self.mapper() } }, content_disposition: { - client_side_validation: true, required: false, serialized_name: 'rscd', type: { @@ -215,7 +199,6 @@ def self.mapper() } }, content_encoding: { - client_side_validation: true, required: false, serialized_name: 'rsce', type: { @@ -223,7 +206,6 @@ def self.mapper() } }, content_language: { - client_side_validation: true, required: false, serialized_name: 'rscl', type: { @@ -231,7 +213,6 @@ def self.mapper() } }, content_type: { - client_side_validation: true, required: false, serialized_name: 'rsct', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/service_specification.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/service_specification.rb index 4d4824570b..b4e1a4ee8a 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/service_specification.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/service_specification.rb @@ -23,7 +23,6 @@ class ServiceSpecification # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ServiceSpecification', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'ServiceSpecification', model_properties: { metric_specifications: { - client_side_validation: true, required: false, serialized_name: 'metricSpecifications', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'MetricSpecificationElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/sku.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/sku.rb index ba9503032a..b046b2ef4e 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/sku.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/sku.rb @@ -51,7 +51,6 @@ class Sku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Sku', type: { @@ -59,7 +58,6 @@ def self.mapper() class_name: 'Sku', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -68,7 +66,6 @@ def self.mapper() } }, tier: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'tier', @@ -78,7 +75,6 @@ def self.mapper() } }, resource_type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'resourceType', @@ -87,7 +83,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'kind', @@ -97,14 +92,12 @@ def self.mapper() } }, locations: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'locations', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -114,14 +107,12 @@ def self.mapper() } }, capabilities: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'capabilities', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SKUCapabilityElementType', type: { @@ -132,13 +123,11 @@ def self.mapper() } }, restrictions: { - client_side_validation: true, required: false, serialized_name: 'restrictions', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'RestrictionElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/skucapability.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/skucapability.rb index 98b4b726df..e27aa4da98 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/skucapability.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/skucapability.rb @@ -29,7 +29,6 @@ class SKUCapability # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SKUCapability', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'SKUCapability', model_properties: { name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -46,7 +44,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account.rb index 55ed39fe32..401af35c8c 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account.rb @@ -95,7 +95,6 @@ class StorageAccount < TrackedResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccount', type: { @@ -103,7 +102,6 @@ def self.mapper() class_name: 'StorageAccount', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -112,7 +110,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -121,7 +118,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -130,13 +126,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -146,7 +140,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -154,7 +147,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'sku', @@ -164,7 +156,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'kind', @@ -174,7 +165,6 @@ def self.mapper() } }, identity: { - client_side_validation: true, required: false, serialized_name: 'identity', type: { @@ -183,7 +173,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -193,7 +182,6 @@ def self.mapper() } }, primary_endpoints: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.primaryEndpoints', @@ -203,7 +191,6 @@ def self.mapper() } }, primary_location: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.primaryLocation', @@ -212,7 +199,6 @@ def self.mapper() } }, status_of_primary: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.statusOfPrimary', @@ -222,7 +208,6 @@ def self.mapper() } }, last_geo_failover_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastGeoFailoverTime', @@ -231,7 +216,6 @@ def self.mapper() } }, secondary_location: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.secondaryLocation', @@ -240,7 +224,6 @@ def self.mapper() } }, status_of_secondary: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.statusOfSecondary', @@ -250,7 +233,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -259,7 +241,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.customDomain', @@ -269,7 +250,6 @@ def self.mapper() } }, secondary_endpoints: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.secondaryEndpoints', @@ -279,7 +259,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.encryption', @@ -289,7 +268,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.accessTier', @@ -299,7 +277,6 @@ def self.mapper() } }, enable_https_traffic_only: { - client_side_validation: true, required: false, serialized_name: 'properties.supportsHttpsTrafficOnly', default_value: false, @@ -308,7 +285,6 @@ def self.mapper() } }, network_rule_set: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.networkAcls', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb index 9e7c124e7c..9e9334a03a 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb @@ -28,7 +28,6 @@ class StorageAccountCheckNameAvailabilityParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCheckNameAvailabilityParameters', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'StorageAccountCheckNameAvailabilityParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'type', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb index 2392115fc6..668951b99e 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb @@ -67,7 +67,6 @@ class StorageAccountCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountCreateParameters', type: { @@ -75,7 +74,6 @@ def self.mapper() class_name: 'StorageAccountCreateParameters', model_properties: { sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -84,7 +82,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: true, serialized_name: 'kind', type: { @@ -93,7 +90,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -101,13 +97,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -117,7 +111,6 @@ def self.mapper() } }, identity: { - client_side_validation: true, required: false, serialized_name: 'identity', type: { @@ -126,7 +119,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { @@ -135,7 +127,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, serialized_name: 'properties.encryption', type: { @@ -144,7 +135,6 @@ def self.mapper() } }, network_rule_set: { - client_side_validation: true, required: false, serialized_name: 'properties.networkAcls', type: { @@ -153,7 +143,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, serialized_name: 'properties.accessTier', type: { @@ -162,7 +151,6 @@ def self.mapper() } }, enable_https_traffic_only: { - client_side_validation: true, required: false, serialized_name: 'properties.supportsHttpsTrafficOnly', default_value: false, diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_key.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_key.rb index f0f1bba82d..6a8574bfb4 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_key.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_key.rb @@ -29,7 +29,6 @@ class StorageAccountKey # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountKey', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'StorageAccountKey', model_properties: { key_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'keyName', @@ -46,7 +44,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', @@ -55,7 +52,6 @@ def self.mapper() } }, permissions: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'permissions', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb index 0b57df6b10..aad5fb85c0 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb @@ -23,7 +23,6 @@ class StorageAccountListKeysResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountListKeysResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageAccountListKeysResult', model_properties: { keys: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'keys', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StorageAccountKeyElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb index cf50b2d5ce..d7dfb65ee6 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb @@ -23,7 +23,6 @@ class StorageAccountListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountListResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageAccountListResult', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StorageAccountElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb index 3af845ea2f..79b83c9d2e 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb @@ -23,7 +23,6 @@ class StorageAccountRegenerateKeyParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountRegenerateKeyParameters', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'StorageAccountRegenerateKeyParameters', model_properties: { key_name: { - client_side_validation: true, required: true, serialized_name: 'keyName', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb index 381ad15f43..cf2fc1721c 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb @@ -63,7 +63,6 @@ class StorageAccountUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageAccountUpdateParameters', type: { @@ -71,7 +70,6 @@ def self.mapper() class_name: 'StorageAccountUpdateParameters', model_properties: { sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { @@ -80,13 +78,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -96,7 +92,6 @@ def self.mapper() } }, identity: { - client_side_validation: true, required: false, serialized_name: 'identity', type: { @@ -105,7 +100,6 @@ def self.mapper() } }, custom_domain: { - client_side_validation: true, required: false, serialized_name: 'properties.customDomain', type: { @@ -114,7 +108,6 @@ def self.mapper() } }, encryption: { - client_side_validation: true, required: false, serialized_name: 'properties.encryption', type: { @@ -123,7 +116,6 @@ def self.mapper() } }, access_tier: { - client_side_validation: true, required: false, serialized_name: 'properties.accessTier', type: { @@ -132,7 +124,6 @@ def self.mapper() } }, enable_https_traffic_only: { - client_side_validation: true, required: false, serialized_name: 'properties.supportsHttpsTrafficOnly', default_value: false, @@ -141,7 +132,6 @@ def self.mapper() } }, network_rule_set: { - client_side_validation: true, required: false, serialized_name: 'properties.networkAcls', type: { @@ -150,7 +140,6 @@ def self.mapper() } }, kind: { - client_side_validation: true, required: false, serialized_name: 'kind', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb index 5ce737648f..bd74a009d8 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb @@ -23,7 +23,6 @@ class StorageSkuListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StorageSkuListResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'StorageSkuListResult', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SkuElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/tag_property.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/tag_property.rb index 2ed0bbcd20..6ada536150 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/tag_property.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/tag_property.rb @@ -36,7 +36,6 @@ class TagProperty # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TagProperty', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'TagProperty', model_properties: { tag: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'tag', @@ -53,7 +51,6 @@ def self.mapper() } }, timestamp: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'timestamp', @@ -62,7 +59,6 @@ def self.mapper() } }, object_identifier: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'objectIdentifier', @@ -71,7 +67,6 @@ def self.mapper() } }, tenant_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'tenantId', @@ -80,7 +75,6 @@ def self.mapper() } }, upn: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'upn', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/tracked_resource.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/tracked_resource.rb index b225371fca..d0ee788d42 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/tracked_resource.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/tracked_resource.rb @@ -25,7 +25,6 @@ class TrackedResource < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TrackedResource', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'TrackedResource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -42,7 +40,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -51,7 +48,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -60,13 +56,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -76,7 +70,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/update_history_property.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/update_history_property.rb index dfc270801f..97e1ae12b0 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/update_history_property.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/update_history_property.rb @@ -44,7 +44,6 @@ class UpdateHistoryProperty # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UpdateHistoryProperty', type: { @@ -52,7 +51,6 @@ def self.mapper() class_name: 'UpdateHistoryProperty', model_properties: { update: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'update', @@ -61,7 +59,6 @@ def self.mapper() } }, immutability_period_since_creation_in_days: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'immutabilityPeriodSinceCreationInDays', @@ -70,7 +67,6 @@ def self.mapper() } }, timestamp: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'timestamp', @@ -79,7 +75,6 @@ def self.mapper() } }, object_identifier: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'objectIdentifier', @@ -88,7 +83,6 @@ def self.mapper() } }, tenant_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'tenantId', @@ -97,7 +91,6 @@ def self.mapper() } }, upn: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'upn', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/usage.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/usage.rb index b68ba71e65..e8f8200ea1 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/usage.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/usage.rb @@ -35,7 +35,6 @@ class Usage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Usage', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'Usage', model_properties: { unit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'unit', @@ -53,7 +51,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'currentValue', @@ -62,7 +59,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'limit', @@ -71,7 +67,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/usage_list_result.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/usage_list_result.rb index cc11208308..e867b04b97 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/usage_list_result.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/usage_list_result.rb @@ -23,7 +23,6 @@ class UsageListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'UsageListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UsageElementType', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/usage_name.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/usage_name.rb index e79c975aef..664e8f46bc 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/usage_name.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/usage_name.rb @@ -25,7 +25,6 @@ class UsageName # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageName', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UsageName', model_properties: { value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'value', @@ -42,7 +40,6 @@ def self.mapper() } }, localized_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'localizedValue', diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb index 3b7d430b91..53ffb9ec82 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb @@ -32,7 +32,6 @@ class VirtualNetworkRule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VirtualNetworkRule', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'VirtualNetworkRule', model_properties: { virtual_network_resource_id: { - client_side_validation: true, required: true, serialized_name: 'id', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, action: { - client_side_validation: true, required: false, serialized_name: 'action', default_value: 'Allow', @@ -58,7 +55,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'state', type: { diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/operations.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/operations.rb index 7ab805a301..2adc5a2f0a 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/operations.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/operations.rb @@ -29,8 +29,8 @@ def initialize(client) # # @return [OperationListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -54,13 +54,11 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/skus.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/skus.rb index a5dd2b6b55..3d208c7b48 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/skus.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/skus.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [StorageSkuListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -57,15 +57,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/storage_accounts.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/storage_accounts.rb index b8937c388d..eebf879909 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/storage_accounts.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/storage_accounts.rb @@ -33,8 +33,8 @@ def initialize(client) # # @return [CheckNameAvailabilityResult] operation results. # - def check_name_availability(account_name, custom_headers:nil) - response = check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability(account_name, custom_headers = nil) + response = check_name_availability_async(account_name, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def check_name_availability(account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(account_name, custom_headers:nil) - check_name_availability_async(account_name, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(account_name, custom_headers = nil) + check_name_availability_async(account_name, custom_headers).value! end # @@ -66,21 +66,20 @@ def check_name_availability_with_http_info(account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(account_name, custom_headers:nil) + def check_name_availability_async(account_name, custom_headers = nil) fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::StorageAccountCheckNameAvailabilityParameters.mapper() request_content = @client.serialize(request_mapper, account_name) @@ -146,8 +145,8 @@ def check_name_availability_async(account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def create(resource_group_name, account_name, parameters, custom_headers:nil) - response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def create(resource_group_name, account_name, parameters, custom_headers = nil) + response = create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -165,9 +164,9 @@ def create(resource_group_name, account_name, parameters, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def create_async(resource_group_name, account_name, parameters, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -195,8 +194,8 @@ def create_async(resource_group_name, account_name, parameters, custom_headers:n # will be added to the HTTP request. # # - def delete(resource_group_name, account_name, custom_headers:nil) - response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete(resource_group_name, account_name, custom_headers = nil) + response = delete_async(resource_group_name, account_name, custom_headers).value! nil end @@ -213,8 +212,8 @@ def delete(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) - delete_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, account_name, custom_headers = nil) + delete_async(resource_group_name, account_name, custom_headers).value! end # @@ -230,22 +229,14 @@ def delete_with_http_info(resource_group_name, account_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, account_name, custom_headers:nil) + def delete_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -295,8 +286,8 @@ def delete_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def get_properties(resource_group_name, account_name, custom_headers:nil) - response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties(resource_group_name, account_name, custom_headers = nil) + response = get_properties_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -315,8 +306,8 @@ def get_properties(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil) - get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil) + get_properties_async(resource_group_name, account_name, custom_headers).value! end # @@ -334,22 +325,14 @@ def get_properties_with_http_info(resource_group_name, account_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_properties_async(resource_group_name, account_name, custom_headers:nil) + def get_properties_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -417,8 +400,8 @@ def get_properties_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccount] operation results. # - def update(resource_group_name, account_name, parameters, custom_headers:nil) - response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, account_name, parameters, custom_headers = nil) + response = update_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -445,8 +428,8 @@ def update(resource_group_name, account_name, parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + update_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -472,28 +455,22 @@ def update_with_http_info(resource_group_name, account_name, parameters, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, account_name, parameters, custom_headers:nil) + def update_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::StorageAccountUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -549,8 +526,8 @@ def update_async(resource_group_name, account_name, parameters, custom_headers:n # # @return [StorageAccountListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -563,8 +540,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -576,15 +553,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -640,8 +614,8 @@ def list_async(custom_headers:nil) # # @return [StorageAccountListResult] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -656,8 +630,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -671,19 +645,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -741,8 +709,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [StorageAccountListKeysResult] operation results. # - def list_keys(resource_group_name, account_name, custom_headers:nil) - response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys(resource_group_name, account_name, custom_headers = nil) + response = list_keys_async(resource_group_name, account_name, custom_headers).value! response.body unless response.nil? end @@ -759,8 +727,8 @@ def list_keys(resource_group_name, account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil) - list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value! + def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil) + list_keys_async(resource_group_name, account_name, custom_headers).value! end # @@ -776,22 +744,14 @@ def list_keys_with_http_info(resource_group_name, account_name, custom_headers:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_keys_async(resource_group_name, account_name, custom_headers:nil) + def list_keys_async(resource_group_name, account_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -851,8 +811,8 @@ def list_keys_async(resource_group_name, account_name, custom_headers:nil) # # @return [StorageAccountListKeysResult] operation results. # - def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil) - response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil) + response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! response.body unless response.nil? end @@ -871,8 +831,8 @@ def regenerate_key(resource_group_name, account_name, regenerate_key, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil) - regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value! + def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil) + regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value! end # @@ -890,28 +850,22 @@ def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil) + def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'regenerate_key is nil' if regenerate_key.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::StorageAccountRegenerateKeyParameters.mapper() request_content = @client.serialize(request_mapper, regenerate_key) @@ -973,8 +927,8 @@ def regenerate_key_async(resource_group_name, account_name, regenerate_key, cust # # @return [ListAccountSasResponse] operation results. # - def list_account_sas(resource_group_name, account_name, parameters, custom_headers:nil) - response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_account_sas(resource_group_name, account_name, parameters, custom_headers = nil) + response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -993,8 +947,8 @@ def list_account_sas(resource_group_name, account_name, parameters, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -1012,28 +966,22 @@ def list_account_sas_with_http_info(resource_group_name, account_name, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) + def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::AccountSasParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1095,8 +1043,8 @@ def list_account_sas_async(resource_group_name, account_name, parameters, custom # # @return [ListServiceSasResponse] operation results. # - def list_service_sas(resource_group_name, account_name, parameters, custom_headers:nil) - response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_service_sas(resource_group_name, account_name, parameters, custom_headers = nil) + response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1115,8 +1063,8 @@ def list_service_sas(resource_group_name, account_name, parameters, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -1134,28 +1082,22 @@ def list_service_sas_with_http_info(resource_group_name, account_name, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:nil) + def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::ServiceSasParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -1221,8 +1163,8 @@ def list_service_sas_async(resource_group_name, account_name, parameters, custom # # @return [StorageAccount] operation results. # - def begin_create(resource_group_name, account_name, parameters, custom_headers:nil) - response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create(resource_group_name, account_name, parameters, custom_headers = nil) + response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -1245,8 +1187,8 @@ def begin_create(resource_group_name, account_name, parameters, custom_headers:n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) - begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil) + begin_create_async(resource_group_name, account_name, parameters, custom_headers).value! end # @@ -1268,28 +1210,22 @@ def begin_create_with_http_info(resource_group_name, account_name, parameters, c # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil) + def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'account_name is nil' if account_name.nil? - fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24 - fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3 fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Storage::Mgmt::V2018_02_01::Models::StorageAccountCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/storage_management_client.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/storage_management_client.rb index 8c834e67b0..dc4facb350 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/storage_management_client.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/storage_management_client.rb @@ -120,9 +120,6 @@ def make_request_async(method, path, options = {}) fail ArgumentError, 'path is nil' if path.nil? request_url = options[:base_url] || @base_url - if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?) - @request_headers['Content-Type'] = options[:headers]['Content-Type'] - end request_headers = @request_headers request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? @@ -139,7 +136,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_storage' - sdk_information = "#{sdk_information}/0.16.0" + if defined? Azure::Storage::Mgmt::V2018_02_01::VERSION + sdk_information = "#{sdk_information}/#{Azure::Storage::Mgmt::V2018_02_01::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/usage_operations.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/usage_operations.rb index 4d7ebfd573..497e4972a2 100644 --- a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/usage_operations.rb +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/usage_operations.rb @@ -30,8 +30,8 @@ def initialize(client) # # @return [UsageListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -44,8 +44,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -57,15 +57,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -120,8 +117,8 @@ def list_async(custom_headers:nil) # # @return [UsageListResult] operation results. # - def list_by_location(location, custom_headers:nil) - response = list_by_location_async(location, custom_headers:custom_headers).value! + def list_by_location(location, custom_headers = nil) + response = list_by_location_async(location, custom_headers).value! response.body unless response.nil? end @@ -135,8 +132,8 @@ def list_by_location(location, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_location_with_http_info(location, custom_headers:nil) - list_by_location_async(location, custom_headers:custom_headers).value! + def list_by_location_with_http_info(location, custom_headers = nil) + list_by_location_async(location, custom_headers).value! end # @@ -149,16 +146,13 @@ def list_by_location_with_http_info(location, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_location_async(location, custom_headers:nil) + def list_by_location_async(location, custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? - fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1 fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1 fail ArgumentError, 'location is nil' if location.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/version.rb b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/version.rb new file mode 100644 index 0000000000..db9aa9d8ac --- /dev/null +++ b/management/azure_mgmt_storage/lib/2018-02-01/generated/azure_mgmt_storage/version.rb @@ -0,0 +1,8 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Storage::Mgmt::V2018_02_01 + VERSION = '0.16.1' +end diff --git a/management/azure_mgmt_storage/lib/azure_mgmt_storage.rb b/management/azure_mgmt_storage/lib/azure_mgmt_storage.rb index bc008f2e33..acaf069e77 100644 --- a/management/azure_mgmt_storage/lib/azure_mgmt_storage.rb +++ b/management/azure_mgmt_storage/lib/azure_mgmt_storage.rb @@ -2,12 +2,12 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -require '2015-05-01-preview/generated/azure_mgmt_storage' +require '2017-10-01/generated/azure_mgmt_storage' +require 'profiles/v2017_03_09/storage_v2017_03_09_profile_client' +require 'profiles/latest/storage_latest_profile_client' +require '2018-02-01/generated/azure_mgmt_storage' +require '2017-06-01/generated/azure_mgmt_storage' require '2015-06-15/generated/azure_mgmt_storage' require '2016-01-01/generated/azure_mgmt_storage' require '2016-12-01/generated/azure_mgmt_storage' -require '2017-06-01/generated/azure_mgmt_storage' -require '2017-10-01/generated/azure_mgmt_storage' -require '2018-02-01/generated/azure_mgmt_storage' -require 'profiles/latest/storage_latest_profile_client' -require 'profiles/v2017_03_09/storage_v2017_03_09_profile_client' +require '2015-05-01-preview/generated/azure_mgmt_storage'