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_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb index ca3a075330..5becc48c88 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb @@ -125,9 +125,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? @@ -144,7 +141,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_cdn' - sdk_information = "#{sdk_information}/0.16.0" + if defined? Azure::CDN::Mgmt::V2015_06_01::VERSION + sdk_information = "#{sdk_information}/#{Azure::CDN::Mgmt::V2015_06_01::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb index a04808623f..083cf011a0 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb @@ -37,8 +37,8 @@ def initialize(client) # # @return [CustomDomainListResult] operation results. # - def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -72,7 +72,7 @@ def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,7 +81,6 @@ def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -141,8 +140,8 @@ def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, cus # # @return [CustomDomain] operation results. # - def get(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def get(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -161,8 +160,8 @@ def get(custom_domain_name, endpoint_name, profile_name, resource_group_name, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def get_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -180,7 +179,7 @@ def get_with_http_info(custom_domain_name, endpoint_name, profile_name, resource # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -190,7 +189,6 @@ def get_async(custom_domain_name, endpoint_name, profile_name, resource_group_na request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -252,8 +250,8 @@ def get_async(custom_domain_name, endpoint_name, profile_name, resource_group_na # # @return [CustomDomain] operation results. # - def create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -273,9 +271,9 @@ def create(custom_domain_name, custom_domain_properties, endpoint_name, profile_ # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -308,8 +306,8 @@ def create_async(custom_domain_name, custom_domain_properties, endpoint_name, pr # # @return [ErrorResponse] operation results. # - def update(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def update(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -330,8 +328,8 @@ def update(custom_domain_name, custom_domain_properties, endpoint_name, profile_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def update_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -351,7 +349,7 @@ def update_with_http_info(custom_domain_name, custom_domain_properties, endpoint # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? @@ -362,12 +360,13 @@ def update_async(custom_domain_name, custom_domain_properties, endpoint_name, pr 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::CDN::Mgmt::V2015_06_01::Models::CustomDomainParameters.mapper() request_content = @client.serialize(request_mapper, custom_domain_properties) @@ -426,8 +425,8 @@ def update_async(custom_domain_name, custom_domain_properties, endpoint_name, pr # # @return [CustomDomain] operation results. # - def delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -445,9 +444,9 @@ def delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_g # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -480,8 +479,8 @@ def delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, reso # # @return [CustomDomain] operation results. # - def begin_create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -502,8 +501,8 @@ def begin_create(custom_domain_name, custom_domain_properties, endpoint_name, pr # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_create_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -523,7 +522,7 @@ def begin_create_with_http_info(custom_domain_name, custom_domain_properties, en # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? @@ -534,12 +533,13 @@ def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_na 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::CDN::Mgmt::V2015_06_01::Models::CustomDomainParameters.mapper() request_content = @client.serialize(request_mapper, custom_domain_properties) @@ -621,8 +621,8 @@ def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_na # # @return [CustomDomain] operation results. # - def begin_delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -641,8 +641,8 @@ def begin_delete_if_exists(custom_domain_name, endpoint_name, profile_name, reso # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_if_exists_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -660,7 +660,7 @@ def begin_delete_if_exists_with_http_info(custom_domain_name, endpoint_name, pro # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -670,7 +670,6 @@ def begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name 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_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb index 736fd65d84..9d545ed4fc 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb @@ -36,8 +36,8 @@ def initialize(client) # # @return [EndpointListResult] operation results. # - def list_by_profile(profile_name, resource_group_name, custom_headers:nil) - response = list_by_profile_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def list_by_profile(profile_name, resource_group_name, custom_headers = nil) + response = list_by_profile_async(profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ def list_by_profile(profile_name, resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_with_http_info(profile_name, resource_group_name, custom_headers:nil) - list_by_profile_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def list_by_profile_with_http_info(profile_name, resource_group_name, custom_headers = nil) + list_by_profile_async(profile_name, resource_group_name, custom_headers).value! end # @@ -69,7 +69,7 @@ def list_by_profile_with_http_info(profile_name, resource_group_name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_async(profile_name, resource_group_name, custom_headers:nil) + def list_by_profile_async(profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -77,7 +77,6 @@ def list_by_profile_async(profile_name, resource_group_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 @@ -135,8 +134,8 @@ def list_by_profile_async(profile_name, resource_group_name, custom_headers:nil) # # @return [Endpoint] operation results. # - def get(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = get_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def get(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = get_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -153,8 +152,8 @@ def get(endpoint_name, profile_name, resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - get_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def get_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + get_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -170,7 +169,7 @@ def get_with_http_info(endpoint_name, profile_name, resource_group_name, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def get_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -179,7 +178,6 @@ def get_async(endpoint_name, profile_name, resource_group_name, 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 @@ -238,8 +236,8 @@ def get_async(endpoint_name, profile_name, resource_group_name, custom_headers:n # # @return [Endpoint] operation results. # - def create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) - response = create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + response = create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -256,9 +254,9 @@ def create(endpoint_name, endpoint_properties, profile_name, resource_group_name # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + def create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -291,8 +289,8 @@ def create_async(endpoint_name, endpoint_properties, profile_name, resource_grou # # @return [Endpoint] operation results. # - def update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) - response = update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + response = update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -309,9 +307,9 @@ def update(endpoint_name, endpoint_properties, profile_name, resource_group_name # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + def update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -338,8 +336,8 @@ def update_async(endpoint_name, endpoint_properties, profile_name, resource_grou # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! nil end @@ -355,9 +353,9 @@ def delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_he # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -384,8 +382,8 @@ def delete_if_exists_async(endpoint_name, profile_name, resource_group_name, cus # # @return [Endpoint] operation results. # - def start(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def start(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = start_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -401,9 +399,9 @@ def start(endpoint_name, profile_name, resource_group_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def start_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -432,8 +430,8 @@ def start_async(endpoint_name, profile_name, resource_group_name, custom_headers # # @return [Endpoint] operation results. # - def stop(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def stop(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = stop_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -449,9 +447,9 @@ def stop(endpoint_name, profile_name, resource_group_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def stop_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -480,8 +478,8 @@ def stop_async(endpoint_name, profile_name, resource_group_name, custom_headers: # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) - response = purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! + def purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + response = purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! nil end @@ -499,9 +497,9 @@ def purge_content(endpoint_name, content_file_paths, profile_name, resource_grou # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + def purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -528,8 +526,8 @@ def purge_content_async(endpoint_name, content_file_paths, profile_name, resourc # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) - response = load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! + def load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + response = load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! nil end @@ -547,9 +545,9 @@ def load_content(endpoint_name, content_file_paths, profile_name, resource_group # @return [Concurrent::Promise] promise which provides async access to http # response. # - def load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + def load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -579,8 +577,8 @@ def load_content_async(endpoint_name, content_file_paths, profile_name, resource # # @return [ValidateCustomDomainOutput] operation results. # - def validate_custom_domain(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:nil) - response = validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def validate_custom_domain(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers = nil) + response = validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -600,8 +598,8 @@ def validate_custom_domain(endpoint_name, custom_domain_properties, profile_name # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_custom_domain_with_http_info(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:nil) - validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def validate_custom_domain_with_http_info(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers = nil) + validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers).value! end # @@ -620,7 +618,7 @@ def validate_custom_domain_with_http_info(endpoint_name, custom_domain_propertie # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:nil) + def validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -630,12 +628,13 @@ def validate_custom_domain_async(endpoint_name, custom_domain_properties, profil 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::CDN::Mgmt::V2015_06_01::Models::ValidateCustomDomainInput.mapper() request_content = @client.serialize(request_mapper, custom_domain_properties) @@ -696,8 +695,8 @@ def validate_custom_domain_async(endpoint_name, custom_domain_properties, profil # # @return [Endpoint] operation results. # - def begin_create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) - response = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + response = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -715,8 +714,8 @@ def begin_create(endpoint_name, endpoint_properties, profile_name, resource_grou # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) - begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_create_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! end # @@ -733,7 +732,7 @@ def begin_create_with_http_info(endpoint_name, endpoint_properties, profile_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + def begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'endpoint_properties is nil' if endpoint_properties.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -743,12 +742,13 @@ def begin_create_async(endpoint_name, endpoint_properties, profile_name, resourc 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::CDN::Mgmt::V2015_06_01::Models::EndpointCreateParameters.mapper() request_content = @client.serialize(request_mapper, endpoint_properties) @@ -832,8 +832,8 @@ def begin_create_async(endpoint_name, endpoint_properties, profile_name, resourc # # @return [Endpoint] operation results. # - def begin_update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) - response = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + response = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -854,8 +854,8 @@ def begin_update(endpoint_name, endpoint_properties, profile_name, resource_grou # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) - begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_update_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! end # @@ -875,7 +875,7 @@ def begin_update_with_http_info(endpoint_name, endpoint_properties, profile_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + def begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'endpoint_properties is nil' if endpoint_properties.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -885,12 +885,13 @@ def begin_update_async(endpoint_name, endpoint_properties, profile_name, resourc 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::CDN::Mgmt::V2015_06_01::Models::EndpointUpdateParameters.mapper() request_content = @client.serialize(request_mapper, endpoint_properties) @@ -959,8 +960,8 @@ def begin_update_async(endpoint_name, endpoint_properties, profile_name, resourc # will be added to the HTTP request. # # - def begin_delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! nil end @@ -977,8 +978,8 @@ def begin_delete_if_exists(endpoint_name, profile_name, resource_group_name, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_if_exists_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -994,7 +995,7 @@ def begin_delete_if_exists_with_http_info(endpoint_name, profile_name, resource_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1003,7 +1004,6 @@ def begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_nam request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1051,8 +1051,8 @@ def begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_nam # # @return [Endpoint] operation results. # - def begin_start(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_start(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -1069,8 +1069,8 @@ def begin_start(endpoint_name, profile_name, resource_group_name, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_start_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -1086,7 +1086,7 @@ def begin_start_with_http_info(endpoint_name, profile_name, resource_group_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1095,7 +1095,6 @@ def begin_start_async(endpoint_name, profile_name, resource_group_name, custom_h request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1153,8 +1152,8 @@ def begin_start_async(endpoint_name, profile_name, resource_group_name, custom_h # # @return [Endpoint] operation results. # - def begin_stop(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_stop(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -1171,8 +1170,8 @@ def begin_stop(endpoint_name, profile_name, resource_group_name, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_stop_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -1188,7 +1187,7 @@ def begin_stop_with_http_info(endpoint_name, profile_name, resource_group_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1197,7 +1196,6 @@ def begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1256,8 +1254,8 @@ def begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_he # will be added to the HTTP request. # # - def begin_purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) - response = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + response = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! nil end @@ -1276,8 +1274,8 @@ def begin_purge_content(endpoint_name, content_file_paths, profile_name, resourc # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) - begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_purge_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! end # @@ -1295,7 +1293,7 @@ def begin_purge_content_with_http_info(endpoint_name, content_file_paths, profil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + def begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -1305,12 +1303,13 @@ def begin_purge_content_async(endpoint_name, content_file_paths, profile_name, r 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::CDN::Mgmt::V2015_06_01::Models::PurgeParameters.mapper() request_content = @client.serialize(request_mapper, content_file_paths) @@ -1361,8 +1360,8 @@ def begin_purge_content_async(endpoint_name, content_file_paths, profile_name, r # will be added to the HTTP request. # # - def begin_load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) - response = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + response = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! nil end @@ -1381,8 +1380,8 @@ def begin_load_content(endpoint_name, content_file_paths, profile_name, resource # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_load_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) - begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_load_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! end # @@ -1400,7 +1399,7 @@ def begin_load_content_with_http_info(endpoint_name, content_file_paths, profile # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + def begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -1410,12 +1409,13 @@ def begin_load_content_async(endpoint_name, content_file_paths, profile_name, re 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::CDN::Mgmt::V2015_06_01::Models::LoadParameters.mapper() request_content = @client.serialize(request_mapper, content_file_paths) diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_input.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_input.rb index b13a76c77e..866a306b42 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_input.rb @@ -26,7 +26,6 @@ class CheckNameAvailabilityInput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityInput', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityInput', 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_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_output.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_output.rb index d80c214a6f..563360a0ac 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/check_name_availability_output.rb @@ -29,7 +29,6 @@ class CheckNameAvailabilityOutput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityOutput', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityOutput', model_properties: { name_available: { - client_side_validation: true, required: false, serialized_name: 'NameAvailable', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, serialized_name: 'Reason', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'Message', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain.rb index 0d8ed7a0ed..d353220279 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain.rb @@ -33,7 +33,6 @@ class CustomDomain < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomain', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'CustomDomain', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -50,7 +48,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -59,7 +56,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -68,7 +64,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -76,7 +71,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -86,7 +80,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb index afe01fa765..57cc144308 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb @@ -24,7 +24,6 @@ class CustomDomainListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomainListResult', type: { @@ -32,13 +31,11 @@ def self.mapper() class_name: 'CustomDomainListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CustomDomainElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb index d5ca4a3ca8..748ed42c7b 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb @@ -23,7 +23,6 @@ class CustomDomainParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomainParameters', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'CustomDomainParameters', model_properties: { host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/deep_created_origin.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/deep_created_origin.rb index 2e5d7ffdfb..33fe360537 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/deep_created_origin.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/deep_created_origin.rb @@ -34,7 +34,6 @@ class DeepCreatedOrigin # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DeepCreatedOrigin', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'DeepCreatedOrigin', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -50,7 +48,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', type: { @@ -66,7 +62,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint.rb index 330fbb83e0..c80e5c9023 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint.rb @@ -72,7 +72,6 @@ class Endpoint < TrackedResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Endpoint', type: { @@ -80,7 +79,6 @@ def self.mapper() class_name: 'Endpoint', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -89,7 +87,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -98,7 +95,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -107,7 +103,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -115,13 +110,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: true, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -131,7 +124,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.hostName', @@ -140,7 +132,6 @@ def self.mapper() } }, origin_host_header: { - client_side_validation: true, required: false, serialized_name: 'properties.originHostHeader', type: { @@ -148,7 +139,6 @@ def self.mapper() } }, origin_path: { - client_side_validation: true, required: false, serialized_name: 'properties.originPath', type: { @@ -156,13 +146,11 @@ def self.mapper() } }, content_types_to_compress: { - client_side_validation: true, required: false, serialized_name: 'properties.contentTypesToCompress', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -172,7 +160,6 @@ def self.mapper() } }, is_compression_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isCompressionEnabled', type: { @@ -180,7 +167,6 @@ def self.mapper() } }, is_http_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpAllowed', type: { @@ -188,7 +174,6 @@ def self.mapper() } }, is_https_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpsAllowed', type: { @@ -196,7 +181,6 @@ def self.mapper() } }, query_string_caching_behavior: { - client_side_validation: true, required: false, serialized_name: 'properties.queryStringCachingBehavior', type: { @@ -205,13 +189,11 @@ def self.mapper() } }, origins: { - client_side_validation: true, required: false, serialized_name: 'properties.origins', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DeepCreatedOriginElementType', type: { @@ -222,7 +204,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -232,7 +213,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb index bdb54d37aa..c1dde9a132 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb @@ -63,7 +63,6 @@ class EndpointCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointCreateParameters', type: { @@ -71,7 +70,6 @@ def self.mapper() class_name: 'EndpointCreateParameters', model_properties: { location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -79,13 +77,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: { @@ -95,7 +91,6 @@ def self.mapper() } }, origin_host_header: { - client_side_validation: true, required: false, serialized_name: 'properties.originHostHeader', type: { @@ -103,7 +98,6 @@ def self.mapper() } }, origin_path: { - client_side_validation: true, required: false, serialized_name: 'properties.originPath', type: { @@ -111,13 +105,11 @@ def self.mapper() } }, content_types_to_compress: { - client_side_validation: true, required: false, serialized_name: 'properties.contentTypesToCompress', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -127,7 +119,6 @@ def self.mapper() } }, is_compression_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isCompressionEnabled', type: { @@ -135,7 +126,6 @@ def self.mapper() } }, is_http_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpAllowed', type: { @@ -143,7 +133,6 @@ def self.mapper() } }, is_https_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpsAllowed', type: { @@ -151,7 +140,6 @@ def self.mapper() } }, query_string_caching_behavior: { - client_side_validation: true, required: false, serialized_name: 'properties.queryStringCachingBehavior', type: { @@ -160,13 +148,11 @@ def self.mapper() } }, origins: { - client_side_validation: true, required: true, serialized_name: 'properties.origins', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DeepCreatedOriginElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_list_result.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_list_result.rb index b441ac8f6b..5731a5a7d3 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_list_result.rb @@ -23,7 +23,6 @@ class EndpointListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'EndpointListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EndpointElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb index b30efe30c1..2f7f0913d2 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb @@ -55,7 +55,6 @@ class EndpointUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointUpdateParameters', type: { @@ -63,13 +62,11 @@ def self.mapper() class_name: 'EndpointUpdateParameters', 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: { @@ -79,7 +76,6 @@ def self.mapper() } }, origin_host_header: { - client_side_validation: true, required: false, serialized_name: 'properties.originHostHeader', type: { @@ -87,7 +83,6 @@ def self.mapper() } }, origin_path: { - client_side_validation: true, required: false, serialized_name: 'properties.originPath', type: { @@ -95,13 +90,11 @@ def self.mapper() } }, content_types_to_compress: { - client_side_validation: true, required: false, serialized_name: 'properties.contentTypesToCompress', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -111,7 +104,6 @@ def self.mapper() } }, is_compression_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isCompressionEnabled', type: { @@ -119,7 +111,6 @@ def self.mapper() } }, is_http_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpAllowed', type: { @@ -127,7 +118,6 @@ def self.mapper() } }, is_https_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpsAllowed', type: { @@ -135,7 +125,6 @@ def self.mapper() } }, query_string_caching_behavior: { - client_side_validation: true, required: false, serialized_name: 'properties.queryStringCachingBehavior', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/error_response.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/error_response.rb index e369b14294..ce34a62a9b 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/error_response.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/error_response.rb @@ -26,7 +26,6 @@ class ErrorResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ErrorResponse', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'ErrorResponse', model_properties: { code: { - client_side_validation: true, required: false, serialized_name: 'code', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/load_parameters.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/load_parameters.rb index aa27744b9e..8ec7464225 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/load_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/load_parameters.rb @@ -23,7 +23,6 @@ class LoadParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoadParameters', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'LoadParameters', model_properties: { content_paths: { - client_side_validation: true, required: true, serialized_name: 'contentPaths', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation.rb index ce502c9ded..61d677dd9b 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation.rb @@ -25,7 +25,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: false, serialized_name: 'display', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation_display.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation_display.rb index 4b45730c47..384105ae65 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation_display.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation_display.rb @@ -30,7 +30,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, serialized_name: 'resource', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, serialized_name: 'operation', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation_list_result.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation_list_result.rb index 87812a3368..63fceac820 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/operation_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/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_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin.rb index d68c194c8e..c154c9e848 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin.rb @@ -42,7 +42,6 @@ class Origin < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Origin', type: { @@ -50,7 +49,6 @@ def self.mapper() class_name: 'Origin', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -59,7 +57,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -68,7 +65,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -77,7 +73,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -85,7 +80,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', type: { @@ -93,7 +87,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', type: { @@ -101,7 +94,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -111,7 +103,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_list_result.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_list_result.rb index fe5f59146c..f66ab3c6c6 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_list_result.rb @@ -23,7 +23,6 @@ class OriginListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OriginListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'OriginListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OriginElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_parameters.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_parameters.rb index 760b726635..11dbb445e3 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/origin_parameters.rb @@ -31,7 +31,6 @@ class OriginParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OriginParameters', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'OriginParameters', model_properties: { host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', type: { @@ -55,7 +52,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile.rb index 5804e61e53..42d6cdefc6 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile.rb @@ -33,7 +33,6 @@ class Profile < TrackedResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Profile', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'Profile', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -50,7 +48,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -59,7 +56,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -68,7 +64,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -76,13 +71,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: true, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -92,7 +85,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, serialized_name: 'properties.sku', type: { @@ -101,7 +93,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -111,7 +102,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_create_parameters.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_create_parameters.rb index b33e50beff..5653e176b6 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_create_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_create_parameters.rb @@ -28,7 +28,6 @@ class ProfileCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProfileCreateParameters', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'ProfileCreateParameters', model_properties: { location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -44,13 +42,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: { @@ -60,7 +56,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: true, serialized_name: 'properties.sku', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_list_result.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_list_result.rb index 8484d8835a..c038030d1c 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_list_result.rb @@ -23,7 +23,6 @@ class ProfileListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProfileListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'ProfileListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ProfileElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_update_parameters.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_update_parameters.rb index b512abc0b7..18402a0039 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/profile_update_parameters.rb @@ -22,7 +22,6 @@ class ProfileUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProfileUpdateParameters', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'ProfileUpdateParameters', model_properties: { tags: { - client_side_validation: true, required: true, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/purge_parameters.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/purge_parameters.rb index 614002cbbc..f8be7b5c67 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/purge_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/purge_parameters.rb @@ -23,7 +23,6 @@ class PurgeParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PurgeParameters', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'PurgeParameters', model_properties: { content_paths: { - client_side_validation: true, required: true, serialized_name: 'contentPaths', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/resource.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/resource.rb index b6060cafd4..d2109ad3f7 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/resource.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/resource.rb @@ -29,7 +29,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'Resource', 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', diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/sku.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/sku.rb index 9bf84269b8..b5c55666ec 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/sku.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/sku.rb @@ -23,7 +23,6 @@ class Sku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Sku', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'Sku', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/sso_uri.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/sso_uri.rb index 5d66351063..ae838dd651 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/sso_uri.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/sso_uri.rb @@ -22,7 +22,6 @@ class SsoUri # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SsoUri', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'SsoUri', model_properties: { sso_uri_value: { - client_side_validation: true, required: false, serialized_name: 'ssoUriValue', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/tracked_resource.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/tracked_resource.rb index 4218161a53..cd4d89387c 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/tracked_resource.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/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,7 +56,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -68,13 +63,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: true, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb index acac96430e..6ca2d63be2 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb @@ -23,7 +23,6 @@ class ValidateCustomDomainInput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateCustomDomainInput', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'ValidateCustomDomainInput', model_properties: { host_name: { - client_side_validation: true, required: true, serialized_name: 'hostName', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb index 0bf348b2d4..c559d499c6 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb @@ -30,7 +30,6 @@ class ValidateCustomDomainOutput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateCustomDomainOutput', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'ValidateCustomDomainOutput', model_properties: { custom_domain_validated: { - client_side_validation: true, required: false, serialized_name: 'customDomainValidated', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, serialized_name: 'reason', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb index 124830e1fb..5e367ca442 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb @@ -36,8 +36,8 @@ def initialize(client) # # @return [CheckNameAvailabilityOutput] operation results. # - def check_name_availability(check_name_availability_input, custom_headers:nil) - response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! + def check_name_availability(check_name_availability_input, custom_headers = nil) + response = check_name_availability_async(check_name_availability_input, custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ def check_name_availability(check_name_availability_input, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(check_name_availability_input, custom_headers:nil) - check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(check_name_availability_input, custom_headers = nil) + check_name_availability_async(check_name_availability_input, custom_headers).value! end # @@ -69,18 +69,19 @@ def check_name_availability_with_http_info(check_name_availability_input, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(check_name_availability_input, custom_headers:nil) + def check_name_availability_async(check_name_availability_input, custom_headers = nil) fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.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 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::CDN::Mgmt::V2015_06_01::Models::CheckNameAvailabilityInput.mapper() request_content = @client.serialize(request_mapper, check_name_availability_input) diff --git a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb index b32c999223..d89527e1b7 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb @@ -32,8 +32,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 @@ -45,8 +45,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,12 +57,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_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb index 87bb0b3024..b043710cde 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb @@ -37,8 +37,8 @@ def initialize(client) # # @return [OriginListResult] operation results. # - def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -72,7 +72,7 @@ def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,7 +81,6 @@ def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -141,8 +140,8 @@ def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, cus # # @return [Origin] operation results. # - def get(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def get(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -161,8 +160,8 @@ def get(origin_name, endpoint_name, profile_name, resource_group_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def get_with_http_info(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -180,7 +179,7 @@ def get_with_http_info(origin_name, endpoint_name, profile_name, resource_group_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'origin_name is nil' if origin_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -190,7 +189,6 @@ def get_async(origin_name, endpoint_name, profile_name, resource_group_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -251,8 +249,8 @@ def get_async(origin_name, endpoint_name, profile_name, resource_group_name, cus # # @return [Origin] operation results. # - def create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -271,9 +269,9 @@ def create(origin_name, origin_properties, endpoint_name, profile_name, resource # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -305,8 +303,8 @@ def create_async(origin_name, origin_properties, endpoint_name, profile_name, re # # @return [Origin] operation results. # - def update(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def update(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -325,9 +323,9 @@ def update(origin_name, origin_properties, endpoint_name, profile_name, resource # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -358,8 +356,8 @@ def update_async(origin_name, origin_properties, endpoint_name, profile_name, re # # @return [Origin] operation results. # - def delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -377,9 +375,9 @@ def delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_na # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -411,8 +409,8 @@ def delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_gr # # @return [Origin] operation results. # - def begin_create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -432,8 +430,8 @@ def begin_create(origin_name, origin_properties, endpoint_name, profile_name, re # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_create_with_http_info(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -452,7 +450,7 @@ def begin_create_with_http_info(origin_name, origin_properties, endpoint_name, p # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'origin_name is nil' if origin_name.nil? fail ArgumentError, 'origin_properties is nil' if origin_properties.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? @@ -463,12 +461,13 @@ def begin_create_async(origin_name, origin_properties, endpoint_name, profile_na 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::CDN::Mgmt::V2015_06_01::Models::OriginParameters.mapper() request_content = @client.serialize(request_mapper, origin_properties) @@ -551,8 +550,8 @@ def begin_create_async(origin_name, origin_properties, endpoint_name, profile_na # # @return [Origin] operation results. # - def begin_update(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_update(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -572,8 +571,8 @@ def begin_update(origin_name, origin_properties, endpoint_name, profile_name, re # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_update_with_http_info(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -592,7 +591,7 @@ def begin_update_with_http_info(origin_name, origin_properties, endpoint_name, p # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'origin_name is nil' if origin_name.nil? fail ArgumentError, 'origin_properties is nil' if origin_properties.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? @@ -603,12 +602,13 @@ def begin_update_async(origin_name, origin_properties, endpoint_name, profile_na 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::CDN::Mgmt::V2015_06_01::Models::OriginParameters.mapper() request_content = @client.serialize(request_mapper, origin_properties) @@ -680,8 +680,8 @@ def begin_update_async(origin_name, origin_properties, endpoint_name, profile_na # # @return [Origin] operation results. # - def begin_delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -700,8 +700,8 @@ def begin_delete_if_exists(origin_name, endpoint_name, profile_name, resource_gr # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_if_exists_with_http_info(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists_with_http_info(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -719,7 +719,7 @@ def begin_delete_if_exists_with_http_info(origin_name, endpoint_name, profile_na # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'origin_name is nil' if origin_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -729,7 +729,6 @@ def begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resou 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_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb index eb17264da5..acd3353bdb 100644 --- a/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb @@ -32,8 +32,8 @@ def initialize(client) # # @return [ProfileListResult] operation results. # - def list_by_subscription_id(custom_headers:nil) - response = list_by_subscription_id_async(custom_headers:custom_headers).value! + def list_by_subscription_id(custom_headers = nil) + response = list_by_subscription_id_async(custom_headers).value! response.body unless response.nil? end @@ -45,8 +45,8 @@ def list_by_subscription_id(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_id_with_http_info(custom_headers:nil) - list_by_subscription_id_async(custom_headers:custom_headers).value! + def list_by_subscription_id_with_http_info(custom_headers = nil) + list_by_subscription_id_async(custom_headers).value! end # @@ -57,13 +57,12 @@ def list_by_subscription_id_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_id_async(custom_headers:nil) + def list_by_subscription_id_async(custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -118,8 +117,8 @@ def list_by_subscription_id_async(custom_headers:nil) # # @return [ProfileListResult] 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 @@ -133,8 +132,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 # @@ -147,14 +146,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.subscription_id is nil' if @client.subscription_id.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 @@ -211,8 +209,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [Profile] operation results. # - def get(profile_name, resource_group_name, custom_headers:nil) - response = get_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def get(profile_name, resource_group_name, custom_headers = nil) + response = get_async(profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -228,8 +226,8 @@ def get(profile_name, resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(profile_name, resource_group_name, custom_headers:nil) - get_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def get_with_http_info(profile_name, resource_group_name, custom_headers = nil) + get_async(profile_name, resource_group_name, custom_headers).value! end # @@ -244,7 +242,7 @@ def get_with_http_info(profile_name, resource_group_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(profile_name, resource_group_name, custom_headers:nil) + def get_async(profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -252,7 +250,6 @@ def get_async(profile_name, resource_group_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 @@ -311,8 +308,8 @@ def get_async(profile_name, resource_group_name, custom_headers:nil) # # @return [Profile] operation results. # - def create(profile_name, profile_properties, resource_group_name, custom_headers:nil) - response = create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! + def create(profile_name, profile_properties, resource_group_name, custom_headers = nil) + response = create_async(profile_name, profile_properties, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -329,9 +326,9 @@ def create(profile_name, profile_properties, resource_group_name, custom_headers # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(profile_name, profile_properties, resource_group_name, custom_headers:nil) + def create_async(profile_name, profile_properties, resource_group_name, custom_headers = nil) # Send request - promise = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers) + promise = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -361,8 +358,8 @@ def create_async(profile_name, profile_properties, resource_group_name, custom_h # # @return [Profile] operation results. # - def update(profile_name, profile_properties, resource_group_name, custom_headers:nil) - response = update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! + def update(profile_name, profile_properties, resource_group_name, custom_headers = nil) + response = update_async(profile_name, profile_properties, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -379,9 +376,9 @@ def update(profile_name, profile_properties, resource_group_name, custom_headers # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(profile_name, profile_properties, resource_group_name, custom_headers:nil) + def update_async(profile_name, profile_properties, resource_group_name, custom_headers = nil) # Send request - promise = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers) + promise = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -409,8 +406,8 @@ def update_async(profile_name, profile_properties, resource_group_name, custom_h # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete_if_exists(profile_name, resource_group_name, custom_headers:nil) - response = delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def delete_if_exists(profile_name, resource_group_name, custom_headers = nil) + response = delete_if_exists_async(profile_name, resource_group_name, custom_headers).value! nil end @@ -425,9 +422,9 @@ def delete_if_exists(profile_name, resource_group_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_if_exists_async(profile_name, resource_group_name, custom_headers:nil) + def delete_if_exists_async(profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -456,8 +453,8 @@ def delete_if_exists_async(profile_name, resource_group_name, custom_headers:nil # # @return [SsoUri] operation results. # - def generate_sso_uri(profile_name, resource_group_name, custom_headers:nil) - response = generate_sso_uri_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def generate_sso_uri(profile_name, resource_group_name, custom_headers = nil) + response = generate_sso_uri_async(profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -476,8 +473,8 @@ def generate_sso_uri(profile_name, resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_sso_uri_with_http_info(profile_name, resource_group_name, custom_headers:nil) - generate_sso_uri_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def generate_sso_uri_with_http_info(profile_name, resource_group_name, custom_headers = nil) + generate_sso_uri_async(profile_name, resource_group_name, custom_headers).value! end # @@ -495,7 +492,7 @@ def generate_sso_uri_with_http_info(profile_name, resource_group_name, custom_he # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_sso_uri_async(profile_name, resource_group_name, custom_headers:nil) + def generate_sso_uri_async(profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -503,7 +500,6 @@ def generate_sso_uri_async(profile_name, resource_group_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 @@ -562,8 +558,8 @@ def generate_sso_uri_async(profile_name, resource_group_name, custom_headers:nil # # @return [Profile] operation results. # - def begin_create(profile_name, profile_properties, resource_group_name, custom_headers:nil) - response = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! + def begin_create(profile_name, profile_properties, resource_group_name, custom_headers = nil) + response = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -581,8 +577,8 @@ def begin_create(profile_name, profile_properties, resource_group_name, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers:nil) - begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! + def begin_create_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers = nil) + begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers).value! end # @@ -599,7 +595,7 @@ def begin_create_with_http_info(profile_name, profile_properties, resource_group # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:nil) + def begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers = nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'profile_properties is nil' if profile_properties.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -608,12 +604,13 @@ def begin_create_async(profile_name, profile_properties, resource_group_name, cu 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::CDN::Mgmt::V2015_06_01::Models::ProfileCreateParameters.mapper() request_content = @client.serialize(request_mapper, profile_properties) @@ -694,8 +691,8 @@ def begin_create_async(profile_name, profile_properties, resource_group_name, cu # # @return [Profile] operation results. # - def begin_update(profile_name, profile_properties, resource_group_name, custom_headers:nil) - response = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! + def begin_update(profile_name, profile_properties, resource_group_name, custom_headers = nil) + response = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -713,8 +710,8 @@ def begin_update(profile_name, profile_properties, resource_group_name, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers:nil) - begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! + def begin_update_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers = nil) + begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers).value! end # @@ -731,7 +728,7 @@ def begin_update_with_http_info(profile_name, profile_properties, resource_group # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:nil) + def begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers = nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'profile_properties is nil' if profile_properties.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -740,12 +737,13 @@ def begin_update_async(profile_name, profile_properties, resource_group_name, cu 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::CDN::Mgmt::V2015_06_01::Models::ProfileUpdateParameters.mapper() request_content = @client.serialize(request_mapper, profile_properties) @@ -815,8 +813,8 @@ def begin_update_async(profile_name, profile_properties, resource_group_name, cu # will be added to the HTTP request. # # - def begin_delete_if_exists(profile_name, resource_group_name, custom_headers:nil) - response = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists(profile_name, resource_group_name, custom_headers = nil) + response = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers).value! nil end @@ -834,8 +832,8 @@ def begin_delete_if_exists(profile_name, resource_group_name, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_if_exists_with_http_info(profile_name, resource_group_name, custom_headers:nil) - begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists_with_http_info(profile_name, resource_group_name, custom_headers = nil) + begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers).value! end # @@ -852,7 +850,7 @@ def begin_delete_if_exists_with_http_info(profile_name, resource_group_name, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:nil) + def begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -860,7 +858,6 @@ def begin_delete_if_exists_async(profile_name, resource_group_name, custom_heade 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_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/version.rb b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/version.rb new file mode 100644 index 0000000000..56745905d4 --- /dev/null +++ b/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/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::CDN::Mgmt::V2015_06_01 + VERSION = '0.16.0' +end diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb index 3925bfce30..73dfa04687 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb @@ -125,9 +125,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? @@ -144,7 +141,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_cdn' - sdk_information = "#{sdk_information}/0.16.0" + if defined? Azure::CDN::Mgmt::V2016_04_02::VERSION + sdk_information = "#{sdk_information}/#{Azure::CDN::Mgmt::V2016_04_02::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb index 0a892f64f3..74556d1f9e 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb @@ -37,8 +37,8 @@ def initialize(client) # # @return [CustomDomainListResult] operation results. # - def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -72,7 +72,7 @@ def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,7 +81,6 @@ def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -141,8 +140,8 @@ def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, cus # # @return [CustomDomain] operation results. # - def get(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def get(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -161,8 +160,8 @@ def get(custom_domain_name, endpoint_name, profile_name, resource_group_name, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def get_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -180,7 +179,7 @@ def get_with_http_info(custom_domain_name, endpoint_name, profile_name, resource # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def get_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -190,7 +189,6 @@ def get_async(custom_domain_name, endpoint_name, profile_name, resource_group_na request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -252,8 +250,8 @@ def get_async(custom_domain_name, endpoint_name, profile_name, resource_group_na # # @return [CustomDomain] operation results. # - def create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -273,9 +271,9 @@ def create(custom_domain_name, custom_domain_properties, endpoint_name, profile_ # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -308,8 +306,8 @@ def create_async(custom_domain_name, custom_domain_properties, endpoint_name, pr # # @return [ErrorResponse] operation results. # - def update(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def update(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -330,8 +328,8 @@ def update(custom_domain_name, custom_domain_properties, endpoint_name, profile_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def update_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -351,7 +349,7 @@ def update_with_http_info(custom_domain_name, custom_domain_properties, endpoint # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? @@ -362,12 +360,13 @@ def update_async(custom_domain_name, custom_domain_properties, endpoint_name, pr 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::CDN::Mgmt::V2016_04_02::Models::CustomDomainParameters.mapper() request_content = @client.serialize(request_mapper, custom_domain_properties) @@ -426,8 +425,8 @@ def update_async(custom_domain_name, custom_domain_properties, endpoint_name, pr # # @return [CustomDomain] operation results. # - def delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -445,9 +444,9 @@ def delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_g # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -480,8 +479,8 @@ def delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, reso # # @return [CustomDomain] operation results. # - def begin_create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_create(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -502,8 +501,8 @@ def begin_create(custom_domain_name, custom_domain_properties, endpoint_name, pr # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_create_with_http_info(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -523,7 +522,7 @@ def begin_create_with_http_info(custom_domain_name, custom_domain_properties, en # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? @@ -534,12 +533,13 @@ def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_na 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::CDN::Mgmt::V2016_04_02::Models::CustomDomainParameters.mapper() request_content = @client.serialize(request_mapper, custom_domain_properties) @@ -621,8 +621,8 @@ def begin_create_async(custom_domain_name, custom_domain_properties, endpoint_na # # @return [CustomDomain] operation results. # - def begin_delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -641,8 +641,8 @@ def begin_delete_if_exists(custom_domain_name, endpoint_name, profile_name, reso # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_if_exists_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists_with_http_info(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -660,7 +660,7 @@ def begin_delete_if_exists_with_http_info(custom_domain_name, endpoint_name, pro # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -670,7 +670,6 @@ def begin_delete_if_exists_async(custom_domain_name, endpoint_name, profile_name 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_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/endpoints.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/endpoints.rb index 968b4a76b0..aeaee0b1dd 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/endpoints.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/endpoints.rb @@ -36,8 +36,8 @@ def initialize(client) # # @return [EndpointListResult] operation results. # - def list_by_profile(profile_name, resource_group_name, custom_headers:nil) - response = list_by_profile_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def list_by_profile(profile_name, resource_group_name, custom_headers = nil) + response = list_by_profile_async(profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ def list_by_profile(profile_name, resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_with_http_info(profile_name, resource_group_name, custom_headers:nil) - list_by_profile_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def list_by_profile_with_http_info(profile_name, resource_group_name, custom_headers = nil) + list_by_profile_async(profile_name, resource_group_name, custom_headers).value! end # @@ -69,7 +69,7 @@ def list_by_profile_with_http_info(profile_name, resource_group_name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_async(profile_name, resource_group_name, custom_headers:nil) + def list_by_profile_async(profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -77,7 +77,6 @@ def list_by_profile_async(profile_name, resource_group_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 @@ -135,8 +134,8 @@ def list_by_profile_async(profile_name, resource_group_name, custom_headers:nil) # # @return [Endpoint] operation results. # - def get(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = get_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def get(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = get_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -153,8 +152,8 @@ def get(endpoint_name, profile_name, resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - get_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def get_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + get_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -170,7 +169,7 @@ def get_with_http_info(endpoint_name, profile_name, resource_group_name, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def get_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -179,7 +178,6 @@ def get_async(endpoint_name, profile_name, resource_group_name, 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 @@ -238,8 +236,8 @@ def get_async(endpoint_name, profile_name, resource_group_name, custom_headers:n # # @return [Endpoint] operation results. # - def create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) - response = create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + response = create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -256,9 +254,9 @@ def create(endpoint_name, endpoint_properties, profile_name, resource_group_name # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + def create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -291,8 +289,8 @@ def create_async(endpoint_name, endpoint_properties, profile_name, resource_grou # # @return [Endpoint] operation results. # - def update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) - response = update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + response = update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -309,9 +307,9 @@ def update(endpoint_name, endpoint_properties, profile_name, resource_group_name # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + def update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -338,8 +336,8 @@ def update_async(endpoint_name, endpoint_properties, profile_name, resource_grou # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! nil end @@ -355,9 +353,9 @@ def delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_he # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -384,8 +382,8 @@ def delete_if_exists_async(endpoint_name, profile_name, resource_group_name, cus # # @return [Endpoint] operation results. # - def start(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def start(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = start_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -401,9 +399,9 @@ def start(endpoint_name, profile_name, resource_group_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def start_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -432,8 +430,8 @@ def start_async(endpoint_name, profile_name, resource_group_name, custom_headers # # @return [Endpoint] operation results. # - def stop(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def stop(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = stop_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -449,9 +447,9 @@ def stop(endpoint_name, profile_name, resource_group_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def stop_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -480,8 +478,8 @@ def stop_async(endpoint_name, profile_name, resource_group_name, custom_headers: # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) - response = purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! + def purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + response = purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! nil end @@ -499,9 +497,9 @@ def purge_content(endpoint_name, content_file_paths, profile_name, resource_grou # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + def purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -528,8 +526,8 @@ def purge_content_async(endpoint_name, content_file_paths, profile_name, resourc # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) - response = load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! + def load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + response = load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! nil end @@ -547,9 +545,9 @@ def load_content(endpoint_name, content_file_paths, profile_name, resource_group # @return [Concurrent::Promise] promise which provides async access to http # response. # - def load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + def load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -579,8 +577,8 @@ def load_content_async(endpoint_name, content_file_paths, profile_name, resource # # @return [ValidateCustomDomainOutput] operation results. # - def validate_custom_domain(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:nil) - response = validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def validate_custom_domain(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers = nil) + response = validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -600,8 +598,8 @@ def validate_custom_domain(endpoint_name, custom_domain_properties, profile_name # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_custom_domain_with_http_info(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:nil) - validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def validate_custom_domain_with_http_info(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers = nil) + validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers).value! end # @@ -620,7 +618,7 @@ def validate_custom_domain_with_http_info(endpoint_name, custom_domain_propertie # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers:nil) + def validate_custom_domain_async(endpoint_name, custom_domain_properties, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -630,12 +628,13 @@ def validate_custom_domain_async(endpoint_name, custom_domain_properties, profil 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::CDN::Mgmt::V2016_04_02::Models::ValidateCustomDomainInput.mapper() request_content = @client.serialize(request_mapper, custom_domain_properties) @@ -696,8 +695,8 @@ def validate_custom_domain_async(endpoint_name, custom_domain_properties, profil # # @return [Endpoint] operation results. # - def begin_create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) - response = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_create(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + response = begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -715,8 +714,8 @@ def begin_create(endpoint_name, endpoint_properties, profile_name, resource_grou # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) - begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_create_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! end # @@ -733,7 +732,7 @@ def begin_create_with_http_info(endpoint_name, endpoint_properties, profile_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + def begin_create_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'endpoint_properties is nil' if endpoint_properties.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -743,12 +742,13 @@ def begin_create_async(endpoint_name, endpoint_properties, profile_name, resourc 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::CDN::Mgmt::V2016_04_02::Models::EndpointCreateParameters.mapper() request_content = @client.serialize(request_mapper, endpoint_properties) @@ -832,8 +832,8 @@ def begin_create_async(endpoint_name, endpoint_properties, profile_name, resourc # # @return [Endpoint] operation results. # - def begin_update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) - response = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_update(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + response = begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -854,8 +854,8 @@ def begin_update(endpoint_name, endpoint_properties, profile_name, resource_grou # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) - begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_update_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) + begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers).value! end # @@ -875,7 +875,7 @@ def begin_update_with_http_info(endpoint_name, endpoint_properties, profile_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) + def begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'endpoint_properties is nil' if endpoint_properties.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -885,12 +885,13 @@ def begin_update_async(endpoint_name, endpoint_properties, profile_name, resourc 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::CDN::Mgmt::V2016_04_02::Models::EndpointUpdateParameters.mapper() request_content = @client.serialize(request_mapper, endpoint_properties) @@ -959,8 +960,8 @@ def begin_update_async(endpoint_name, endpoint_properties, profile_name, resourc # will be added to the HTTP request. # # - def begin_delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! nil end @@ -977,8 +978,8 @@ def begin_delete_if_exists(endpoint_name, profile_name, resource_group_name, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_if_exists_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -994,7 +995,7 @@ def begin_delete_if_exists_with_http_info(endpoint_name, profile_name, resource_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1003,7 +1004,6 @@ def begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_nam request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1051,8 +1051,8 @@ def begin_delete_if_exists_async(endpoint_name, profile_name, resource_group_nam # # @return [Endpoint] operation results. # - def begin_start(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_start(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -1069,8 +1069,8 @@ def begin_start(endpoint_name, profile_name, resource_group_name, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_start_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -1086,7 +1086,7 @@ def begin_start_with_http_info(endpoint_name, profile_name, resource_group_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_start_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1095,7 +1095,6 @@ def begin_start_async(endpoint_name, profile_name, resource_group_name, custom_h request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1153,8 +1152,8 @@ def begin_start_async(endpoint_name, profile_name, resource_group_name, custom_h # # @return [Endpoint] operation results. # - def begin_stop(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_stop(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -1171,8 +1170,8 @@ def begin_stop(endpoint_name, profile_name, resource_group_name, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_stop_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -1188,7 +1187,7 @@ def begin_stop_with_http_info(endpoint_name, profile_name, resource_group_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -1197,7 +1196,6 @@ def begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1256,8 +1254,8 @@ def begin_stop_async(endpoint_name, profile_name, resource_group_name, custom_he # will be added to the HTTP request. # # - def begin_purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) - response = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_purge_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + response = begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! nil end @@ -1276,8 +1274,8 @@ def begin_purge_content(endpoint_name, content_file_paths, profile_name, resourc # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) - begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_purge_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! end # @@ -1295,7 +1293,7 @@ def begin_purge_content_with_http_info(endpoint_name, content_file_paths, profil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + def begin_purge_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -1305,12 +1303,13 @@ def begin_purge_content_async(endpoint_name, content_file_paths, profile_name, r 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::CDN::Mgmt::V2016_04_02::Models::PurgeParameters.mapper() request_content = @client.serialize(request_mapper, content_file_paths) @@ -1361,8 +1360,8 @@ def begin_purge_content_async(endpoint_name, content_file_paths, profile_name, r # will be added to the HTTP request. # # - def begin_load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) - response = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_load_content(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + response = begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! nil end @@ -1381,8 +1380,8 @@ def begin_load_content(endpoint_name, content_file_paths, profile_name, resource # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_load_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) - begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_load_content_with_http_info(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) + begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers).value! end # @@ -1400,7 +1399,7 @@ def begin_load_content_with_http_info(endpoint_name, content_file_paths, profile # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers:nil) + def begin_load_content_async(endpoint_name, content_file_paths, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -1410,12 +1409,13 @@ def begin_load_content_async(endpoint_name, content_file_paths, profile_name, re 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::CDN::Mgmt::V2016_04_02::Models::LoadParameters.mapper() request_content = @client.serialize(request_mapper, content_file_paths) diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb index bbc7d40d7b..ac1825b20a 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb @@ -26,7 +26,6 @@ class CheckNameAvailabilityInput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityInput', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityInput', 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_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb index 3e23fb4d51..fd880dc5ab 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb @@ -29,7 +29,6 @@ class CheckNameAvailabilityOutput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityOutput', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityOutput', model_properties: { name_available: { - client_side_validation: true, required: false, serialized_name: 'NameAvailable', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, serialized_name: 'Reason', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'Message', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb index 506ecf019e..d5a44faa44 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb @@ -33,7 +33,6 @@ class CustomDomain < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomain', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'CustomDomain', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -50,7 +48,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -59,7 +56,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -68,7 +64,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -76,7 +71,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -86,7 +80,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb index 10c010434c..ea7c301346 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb @@ -24,7 +24,6 @@ class CustomDomainListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomainListResult', type: { @@ -32,13 +31,11 @@ def self.mapper() class_name: 'CustomDomainListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CustomDomainElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb index fc44d89a20..2a9cbc2e5f 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb @@ -23,7 +23,6 @@ class CustomDomainParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomainParameters', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'CustomDomainParameters', model_properties: { host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb index 7c1f2c9b4c..9c8c025c1d 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb @@ -34,7 +34,6 @@ class DeepCreatedOrigin # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DeepCreatedOrigin', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'DeepCreatedOrigin', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -50,7 +48,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', type: { @@ -66,7 +62,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint.rb index 3792660763..8159f762e3 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint.rb @@ -72,7 +72,6 @@ class Endpoint < TrackedResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Endpoint', type: { @@ -80,7 +79,6 @@ def self.mapper() class_name: 'Endpoint', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -89,7 +87,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -98,7 +95,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -107,7 +103,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -115,13 +110,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: true, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -131,7 +124,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.hostName', @@ -140,7 +132,6 @@ def self.mapper() } }, origin_host_header: { - client_side_validation: true, required: false, serialized_name: 'properties.originHostHeader', type: { @@ -148,7 +139,6 @@ def self.mapper() } }, origin_path: { - client_side_validation: true, required: false, serialized_name: 'properties.originPath', type: { @@ -156,13 +146,11 @@ def self.mapper() } }, content_types_to_compress: { - client_side_validation: true, required: false, serialized_name: 'properties.contentTypesToCompress', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -172,7 +160,6 @@ def self.mapper() } }, is_compression_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isCompressionEnabled', type: { @@ -180,7 +167,6 @@ def self.mapper() } }, is_http_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpAllowed', type: { @@ -188,7 +174,6 @@ def self.mapper() } }, is_https_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpsAllowed', type: { @@ -196,7 +181,6 @@ def self.mapper() } }, query_string_caching_behavior: { - client_side_validation: true, required: false, serialized_name: 'properties.queryStringCachingBehavior', type: { @@ -205,13 +189,11 @@ def self.mapper() } }, origins: { - client_side_validation: true, required: false, serialized_name: 'properties.origins', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DeepCreatedOriginElementType', type: { @@ -222,7 +204,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -232,7 +213,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb index b6c69ec74f..87b0b326ad 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb @@ -63,7 +63,6 @@ class EndpointCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointCreateParameters', type: { @@ -71,7 +70,6 @@ def self.mapper() class_name: 'EndpointCreateParameters', model_properties: { location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -79,13 +77,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: { @@ -95,7 +91,6 @@ def self.mapper() } }, origin_host_header: { - client_side_validation: true, required: false, serialized_name: 'properties.originHostHeader', type: { @@ -103,7 +98,6 @@ def self.mapper() } }, origin_path: { - client_side_validation: true, required: false, serialized_name: 'properties.originPath', type: { @@ -111,13 +105,11 @@ def self.mapper() } }, content_types_to_compress: { - client_side_validation: true, required: false, serialized_name: 'properties.contentTypesToCompress', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -127,7 +119,6 @@ def self.mapper() } }, is_compression_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isCompressionEnabled', type: { @@ -135,7 +126,6 @@ def self.mapper() } }, is_http_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpAllowed', type: { @@ -143,7 +133,6 @@ def self.mapper() } }, is_https_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpsAllowed', type: { @@ -151,7 +140,6 @@ def self.mapper() } }, query_string_caching_behavior: { - client_side_validation: true, required: false, serialized_name: 'properties.queryStringCachingBehavior', type: { @@ -160,13 +148,11 @@ def self.mapper() } }, origins: { - client_side_validation: true, required: true, serialized_name: 'properties.origins', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DeepCreatedOriginElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb index d8dbc88ade..98285405e3 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb @@ -23,7 +23,6 @@ class EndpointListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'EndpointListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EndpointElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb index 3806aea26d..4022425b2b 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb @@ -55,7 +55,6 @@ class EndpointUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointUpdateParameters', type: { @@ -63,13 +62,11 @@ def self.mapper() class_name: 'EndpointUpdateParameters', 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: { @@ -79,7 +76,6 @@ def self.mapper() } }, origin_host_header: { - client_side_validation: true, required: false, serialized_name: 'properties.originHostHeader', type: { @@ -87,7 +83,6 @@ def self.mapper() } }, origin_path: { - client_side_validation: true, required: false, serialized_name: 'properties.originPath', type: { @@ -95,13 +90,11 @@ def self.mapper() } }, content_types_to_compress: { - client_side_validation: true, required: false, serialized_name: 'properties.contentTypesToCompress', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -111,7 +104,6 @@ def self.mapper() } }, is_compression_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isCompressionEnabled', type: { @@ -119,7 +111,6 @@ def self.mapper() } }, is_http_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpAllowed', type: { @@ -127,7 +118,6 @@ def self.mapper() } }, is_https_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpsAllowed', type: { @@ -135,7 +125,6 @@ def self.mapper() } }, query_string_caching_behavior: { - client_side_validation: true, required: false, serialized_name: 'properties.queryStringCachingBehavior', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/error_response.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/error_response.rb index 9c2e7ea53d..550f44796d 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/error_response.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/error_response.rb @@ -26,7 +26,6 @@ class ErrorResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ErrorResponse', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'ErrorResponse', model_properties: { code: { - client_side_validation: true, required: false, serialized_name: 'code', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb index c9db3aa169..c0658389d6 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb @@ -23,7 +23,6 @@ class LoadParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoadParameters', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'LoadParameters', model_properties: { content_paths: { - client_side_validation: true, required: true, serialized_name: 'contentPaths', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation.rb index d32b3e7f69..9673caa255 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation.rb @@ -25,7 +25,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: false, serialized_name: 'display', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_display.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_display.rb index ecc207a7a3..93661f0768 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_display.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_display.rb @@ -30,7 +30,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, serialized_name: 'resource', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, serialized_name: 'operation', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_list_result.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_list_result.rb index c9ee5e242d..182d04f9e9 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/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_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin.rb index 882d74ebc9..853ef14765 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin.rb @@ -42,7 +42,6 @@ class Origin < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Origin', type: { @@ -50,7 +49,6 @@ def self.mapper() class_name: 'Origin', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -59,7 +57,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -68,7 +65,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -77,7 +73,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -85,7 +80,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', type: { @@ -93,7 +87,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', type: { @@ -101,7 +94,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -111,7 +103,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb index 4575b57c42..65173f7989 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb @@ -23,7 +23,6 @@ class OriginListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OriginListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'OriginListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OriginElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_parameters.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_parameters.rb index 31dac68e8a..60b945c9f9 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_parameters.rb @@ -31,7 +31,6 @@ class OriginParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OriginParameters', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'OriginParameters', model_properties: { host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', type: { @@ -55,7 +52,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile.rb index a65e91c843..0a2731cafb 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile.rb @@ -33,7 +33,6 @@ class Profile < TrackedResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Profile', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'Profile', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -50,7 +48,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -59,7 +56,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -68,7 +64,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -76,13 +71,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: true, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -92,7 +85,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { @@ -101,7 +93,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -111,7 +102,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_create_parameters.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_create_parameters.rb index 2021ca9084..95be46da51 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_create_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_create_parameters.rb @@ -28,7 +28,6 @@ class ProfileCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProfileCreateParameters', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'ProfileCreateParameters', model_properties: { location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -44,13 +42,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: { @@ -60,7 +56,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb index 0a37d1f347..613d5dcd2e 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb @@ -23,7 +23,6 @@ class ProfileListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProfileListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'ProfileListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ProfileElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb index c20e1a4af0..7f8e4fa58a 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb @@ -22,7 +22,6 @@ class ProfileUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProfileUpdateParameters', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'ProfileUpdateParameters', model_properties: { tags: { - client_side_validation: true, required: true, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb index a431ed0c23..51ab2daf5c 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb @@ -23,7 +23,6 @@ class PurgeParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PurgeParameters', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'PurgeParameters', model_properties: { content_paths: { - client_side_validation: true, required: true, serialized_name: 'contentPaths', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource.rb index 5a8aeb8f0a..937931ef8f 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource.rb @@ -29,7 +29,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'Resource', 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', diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku.rb index 2cbe846ba7..6c9464776f 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku.rb @@ -24,7 +24,6 @@ class Sku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Sku', type: { @@ -32,7 +31,6 @@ def self.mapper() class_name: 'Sku', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb index cc063ec11f..fb25eb6628 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb @@ -22,7 +22,6 @@ class SsoUri # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SsoUri', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'SsoUri', model_properties: { sso_uri_value: { - client_side_validation: true, required: false, serialized_name: 'ssoUriValue', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb index 3697491cf3..a0cb40a783 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/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,7 +56,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -68,13 +63,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: true, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb index dcf0ad2dff..77c281749b 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb @@ -23,7 +23,6 @@ class ValidateCustomDomainInput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateCustomDomainInput', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'ValidateCustomDomainInput', model_properties: { host_name: { - client_side_validation: true, required: true, serialized_name: 'hostName', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb index 9cbc7a0b59..be6983d964 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb @@ -30,7 +30,6 @@ class ValidateCustomDomainOutput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateCustomDomainOutput', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'ValidateCustomDomainOutput', model_properties: { custom_domain_validated: { - client_side_validation: true, required: false, serialized_name: 'customDomainValidated', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, serialized_name: 'reason', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/name_availability.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/name_availability.rb index 8b7e91155d..1d029400fc 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/name_availability.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/name_availability.rb @@ -36,8 +36,8 @@ def initialize(client) # # @return [CheckNameAvailabilityOutput] operation results. # - def check_name_availability(check_name_availability_input, custom_headers:nil) - response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! + def check_name_availability(check_name_availability_input, custom_headers = nil) + response = check_name_availability_async(check_name_availability_input, custom_headers).value! response.body unless response.nil? end @@ -53,8 +53,8 @@ def check_name_availability(check_name_availability_input, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(check_name_availability_input, custom_headers:nil) - check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(check_name_availability_input, custom_headers = nil) + check_name_availability_async(check_name_availability_input, custom_headers).value! end # @@ -69,18 +69,19 @@ def check_name_availability_with_http_info(check_name_availability_input, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(check_name_availability_input, custom_headers:nil) + def check_name_availability_async(check_name_availability_input, custom_headers = nil) fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.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 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::CDN::Mgmt::V2016_04_02::Models::CheckNameAvailabilityInput.mapper() request_content = @client.serialize(request_mapper, check_name_availability_input) diff --git a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/operations.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/operations.rb index 93fa83d91d..9776821eb1 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/operations.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/operations.rb @@ -32,8 +32,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 @@ -45,8 +45,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,12 +57,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_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/origins.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/origins.rb index d6432180ab..e964069550 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/origins.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/origins.rb @@ -37,8 +37,8 @@ def initialize(client) # # @return [OriginListResult] operation results. # - def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -55,8 +55,8 @@ def list_by_endpoint(endpoint_name, profile_name, resource_group_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers:nil) - list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_name, custom_headers = nil) + list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -72,7 +72,7 @@ def list_by_endpoint_with_http_info(endpoint_name, profile_name, resource_group_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -81,7 +81,6 @@ def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -141,8 +140,8 @@ def list_by_endpoint_async(endpoint_name, profile_name, resource_group_name, cus # # @return [Origin] operation results. # - def get(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def get(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -161,8 +160,8 @@ def get(origin_name, endpoint_name, profile_name, resource_group_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def get_with_http_info(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -180,7 +179,7 @@ def get_with_http_info(origin_name, endpoint_name, profile_name, resource_group_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def get_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'origin_name is nil' if origin_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -190,7 +189,6 @@ def get_async(origin_name, endpoint_name, profile_name, resource_group_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -251,8 +249,8 @@ def get_async(origin_name, endpoint_name, profile_name, resource_group_name, cus # # @return [Origin] operation results. # - def create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -271,9 +269,9 @@ def create(origin_name, origin_properties, endpoint_name, profile_name, resource # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -305,8 +303,8 @@ def create_async(origin_name, origin_properties, endpoint_name, profile_name, re # # @return [Origin] operation results. # - def update(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def update(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -325,9 +323,9 @@ def update(origin_name, origin_properties, endpoint_name, profile_name, resource # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -358,8 +356,8 @@ def update_async(origin_name, origin_properties, endpoint_name, profile_name, re # # @return [Origin] operation results. # - def delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -377,9 +375,9 @@ def delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_na # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -411,8 +409,8 @@ def delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_gr # # @return [Origin] operation results. # - def begin_create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -432,8 +430,8 @@ def begin_create(origin_name, origin_properties, endpoint_name, profile_name, re # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_create_with_http_info(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -452,7 +450,7 @@ def begin_create_with_http_info(origin_name, origin_properties, endpoint_name, p # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'origin_name is nil' if origin_name.nil? fail ArgumentError, 'origin_properties is nil' if origin_properties.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? @@ -463,12 +461,13 @@ def begin_create_async(origin_name, origin_properties, endpoint_name, profile_na 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::CDN::Mgmt::V2016_04_02::Models::OriginParameters.mapper() request_content = @client.serialize(request_mapper, origin_properties) @@ -551,8 +550,8 @@ def begin_create_async(origin_name, origin_properties, endpoint_name, profile_na # # @return [Origin] operation results. # - def begin_update(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_update(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -572,8 +571,8 @@ def begin_update(origin_name, origin_properties, endpoint_name, profile_name, re # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_update_with_http_info(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -592,7 +591,7 @@ def begin_update_with_http_info(origin_name, origin_properties, endpoint_name, p # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_update_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'origin_name is nil' if origin_name.nil? fail ArgumentError, 'origin_properties is nil' if origin_properties.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? @@ -603,12 +602,13 @@ def begin_update_async(origin_name, origin_properties, endpoint_name, profile_na 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::CDN::Mgmt::V2016_04_02::Models::OriginParameters.mapper() request_content = @client.serialize(request_mapper, origin_properties) @@ -680,8 +680,8 @@ def begin_update_async(origin_name, origin_properties, endpoint_name, profile_na # # @return [Origin] operation results. # - def begin_delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - response = begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + response = begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -700,8 +700,8 @@ def begin_delete_if_exists(origin_name, endpoint_name, profile_name, resource_gr # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_if_exists_with_http_info(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) - begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists_with_http_info(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) + begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers).value! end # @@ -719,7 +719,7 @@ def begin_delete_if_exists_with_http_info(origin_name, endpoint_name, profile_na # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers:nil) + def begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'origin_name is nil' if origin_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'profile_name is nil' if profile_name.nil? @@ -729,7 +729,6 @@ def begin_delete_if_exists_async(origin_name, endpoint_name, profile_name, resou 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_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb index af33cedeb9..101ecfe225 100644 --- a/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb @@ -32,8 +32,8 @@ def initialize(client) # # @return [ProfileListResult] operation results. # - def list_by_subscription_id(custom_headers:nil) - response = list_by_subscription_id_async(custom_headers:custom_headers).value! + def list_by_subscription_id(custom_headers = nil) + response = list_by_subscription_id_async(custom_headers).value! response.body unless response.nil? end @@ -45,8 +45,8 @@ def list_by_subscription_id(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_subscription_id_with_http_info(custom_headers:nil) - list_by_subscription_id_async(custom_headers:custom_headers).value! + def list_by_subscription_id_with_http_info(custom_headers = nil) + list_by_subscription_id_async(custom_headers).value! end # @@ -57,13 +57,12 @@ def list_by_subscription_id_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_subscription_id_async(custom_headers:nil) + def list_by_subscription_id_async(custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -118,8 +117,8 @@ def list_by_subscription_id_async(custom_headers:nil) # # @return [ProfileListResult] 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 @@ -133,8 +132,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 # @@ -147,14 +146,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.subscription_id is nil' if @client.subscription_id.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 @@ -211,8 +209,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [Profile] operation results. # - def get(profile_name, resource_group_name, custom_headers:nil) - response = get_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def get(profile_name, resource_group_name, custom_headers = nil) + response = get_async(profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -228,8 +226,8 @@ def get(profile_name, resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(profile_name, resource_group_name, custom_headers:nil) - get_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def get_with_http_info(profile_name, resource_group_name, custom_headers = nil) + get_async(profile_name, resource_group_name, custom_headers).value! end # @@ -244,7 +242,7 @@ def get_with_http_info(profile_name, resource_group_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(profile_name, resource_group_name, custom_headers:nil) + def get_async(profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -252,7 +250,6 @@ def get_async(profile_name, resource_group_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 @@ -311,8 +308,8 @@ def get_async(profile_name, resource_group_name, custom_headers:nil) # # @return [Profile] operation results. # - def create(profile_name, profile_properties, resource_group_name, custom_headers:nil) - response = create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! + def create(profile_name, profile_properties, resource_group_name, custom_headers = nil) + response = create_async(profile_name, profile_properties, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -329,9 +326,9 @@ def create(profile_name, profile_properties, resource_group_name, custom_headers # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(profile_name, profile_properties, resource_group_name, custom_headers:nil) + def create_async(profile_name, profile_properties, resource_group_name, custom_headers = nil) # Send request - promise = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers) + promise = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -361,8 +358,8 @@ def create_async(profile_name, profile_properties, resource_group_name, custom_h # # @return [Profile] operation results. # - def update(profile_name, profile_properties, resource_group_name, custom_headers:nil) - response = update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! + def update(profile_name, profile_properties, resource_group_name, custom_headers = nil) + response = update_async(profile_name, profile_properties, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -379,9 +376,9 @@ def update(profile_name, profile_properties, resource_group_name, custom_headers # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(profile_name, profile_properties, resource_group_name, custom_headers:nil) + def update_async(profile_name, profile_properties, resource_group_name, custom_headers = nil) # Send request - promise = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers) + promise = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -409,8 +406,8 @@ def update_async(profile_name, profile_properties, resource_group_name, custom_h # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete_if_exists(profile_name, resource_group_name, custom_headers:nil) - response = delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def delete_if_exists(profile_name, resource_group_name, custom_headers = nil) + response = delete_if_exists_async(profile_name, resource_group_name, custom_headers).value! nil end @@ -425,9 +422,9 @@ def delete_if_exists(profile_name, resource_group_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_if_exists_async(profile_name, resource_group_name, custom_headers:nil) + def delete_if_exists_async(profile_name, resource_group_name, custom_headers = nil) # Send request - promise = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers) + promise = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -456,8 +453,8 @@ def delete_if_exists_async(profile_name, resource_group_name, custom_headers:nil # # @return [SsoUri] operation results. # - def generate_sso_uri(profile_name, resource_group_name, custom_headers:nil) - response = generate_sso_uri_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def generate_sso_uri(profile_name, resource_group_name, custom_headers = nil) + response = generate_sso_uri_async(profile_name, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -476,8 +473,8 @@ def generate_sso_uri(profile_name, resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_sso_uri_with_http_info(profile_name, resource_group_name, custom_headers:nil) - generate_sso_uri_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def generate_sso_uri_with_http_info(profile_name, resource_group_name, custom_headers = nil) + generate_sso_uri_async(profile_name, resource_group_name, custom_headers).value! end # @@ -495,7 +492,7 @@ def generate_sso_uri_with_http_info(profile_name, resource_group_name, custom_he # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_sso_uri_async(profile_name, resource_group_name, custom_headers:nil) + def generate_sso_uri_async(profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -503,7 +500,6 @@ def generate_sso_uri_async(profile_name, resource_group_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 @@ -562,8 +558,8 @@ def generate_sso_uri_async(profile_name, resource_group_name, custom_headers:nil # # @return [Profile] operation results. # - def begin_create(profile_name, profile_properties, resource_group_name, custom_headers:nil) - response = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! + def begin_create(profile_name, profile_properties, resource_group_name, custom_headers = nil) + response = begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -581,8 +577,8 @@ def begin_create(profile_name, profile_properties, resource_group_name, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers:nil) - begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! + def begin_create_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers = nil) + begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers).value! end # @@ -599,7 +595,7 @@ def begin_create_with_http_info(profile_name, profile_properties, resource_group # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers:nil) + def begin_create_async(profile_name, profile_properties, resource_group_name, custom_headers = nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'profile_properties is nil' if profile_properties.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -608,12 +604,13 @@ def begin_create_async(profile_name, profile_properties, resource_group_name, cu 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::CDN::Mgmt::V2016_04_02::Models::ProfileCreateParameters.mapper() request_content = @client.serialize(request_mapper, profile_properties) @@ -694,8 +691,8 @@ def begin_create_async(profile_name, profile_properties, resource_group_name, cu # # @return [Profile] operation results. # - def begin_update(profile_name, profile_properties, resource_group_name, custom_headers:nil) - response = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! + def begin_update(profile_name, profile_properties, resource_group_name, custom_headers = nil) + response = begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers).value! response.body unless response.nil? end @@ -713,8 +710,8 @@ def begin_update(profile_name, profile_properties, resource_group_name, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers:nil) - begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:custom_headers).value! + def begin_update_with_http_info(profile_name, profile_properties, resource_group_name, custom_headers = nil) + begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers).value! end # @@ -731,7 +728,7 @@ def begin_update_with_http_info(profile_name, profile_properties, resource_group # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers:nil) + def begin_update_async(profile_name, profile_properties, resource_group_name, custom_headers = nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'profile_properties is nil' if profile_properties.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? @@ -740,12 +737,13 @@ def begin_update_async(profile_name, profile_properties, resource_group_name, cu 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::CDN::Mgmt::V2016_04_02::Models::ProfileUpdateParameters.mapper() request_content = @client.serialize(request_mapper, profile_properties) @@ -815,8 +813,8 @@ def begin_update_async(profile_name, profile_properties, resource_group_name, cu # will be added to the HTTP request. # # - def begin_delete_if_exists(profile_name, resource_group_name, custom_headers:nil) - response = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists(profile_name, resource_group_name, custom_headers = nil) + response = begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers).value! nil end @@ -834,8 +832,8 @@ def begin_delete_if_exists(profile_name, resource_group_name, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_if_exists_with_http_info(profile_name, resource_group_name, custom_headers:nil) - begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:custom_headers).value! + def begin_delete_if_exists_with_http_info(profile_name, resource_group_name, custom_headers = nil) + begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers).value! end # @@ -852,7 +850,7 @@ def begin_delete_if_exists_with_http_info(profile_name, resource_group_name, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers:nil) + def begin_delete_if_exists_async(profile_name, resource_group_name, custom_headers = nil) fail ArgumentError, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -860,7 +858,6 @@ def begin_delete_if_exists_async(profile_name, resource_group_name, custom_heade 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_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/version.rb b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/version.rb new file mode 100644 index 0000000000..8570acfcfe --- /dev/null +++ b/management/azure_mgmt_cdn/lib/2016-04-02/generated/azure_mgmt_cdn/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::CDN::Mgmt::V2016_04_02 + VERSION = '0.16.0' +end diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb index d9ede1777c..bc59b756c3 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb @@ -121,9 +121,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? @@ -144,8 +141,8 @@ def make_request_async(method, path, options = {}) # # @return [CheckNameAvailabilityOutput] operation results. # - def check_name_availability(check_name_availability_input, custom_headers:nil) - response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! + def check_name_availability(check_name_availability_input, custom_headers = nil) + response = check_name_availability_async(check_name_availability_input, custom_headers).value! response.body unless response.nil? end @@ -160,8 +157,8 @@ def check_name_availability(check_name_availability_input, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(check_name_availability_input, custom_headers:nil) - check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(check_name_availability_input, custom_headers = nil) + check_name_availability_async(check_name_availability_input, custom_headers).value! end # @@ -175,18 +172,19 @@ def check_name_availability_with_http_info(check_name_availability_input, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(check_name_availability_input, custom_headers:nil) + def check_name_availability_async(check_name_availability_input, custom_headers = nil) fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil? fail ArgumentError, 'api_version is nil' if 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 request_headers['accept-language'] = accept_language unless accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::CheckNameAvailabilityInput.mapper() request_content = self.serialize(request_mapper, check_name_availability_input) @@ -241,8 +239,8 @@ def check_name_availability_async(check_name_availability_input, custom_headers: # # @return [Array] operation results. # - def list_resource_usage(custom_headers:nil) - first_page = list_resource_usage_as_lazy(custom_headers:custom_headers) + def list_resource_usage(custom_headers = nil) + first_page = list_resource_usage_as_lazy(custom_headers) first_page.get_all_items end @@ -255,8 +253,8 @@ def list_resource_usage(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_with_http_info(custom_headers:nil) - list_resource_usage_async(custom_headers:custom_headers).value! + def list_resource_usage_with_http_info(custom_headers = nil) + list_resource_usage_async(custom_headers).value! end # @@ -268,13 +266,12 @@ def list_resource_usage_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_async(custom_headers:nil) + def list_resource_usage_async(custom_headers = nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, 'api_version is nil' if 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 @@ -327,8 +324,8 @@ def list_resource_usage_async(custom_headers:nil) # # @return [Array] operation results. # - def list_operations(custom_headers:nil) - first_page = list_operations_as_lazy(custom_headers:custom_headers) + def list_operations(custom_headers = nil) + first_page = list_operations_as_lazy(custom_headers) first_page.get_all_items end @@ -340,8 +337,8 @@ def list_operations(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_operations_with_http_info(custom_headers:nil) - list_operations_async(custom_headers:custom_headers).value! + def list_operations_with_http_info(custom_headers = nil) + list_operations_async(custom_headers).value! end # @@ -352,12 +349,11 @@ def list_operations_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_operations_async(custom_headers:nil) + def list_operations_async(custom_headers = nil) fail ArgumentError, 'api_version is nil' if 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 @@ -412,8 +408,8 @@ def list_operations_async(custom_headers:nil) # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_next(next_page_link, custom_headers:nil) - response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next(next_page_link, custom_headers = nil) + response = list_resource_usage_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -428,8 +424,8 @@ def list_resource_usage_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil) + list_resource_usage_next_async(next_page_link, custom_headers).value! end # @@ -443,12 +439,11 @@ def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_next_async(next_page_link, custom_headers:nil) + def list_resource_usage_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 @@ -502,8 +497,8 @@ def list_resource_usage_next_async(next_page_link, custom_headers:nil) # # @return [OperationListResult] operation results. # - def list_operations_next(next_page_link, custom_headers:nil) - response = list_operations_next_async(next_page_link, custom_headers:custom_headers).value! + def list_operations_next(next_page_link, custom_headers = nil) + response = list_operations_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -517,8 +512,8 @@ def list_operations_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_operations_next_with_http_info(next_page_link, custom_headers:nil) - list_operations_next_async(next_page_link, custom_headers:custom_headers).value! + def list_operations_next_with_http_info(next_page_link, custom_headers = nil) + list_operations_next_async(next_page_link, custom_headers).value! end # @@ -531,12 +526,11 @@ def list_operations_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_operations_next_async(next_page_link, custom_headers:nil) + def list_operations_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 @@ -589,8 +583,8 @@ def list_operations_next_async(next_page_link, custom_headers:nil) # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_as_lazy(custom_headers:nil) - first_page = list_resource_usage_as_lazy_as_lazy(custom_headers:custom_headers) + def list_resource_usage_as_lazy(custom_headers = nil) + first_page = list_resource_usage_as_lazy_as_lazy(custom_headers) first_page.get_all_items end @@ -603,8 +597,8 @@ def list_resource_usage_as_lazy(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_as_lazy_with_http_info(custom_headers:nil) - list_resource_usage_as_lazy_async(custom_headers:custom_headers).value! + def list_resource_usage_as_lazy_with_http_info(custom_headers = nil) + list_resource_usage_as_lazy_async(custom_headers).value! end # @@ -616,11 +610,10 @@ def list_resource_usage_as_lazy_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_as_lazy_async(custom_headers:nil) + def list_resource_usage_as_lazy_async(custom_headers = nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkResourceUsage' request_url = @base_url || self.base_url @@ -667,8 +660,8 @@ def list_resource_usage_as_lazy_async(custom_headers:nil) # # @return [OperationListResult] operation results. # - def list_operations_as_lazy(custom_headers:nil) - first_page = list_operations_as_lazy_as_lazy(custom_headers:custom_headers) + def list_operations_as_lazy(custom_headers = nil) + first_page = list_operations_as_lazy_as_lazy(custom_headers) first_page.get_all_items end @@ -680,8 +673,8 @@ def list_operations_as_lazy(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_operations_as_lazy_with_http_info(custom_headers:nil) - list_operations_as_lazy_async(custom_headers:custom_headers).value! + def list_operations_as_lazy_with_http_info(custom_headers = nil) + list_operations_as_lazy_async(custom_headers).value! end # @@ -692,11 +685,10 @@ def list_operations_as_lazy_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_operations_as_lazy_async(custom_headers:nil) + def list_operations_as_lazy_async(custom_headers = nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' path_template = 'providers/Microsoft.Cdn/operations' request_url = @base_url || self.base_url @@ -742,7 +734,9 @@ def list_operations_as_lazy_async(custom_headers:nil) # def add_telemetry sdk_information = 'azure_mgmt_cdn' - sdk_information = "#{sdk_information}/0.16.0" + if defined? Azure::CDN::Mgmt::V2016_10_02::VERSION + sdk_information = "#{sdk_information}/#{Azure::CDN::Mgmt::V2016_10_02::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb index 44195e9b54..dd9c3e6c27 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb @@ -37,8 +37,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -74,11 +74,8 @@ def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def list_by_endpoint_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -86,7 +83,6 @@ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +143,8 @@ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, cus # # @return [CustomDomain] operation results. # - def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -168,8 +164,8 @@ def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! end # @@ -188,11 +184,8 @@ def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -201,7 +194,6 @@ def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_na request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -264,8 +256,8 @@ def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_na # # @return [CustomDomain] operation results. # - def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) - response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! + def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! response.body unless response.nil? end @@ -286,9 +278,9 @@ def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) + def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -320,8 +312,8 @@ def create_async(resource_group_name, profile_name, endpoint_name, custom_domain # # @return [CustomDomain] operation results. # - def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -340,9 +332,9 @@ def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -374,8 +366,8 @@ def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain # # @return [CustomDomain] operation results. # - def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -395,8 +387,8 @@ def disable_custom_https(resource_group_name, profile_name, endpoint_name, custo # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! end # @@ -415,11 +407,8 @@ def disable_custom_https_with_http_info(resource_group_name, profile_name, endpo # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -428,7 +417,6 @@ def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -489,8 +477,8 @@ def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, # # @return [CustomDomain] operation results. # - def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -510,8 +498,8 @@ def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! end # @@ -530,11 +518,8 @@ def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -543,7 +528,6 @@ def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -606,8 +590,8 @@ def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, # # @return [CustomDomain] operation results. # - def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) - response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! + def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! response.body unless response.nil? end @@ -629,8 +613,8 @@ def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) - begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! end # @@ -651,11 +635,8 @@ def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) + def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -665,12 +646,13 @@ def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_ 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::CDN::Mgmt::V2016_10_02::Models::CustomDomainParameters.mapper() request_content = @client.serialize(request_mapper, custom_domain_properties) @@ -753,8 +735,8 @@ def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_ # # @return [CustomDomain] operation results. # - def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -774,8 +756,8 @@ def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! end # @@ -794,11 +776,8 @@ def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -807,7 +786,6 @@ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_ request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -862,8 +840,8 @@ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_ # # @return [CustomDomainListResult] operation results. # - def list_by_endpoint_next(next_page_link, custom_headers:nil) - response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_endpoint_next(next_page_link, custom_headers = nil) + response = list_by_endpoint_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -877,8 +855,8 @@ def list_by_endpoint_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) - list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_endpoint_next_with_http_info(next_page_link, custom_headers = nil) + list_by_endpoint_next_async(next_page_link, custom_headers).value! end # @@ -891,12 +869,11 @@ def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_next_async(next_page_link, custom_headers:nil) + def list_by_endpoint_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 @@ -955,12 +932,12 @@ def list_by_endpoint_next_async(next_page_link, custom_headers:nil) # @return [CustomDomainListResult] which provide lazy access to pages of the # response. # - def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers) + list_by_endpoint_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb index 61cefd24b3..3d16bc067f 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb @@ -31,8 +31,8 @@ def initialize(client) # # @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 @@ -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 # @@ -56,12 +56,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 @@ -115,8 +114,8 @@ def list_async(custom_headers:nil) # # @return [EdgenodeResult] 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 @@ -130,8 +129,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 # @@ -144,12 +143,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 @@ -201,12 +199,12 @@ def list_next_async(next_page_link, custom_headers:nil) # # @return [EdgenodeResult] 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 diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb index 1765c71214..48ff0397c1 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb @@ -35,8 +35,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_profile(resource_group_name, profile_name, custom_headers:nil) - first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers) + def list_by_profile(resource_group_name, profile_name, custom_headers = nil) + first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ def list_by_profile(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers:nil) - list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers = nil) + list_by_profile_async(resource_group_name, profile_name, custom_headers).value! end # @@ -68,18 +68,14 @@ def list_by_profile_with_http_info(resource_group_name, profile_name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_async(resource_group_name, profile_name, custom_headers:nil) + def list_by_profile_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -139,8 +135,8 @@ def list_by_profile_async(resource_group_name, profile_name, custom_headers:nil) # # @return [Endpoint] operation results. # - def get(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = get_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = get_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -159,8 +155,8 @@ def get(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - get_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + get_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -178,11 +174,8 @@ def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def get_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -190,7 +183,6 @@ def get_async(resource_group_name, profile_name, endpoint_name, 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 @@ -251,8 +243,8 @@ def get_async(resource_group_name, profile_name, endpoint_name, custom_headers:n # # @return [Endpoint] operation results. # - def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) - response = create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! + def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + response = create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! response.body unless response.nil? end @@ -270,9 +262,9 @@ def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_he # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) + def create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -308,8 +300,8 @@ def create_async(resource_group_name, profile_name, endpoint_name, endpoint, cus # # @return [Endpoint] operation results. # - def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) - response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! + def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! response.body unless response.nil? end @@ -328,9 +320,9 @@ def update(resource_group_name, profile_name, endpoint_name, endpoint_update_pro # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) + def update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers) + promise = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -359,8 +351,8 @@ def update_async(resource_group_name, profile_name, endpoint_name, endpoint_upda # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! nil end @@ -377,9 +369,9 @@ def delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def delete_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -407,8 +399,8 @@ def delete_async(resource_group_name, profile_name, endpoint_name, custom_header # # @return [Endpoint] operation results. # - def start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def start(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -425,9 +417,9 @@ def start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def start_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) # Send request - promise = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + promise = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -457,8 +449,8 @@ def start_async(resource_group_name, profile_name, endpoint_name, custom_headers # # @return [Endpoint] operation results. # - def stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def stop(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -475,9 +467,9 @@ def stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) # Send request - promise = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + promise = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -509,8 +501,8 @@ def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers: # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - response = purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + response = purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! nil end @@ -531,9 +523,9 @@ def purge_content(resource_group_name, profile_name, endpoint_name, content_file # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + def purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) # Send request - promise = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers) + promise = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -562,8 +554,8 @@ def purge_content_async(resource_group_name, profile_name, endpoint_name, conten # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - response = load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + response = load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! nil end @@ -583,9 +575,9 @@ def load_content(resource_group_name, profile_name, endpoint_name, content_file_ # @return [Concurrent::Promise] promise which provides async access to http # response. # - def load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + def load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) # Send request - promise = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers) + promise = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -616,8 +608,8 @@ def load_content_async(resource_group_name, profile_name, endpoint_name, content # # @return [ValidateCustomDomainOutput] operation results. # - def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) - response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value! + def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers = nil) + response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers).value! response.body unless response.nil? end @@ -638,8 +630,8 @@ def validate_custom_domain(resource_group_name, profile_name, endpoint_name, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_custom_domain_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) - validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value! + def validate_custom_domain_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers = nil) + validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers).value! end # @@ -659,11 +651,8 @@ def validate_custom_domain_with_http_info(resource_group_name, profile_name, end # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) + def validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil? @@ -672,12 +661,13 @@ def validate_custom_domain_async(resource_group_name, profile_name, endpoint_nam 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::CDN::Mgmt::V2016_10_02::Models::ValidateCustomDomainInput.mapper() request_content = @client.serialize(request_mapper, custom_domain_properties) @@ -739,8 +729,8 @@ def validate_custom_domain_async(resource_group_name, profile_name, endpoint_nam # # @return [Array] operation results. # - def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) first_page.get_all_items end @@ -759,8 +749,8 @@ def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -778,11 +768,8 @@ def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def list_resource_usage_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -790,7 +777,6 @@ def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -851,8 +837,8 @@ def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, # # @return [Endpoint] operation results. # - def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) - response = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! + def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + response = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! response.body unless response.nil? end @@ -872,8 +858,8 @@ def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) - begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! end # @@ -892,11 +878,8 @@ def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) + def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'endpoint is nil' if endpoint.nil? @@ -905,12 +888,13 @@ def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoin 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::CDN::Mgmt::V2016_10_02::Models::Endpoint.mapper() request_content = @client.serialize(request_mapper, endpoint) @@ -997,8 +981,8 @@ def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoin # # @return [Endpoint] operation results. # - def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) - response = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! + def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + response = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! response.body unless response.nil? end @@ -1022,8 +1006,8 @@ def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_upda # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) - begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! end # @@ -1046,11 +1030,8 @@ def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) + def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'endpoint_update_properties is nil' if endpoint_update_properties.nil? @@ -1059,12 +1040,13 @@ def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoin 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::CDN::Mgmt::V2016_10_02::Models::EndpointUpdateParameters.mapper() request_content = @client.serialize(request_mapper, endpoint_update_properties) @@ -1135,8 +1117,8 @@ def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoin # will be added to the HTTP request. # # - def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! nil end @@ -1155,8 +1137,8 @@ def begin_delete(resource_group_name, profile_name, endpoint_name, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -1174,11 +1156,8 @@ def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def begin_delete_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1186,7 +1165,6 @@ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_ request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1235,8 +1213,8 @@ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_ # # @return [Endpoint] operation results. # - def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -1254,8 +1232,8 @@ def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -1272,11 +1250,8 @@ def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def begin_start_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1284,7 +1259,6 @@ def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_h request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1343,8 +1317,8 @@ def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_h # # @return [Endpoint] operation results. # - def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -1362,8 +1336,8 @@ def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -1380,11 +1354,8 @@ def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def begin_stop_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1392,7 +1363,6 @@ def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1454,8 +1424,8 @@ def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_he # will be added to the HTTP request. # # - def begin_purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - response = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def begin_purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + response = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! nil end @@ -1477,8 +1447,8 @@ def begin_purge_content(resource_group_name, profile_name, endpoint_name, conten # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! end # @@ -1499,11 +1469,8 @@ def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil? @@ -1512,12 +1479,13 @@ def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, 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::CDN::Mgmt::V2016_10_02::Models::PurgeParameters.mapper() request_content = @client.serialize(request_mapper, content_file_paths) @@ -1570,8 +1538,8 @@ def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, # will be added to the HTTP request. # # - def begin_load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - response = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def begin_load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + response = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! nil end @@ -1592,8 +1560,8 @@ def begin_load_content(resource_group_name, profile_name, endpoint_name, content # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_load_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def begin_load_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! end # @@ -1613,11 +1581,8 @@ def begin_load_content_with_http_info(resource_group_name, profile_name, endpoin # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + def begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil? @@ -1626,12 +1591,13 @@ def begin_load_content_async(resource_group_name, profile_name, endpoint_name, c 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::CDN::Mgmt::V2016_10_02::Models::LoadParameters.mapper() request_content = @client.serialize(request_mapper, content_file_paths) @@ -1678,8 +1644,8 @@ def begin_load_content_async(resource_group_name, profile_name, endpoint_name, c # # @return [EndpointListResult] operation results. # - def list_by_profile_next(next_page_link, custom_headers:nil) - response = list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_profile_next(next_page_link, custom_headers = nil) + response = list_by_profile_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1693,8 +1659,8 @@ def list_by_profile_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_next_with_http_info(next_page_link, custom_headers:nil) - list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_profile_next_with_http_info(next_page_link, custom_headers = nil) + list_by_profile_next_async(next_page_link, custom_headers).value! end # @@ -1707,12 +1673,11 @@ def list_by_profile_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_next_async(next_page_link, custom_headers:nil) + def list_by_profile_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 @@ -1767,8 +1732,8 @@ def list_by_profile_next_async(next_page_link, custom_headers:nil) # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_next(next_page_link, custom_headers:nil) - response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next(next_page_link, custom_headers = nil) + response = list_resource_usage_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1783,8 +1748,8 @@ def list_resource_usage_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil) + list_resource_usage_next_async(next_page_link, custom_headers).value! end # @@ -1798,12 +1763,11 @@ def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_next_async(next_page_link, custom_headers:nil) + def list_resource_usage_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 @@ -1860,12 +1824,12 @@ def list_resource_usage_next_async(next_page_link, custom_headers:nil) # @return [EndpointListResult] which provide lazy access to pages of the # response. # - def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:nil) - response = list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers = nil) + response = list_by_profile_async(resource_group_name, profile_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_profile_next_async(next_page_link, custom_headers:custom_headers) + list_by_profile_next_async(next_page_link, custom_headers) end page end @@ -1887,12 +1851,12 @@ def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:ni # @return [ResourceUsageListResult] which provide lazy access to pages of the # response. # - def list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers) + list_resource_usage_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb index ef72ed41c7..1ee2f4fece 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb @@ -26,7 +26,6 @@ class CheckNameAvailabilityInput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityInput', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityInput', 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_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb index de870da9fa..e28fdf8923 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb @@ -29,7 +29,6 @@ class CheckNameAvailabilityOutput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityOutput', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityOutput', model_properties: { name_available: { - client_side_validation: true, required: false, serialized_name: 'nameAvailable', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, serialized_name: 'reason', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb index 4320aafbbc..4abdbfece7 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb @@ -25,7 +25,6 @@ class CidrIpAddress # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'cidrIpAddress', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'CidrIpAddress', model_properties: { base_ip_address: { - client_side_validation: true, required: false, serialized_name: 'baseIpAddress', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, prefix_length: { - client_side_validation: true, required: false, serialized_name: 'prefixLength', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain.rb index 133c6a8ee4..6f2ff82c89 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain.rb @@ -41,7 +41,6 @@ class CustomDomain < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomain', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'CustomDomain', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -58,7 +56,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -67,7 +64,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -76,7 +72,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -84,13 +79,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: { @@ -100,7 +93,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -108,7 +100,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -117,7 +108,6 @@ def self.mapper() } }, custom_https_provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.customHttpsProvisioningState', @@ -126,7 +116,6 @@ def self.mapper() } }, validation_data: { - client_side_validation: true, required: false, serialized_name: 'properties.validationData', type: { @@ -134,7 +123,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb index 953b50fa8c..18944422bc 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomainListResult', type: { @@ -68,13 +67,11 @@ def self.mapper() class_name: 'CustomDomainListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CustomDomainElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb index 1502370d13..c06793c701 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb @@ -24,7 +24,6 @@ class CustomDomainParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomainParameters', type: { @@ -32,7 +31,6 @@ def self.mapper() class_name: 'CustomDomainParameters', model_properties: { host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb index 329096f485..a06486a348 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb @@ -34,7 +34,6 @@ class DeepCreatedOrigin # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DeepCreatedOrigin', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'DeepCreatedOrigin', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -50,7 +48,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', constraints: { @@ -70,7 +66,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', constraints: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/edge_node.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/edge_node.rb index 90880fbe94..0d13561422 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/edge_node.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/edge_node.rb @@ -22,7 +22,6 @@ class EdgeNode < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EdgeNode', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'EdgeNode', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -39,7 +37,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -48,7 +45,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -57,7 +53,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -65,13 +60,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,13 +74,11 @@ def self.mapper() } }, ip_address_groups: { - client_side_validation: true, required: true, serialized_name: 'properties.ipAddressGroups', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'IpAddressGroupElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/edgenode_result.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/edgenode_result.rb index 1ad554fa5e..a785c6ab5f 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/edgenode_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/edgenode_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EdgenodeResult', type: { @@ -67,13 +66,11 @@ def self.mapper() class_name: 'EdgenodeResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EdgeNodeElementType', 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_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint.rb index 5b7d98f973..63d33c4124 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint.rb @@ -84,7 +84,6 @@ class Endpoint < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Endpoint', type: { @@ -92,7 +91,6 @@ def self.mapper() class_name: 'Endpoint', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -101,7 +99,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -110,7 +107,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -119,7 +115,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -127,13 +122,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: { @@ -143,7 +136,6 @@ def self.mapper() } }, origin_host_header: { - client_side_validation: true, required: false, serialized_name: 'properties.originHostHeader', type: { @@ -151,7 +143,6 @@ def self.mapper() } }, origin_path: { - client_side_validation: true, required: false, serialized_name: 'properties.originPath', type: { @@ -159,13 +150,11 @@ def self.mapper() } }, content_types_to_compress: { - client_side_validation: true, required: false, serialized_name: 'properties.contentTypesToCompress', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -175,7 +164,6 @@ def self.mapper() } }, is_compression_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isCompressionEnabled', type: { @@ -183,7 +171,6 @@ def self.mapper() } }, is_http_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpAllowed', type: { @@ -191,7 +178,6 @@ def self.mapper() } }, is_https_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpsAllowed', type: { @@ -199,7 +185,6 @@ def self.mapper() } }, query_string_caching_behavior: { - client_side_validation: true, required: false, serialized_name: 'properties.queryStringCachingBehavior', type: { @@ -208,7 +193,6 @@ def self.mapper() } }, optimization_type: { - client_side_validation: true, required: false, serialized_name: 'properties.optimizationType', type: { @@ -216,13 +200,11 @@ def self.mapper() } }, geo_filters: { - client_side_validation: true, required: false, serialized_name: 'properties.geoFilters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GeoFilterElementType', type: { @@ -233,7 +215,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.hostName', @@ -242,13 +223,11 @@ def self.mapper() } }, origins: { - client_side_validation: true, required: true, serialized_name: 'properties.origins', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DeepCreatedOriginElementType', type: { @@ -259,7 +238,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -268,7 +246,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb index fc99755392..7bd15eb391 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointListResult', type: { @@ -67,13 +66,11 @@ def self.mapper() class_name: 'EndpointListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'EndpointElementType', 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_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb index 66ae4aab63..71bbd03742 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb @@ -68,7 +68,6 @@ class EndpointUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointUpdateParameters', type: { @@ -76,13 +75,11 @@ def self.mapper() class_name: 'EndpointUpdateParameters', 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: { @@ -92,7 +89,6 @@ def self.mapper() } }, origin_host_header: { - client_side_validation: true, required: false, serialized_name: 'properties.originHostHeader', type: { @@ -100,7 +96,6 @@ def self.mapper() } }, origin_path: { - client_side_validation: true, required: false, serialized_name: 'properties.originPath', type: { @@ -108,13 +103,11 @@ def self.mapper() } }, content_types_to_compress: { - client_side_validation: true, required: false, serialized_name: 'properties.contentTypesToCompress', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -124,7 +117,6 @@ def self.mapper() } }, is_compression_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isCompressionEnabled', type: { @@ -132,7 +124,6 @@ def self.mapper() } }, is_http_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpAllowed', type: { @@ -140,7 +131,6 @@ def self.mapper() } }, is_https_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpsAllowed', type: { @@ -148,7 +138,6 @@ def self.mapper() } }, query_string_caching_behavior: { - client_side_validation: true, required: false, serialized_name: 'properties.queryStringCachingBehavior', type: { @@ -157,7 +146,6 @@ def self.mapper() } }, optimization_type: { - client_side_validation: true, required: false, serialized_name: 'properties.optimizationType', type: { @@ -165,13 +153,11 @@ def self.mapper() } }, geo_filters: { - client_side_validation: true, required: false, serialized_name: 'properties.geoFilters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GeoFilterElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/error_response.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/error_response.rb index d43d7a41b6..e1f6802116 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/error_response.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/error_response.rb @@ -26,7 +26,6 @@ class ErrorResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ErrorResponse', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'ErrorResponse', model_properties: { code: { - client_side_validation: true, required: false, serialized_name: 'code', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/geo_filter.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/geo_filter.rb index f9c593ae25..538beb37ee 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/geo_filter.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/geo_filter.rb @@ -31,7 +31,6 @@ class GeoFilter # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GeoFilter', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'GeoFilter', model_properties: { relative_path: { - client_side_validation: true, required: true, serialized_name: 'relativePath', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, action: { - client_side_validation: true, required: true, serialized_name: 'action', type: { @@ -56,13 +53,11 @@ def self.mapper() } }, country_codes: { - client_side_validation: true, required: true, serialized_name: 'countryCodes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/ip_address_group.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/ip_address_group.rb index a2d91b364a..6ec6a80dd2 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/ip_address_group.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/ip_address_group.rb @@ -28,7 +28,6 @@ class IpAddressGroup # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IpAddressGroup', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'IpAddressGroup', model_properties: { delivery_region: { - client_side_validation: true, required: false, serialized_name: 'deliveryRegion', type: { @@ -44,13 +42,11 @@ def self.mapper() } }, ipv4addresses: { - client_side_validation: true, required: false, serialized_name: 'ipv4Addresses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CidrIpAddressElementType', type: { @@ -61,13 +57,11 @@ def self.mapper() } }, ipv6addresses: { - client_side_validation: true, required: false, serialized_name: 'ipv6Addresses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CidrIpAddressElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/load_parameters.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/load_parameters.rb index b3b8698a40..3e56fcdc42 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/load_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/load_parameters.rb @@ -23,7 +23,6 @@ class LoadParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoadParameters', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'LoadParameters', model_properties: { content_paths: { - client_side_validation: true, required: true, serialized_name: 'contentPaths', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation.rb index ad2d7cd763..f1cae7e0a8 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation.rb @@ -25,7 +25,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: false, serialized_name: 'display', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_display.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_display.rb index d16d04fd20..c28ae66a25 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_display.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_display.rb @@ -29,7 +29,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, serialized_name: 'resource', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, serialized_name: 'operation', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_list_result.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_list_result.rb index abf35efb56..bf2eb4dc00 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/operation_list_result.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationListResult', type: { @@ -68,13 +67,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: { @@ -85,7 +82,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin.rb index 2ae7de4765..9e57857dff 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin.rb @@ -41,7 +41,6 @@ class Origin < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Origin', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'Origin', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -58,7 +56,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -67,7 +64,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -76,7 +72,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -84,13 +79,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: { @@ -100,7 +93,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -108,7 +100,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', constraints: { @@ -120,7 +111,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', constraints: { @@ -132,7 +122,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -141,7 +130,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_list_result.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_list_result.rb index 8402b2073e..d597977fd1 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_list_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OriginListResult', type: { @@ -67,13 +66,11 @@ def self.mapper() class_name: 'OriginListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OriginElementType', 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_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb index ea1673c5eb..0946880ede 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb @@ -31,7 +31,6 @@ class OriginUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OriginUpdateParameters', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'OriginUpdateParameters', model_properties: { host_name: { - client_side_validation: true, required: false, serialized_name: 'properties.hostName', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', constraints: { @@ -59,7 +56,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', constraints: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile.rb index 83d47b9cc1..65a0331b49 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile.rb @@ -33,7 +33,6 @@ class Profile < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Profile', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'Profile', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -50,7 +48,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -59,7 +56,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -68,7 +64,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -76,13 +71,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: { @@ -92,7 +85,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -101,7 +93,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -110,7 +101,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_list_result.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_list_result.rb index e8684167ba..ab03909d0a 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_list_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProfileListResult', type: { @@ -67,13 +66,11 @@ def self.mapper() class_name: 'ProfileListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ProfileElementType', 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_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb index 4b5111abd0..452d5d54a7 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb @@ -22,7 +22,6 @@ class ProfileUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProfileUpdateParameters', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'ProfileUpdateParameters', model_properties: { tags: { - client_side_validation: true, required: true, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/purge_parameters.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/purge_parameters.rb index d81184968d..1a336c7353 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/purge_parameters.rb @@ -23,7 +23,6 @@ class PurgeParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PurgeParameters', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'PurgeParameters', model_properties: { content_paths: { - client_side_validation: true, required: true, serialized_name: 'contentPaths', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource.rb index b72035b912..b289b0f9b1 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/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: true, 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_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage.rb index 3474873efd..c1a6b8365b 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage.rb @@ -31,7 +31,6 @@ class ResourceUsage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceUsage', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'ResourceUsage', model_properties: { resource_type: { - client_side_validation: true, required: false, serialized_name: 'resourceType', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, unit: { - client_side_validation: true, required: false, serialized_name: 'unit', type: { @@ -55,7 +52,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: false, serialized_name: 'currentValue', type: { @@ -63,7 +59,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: false, serialized_name: 'limit', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb index 65ab95847e..abd9e7cac8 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceUsageListResult', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'ResourceUsageListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ResourceUsageElementType', type: { @@ -83,7 +80,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/sku.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/sku.rb index 8d90d4c9ed..4cbf91240b 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/sku.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/sku.rb @@ -25,7 +25,6 @@ class Sku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Sku', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Sku', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/sso_uri.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/sso_uri.rb index 7adf3c6f97..58bac34a8e 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/sso_uri.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/sso_uri.rb @@ -22,7 +22,6 @@ class SsoUri # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SsoUri', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'SsoUri', model_properties: { sso_uri_value: { - client_side_validation: true, required: false, serialized_name: 'ssoUriValue', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/supported_optimization_types_result.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/supported_optimization_types_result.rb index 6653a6e5ea..c40599fd6d 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/supported_optimization_types_result.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/supported_optimization_types_result.rb @@ -23,7 +23,6 @@ class SupportedOptimizationTypesResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SupportedOptimizationTypesResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'SupportedOptimizationTypesResult', model_properties: { supported_optimization_types: { - client_side_validation: true, required: false, serialized_name: 'supportedOptimizationTypes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OptimizationTypeElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb index 551a792f38..0aaadba13e 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb @@ -23,7 +23,6 @@ class ValidateCustomDomainInput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateCustomDomainInput', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'ValidateCustomDomainInput', model_properties: { host_name: { - client_side_validation: true, required: true, serialized_name: 'hostName', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb index 7b6c471736..59b173d120 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb @@ -30,7 +30,6 @@ class ValidateCustomDomainOutput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateCustomDomainOutput', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'ValidateCustomDomainOutput', model_properties: { custom_domain_validated: { - client_side_validation: true, required: false, serialized_name: 'customDomainValidated', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, serialized_name: 'reason', type: { @@ -54,7 +51,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb index bc8b1c3670..6631e7e994 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb @@ -37,8 +37,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -74,11 +74,8 @@ def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def list_by_endpoint_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -86,7 +83,6 @@ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +143,8 @@ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, cus # # @return [Origin] operation results. # - def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) - response = get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil) + response = get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers).value! response.body unless response.nil? end @@ -168,8 +164,8 @@ def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) - get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil) + get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers).value! end # @@ -188,11 +184,8 @@ def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) + def get_async(resource_group_name, profile_name, endpoint_name, origin_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'origin_name is nil' if origin_name.nil? @@ -201,7 +194,6 @@ def get_async(resource_group_name, profile_name, endpoint_name, origin_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -263,8 +255,8 @@ def get_async(resource_group_name, profile_name, endpoint_name, origin_name, cus # # @return [Origin] operation results. # - def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) - response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! + def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! response.body unless response.nil? end @@ -284,9 +276,9 @@ def update(resource_group_name, profile_name, endpoint_name, origin_name, origin # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) + def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers) + promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -319,8 +311,8 @@ def update_async(resource_group_name, profile_name, endpoint_name, origin_name, # # @return [Origin] operation results. # - def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) - response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! + def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! response.body unless response.nil? end @@ -341,8 +333,8 @@ def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) - begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! end # @@ -362,11 +354,8 @@ def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) + def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'origin_name is nil' if origin_name.nil? @@ -376,12 +365,13 @@ def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_ 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::CDN::Mgmt::V2016_10_02::Models::OriginUpdateParameters.mapper() request_content = @client.serialize(request_mapper, origin_update_properties) @@ -448,8 +438,8 @@ def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_ # # @return [OriginListResult] operation results. # - def list_by_endpoint_next(next_page_link, custom_headers:nil) - response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_endpoint_next(next_page_link, custom_headers = nil) + response = list_by_endpoint_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -463,8 +453,8 @@ def list_by_endpoint_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) - list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_endpoint_next_with_http_info(next_page_link, custom_headers = nil) + list_by_endpoint_next_async(next_page_link, custom_headers).value! end # @@ -477,12 +467,11 @@ def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_next_async(next_page_link, custom_headers:nil) + def list_by_endpoint_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 @@ -541,12 +530,12 @@ def list_by_endpoint_next_async(next_page_link, custom_headers:nil) # @return [OriginListResult] which provide lazy access to pages of the # response. # - def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers) + list_by_endpoint_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb index 1ef11a198f..f325319e56 100644 --- a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb @@ -31,8 +31,8 @@ def initialize(client) # # @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 @@ -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 # @@ -56,13 +56,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.subscription_id is nil' if @client.subscription_id.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 @@ -117,8 +116,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 @@ -132,8 +131,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 # @@ -146,17 +145,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.subscription_id is nil' if @client.subscription_id.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 @@ -214,8 +209,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [Profile] operation results. # - def get(resource_group_name, profile_name, custom_headers:nil) - response = get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def get(resource_group_name, profile_name, custom_headers = nil) + response = get_async(resource_group_name, profile_name, custom_headers).value! response.body unless response.nil? end @@ -232,8 +227,8 @@ def get(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, custom_headers:nil) - get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, custom_headers = nil) + get_async(resource_group_name, profile_name, custom_headers).value! end # @@ -249,18 +244,14 @@ def get_with_http_info(resource_group_name, profile_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, custom_headers:nil) + def get_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -319,8 +310,8 @@ def get_async(resource_group_name, profile_name, custom_headers:nil) # # @return [Profile] operation results. # - def create(resource_group_name, profile_name, profile, custom_headers:nil) - response = create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! + def create(resource_group_name, profile_name, profile, custom_headers = nil) + response = create_async(resource_group_name, profile_name, profile, custom_headers).value! response.body unless response.nil? end @@ -336,9 +327,9 @@ def create(resource_group_name, profile_name, profile, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, profile, custom_headers:nil) + def create_async(resource_group_name, profile_name, profile, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, profile_name, profile, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -369,8 +360,8 @@ def create_async(resource_group_name, profile_name, profile, custom_headers:nil) # # @return [Profile] operation results. # - def update(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) - response = update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! + def update(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + response = update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! response.body unless response.nil? end @@ -387,9 +378,9 @@ def update(resource_group_name, profile_name, profile_update_parameters, custom_ # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) + def update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers) + promise = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -417,8 +408,8 @@ def update_async(resource_group_name, profile_name, profile_update_parameters, c # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, profile_name, custom_headers:nil) - response = delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def delete(resource_group_name, profile_name, custom_headers = nil) + response = delete_async(resource_group_name, profile_name, custom_headers).value! nil end @@ -433,9 +424,9 @@ def delete(resource_group_name, profile_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, custom_headers:nil) + def delete_async(resource_group_name, profile_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -465,8 +456,8 @@ def delete_async(resource_group_name, profile_name, custom_headers:nil) # # @return [SsoUri] operation results. # - def generate_sso_uri(resource_group_name, profile_name, custom_headers:nil) - response = generate_sso_uri_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def generate_sso_uri(resource_group_name, profile_name, custom_headers = nil) + response = generate_sso_uri_async(resource_group_name, profile_name, custom_headers).value! response.body unless response.nil? end @@ -486,8 +477,8 @@ def generate_sso_uri(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_headers:nil) - generate_sso_uri_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_headers = nil) + generate_sso_uri_async(resource_group_name, profile_name, custom_headers).value! end # @@ -506,18 +497,14 @@ def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_he # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_sso_uri_async(resource_group_name, profile_name, custom_headers:nil) + def generate_sso_uri_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -575,8 +562,8 @@ def generate_sso_uri_async(resource_group_name, profile_name, custom_headers:nil # # @return [SupportedOptimizationTypesResult] operation results. # - def get_supported_optimization_types(resource_group_name, profile_name, custom_headers:nil) - response = get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def get_supported_optimization_types(resource_group_name, profile_name, custom_headers = nil) + response = get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value! response.body unless response.nil? end @@ -593,8 +580,8 @@ def get_supported_optimization_types(resource_group_name, profile_name, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers:nil) - get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def get_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers = nil) + get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value! end # @@ -610,18 +597,14 @@ def get_supported_optimization_types_with_http_info(resource_group_name, profile # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:nil) + def get_supported_optimization_types_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -678,8 +661,8 @@ def get_supported_optimization_types_async(resource_group_name, profile_name, cu # # @return [Array] operation results. # - def list_resource_usage(resource_group_name, profile_name, custom_headers:nil) - first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers) + def list_resource_usage(resource_group_name, profile_name, custom_headers = nil) + first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers) first_page.get_all_items end @@ -695,8 +678,8 @@ def list_resource_usage(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_with_http_info(resource_group_name, profile_name, custom_headers:nil) - list_resource_usage_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_resource_usage_with_http_info(resource_group_name, profile_name, custom_headers = nil) + list_resource_usage_async(resource_group_name, profile_name, custom_headers).value! end # @@ -711,18 +694,14 @@ def list_resource_usage_with_http_info(resource_group_name, profile_name, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_async(resource_group_name, profile_name, custom_headers:nil) + def list_resource_usage_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -781,8 +760,8 @@ def list_resource_usage_async(resource_group_name, profile_name, custom_headers: # # @return [Profile] operation results. # - def begin_create(resource_group_name, profile_name, profile, custom_headers:nil) - response = begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! + def begin_create(resource_group_name, profile_name, profile, custom_headers = nil) + response = begin_create_async(resource_group_name, profile_name, profile, custom_headers).value! response.body unless response.nil? end @@ -800,8 +779,8 @@ def begin_create(resource_group_name, profile_name, profile, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, profile, custom_headers:nil) - begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, profile, custom_headers = nil) + begin_create_async(resource_group_name, profile_name, profile, custom_headers).value! end # @@ -818,11 +797,8 @@ def begin_create_with_http_info(resource_group_name, profile_name, profile, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, profile, custom_headers:nil) + def begin_create_async(resource_group_name, profile_name, profile, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'profile is nil' if profile.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -830,12 +806,13 @@ def begin_create_async(resource_group_name, profile_name, profile, custom_header 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::CDN::Mgmt::V2016_10_02::Models::Profile.mapper() request_content = @client.serialize(request_mapper, profile) @@ -917,8 +894,8 @@ def begin_create_async(resource_group_name, profile_name, profile, custom_header # # @return [Profile] operation results. # - def begin_update(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) - response = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! + def begin_update(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + response = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! response.body unless response.nil? end @@ -937,8 +914,8 @@ def begin_update(resource_group_name, profile_name, profile_update_parameters, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) - begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! end # @@ -956,11 +933,8 @@ def begin_update_with_http_info(resource_group_name, profile_name, profile_updat # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) + def begin_update_async(resource_group_name, profile_name, profile_update_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'profile_update_parameters is nil' if profile_update_parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -968,12 +942,13 @@ def begin_update_async(resource_group_name, profile_name, profile_update_paramet 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::CDN::Mgmt::V2016_10_02::Models::ProfileUpdateParameters.mapper() request_content = @client.serialize(request_mapper, profile_update_parameters) @@ -1043,8 +1018,8 @@ def begin_update_async(resource_group_name, profile_name, profile_update_paramet # will be added to the HTTP request. # # - def begin_delete(resource_group_name, profile_name, custom_headers:nil) - response = begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, profile_name, custom_headers = nil) + response = begin_delete_async(resource_group_name, profile_name, custom_headers).value! nil end @@ -1062,8 +1037,8 @@ def begin_delete(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, custom_headers:nil) - begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, custom_headers = nil) + begin_delete_async(resource_group_name, profile_name, custom_headers).value! end # @@ -1080,18 +1055,14 @@ def begin_delete_with_http_info(resource_group_name, profile_name, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, custom_headers:nil) + def begin_delete_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -1136,8 +1107,8 @@ def begin_delete_async(resource_group_name, profile_name, custom_headers:nil) # # @return [ProfileListResult] 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 @@ -1151,8 +1122,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 # @@ -1165,12 +1136,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 @@ -1224,8 +1194,8 @@ def list_next_async(next_page_link, custom_headers:nil) # # @return [ProfileListResult] 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 @@ -1239,8 +1209,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 # @@ -1253,12 +1223,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 @@ -1312,8 +1281,8 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_next(next_page_link, custom_headers:nil) - response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next(next_page_link, custom_headers = nil) + response = list_resource_usage_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1327,8 +1296,8 @@ def list_resource_usage_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil) + list_resource_usage_next_async(next_page_link, custom_headers).value! end # @@ -1341,12 +1310,11 @@ def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_next_async(next_page_link, custom_headers:nil) + def list_resource_usage_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 @@ -1399,12 +1367,12 @@ def list_resource_usage_next_async(next_page_link, custom_headers:nil) # @return [ProfileListResult] 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 @@ -1421,12 +1389,12 @@ def list_as_lazy(custom_headers:nil) # @return [ProfileListResult] 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 @@ -1445,12 +1413,12 @@ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) # @return [ResourceUsageListResult] which provide lazy access to pages of the # response. # - def list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers:nil) - response = list_resource_usage_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers = nil) + response = list_resource_usage_async(resource_group_name, profile_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers) + list_resource_usage_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/version.rb b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/version.rb new file mode 100644 index 0000000000..a7175f088e --- /dev/null +++ b/management/azure_mgmt_cdn/lib/2016-10-02/generated/azure_mgmt_cdn/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::CDN::Mgmt::V2016_10_02 + VERSION = '0.16.0' +end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb index 958d8bb56e..d5373c37ee 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb @@ -64,7 +64,7 @@ class CdnManagementClient < MsRestAzure::AzureServiceClient # def initialize(credentials = nil, base_url = nil, options = nil) super(credentials, options) - @base_url = base_url || 'https://management.azure.com' + @base_url = base_url || 'http://management.azure.com' fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil? @credentials = credentials @@ -129,9 +129,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? @@ -152,8 +149,8 @@ def make_request_async(method, path, options = {}) # # @return [CheckNameAvailabilityOutput] operation results. # - def check_name_availability(check_name_availability_input, custom_headers:nil) - response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! + def check_name_availability(check_name_availability_input, custom_headers = nil) + response = check_name_availability_async(check_name_availability_input, custom_headers).value! response.body unless response.nil? end @@ -168,8 +165,8 @@ def check_name_availability(check_name_availability_input, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(check_name_availability_input, custom_headers:nil) - check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(check_name_availability_input, custom_headers = nil) + check_name_availability_async(check_name_availability_input, custom_headers).value! end # @@ -183,18 +180,19 @@ def check_name_availability_with_http_info(check_name_availability_input, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(check_name_availability_input, custom_headers:nil) + def check_name_availability_async(check_name_availability_input, custom_headers = nil) fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil? fail ArgumentError, 'api_version is nil' if 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 request_headers['accept-language'] = accept_language unless accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::CheckNameAvailabilityInput.mapper() request_content = self.serialize(request_mapper, check_name_availability_input) @@ -252,8 +250,8 @@ def check_name_availability_async(check_name_availability_input, custom_headers: # # @return [ValidateProbeOutput] operation results. # - def validate_probe(validate_probe_input, custom_headers:nil) - response = validate_probe_async(validate_probe_input, custom_headers:custom_headers).value! + def validate_probe(validate_probe_input, custom_headers = nil) + response = validate_probe_async(validate_probe_input, custom_headers).value! response.body unless response.nil? end @@ -269,8 +267,8 @@ def validate_probe(validate_probe_input, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_probe_with_http_info(validate_probe_input, custom_headers:nil) - validate_probe_async(validate_probe_input, custom_headers:custom_headers).value! + def validate_probe_with_http_info(validate_probe_input, custom_headers = nil) + validate_probe_async(validate_probe_input, custom_headers).value! end # @@ -285,19 +283,20 @@ def validate_probe_with_http_info(validate_probe_input, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_probe_async(validate_probe_input, custom_headers:nil) + def validate_probe_async(validate_probe_input, custom_headers = nil) fail ArgumentError, 'validate_probe_input is nil' if validate_probe_input.nil? fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, 'api_version is nil' if 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 request_headers['accept-language'] = accept_language unless accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::CDN::Mgmt::V2017_04_02::Models::ValidateProbeInput.mapper() request_content = self.serialize(request_mapper, validate_probe_input) @@ -351,7 +350,9 @@ def validate_probe_async(validate_probe_input, custom_headers:nil) # def add_telemetry sdk_information = 'azure_mgmt_cdn' - sdk_information = "#{sdk_information}/0.16.0" + if defined? Azure::CDN::Mgmt::V2017_04_02::VERSION + sdk_information = "#{sdk_information}/#{Azure::CDN::Mgmt::V2017_04_02::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb index d03de5c1e0..967c3096b2 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb @@ -37,8 +37,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -74,11 +74,8 @@ def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def list_by_endpoint_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -86,7 +83,6 @@ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +143,8 @@ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, cus # # @return [CustomDomain] operation results. # - def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -168,8 +164,8 @@ def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! end # @@ -188,11 +184,8 @@ def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -201,7 +194,6 @@ def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_na request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -264,8 +256,8 @@ def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_na # # @return [CustomDomain] operation results. # - def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) - response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! + def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! response.body unless response.nil? end @@ -286,9 +278,9 @@ def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) + def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -320,8 +312,8 @@ def create_async(resource_group_name, profile_name, endpoint_name, custom_domain # # @return [CustomDomain] operation results. # - def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -340,9 +332,9 @@ def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -374,8 +366,8 @@ def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain # # @return [CustomDomain] operation results. # - def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -395,8 +387,8 @@ def disable_custom_https(resource_group_name, profile_name, endpoint_name, custo # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! end # @@ -415,11 +407,8 @@ def disable_custom_https_with_http_info(resource_group_name, profile_name, endpo # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -428,7 +417,6 @@ def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -489,8 +477,8 @@ def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, # # @return [CustomDomain] operation results. # - def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -510,8 +498,8 @@ def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! end # @@ -530,11 +518,8 @@ def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -543,7 +528,6 @@ def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -606,8 +590,8 @@ def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, # # @return [CustomDomain] operation results. # - def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) - response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! + def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! response.body unless response.nil? end @@ -629,8 +613,8 @@ def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) - begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! end # @@ -651,11 +635,8 @@ def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) + def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -665,12 +646,13 @@ def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_ 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::CDN::Mgmt::V2017_04_02::Models::CustomDomainParameters.mapper() request_content = @client.serialize(request_mapper, custom_domain_properties) @@ -753,8 +735,8 @@ def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_ # # @return [CustomDomain] operation results. # - def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -774,8 +756,8 @@ def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! end # @@ -794,11 +776,8 @@ def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -807,7 +786,6 @@ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_ request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -862,8 +840,8 @@ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_ # # @return [CustomDomainListResult] operation results. # - def list_by_endpoint_next(next_page_link, custom_headers:nil) - response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_endpoint_next(next_page_link, custom_headers = nil) + response = list_by_endpoint_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -877,8 +855,8 @@ def list_by_endpoint_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) - list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_endpoint_next_with_http_info(next_page_link, custom_headers = nil) + list_by_endpoint_next_async(next_page_link, custom_headers).value! end # @@ -891,12 +869,11 @@ def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_next_async(next_page_link, custom_headers:nil) + def list_by_endpoint_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 @@ -955,12 +932,12 @@ def list_by_endpoint_next_async(next_page_link, custom_headers:nil) # @return [CustomDomainListResult] which provide lazy access to pages of the # response. # - def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers) + list_by_endpoint_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb index 85cba06a1c..4db0b20e4b 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb @@ -32,8 +32,8 @@ def initialize(client) # # @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 @@ -46,8 +46,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 # @@ -59,12 +59,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 @@ -119,8 +118,8 @@ def list_async(custom_headers:nil) # # @return [EdgenodeResult] 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 @@ -135,8 +134,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 # @@ -150,12 +149,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 @@ -208,12 +206,12 @@ def list_next_async(next_page_link, custom_headers:nil) # # @return [EdgenodeResult] 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 diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb index 25d65a35ea..e132082a62 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb @@ -35,8 +35,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_profile(resource_group_name, profile_name, custom_headers:nil) - first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers) + def list_by_profile(resource_group_name, profile_name, custom_headers = nil) + first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ def list_by_profile(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers:nil) - list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers = nil) + list_by_profile_async(resource_group_name, profile_name, custom_headers).value! end # @@ -68,18 +68,14 @@ def list_by_profile_with_http_info(resource_group_name, profile_name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_async(resource_group_name, profile_name, custom_headers:nil) + def list_by_profile_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -139,8 +135,8 @@ def list_by_profile_async(resource_group_name, profile_name, custom_headers:nil) # # @return [Endpoint] operation results. # - def get(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = get_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = get_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -159,8 +155,8 @@ def get(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - get_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + get_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -178,11 +174,8 @@ def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def get_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -190,7 +183,6 @@ def get_async(resource_group_name, profile_name, endpoint_name, 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 @@ -251,8 +243,8 @@ def get_async(resource_group_name, profile_name, endpoint_name, custom_headers:n # # @return [Endpoint] operation results. # - def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) - response = create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! + def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + response = create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! response.body unless response.nil? end @@ -270,9 +262,9 @@ def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_he # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) + def create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -308,8 +300,8 @@ def create_async(resource_group_name, profile_name, endpoint_name, endpoint, cus # # @return [Endpoint] operation results. # - def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) - response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! + def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! response.body unless response.nil? end @@ -328,9 +320,9 @@ def update(resource_group_name, profile_name, endpoint_name, endpoint_update_pro # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) + def update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers) + promise = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -359,8 +351,8 @@ def update_async(resource_group_name, profile_name, endpoint_name, endpoint_upda # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! nil end @@ -377,9 +369,9 @@ def delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def delete_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -407,8 +399,8 @@ def delete_async(resource_group_name, profile_name, endpoint_name, custom_header # # @return [Endpoint] operation results. # - def start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def start(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -425,9 +417,9 @@ def start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def start_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) # Send request - promise = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + promise = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -457,8 +449,8 @@ def start_async(resource_group_name, profile_name, endpoint_name, custom_headers # # @return [Endpoint] operation results. # - def stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def stop(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -475,9 +467,9 @@ def stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) # Send request - promise = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + promise = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -509,8 +501,8 @@ def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers: # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - response = purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + response = purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! nil end @@ -531,9 +523,9 @@ def purge_content(resource_group_name, profile_name, endpoint_name, content_file # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + def purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) # Send request - promise = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers) + promise = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -562,8 +554,8 @@ def purge_content_async(resource_group_name, profile_name, endpoint_name, conten # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - response = load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + response = load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! nil end @@ -583,9 +575,9 @@ def load_content(resource_group_name, profile_name, endpoint_name, content_file_ # @return [Concurrent::Promise] promise which provides async access to http # response. # - def load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + def load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) # Send request - promise = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers) + promise = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -616,8 +608,8 @@ def load_content_async(resource_group_name, profile_name, endpoint_name, content # # @return [ValidateCustomDomainOutput] operation results. # - def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) - response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value! + def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers = nil) + response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers).value! response.body unless response.nil? end @@ -638,8 +630,8 @@ def validate_custom_domain(resource_group_name, profile_name, endpoint_name, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_custom_domain_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) - validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value! + def validate_custom_domain_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers = nil) + validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers).value! end # @@ -659,11 +651,8 @@ def validate_custom_domain_with_http_info(resource_group_name, profile_name, end # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) + def validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil? @@ -672,12 +661,13 @@ def validate_custom_domain_async(resource_group_name, profile_name, endpoint_nam 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::CDN::Mgmt::V2017_04_02::Models::ValidateCustomDomainInput.mapper() request_content = @client.serialize(request_mapper, custom_domain_properties) @@ -739,8 +729,8 @@ def validate_custom_domain_async(resource_group_name, profile_name, endpoint_nam # # @return [Array] operation results. # - def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) first_page.get_all_items end @@ -759,8 +749,8 @@ def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -778,11 +768,8 @@ def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def list_resource_usage_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -790,7 +777,6 @@ def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -851,8 +837,8 @@ def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, # # @return [Endpoint] operation results. # - def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) - response = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! + def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + response = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! response.body unless response.nil? end @@ -872,8 +858,8 @@ def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) - begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! end # @@ -892,11 +878,8 @@ def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) + def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'endpoint is nil' if endpoint.nil? @@ -905,12 +888,13 @@ def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoin 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::CDN::Mgmt::V2017_04_02::Models::Endpoint.mapper() request_content = @client.serialize(request_mapper, endpoint) @@ -997,8 +981,8 @@ def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoin # # @return [Endpoint] operation results. # - def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) - response = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! + def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + response = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! response.body unless response.nil? end @@ -1022,8 +1006,8 @@ def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_upda # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) - begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! end # @@ -1046,11 +1030,8 @@ def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) + def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'endpoint_update_properties is nil' if endpoint_update_properties.nil? @@ -1059,12 +1040,13 @@ def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoin 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::CDN::Mgmt::V2017_04_02::Models::EndpointUpdateParameters.mapper() request_content = @client.serialize(request_mapper, endpoint_update_properties) @@ -1135,8 +1117,8 @@ def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoin # will be added to the HTTP request. # # - def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! nil end @@ -1155,8 +1137,8 @@ def begin_delete(resource_group_name, profile_name, endpoint_name, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -1174,11 +1156,8 @@ def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def begin_delete_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1186,7 +1165,6 @@ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_ request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1235,8 +1213,8 @@ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_ # # @return [Endpoint] operation results. # - def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -1254,8 +1232,8 @@ def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -1272,11 +1250,8 @@ def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def begin_start_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1284,7 +1259,6 @@ def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_h request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1353,8 +1327,8 @@ def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_h # # @return [Endpoint] operation results. # - def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -1372,8 +1346,8 @@ def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -1390,11 +1364,8 @@ def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def begin_stop_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1402,7 +1373,6 @@ def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1474,8 +1444,8 @@ def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_he # will be added to the HTTP request. # # - def begin_purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - response = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def begin_purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + response = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! nil end @@ -1497,8 +1467,8 @@ def begin_purge_content(resource_group_name, profile_name, endpoint_name, conten # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! end # @@ -1519,11 +1489,8 @@ def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil? @@ -1532,12 +1499,13 @@ def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, 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::CDN::Mgmt::V2017_04_02::Models::PurgeParameters.mapper() request_content = @client.serialize(request_mapper, content_file_paths) @@ -1590,8 +1558,8 @@ def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, # will be added to the HTTP request. # # - def begin_load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - response = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def begin_load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + response = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! nil end @@ -1612,8 +1580,8 @@ def begin_load_content(resource_group_name, profile_name, endpoint_name, content # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_load_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def begin_load_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! end # @@ -1633,11 +1601,8 @@ def begin_load_content_with_http_info(resource_group_name, profile_name, endpoin # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + def begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil? @@ -1646,12 +1611,13 @@ def begin_load_content_async(resource_group_name, profile_name, endpoint_name, c 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::CDN::Mgmt::V2017_04_02::Models::LoadParameters.mapper() request_content = @client.serialize(request_mapper, content_file_paths) @@ -1698,8 +1664,8 @@ def begin_load_content_async(resource_group_name, profile_name, endpoint_name, c # # @return [EndpointListResult] operation results. # - def list_by_profile_next(next_page_link, custom_headers:nil) - response = list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_profile_next(next_page_link, custom_headers = nil) + response = list_by_profile_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1713,8 +1679,8 @@ def list_by_profile_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_next_with_http_info(next_page_link, custom_headers:nil) - list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_profile_next_with_http_info(next_page_link, custom_headers = nil) + list_by_profile_next_async(next_page_link, custom_headers).value! end # @@ -1727,12 +1693,11 @@ def list_by_profile_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_next_async(next_page_link, custom_headers:nil) + def list_by_profile_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 @@ -1787,8 +1752,8 @@ def list_by_profile_next_async(next_page_link, custom_headers:nil) # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_next(next_page_link, custom_headers:nil) - response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next(next_page_link, custom_headers = nil) + response = list_resource_usage_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1803,8 +1768,8 @@ def list_resource_usage_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil) + list_resource_usage_next_async(next_page_link, custom_headers).value! end # @@ -1818,12 +1783,11 @@ def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_next_async(next_page_link, custom_headers:nil) + def list_resource_usage_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 @@ -1880,12 +1844,12 @@ def list_resource_usage_next_async(next_page_link, custom_headers:nil) # @return [EndpointListResult] which provide lazy access to pages of the # response. # - def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:nil) - response = list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers = nil) + response = list_by_profile_async(resource_group_name, profile_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_profile_next_async(next_page_link, custom_headers:custom_headers) + list_by_profile_next_async(next_page_link, custom_headers) end page end @@ -1907,12 +1871,12 @@ def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:ni # @return [ResourceUsageListResult] which provide lazy access to pages of the # response. # - def list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers) + list_resource_usage_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb index f27a8cdd9e..45f13972ca 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb @@ -26,7 +26,6 @@ class CheckNameAvailabilityInput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityInput', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityInput', 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_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb index a15d4a2d47..37f9b106ec 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb @@ -29,7 +29,6 @@ class CheckNameAvailabilityOutput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityOutput', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityOutput', model_properties: { name_available: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'nameAvailable', @@ -46,7 +44,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'reason', @@ -55,7 +52,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb index ed2a3019c4..123f1b1a54 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/cidr_ip_address.rb @@ -25,7 +25,6 @@ class CidrIpAddress # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'cidrIpAddress', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'CidrIpAddress', model_properties: { base_ip_address: { - client_side_validation: true, required: false, serialized_name: 'baseIpAddress', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, prefix_length: { - client_side_validation: true, required: false, serialized_name: 'prefixLength', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb index e8a3fc4549..fef2d90de1 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb @@ -53,7 +53,6 @@ class CustomDomain < ProxyResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomain', type: { @@ -61,7 +60,6 @@ def self.mapper() class_name: 'CustomDomain', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -70,7 +68,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -79,7 +76,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -88,7 +84,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -96,7 +91,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -105,7 +99,6 @@ def self.mapper() } }, custom_https_provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.customHttpsProvisioningState', @@ -114,7 +107,6 @@ def self.mapper() } }, custom_https_provisioning_substate: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.customHttpsProvisioningSubstate', @@ -123,7 +115,6 @@ def self.mapper() } }, validation_data: { - client_side_validation: true, required: false, serialized_name: 'properties.validationData', type: { @@ -131,7 +122,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb index eaa69d107d..949327c2ca 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomainListResult', type: { @@ -68,14 +67,12 @@ def self.mapper() class_name: 'CustomDomainListResult', 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: 'CustomDomainElementType', type: { @@ -86,7 +83,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb index cb60492f3a..3cd82c9e44 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb @@ -24,7 +24,6 @@ class CustomDomainParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomainParameters', type: { @@ -32,7 +31,6 @@ def self.mapper() class_name: 'CustomDomainParameters', model_properties: { host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb index acb61c4892..8948d1c155 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb @@ -35,7 +35,6 @@ class DeepCreatedOrigin # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DeepCreatedOrigin', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'DeepCreatedOrigin', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -51,7 +49,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -59,7 +56,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', constraints: { @@ -71,7 +67,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', constraints: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/edge_node.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/edge_node.rb index 437d43cd20..942b38e84c 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/edge_node.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/edge_node.rb @@ -23,7 +23,6 @@ class EdgeNode < ProxyResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EdgeNode', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'EdgeNode', 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,13 +54,11 @@ def self.mapper() } }, ip_address_groups: { - client_side_validation: true, required: true, serialized_name: 'properties.ipAddressGroups', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'IpAddressGroupElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/edgenode_result.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/edgenode_result.rb index 788dc7fc06..d67a34319d 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/edgenode_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/edgenode_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EdgenodeResult', type: { @@ -67,14 +66,12 @@ def self.mapper() class_name: 'EdgenodeResult', 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: 'EdgeNodeElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint.rb index 6fed321483..33ded32708 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint.rb @@ -96,7 +96,6 @@ class Endpoint < TrackedResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Endpoint', type: { @@ -104,7 +103,6 @@ def self.mapper() class_name: 'Endpoint', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -113,7 +111,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -122,7 +119,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -131,7 +127,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -139,13 +134,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: { @@ -155,7 +148,6 @@ def self.mapper() } }, origin_host_header: { - client_side_validation: true, required: false, serialized_name: 'properties.originHostHeader', type: { @@ -163,7 +155,6 @@ def self.mapper() } }, origin_path: { - client_side_validation: true, required: false, serialized_name: 'properties.originPath', type: { @@ -171,13 +162,11 @@ def self.mapper() } }, content_types_to_compress: { - client_side_validation: true, required: false, serialized_name: 'properties.contentTypesToCompress', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -187,7 +176,6 @@ def self.mapper() } }, is_compression_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isCompressionEnabled', type: { @@ -195,7 +183,6 @@ def self.mapper() } }, is_http_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpAllowed', type: { @@ -203,7 +190,6 @@ def self.mapper() } }, is_https_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpsAllowed', type: { @@ -211,7 +197,6 @@ def self.mapper() } }, query_string_caching_behavior: { - client_side_validation: true, required: false, serialized_name: 'properties.queryStringCachingBehavior', type: { @@ -220,7 +205,6 @@ def self.mapper() } }, optimization_type: { - client_side_validation: true, required: false, serialized_name: 'properties.optimizationType', type: { @@ -228,7 +212,6 @@ def self.mapper() } }, probe_path: { - client_side_validation: true, required: false, serialized_name: 'properties.probePath', type: { @@ -236,13 +219,11 @@ def self.mapper() } }, geo_filters: { - client_side_validation: true, required: false, serialized_name: 'properties.geoFilters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GeoFilterElementType', type: { @@ -253,7 +234,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.hostName', @@ -262,13 +242,11 @@ def self.mapper() } }, origins: { - client_side_validation: true, required: true, serialized_name: 'properties.origins', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DeepCreatedOriginElementType', type: { @@ -279,7 +257,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -288,7 +265,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb index 9d53c6583a..9cf3000b7a 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointListResult', type: { @@ -67,14 +66,12 @@ def self.mapper() class_name: 'EndpointListResult', 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: 'EndpointElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb index 8ef5ad8cdd..f1ceee2841 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb @@ -80,7 +80,6 @@ class EndpointUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointUpdateParameters', type: { @@ -88,13 +87,11 @@ def self.mapper() class_name: 'EndpointUpdateParameters', 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: { @@ -104,7 +101,6 @@ def self.mapper() } }, origin_host_header: { - client_side_validation: true, required: false, serialized_name: 'properties.originHostHeader', type: { @@ -112,7 +108,6 @@ def self.mapper() } }, origin_path: { - client_side_validation: true, required: false, serialized_name: 'properties.originPath', type: { @@ -120,13 +115,11 @@ def self.mapper() } }, content_types_to_compress: { - client_side_validation: true, required: false, serialized_name: 'properties.contentTypesToCompress', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -136,7 +129,6 @@ def self.mapper() } }, is_compression_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isCompressionEnabled', type: { @@ -144,7 +136,6 @@ def self.mapper() } }, is_http_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpAllowed', type: { @@ -152,7 +143,6 @@ def self.mapper() } }, is_https_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpsAllowed', type: { @@ -160,7 +150,6 @@ def self.mapper() } }, query_string_caching_behavior: { - client_side_validation: true, required: false, serialized_name: 'properties.queryStringCachingBehavior', type: { @@ -169,7 +158,6 @@ def self.mapper() } }, optimization_type: { - client_side_validation: true, required: false, serialized_name: 'properties.optimizationType', type: { @@ -177,7 +165,6 @@ def self.mapper() } }, probe_path: { - client_side_validation: true, required: false, serialized_name: 'properties.probePath', type: { @@ -185,13 +172,11 @@ def self.mapper() } }, geo_filters: { - client_side_validation: true, required: false, serialized_name: 'properties.geoFilters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GeoFilterElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/error_response.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/error_response.rb index 5e007d79f5..bbd5d19c15 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/error_response.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/error_response.rb @@ -26,7 +26,6 @@ class ErrorResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ErrorResponse', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'ErrorResponse', model_properties: { code: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'code', @@ -43,7 +41,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/geo_filter.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/geo_filter.rb index d4ba0516ac..6f6adb04dd 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/geo_filter.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/geo_filter.rb @@ -31,7 +31,6 @@ class GeoFilter # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GeoFilter', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'GeoFilter', model_properties: { relative_path: { - client_side_validation: true, required: true, serialized_name: 'relativePath', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, action: { - client_side_validation: true, required: true, serialized_name: 'action', type: { @@ -56,13 +53,11 @@ def self.mapper() } }, country_codes: { - client_side_validation: true, required: true, serialized_name: 'countryCodes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/ip_address_group.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/ip_address_group.rb index 32cb1a2fa2..fbb753df9f 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/ip_address_group.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/ip_address_group.rb @@ -28,7 +28,6 @@ class IpAddressGroup # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IpAddressGroup', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'IpAddressGroup', model_properties: { delivery_region: { - client_side_validation: true, required: false, serialized_name: 'deliveryRegion', type: { @@ -44,13 +42,11 @@ def self.mapper() } }, ipv4addresses: { - client_side_validation: true, required: false, serialized_name: 'ipv4Addresses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CidrIpAddressElementType', type: { @@ -61,13 +57,11 @@ def self.mapper() } }, ipv6addresses: { - client_side_validation: true, required: false, serialized_name: 'ipv6Addresses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CidrIpAddressElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb index 1ab21e6090..f407731713 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb @@ -23,7 +23,6 @@ class LoadParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoadParameters', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'LoadParameters', model_properties: { content_paths: { - client_side_validation: true, required: true, serialized_name: 'contentPaths', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/operation.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/operation.rb index 64f57918fd..1a373c47ee 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/operation.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/operation.rb @@ -25,7 +25,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -42,7 +40,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: false, serialized_name: 'display', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/operation_display.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/operation_display.rb index 9b0691c810..8165e447ab 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/operation_display.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/operation_display.rb @@ -29,7 +29,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'provider', @@ -46,7 +44,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'resource', @@ -55,7 +52,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'operation', diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/operations_list_result.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/operations_list_result.rb index 85b9536ed5..968c10be0e 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/operations_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/operations_list_result.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationsListResult', type: { @@ -68,14 +67,12 @@ def self.mapper() class_name: 'OperationsListResult', 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: 'OperationElementType', type: { @@ -86,7 +83,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin.rb index c4319fbff3..69cb43ea83 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin.rb @@ -41,7 +41,6 @@ class Origin < TrackedResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Origin', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'Origin', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -58,7 +56,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -67,7 +64,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -76,7 +72,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -84,13 +79,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: { @@ -100,7 +93,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -108,7 +100,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', constraints: { @@ -120,7 +111,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', constraints: { @@ -132,7 +122,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -141,7 +130,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb index 01aff3bc48..67e5d18686 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OriginListResult', type: { @@ -67,14 +66,12 @@ def self.mapper() class_name: 'OriginListResult', 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: 'OriginElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb index b083c6cf2c..821ca1e7c0 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin_update_parameters.rb @@ -31,7 +31,6 @@ class OriginUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OriginUpdateParameters', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'OriginUpdateParameters', model_properties: { host_name: { - client_side_validation: true, required: false, serialized_name: 'properties.hostName', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', constraints: { @@ -59,7 +56,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', constraints: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile.rb index e28616bd39..0a8effc560 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile.rb @@ -31,7 +31,6 @@ class Profile < TrackedResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Profile', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'Profile', 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', @@ -66,7 +62,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -74,13 +69,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: { @@ -90,7 +83,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -99,7 +91,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -108,7 +99,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb index 27e2b4251f..5273732f2e 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProfileListResult', type: { @@ -67,14 +66,12 @@ def self.mapper() class_name: 'ProfileListResult', 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: 'ProfileElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb index a807b5ea7c..94635ddaab 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb @@ -22,7 +22,6 @@ class ProfileUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProfileUpdateParameters', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'ProfileUpdateParameters', 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: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/proxy_resource.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/proxy_resource.rb index 06ffcb2a4e..5fe4ebec27 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/proxy_resource.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/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_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb index 9569481774..58ad66e957 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb @@ -23,7 +23,6 @@ class PurgeParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PurgeParameters', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'PurgeParameters', model_properties: { content_paths: { - client_side_validation: true, required: true, serialized_name: 'contentPaths', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource.rb index 692f197775..cf2c61f521 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource.rb @@ -28,7 +28,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -45,7 +43,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -54,7 +51,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb index 464acaed5b..11b1ae6080 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage.rb @@ -31,7 +31,6 @@ class ResourceUsage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceUsage', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'ResourceUsage', model_properties: { resource_type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'resourceType', @@ -48,7 +46,6 @@ def self.mapper() } }, unit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'unit', @@ -57,7 +54,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'currentValue', @@ -66,7 +62,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'limit', diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb index f17054ea13..f39ab0eae2 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceUsageListResult', type: { @@ -66,14 +65,12 @@ def self.mapper() class_name: 'ResourceUsageListResult', 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: 'ResourceUsageElementType', 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_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/sku.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/sku.rb index 96c8deb08f..d3668c8268 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/sku.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/sku.rb @@ -25,7 +25,6 @@ class Sku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Sku', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Sku', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb index 14de300f10..c3080d3318 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb @@ -23,7 +23,6 @@ class SsoUri # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SsoUri', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'SsoUri', model_properties: { sso_uri_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'ssoUriValue', diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb index 2499b397d7..779be7173b 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb @@ -23,7 +23,6 @@ class SupportedOptimizationTypesListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SupportedOptimizationTypesListResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'SupportedOptimizationTypesListResult', model_properties: { supported_optimization_types: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'supportedOptimizationTypes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OptimizationTypeElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb index b4058eab68..65871e0c48 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/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,7 +56,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -68,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: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb index e338093399..545d07daa0 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb @@ -23,7 +23,6 @@ class ValidateCustomDomainInput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateCustomDomainInput', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'ValidateCustomDomainInput', model_properties: { host_name: { - client_side_validation: true, required: true, serialized_name: 'hostName', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb index bbc5c4ada7..39f546a64a 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb @@ -29,7 +29,6 @@ class ValidateCustomDomainOutput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateCustomDomainOutput', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ValidateCustomDomainOutput', model_properties: { custom_domain_validated: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'customDomainValidated', @@ -46,7 +44,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'reason', @@ -55,7 +52,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_input.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_input.rb index d6c40586a3..a1bb98159b 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_input.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_input.rb @@ -22,7 +22,6 @@ class ValidateProbeInput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateProbeInput', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ValidateProbeInput', model_properties: { probe_url: { - client_side_validation: true, required: true, serialized_name: 'probeURL', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_output.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_output.rb index 68da826ae5..006a43ad04 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_output.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/models/validate_probe_output.rb @@ -30,7 +30,6 @@ class ValidateProbeOutput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateProbeOutput', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'ValidateProbeOutput', model_properties: { is_valid: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'isValid', @@ -47,7 +45,6 @@ def self.mapper() } }, error_code: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'errorCode', @@ -56,7 +53,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb index 34dd9446e5..eccab1c564 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb @@ -31,8 +31,8 @@ def initialize(client) # # @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 @@ -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 # @@ -56,12 +56,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 @@ -115,8 +114,8 @@ def list_async(custom_headers:nil) # # @return [OperationsListResult] 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 @@ -130,8 +129,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 # @@ -144,12 +143,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 @@ -202,12 +200,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [OperationsListResult] 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 diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb index f3ac8512f2..f879b759c4 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb @@ -37,8 +37,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -74,11 +74,8 @@ def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def list_by_endpoint_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -86,7 +83,6 @@ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +143,8 @@ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, cus # # @return [Origin] operation results. # - def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) - response = get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil) + response = get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers).value! response.body unless response.nil? end @@ -168,8 +164,8 @@ def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) - get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil) + get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers).value! end # @@ -188,11 +184,8 @@ def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) + def get_async(resource_group_name, profile_name, endpoint_name, origin_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'origin_name is nil' if origin_name.nil? @@ -201,7 +194,6 @@ def get_async(resource_group_name, profile_name, endpoint_name, origin_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -263,8 +255,8 @@ def get_async(resource_group_name, profile_name, endpoint_name, origin_name, cus # # @return [Origin] operation results. # - def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) - response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! + def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! response.body unless response.nil? end @@ -284,9 +276,9 @@ def update(resource_group_name, profile_name, endpoint_name, origin_name, origin # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) + def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers) + promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -319,8 +311,8 @@ def update_async(resource_group_name, profile_name, endpoint_name, origin_name, # # @return [Origin] operation results. # - def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) - response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! + def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! response.body unless response.nil? end @@ -341,8 +333,8 @@ def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) - begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! end # @@ -362,11 +354,8 @@ def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) + def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'origin_name is nil' if origin_name.nil? @@ -376,12 +365,13 @@ def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_ 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::CDN::Mgmt::V2017_04_02::Models::OriginUpdateParameters.mapper() request_content = @client.serialize(request_mapper, origin_update_properties) @@ -448,8 +438,8 @@ def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_ # # @return [OriginListResult] operation results. # - def list_by_endpoint_next(next_page_link, custom_headers:nil) - response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_endpoint_next(next_page_link, custom_headers = nil) + response = list_by_endpoint_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -463,8 +453,8 @@ def list_by_endpoint_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) - list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_endpoint_next_with_http_info(next_page_link, custom_headers = nil) + list_by_endpoint_next_async(next_page_link, custom_headers).value! end # @@ -477,12 +467,11 @@ def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_next_async(next_page_link, custom_headers:nil) + def list_by_endpoint_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 @@ -541,12 +530,12 @@ def list_by_endpoint_next_async(next_page_link, custom_headers:nil) # @return [OriginListResult] which provide lazy access to pages of the # response. # - def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers) + list_by_endpoint_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb index d313c5deb3..b1cd0ecd9d 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb @@ -31,8 +31,8 @@ def initialize(client) # # @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 @@ -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 # @@ -56,13 +56,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.subscription_id is nil' if @client.subscription_id.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 @@ -117,8 +116,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 @@ -132,8 +131,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 # @@ -146,17 +145,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.subscription_id is nil' if @client.subscription_id.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 @@ -214,8 +209,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [Profile] operation results. # - def get(resource_group_name, profile_name, custom_headers:nil) - response = get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def get(resource_group_name, profile_name, custom_headers = nil) + response = get_async(resource_group_name, profile_name, custom_headers).value! response.body unless response.nil? end @@ -232,8 +227,8 @@ def get(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, custom_headers:nil) - get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, custom_headers = nil) + get_async(resource_group_name, profile_name, custom_headers).value! end # @@ -249,18 +244,14 @@ def get_with_http_info(resource_group_name, profile_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, custom_headers:nil) + def get_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -319,8 +310,8 @@ def get_async(resource_group_name, profile_name, custom_headers:nil) # # @return [Profile] operation results. # - def create(resource_group_name, profile_name, profile, custom_headers:nil) - response = create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! + def create(resource_group_name, profile_name, profile, custom_headers = nil) + response = create_async(resource_group_name, profile_name, profile, custom_headers).value! response.body unless response.nil? end @@ -336,9 +327,9 @@ def create(resource_group_name, profile_name, profile, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, profile, custom_headers:nil) + def create_async(resource_group_name, profile_name, profile, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, profile_name, profile, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -369,8 +360,8 @@ def create_async(resource_group_name, profile_name, profile, custom_headers:nil) # # @return [Profile] operation results. # - def update(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) - response = update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! + def update(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + response = update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! response.body unless response.nil? end @@ -387,9 +378,9 @@ def update(resource_group_name, profile_name, profile_update_parameters, custom_ # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) + def update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers) + promise = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -417,8 +408,8 @@ def update_async(resource_group_name, profile_name, profile_update_parameters, c # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, profile_name, custom_headers:nil) - response = delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def delete(resource_group_name, profile_name, custom_headers = nil) + response = delete_async(resource_group_name, profile_name, custom_headers).value! nil end @@ -433,9 +424,9 @@ def delete(resource_group_name, profile_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, custom_headers:nil) + def delete_async(resource_group_name, profile_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -465,8 +456,8 @@ def delete_async(resource_group_name, profile_name, custom_headers:nil) # # @return [SsoUri] operation results. # - def generate_sso_uri(resource_group_name, profile_name, custom_headers:nil) - response = generate_sso_uri_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def generate_sso_uri(resource_group_name, profile_name, custom_headers = nil) + response = generate_sso_uri_async(resource_group_name, profile_name, custom_headers).value! response.body unless response.nil? end @@ -486,8 +477,8 @@ def generate_sso_uri(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_headers:nil) - generate_sso_uri_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_headers = nil) + generate_sso_uri_async(resource_group_name, profile_name, custom_headers).value! end # @@ -506,18 +497,14 @@ def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_he # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_sso_uri_async(resource_group_name, profile_name, custom_headers:nil) + def generate_sso_uri_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -575,8 +562,8 @@ def generate_sso_uri_async(resource_group_name, profile_name, custom_headers:nil # # @return [SupportedOptimizationTypesListResult] operation results. # - def list_supported_optimization_types(resource_group_name, profile_name, custom_headers:nil) - response = list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_supported_optimization_types(resource_group_name, profile_name, custom_headers = nil) + response = list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value! response.body unless response.nil? end @@ -593,8 +580,8 @@ def list_supported_optimization_types(resource_group_name, profile_name, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers:nil) - list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers = nil) + list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value! end # @@ -610,18 +597,14 @@ def list_supported_optimization_types_with_http_info(resource_group_name, profil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:nil) + def list_supported_optimization_types_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -678,8 +661,8 @@ def list_supported_optimization_types_async(resource_group_name, profile_name, c # # @return [Array] operation results. # - def list_resource_usage(resource_group_name, profile_name, custom_headers:nil) - first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers) + def list_resource_usage(resource_group_name, profile_name, custom_headers = nil) + first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers) first_page.get_all_items end @@ -695,8 +678,8 @@ def list_resource_usage(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_with_http_info(resource_group_name, profile_name, custom_headers:nil) - list_resource_usage_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_resource_usage_with_http_info(resource_group_name, profile_name, custom_headers = nil) + list_resource_usage_async(resource_group_name, profile_name, custom_headers).value! end # @@ -711,18 +694,14 @@ def list_resource_usage_with_http_info(resource_group_name, profile_name, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_async(resource_group_name, profile_name, custom_headers:nil) + def list_resource_usage_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -781,8 +760,8 @@ def list_resource_usage_async(resource_group_name, profile_name, custom_headers: # # @return [Profile] operation results. # - def begin_create(resource_group_name, profile_name, profile, custom_headers:nil) - response = begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! + def begin_create(resource_group_name, profile_name, profile, custom_headers = nil) + response = begin_create_async(resource_group_name, profile_name, profile, custom_headers).value! response.body unless response.nil? end @@ -800,8 +779,8 @@ def begin_create(resource_group_name, profile_name, profile, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, profile, custom_headers:nil) - begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, profile, custom_headers = nil) + begin_create_async(resource_group_name, profile_name, profile, custom_headers).value! end # @@ -818,11 +797,8 @@ def begin_create_with_http_info(resource_group_name, profile_name, profile, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, profile, custom_headers:nil) + def begin_create_async(resource_group_name, profile_name, profile, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'profile is nil' if profile.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -830,12 +806,13 @@ def begin_create_async(resource_group_name, profile_name, profile, custom_header 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::CDN::Mgmt::V2017_04_02::Models::Profile.mapper() request_content = @client.serialize(request_mapper, profile) @@ -917,8 +894,8 @@ def begin_create_async(resource_group_name, profile_name, profile, custom_header # # @return [Profile] operation results. # - def begin_update(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) - response = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! + def begin_update(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + response = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! response.body unless response.nil? end @@ -937,8 +914,8 @@ def begin_update(resource_group_name, profile_name, profile_update_parameters, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) - begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! end # @@ -956,11 +933,8 @@ def begin_update_with_http_info(resource_group_name, profile_name, profile_updat # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) + def begin_update_async(resource_group_name, profile_name, profile_update_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'profile_update_parameters is nil' if profile_update_parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -968,12 +942,13 @@ def begin_update_async(resource_group_name, profile_name, profile_update_paramet 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::CDN::Mgmt::V2017_04_02::Models::ProfileUpdateParameters.mapper() request_content = @client.serialize(request_mapper, profile_update_parameters) @@ -1043,8 +1018,8 @@ def begin_update_async(resource_group_name, profile_name, profile_update_paramet # will be added to the HTTP request. # # - def begin_delete(resource_group_name, profile_name, custom_headers:nil) - response = begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, profile_name, custom_headers = nil) + response = begin_delete_async(resource_group_name, profile_name, custom_headers).value! nil end @@ -1062,8 +1037,8 @@ def begin_delete(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, custom_headers:nil) - begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, custom_headers = nil) + begin_delete_async(resource_group_name, profile_name, custom_headers).value! end # @@ -1080,18 +1055,14 @@ def begin_delete_with_http_info(resource_group_name, profile_name, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, custom_headers:nil) + def begin_delete_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -1136,8 +1107,8 @@ def begin_delete_async(resource_group_name, profile_name, custom_headers:nil) # # @return [ProfileListResult] 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 @@ -1151,8 +1122,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 # @@ -1165,12 +1136,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 @@ -1224,8 +1194,8 @@ def list_next_async(next_page_link, custom_headers:nil) # # @return [ProfileListResult] 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 @@ -1239,8 +1209,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 # @@ -1253,12 +1223,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 @@ -1312,8 +1281,8 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_next(next_page_link, custom_headers:nil) - response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next(next_page_link, custom_headers = nil) + response = list_resource_usage_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1327,8 +1296,8 @@ def list_resource_usage_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil) + list_resource_usage_next_async(next_page_link, custom_headers).value! end # @@ -1341,12 +1310,11 @@ def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_next_async(next_page_link, custom_headers:nil) + def list_resource_usage_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 @@ -1399,12 +1367,12 @@ def list_resource_usage_next_async(next_page_link, custom_headers:nil) # @return [ProfileListResult] 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 @@ -1421,12 +1389,12 @@ def list_as_lazy(custom_headers:nil) # @return [ProfileListResult] 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 @@ -1445,12 +1413,12 @@ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) # @return [ResourceUsageListResult] which provide lazy access to pages of the # response. # - def list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers:nil) - response = list_resource_usage_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers = nil) + response = list_resource_usage_async(resource_group_name, profile_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers) + list_resource_usage_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb index af3a6e0e90..f61c0be108 100644 --- a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb @@ -32,8 +32,8 @@ def initialize(client) # # @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 @@ -46,8 +46,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 # @@ -59,13 +59,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.subscription_id is nil' if @client.subscription_id.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 @@ -121,8 +120,8 @@ def list_async(custom_headers:nil) # # @return [ResourceUsageListResult] 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 @@ -137,8 +136,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 # @@ -152,12 +151,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 @@ -211,12 +209,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResourceUsageListResult] 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 diff --git a/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/version.rb b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/version.rb new file mode 100644 index 0000000000..16643a5313 --- /dev/null +++ b/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/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::CDN::Mgmt::V2017_04_02 + VERSION = '0.16.0' +end diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb index 27cc510c50..ea69aecf91 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb @@ -129,9 +129,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? @@ -152,8 +149,8 @@ def make_request_async(method, path, options = {}) # # @return [CheckNameAvailabilityOutput] operation results. # - def check_name_availability(check_name_availability_input, custom_headers:nil) - response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! + def check_name_availability(check_name_availability_input, custom_headers = nil) + response = check_name_availability_async(check_name_availability_input, custom_headers).value! response.body unless response.nil? end @@ -168,8 +165,8 @@ def check_name_availability(check_name_availability_input, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def check_name_availability_with_http_info(check_name_availability_input, custom_headers:nil) - check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value! + def check_name_availability_with_http_info(check_name_availability_input, custom_headers = nil) + check_name_availability_async(check_name_availability_input, custom_headers).value! end # @@ -183,18 +180,19 @@ def check_name_availability_with_http_info(check_name_availability_input, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def check_name_availability_async(check_name_availability_input, custom_headers:nil) + def check_name_availability_async(check_name_availability_input, custom_headers = nil) fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil? fail ArgumentError, 'api_version is nil' if 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 request_headers['accept-language'] = accept_language unless accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput.mapper() request_content = self.serialize(request_mapper, check_name_availability_input) @@ -240,6 +238,108 @@ def check_name_availability_async(check_name_availability_input, custom_headers: promise.execute end + # + # Check the availability of a resource name. This is needed for resources where + # name is globally unique, such as a CDN endpoint. + # + # @param check_name_availability_input [CheckNameAvailabilityInput] Input to + # check. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CheckNameAvailabilityOutput] operation results. + # + def check_name_availability_with_subscription(check_name_availability_input, custom_headers = nil) + response = check_name_availability_with_subscription_async(check_name_availability_input, custom_headers).value! + response.body unless response.nil? + end + + # + # Check the availability of a resource name. This is needed for resources where + # name is globally unique, such as a CDN endpoint. + # + # @param check_name_availability_input [CheckNameAvailabilityInput] Input to + # check. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def check_name_availability_with_subscription_with_http_info(check_name_availability_input, custom_headers = nil) + check_name_availability_with_subscription_async(check_name_availability_input, custom_headers).value! + end + + # + # Check the availability of a resource name. This is needed for resources where + # name is globally unique, such as a CDN endpoint. + # + # @param check_name_availability_input [CheckNameAvailabilityInput] Input to + # check. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def check_name_availability_with_subscription_async(check_name_availability_input, custom_headers = nil) + fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil? + fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? + fail ArgumentError, 'api_version is nil' if api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = accept_language unless accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput.mapper() + request_content = self.serialize(request_mapper, check_name_availability_input) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability' + + request_url = @base_url || self.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => subscription_id}, + query_params: {'api-version' => api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = self.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityOutput.mapper() + result.body = self.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Check if the probe path is a valid path and the file can be accessed. Probe # path is the path to a file hosted on the origin server to help accelerate the @@ -252,8 +352,8 @@ def check_name_availability_async(check_name_availability_input, custom_headers: # # @return [ValidateProbeOutput] operation results. # - def validate_probe(validate_probe_input, custom_headers:nil) - response = validate_probe_async(validate_probe_input, custom_headers:custom_headers).value! + def validate_probe(validate_probe_input, custom_headers = nil) + response = validate_probe_async(validate_probe_input, custom_headers).value! response.body unless response.nil? end @@ -269,8 +369,8 @@ def validate_probe(validate_probe_input, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_probe_with_http_info(validate_probe_input, custom_headers:nil) - validate_probe_async(validate_probe_input, custom_headers:custom_headers).value! + def validate_probe_with_http_info(validate_probe_input, custom_headers = nil) + validate_probe_async(validate_probe_input, custom_headers).value! end # @@ -285,19 +385,20 @@ def validate_probe_with_http_info(validate_probe_input, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_probe_async(validate_probe_input, custom_headers:nil) + def validate_probe_async(validate_probe_input, custom_headers = nil) fail ArgumentError, 'validate_probe_input is nil' if validate_probe_input.nil? fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, 'api_version is nil' if 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 request_headers['accept-language'] = accept_language unless accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::ValidateProbeInput.mapper() request_content = self.serialize(request_mapper, validate_probe_input) @@ -351,7 +452,9 @@ def validate_probe_async(validate_probe_input, custom_headers:nil) # def add_telemetry sdk_information = 'azure_mgmt_cdn' - sdk_information = "#{sdk_information}/0.16.0" + if defined? Azure::CDN::Mgmt::V2017_10_12::VERSION + sdk_information = "#{sdk_information}/#{Azure::CDN::Mgmt::V2017_10_12::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb index dfa20564fb..943ebf87c4 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb @@ -37,8 +37,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -74,11 +74,8 @@ def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def list_by_endpoint_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -86,7 +83,6 @@ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +143,8 @@ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, cus # # @return [CustomDomain] operation results. # - def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -168,8 +164,8 @@ def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! end # @@ -188,11 +184,8 @@ def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -201,7 +194,6 @@ def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_na request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -264,8 +256,8 @@ def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_na # # @return [CustomDomain] operation results. # - def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) - response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! + def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! response.body unless response.nil? end @@ -286,9 +278,9 @@ def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) + def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -320,8 +312,8 @@ def create_async(resource_group_name, profile_name, endpoint_name, custom_domain # # @return [CustomDomain] operation results. # - def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -340,9 +332,9 @@ def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -374,8 +366,8 @@ def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain # # @return [CustomDomain] operation results. # - def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -395,8 +387,8 @@ def disable_custom_https(resource_group_name, profile_name, endpoint_name, custo # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! end # @@ -415,11 +407,8 @@ def disable_custom_https_with_http_info(resource_group_name, profile_name, endpo # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -428,7 +417,6 @@ def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -489,8 +477,8 @@ def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, # # @return [CustomDomain] operation results. # - def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -510,8 +498,8 @@ def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! end # @@ -530,11 +518,8 @@ def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -543,7 +528,6 @@ def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -606,8 +590,8 @@ def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, # # @return [CustomDomain] operation results. # - def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) - response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! + def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! response.body unless response.nil? end @@ -629,8 +613,8 @@ def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) - begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers = nil) + begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value! end # @@ -651,11 +635,8 @@ def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) + def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -665,12 +646,13 @@ def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_ 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::CDN::Mgmt::V2017_10_12::Models::CustomDomainParameters.mapper() request_content = @client.serialize(request_mapper, custom_domain_properties) @@ -753,8 +735,8 @@ def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_ # # @return [CustomDomain] operation results. # - def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! response.body unless response.nil? end @@ -774,8 +756,8 @@ def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) - begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers = nil) + begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value! end # @@ -794,11 +776,8 @@ def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil) + def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_name is nil' if custom_domain_name.nil? @@ -807,7 +786,6 @@ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_ request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -862,8 +840,8 @@ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_ # # @return [CustomDomainListResult] operation results. # - def list_by_endpoint_next(next_page_link, custom_headers:nil) - response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_endpoint_next(next_page_link, custom_headers = nil) + response = list_by_endpoint_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -877,8 +855,8 @@ def list_by_endpoint_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) - list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_endpoint_next_with_http_info(next_page_link, custom_headers = nil) + list_by_endpoint_next_async(next_page_link, custom_headers).value! end # @@ -891,12 +869,11 @@ def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_next_async(next_page_link, custom_headers:nil) + def list_by_endpoint_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 @@ -955,12 +932,12 @@ def list_by_endpoint_next_async(next_page_link, custom_headers:nil) # @return [CustomDomainListResult] which provide lazy access to pages of the # response. # - def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers) + list_by_endpoint_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb index b06f65cce4..a8aff8b99e 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb @@ -32,8 +32,8 @@ def initialize(client) # # @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 @@ -46,8 +46,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 # @@ -59,12 +59,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 @@ -119,8 +118,8 @@ def list_async(custom_headers:nil) # # @return [EdgenodeResult] 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 @@ -135,8 +134,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 # @@ -150,12 +149,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 @@ -208,12 +206,12 @@ def list_next_async(next_page_link, custom_headers:nil) # # @return [EdgenodeResult] 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 diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb index b8b02409b9..82ed454822 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb @@ -35,8 +35,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_profile(resource_group_name, profile_name, custom_headers:nil) - first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers) + def list_by_profile(resource_group_name, profile_name, custom_headers = nil) + first_page = list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers) first_page.get_all_items end @@ -52,8 +52,8 @@ def list_by_profile(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers:nil) - list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_by_profile_with_http_info(resource_group_name, profile_name, custom_headers = nil) + list_by_profile_async(resource_group_name, profile_name, custom_headers).value! end # @@ -68,18 +68,14 @@ def list_by_profile_with_http_info(resource_group_name, profile_name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_async(resource_group_name, profile_name, custom_headers:nil) + def list_by_profile_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -139,8 +135,8 @@ def list_by_profile_async(resource_group_name, profile_name, custom_headers:nil) # # @return [Endpoint] operation results. # - def get(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = get_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = get_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -159,8 +155,8 @@ def get(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - get_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + get_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -178,11 +174,8 @@ def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def get_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -190,7 +183,6 @@ def get_async(resource_group_name, profile_name, endpoint_name, 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 @@ -251,8 +243,8 @@ def get_async(resource_group_name, profile_name, endpoint_name, custom_headers:n # # @return [Endpoint] operation results. # - def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) - response = create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! + def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + response = create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! response.body unless response.nil? end @@ -270,9 +262,9 @@ def create(resource_group_name, profile_name, endpoint_name, endpoint, custom_he # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) + def create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -308,8 +300,8 @@ def create_async(resource_group_name, profile_name, endpoint_name, endpoint, cus # # @return [Endpoint] operation results. # - def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) - response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! + def update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + response = update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! response.body unless response.nil? end @@ -328,9 +320,9 @@ def update(resource_group_name, profile_name, endpoint_name, endpoint_update_pro # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) + def update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers) + promise = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -359,8 +351,8 @@ def update_async(resource_group_name, profile_name, endpoint_name, endpoint_upda # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def delete(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! nil end @@ -377,9 +369,9 @@ def delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def delete_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -407,8 +399,8 @@ def delete_async(resource_group_name, profile_name, endpoint_name, custom_header # # @return [Endpoint] operation results. # - def start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def start(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -425,9 +417,9 @@ def start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def start_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def start_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) # Send request - promise = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + promise = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -457,8 +449,8 @@ def start_async(resource_group_name, profile_name, endpoint_name, custom_headers # # @return [Endpoint] operation results. # - def stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def stop(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -475,9 +467,9 @@ def stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers = nil) # Send request - promise = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + promise = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -509,8 +501,8 @@ def stop_async(resource_group_name, profile_name, endpoint_name, custom_headers: # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - response = purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + response = purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! nil end @@ -531,9 +523,9 @@ def purge_content(resource_group_name, profile_name, endpoint_name, content_file # @return [Concurrent::Promise] promise which provides async access to http # response. # - def purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + def purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) # Send request - promise = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers) + promise = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -562,8 +554,8 @@ def purge_content_async(resource_group_name, profile_name, endpoint_name, conten # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - response = load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + response = load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! nil end @@ -583,9 +575,9 @@ def load_content(resource_group_name, profile_name, endpoint_name, content_file_ # @return [Concurrent::Promise] promise which provides async access to http # response. # - def load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + def load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) # Send request - promise = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers) + promise = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -616,8 +608,8 @@ def load_content_async(resource_group_name, profile_name, endpoint_name, content # # @return [ValidateCustomDomainOutput] operation results. # - def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) - response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value! + def validate_custom_domain(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers = nil) + response = validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers).value! response.body unless response.nil? end @@ -638,8 +630,8 @@ def validate_custom_domain(resource_group_name, profile_name, endpoint_name, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def validate_custom_domain_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) - validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:custom_headers).value! + def validate_custom_domain_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers = nil) + validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers).value! end # @@ -659,11 +651,8 @@ def validate_custom_domain_with_http_info(resource_group_name, profile_name, end # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, custom_headers:nil) + def validate_custom_domain_async(resource_group_name, profile_name, endpoint_name, custom_domain_properties, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'custom_domain_properties is nil' if custom_domain_properties.nil? @@ -672,12 +661,13 @@ def validate_custom_domain_async(resource_group_name, profile_name, endpoint_nam 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::CDN::Mgmt::V2017_10_12::Models::ValidateCustomDomainInput.mapper() request_content = @client.serialize(request_mapper, custom_domain_properties) @@ -739,8 +729,8 @@ def validate_custom_domain_async(resource_group_name, profile_name, endpoint_nam # # @return [Array] operation results. # - def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) first_page.get_all_items end @@ -759,8 +749,8 @@ def list_resource_usage(resource_group_name, profile_name, endpoint_name, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -778,11 +768,8 @@ def list_resource_usage_with_http_info(resource_group_name, profile_name, endpoi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def list_resource_usage_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -790,7 +777,6 @@ def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -851,8 +837,8 @@ def list_resource_usage_async(resource_group_name, profile_name, endpoint_name, # # @return [Endpoint] operation results. # - def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) - response = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! + def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + response = begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! response.body unless response.nil? end @@ -872,8 +858,8 @@ def begin_create(resource_group_name, profile_name, endpoint_name, endpoint, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) - begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers = nil) + begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers).value! end # @@ -892,11 +878,8 @@ def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, custom_headers:nil) + def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoint, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'endpoint is nil' if endpoint.nil? @@ -905,12 +888,13 @@ def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoin 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::CDN::Mgmt::V2017_10_12::Models::Endpoint.mapper() request_content = @client.serialize(request_mapper, endpoint) @@ -997,8 +981,8 @@ def begin_create_async(resource_group_name, profile_name, endpoint_name, endpoin # # @return [Endpoint] operation results. # - def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) - response = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! + def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + response = begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! response.body unless response.nil? end @@ -1022,8 +1006,8 @@ def begin_update(resource_group_name, profile_name, endpoint_name, endpoint_upda # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) - begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers = nil) + begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers).value! end # @@ -1046,11 +1030,8 @@ def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, custom_headers:nil) + def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoint_update_properties, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'endpoint_update_properties is nil' if endpoint_update_properties.nil? @@ -1059,12 +1040,13 @@ def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoin 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::CDN::Mgmt::V2017_10_12::Models::EndpointUpdateParameters.mapper() request_content = @client.serialize(request_mapper, endpoint_update_properties) @@ -1135,8 +1117,8 @@ def begin_update_async(resource_group_name, profile_name, endpoint_name, endpoin # will be added to the HTTP request. # # - def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! nil end @@ -1155,8 +1137,8 @@ def begin_delete(resource_group_name, profile_name, endpoint_name, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -1174,11 +1156,8 @@ def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def begin_delete_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1186,7 +1165,6 @@ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_ request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1235,8 +1213,8 @@ def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_ # # @return [Endpoint] operation results. # - def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -1254,8 +1232,8 @@ def begin_start(resource_group_name, profile_name, endpoint_name, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -1272,11 +1250,8 @@ def begin_start_with_http_info(resource_group_name, profile_name, endpoint_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def begin_start_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1284,7 +1259,6 @@ def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_h request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1353,8 +1327,8 @@ def begin_start_async(resource_group_name, profile_name, endpoint_name, custom_h # # @return [Endpoint] operation results. # - def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! response.body unless response.nil? end @@ -1372,8 +1346,8 @@ def begin_stop(resource_group_name, profile_name, endpoint_name, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -1390,11 +1364,8 @@ def begin_stop_with_http_info(resource_group_name, profile_name, endpoint_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def begin_stop_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1402,7 +1373,6 @@ def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -1474,8 +1444,8 @@ def begin_stop_async(resource_group_name, profile_name, endpoint_name, custom_he # will be added to the HTTP request. # # - def begin_purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - response = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def begin_purge_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + response = begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! nil end @@ -1497,8 +1467,8 @@ def begin_purge_content(resource_group_name, profile_name, endpoint_name, conten # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! end # @@ -1519,11 +1489,8 @@ def begin_purge_content_with_http_info(resource_group_name, profile_name, endpoi # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil? @@ -1532,12 +1499,13 @@ def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, 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::CDN::Mgmt::V2017_10_12::Models::PurgeParameters.mapper() request_content = @client.serialize(request_mapper, content_file_paths) @@ -1590,8 +1558,8 @@ def begin_purge_content_async(resource_group_name, profile_name, endpoint_name, # will be added to the HTTP request. # # - def begin_load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - response = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def begin_load_content(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + response = begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! nil end @@ -1612,8 +1580,8 @@ def begin_load_content(resource_group_name, profile_name, endpoint_name, content # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_load_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) - begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:custom_headers).value! + def begin_load_content_with_http_info(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers = nil) + begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers).value! end # @@ -1633,11 +1601,8 @@ def begin_load_content_with_http_info(resource_group_name, profile_name, endpoin # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, custom_headers:nil) + def begin_load_content_async(resource_group_name, profile_name, endpoint_name, content_file_paths, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'content_file_paths is nil' if content_file_paths.nil? @@ -1646,12 +1611,13 @@ def begin_load_content_async(resource_group_name, profile_name, endpoint_name, c 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::CDN::Mgmt::V2017_10_12::Models::LoadParameters.mapper() request_content = @client.serialize(request_mapper, content_file_paths) @@ -1698,8 +1664,8 @@ def begin_load_content_async(resource_group_name, profile_name, endpoint_name, c # # @return [EndpointListResult] operation results. # - def list_by_profile_next(next_page_link, custom_headers:nil) - response = list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_profile_next(next_page_link, custom_headers = nil) + response = list_by_profile_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1713,8 +1679,8 @@ def list_by_profile_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_profile_next_with_http_info(next_page_link, custom_headers:nil) - list_by_profile_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_profile_next_with_http_info(next_page_link, custom_headers = nil) + list_by_profile_next_async(next_page_link, custom_headers).value! end # @@ -1727,12 +1693,11 @@ def list_by_profile_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_profile_next_async(next_page_link, custom_headers:nil) + def list_by_profile_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 @@ -1787,8 +1752,8 @@ def list_by_profile_next_async(next_page_link, custom_headers:nil) # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_next(next_page_link, custom_headers:nil) - response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next(next_page_link, custom_headers = nil) + response = list_resource_usage_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1803,8 +1768,8 @@ def list_resource_usage_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil) + list_resource_usage_next_async(next_page_link, custom_headers).value! end # @@ -1818,12 +1783,11 @@ def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_next_async(next_page_link, custom_headers:nil) + def list_resource_usage_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 @@ -1880,12 +1844,12 @@ def list_resource_usage_next_async(next_page_link, custom_headers:nil) # @return [EndpointListResult] which provide lazy access to pages of the # response. # - def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:nil) - response = list_by_profile_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers = nil) + response = list_by_profile_async(resource_group_name, profile_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_profile_next_async(next_page_link, custom_headers:custom_headers) + list_by_profile_next_async(next_page_link, custom_headers) end page end @@ -1907,12 +1871,12 @@ def list_by_profile_as_lazy(resource_group_name, profile_name, custom_headers:ni # @return [ResourceUsageListResult] which provide lazy access to pages of the # response. # - def list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_resource_usage_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = list_resource_usage_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers) + list_resource_usage_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb index 9f8b535dba..11720e0ed6 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb @@ -37,7 +37,6 @@ class CacheExpirationActionParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CacheExpirationActionParameters', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'CacheExpirationActionParameters', model_properties: { odatatype: { - client_side_validation: true, required: true, is_constant: true, serialized_name: '@odata\\.type', @@ -55,7 +53,6 @@ def self.mapper() } }, cache_behavior: { - client_side_validation: true, required: true, serialized_name: 'cacheBehavior', type: { @@ -63,7 +60,6 @@ def self.mapper() } }, cache_type: { - client_side_validation: true, required: true, is_constant: true, serialized_name: 'cacheType', @@ -73,7 +69,6 @@ def self.mapper() } }, cache_duration: { - client_side_validation: true, required: false, serialized_name: 'cacheDuration', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb index a232b5dceb..e730450b0e 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb @@ -26,7 +26,6 @@ class CheckNameAvailabilityInput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityInput', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityInput', 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_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb index 29bd59c0fc..3154a519be 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb @@ -29,7 +29,6 @@ class CheckNameAvailabilityOutput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CheckNameAvailabilityOutput', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'CheckNameAvailabilityOutput', model_properties: { name_available: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'nameAvailable', @@ -46,7 +44,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'reason', @@ -55,7 +52,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb index e7e4f76217..78267f67d4 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb @@ -25,7 +25,6 @@ class CidrIpAddress # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'cidrIpAddress', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'CidrIpAddress', model_properties: { base_ip_address: { - client_side_validation: true, required: false, serialized_name: 'baseIpAddress', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, prefix_length: { - client_side_validation: true, required: false, serialized_name: 'prefixLength', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb index 39d26b9eab..bee5e8188b 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb @@ -53,7 +53,6 @@ class CustomDomain < ProxyResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomain', type: { @@ -61,7 +60,6 @@ def self.mapper() class_name: 'CustomDomain', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -70,7 +68,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -79,7 +76,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -88,7 +84,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -96,7 +91,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -105,7 +99,6 @@ def self.mapper() } }, custom_https_provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.customHttpsProvisioningState', @@ -114,7 +107,6 @@ def self.mapper() } }, custom_https_provisioning_substate: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.customHttpsProvisioningSubstate', @@ -123,7 +115,6 @@ def self.mapper() } }, validation_data: { - client_side_validation: true, required: false, serialized_name: 'properties.validationData', type: { @@ -131,7 +122,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb index 47315cbcee..b3d471ab5f 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomainListResult', type: { @@ -68,14 +67,12 @@ def self.mapper() class_name: 'CustomDomainListResult', 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: 'CustomDomainElementType', type: { @@ -86,7 +83,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb index bc22aeb864..1a641e1da5 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb @@ -24,7 +24,6 @@ class CustomDomainParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CustomDomainParameters', type: { @@ -32,7 +31,6 @@ def self.mapper() class_name: 'CustomDomainParameters', model_properties: { host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb index e5b76e5ccb..eda86c577a 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb @@ -35,7 +35,6 @@ class DeepCreatedOrigin # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DeepCreatedOrigin', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'DeepCreatedOrigin', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -51,7 +49,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -59,7 +56,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', constraints: { @@ -71,7 +67,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', constraints: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb index 9426f0c661..813f905f6b 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb @@ -34,7 +34,6 @@ class DeliveryRule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DeliveryRule', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'DeliveryRule', model_properties: { order: { - client_side_validation: true, required: true, serialized_name: 'order', type: { @@ -50,13 +48,11 @@ def self.mapper() } }, actions: { - client_side_validation: true, required: true, serialized_name: 'actions', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DeliveryRuleActionElementType', type: { @@ -69,13 +65,11 @@ def self.mapper() } }, conditions: { - client_side_validation: true, required: false, serialized_name: 'conditions', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DeliveryRuleConditionElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb index 91a22187da..65bd073b32 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb @@ -28,7 +28,6 @@ def initialize # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DeliveryRuleAction', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb index a57bd77c8b..1c6a918c81 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb @@ -30,7 +30,6 @@ def initialize # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CacheExpiration', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'DeliveryRuleCacheExpirationAction', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: true, serialized_name: 'parameters', default_value: {}, diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb index 2eac6b29d1..1fa4acc3ec 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb @@ -29,7 +29,6 @@ def initialize # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DeliveryRuleCondition', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb index 407806361c..2b7f9c69ba 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb @@ -30,7 +30,6 @@ def initialize # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UrlFileExtension', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'DeliveryRuleUrlFileExtensionCondition', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: true, serialized_name: 'parameters', default_value: {}, diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb index 3dda2c1521..37ee182c20 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb @@ -30,7 +30,6 @@ def initialize # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UrlPath', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'DeliveryRuleUrlPathCondition', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -46,7 +44,6 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: true, serialized_name: 'parameters', default_value: {}, diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb index 37fa74d404..00101bef68 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb @@ -23,7 +23,6 @@ class EdgeNode < ProxyResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EdgeNode', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'EdgeNode', 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,13 +54,11 @@ def self.mapper() } }, ip_address_groups: { - client_side_validation: true, required: true, serialized_name: 'properties.ipAddressGroups', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'IpAddressGroupElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb index 289069fc3a..3b5782ab07 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EdgenodeResult', type: { @@ -67,14 +66,12 @@ def self.mapper() class_name: 'EdgenodeResult', 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: 'EdgeNodeElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb index 0debfdee16..d51b4078f5 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb @@ -100,7 +100,6 @@ class Endpoint < TrackedResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Endpoint', type: { @@ -108,7 +107,6 @@ def self.mapper() class_name: 'Endpoint', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -117,7 +115,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -126,7 +123,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -135,7 +131,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -143,13 +138,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: { @@ -159,7 +152,6 @@ def self.mapper() } }, origin_host_header: { - client_side_validation: true, required: false, serialized_name: 'properties.originHostHeader', type: { @@ -167,7 +159,6 @@ def self.mapper() } }, origin_path: { - client_side_validation: true, required: false, serialized_name: 'properties.originPath', type: { @@ -175,13 +166,11 @@ def self.mapper() } }, content_types_to_compress: { - client_side_validation: true, required: false, serialized_name: 'properties.contentTypesToCompress', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -191,7 +180,6 @@ def self.mapper() } }, is_compression_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isCompressionEnabled', type: { @@ -199,7 +187,6 @@ def self.mapper() } }, is_http_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpAllowed', type: { @@ -207,7 +194,6 @@ def self.mapper() } }, is_https_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpsAllowed', type: { @@ -215,7 +201,6 @@ def self.mapper() } }, query_string_caching_behavior: { - client_side_validation: true, required: false, serialized_name: 'properties.queryStringCachingBehavior', type: { @@ -224,7 +209,6 @@ def self.mapper() } }, optimization_type: { - client_side_validation: true, required: false, serialized_name: 'properties.optimizationType', type: { @@ -232,7 +216,6 @@ def self.mapper() } }, probe_path: { - client_side_validation: true, required: false, serialized_name: 'properties.probePath', type: { @@ -240,13 +223,11 @@ def self.mapper() } }, geo_filters: { - client_side_validation: true, required: false, serialized_name: 'properties.geoFilters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GeoFilterElementType', type: { @@ -257,7 +238,6 @@ def self.mapper() } }, delivery_policy: { - client_side_validation: true, required: false, serialized_name: 'properties.deliveryPolicy', type: { @@ -266,7 +246,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.hostName', @@ -275,13 +254,11 @@ def self.mapper() } }, origins: { - client_side_validation: true, required: true, serialized_name: 'properties.origins', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DeepCreatedOriginElementType', type: { @@ -292,7 +269,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -301,7 +277,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb index 4a53993267..0844fd87d7 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointListResult', type: { @@ -67,14 +66,12 @@ def self.mapper() class_name: 'EndpointListResult', 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: 'EndpointElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb index 8b02b84a00..bf24bbd1b2 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb @@ -26,7 +26,6 @@ class EndpointPropertiesUpdateParametersDeliveryPolicy # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointPropertiesUpdateParameters_deliveryPolicy', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'EndpointPropertiesUpdateParametersDeliveryPolicy', model_properties: { description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -42,13 +40,11 @@ def self.mapper() } }, rules: { - client_side_validation: true, required: false, serialized_name: 'rules', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DeliveryRuleElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb index 2497e1b553..893a239075 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb @@ -84,7 +84,6 @@ class EndpointUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'EndpointUpdateParameters', type: { @@ -92,13 +91,11 @@ def self.mapper() class_name: 'EndpointUpdateParameters', 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: { @@ -108,7 +105,6 @@ def self.mapper() } }, origin_host_header: { - client_side_validation: true, required: false, serialized_name: 'properties.originHostHeader', type: { @@ -116,7 +112,6 @@ def self.mapper() } }, origin_path: { - client_side_validation: true, required: false, serialized_name: 'properties.originPath', type: { @@ -124,13 +119,11 @@ def self.mapper() } }, content_types_to_compress: { - client_side_validation: true, required: false, serialized_name: 'properties.contentTypesToCompress', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -140,7 +133,6 @@ def self.mapper() } }, is_compression_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isCompressionEnabled', type: { @@ -148,7 +140,6 @@ def self.mapper() } }, is_http_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpAllowed', type: { @@ -156,7 +147,6 @@ def self.mapper() } }, is_https_allowed: { - client_side_validation: true, required: false, serialized_name: 'properties.isHttpsAllowed', type: { @@ -164,7 +154,6 @@ def self.mapper() } }, query_string_caching_behavior: { - client_side_validation: true, required: false, serialized_name: 'properties.queryStringCachingBehavior', type: { @@ -173,7 +162,6 @@ def self.mapper() } }, optimization_type: { - client_side_validation: true, required: false, serialized_name: 'properties.optimizationType', type: { @@ -181,7 +169,6 @@ def self.mapper() } }, probe_path: { - client_side_validation: true, required: false, serialized_name: 'properties.probePath', type: { @@ -189,13 +176,11 @@ def self.mapper() } }, geo_filters: { - client_side_validation: true, required: false, serialized_name: 'properties.geoFilters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'GeoFilterElementType', type: { @@ -206,7 +191,6 @@ def self.mapper() } }, delivery_policy: { - client_side_validation: true, required: false, serialized_name: 'properties.deliveryPolicy', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb index 339be92334..b2174694b1 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb @@ -26,7 +26,6 @@ class ErrorResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ErrorResponse', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'ErrorResponse', model_properties: { code: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'code', @@ -43,7 +41,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb index c372326082..1a9a5ca00e 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb @@ -31,7 +31,6 @@ class GeoFilter # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GeoFilter', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'GeoFilter', model_properties: { relative_path: { - client_side_validation: true, required: true, serialized_name: 'relativePath', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, action: { - client_side_validation: true, required: true, serialized_name: 'action', type: { @@ -56,13 +53,11 @@ def self.mapper() } }, country_codes: { - client_side_validation: true, required: true, serialized_name: 'countryCodes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb index 12923cde62..c14128e1eb 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb @@ -28,7 +28,6 @@ class IpAddressGroup # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'IpAddressGroup', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'IpAddressGroup', model_properties: { delivery_region: { - client_side_validation: true, required: false, serialized_name: 'deliveryRegion', type: { @@ -44,13 +42,11 @@ def self.mapper() } }, ipv4addresses: { - client_side_validation: true, required: false, serialized_name: 'ipv4Addresses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CidrIpAddressElementType', type: { @@ -61,13 +57,11 @@ def self.mapper() } }, ipv6addresses: { - client_side_validation: true, required: false, serialized_name: 'ipv6Addresses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CidrIpAddressElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb index 77224dd2fc..1caa971bd5 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb @@ -23,7 +23,6 @@ class LoadParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'LoadParameters', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'LoadParameters', model_properties: { content_paths: { - client_side_validation: true, required: true, serialized_name: 'contentPaths', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation.rb index 02e6e94c91..6c3dbfb05f 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation.rb @@ -25,7 +25,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -42,7 +40,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: false, serialized_name: 'display', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb index c0bf2636c0..79c2e2bf3d 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb @@ -29,7 +29,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'provider', @@ -46,7 +44,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'resource', @@ -55,7 +52,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'operation', diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb index ce0794022b..ec1839315a 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb @@ -60,7 +60,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationsListResult', type: { @@ -68,14 +67,12 @@ def self.mapper() class_name: 'OperationsListResult', 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: 'OperationElementType', type: { @@ -86,7 +83,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin.rb index 636f396822..e4f4cebce9 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin.rb @@ -41,7 +41,6 @@ class Origin < TrackedResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Origin', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'Origin', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -58,7 +56,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -67,7 +64,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -76,7 +72,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -84,13 +79,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: { @@ -100,7 +93,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: true, serialized_name: 'properties.hostName', type: { @@ -108,7 +100,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', constraints: { @@ -120,7 +111,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', constraints: { @@ -132,7 +122,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -141,7 +130,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb index 8d765cfc57..16509dce64 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OriginListResult', type: { @@ -67,14 +66,12 @@ def self.mapper() class_name: 'OriginListResult', 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: 'OriginElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_update_parameters.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_update_parameters.rb index ba86a4acba..27affaac12 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_update_parameters.rb @@ -31,7 +31,6 @@ class OriginUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OriginUpdateParameters', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'OriginUpdateParameters', model_properties: { host_name: { - client_side_validation: true, required: false, serialized_name: 'properties.hostName', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, http_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpPort', constraints: { @@ -59,7 +56,6 @@ def self.mapper() } }, https_port: { - client_side_validation: true, required: false, serialized_name: 'properties.httpsPort', constraints: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile.rb index 15dd492b53..ac5e3ffc2d 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile.rb @@ -31,7 +31,6 @@ class Profile < TrackedResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Profile', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'Profile', 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', @@ -66,7 +62,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -74,13 +69,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: { @@ -90,7 +83,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -99,7 +91,6 @@ def self.mapper() } }, resource_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceState', @@ -108,7 +99,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb index 937dd54314..6043051898 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb @@ -59,7 +59,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProfileListResult', type: { @@ -67,14 +66,12 @@ def self.mapper() class_name: 'ProfileListResult', 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: 'ProfileElementType', type: { @@ -85,7 +82,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb index d895ee67e6..498bba4303 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb @@ -22,7 +22,6 @@ class ProfileUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ProfileUpdateParameters', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'ProfileUpdateParameters', 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: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/proxy_resource.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/proxy_resource.rb index 50c0095df3..33c6bee81b 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/proxy_resource.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/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_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb index 6fc0c7fb80..a506a85fc0 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb @@ -23,7 +23,6 @@ class PurgeParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'PurgeParameters', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'PurgeParameters', model_properties: { content_paths: { - client_side_validation: true, required: true, serialized_name: 'contentPaths', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource.rb index d61cff3939..6ba2187fce 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource.rb @@ -28,7 +28,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -45,7 +43,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -54,7 +51,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb index f83a2e5d77..847aa0a5e6 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb @@ -31,7 +31,6 @@ class ResourceUsage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceUsage', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'ResourceUsage', model_properties: { resource_type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'resourceType', @@ -48,7 +46,6 @@ def self.mapper() } }, unit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'unit', @@ -57,7 +54,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'currentValue', @@ -66,7 +62,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'limit', diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb index cde07a3da8..87629bcb9a 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceUsageListResult', type: { @@ -66,14 +65,12 @@ def self.mapper() class_name: 'ResourceUsageListResult', 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: 'ResourceUsageElementType', 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_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku.rb index f4d7694021..da76593f78 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku.rb @@ -25,7 +25,6 @@ class Sku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Sku', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Sku', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb index c07304089e..0cbe63f60c 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb @@ -23,7 +23,6 @@ class SsoUri # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SsoUri', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'SsoUri', model_properties: { sso_uri_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'ssoUriValue', diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb index f2c93f4fd8..dadad27e3a 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb @@ -23,7 +23,6 @@ class SupportedOptimizationTypesListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SupportedOptimizationTypesListResult', type: { @@ -31,14 +30,12 @@ def self.mapper() class_name: 'SupportedOptimizationTypesListResult', model_properties: { supported_optimization_types: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'supportedOptimizationTypes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OptimizationTypeElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/tracked_resource.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/tracked_resource.rb index 03e074d2f9..ac7c79b892 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/tracked_resource.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/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,7 +56,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -68,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: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb index 525752756a..001b701861 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb @@ -28,7 +28,6 @@ class UrlFileExtensionConditionParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UrlFileExtensionConditionParameters', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'UrlFileExtensionConditionParameters', model_properties: { odatatype: { - client_side_validation: true, required: true, is_constant: true, serialized_name: '@odata\\.type', @@ -46,13 +44,11 @@ def self.mapper() } }, extensions: { - client_side_validation: true, required: true, serialized_name: 'extensions', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb index f266794be6..84b649e468 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb @@ -30,7 +30,6 @@ class UrlPathConditionParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UrlPathConditionParameters', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'UrlPathConditionParameters', model_properties: { odatatype: { - client_side_validation: true, required: true, is_constant: true, serialized_name: '@odata\\.type', @@ -48,7 +46,6 @@ def self.mapper() } }, path: { - client_side_validation: true, required: true, serialized_name: 'path', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, match_type: { - client_side_validation: true, required: true, serialized_name: 'matchType', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb index 6f27520cdf..a586d01dd5 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb @@ -23,7 +23,6 @@ class ValidateCustomDomainInput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateCustomDomainInput', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'ValidateCustomDomainInput', model_properties: { host_name: { - client_side_validation: true, required: true, serialized_name: 'hostName', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb index a69e2c41f7..f5e215b0fa 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb @@ -29,7 +29,6 @@ class ValidateCustomDomainOutput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateCustomDomainOutput', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ValidateCustomDomainOutput', model_properties: { custom_domain_validated: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'customDomainValidated', @@ -46,7 +44,6 @@ def self.mapper() } }, reason: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'reason', @@ -55,7 +52,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb index c97e5809a9..be441d6cc8 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb @@ -22,7 +22,6 @@ class ValidateProbeInput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateProbeInput', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ValidateProbeInput', model_properties: { probe_url: { - client_side_validation: true, required: true, serialized_name: 'probeURL', type: { diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb index 48cc8f61bc..53e00c8b11 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb @@ -30,7 +30,6 @@ class ValidateProbeOutput # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ValidateProbeOutput', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'ValidateProbeOutput', model_properties: { is_valid: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'isValid', @@ -47,7 +45,6 @@ def self.mapper() } }, error_code: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'errorCode', @@ -56,7 +53,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'message', diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb index 75da6566a0..4e387b3d33 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb @@ -31,8 +31,8 @@ def initialize(client) # # @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 @@ -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 # @@ -56,12 +56,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 @@ -115,8 +114,8 @@ def list_async(custom_headers:nil) # # @return [OperationsListResult] 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 @@ -130,8 +129,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 # @@ -144,12 +143,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 @@ -202,12 +200,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [OperationsListResult] 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 diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb index 5bfb42366b..ead2805b0c 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb @@ -37,8 +37,8 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) + def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers) first_page.get_all_items end @@ -56,8 +56,8 @@ def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! end # @@ -74,11 +74,8 @@ def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil) + def list_by_endpoint_async(resource_group_name, profile_name, endpoint_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -86,7 +83,6 @@ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -147,8 +143,8 @@ def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, cus # # @return [Origin] operation results. # - def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) - response = get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:custom_headers).value! + def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil) + response = get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers).value! response.body unless response.nil? end @@ -168,8 +164,8 @@ def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) - get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil) + get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers).value! end # @@ -188,11 +184,8 @@ def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil) + def get_async(resource_group_name, profile_name, endpoint_name, origin_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'origin_name is nil' if origin_name.nil? @@ -201,7 +194,6 @@ def get_async(resource_group_name, profile_name, endpoint_name, origin_name, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -263,8 +255,8 @@ def get_async(resource_group_name, profile_name, endpoint_name, origin_name, cus # # @return [Origin] operation results. # - def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) - response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! + def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! response.body unless response.nil? end @@ -284,9 +276,9 @@ def update(resource_group_name, profile_name, endpoint_name, origin_name, origin # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) + def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers) + promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -319,8 +311,8 @@ def update_async(resource_group_name, profile_name, endpoint_name, origin_name, # # @return [Origin] operation results. # - def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) - response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! + def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! response.body unless response.nil? end @@ -341,8 +333,8 @@ def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) - begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil) + begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value! end # @@ -362,11 +354,8 @@ def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil) + def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil? fail ArgumentError, 'origin_name is nil' if origin_name.nil? @@ -376,12 +365,13 @@ def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_ 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::CDN::Mgmt::V2017_10_12::Models::OriginUpdateParameters.mapper() request_content = @client.serialize(request_mapper, origin_update_properties) @@ -448,8 +438,8 @@ def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_ # # @return [OriginListResult] operation results. # - def list_by_endpoint_next(next_page_link, custom_headers:nil) - response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_endpoint_next(next_page_link, custom_headers = nil) + response = list_by_endpoint_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -463,8 +453,8 @@ def list_by_endpoint_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) - list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_endpoint_next_with_http_info(next_page_link, custom_headers = nil) + list_by_endpoint_next_async(next_page_link, custom_headers).value! end # @@ -477,12 +467,11 @@ def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_endpoint_next_async(next_page_link, custom_headers:nil) + def list_by_endpoint_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 @@ -541,12 +530,12 @@ def list_by_endpoint_next_async(next_page_link, custom_headers:nil) # @return [OriginListResult] which provide lazy access to pages of the # response. # - def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil) - response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! + def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil) + response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers) + list_by_endpoint_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb index da6f67a652..eb2b62efa5 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb @@ -31,8 +31,8 @@ def initialize(client) # # @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 @@ -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 # @@ -56,13 +56,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.subscription_id is nil' if @client.subscription_id.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 @@ -117,8 +116,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 @@ -132,8 +131,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 # @@ -146,17 +145,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.subscription_id is nil' if @client.subscription_id.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 @@ -214,8 +209,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [Profile] operation results. # - def get(resource_group_name, profile_name, custom_headers:nil) - response = get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def get(resource_group_name, profile_name, custom_headers = nil) + response = get_async(resource_group_name, profile_name, custom_headers).value! response.body unless response.nil? end @@ -232,8 +227,8 @@ def get(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, profile_name, custom_headers:nil) - get_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def get_with_http_info(resource_group_name, profile_name, custom_headers = nil) + get_async(resource_group_name, profile_name, custom_headers).value! end # @@ -249,18 +244,14 @@ def get_with_http_info(resource_group_name, profile_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, profile_name, custom_headers:nil) + def get_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -319,8 +310,8 @@ def get_async(resource_group_name, profile_name, custom_headers:nil) # # @return [Profile] operation results. # - def create(resource_group_name, profile_name, profile, custom_headers:nil) - response = create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! + def create(resource_group_name, profile_name, profile, custom_headers = nil) + response = create_async(resource_group_name, profile_name, profile, custom_headers).value! response.body unless response.nil? end @@ -336,9 +327,9 @@ def create(resource_group_name, profile_name, profile, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_async(resource_group_name, profile_name, profile, custom_headers:nil) + def create_async(resource_group_name, profile_name, profile, custom_headers = nil) # Send request - promise = begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers) + promise = begin_create_async(resource_group_name, profile_name, profile, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -369,8 +360,8 @@ def create_async(resource_group_name, profile_name, profile, custom_headers:nil) # # @return [Profile] operation results. # - def update(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) - response = update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! + def update(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + response = update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! response.body unless response.nil? end @@ -387,9 +378,9 @@ def update(resource_group_name, profile_name, profile_update_parameters, custom_ # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) + def update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) # Send request - promise = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers) + promise = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -417,8 +408,8 @@ def update_async(resource_group_name, profile_name, profile_update_parameters, c # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, profile_name, custom_headers:nil) - response = delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def delete(resource_group_name, profile_name, custom_headers = nil) + response = delete_async(resource_group_name, profile_name, custom_headers).value! nil end @@ -433,9 +424,9 @@ def delete(resource_group_name, profile_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, profile_name, custom_headers:nil) + def delete_async(resource_group_name, profile_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers) + promise = begin_delete_async(resource_group_name, profile_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -465,8 +456,8 @@ def delete_async(resource_group_name, profile_name, custom_headers:nil) # # @return [SsoUri] operation results. # - def generate_sso_uri(resource_group_name, profile_name, custom_headers:nil) - response = generate_sso_uri_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def generate_sso_uri(resource_group_name, profile_name, custom_headers = nil) + response = generate_sso_uri_async(resource_group_name, profile_name, custom_headers).value! response.body unless response.nil? end @@ -486,8 +477,8 @@ def generate_sso_uri(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_headers:nil) - generate_sso_uri_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_headers = nil) + generate_sso_uri_async(resource_group_name, profile_name, custom_headers).value! end # @@ -506,18 +497,14 @@ def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_he # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_sso_uri_async(resource_group_name, profile_name, custom_headers:nil) + def generate_sso_uri_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -575,8 +562,8 @@ def generate_sso_uri_async(resource_group_name, profile_name, custom_headers:nil # # @return [SupportedOptimizationTypesListResult] operation results. # - def list_supported_optimization_types(resource_group_name, profile_name, custom_headers:nil) - response = list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_supported_optimization_types(resource_group_name, profile_name, custom_headers = nil) + response = list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value! response.body unless response.nil? end @@ -593,8 +580,8 @@ def list_supported_optimization_types(resource_group_name, profile_name, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers:nil) - list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers = nil) + list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value! end # @@ -610,18 +597,14 @@ def list_supported_optimization_types_with_http_info(resource_group_name, profil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:nil) + def list_supported_optimization_types_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -678,8 +661,8 @@ def list_supported_optimization_types_async(resource_group_name, profile_name, c # # @return [Array] operation results. # - def list_resource_usage(resource_group_name, profile_name, custom_headers:nil) - first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers) + def list_resource_usage(resource_group_name, profile_name, custom_headers = nil) + first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers) first_page.get_all_items end @@ -695,8 +678,8 @@ def list_resource_usage(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_with_http_info(resource_group_name, profile_name, custom_headers:nil) - list_resource_usage_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_resource_usage_with_http_info(resource_group_name, profile_name, custom_headers = nil) + list_resource_usage_async(resource_group_name, profile_name, custom_headers).value! end # @@ -711,18 +694,14 @@ def list_resource_usage_with_http_info(resource_group_name, profile_name, custom # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_async(resource_group_name, profile_name, custom_headers:nil) + def list_resource_usage_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -781,8 +760,8 @@ def list_resource_usage_async(resource_group_name, profile_name, custom_headers: # # @return [Profile] operation results. # - def begin_create(resource_group_name, profile_name, profile, custom_headers:nil) - response = begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! + def begin_create(resource_group_name, profile_name, profile, custom_headers = nil) + response = begin_create_async(resource_group_name, profile_name, profile, custom_headers).value! response.body unless response.nil? end @@ -800,8 +779,8 @@ def begin_create(resource_group_name, profile_name, profile, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_with_http_info(resource_group_name, profile_name, profile, custom_headers:nil) - begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value! + def begin_create_with_http_info(resource_group_name, profile_name, profile, custom_headers = nil) + begin_create_async(resource_group_name, profile_name, profile, custom_headers).value! end # @@ -818,11 +797,8 @@ def begin_create_with_http_info(resource_group_name, profile_name, profile, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_async(resource_group_name, profile_name, profile, custom_headers:nil) + def begin_create_async(resource_group_name, profile_name, profile, 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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'profile is nil' if profile.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -830,12 +806,13 @@ def begin_create_async(resource_group_name, profile_name, profile, custom_header 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::CDN::Mgmt::V2017_10_12::Models::Profile.mapper() request_content = @client.serialize(request_mapper, profile) @@ -917,8 +894,8 @@ def begin_create_async(resource_group_name, profile_name, profile, custom_header # # @return [Profile] operation results. # - def begin_update(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) - response = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! + def begin_update(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + response = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! response.body unless response.nil? end @@ -937,8 +914,8 @@ def begin_update(resource_group_name, profile_name, profile_update_parameters, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_with_http_info(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) - begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value! + def begin_update_with_http_info(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil) + begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value! end # @@ -956,11 +933,8 @@ def begin_update_with_http_info(resource_group_name, profile_name, profile_updat # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil) + def begin_update_async(resource_group_name, profile_name, profile_update_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, 'profile_update_parameters is nil' if profile_update_parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -968,12 +942,13 @@ def begin_update_async(resource_group_name, profile_name, profile_update_paramet 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::CDN::Mgmt::V2017_10_12::Models::ProfileUpdateParameters.mapper() request_content = @client.serialize(request_mapper, profile_update_parameters) @@ -1043,8 +1018,8 @@ def begin_update_async(resource_group_name, profile_name, profile_update_paramet # will be added to the HTTP request. # # - def begin_delete(resource_group_name, profile_name, custom_headers:nil) - response = begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def begin_delete(resource_group_name, profile_name, custom_headers = nil) + response = begin_delete_async(resource_group_name, profile_name, custom_headers).value! nil end @@ -1062,8 +1037,8 @@ def begin_delete(resource_group_name, profile_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, profile_name, custom_headers:nil) - begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def begin_delete_with_http_info(resource_group_name, profile_name, custom_headers = nil) + begin_delete_async(resource_group_name, profile_name, custom_headers).value! end # @@ -1080,18 +1055,14 @@ def begin_delete_with_http_info(resource_group_name, profile_name, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, profile_name, custom_headers:nil) + def begin_delete_async(resource_group_name, profile_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, 'profile_name is nil' if profile_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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 @@ -1136,8 +1107,8 @@ def begin_delete_async(resource_group_name, profile_name, custom_headers:nil) # # @return [ProfileListResult] 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 @@ -1151,8 +1122,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 # @@ -1165,12 +1136,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 @@ -1224,8 +1194,8 @@ def list_next_async(next_page_link, custom_headers:nil) # # @return [ProfileListResult] 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 @@ -1239,8 +1209,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 # @@ -1253,12 +1223,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 @@ -1312,8 +1281,8 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # # @return [ResourceUsageListResult] operation results. # - def list_resource_usage_next(next_page_link, custom_headers:nil) - response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next(next_page_link, custom_headers = nil) + response = list_resource_usage_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -1327,8 +1296,8 @@ def list_resource_usage_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value! + def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil) + list_resource_usage_next_async(next_page_link, custom_headers).value! end # @@ -1341,12 +1310,11 @@ def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_resource_usage_next_async(next_page_link, custom_headers:nil) + def list_resource_usage_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 @@ -1399,12 +1367,12 @@ def list_resource_usage_next_async(next_page_link, custom_headers:nil) # @return [ProfileListResult] 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 @@ -1421,12 +1389,12 @@ def list_as_lazy(custom_headers:nil) # @return [ProfileListResult] 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 @@ -1445,12 +1413,12 @@ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) # @return [ResourceUsageListResult] which provide lazy access to pages of the # response. # - def list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers:nil) - response = list_resource_usage_async(resource_group_name, profile_name, custom_headers:custom_headers).value! + def list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers = nil) + response = list_resource_usage_async(resource_group_name, profile_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_resource_usage_next_async(next_page_link, custom_headers:custom_headers) + list_resource_usage_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb index a493ded49b..983d746f0f 100644 --- a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb @@ -32,8 +32,8 @@ def initialize(client) # # @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 @@ -46,8 +46,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 # @@ -59,13 +59,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.subscription_id is nil' if @client.subscription_id.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 @@ -121,8 +120,8 @@ def list_async(custom_headers:nil) # # @return [ResourceUsageListResult] 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 @@ -137,8 +136,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 # @@ -152,12 +151,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 @@ -211,12 +209,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [ResourceUsageListResult] 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 diff --git a/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/version.rb b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/version.rb new file mode 100644 index 0000000000..002bc126fa --- /dev/null +++ b/management/azure_mgmt_cdn/lib/2017-10-12/generated/azure_mgmt_cdn/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::CDN::Mgmt::V2017_10_12 + VERSION = '0.16.0' +end diff --git a/management/azure_mgmt_cdn/lib/azure_mgmt_cdn.rb b/management/azure_mgmt_cdn/lib/azure_mgmt_cdn.rb index 1c6e745945..cf807b2088 100644 --- a/management/azure_mgmt_cdn/lib/azure_mgmt_cdn.rb +++ b/management/azure_mgmt_cdn/lib/azure_mgmt_cdn.rb @@ -2,9 +2,9 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -require '2015-06-01/generated/azure_mgmt_cdn' -require '2016-04-02/generated/azure_mgmt_cdn' -require '2016-10-02/generated/azure_mgmt_cdn' require '2017-04-02/generated/azure_mgmt_cdn' -require '2017-10-12/generated/azure_mgmt_cdn' require 'profiles/latest/cdn_latest_profile_client' +require '2016-10-02/generated/azure_mgmt_cdn' +require '2015-06-01/generated/azure_mgmt_cdn' +require '2017-10-12/generated/azure_mgmt_cdn' +require '2016-04-02/generated/azure_mgmt_cdn'