Class: Azure::ARM::Web::CertificateOrders
- Inherits:
-
Object
- Object
- Azure::ARM::Web::CertificateOrders
- Includes:
- Models, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_web/certificate_orders.rb
Overview
Use these APIs to manage Azure Websites resources through the Azure Resource Manager. All task operations conform to the HTTP/1.1 protocol specification and each operation returns an x-ms-request-id header that can be used to obtain information about the request. You must make sure that requests made to these resources are secure. For more information, see <a href=“msdn.microsoft.com/en-us/library/azure/dn790557.aspx”>Authenticating Azure Resource Manager requests.</a>
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Reference to the WebSiteManagementClient.
Instance Method Summary collapse
-
#create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) ⇒ CertificateOrderCertificate
Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it’s ready.
-
#create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) ⇒ Concurrent::Promise
Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it’s ready.
-
#create_or_update_certificate_order(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) ⇒ CertificateOrder
Create or update a certificate purchase order.
-
#create_or_update_certificate_order_async(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) ⇒ Concurrent::Promise
Create or update a certificate purchase order.
-
#create_or_update_certificate_order_with_http_info(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a certificate purchase order.
-
#create_or_update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it’s ready.
-
#delete_certificate(resource_group_name, certificate_order_name, name, custom_headers = nil) ⇒ Object
Deletes the certificate associated with the certificate order.
-
#delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Deletes the certificate associated with the certificate order.
-
#delete_certificate_order(resource_group_name, name, custom_headers = nil) ⇒ Object
Delete an existing certificate order.
-
#delete_certificate_order_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Delete an existing certificate order.
-
#delete_certificate_order_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Delete an existing certificate order.
-
#delete_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the certificate associated with the certificate order.
-
#get_certificate(resource_group_name, certificate_order_name, name, custom_headers = nil) ⇒ CertificateOrderCertificate
Get certificate associated with the certificate order.
-
#get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get certificate associated with the certificate order.
-
#get_certificate_order(resource_group_name, name, custom_headers = nil) ⇒ CertificateOrder
Get a certificate order.
-
#get_certificate_order_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get a certificate order.
-
#get_certificate_order_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get a certificate order.
-
#get_certificate_orders(resource_group_name, custom_headers = nil) ⇒ CertificateOrderCollection
Get certificate orders in a resource group.
-
#get_certificate_orders_async(resource_group_name, custom_headers = nil) ⇒ Concurrent::Promise
Get certificate orders in a resource group.
-
#get_certificate_orders_with_http_info(resource_group_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get certificate orders in a resource group.
-
#get_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get certificate associated with the certificate order.
-
#get_certificates(resource_group_name, certificate_order_name, custom_headers = nil) ⇒ CertificateOrderCertificateCollection
List all certificates associated with a certificate order (only one certificate can be associated with an order at a time).
-
#get_certificates_async(resource_group_name, certificate_order_name, custom_headers = nil) ⇒ Concurrent::Promise
List all certificates associated with a certificate order (only one certificate can be associated with an order at a time).
-
#get_certificates_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
List all certificates associated with a certificate order (only one certificate can be associated with an order at a time).
-
#initialize(client) ⇒ CertificateOrders
constructor
Creates and initializes a new instance of the CertificateOrders class.
-
#reissue_certificate_order(resource_group_name, name, reissue_certificate_order_request, custom_headers = nil) ⇒ Object
Reissue an existing certificate order.
-
#reissue_certificate_order_async(resource_group_name, name, reissue_certificate_order_request, custom_headers = nil) ⇒ Concurrent::Promise
Reissue an existing certificate order.
-
#reissue_certificate_order_with_http_info(resource_group_name, name, reissue_certificate_order_request, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Reissue an existing certificate order.
-
#renew_certificate_order(resource_group_name, name, renew_certificate_order_request, custom_headers = nil) ⇒ Object
Renew an existing certificate order.
-
#renew_certificate_order_async(resource_group_name, name, renew_certificate_order_request, custom_headers = nil) ⇒ Concurrent::Promise
Renew an existing certificate order.
-
#renew_certificate_order_with_http_info(resource_group_name, name, renew_certificate_order_request, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Renew an existing certificate order.
-
#resend_certificate_email(resource_group_name, name, custom_headers = nil) ⇒ Object
Resend certificate email.
-
#resend_certificate_email_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Resend certificate email.
-
#resend_certificate_email_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Resend certificate email.
-
#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
Retrive email history.
-
#retrieve_certificate_email_history_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Retrive email history.
-
#retrieve_certificate_email_history_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Retrive email history.
-
#update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) ⇒ CertificateOrderCertificate
Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it’s ready.
-
#update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) ⇒ Concurrent::Promise
Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it’s ready.
-
#update_certificate_order(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) ⇒ CertificateOrder
Create or update a certificate purchase order.
-
#update_certificate_order_async(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) ⇒ Concurrent::Promise
Create or update a certificate purchase order.
-
#update_certificate_order_with_http_info(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a certificate purchase order.
-
#update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it’s ready.
-
#verify_domain_ownership(resource_group_name, name, custom_headers = nil) ⇒ Object
Verify domain ownership for this certificate order.
-
#verify_domain_ownership_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Verify domain ownership for this certificate order.
-
#verify_domain_ownership_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Verify domain ownership for this certificate order.
Constructor Details
#initialize(client) ⇒ CertificateOrders
Creates and initializes a new instance of the CertificateOrders class.
25 26 27 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 25 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns reference to the WebSiteManagementClient.
30 31 32 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 30 def client @client end |
Instance Method Details
#create_or_update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) ⇒ CertificateOrderCertificate
Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it’s ready
csm Id will be added to the HTTP request.
144 145 146 147 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 144 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).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
Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it’s ready
csm Id to the HTTP request.
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 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 181 def 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, '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 = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request request_mapper = CertificateOrderCertificate.mapper() request_content = @client.serialize(request_mapper, key_vault_certificate, '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}' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = CertificateOrderCertificate.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#create_or_update_certificate_order(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) ⇒ CertificateOrder
Create or update a certificate purchase order
to be used for purchasing certificate will be added to the HTTP request.
558 559 560 561 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 558 def create_or_update_certificate_order(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) response = create_or_update_certificate_order_async(resource_group_name, name, certificate_distinguished_name, custom_headers).value! response.body unless response.nil? end |
#create_or_update_certificate_order_async(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) ⇒ Concurrent::Promise
Create or update a certificate purchase order
to be used for purchasing certificate to the HTTP request.
591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 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 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 591 def create_or_update_certificate_order_async(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'certificate_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 = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request request_mapper = CertificateOrder.mapper() request_content = @client.serialize(request_mapper, certificate_distinguished_name, 'certificate_distinguished_name') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}' = { 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}, body: request_content, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = CertificateOrder.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#create_or_update_certificate_order_with_http_info(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a certificate purchase order
to be used for purchasing certificate will be added to the HTTP request.
575 576 577 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 575 def create_or_update_certificate_order_with_http_info(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) create_or_update_certificate_order_async(resource_group_name, name, certificate_distinguished_name, custom_headers).value! end |
#create_or_update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it’s ready
csm Id will be added to the HTTP request.
163 164 165 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 163 def create_or_update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) create_or_update_certificate_async(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers).value! end |
#delete_certificate(resource_group_name, certificate_order_name, name, custom_headers = nil) ⇒ Object
Deletes the certificate associated with the certificate order
will be added to the HTTP request.
258 259 260 261 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 258 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).value! response.body unless response.nil? end |
#delete_certificate_async(resource_group_name, certificate_order_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Deletes the certificate associated with the certificate order
to the HTTP request.
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 289 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, '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 = {} # 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}' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#delete_certificate_order(resource_group_name, name, custom_headers = nil) ⇒ Object
Delete an existing certificate order
will be added to the HTTP request.
666 667 668 669 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 666 def delete_certificate_order(resource_group_name, name, custom_headers = nil) response = delete_certificate_order_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#delete_certificate_order_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Delete an existing certificate order
to the HTTP request.
695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 695 def delete_certificate_order_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#delete_certificate_order_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Delete an existing certificate order
will be added to the HTTP request.
681 682 683 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 681 def delete_certificate_order_with_http_info(resource_group_name, name, custom_headers = nil) delete_certificate_order_async(resource_group_name, name, custom_headers).value! end |
#delete_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes the certificate associated with the certificate order
will be added to the HTTP request.
274 275 276 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 274 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).value! end |
#get_certificate(resource_group_name, certificate_order_name, name, custom_headers = nil) ⇒ CertificateOrderCertificate
Get certificate associated with the certificate order
will be added to the HTTP request.
43 44 45 46 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 43 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).value! response.body unless response.nil? end |
#get_certificate_async(resource_group_name, certificate_order_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get certificate associated with the certificate order
to the HTTP request.
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 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 74 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, '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 = {} # 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}' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = CertificateOrderCertificate.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_order(resource_group_name, name, custom_headers = nil) ⇒ CertificateOrder
Get a certificate order
will be added to the HTTP request.
462 463 464 465 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 462 def get_certificate_order(resource_group_name, name, custom_headers = nil) response = get_certificate_order_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#get_certificate_order_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Get a certificate order
to the HTTP request.
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 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 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 491 def get_certificate_order_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = CertificateOrder.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_order_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get a certificate order
will be added to the HTTP request.
477 478 479 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 477 def get_certificate_order_with_http_info(resource_group_name, name, custom_headers = nil) get_certificate_order_async(resource_group_name, name, custom_headers).value! end |
#get_certificate_orders(resource_group_name, custom_headers = nil) ⇒ CertificateOrderCollection
Get certificate orders in a resource group
will be added to the HTTP request.
859 860 861 862 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 859 def get_certificate_orders(resource_group_name, custom_headers = nil) response = get_certificate_orders_async(resource_group_name, custom_headers).value! response.body unless response.nil? end |
#get_certificate_orders_async(resource_group_name, custom_headers = nil) ⇒ Concurrent::Promise
Get certificate orders in a resource group
to the HTTP request.
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 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 886 def get_certificate_orders_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # 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' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = CertificateOrderCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_orders_with_http_info(resource_group_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get certificate orders in a resource group
will be added to the HTTP request.
873 874 875 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 873 def get_certificate_orders_with_http_info(resource_group_name, custom_headers = nil) get_certificate_orders_async(resource_group_name, custom_headers).value! end |
#get_certificate_with_http_info(resource_group_name, certificate_order_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Get certificate associated with the certificate order
will be added to the HTTP request.
59 60 61 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 59 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).value! end |
#get_certificates(resource_group_name, certificate_order_name, custom_headers = nil) ⇒ CertificateOrderCertificateCollection
List all certificates associated with a certificate order (only one certificate can be associated with an order at a time)
will be added to the HTTP request.
951 952 953 954 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 951 def get_certificates(resource_group_name, certificate_order_name, custom_headers = nil) response = get_certificates_async(resource_group_name, certificate_order_name, custom_headers).value! response.body unless response.nil? end |
#get_certificates_async(resource_group_name, certificate_order_name, custom_headers = nil) ⇒ Concurrent::Promise
List all certificates associated with a certificate order (only one certificate can be associated with an order at a time)
to the HTTP request.
982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 982 def get_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, '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 = {} # 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' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = CertificateOrderCertificateCollection.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_certificates_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
List all certificates associated with a certificate order (only one certificate can be associated with an order at a time)
will be added to the HTTP request.
967 968 969 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 967 def get_certificates_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) get_certificates_async(resource_group_name, certificate_order_name, custom_headers).value! end |
#reissue_certificate_order(resource_group_name, name, reissue_certificate_order_request, custom_headers = nil) ⇒ Object
Reissue an existing certificate order
Reissue parameters will be added to the HTTP request.
1049 1050 1051 1052 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1049 def reissue_certificate_order(resource_group_name, name, reissue_certificate_order_request, custom_headers = nil) response = reissue_certificate_order_async(resource_group_name, name, reissue_certificate_order_request, custom_headers).value! response.body unless response.nil? end |
#reissue_certificate_order_async(resource_group_name, name, reissue_certificate_order_request, custom_headers = nil) ⇒ Concurrent::Promise
Reissue an existing certificate order
Reissue parameters to the HTTP request.
1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1082 def reissue_certificate_order_async(resource_group_name, name, reissue_certificate_order_request, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '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 = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request request_mapper = ReissueCertificateOrderRequest.mapper() request_content = @client.serialize(request_mapper, reissue_certificate_order_request, 'reissue_certificate_order_request') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/reissue' = { 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}, body: request_content, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#reissue_certificate_order_with_http_info(resource_group_name, name, reissue_certificate_order_request, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Reissue an existing certificate order
Reissue parameters will be added to the HTTP request.
1066 1067 1068 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1066 def reissue_certificate_order_with_http_info(resource_group_name, name, reissue_certificate_order_request, custom_headers = nil) reissue_certificate_order_async(resource_group_name, name, reissue_certificate_order_request, custom_headers).value! end |
#renew_certificate_order(resource_group_name, name, renew_certificate_order_request, custom_headers = nil) ⇒ Object
Renew an existing certificate order
parameters will be added to the HTTP request.
1149 1150 1151 1152 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1149 def renew_certificate_order(resource_group_name, name, renew_certificate_order_request, custom_headers = nil) response = renew_certificate_order_async(resource_group_name, name, renew_certificate_order_request, custom_headers).value! response.body unless response.nil? end |
#renew_certificate_order_async(resource_group_name, name, renew_certificate_order_request, custom_headers = nil) ⇒ Concurrent::Promise
Renew an existing certificate order
parameters to the HTTP request.
1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1182 def renew_certificate_order_async(resource_group_name, name, renew_certificate_order_request, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '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 = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request request_mapper = RenewCertificateOrderRequest.mapper() request_content = @client.serialize(request_mapper, renew_certificate_order_request, 'renew_certificate_order_request') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/renew' = { 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}, body: request_content, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#renew_certificate_order_with_http_info(resource_group_name, name, renew_certificate_order_request, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Renew an existing certificate order
parameters will be added to the HTTP request.
1166 1167 1168 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1166 def renew_certificate_order_with_http_info(resource_group_name, name, renew_certificate_order_request, custom_headers = nil) renew_certificate_order_async(resource_group_name, name, renew_certificate_order_request, custom_headers).value! end |
#resend_certificate_email(resource_group_name, name, custom_headers = nil) ⇒ Object
Resend certificate email
will be added to the HTTP request.
1463 1464 1465 1466 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1463 def resend_certificate_email(resource_group_name, name, custom_headers = nil) response = resend_certificate_email_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#resend_certificate_email_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Resend certificate email
to the HTTP request.
1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1492 def resend_certificate_email_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/resendEmail' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#resend_certificate_email_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Resend certificate email
will be added to the HTTP request.
1478 1479 1480 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1478 def resend_certificate_email_with_http_info(resource_group_name, name, custom_headers = nil) resend_certificate_email_async(resource_group_name, name, custom_headers).value! end |
#retrieve_certificate_actions(resource_group_name, name, custom_headers = nil) ⇒ Array
Retrieve the list of certificate actions
will be added to the HTTP request.
1247 1248 1249 1250 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1247 def retrieve_certificate_actions(resource_group_name, name, custom_headers = nil) response = retrieve_certificate_actions_async(resource_group_name, name, 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
to the HTTP request.
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 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1276 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, '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 = {} # 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' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { required: false, serialized_name: 'parsed_response', type: { name: 'Sequence', element: { required: false, serialized_name: 'CertificateOrderActionElementType', type: { name: 'Composite', class_name: 'CertificateOrderAction' } } } } result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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
will be added to the HTTP request.
1262 1263 1264 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1262 def retrieve_certificate_actions_with_http_info(resource_group_name, name, custom_headers = nil) retrieve_certificate_actions_async(resource_group_name, name, custom_headers).value! end |
#retrieve_certificate_email_history(resource_group_name, name, custom_headers = nil) ⇒ Array
Retrive email history
will be added to the HTTP request.
1355 1356 1357 1358 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1355 def retrieve_certificate_email_history(resource_group_name, name, custom_headers = nil) response = retrieve_certificate_email_history_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#retrieve_certificate_email_history_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Retrive email history
to the HTTP request.
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 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1384 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, '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 = {} # 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' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { required: false, serialized_name: 'parsed_response', type: { name: 'Sequence', element: { required: false, serialized_name: 'CertificateEmailElementType', type: { name: 'Composite', class_name: 'CertificateEmail' } } } } result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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
Retrive email history
will be added to the HTTP request.
1370 1371 1372 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1370 def retrieve_certificate_email_history_with_http_info(resource_group_name, name, custom_headers = nil) retrieve_certificate_email_history_async(resource_group_name, name, custom_headers).value! end |
#update_certificate(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) ⇒ CertificateOrderCertificate
Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it’s ready
csm Id will be added to the HTTP request.
349 350 351 352 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 349 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).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
Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it’s ready
csm Id to the HTTP request.
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 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 386 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, '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 = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request request_mapper = CertificateOrderCertificate.mapper() request_content = @client.serialize(request_mapper, key_vault_certificate, '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}' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :patch, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = CertificateOrderCertificate.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_order(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) ⇒ CertificateOrder
Create or update a certificate purchase order
to be used for purchasing certificate will be added to the HTTP request.
752 753 754 755 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 752 def update_certificate_order(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) response = update_certificate_order_async(resource_group_name, name, certificate_distinguished_name, custom_headers).value! response.body unless response.nil? end |
#update_certificate_order_async(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) ⇒ Concurrent::Promise
Create or update a certificate purchase order
to be used for purchasing certificate to the HTTP request.
785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 785 def update_certificate_order_async(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, 'certificate_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 = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? request_headers['Content-Type'] = 'application/json; charset=utf-8' # Serialize Request request_mapper = CertificateOrder.mapper() request_content = @client.serialize(request_mapper, certificate_distinguished_name, 'certificate_distinguished_name') request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}' = { 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}, body: request_content, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :patch, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = CertificateOrder.mapper() result.body = @client.deserialize(result_mapper, parsed_response, 'result.body') 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_order_with_http_info(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Create or update a certificate purchase order
to be used for purchasing certificate will be added to the HTTP request.
769 770 771 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 769 def update_certificate_order_with_http_info(resource_group_name, name, certificate_distinguished_name, custom_headers = nil) update_certificate_order_async(resource_group_name, name, certificate_distinguished_name, custom_headers).value! end |
#update_certificate_with_http_info(resource_group_name, certificate_order_name, name, key_vault_certificate, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Associates a Key Vault secret to a certificate store that will be used for storing the certificate once it’s ready
csm Id will be added to the HTTP request.
368 369 370 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 368 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).value! end |
#verify_domain_ownership(resource_group_name, name, custom_headers = nil) ⇒ Object
Verify domain ownership for this certificate order
will be added to the HTTP request.
1547 1548 1549 1550 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1547 def verify_domain_ownership(resource_group_name, name, custom_headers = nil) response = verify_domain_ownership_async(resource_group_name, name, custom_headers).value! response.body unless response.nil? end |
#verify_domain_ownership_async(resource_group_name, name, custom_headers = nil) ⇒ Concurrent::Promise
Verify domain ownership for this certificate order
to the HTTP request.
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 1616 1617 1618 1619 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1576 def verify_domain_ownership_async(resource_group_name, name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'name is nil' if name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{name}/verifyDomainOwnership' = { 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 || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#verify_domain_ownership_with_http_info(resource_group_name, name, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Verify domain ownership for this certificate order
will be added to the HTTP request.
1562 1563 1564 |
# File 'lib/generated/azure_mgmt_web/certificate_orders.rb', line 1562 def verify_domain_ownership_with_http_info(resource_group_name, name, custom_headers = nil) verify_domain_ownership_async(resource_group_name, name, custom_headers).value! end |