From a9f6a76cf997a140d5a21f2a5e9966cc9edb49b6 Mon Sep 17 00:00:00 2001 From: SwaggerToSDK Automation Date: Sat, 11 Feb 2017 00:08:38 +0000 Subject: [PATCH] Generated from 2843040a2d787d73725b8f21a369c2ef198554aa --- .../lib/generated/azure_mgmt_web.rb | 1 + .../app_service_certificate_orders.rb | 254 ++++++------- .../models/host_name_ssl_state.rb | 12 + .../azure_mgmt_web/models/host_type.rb | 16 + .../web_site_management_client.rb | 349 +++++++++--------- 5 files changed, 327 insertions(+), 305 deletions(-) create mode 100644 management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_type.rb diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web.rb index 65450af23d..304c343f32 100644 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web.rb @@ -222,6 +222,7 @@ module Models autoload :AutoHealActionType, 'generated/azure_mgmt_web/models/auto_heal_action_type.rb' autoload :ConnectionStringType, 'generated/azure_mgmt_web/models/connection_string_type.rb' autoload :SslState, 'generated/azure_mgmt_web/models/ssl_state.rb' + autoload :HostType, 'generated/azure_mgmt_web/models/host_type.rb' autoload :OperationStatus, 'generated/azure_mgmt_web/models/operation_status.rb' autoload :UsageState, 'generated/azure_mgmt_web/models/usage_state.rb' autoload :SiteAvailabilityState, 'generated/azure_mgmt_web/models/site_availability_state.rb' diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_certificate_orders.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_certificate_orders.rb index c6c06434d3..1181df340d 100644 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_certificate_orders.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/app_service_certificate_orders.rb @@ -657,14 +657,14 @@ def delete_certificate_async(resource_group_name, certificate_order_name, name, # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [AppServiceCertificateOrder] operation results. # - def get(resource_group_name, name, custom_headers = nil) - response = get_async(resource_group_name, name, custom_headers).value! + def get(resource_group_name, certificate_order_name, custom_headers = nil) + response = get_async(resource_group_name, certificate_order_name, custom_headers).value! response.body unless response.nil? end @@ -675,14 +675,14 @@ def get(resource_group_name, name, custom_headers = nil) # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @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 get_with_http_info(resource_group_name, name, custom_headers = nil) - get_async(resource_group_name, name, custom_headers).value! + def get_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) + get_async(resource_group_name, certificate_order_name, custom_headers).value! end # @@ -692,15 +692,15 @@ def get_with_http_info(resource_group_name, name, custom_headers = nil) # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @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 get_async(resource_group_name, name, custom_headers = nil) + def get_async(resource_group_name, certificate_order_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' @@ -710,13 +710,13 @@ def get_async(resource_group_name, name, custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}' + path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -757,7 +757,7 @@ def get_async(resource_group_name, name, custom_headers = nil) # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @param certificate_distinguished_name [AppServiceCertificateOrder] # Distinguished name to to use for the certificate order. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -765,15 +765,15 @@ def get_async(resource_group_name, name, custom_headers = nil) # # @return [AppServiceCertificateOrder] operation results. # - def create_or_update(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) - response = create_or_update_async(resource_group_name, name, certificate_distinguished_name, custom_headers).value! + def create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) + response = create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers).value! response.body unless response.nil? end # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @param certificate_distinguished_name [AppServiceCertificateOrder] # Distinguished name to to use for the certificate order. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -782,9 +782,9 @@ def create_or_update(resource_group_name, name, certificate_distinguished_name, # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) + def create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, name, certificate_distinguished_name, custom_headers) + promise = begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -807,13 +807,13 @@ def create_or_update_async(resource_group_name, name, certificate_distinguished_ # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete_certificate_order(resource_group_name, name, custom_headers = nil) - response = delete_certificate_order_async(resource_group_name, name, custom_headers).value! + def delete_certificate_order(resource_group_name, certificate_order_name, custom_headers = nil) + response = delete_certificate_order_async(resource_group_name, certificate_order_name, custom_headers).value! nil end @@ -824,14 +824,14 @@ def delete_certificate_order(resource_group_name, name, custom_headers = nil) # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @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 delete_certificate_order_with_http_info(resource_group_name, name, custom_headers = nil) - delete_certificate_order_async(resource_group_name, name, custom_headers).value! + def delete_certificate_order_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) + delete_certificate_order_async(resource_group_name, certificate_order_name, custom_headers).value! end # @@ -841,15 +841,15 @@ def delete_certificate_order_with_http_info(resource_group_name, name, custom_he # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @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 delete_certificate_order_async(resource_group_name, name, custom_headers = nil) + def delete_certificate_order_async(resource_group_name, certificate_order_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' @@ -859,13 +859,13 @@ def delete_certificate_order_async(resource_group_name, name, custom_headers = n # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}' + path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -896,15 +896,15 @@ def delete_certificate_order_async(resource_group_name, name, custom_headers = n # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @param reissue_certificate_order_request [ReissueCertificateOrderRequest] # Parameters for the reissue. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def reissue(resource_group_name, name, reissue_certificate_order_request, custom_headers = nil) - response = reissue_async(resource_group_name, name, reissue_certificate_order_request, custom_headers).value! + def reissue(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers = nil) + response = reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers).value! nil end @@ -915,7 +915,7 @@ def reissue(resource_group_name, name, reissue_certificate_order_request, custom # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @param reissue_certificate_order_request [ReissueCertificateOrderRequest] # Parameters for the reissue. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -923,8 +923,8 @@ def reissue(resource_group_name, name, reissue_certificate_order_request, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def reissue_with_http_info(resource_group_name, name, reissue_certificate_order_request, custom_headers = nil) - reissue_async(resource_group_name, name, reissue_certificate_order_request, custom_headers).value! + def reissue_with_http_info(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers = nil) + reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers).value! end # @@ -934,7 +934,7 @@ def reissue_with_http_info(resource_group_name, name, reissue_certificate_order_ # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @param reissue_certificate_order_request [ReissueCertificateOrderRequest] # Parameters for the reissue. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -942,9 +942,9 @@ def reissue_with_http_info(resource_group_name, name, reissue_certificate_order_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def reissue_async(resource_group_name, name, reissue_certificate_order_request, custom_headers = nil) + def reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'reissue_certificate_order_request is nil' if reissue_certificate_order_request.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' @@ -963,13 +963,13 @@ def reissue_async(resource_group_name, name, reissue_certificate_order_request, request_content = @client.serialize(request_mapper, reissue_certificate_order_request, 'reissue_certificate_order_request') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/reissue' + path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/reissue' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -1001,15 +1001,15 @@ def reissue_async(resource_group_name, name, reissue_certificate_order_request, # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate name + # @param certificate_order_name [String] Name of the certificate order. # @param renew_certificate_order_request [RenewCertificateOrderRequest] Renew # parameters # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def renew(resource_group_name, name, renew_certificate_order_request, custom_headers = nil) - response = renew_async(resource_group_name, name, renew_certificate_order_request, custom_headers).value! + def renew(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers = nil) + response = renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers).value! nil end @@ -1020,7 +1020,7 @@ def renew(resource_group_name, name, renew_certificate_order_request, custom_hea # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate name + # @param certificate_order_name [String] Name of the certificate order. # @param renew_certificate_order_request [RenewCertificateOrderRequest] Renew # parameters # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -1028,8 +1028,8 @@ def renew(resource_group_name, name, renew_certificate_order_request, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def renew_with_http_info(resource_group_name, name, renew_certificate_order_request, custom_headers = nil) - renew_async(resource_group_name, name, renew_certificate_order_request, custom_headers).value! + def renew_with_http_info(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers = nil) + renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers).value! end # @@ -1039,7 +1039,7 @@ def renew_with_http_info(resource_group_name, name, renew_certificate_order_requ # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate name + # @param certificate_order_name [String] Name of the certificate order. # @param renew_certificate_order_request [RenewCertificateOrderRequest] Renew # parameters # @param [Hash{String => String}] A hash of custom headers that will be added @@ -1047,9 +1047,9 @@ def renew_with_http_info(resource_group_name, name, renew_certificate_order_requ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def renew_async(resource_group_name, name, renew_certificate_order_request, custom_headers = nil) + def renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'renew_certificate_order_request is nil' if renew_certificate_order_request.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' @@ -1068,13 +1068,13 @@ def renew_async(resource_group_name, name, renew_certificate_order_request, cust request_content = @client.serialize(request_mapper, renew_certificate_order_request, 'renew_certificate_order_request') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/renew' + path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/renew' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -1106,13 +1106,13 @@ def renew_async(resource_group_name, name, renew_certificate_order_request, cust # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def resend_email(resource_group_name, name, custom_headers = nil) - response = resend_email_async(resource_group_name, name, custom_headers).value! + def resend_email(resource_group_name, certificate_order_name, custom_headers = nil) + response = resend_email_async(resource_group_name, certificate_order_name, custom_headers).value! nil end @@ -1123,14 +1123,14 @@ def resend_email(resource_group_name, name, custom_headers = nil) # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order # @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 resend_email_with_http_info(resource_group_name, name, custom_headers = nil) - resend_email_async(resource_group_name, name, custom_headers).value! + def resend_email_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) + resend_email_async(resource_group_name, certificate_order_name, custom_headers).value! end # @@ -1140,15 +1140,15 @@ def resend_email_with_http_info(resource_group_name, name, custom_headers = nil) # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order # @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 resend_email_async(resource_group_name, name, custom_headers = nil) + def resend_email_async(resource_group_name, certificate_order_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' @@ -1158,13 +1158,13 @@ def resend_email_async(resource_group_name, name, custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/resendEmail' + path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendEmail' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -1195,14 +1195,14 @@ def resend_email_async(resource_group_name, name, custom_headers = nil) # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @param name_identifier [NameIdentifier] Email address # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def resend_request_emails(resource_group_name, name, name_identifier, custom_headers = nil) - response = resend_request_emails_async(resource_group_name, name, name_identifier, custom_headers).value! + def resend_request_emails(resource_group_name, certificate_order_name, name_identifier, custom_headers = nil) + response = resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers).value! nil end @@ -1213,15 +1213,15 @@ def resend_request_emails(resource_group_name, name, name_identifier, custom_hea # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @param name_identifier [NameIdentifier] Email address # @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 resend_request_emails_with_http_info(resource_group_name, name, name_identifier, custom_headers = nil) - resend_request_emails_async(resource_group_name, name, name_identifier, custom_headers).value! + def resend_request_emails_with_http_info(resource_group_name, certificate_order_name, name_identifier, custom_headers = nil) + resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers).value! end # @@ -1231,16 +1231,16 @@ def resend_request_emails_with_http_info(resource_group_name, name, name_identif # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @param name_identifier [NameIdentifier] Email address # @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 resend_request_emails_async(resource_group_name, name, name_identifier, custom_headers = nil) + def resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'name_identifier is nil' if name_identifier.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' @@ -1259,13 +1259,13 @@ def resend_request_emails_async(resource_group_name, name, name_identifier, cust request_content = @client.serialize(request_mapper, name_identifier, 'name_identifier') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/resendRequestEmails' + path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendRequestEmails' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -1297,14 +1297,14 @@ def resend_request_emails_async(resource_group_name, name, name_identifier, cust # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def retrieve_certificate_actions(resource_group_name, name, custom_headers = nil) - response = retrieve_certificate_actions_async(resource_group_name, name, custom_headers).value! + def retrieve_certificate_actions(resource_group_name, certificate_order_name, custom_headers = nil) + response = retrieve_certificate_actions_async(resource_group_name, certificate_order_name, custom_headers).value! response.body unless response.nil? end @@ -1315,14 +1315,14 @@ def retrieve_certificate_actions(resource_group_name, name, custom_headers = nil # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @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 retrieve_certificate_actions_with_http_info(resource_group_name, name, custom_headers = nil) - retrieve_certificate_actions_async(resource_group_name, name, custom_headers).value! + def retrieve_certificate_actions_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) + retrieve_certificate_actions_async(resource_group_name, certificate_order_name, custom_headers).value! end # @@ -1332,15 +1332,15 @@ def retrieve_certificate_actions_with_http_info(resource_group_name, name, custo # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @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 retrieve_certificate_actions_async(resource_group_name, name, custom_headers = nil) + def retrieve_certificate_actions_async(resource_group_name, certificate_order_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' @@ -1350,13 +1350,13 @@ def retrieve_certificate_actions_async(resource_group_name, name, custom_headers # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveCertificateActions' + path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/retrieveCertificateActions' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -1411,14 +1411,14 @@ def retrieve_certificate_actions_async(resource_group_name, name, custom_headers # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def retrieve_certificate_email_history(resource_group_name, name, custom_headers = nil) - response = retrieve_certificate_email_history_async(resource_group_name, name, custom_headers).value! + def retrieve_certificate_email_history(resource_group_name, certificate_order_name, custom_headers = nil) + response = retrieve_certificate_email_history_async(resource_group_name, certificate_order_name, custom_headers).value! response.body unless response.nil? end @@ -1429,14 +1429,14 @@ def retrieve_certificate_email_history(resource_group_name, name, custom_headers # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @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 retrieve_certificate_email_history_with_http_info(resource_group_name, name, custom_headers = nil) - retrieve_certificate_email_history_async(resource_group_name, name, custom_headers).value! + def retrieve_certificate_email_history_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) + retrieve_certificate_email_history_async(resource_group_name, certificate_order_name, custom_headers).value! end # @@ -1446,15 +1446,15 @@ def retrieve_certificate_email_history_with_http_info(resource_group_name, name, # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @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 retrieve_certificate_email_history_async(resource_group_name, name, custom_headers = nil) + def retrieve_certificate_email_history_async(resource_group_name, certificate_order_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' @@ -1464,13 +1464,13 @@ def retrieve_certificate_email_history_async(resource_group_name, name, custom_h # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveEmailHistory' + path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/retrieveEmailHistory' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -1525,15 +1525,15 @@ def retrieve_certificate_email_history_async(resource_group_name, name, custom_h # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @param site_seal_request [SiteSealRequest] Site seal request # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [SiteSeal] operation results. # - def retrieve_site_seal(resource_group_name, name, site_seal_request, custom_headers = nil) - response = retrieve_site_seal_async(resource_group_name, name, site_seal_request, custom_headers).value! + def retrieve_site_seal(resource_group_name, certificate_order_name, site_seal_request, custom_headers = nil) + response = retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers).value! response.body unless response.nil? end @@ -1544,15 +1544,15 @@ def retrieve_site_seal(resource_group_name, name, site_seal_request, custom_head # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @param site_seal_request [SiteSealRequest] Site seal request # @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 retrieve_site_seal_with_http_info(resource_group_name, name, site_seal_request, custom_headers = nil) - retrieve_site_seal_async(resource_group_name, name, site_seal_request, custom_headers).value! + def retrieve_site_seal_with_http_info(resource_group_name, certificate_order_name, site_seal_request, custom_headers = nil) + retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers).value! end # @@ -1562,16 +1562,16 @@ def retrieve_site_seal_with_http_info(resource_group_name, name, site_seal_reque # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @param site_seal_request [SiteSealRequest] Site seal request # @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 retrieve_site_seal_async(resource_group_name, name, site_seal_request, custom_headers = nil) + def retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'site_seal_request is nil' if site_seal_request.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' @@ -1590,13 +1590,13 @@ def retrieve_site_seal_async(resource_group_name, name, site_seal_request, custo request_content = @client.serialize(request_mapper, site_seal_request, 'site_seal_request') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveSiteSeal' + path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/retrieveSiteSeal' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -1638,13 +1638,13 @@ def retrieve_site_seal_async(resource_group_name, name, site_seal_request, custo # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def verify_domain_ownership(resource_group_name, name, custom_headers = nil) - response = verify_domain_ownership_async(resource_group_name, name, custom_headers).value! + def verify_domain_ownership(resource_group_name, certificate_order_name, custom_headers = nil) + response = verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers).value! nil end @@ -1655,14 +1655,14 @@ def verify_domain_ownership(resource_group_name, name, custom_headers = nil) # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @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 verify_domain_ownership_with_http_info(resource_group_name, name, custom_headers = nil) - verify_domain_ownership_async(resource_group_name, name, custom_headers).value! + def verify_domain_ownership_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) + verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers).value! end # @@ -1672,15 +1672,15 @@ def verify_domain_ownership_with_http_info(resource_group_name, name, custom_hea # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Certificate order name + # @param certificate_order_name [String] Name of the certificate order. # @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 verify_domain_ownership_async(resource_group_name, name, custom_headers = nil) + def verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' @@ -1690,13 +1690,13 @@ def verify_domain_ownership_async(resource_group_name, name, custom_headers = ni # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/verifyDomainOwnership' + path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/verifyDomainOwnership' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -1857,7 +1857,7 @@ def begin_create_or_update_certificate_async(resource_group_name, certificate_or # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @param certificate_distinguished_name [AppServiceCertificateOrder] # Distinguished name to to use for the certificate order. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -1865,8 +1865,8 @@ def begin_create_or_update_certificate_async(resource_group_name, certificate_or # # @return [AppServiceCertificateOrder] operation results. # - def begin_create_or_update(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, name, certificate_distinguished_name, custom_headers).value! + def begin_create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers).value! response.body unless response.nil? end @@ -1877,7 +1877,7 @@ def begin_create_or_update(resource_group_name, name, certificate_distinguished_ # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @param certificate_distinguished_name [AppServiceCertificateOrder] # Distinguished name to to use for the certificate order. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -1885,8 +1885,8 @@ def begin_create_or_update(resource_group_name, name, certificate_distinguished_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) - begin_create_or_update_async(resource_group_name, name, certificate_distinguished_name, custom_headers).value! + def begin_create_or_update_with_http_info(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) + begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers).value! end # @@ -1896,7 +1896,7 @@ def begin_create_or_update_with_http_info(resource_group_name, name, certificate # # @param resource_group_name [String] Name of the resource group to which the # resource belongs. - # @param name [String] Name of the certificate. + # @param certificate_order_name [String] Name of the certificate order. # @param certificate_distinguished_name [AppServiceCertificateOrder] # Distinguished name to to use for the certificate order. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -1904,9 +1904,9 @@ def begin_create_or_update_with_http_info(resource_group_name, name, certificate # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) + def begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'certificate_distinguished_name is nil' if certificate_distinguished_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' @@ -1925,13 +1925,13 @@ def begin_create_or_update_async(resource_group_name, name, certificate_distingu request_content = @client.serialize(request_mapper, certificate_distinguished_name, 'certificate_distinguished_name') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}' + path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}' request_url = @base_url || @client.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_ssl_state.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_ssl_state.rb index 491625e2d1..042cb7d555 100644 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_ssl_state.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_name_ssl_state.rb @@ -29,6 +29,10 @@ class HostNameSslState # @return [Boolean] Set to true to update existing hostname. attr_accessor :to_update + # @return [HostType] Indicates whether the hostname is a standard or + # repository hostname. Possible values include: 'Standard', 'Repository' + attr_accessor :host_type + # # Mapper for HostNameSslState class as Ruby Hash. @@ -77,6 +81,14 @@ def self.mapper() type: { name: 'Boolean' } + }, + host_type: { + required: false, + serialized_name: 'hostType', + type: { + name: 'Enum', + module: 'HostType' + } } } } diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_type.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_type.rb new file mode 100644 index 0000000000..de7b25d6b0 --- /dev/null +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/host_type.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Web + module Models + # + # Defines values for HostType + # + module HostType + Standard = "Standard" + Repository = "Repository" + end + end +end diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/web_site_management_client.rb b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/web_site_management_client.rb index 4d75ac2a2e..21685a9089 100644 --- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/web_site_management_client.rb +++ b/management/azure_mgmt_web/lib/generated/azure_mgmt_web/web_site_management_client.rb @@ -143,45 +143,45 @@ def make_request_async(method, path, options = {}) end # - # Gets the source controls available for Azure websites. + # Gets publishing user # - # Gets the source controls available for Azure websites. + # Gets publishing user # # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [User] operation results. # - def list_source_controls(custom_headers = nil) - first_page = list_source_controls_as_lazy(custom_headers) - first_page.get_all_items + def get_publishing_user(custom_headers = nil) + response = get_publishing_user_async(custom_headers).value! + response.body unless response.nil? end # - # Gets the source controls available for Azure websites. + # Gets publishing user # - # Gets the source controls available for Azure websites. + # Gets publishing user # # @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 list_source_controls_with_http_info(custom_headers = nil) - list_source_controls_async(custom_headers).value! + def get_publishing_user_with_http_info(custom_headers = nil) + get_publishing_user_async(custom_headers).value! end # - # Gets the source controls available for Azure websites. + # Gets publishing user # - # Gets the source controls available for Azure websites. + # Gets publishing user # # @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 list_source_controls_async(custom_headers = nil) + def get_publishing_user_async(custom_headers = nil) api_version = '2016-03-01' @@ -190,7 +190,7 @@ def list_source_controls_async(custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = accept_language unless accept_language.nil? - path_template = '/providers/Microsoft.Web/sourcecontrols' + path_template = '/providers/Microsoft.Web/publishingUsers/web' request_url = @base_url || self.base_url @@ -216,7 +216,7 @@ def list_source_controls_async(custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = SourceControlCollection.mapper() + result_mapper = User.mapper() result.body = self.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -230,53 +230,49 @@ def list_source_controls_async(custom_headers = nil) end # - # Updates source control token + # Updates publishing user # - # Updates source control token + # Updates publishing user # - # @param source_control_type [String] Type of source control - # @param request_message [SourceControl] Source control token information + # @param user_details [User] Details of publishing user # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [SourceControl] operation results. + # @return [User] operation results. # - def update_source_control(source_control_type, request_message, custom_headers = nil) - response = update_source_control_async(source_control_type, request_message, custom_headers).value! + def update_publishing_user(user_details, custom_headers = nil) + response = update_publishing_user_async(user_details, custom_headers).value! response.body unless response.nil? end # - # Updates source control token + # Updates publishing user # - # Updates source control token + # Updates publishing user # - # @param source_control_type [String] Type of source control - # @param request_message [SourceControl] Source control token information + # @param user_details [User] Details of publishing user # @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 update_source_control_with_http_info(source_control_type, request_message, custom_headers = nil) - update_source_control_async(source_control_type, request_message, custom_headers).value! + def update_publishing_user_with_http_info(user_details, custom_headers = nil) + update_publishing_user_async(user_details, custom_headers).value! end # - # Updates source control token + # Updates publishing user # - # Updates source control token + # Updates publishing user # - # @param source_control_type [String] Type of source control - # @param request_message [SourceControl] Source control token information + # @param user_details [User] Details of publishing user # @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 update_source_control_async(source_control_type, request_message, custom_headers = nil) - fail ArgumentError, 'source_control_type is nil' if source_control_type.nil? - fail ArgumentError, 'request_message is nil' if request_message.nil? + def update_publishing_user_async(user_details, custom_headers = nil) + fail ArgumentError, 'user_details is nil' if user_details.nil? api_version = '2016-03-01' @@ -289,17 +285,16 @@ def update_source_control_async(source_control_type, request_message, custom_hea request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request - request_mapper = SourceControl.mapper() - request_content = self.serialize(request_mapper, request_message, 'request_message') + request_mapper = User.mapper() + request_content = self.serialize(request_mapper, user_details, 'user_details') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = '/providers/Microsoft.Web/sourcecontrols/{sourceControlType}' + path_template = '/providers/Microsoft.Web/publishingUsers/web' request_url = @base_url || self.base_url options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'sourceControlType' => source_control_type}, query_params: {'api-version' => api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -321,7 +316,7 @@ def update_source_control_async(source_control_type, request_message, custom_hea if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = SourceControl.mapper() + result_mapper = User.mapper() result.body = self.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -335,95 +330,64 @@ def update_source_control_async(source_control_type, request_message, custom_hea end # - # Check if a resource name is available. + # Gets the source controls available for Azure websites. # - # Check if a resource name is available. + # Gets the source controls available for Azure websites. # - # @param name [String] Resource name to verify. - # @param type [CheckNameResourceTypes] Resource type used for verification. - # Possible values include: 'Site', 'Slot', 'HostingEnvironment' - # @param is_fqdn [Boolean] Is fully qualified domain name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [ResourceNameAvailability] operation results. + # @return [Array] operation results. # - def check_name_availability(name, type, is_fqdn = nil, custom_headers = nil) - response = check_name_availability_async(name, type, is_fqdn, custom_headers).value! - response.body unless response.nil? + def list_source_controls(custom_headers = nil) + first_page = list_source_controls_as_lazy(custom_headers) + first_page.get_all_items end # - # Check if a resource name is available. + # Gets the source controls available for Azure websites. # - # Check if a resource name is available. + # Gets the source controls available for Azure websites. # - # @param name [String] Resource name to verify. - # @param type [CheckNameResourceTypes] Resource type used for verification. - # Possible values include: 'Site', 'Slot', 'HostingEnvironment' - # @param is_fqdn [Boolean] Is fully qualified domain name. # @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_http_info(name, type, is_fqdn = nil, custom_headers = nil) - check_name_availability_async(name, type, is_fqdn, custom_headers).value! + def list_source_controls_with_http_info(custom_headers = nil) + list_source_controls_async(custom_headers).value! end # - # Check if a resource name is available. + # Gets the source controls available for Azure websites. # - # Check if a resource name is available. + # Gets the source controls available for Azure websites. # - # @param name [String] Resource name to verify. - # @param type [CheckNameResourceTypes] Resource type used for verification. - # Possible values include: 'Site', 'Slot', 'HostingEnvironment' - # @param is_fqdn [Boolean] Is fully qualified domain name. # @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_async(name, type, is_fqdn = nil, custom_headers = nil) - fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? + def list_source_controls_async(custom_headers = nil) api_version = '2016-03-01' - fail ArgumentError, 'name is nil' if name.nil? - fail ArgumentError, 'type is nil' if type.nil? - request = ResourceNameAvailabilityRequest.new - unless name.nil? && type.nil? && is_fqdn.nil? - request.name = name - request.type = type - request.is_fqdn = is_fqdn - end 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 = ResourceNameAvailabilityRequest.mapper() - request_content = self.serialize(request_mapper, request, 'request') - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability' + path_template = '/providers/Microsoft.Web/sourcecontrols' 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 = self.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -439,7 +403,7 @@ def check_name_availability_async(name, type, is_fqdn = nil, custom_headers = ni if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = ResourceNameAvailability.mapper() + result_mapper = SourceControlCollection.mapper() result.body = self.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -453,52 +417,53 @@ def check_name_availability_async(name, type, is_fqdn = nil, custom_headers = ni end # - # Get a list of available geographical regions. + # Updates source control token # - # Get a list of available geographical regions. + # Updates source control token # - # @param sku [SkuName] Name of SKU used to filter the regions. Possible values - # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic' + # @param source_control_type [String] Type of source control + # @param request_message [SourceControl] Source control token information # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [SourceControl] operation results. # - def list_geo_regions(sku = nil, custom_headers = nil) - first_page = list_geo_regions_as_lazy(sku, custom_headers) - first_page.get_all_items + def update_source_control(source_control_type, request_message, custom_headers = nil) + response = update_source_control_async(source_control_type, request_message, custom_headers).value! + response.body unless response.nil? end # - # Get a list of available geographical regions. + # Updates source control token # - # Get a list of available geographical regions. + # Updates source control token # - # @param sku [SkuName] Name of SKU used to filter the regions. Possible values - # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic' + # @param source_control_type [String] Type of source control + # @param request_message [SourceControl] Source control token information # @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 list_geo_regions_with_http_info(sku = nil, custom_headers = nil) - list_geo_regions_async(sku, custom_headers).value! + def update_source_control_with_http_info(source_control_type, request_message, custom_headers = nil) + update_source_control_async(source_control_type, request_message, custom_headers).value! end # - # Get a list of available geographical regions. + # Updates source control token # - # Get a list of available geographical regions. + # Updates source control token # - # @param sku [SkuName] Name of SKU used to filter the regions. Possible values - # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic' + # @param source_control_type [String] Type of source control + # @param request_message [SourceControl] Source control token information # @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 list_geo_regions_async(sku = nil, custom_headers = nil) - fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? + def update_source_control_async(source_control_type, request_message, custom_headers = nil) + fail ArgumentError, 'source_control_type is nil' if source_control_type.nil? + fail ArgumentError, 'request_message is nil' if request_message.nil? api_version = '2016-03-01' @@ -507,18 +472,27 @@ def list_geo_regions_async(sku = nil, custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = accept_language unless accept_language.nil? - path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = SourceControl.mapper() + request_content = self.serialize(request_mapper, request_message, 'request_message') + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = '/providers/Microsoft.Web/sourcecontrols/{sourceControlType}' 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: {'sku' => sku,'api-version' => api_version}, + path_params: {'sourceControlType' => source_control_type}, + 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 = self.make_request_async(:put, path_template, options) promise = promise.then do |result| http_response = result.response @@ -534,7 +508,7 @@ def list_geo_regions_async(sku = nil, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = GeoRegionCollection.mapper() + result_mapper = SourceControl.mapper() result.body = self.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -548,55 +522,83 @@ def list_geo_regions_async(sku = nil, custom_headers = nil) end # - # List all premier add-on offers. + # Check if a resource name is available. # - # List all premier add-on offers. + # Check if a resource name is available. # + # @param name [String] Resource name to verify. + # @param type [CheckNameResourceTypes] Resource type used for verification. + # Possible values include: 'Site', 'Slot', 'HostingEnvironment' + # @param is_fqdn [Boolean] Is fully qualified domain name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Array] operation results. + # @return [ResourceNameAvailability] operation results. # - def list_premier_add_on_offers(custom_headers = nil) - first_page = list_premier_add_on_offers_as_lazy(custom_headers) - first_page.get_all_items + def check_name_availability(name, type, is_fqdn = nil, custom_headers = nil) + response = check_name_availability_async(name, type, is_fqdn, custom_headers).value! + response.body unless response.nil? end # - # List all premier add-on offers. + # Check if a resource name is available. # - # List all premier add-on offers. + # Check if a resource name is available. # + # @param name [String] Resource name to verify. + # @param type [CheckNameResourceTypes] Resource type used for verification. + # Possible values include: 'Site', 'Slot', 'HostingEnvironment' + # @param is_fqdn [Boolean] Is fully qualified domain name. # @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 list_premier_add_on_offers_with_http_info(custom_headers = nil) - list_premier_add_on_offers_async(custom_headers).value! + def check_name_availability_with_http_info(name, type, is_fqdn = nil, custom_headers = nil) + check_name_availability_async(name, type, is_fqdn, custom_headers).value! end # - # List all premier add-on offers. + # Check if a resource name is available. # - # List all premier add-on offers. + # Check if a resource name is available. # + # @param name [String] Resource name to verify. + # @param type [CheckNameResourceTypes] Resource type used for verification. + # Possible values include: 'Site', 'Slot', 'HostingEnvironment' + # @param is_fqdn [Boolean] Is fully qualified domain name. # @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 list_premier_add_on_offers_async(custom_headers = nil) + def check_name_availability_async(name, type, is_fqdn = nil, custom_headers = nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? api_version = '2016-03-01' + fail ArgumentError, 'name is nil' if name.nil? + fail ArgumentError, 'type is nil' if type.nil? + request = ResourceNameAvailabilityRequest.new + unless name.nil? && type.nil? && is_fqdn.nil? + request.name = name + request.type = type + request.is_fqdn = is_fqdn + end request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = accept_language unless accept_language.nil? - path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers' + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = ResourceNameAvailabilityRequest.mapper() + request_content = self.serialize(request_mapper, request, 'request') + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability' request_url = @base_url || self.base_url @@ -604,10 +606,11 @@ def list_premier_add_on_offers_async(custom_headers = nil) 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(:get, path_template, options) + promise = self.make_request_async(:post, path_template, options) promise = promise.then do |result| http_response = result.response @@ -623,7 +626,7 @@ def list_premier_add_on_offers_async(custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = PremierAddOnOfferCollection.mapper() + result_mapper = ResourceNameAvailability.mapper() result.body = self.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -637,45 +640,51 @@ def list_premier_add_on_offers_async(custom_headers = nil) end # - # Get the publishing credentials for the subscription owner. + # Get a list of available geographical regions. # - # Get the publishing credentials for the subscription owner. + # Get a list of available geographical regions. # + # @param sku [SkuName] Name of SKU used to filter the regions. Possible values + # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic' # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [User] operation results. + # @return [Array] operation results. # - def get_publishing_credentials(custom_headers = nil) - response = get_publishing_credentials_async(custom_headers).value! - response.body unless response.nil? + def list_geo_regions(sku = nil, custom_headers = nil) + first_page = list_geo_regions_as_lazy(sku, custom_headers) + first_page.get_all_items end # - # Get the publishing credentials for the subscription owner. + # Get a list of available geographical regions. # - # Get the publishing credentials for the subscription owner. + # Get a list of available geographical regions. # + # @param sku [SkuName] Name of SKU used to filter the regions. Possible values + # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic' # @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 get_publishing_credentials_with_http_info(custom_headers = nil) - get_publishing_credentials_async(custom_headers).value! + def list_geo_regions_with_http_info(sku = nil, custom_headers = nil) + list_geo_regions_async(sku, custom_headers).value! end # - # Get the publishing credentials for the subscription owner. + # Get a list of available geographical regions. # - # Get the publishing credentials for the subscription owner. + # Get a list of available geographical regions. # + # @param sku [SkuName] Name of SKU used to filter the regions. Possible values + # include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic' # @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 get_publishing_credentials_async(custom_headers = nil) + def list_geo_regions_async(sku = nil, custom_headers = nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? api_version = '2016-03-01' @@ -685,14 +694,14 @@ def get_publishing_credentials_async(custom_headers = nil) # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = accept_language unless accept_language.nil? - path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/publishingCredentials' + path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions' 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}, + query_params: {'sku' => sku,'api-version' => api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -712,7 +721,7 @@ def get_publishing_credentials_async(custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = User.mapper() + result_mapper = GeoRegionCollection.mapper() result.body = self.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -726,52 +735,45 @@ def get_publishing_credentials_async(custom_headers = nil) end # - # Update the publishing credentials for the subscription owner. + # List all premier add-on offers. # - # Update the publishing credentials for the subscription owner. + # List all premier add-on offers. # - # @param request_message [User] A request message with the new publishing - # credentials. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [User] operation results. + # @return [Array] operation results. # - def update_publishing_credentials(request_message, custom_headers = nil) - response = update_publishing_credentials_async(request_message, custom_headers).value! - response.body unless response.nil? + def list_premier_add_on_offers(custom_headers = nil) + first_page = list_premier_add_on_offers_as_lazy(custom_headers) + first_page.get_all_items end # - # Update the publishing credentials for the subscription owner. + # List all premier add-on offers. # - # Update the publishing credentials for the subscription owner. + # List all premier add-on offers. # - # @param request_message [User] A request message with the new publishing - # credentials. # @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 update_publishing_credentials_with_http_info(request_message, custom_headers = nil) - update_publishing_credentials_async(request_message, custom_headers).value! + def list_premier_add_on_offers_with_http_info(custom_headers = nil) + list_premier_add_on_offers_async(custom_headers).value! end # - # Update the publishing credentials for the subscription owner. + # List all premier add-on offers. # - # Update the publishing credentials for the subscription owner. + # List all premier add-on offers. # - # @param request_message [User] A request message with the new publishing - # credentials. # @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 update_publishing_credentials_async(request_message, custom_headers = nil) - fail ArgumentError, 'request_message is nil' if request_message.nil? + def list_premier_add_on_offers_async(custom_headers = nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? api_version = '2016-03-01' @@ -781,15 +783,7 @@ def update_publishing_credentials_async(request_message, custom_headers = nil) # 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 = User.mapper() - request_content = self.serialize(request_mapper, request_message, 'request_message') - request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - - path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/publishingCredentials' + path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers' request_url = @base_url || self.base_url @@ -797,11 +791,10 @@ def update_publishing_credentials_async(request_message, custom_headers = nil) 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(:put, path_template, options) + promise = self.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -817,7 +810,7 @@ def update_publishing_credentials_async(request_message, custom_headers = nil) if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = User.mapper() + result_mapper = PremierAddOnOfferCollection.mapper() result.body = self.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) @@ -1390,7 +1383,7 @@ def list_geo_regions_next_async(next_page_link, custom_headers = nil) headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = self.make_request_async(:post, path_template, options) + promise = self.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response @@ -1655,7 +1648,7 @@ def list_geo_regions_as_lazy_async(sku = nil, custom_headers = nil) headers: request_headers.merge(custom_headers || {}), base_url: request_url } - promise = self.make_request_async(:post, path_template, options) + promise = self.make_request_async(:get, path_template, options) promise = promise.then do |result| http_response = result.response