Class: Azure::Web::Mgmt::V2018_02_01::AppServiceCertificateOrders
- Inherits:
-
Object
- Object
- Azure::Web::Mgmt::V2018_02_01::AppServiceCertificateOrders
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb
Overview
WebSite Management Client
Instance Attribute Summary collapse
-
#client ⇒ WebSiteManagementClient
readonly
Reference to the WebSiteManagementClient.
Instance Method Summary collapse
-
#begin_create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ AppServiceCertificateOrder
Create or update a certificate purchase order.
-
#begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ Concurrent::Promise
Create or update a certificate purchase order.
-
#begin_create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ AppServiceCertificateResource
Creates or updates a certificate and associates with key vault secret.
-
#begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ Concurrent::Promise
Creates or updates a certificate and associates with key vault secret.
-
#begin_create_or_update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates or updates a certificate and associates with key vault secret.
-
#begin_create_or_update_with_http_info(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a certificate purchase order.
-
#create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ AppServiceCertificateOrder
Create or update a certificate purchase order.
-
#create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ AppServiceCertificateResource
Creates or updates a certificate and associates with key vault secret.
-
#create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs.
-
#delete(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Object
Delete an existing certificate order.
-
#delete_async(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete an existing certificate order.
-
#delete_certificate(resource_group_name, certificate_order_name, name, custom_headers: nil) ⇒ Object
Delete the certificate associated with a certificate order.
-
#delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Delete the certificate associated with a certificate order.
-
#delete_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete the certificate associated with a certificate order.
-
#delete_with_http_info(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete an existing certificate order.
-
#get(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ AppServiceCertificateOrder
Get a certificate order.
-
#get_async(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Concurrent::Promise
Get a certificate order.
-
#get_certificate(resource_group_name, certificate_order_name, name, custom_headers: nil) ⇒ AppServiceCertificateResource
Get the certificate associated with a certificate order.
-
#get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get the certificate associated with a certificate order.
-
#get_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the certificate associated with a certificate order.
-
#get_with_http_info(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a certificate order.
-
#initialize(client) ⇒ AppServiceCertificateOrders
constructor
Creates and initializes a new instance of the AppServiceCertificateOrders class.
-
#list(custom_headers: nil) ⇒ Array<AppServiceCertificateOrder>
List all certificate orders in a subscription.
-
#list_as_lazy(custom_headers: nil) ⇒ AppServiceCertificateOrderCollection
List all certificate orders in a subscription.
-
#list_async(custom_headers: nil) ⇒ Concurrent::Promise
List all certificate orders in a subscription.
-
#list_by_resource_group(resource_group_name, custom_headers: nil) ⇒ Array<AppServiceCertificateOrder>
Get certificate orders in a resource group.
-
#list_by_resource_group_as_lazy(resource_group_name, custom_headers: nil) ⇒ AppServiceCertificateOrderCollection
Get certificate orders in a resource group.
-
#list_by_resource_group_async(resource_group_name, custom_headers: nil) ⇒ Concurrent::Promise
Get certificate orders in a resource group.
-
#list_by_resource_group_next(next_page_link, custom_headers: nil) ⇒ AppServiceCertificateOrderCollection
Get certificate orders in a resource group.
-
#list_by_resource_group_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get certificate orders in a resource group.
-
#list_by_resource_group_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get certificate orders in a resource group.
-
#list_by_resource_group_with_http_info(resource_group_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get certificate orders in a resource group.
-
#list_certificates(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Array<AppServiceCertificateResource>
List all certificates associated with a certificate order.
-
#list_certificates_as_lazy(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ AppServiceCertificateCollection
List all certificates associated with a certificate order.
-
#list_certificates_async(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Concurrent::Promise
List all certificates associated with a certificate order.
-
#list_certificates_next(next_page_link, custom_headers: nil) ⇒ AppServiceCertificateCollection
List all certificates associated with a certificate order.
-
#list_certificates_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List all certificates associated with a certificate order.
-
#list_certificates_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List all certificates associated with a certificate order.
-
#list_certificates_with_http_info(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List all certificates associated with a certificate order.
-
#list_next(next_page_link, custom_headers: nil) ⇒ AppServiceCertificateOrderCollection
List all certificate orders in a subscription.
-
#list_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List all certificate orders in a subscription.
-
#list_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List all certificate orders in a subscription.
-
#list_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List all certificate orders in a subscription.
-
#reissue(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers: nil) ⇒ Object
Reissue an existing certificate order.
-
#reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers: nil) ⇒ Concurrent::Promise
Reissue an existing certificate order.
-
#reissue_with_http_info(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Reissue an existing certificate order.
-
#renew(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers: nil) ⇒ Object
Renew an existing certificate order.
-
#renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers: nil) ⇒ Concurrent::Promise
Renew an existing certificate order.
-
#renew_with_http_info(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Renew an existing certificate order.
-
#resend_email(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Object
Resend certificate email.
-
#resend_email_async(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Concurrent::Promise
Resend certificate email.
-
#resend_email_with_http_info(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Resend certificate email.
-
#resend_request_emails(resource_group_name, certificate_order_name, name_identifier, custom_headers: nil) ⇒ Object
Verify domain ownership for this certificate order.
-
#resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers: nil) ⇒ Concurrent::Promise
Verify domain ownership for this certificate order.
-
#resend_request_emails_with_http_info(resource_group_name, certificate_order_name, name_identifier, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Verify domain ownership for this certificate order.
-
#retrieve_certificate_actions(resource_group_name, name, custom_headers: nil) ⇒ Array
Retrieve the list of certificate actions.
-
#retrieve_certificate_actions_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Retrieve the list of certificate actions.
-
#retrieve_certificate_actions_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Retrieve the list of certificate actions.
-
#retrieve_certificate_email_history(resource_group_name, name, custom_headers: nil) ⇒ Array
Retrieve email history.
-
#retrieve_certificate_email_history_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Retrieve email history.
-
#retrieve_certificate_email_history_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Retrieve email history.
-
#retrieve_site_seal(resource_group_name, certificate_order_name, site_seal_request, custom_headers: nil) ⇒ SiteSeal
Verify domain ownership for this certificate order.
-
#retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers: nil) ⇒ Concurrent::Promise
Verify domain ownership for this certificate order.
-
#retrieve_site_seal_with_http_info(resource_group_name, certificate_order_name, site_seal_request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Verify domain ownership for this certificate order.
-
#update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ AppServiceCertificateOrder
Create or update a certificate purchase order.
-
#update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ Concurrent::Promise
Create or update a certificate purchase order.
-
#update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ AppServiceCertificateResource
Creates or updates a certificate and associates with key vault secret.
-
#update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ Concurrent::Promise
Creates or updates a certificate and associates with key vault secret.
-
#update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates or updates a certificate and associates with key vault secret.
-
#update_with_http_info(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a certificate purchase order.
-
#validate_purchase_information(app_service_certificate_order, custom_headers: nil) ⇒ Object
Validate information for a certificate order.
-
#validate_purchase_information_async(app_service_certificate_order, custom_headers: nil) ⇒ Concurrent::Promise
Validate information for a certificate order.
-
#validate_purchase_information_with_http_info(app_service_certificate_order, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Validate information for a certificate order.
-
#verify_domain_ownership(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Object
Verify domain ownership for this certificate order.
-
#verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Concurrent::Promise
Verify domain ownership for this certificate order.
-
#verify_domain_ownership_with_http_info(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Verify domain ownership for this certificate order.
Constructor Details
#initialize(client) ⇒ AppServiceCertificateOrders
Creates and initializes a new instance of the AppServiceCertificateOrders class.
17 18 19 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 17 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ WebSiteManagementClient (readonly)
Returns reference to the WebSiteManagementClient.
22 23 24 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 22 def client @client end |
Instance Method Details
#begin_create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ AppServiceCertificateOrder
Create or update a certificate purchase order.
Create or update a certificate purchase order.
resource belongs. Distinguished name to to use for the certificate order. will be added to the HTTP request.
2088 2089 2090 2091 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2088 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:custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ Concurrent::Promise
Create or update a certificate purchase order.
Create or update a certificate purchase order.
resource belongs. Distinguished name to to use for the certificate order. to the HTTP request.
2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2127 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, "'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, '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? 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? # Serialize Request request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrder.mapper() request_content = @client.serialize(request_mapper, 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/{certificateOrderName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:put, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 201 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrder.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrder.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ AppServiceCertificateResource
Creates or updates a certificate and associates with key vault secret.
Creates or updates a certificate and associates with key vault secret.
resource belongs. certificate resource Id. will be added to the HTTP request.
2219 2220 2221 2222 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2219 def begin_create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil) response = begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ Concurrent::Promise
Creates or updates a certificate and associates with key vault secret.
Creates or updates a certificate and associates with key vault secret.
resource belongs. certificate resource Id. to the HTTP request.
2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2260 def begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'key_vault_certificate is nil' if key_vault_certificate.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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateResource.mapper() request_content = @client.serialize(request_mapper, key_vault_certificate) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:put, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 201 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_create_or_update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates or updates a certificate and associates with key vault secret.
Creates or updates a certificate and associates with key vault secret.
resource belongs. certificate resource Id. will be added to the HTTP request.
2240 2241 2242 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2240 def begin_create_or_update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil) begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value! end |
#begin_create_or_update_with_http_info(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a certificate purchase order.
Create or update a certificate purchase order.
resource belongs. Distinguished name to to use for the certificate order. will be added to the HTTP request.
2108 2109 2110 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2108 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:custom_headers).value! end |
#create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ AppServiceCertificateOrder
Create or update a certificate purchase order.
Create or update a certificate purchase order.
resource belongs. Distinguished name to to use for the certificate order. will be added to the HTTP request.
434 435 436 437 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 434 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:custom_headers).value! response.body unless response.nil? end |
#create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. Distinguished name to to use for the certificate order. will be added to the HTTP request.
response.
451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 451 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, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrder.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ AppServiceCertificateResource
Creates or updates a certificate and associates with key vault secret.
Creates or updates a certificate and associates with key vault secret.
resource belongs. certificate resource Id. will be added to the HTTP request.
929 930 931 932 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 929 def create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil) response = create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ Concurrent::Promise
resource belongs. certificate resource Id. will be added to the HTTP request.
response.
947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 947 def create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil) # Send request promise = begin_create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateResource.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#delete(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Object
Delete an existing certificate order.
Delete an existing certificate order.
resource belongs. will be added to the HTTP request.
481 482 483 484 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 481 def delete(resource_group_name, certificate_order_name, custom_headers:nil) response = delete_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! nil end |
#delete_async(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete an existing certificate order.
Delete an existing certificate order.
resource belongs. to the HTTP request.
516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 516 def delete_async(resource_group_name, certificate_order_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, 'certificate_order_name is nil' if certificate_order_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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:delete, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#delete_certificate(resource_group_name, certificate_order_name, name, custom_headers: nil) ⇒ Object
Delete the certificate associated with a certificate order.
Delete the certificate associated with a certificate order.
resource belongs. will be added to the HTTP request.
978 979 980 981 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 978 def delete_certificate(resource_group_name, certificate_order_name, name, custom_headers:nil) response = delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:custom_headers).value! nil end |
#delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Delete the certificate associated with a certificate order.
Delete the certificate associated with a certificate order.
resource belongs. to the HTTP request.
1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1015 def delete_certificate_async(resource_group_name, certificate_order_name, 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'name is nil' if 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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:delete, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#delete_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete the certificate associated with a certificate order.
Delete the certificate associated with a certificate order.
resource belongs. will be added to the HTTP request.
997 998 999 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 997 def delete_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers:nil) delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:custom_headers).value! end |
#delete_with_http_info(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete an existing certificate order.
Delete an existing certificate order.
resource belongs. will be added to the HTTP request.
499 500 501 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 499 def delete_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil) delete_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! end |
#get(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ AppServiceCertificateOrder
Get a certificate order.
Get a certificate order.
resource belongs. will be added to the HTTP request.
326 327 328 329 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 326 def get(resource_group_name, certificate_order_name, custom_headers:nil) response = get_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_async(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Concurrent::Promise
Get a certificate order.
Get a certificate order.
resource belongs. to the HTTP request.
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 361 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, "'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, 'certificate_order_name is nil' if certificate_order_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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrder.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_certificate(resource_group_name, certificate_order_name, name, custom_headers: nil) ⇒ AppServiceCertificateResource
Get the certificate associated with a certificate order.
Get the certificate associated with a certificate order.
resource belongs. will be added to the HTTP request.
817 818 819 820 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 817 def get_certificate(resource_group_name, certificate_order_name, name, custom_headers:nil) response = get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Get the certificate associated with a certificate order.
Get the certificate associated with a certificate order.
resource belongs. to the HTTP request.
854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 854 def get_certificate_async(resource_group_name, certificate_order_name, 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'name is nil' if 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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get the certificate associated with a certificate order.
Get the certificate associated with a certificate order.
resource belongs. will be added to the HTTP request.
836 837 838 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 836 def get_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers:nil) get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers:custom_headers).value! end |
#get_with_http_info(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get a certificate order.
Get a certificate order.
resource belongs. will be added to the HTTP request.
344 345 346 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 344 def get_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil) get_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! end |
#list(custom_headers: nil) ⇒ Array<AppServiceCertificateOrder>
List all certificate orders in a subscription.
List all certificate orders in a subscription.
will be added to the HTTP request.
34 35 36 37 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 34 def list(custom_headers:nil) first_page = list_as_lazy(custom_headers:custom_headers) first_page.get_all_items end |
#list_as_lazy(custom_headers: nil) ⇒ AppServiceCertificateOrderCollection
List all certificate orders in a subscription.
List all certificate orders in a subscription.
will be added to the HTTP request.
pages of the response.
2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2636 def list_as_lazy(custom_headers:nil) response = list_async(custom_headers: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) end page end end |
#list_async(custom_headers: nil) ⇒ Concurrent::Promise
List all certificate orders in a subscription.
List all certificate orders in a subscription.
to the HTTP request.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 63 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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_resource_group(resource_group_name, custom_headers: nil) ⇒ Array<AppServiceCertificateOrder>
Get certificate orders in a resource group.
Get certificate orders in a resource group.
resource belongs. will be added to the HTTP request.
223 224 225 226 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 223 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) first_page.get_all_items end |
#list_by_resource_group_as_lazy(resource_group_name, custom_headers: nil) ⇒ AppServiceCertificateOrderCollection
Get certificate orders in a resource group.
Get certificate orders in a resource group.
resource belongs. will be added to the HTTP request.
pages of the response.
2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2660 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! 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) end page end end |
#list_by_resource_group_async(resource_group_name, custom_headers: nil) ⇒ Concurrent::Promise
Get certificate orders in a resource group.
Get certificate orders in a resource group.
resource belongs. to the HTTP request.
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 256 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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_resource_group_next(next_page_link, custom_headers: nil) ⇒ AppServiceCertificateOrderCollection
Get certificate orders in a resource group.
Get certificate orders in a resource group.
to List operation. will be added to the HTTP request.
2445 2446 2447 2448 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2445 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! response.body unless response.nil? end |
#list_by_resource_group_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get certificate orders in a resource group.
Get certificate orders in a resource group.
to List operation. to the HTTP request.
2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2478 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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_resource_group_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get certificate orders in a resource group.
Get certificate orders in a resource group.
to List operation. will be added to the HTTP request.
2462 2463 2464 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2462 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! end |
#list_by_resource_group_with_http_info(resource_group_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get certificate orders in a resource group.
Get certificate orders in a resource group.
resource belongs. will be added to the HTTP request.
240 241 242 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 240 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! end |
#list_certificates(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Array<AppServiceCertificateResource>
List all certificates associated with a certificate order.
List all certificates associated with a certificate order.
resource belongs. will be added to the HTTP request.
710 711 712 713 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 710 def list_certificates(resource_group_name, certificate_order_name, custom_headers:nil) first_page = list_certificates_as_lazy(resource_group_name, certificate_order_name, custom_headers:custom_headers) first_page.get_all_items end |
#list_certificates_as_lazy(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ AppServiceCertificateCollection
List all certificates associated with a certificate order.
List all certificates associated with a certificate order.
resource belongs. will be added to the HTTP request.
of the response.
2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2685 def list_certificates_as_lazy(resource_group_name, certificate_order_name, custom_headers:nil) response = list_certificates_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_certificates_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_certificates_async(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Concurrent::Promise
List all certificates associated with a certificate order.
List all certificates associated with a certificate order.
resource belongs. to the HTTP request.
745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 745 def list_certificates_async(resource_group_name, certificate_order_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, 'certificate_order_name is nil' if certificate_order_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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_certificates_next(next_page_link, custom_headers: nil) ⇒ AppServiceCertificateCollection
List all certificates associated with a certificate order.
List all certificates associated with a certificate order.
to List operation. will be added to the HTTP request.
2541 2542 2543 2544 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2541 def list_certificates_next(next_page_link, custom_headers:nil) response = list_certificates_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_certificates_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List all certificates associated with a certificate order.
List all certificates associated with a certificate order.
to List operation. to the HTTP request.
2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2574 def list_certificates_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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_certificates_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List all certificates associated with a certificate order.
List all certificates associated with a certificate order.
to List operation. will be added to the HTTP request.
2558 2559 2560 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2558 def list_certificates_next_with_http_info(next_page_link, custom_headers:nil) list_certificates_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_certificates_with_http_info(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List all certificates associated with a certificate order.
List all certificates associated with a certificate order.
resource belongs. will be added to the HTTP request.
728 729 730 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 728 def list_certificates_with_http_info(resource_group_name, certificate_order_name, custom_headers:nil) list_certificates_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! end |
#list_next(next_page_link, custom_headers: nil) ⇒ AppServiceCertificateOrderCollection
List all certificate orders in a subscription.
List all certificate orders in a subscription.
to List operation. will be added to the HTTP request.
2349 2350 2351 2352 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2349 def list_next(next_page_link, custom_headers:nil) response = list_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List all certificate orders in a subscription.
List all certificate orders in a subscription.
to List operation. to the HTTP request.
2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2382 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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List all certificate orders in a subscription.
List all certificate orders in a subscription.
to List operation. will be added to the HTTP request.
2366 2367 2368 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2366 def list_next_with_http_info(next_page_link, custom_headers:nil) list_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_with_http_info(custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List all certificate orders in a subscription.
List all certificate orders in a subscription.
will be added to the HTTP request.
49 50 51 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 49 def list_with_http_info(custom_headers:nil) list_async(custom_headers:custom_headers).value! end |
#reissue(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers: nil) ⇒ Object
Reissue an existing certificate order.
Reissue an existing certificate order.
resource belongs. Parameters for the reissue. will be added to the HTTP request.
1212 1213 1214 1215 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1212 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:custom_headers).value! nil end |
#reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers: nil) ⇒ Concurrent::Promise
Reissue an existing certificate order.
Reissue an existing certificate order.
resource belongs. Parameters for the reissue. to the HTTP request.
1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1251 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, "'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, '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? 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? # Serialize Request request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::ReissueCertificateOrderRequest.mapper() request_content = @client.serialize(request_mapper, 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/{certificateOrderName}/reissue' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#reissue_with_http_info(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Reissue an existing certificate order.
Reissue an existing certificate order.
resource belongs. Parameters for the reissue. will be added to the HTTP request.
1232 1233 1234 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1232 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:custom_headers).value! end |
#renew(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers: nil) ⇒ Object
Renew an existing certificate order.
Renew an existing certificate order.
resource belongs. parameters will be added to the HTTP request.
1321 1322 1323 1324 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1321 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:custom_headers).value! nil end |
#renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers: nil) ⇒ Concurrent::Promise
Renew an existing certificate order.
Renew an existing certificate order.
resource belongs. parameters to the HTTP request.
1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1360 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, "'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, '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? 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? # Serialize Request request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::RenewCertificateOrderRequest.mapper() request_content = @client.serialize(request_mapper, 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/{certificateOrderName}/renew' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#renew_with_http_info(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Renew an existing certificate order.
Renew an existing certificate order.
resource belongs. parameters will be added to the HTTP request.
1341 1342 1343 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1341 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:custom_headers).value! end |
#resend_email(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Object
Resend certificate email.
Resend certificate email.
resource belongs. will be added to the HTTP request.
1428 1429 1430 1431 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1428 def resend_email(resource_group_name, certificate_order_name, custom_headers:nil) response = resend_email_async(resource_group_name, certificate_order_name, custom_headers:custom_headers).value! nil end |
#resend_email_async(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Concurrent::Promise
Resend certificate email.
Resend certificate email.
resource belongs. to the HTTP request.
1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1463 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, "'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, 'certificate_order_name is nil' if certificate_order_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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/resendEmail' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#resend_email_with_http_info(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Resend certificate email.
Resend certificate email.
resource belongs. will be added to the HTTP request.
1446 1447 1448 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1446 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:custom_headers).value! end |
#resend_request_emails(resource_group_name, certificate_order_name, name_identifier, custom_headers: nil) ⇒ Object
Verify domain ownership for this certificate order.
Verify domain ownership for this certificate order.
resource belongs. will be added to the HTTP request.
1524 1525 1526 1527 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1524 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:custom_headers).value! nil end |
#resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers: nil) ⇒ Concurrent::Promise
Verify domain ownership for this certificate order.
Verify domain ownership for this certificate order.
resource belongs. to the HTTP request.
1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1561 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, "'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, '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? 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? # Serialize Request request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::NameIdentifier.mapper() request_content = @client.serialize(request_mapper, 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/{certificateOrderName}/resendRequestEmails' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#resend_request_emails_with_http_info(resource_group_name, certificate_order_name, name_identifier, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Verify domain ownership for this certificate order.
Verify domain ownership for this certificate order.
resource belongs. will be added to the HTTP request.
1543 1544 1545 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1543 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:custom_headers).value! end |
#retrieve_certificate_actions(resource_group_name, name, custom_headers: nil) ⇒ Array
Retrieve the list of certificate actions.
Retrieve the list of certificate actions.
resource belongs. will be added to the HTTP request.
1842 1843 1844 1845 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1842 def retrieve_certificate_actions(resource_group_name, name, custom_headers:nil) response = retrieve_certificate_actions_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#retrieve_certificate_actions_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Retrieve the list of certificate actions.
Retrieve the list of certificate actions.
resource belongs. to the HTTP request.
1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1877 def retrieve_certificate_actions_async(resource_group_name, 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, 'name is nil' if 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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveCertificateActions' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'CertificateOrderActionElementType', type: { name: 'Composite', class_name: 'CertificateOrderAction' } } } } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#retrieve_certificate_actions_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Retrieve the list of certificate actions.
Retrieve the list of certificate actions.
resource belongs. will be added to the HTTP request.
1860 1861 1862 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1860 def retrieve_certificate_actions_with_http_info(resource_group_name, name, custom_headers:nil) retrieve_certificate_actions_async(resource_group_name, name, custom_headers:custom_headers).value! end |
#retrieve_certificate_email_history(resource_group_name, name, custom_headers: nil) ⇒ Array
Retrieve email history.
Retrieve email history.
resource belongs. will be added to the HTTP request.
1964 1965 1966 1967 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1964 def retrieve_certificate_email_history(resource_group_name, name, custom_headers:nil) response = retrieve_certificate_email_history_async(resource_group_name, name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#retrieve_certificate_email_history_async(resource_group_name, name, custom_headers: nil) ⇒ Concurrent::Promise
Retrieve email history.
Retrieve email history.
resource belongs. to the HTTP request.
1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1999 def retrieve_certificate_email_history_async(resource_group_name, 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, 'name is nil' if 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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/retrieveEmailHistory' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'CertificateEmailElementType', type: { name: 'Composite', class_name: 'CertificateEmail' } } } } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#retrieve_certificate_email_history_with_http_info(resource_group_name, name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Retrieve email history.
Retrieve email history.
resource belongs. will be added to the HTTP request.
1982 1983 1984 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1982 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:custom_headers).value! end |
#retrieve_site_seal(resource_group_name, certificate_order_name, site_seal_request, custom_headers: nil) ⇒ SiteSeal
Verify domain ownership for this certificate order.
Verify domain ownership for this certificate order.
resource belongs. will be added to the HTTP request.
1631 1632 1633 1634 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1631 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:custom_headers).value! response.body unless response.nil? end |
#retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers: nil) ⇒ Concurrent::Promise
Verify domain ownership for this certificate order.
Verify domain ownership for this certificate order.
resource belongs. to the HTTP request.
1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1668 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, "'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, '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? 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? # Serialize Request request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::SiteSealRequest.mapper() request_content = @client.serialize(request_mapper, 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/{certificateOrderName}/retrieveSiteSeal' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::SiteSeal.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#retrieve_site_seal_with_http_info(resource_group_name, certificate_order_name, site_seal_request, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Verify domain ownership for this certificate order.
Verify domain ownership for this certificate order.
resource belongs. will be added to the HTTP request.
1650 1651 1652 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1650 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:custom_headers).value! end |
#update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ AppServiceCertificateOrder
Create or update a certificate purchase order.
Create or update a certificate purchase order.
resource belongs.
- AppServiceCertificateOrderPatchResource
-
Distinguished name to to use for
the certificate order. will be added to the HTTP request.
580 581 582 583 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 580 def update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil) response = update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ Concurrent::Promise
Create or update a certificate purchase order.
Create or update a certificate purchase order.
resource belongs.
- AppServiceCertificateOrderPatchResource
-
Distinguished name to to use for
the certificate order. to the HTTP request.
621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 621 def 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, "'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, '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? 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? # Serialize Request request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrderPatchResource.mapper() request_content = @client.serialize(request_mapper, 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/{certificateOrderName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:patch, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 201 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrder.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrder.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ AppServiceCertificateResource
Creates or updates a certificate and associates with key vault secret.
Creates or updates a certificate and associates with key vault secret.
resource belongs. certificate resource Id. will be added to the HTTP request.
1080 1081 1082 1083 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1080 def update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil) response = update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ Concurrent::Promise
Creates or updates a certificate and associates with key vault secret.
Creates or updates a certificate and associates with key vault secret.
resource belongs. certificate resource Id. to the HTTP request.
1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1121 def update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'key_vault_certificate is nil' if key_vault_certificate.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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificatePatchResource.mapper() request_content = @client.serialize(request_mapper, key_vault_certificate) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'name' => name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:patch, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 201 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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateResource.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates or updates a certificate and associates with key vault secret.
Creates or updates a certificate and associates with key vault secret.
resource belongs. certificate resource Id. will be added to the HTTP request.
1101 1102 1103 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1101 def update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:nil) update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers:custom_headers).value! end |
#update_with_http_info(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a certificate purchase order.
Create or update a certificate purchase order.
resource belongs.
- AppServiceCertificateOrderPatchResource
-
Distinguished name to to use for
the certificate order. will be added to the HTTP request.
601 602 603 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 601 def update_with_http_info(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil) update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers).value! end |
#validate_purchase_information(app_service_certificate_order, custom_headers: nil) ⇒ Object
Validate information for a certificate order.
Validate information for a certificate order.
for a certificate order. will be added to the HTTP request.
127 128 129 130 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 127 def validate_purchase_information(app_service_certificate_order, custom_headers:nil) response = validate_purchase_information_async(app_service_certificate_order, custom_headers:custom_headers).value! nil end |
#validate_purchase_information_async(app_service_certificate_order, custom_headers: nil) ⇒ Concurrent::Promise
Validate information for a certificate order.
Validate information for a certificate order.
for a certificate order. to the HTTP request.
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 160 def validate_purchase_information_async(app_service_certificate_order, custom_headers:nil) fail ArgumentError, 'app_service_certificate_order is nil' if app_service_certificate_order.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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::Web::Mgmt::V2018_02_01::Models::AppServiceCertificateOrder.mapper() request_content = @client.serialize(request_mapper, app_service_certificate_order) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#validate_purchase_information_with_http_info(app_service_certificate_order, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Validate information for a certificate order.
Validate information for a certificate order.
for a certificate order. will be added to the HTTP request.
144 145 146 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 144 def validate_purchase_information_with_http_info(app_service_certificate_order, custom_headers:nil) validate_purchase_information_async(app_service_certificate_order, custom_headers:custom_headers).value! end |
#verify_domain_ownership(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Object
Verify domain ownership for this certificate order.
Verify domain ownership for this certificate order.
resource belongs. will be added to the HTTP request.
1746 1747 1748 1749 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1746 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:custom_headers).value! nil end |
#verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ Concurrent::Promise
Verify domain ownership for this certificate order.
Verify domain ownership for this certificate order.
resource belongs. to the HTTP request.
1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1781 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, "'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, 'certificate_order_name is nil' if certificate_order_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 request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/verifyDomainOwnership' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'certificateOrderName' => certificate_order_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.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? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? result end promise.execute end |
#verify_domain_ownership_with_http_info(resource_group_name, certificate_order_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Verify domain ownership for this certificate order.
Verify domain ownership for this certificate order.
resource belongs. will be added to the HTTP request.
1764 1765 1766 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1764 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:custom_headers).value! end |