Class: Azure::ARM::Web::AppServiceCertificateOrders
- Inherits:
-
Object
- Object
- Azure::ARM::Web::AppServiceCertificateOrders
- Includes:
- MsRestAzure
- Defined in:
- lib/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.
-
#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/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/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.
1737 1738 1739 1740 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1737 def begin_create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) response = begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers).value! response.body unless response.nil? end |
#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.
1776 1777 1778 1779 1780 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 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1776 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'certificate_distinguished_name is nil' if certificate_distinguished_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' 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 = Azure::ARM::Web::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' => 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 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::ARM::Web::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::ARM::Web::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.
1864 1865 1866 1867 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1864 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).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.
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 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1905 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, '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? api_version = '2015-08-01' 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 = Azure::ARM::Web::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' => 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 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::ARM::Web::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::ARM::Web::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.
1885 1886 1887 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1885 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).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.
1757 1758 1759 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1757 def begin_create_or_update_with_http_info(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) begin_create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers).value! end |
#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.
418 419 420 421 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 418 def create_or_update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers = nil) response = create_or_update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers).value! response.body unless response.nil? end |
#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.
435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 435 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) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::ARM::Web::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.
762 763 764 765 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 762 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
resource belongs. certificate resource Id. will be added to the HTTP request.
response.
780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 780 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) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::ARM::Web::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.
465 466 467 468 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 465 def delete(resource_group_name, certificate_order_name, custom_headers = nil) response = delete_async(resource_group_name, certificate_order_name, 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.
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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 500 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' 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}' 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' => 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 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.
811 812 813 814 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 811 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! 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.
848 849 850 851 852 853 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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 848 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? api_version = '2015-08-01' 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}' 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' => 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 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.
830 831 832 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 830 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 |
#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.
483 484 485 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 483 def delete_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) delete_async(resource_group_name, certificate_order_name, 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.
316 317 318 319 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 316 def get(resource_group_name, certificate_order_name, custom_headers = nil) response = get_async(resource_group_name, certificate_order_name, custom_headers).value! response.body unless response.nil? end |
#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.
351 352 353 354 355 356 357 358 359 360 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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 351 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' 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}' 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' => 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 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::ARM::Web::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.
656 657 658 659 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 656 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 the certificate associated with a certificate order.
Get the certificate associated with a certificate order.
resource belongs. to the HTTP request.
693 694 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 739 740 741 742 743 744 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 693 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? api_version = '2015-08-01' 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}' 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' => 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 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::ARM::Web::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.
675 676 677 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 675 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_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.
334 335 336 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 334 def get_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) get_async(resource_group_name, certificate_order_name, custom_headers).value! end |
#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/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 34 def list(custom_headers = nil) first_page = list_as_lazy(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.
2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2268 def list_as_lazy(custom_headers = nil) response = list_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_next_async(next_page_link, custom_headers) 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 |
# File 'lib/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? api_version = '2015-08-01' 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}/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' => 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 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::ARM::Web::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.
219 220 221 222 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 219 def list_by_resource_group(resource_group_name, custom_headers = nil) first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) first_page.get_all_items end |
#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.
2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2292 def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) response = list_by_resource_group_async(resource_group_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_by_resource_group_next_async(next_page_link, custom_headers) 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.
252 253 254 255 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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 252 def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' 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' 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' => 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 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::ARM::Web::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.
2083 2084 2085 2086 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2083 def list_by_resource_group_next(next_page_link, custom_headers = nil) response = list_by_resource_group_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end |
#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.
2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2116 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 = {} # 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 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::ARM::Web::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.
2100 2101 2102 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2100 def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) list_by_resource_group_next_async(next_page_link, custom_headers).value! end |
#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.
236 237 238 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 236 def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) list_by_resource_group_async(resource_group_name, custom_headers).value! end |
#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.
555 556 557 558 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 555 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) 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.
2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2317 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).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) 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.
590 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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 590 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' 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' 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' => 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 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::ARM::Web::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.
2176 2177 2178 2179 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2176 def list_certificates_next(next_page_link, custom_headers = nil) response = list_certificates_next_async(next_page_link, 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.
2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2209 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 = {} # 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 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::ARM::Web::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.
2193 2194 2195 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2193 def list_certificates_next_with_http_info(next_page_link, custom_headers = nil) list_certificates_next_async(next_page_link, 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.
573 574 575 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 573 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).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.
1990 1991 1992 1993 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1990 def list_next(next_page_link, custom_headers = nil) response = list_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end |
#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.
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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2023 def list_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.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 = '{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 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::ARM::Web::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.
2007 2008 2009 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 2007 def list_next_with_http_info(next_page_link, custom_headers = nil) list_next_async(next_page_link, 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/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 49 def list_with_http_info(custom_headers = nil) list_async(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.
905 906 907 908 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 905 def reissue(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers = nil) response = reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers).value! nil end |
#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.
944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 944 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'reissue_certificate_order_request is nil' if reissue_certificate_order_request.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' 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 = Azure::ARM::Web::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' => 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 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.
925 926 927 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 925 def reissue_with_http_info(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers = nil) reissue_async(resource_group_name, certificate_order_name, reissue_certificate_order_request, custom_headers).value! end |
#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.
1010 1011 1012 1013 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1010 def renew(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers = nil) response = renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers).value! nil end |
#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.
1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1049 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'renew_certificate_order_request is nil' if renew_certificate_order_request.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' 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 = Azure::ARM::Web::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' => 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 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.
1030 1031 1032 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1030 def renew_with_http_info(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers = nil) renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers).value! end |
#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.
1113 1114 1115 1116 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1113 def resend_email(resource_group_name, certificate_order_name, custom_headers = nil) response = resend_email_async(resource_group_name, certificate_order_name, custom_headers).value! nil end |
#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.
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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1148 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' 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}/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' => 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 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.
1131 1132 1133 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1131 def resend_email_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) resend_email_async(resource_group_name, certificate_order_name, custom_headers).value! end |
#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.
1203 1204 1205 1206 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1203 def resend_request_emails(resource_group_name, certificate_order_name, name_identifier, custom_headers = nil) response = resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers).value! nil end |
#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.
1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1240 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'name_identifier is nil' if name_identifier.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' 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 = Azure::ARM::Web::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' => 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 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.
1222 1223 1224 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1222 def resend_request_emails_with_http_info(resource_group_name, certificate_order_name, name_identifier, custom_headers = nil) resend_request_emails_async(resource_group_name, certificate_order_name, name_identifier, custom_headers).value! end |
#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.
1507 1508 1509 1510 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1507 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.
Retrieve the list of certificate actions.
resource belongs. to the HTTP request.
1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1542 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? api_version = '2015-08-01' 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' 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' => 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 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? # 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) 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.
1525 1526 1527 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1525 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
Retrieve email history.
Retrieve email history.
resource belongs. will be added to the HTTP request.
1621 1622 1623 1624 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1621 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
Retrieve email history.
Retrieve email history.
resource belongs. to the HTTP request.
1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1656 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? api_version = '2015-08-01' 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' 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' => 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 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? # 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) 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.
1639 1640 1641 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1639 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 |
#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.
1306 1307 1308 1309 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1306 def retrieve_site_seal(resource_group_name, certificate_order_name, site_seal_request, custom_headers = nil) response = retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers).value! response.body unless response.nil? end |
#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.
1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1343 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, 'site_seal_request is nil' if site_seal_request.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' 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 = Azure::ARM::Web::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' => 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 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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::ARM::Web::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.
1325 1326 1327 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1325 def retrieve_site_seal_with_http_info(resource_group_name, certificate_order_name, site_seal_request, custom_headers = nil) retrieve_site_seal_async(resource_group_name, certificate_order_name, site_seal_request, custom_headers).value! end |
#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.
124 125 126 127 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 124 def validate_purchase_information(app_service_certificate_order, custom_headers = nil) response = validate_purchase_information_async(app_service_certificate_order, 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.
157 158 159 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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 157 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? api_version = '2015-08-01' 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 = Azure::ARM::Web::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' => 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 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.
141 142 143 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 141 def validate_purchase_information_with_http_info(app_service_certificate_order, custom_headers = nil) validate_purchase_information_async(app_service_certificate_order, 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.
1417 1418 1419 1420 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1417 def verify_domain_ownership(resource_group_name, certificate_order_name, custom_headers = nil) response = verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers).value! nil end |
#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.
1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 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 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1452 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, 'certificate_order_name is nil' if certificate_order_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? api_version = '2015-08-01' 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}/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' => 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 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.
1435 1436 1437 |
# File 'lib/generated/azure_mgmt_web/app_service_certificate_orders.rb', line 1435 def verify_domain_ownership_with_http_info(resource_group_name, certificate_order_name, custom_headers = nil) verify_domain_ownership_async(resource_group_name, certificate_order_name, custom_headers).value! end |