azure_mgmt_web 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/azure_mgmt_web.gemspec +2 -2
- data/lib/azure_mgmt_web.rb +27 -4
- data/lib/azure_mgmt_web/certificate_orders.rb +1596 -0
- data/lib/azure_mgmt_web/certificates.rb +383 -55
- data/lib/azure_mgmt_web/classic_mobile_services.rb +107 -16
- data/lib/azure_mgmt_web/domains.rb +227 -33
- data/lib/azure_mgmt_web/global.rb +446 -78
- data/lib/azure_mgmt_web/global_certificate_order.rb +206 -0
- data/lib/azure_mgmt_web/global_domain_registration.rb +174 -29
- data/lib/azure_mgmt_web/global_resource_groups.rb +33 -7
- data/lib/azure_mgmt_web/hosting_environments.rb +1500 -213
- data/lib/azure_mgmt_web/managed_hosting_environments.rb +346 -55
- data/lib/azure_mgmt_web/models/access_control_entry_action.rb +1 -1
- data/lib/azure_mgmt_web/models/address.rb +1 -1
- data/lib/azure_mgmt_web/models/address_response.rb +1 -1
- data/lib/azure_mgmt_web/models/api_definition_info.rb +1 -1
- data/lib/azure_mgmt_web/models/application_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/arm_plan.rb +1 -1
- data/lib/azure_mgmt_web/models/auto_heal_action_type.rb +1 -1
- data/lib/azure_mgmt_web/models/auto_heal_actions.rb +1 -1
- data/lib/azure_mgmt_web/models/auto_heal_custom_action.rb +1 -1
- data/lib/azure_mgmt_web/models/auto_heal_rules.rb +1 -1
- data/lib/azure_mgmt_web/models/auto_heal_triggers.rb +1 -1
- data/lib/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/azure_resource_type.rb +1 -1
- data/lib/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/backup_item.rb +7 -1
- data/lib/azure_mgmt_web/models/backup_item_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/backup_item_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/backup_item_status.rb +1 -1
- data/lib/azure_mgmt_web/models/backup_request.rb +7 -1
- data/lib/azure_mgmt_web/models/backup_request_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/backup_restore_operation_type.rb +1 -1
- data/lib/azure_mgmt_web/models/backup_schedule.rb +1 -1
- data/lib/azure_mgmt_web/models/built_in_authentication_provider.rb +1 -1
- data/lib/azure_mgmt_web/models/certificate.rb +7 -1
- data/lib/azure_mgmt_web/models/certificate_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/certificate_details.rb +98 -0
- data/lib/azure_mgmt_web/models/certificate_details_properties.rb +133 -0
- data/lib/azure_mgmt_web/models/certificate_email.rb +98 -0
- data/lib/azure_mgmt_web/models/certificate_email_properties.rb +67 -0
- data/lib/azure_mgmt_web/models/certificate_order.rb +98 -0
- data/lib/azure_mgmt_web/models/certificate_order_action.rb +98 -0
- data/lib/azure_mgmt_web/models/certificate_order_action_properties.rb +74 -0
- data/lib/azure_mgmt_web/models/certificate_order_action_type.rb +23 -0
- data/lib/azure_mgmt_web/models/certificate_order_certificate.rb +99 -0
- data/lib/azure_mgmt_web/models/certificate_order_certificate_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/certificate_order_certificate_properties.rb +82 -0
- data/lib/azure_mgmt_web/models/certificate_order_collection.rb +85 -0
- data/lib/azure_mgmt_web/models/certificate_order_properties.rb +254 -0
- data/lib/azure_mgmt_web/models/certificate_order_status.rb +24 -0
- data/lib/azure_mgmt_web/models/certificate_product_type.rb +16 -0
- data/lib/azure_mgmt_web/models/certificate_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/channels.rb +1 -1
- data/lib/azure_mgmt_web/models/classic_mobile_service.rb +7 -1
- data/lib/azure_mgmt_web/models/classic_mobile_service_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/classic_mobile_service_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/clone_ability_result.rb +1 -1
- data/lib/azure_mgmt_web/models/cloning_info.rb +1 -1
- data/lib/azure_mgmt_web/models/compute_mode_options.rb +2 -1
- data/lib/azure_mgmt_web/models/conn_string_info.rb +1 -1
- data/lib/azure_mgmt_web/models/conn_string_value_type_pair.rb +1 -1
- data/lib/azure_mgmt_web/models/connection_string_dictionary.rb +7 -1
- data/lib/azure_mgmt_web/models/contact.rb +1 -1
- data/lib/azure_mgmt_web/models/cors_settings.rb +1 -1
- data/lib/azure_mgmt_web/models/csm_move_resource_envelope.rb +1 -1
- data/lib/azure_mgmt_web/models/csm_publishing_profile_options.rb +1 -1
- data/lib/azure_mgmt_web/models/csm_site_recovery_entity.rb +11 -1
- data/lib/azure_mgmt_web/models/csm_slot_entity.rb +1 -1
- data/lib/azure_mgmt_web/models/csm_usage_quota.rb +1 -1
- data/lib/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/csr.rb +7 -1
- data/lib/azure_mgmt_web/models/csr_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/custom_host_name_dns_record_type.rb +1 -1
- data/lib/azure_mgmt_web/models/database_backup_setting.rb +1 -1
- data/lib/azure_mgmt_web/models/database_server_type.rb +1 -1
- data/lib/azure_mgmt_web/models/deleted_site.rb +7 -1
- data/lib/azure_mgmt_web/models/deleted_site_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/deleted_site_properties.rb +40 -1
- data/lib/azure_mgmt_web/models/deployment.rb +7 -1
- data/lib/azure_mgmt_web/models/deployment_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/deployment_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/domain.rb +7 -1
- data/lib/azure_mgmt_web/models/domain_availablility_check_result.rb +1 -1
- data/lib/azure_mgmt_web/models/domain_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/domain_control_center_sso_request.rb +1 -1
- data/lib/azure_mgmt_web/models/domain_properties.rb +15 -5
- data/lib/azure_mgmt_web/models/domain_purchase_consent.rb +1 -1
- data/lib/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +1 -1
- data/lib/azure_mgmt_web/models/domain_registration_input.rb +7 -1
- data/lib/azure_mgmt_web/models/domain_registration_input_properties.rb +15 -5
- data/lib/azure_mgmt_web/models/domain_status.rb +1 -1
- data/lib/azure_mgmt_web/models/domain_type.rb +1 -1
- data/lib/azure_mgmt_web/models/enabled_config.rb +1 -1
- data/lib/azure_mgmt_web/models/experiments.rb +1 -1
- data/lib/azure_mgmt_web/models/file_system_application_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/file_system_http_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/frequency_unit.rb +1 -1
- data/lib/azure_mgmt_web/models/geo_region.rb +7 -1
- data/lib/azure_mgmt_web/models/geo_region_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/geo_region_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/handler_mapping.rb +1 -1
- data/lib/azure_mgmt_web/models/host_name.rb +1 -1
- data/lib/azure_mgmt_web/models/host_name_binding.rb +7 -1
- data/lib/azure_mgmt_web/models/host_name_binding_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/host_name_binding_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/host_name_ssl_state.rb +1 -1
- data/lib/azure_mgmt_web/models/host_name_type.rb +1 -1
- data/lib/azure_mgmt_web/models/hosting_environment.rb +7 -1
- data/lib/azure_mgmt_web/models/hosting_environment_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/hosting_environment_diagnostics.rb +1 -1
- data/lib/azure_mgmt_web/models/hosting_environment_profile.rb +1 -1
- data/lib/azure_mgmt_web/models/hosting_environment_properties.rb +63 -17
- data/lib/azure_mgmt_web/models/hosting_environment_status.rb +1 -1
- data/lib/azure_mgmt_web/models/http_logs_config.rb +1 -1
- data/lib/azure_mgmt_web/models/internal_load_balancing_mode.rb +1 -1
- data/lib/azure_mgmt_web/models/ip_security_restriction.rb +66 -0
- data/lib/azure_mgmt_web/models/key_value_pair_string_string.rb +1 -1
- data/lib/azure_mgmt_web/models/key_vault_secret_status.rb +24 -0
- data/lib/azure_mgmt_web/models/localizable_string.rb +1 -1
- data/lib/azure_mgmt_web/models/log_level.rb +1 -1
- data/lib/azure_mgmt_web/models/managed_hosting_environment.rb +7 -1
- data/lib/azure_mgmt_web/models/managed_hosting_environment_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/managed_hosting_environment_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/managed_hosting_environment_status.rb +1 -1
- data/lib/azure_mgmt_web/models/managed_pipeline_mode.rb +1 -1
- data/lib/azure_mgmt_web/models/metric_availabilily.rb +1 -1
- data/lib/azure_mgmt_web/models/metric_definition.rb +7 -1
- data/lib/azure_mgmt_web/models/metric_definition_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/metric_definition_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/name_identifier.rb +1 -1
- data/lib/azure_mgmt_web/models/name_identifier_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/name_value_pair.rb +1 -1
- data/lib/azure_mgmt_web/models/network_access_control_entry.rb +1 -1
- data/lib/azure_mgmt_web/models/network_features.rb +7 -1
- data/lib/azure_mgmt_web/models/network_features_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/notification_level.rb +1 -1
- data/lib/azure_mgmt_web/models/premier_add_on_request.rb +1 -1
- data/lib/azure_mgmt_web/models/provisioning_state.rb +1 -1
- data/lib/azure_mgmt_web/models/ramp_up_rule.rb +1 -1
- data/lib/azure_mgmt_web/models/recommendation.rb +36 -1
- data/lib/azure_mgmt_web/models/recommendation_rule.rb +12 -1
- data/lib/azure_mgmt_web/models/reissue_certificate_order_request.rb +98 -0
- data/lib/azure_mgmt_web/models/reissue_certificate_order_request_properties.rb +68 -0
- data/lib/azure_mgmt_web/models/relay_service_connection_entity.rb +7 -1
- data/lib/azure_mgmt_web/models/relay_service_connection_entity_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/renew_certificate_order_request.rb +98 -0
- data/lib/azure_mgmt_web/models/renew_certificate_order_request_properties.rb +57 -0
- data/lib/azure_mgmt_web/models/requests_based_trigger.rb +1 -1
- data/lib/azure_mgmt_web/models/resource_metric.rb +1 -1
- data/lib/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/resource_metric_name.rb +1 -1
- data/lib/azure_mgmt_web/models/resource_metric_value.rb +1 -1
- data/lib/azure_mgmt_web/models/resource_name_availability.rb +1 -1
- data/lib/azure_mgmt_web/models/resource_name_availability_request.rb +1 -1
- data/lib/azure_mgmt_web/models/restore_request.rb +7 -1
- data/lib/azure_mgmt_web/models/restore_request_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/restore_response.rb +7 -1
- data/lib/azure_mgmt_web/models/restore_response_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/routing_rule.rb +1 -1
- data/lib/azure_mgmt_web/models/server_farm_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/server_farm_with_rich_sku.rb +7 -1
- data/lib/azure_mgmt_web/models/server_farm_with_rich_sku_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/site.rb +7 -1
- data/lib/azure_mgmt_web/models/site_auth_settings.rb +13 -1
- data/lib/azure_mgmt_web/models/site_availability_state.rb +1 -1
- data/lib/azure_mgmt_web/models/site_cloneability.rb +1 -1
- data/lib/azure_mgmt_web/models/site_cloneability_criterion.rb +1 -1
- data/lib/azure_mgmt_web/models/site_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/site_config.rb +7 -1
- data/lib/azure_mgmt_web/models/site_config_properties.rb +51 -21
- data/lib/azure_mgmt_web/models/site_instance.rb +7 -1
- data/lib/azure_mgmt_web/models/site_instance_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/site_instance_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/site_limits.rb +1 -1
- data/lib/azure_mgmt_web/models/site_load_balancing.rb +1 -1
- data/lib/azure_mgmt_web/models/site_logs_config.rb +7 -1
- data/lib/azure_mgmt_web/models/site_logs_config_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/site_properties.rb +40 -1
- data/lib/azure_mgmt_web/models/site_source_control.rb +7 -1
- data/lib/azure_mgmt_web/models/site_source_control_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/sku_capacity.rb +1 -1
- data/lib/azure_mgmt_web/models/sku_description.rb +1 -1
- data/lib/azure_mgmt_web/models/sku_info.rb +1 -1
- data/lib/azure_mgmt_web/models/sku_info_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/slot_config_names.rb +1 -1
- data/lib/azure_mgmt_web/models/slot_config_names_resource.rb +7 -1
- data/lib/azure_mgmt_web/models/slot_config_names_resource_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/slot_difference.rb +7 -1
- data/lib/azure_mgmt_web/models/slot_difference_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/slot_difference_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/slow_requests_based_trigger.rb +1 -1
- data/lib/azure_mgmt_web/models/source_control.rb +7 -1
- data/lib/azure_mgmt_web/models/source_control_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/source_control_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/ssl_state.rb +1 -1
- data/lib/azure_mgmt_web/models/stamp_capacity.rb +2 -2
- data/lib/azure_mgmt_web/models/stamp_capacity_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/status_codes_based_trigger.rb +1 -1
- data/lib/azure_mgmt_web/models/status_options.rb +1 -1
- data/lib/azure_mgmt_web/models/string_dictionary.rb +7 -1
- data/lib/azure_mgmt_web/models/tld_legal_agreement.rb +1 -1
- data/lib/azure_mgmt_web/models/tld_legal_agreement_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/top_level_domain.rb +7 -1
- data/lib/azure_mgmt_web/models/top_level_domain_agreement_option.rb +1 -1
- data/lib/azure_mgmt_web/models/top_level_domain_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/top_level_domain_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/unauthenticated_client_action.rb +1 -1
- data/lib/azure_mgmt_web/models/usage.rb +7 -1
- data/lib/azure_mgmt_web/models/usage_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/usage_properties.rb +2 -2
- data/lib/azure_mgmt_web/models/usage_state.rb +1 -1
- data/lib/azure_mgmt_web/models/user.rb +7 -1
- data/lib/azure_mgmt_web/models/user_properties.rb +11 -1
- data/lib/azure_mgmt_web/models/virtual_application.rb +1 -1
- data/lib/azure_mgmt_web/models/virtual_directory.rb +1 -1
- data/lib/azure_mgmt_web/models/virtual_ipmapping.rb +1 -1
- data/lib/azure_mgmt_web/models/virtual_network_profile.rb +1 -1
- data/lib/azure_mgmt_web/models/vnet_gateway.rb +7 -1
- data/lib/azure_mgmt_web/models/vnet_gateway_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/vnet_info.rb +7 -1
- data/lib/azure_mgmt_web/models/vnet_info_properties.rb +20 -1
- data/lib/azure_mgmt_web/models/vnet_route.rb +7 -1
- data/lib/azure_mgmt_web/models/vnet_route_properties.rb +1 -1
- data/lib/azure_mgmt_web/models/worker_pool.rb +7 -1
- data/lib/azure_mgmt_web/models/worker_pool_collection.rb +1 -1
- data/lib/azure_mgmt_web/models/worker_pool_properties.rb +2 -2
- data/lib/azure_mgmt_web/models/worker_size_options.rb +1 -1
- data/lib/azure_mgmt_web/module_definition.rb +1 -1
- data/lib/azure_mgmt_web/provider.rb +171 -28
- data/lib/azure_mgmt_web/recommendations.rb +183 -23
- data/lib/azure_mgmt_web/server_farms.rb +817 -109
- data/lib/azure_mgmt_web/sites.rb +7132 -1264
- data/lib/azure_mgmt_web/top_level_domains.rb +106 -17
- data/lib/azure_mgmt_web/usage_operations.rb +41 -6
- data/lib/azure_mgmt_web/version.rb +2 -2
- data/lib/azure_mgmt_web/web_site_management_client.rb +9 -1
- metadata +54 -24
@@ -0,0 +1,206 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Web
|
7
|
+
#
|
8
|
+
# Use these APIs to manage Azure Websites resources through the Azure
|
9
|
+
# Resource Manager. All task operations conform to the HTTP/1.1 protocol
|
10
|
+
# specification and each operation returns an x-ms-request-id header that
|
11
|
+
# can be used to obtain information about the request. You must make sure
|
12
|
+
# that requests made to these resources are secure. For more information,
|
13
|
+
# see <a
|
14
|
+
# href="https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx">Authenticating
|
15
|
+
# Azure Resource Manager requests.</a>
|
16
|
+
#
|
17
|
+
class GlobalCertificateOrder
|
18
|
+
include Azure::ARM::Web::Models
|
19
|
+
include MsRestAzure
|
20
|
+
|
21
|
+
#
|
22
|
+
# Creates and initializes a new instance of the GlobalCertificateOrder class.
|
23
|
+
# @param client service class for accessing basic functionality.
|
24
|
+
#
|
25
|
+
def initialize(client)
|
26
|
+
@client = client
|
27
|
+
end
|
28
|
+
|
29
|
+
# @return reference to the WebSiteManagementClient
|
30
|
+
attr_reader :client
|
31
|
+
|
32
|
+
#
|
33
|
+
# Lists all domains in a subscription
|
34
|
+
#
|
35
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
|
+
# will be added to the HTTP request.
|
37
|
+
#
|
38
|
+
# @return [CertificateOrderCollection] operation results.
|
39
|
+
#
|
40
|
+
def get_all_certificate_orders(custom_headers = nil)
|
41
|
+
response = get_all_certificate_orders_async(custom_headers).value!
|
42
|
+
response.body unless response.nil?
|
43
|
+
end
|
44
|
+
|
45
|
+
#
|
46
|
+
# Lists all domains in a subscription
|
47
|
+
#
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def get_all_certificate_orders_with_http_info(custom_headers = nil)
|
54
|
+
get_all_certificate_orders_async(custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Lists all domains in a subscription
|
59
|
+
#
|
60
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
61
|
+
# to the HTTP request.
|
62
|
+
#
|
63
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
64
|
+
#
|
65
|
+
def get_all_certificate_orders_async(custom_headers = nil)
|
66
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
67
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
68
|
+
request_headers = {}
|
69
|
+
|
70
|
+
# Set Headers
|
71
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
72
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
73
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/certificateOrders'
|
74
|
+
options = {
|
75
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
76
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
77
|
+
query_params: {'api-version' => @client.api_version},
|
78
|
+
headers: request_headers.merge(custom_headers || {})
|
79
|
+
}
|
80
|
+
|
81
|
+
request_url = @base_url || @client.base_url
|
82
|
+
|
83
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
84
|
+
promise = request.run_promise do |req|
|
85
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
86
|
+
end
|
87
|
+
|
88
|
+
promise = promise.then do |http_response|
|
89
|
+
status_code = http_response.status
|
90
|
+
response_content = http_response.body
|
91
|
+
unless status_code == 200
|
92
|
+
error_model = JSON.load(response_content)
|
93
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
94
|
+
end
|
95
|
+
|
96
|
+
# Create Result
|
97
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
98
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
99
|
+
# Deserialize Response
|
100
|
+
if status_code == 200
|
101
|
+
begin
|
102
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
103
|
+
unless parsed_response.nil?
|
104
|
+
parsed_response = CertificateOrderCollection.deserialize_object(parsed_response)
|
105
|
+
end
|
106
|
+
result.body = parsed_response
|
107
|
+
rescue Exception => e
|
108
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
result
|
113
|
+
end
|
114
|
+
|
115
|
+
promise.execute
|
116
|
+
end
|
117
|
+
|
118
|
+
#
|
119
|
+
# Validate certificate purchase information
|
120
|
+
#
|
121
|
+
# @param certificate_order [CertificateOrder] Certificate order
|
122
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
123
|
+
# will be added to the HTTP request.
|
124
|
+
#
|
125
|
+
# @return [Object] operation results.
|
126
|
+
#
|
127
|
+
def validate_certificate_purchase_information(certificate_order, custom_headers = nil)
|
128
|
+
response = validate_certificate_purchase_information_async(certificate_order, custom_headers).value!
|
129
|
+
response.body unless response.nil?
|
130
|
+
end
|
131
|
+
|
132
|
+
#
|
133
|
+
# Validate certificate purchase information
|
134
|
+
#
|
135
|
+
# @param certificate_order [CertificateOrder] Certificate order
|
136
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
137
|
+
# will be added to the HTTP request.
|
138
|
+
#
|
139
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
140
|
+
#
|
141
|
+
def validate_certificate_purchase_information_with_http_info(certificate_order, custom_headers = nil)
|
142
|
+
validate_certificate_purchase_information_async(certificate_order, custom_headers).value!
|
143
|
+
end
|
144
|
+
|
145
|
+
#
|
146
|
+
# Validate certificate purchase information
|
147
|
+
#
|
148
|
+
# @param certificate_order [CertificateOrder] Certificate order
|
149
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
150
|
+
# to the HTTP request.
|
151
|
+
#
|
152
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
153
|
+
#
|
154
|
+
def validate_certificate_purchase_information_async(certificate_order, custom_headers = nil)
|
155
|
+
fail ArgumentError, 'certificate_order is nil' if certificate_order.nil?
|
156
|
+
certificate_order.validate unless certificate_order.nil?
|
157
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
158
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
159
|
+
request_headers = {}
|
160
|
+
|
161
|
+
# Set Headers
|
162
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
163
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
164
|
+
|
165
|
+
# Serialize Request
|
166
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
167
|
+
unless certificate_order.nil?
|
168
|
+
certificate_order = CertificateOrder.serialize_object(certificate_order)
|
169
|
+
end
|
170
|
+
request_content = certificate_order != nil ? JSON.generate(certificate_order, quirks_mode: true) : nil
|
171
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.CertificateRegistration/validateCertificateRegistrationInformation'
|
172
|
+
options = {
|
173
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
174
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
175
|
+
query_params: {'api-version' => @client.api_version},
|
176
|
+
body: request_content,
|
177
|
+
headers: request_headers.merge(custom_headers || {})
|
178
|
+
}
|
179
|
+
|
180
|
+
request_url = @base_url || @client.base_url
|
181
|
+
|
182
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
183
|
+
promise = request.run_promise do |req|
|
184
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
185
|
+
end
|
186
|
+
|
187
|
+
promise = promise.then do |http_response|
|
188
|
+
status_code = http_response.status
|
189
|
+
response_content = http_response.body
|
190
|
+
unless status_code == 200
|
191
|
+
error_model = JSON.load(response_content)
|
192
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
193
|
+
end
|
194
|
+
|
195
|
+
# Create Result
|
196
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
197
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
198
|
+
|
199
|
+
result
|
200
|
+
end
|
201
|
+
|
202
|
+
promise.execute
|
203
|
+
end
|
204
|
+
|
205
|
+
end
|
206
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -32,13 +32,37 @@ module Azure::ARM::Web
|
|
32
32
|
#
|
33
33
|
# Lists all domains in a subscription
|
34
34
|
#
|
35
|
-
# @param [Hash{String => String}]
|
36
|
-
#
|
35
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
|
+
# will be added to the HTTP request.
|
37
37
|
#
|
38
|
-
# @return [
|
39
|
-
# response.
|
38
|
+
# @return [DomainCollection] operation results.
|
40
39
|
#
|
41
40
|
def get_all_domains(custom_headers = nil)
|
41
|
+
response = get_all_domains_async(custom_headers).value!
|
42
|
+
response.body unless response.nil?
|
43
|
+
end
|
44
|
+
|
45
|
+
#
|
46
|
+
# Lists all domains in a subscription
|
47
|
+
#
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def get_all_domains_with_http_info(custom_headers = nil)
|
54
|
+
get_all_domains_async(custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Lists all domains in a subscription
|
59
|
+
#
|
60
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
61
|
+
# to the HTTP request.
|
62
|
+
#
|
63
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
64
|
+
#
|
65
|
+
def get_all_domains_async(custom_headers = nil)
|
42
66
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
43
67
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
44
68
|
request_headers = {}
|
@@ -53,7 +77,10 @@ module Azure::ARM::Web
|
|
53
77
|
query_params: {'api-version' => @client.api_version},
|
54
78
|
headers: request_headers.merge(custom_headers || {})
|
55
79
|
}
|
56
|
-
|
80
|
+
|
81
|
+
request_url = @base_url || @client.base_url
|
82
|
+
|
83
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
57
84
|
promise = request.run_promise do |req|
|
58
85
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
59
86
|
end
|
@@ -91,13 +118,37 @@ module Azure::ARM::Web
|
|
91
118
|
#
|
92
119
|
# Generates a single sign on request for domain management portal
|
93
120
|
#
|
94
|
-
# @param [Hash{String => String}]
|
95
|
-
#
|
121
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
122
|
+
# will be added to the HTTP request.
|
96
123
|
#
|
97
|
-
# @return [
|
98
|
-
# response.
|
124
|
+
# @return [DomainControlCenterSsoRequest] operation results.
|
99
125
|
#
|
100
126
|
def get_domain_control_center_sso_request(custom_headers = nil)
|
127
|
+
response = get_domain_control_center_sso_request_async(custom_headers).value!
|
128
|
+
response.body unless response.nil?
|
129
|
+
end
|
130
|
+
|
131
|
+
#
|
132
|
+
# Generates a single sign on request for domain management portal
|
133
|
+
#
|
134
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
135
|
+
# will be added to the HTTP request.
|
136
|
+
#
|
137
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
138
|
+
#
|
139
|
+
def get_domain_control_center_sso_request_with_http_info(custom_headers = nil)
|
140
|
+
get_domain_control_center_sso_request_async(custom_headers).value!
|
141
|
+
end
|
142
|
+
|
143
|
+
#
|
144
|
+
# Generates a single sign on request for domain management portal
|
145
|
+
#
|
146
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
147
|
+
# to the HTTP request.
|
148
|
+
#
|
149
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
150
|
+
#
|
151
|
+
def get_domain_control_center_sso_request_async(custom_headers = nil)
|
101
152
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
102
153
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
103
154
|
request_headers = {}
|
@@ -112,7 +163,10 @@ module Azure::ARM::Web
|
|
112
163
|
query_params: {'api-version' => @client.api_version},
|
113
164
|
headers: request_headers.merge(custom_headers || {})
|
114
165
|
}
|
115
|
-
|
166
|
+
|
167
|
+
request_url = @base_url || @client.base_url
|
168
|
+
|
169
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
116
170
|
promise = request.run_promise do |req|
|
117
171
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
118
172
|
end
|
@@ -152,13 +206,41 @@ module Azure::ARM::Web
|
|
152
206
|
#
|
153
207
|
# @param domain_registration_input [DomainRegistrationInput] Domain
|
154
208
|
# registration information
|
155
|
-
# @param [Hash{String => String}]
|
156
|
-
#
|
209
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
210
|
+
# will be added to the HTTP request.
|
157
211
|
#
|
158
|
-
# @return [
|
159
|
-
# response.
|
212
|
+
# @return [Object] operation results.
|
160
213
|
#
|
161
214
|
def validate_domain_purchase_information(domain_registration_input, custom_headers = nil)
|
215
|
+
response = validate_domain_purchase_information_async(domain_registration_input, custom_headers).value!
|
216
|
+
response.body unless response.nil?
|
217
|
+
end
|
218
|
+
|
219
|
+
#
|
220
|
+
# Validates domain registration information
|
221
|
+
#
|
222
|
+
# @param domain_registration_input [DomainRegistrationInput] Domain
|
223
|
+
# registration information
|
224
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
225
|
+
# will be added to the HTTP request.
|
226
|
+
#
|
227
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
228
|
+
#
|
229
|
+
def validate_domain_purchase_information_with_http_info(domain_registration_input, custom_headers = nil)
|
230
|
+
validate_domain_purchase_information_async(domain_registration_input, custom_headers).value!
|
231
|
+
end
|
232
|
+
|
233
|
+
#
|
234
|
+
# Validates domain registration information
|
235
|
+
#
|
236
|
+
# @param domain_registration_input [DomainRegistrationInput] Domain
|
237
|
+
# registration information
|
238
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
239
|
+
# to the HTTP request.
|
240
|
+
#
|
241
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
242
|
+
#
|
243
|
+
def validate_domain_purchase_information_async(domain_registration_input, custom_headers = nil)
|
162
244
|
fail ArgumentError, 'domain_registration_input is nil' if domain_registration_input.nil?
|
163
245
|
domain_registration_input.validate unless domain_registration_input.nil?
|
164
246
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -174,7 +256,7 @@ module Azure::ARM::Web
|
|
174
256
|
unless domain_registration_input.nil?
|
175
257
|
domain_registration_input = DomainRegistrationInput.serialize_object(domain_registration_input)
|
176
258
|
end
|
177
|
-
request_content = JSON.generate(domain_registration_input, quirks_mode: true)
|
259
|
+
request_content = domain_registration_input != nil ? JSON.generate(domain_registration_input, quirks_mode: true) : nil
|
178
260
|
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/validateDomainRegistrationInformation'
|
179
261
|
options = {
|
180
262
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -183,7 +265,10 @@ module Azure::ARM::Web
|
|
183
265
|
body: request_content,
|
184
266
|
headers: request_headers.merge(custom_headers || {})
|
185
267
|
}
|
186
|
-
|
268
|
+
|
269
|
+
request_url = @base_url || @client.base_url
|
270
|
+
|
271
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
187
272
|
promise = request.run_promise do |req|
|
188
273
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
189
274
|
end
|
@@ -210,13 +295,39 @@ module Azure::ARM::Web
|
|
210
295
|
# Checks if a domain is available for registration
|
211
296
|
#
|
212
297
|
# @param identifier [NameIdentifier] Name of the domain
|
213
|
-
# @param [Hash{String => String}]
|
214
|
-
#
|
298
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
299
|
+
# will be added to the HTTP request.
|
215
300
|
#
|
216
|
-
# @return [
|
217
|
-
# response.
|
301
|
+
# @return [DomainAvailablilityCheckResult] operation results.
|
218
302
|
#
|
219
303
|
def check_domain_availability(identifier, custom_headers = nil)
|
304
|
+
response = check_domain_availability_async(identifier, custom_headers).value!
|
305
|
+
response.body unless response.nil?
|
306
|
+
end
|
307
|
+
|
308
|
+
#
|
309
|
+
# Checks if a domain is available for registration
|
310
|
+
#
|
311
|
+
# @param identifier [NameIdentifier] Name of the domain
|
312
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
313
|
+
# will be added to the HTTP request.
|
314
|
+
#
|
315
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
316
|
+
#
|
317
|
+
def check_domain_availability_with_http_info(identifier, custom_headers = nil)
|
318
|
+
check_domain_availability_async(identifier, custom_headers).value!
|
319
|
+
end
|
320
|
+
|
321
|
+
#
|
322
|
+
# Checks if a domain is available for registration
|
323
|
+
#
|
324
|
+
# @param identifier [NameIdentifier] Name of the domain
|
325
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
326
|
+
# to the HTTP request.
|
327
|
+
#
|
328
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
329
|
+
#
|
330
|
+
def check_domain_availability_async(identifier, custom_headers = nil)
|
220
331
|
fail ArgumentError, 'identifier is nil' if identifier.nil?
|
221
332
|
identifier.validate unless identifier.nil?
|
222
333
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -232,7 +343,7 @@ module Azure::ARM::Web
|
|
232
343
|
unless identifier.nil?
|
233
344
|
identifier = NameIdentifier.serialize_object(identifier)
|
234
345
|
end
|
235
|
-
request_content = JSON.generate(identifier, quirks_mode: true)
|
346
|
+
request_content = identifier != nil ? JSON.generate(identifier, quirks_mode: true) : nil
|
236
347
|
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability'
|
237
348
|
options = {
|
238
349
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -241,7 +352,10 @@ module Azure::ARM::Web
|
|
241
352
|
body: request_content,
|
242
353
|
headers: request_headers.merge(custom_headers || {})
|
243
354
|
}
|
244
|
-
|
355
|
+
|
356
|
+
request_url = @base_url || @client.base_url
|
357
|
+
|
358
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
245
359
|
promise = request.run_promise do |req|
|
246
360
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
247
361
|
end
|
@@ -281,13 +395,41 @@ module Azure::ARM::Web
|
|
281
395
|
#
|
282
396
|
# @param parameters [DomainRecommendationSearchParameters] Domain
|
283
397
|
# recommendation search parameters
|
284
|
-
# @param [Hash{String => String}]
|
285
|
-
#
|
398
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
399
|
+
# will be added to the HTTP request.
|
286
400
|
#
|
287
|
-
# @return [
|
288
|
-
# response.
|
401
|
+
# @return [NameIdentifierCollection] operation results.
|
289
402
|
#
|
290
403
|
def list_domain_recommendations(parameters, custom_headers = nil)
|
404
|
+
response = list_domain_recommendations_async(parameters, custom_headers).value!
|
405
|
+
response.body unless response.nil?
|
406
|
+
end
|
407
|
+
|
408
|
+
#
|
409
|
+
# Lists domain recommendations based on keywords
|
410
|
+
#
|
411
|
+
# @param parameters [DomainRecommendationSearchParameters] Domain
|
412
|
+
# recommendation search parameters
|
413
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
414
|
+
# will be added to the HTTP request.
|
415
|
+
#
|
416
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
417
|
+
#
|
418
|
+
def list_domain_recommendations_with_http_info(parameters, custom_headers = nil)
|
419
|
+
list_domain_recommendations_async(parameters, custom_headers).value!
|
420
|
+
end
|
421
|
+
|
422
|
+
#
|
423
|
+
# Lists domain recommendations based on keywords
|
424
|
+
#
|
425
|
+
# @param parameters [DomainRecommendationSearchParameters] Domain
|
426
|
+
# recommendation search parameters
|
427
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
428
|
+
# to the HTTP request.
|
429
|
+
#
|
430
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
431
|
+
#
|
432
|
+
def list_domain_recommendations_async(parameters, custom_headers = nil)
|
291
433
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
292
434
|
parameters.validate unless parameters.nil?
|
293
435
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -303,7 +445,7 @@ module Azure::ARM::Web
|
|
303
445
|
unless parameters.nil?
|
304
446
|
parameters = DomainRecommendationSearchParameters.serialize_object(parameters)
|
305
447
|
end
|
306
|
-
request_content = JSON.generate(parameters, quirks_mode: true)
|
448
|
+
request_content = parameters != nil ? JSON.generate(parameters, quirks_mode: true) : nil
|
307
449
|
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations'
|
308
450
|
options = {
|
309
451
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -312,7 +454,10 @@ module Azure::ARM::Web
|
|
312
454
|
body: request_content,
|
313
455
|
headers: request_headers.merge(custom_headers || {})
|
314
456
|
}
|
315
|
-
|
457
|
+
|
458
|
+
request_url = @base_url || @client.base_url
|
459
|
+
|
460
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
316
461
|
promise = request.run_promise do |req|
|
317
462
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
318
463
|
end
|