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
@@ -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
|
# Gets publishing credentials for the subscription owner
|
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 [User] operation results.
|
40
39
|
#
|
41
40
|
def get_subscription_publishing_credentials(custom_headers = nil)
|
41
|
+
response = get_subscription_publishing_credentials_async(custom_headers).value!
|
42
|
+
response.body unless response.nil?
|
43
|
+
end
|
44
|
+
|
45
|
+
#
|
46
|
+
# Gets publishing credentials for the subscription owner
|
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_subscription_publishing_credentials_with_http_info(custom_headers = nil)
|
54
|
+
get_subscription_publishing_credentials_async(custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Gets publishing credentials for the subscription owner
|
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_subscription_publishing_credentials_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
|
@@ -92,13 +119,39 @@ module Azure::ARM::Web
|
|
92
119
|
# Updates publishing credentials for the subscription owner
|
93
120
|
#
|
94
121
|
# @param request_message [User] requestMessage with new publishing credentials
|
95
|
-
# @param [Hash{String => String}]
|
96
|
-
#
|
122
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
123
|
+
# will be added to the HTTP request.
|
97
124
|
#
|
98
|
-
# @return [
|
99
|
-
# response.
|
125
|
+
# @return [User] operation results.
|
100
126
|
#
|
101
127
|
def update_subscription_publishing_credentials(request_message, custom_headers = nil)
|
128
|
+
response = update_subscription_publishing_credentials_async(request_message, custom_headers).value!
|
129
|
+
response.body unless response.nil?
|
130
|
+
end
|
131
|
+
|
132
|
+
#
|
133
|
+
# Updates publishing credentials for the subscription owner
|
134
|
+
#
|
135
|
+
# @param request_message [User] requestMessage with new publishing credentials
|
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 update_subscription_publishing_credentials_with_http_info(request_message, custom_headers = nil)
|
142
|
+
update_subscription_publishing_credentials_async(request_message, custom_headers).value!
|
143
|
+
end
|
144
|
+
|
145
|
+
#
|
146
|
+
# Updates publishing credentials for the subscription owner
|
147
|
+
#
|
148
|
+
# @param request_message [User] requestMessage with new publishing credentials
|
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 update_subscription_publishing_credentials_async(request_message, custom_headers = nil)
|
102
155
|
fail ArgumentError, 'request_message is nil' if request_message.nil?
|
103
156
|
request_message.validate unless request_message.nil?
|
104
157
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -114,7 +167,7 @@ module Azure::ARM::Web
|
|
114
167
|
unless request_message.nil?
|
115
168
|
request_message = User.serialize_object(request_message)
|
116
169
|
end
|
117
|
-
request_content = JSON.generate(request_message, quirks_mode: true)
|
170
|
+
request_content = request_message != nil ? JSON.generate(request_message, quirks_mode: true) : nil
|
118
171
|
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/publishingCredentials'
|
119
172
|
options = {
|
120
173
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -123,7 +176,10 @@ module Azure::ARM::Web
|
|
123
176
|
body: request_content,
|
124
177
|
headers: request_headers.merge(custom_headers || {})
|
125
178
|
}
|
126
|
-
|
179
|
+
|
180
|
+
request_url = @base_url || @client.base_url
|
181
|
+
|
182
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
127
183
|
promise = request.run_promise do |req|
|
128
184
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
129
185
|
end
|
@@ -161,13 +217,40 @@ module Azure::ARM::Web
|
|
161
217
|
#
|
162
218
|
# Gets list of available geo regions
|
163
219
|
#
|
164
|
-
# @param [
|
165
|
-
#
|
220
|
+
# @param sku [String] Filter only to regions that support this sku
|
221
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
222
|
+
# will be added to the HTTP request.
|
223
|
+
#
|
224
|
+
# @return [GeoRegionCollection] operation results.
|
225
|
+
#
|
226
|
+
def get_subscription_geo_regions(sku = nil, custom_headers = nil)
|
227
|
+
response = get_subscription_geo_regions_async(sku, custom_headers).value!
|
228
|
+
response.body unless response.nil?
|
229
|
+
end
|
230
|
+
|
231
|
+
#
|
232
|
+
# Gets list of available geo regions
|
233
|
+
#
|
234
|
+
# @param sku [String] Filter only to regions that support this sku
|
235
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
236
|
+
# will be added to the HTTP request.
|
237
|
+
#
|
238
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
239
|
+
#
|
240
|
+
def get_subscription_geo_regions_with_http_info(sku = nil, custom_headers = nil)
|
241
|
+
get_subscription_geo_regions_async(sku, custom_headers).value!
|
242
|
+
end
|
243
|
+
|
244
|
+
#
|
245
|
+
# Gets list of available geo regions
|
246
|
+
#
|
247
|
+
# @param sku [String] Filter only to regions that support this sku
|
248
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
249
|
+
# to the HTTP request.
|
166
250
|
#
|
167
|
-
# @return [Concurrent::Promise] Promise object which
|
168
|
-
# response.
|
251
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
169
252
|
#
|
170
|
-
def
|
253
|
+
def get_subscription_geo_regions_async(sku = nil, custom_headers = nil)
|
171
254
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
172
255
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
173
256
|
request_headers = {}
|
@@ -179,10 +262,13 @@ module Azure::ARM::Web
|
|
179
262
|
options = {
|
180
263
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
181
264
|
path_params: {'subscriptionId' => @client.subscription_id},
|
182
|
-
query_params: {'api-version' => @client.api_version},
|
265
|
+
query_params: {'sku' => sku,'api-version' => @client.api_version},
|
183
266
|
headers: request_headers.merge(custom_headers || {})
|
184
267
|
}
|
185
|
-
|
268
|
+
|
269
|
+
request_url = @base_url || @client.base_url
|
270
|
+
|
271
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
186
272
|
promise = request.run_promise do |req|
|
187
273
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
188
274
|
end
|
@@ -220,13 +306,37 @@ module Azure::ARM::Web
|
|
220
306
|
#
|
221
307
|
# Get all certificates for a subscription
|
222
308
|
#
|
223
|
-
# @param [Hash{String => String}]
|
224
|
-
#
|
309
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
310
|
+
# will be added to the HTTP request.
|
225
311
|
#
|
226
|
-
# @return [
|
227
|
-
# response.
|
312
|
+
# @return [CertificateCollection] operation results.
|
228
313
|
#
|
229
314
|
def get_all_certificates(custom_headers = nil)
|
315
|
+
response = get_all_certificates_async(custom_headers).value!
|
316
|
+
response.body unless response.nil?
|
317
|
+
end
|
318
|
+
|
319
|
+
#
|
320
|
+
# Get all certificates for a subscription
|
321
|
+
#
|
322
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
323
|
+
# will be added to the HTTP request.
|
324
|
+
#
|
325
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
326
|
+
#
|
327
|
+
def get_all_certificates_with_http_info(custom_headers = nil)
|
328
|
+
get_all_certificates_async(custom_headers).value!
|
329
|
+
end
|
330
|
+
|
331
|
+
#
|
332
|
+
# Get all certificates for a subscription
|
333
|
+
#
|
334
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
335
|
+
# to the HTTP request.
|
336
|
+
#
|
337
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
338
|
+
#
|
339
|
+
def get_all_certificates_async(custom_headers = nil)
|
230
340
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
231
341
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
232
342
|
request_headers = {}
|
@@ -241,7 +351,10 @@ module Azure::ARM::Web
|
|
241
351
|
query_params: {'api-version' => @client.api_version},
|
242
352
|
headers: request_headers.merge(custom_headers || {})
|
243
353
|
}
|
244
|
-
|
354
|
+
|
355
|
+
request_url = @base_url || @client.base_url
|
356
|
+
|
357
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
245
358
|
promise = request.run_promise do |req|
|
246
359
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
247
360
|
end
|
@@ -282,13 +395,43 @@ module Azure::ARM::Web
|
|
282
395
|
# @param detailed [Boolean] False to return a subset of App Service Plan
|
283
396
|
# properties, true to return all of the properties.
|
284
397
|
# Retrieval of all properties may increase the API latency.
|
285
|
-
# @param [Hash{String => String}]
|
286
|
-
#
|
398
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
399
|
+
# will be added to the HTTP request.
|
287
400
|
#
|
288
|
-
# @return [
|
289
|
-
# response.
|
401
|
+
# @return [ServerFarmCollection] operation results.
|
290
402
|
#
|
291
403
|
def get_all_server_farms(detailed = nil, custom_headers = nil)
|
404
|
+
response = get_all_server_farms_async(detailed, custom_headers).value!
|
405
|
+
response.body unless response.nil?
|
406
|
+
end
|
407
|
+
|
408
|
+
#
|
409
|
+
# Gets all App Service Plans for a subcription
|
410
|
+
#
|
411
|
+
# @param detailed [Boolean] False to return a subset of App Service Plan
|
412
|
+
# properties, true to return all of the properties.
|
413
|
+
# Retrieval of all properties may increase the API latency.
|
414
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
415
|
+
# will be added to the HTTP request.
|
416
|
+
#
|
417
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
418
|
+
#
|
419
|
+
def get_all_server_farms_with_http_info(detailed = nil, custom_headers = nil)
|
420
|
+
get_all_server_farms_async(detailed, custom_headers).value!
|
421
|
+
end
|
422
|
+
|
423
|
+
#
|
424
|
+
# Gets all App Service Plans for a subcription
|
425
|
+
#
|
426
|
+
# @param detailed [Boolean] False to return a subset of App Service Plan
|
427
|
+
# properties, true to return all of the properties.
|
428
|
+
# Retrieval of all properties may increase the API latency.
|
429
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
430
|
+
# to the HTTP request.
|
431
|
+
#
|
432
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
433
|
+
#
|
434
|
+
def get_all_server_farms_async(detailed = nil, custom_headers = nil)
|
292
435
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
293
436
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
294
437
|
request_headers = {}
|
@@ -303,7 +446,10 @@ module Azure::ARM::Web
|
|
303
446
|
query_params: {'detailed' => detailed,'api-version' => @client.api_version},
|
304
447
|
headers: request_headers.merge(custom_headers || {})
|
305
448
|
}
|
306
|
-
|
449
|
+
|
450
|
+
request_url = @base_url || @client.base_url
|
451
|
+
|
452
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
307
453
|
promise = request.run_promise do |req|
|
308
454
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
309
455
|
end
|
@@ -341,13 +487,37 @@ module Azure::ARM::Web
|
|
341
487
|
#
|
342
488
|
# Gets all Web Apps for a subscription
|
343
489
|
#
|
344
|
-
# @param [Hash{String => String}]
|
345
|
-
#
|
490
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
491
|
+
# will be added to the HTTP request.
|
346
492
|
#
|
347
|
-
# @return [
|
348
|
-
# response.
|
493
|
+
# @return [SiteCollection] operation results.
|
349
494
|
#
|
350
495
|
def get_all_sites(custom_headers = nil)
|
496
|
+
response = get_all_sites_async(custom_headers).value!
|
497
|
+
response.body unless response.nil?
|
498
|
+
end
|
499
|
+
|
500
|
+
#
|
501
|
+
# Gets all Web Apps for a subscription
|
502
|
+
#
|
503
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
504
|
+
# will be added to the HTTP request.
|
505
|
+
#
|
506
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
507
|
+
#
|
508
|
+
def get_all_sites_with_http_info(custom_headers = nil)
|
509
|
+
get_all_sites_async(custom_headers).value!
|
510
|
+
end
|
511
|
+
|
512
|
+
#
|
513
|
+
# Gets all Web Apps for a subscription
|
514
|
+
#
|
515
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
516
|
+
# to the HTTP request.
|
517
|
+
#
|
518
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
519
|
+
#
|
520
|
+
def get_all_sites_async(custom_headers = nil)
|
351
521
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
352
522
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
353
523
|
request_headers = {}
|
@@ -362,7 +532,10 @@ module Azure::ARM::Web
|
|
362
532
|
query_params: {'api-version' => @client.api_version},
|
363
533
|
headers: request_headers.merge(custom_headers || {})
|
364
534
|
}
|
365
|
-
|
535
|
+
|
536
|
+
request_url = @base_url || @client.base_url
|
537
|
+
|
538
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
366
539
|
promise = request.run_promise do |req|
|
367
540
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
368
541
|
end
|
@@ -400,13 +573,37 @@ module Azure::ARM::Web
|
|
400
573
|
#
|
401
574
|
# Gets all hostingEnvironments (App Service Environment) for a subscription
|
402
575
|
#
|
403
|
-
# @param [Hash{String => String}]
|
404
|
-
#
|
576
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
577
|
+
# will be added to the HTTP request.
|
405
578
|
#
|
406
|
-
# @return [
|
407
|
-
# response.
|
579
|
+
# @return [HostingEnvironmentCollection] operation results.
|
408
580
|
#
|
409
581
|
def get_all_hosting_environments(custom_headers = nil)
|
582
|
+
response = get_all_hosting_environments_async(custom_headers).value!
|
583
|
+
response.body unless response.nil?
|
584
|
+
end
|
585
|
+
|
586
|
+
#
|
587
|
+
# Gets all hostingEnvironments (App Service Environment) for a subscription
|
588
|
+
#
|
589
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
590
|
+
# will be added to the HTTP request.
|
591
|
+
#
|
592
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
593
|
+
#
|
594
|
+
def get_all_hosting_environments_with_http_info(custom_headers = nil)
|
595
|
+
get_all_hosting_environments_async(custom_headers).value!
|
596
|
+
end
|
597
|
+
|
598
|
+
#
|
599
|
+
# Gets all hostingEnvironments (App Service Environment) for a subscription
|
600
|
+
#
|
601
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
602
|
+
# to the HTTP request.
|
603
|
+
#
|
604
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
605
|
+
#
|
606
|
+
def get_all_hosting_environments_async(custom_headers = nil)
|
410
607
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
411
608
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
412
609
|
request_headers = {}
|
@@ -421,7 +618,10 @@ module Azure::ARM::Web
|
|
421
618
|
query_params: {'api-version' => @client.api_version},
|
422
619
|
headers: request_headers.merge(custom_headers || {})
|
423
620
|
}
|
424
|
-
|
621
|
+
|
622
|
+
request_url = @base_url || @client.base_url
|
623
|
+
|
624
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
425
625
|
promise = request.run_promise do |req|
|
426
626
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
427
627
|
end
|
@@ -459,13 +659,37 @@ module Azure::ARM::Web
|
|
459
659
|
#
|
460
660
|
# Gets all managed hosting environments for a subscription
|
461
661
|
#
|
462
|
-
# @param [Hash{String => String}]
|
463
|
-
#
|
662
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
663
|
+
# will be added to the HTTP request.
|
464
664
|
#
|
465
|
-
# @return [
|
466
|
-
# response.
|
665
|
+
# @return [ManagedHostingEnvironmentCollection] operation results.
|
467
666
|
#
|
468
667
|
def get_all_managed_hosting_environments(custom_headers = nil)
|
668
|
+
response = get_all_managed_hosting_environments_async(custom_headers).value!
|
669
|
+
response.body unless response.nil?
|
670
|
+
end
|
671
|
+
|
672
|
+
#
|
673
|
+
# Gets all managed hosting environments for a subscription
|
674
|
+
#
|
675
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
676
|
+
# will be added to the HTTP request.
|
677
|
+
#
|
678
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
679
|
+
#
|
680
|
+
def get_all_managed_hosting_environments_with_http_info(custom_headers = nil)
|
681
|
+
get_all_managed_hosting_environments_async(custom_headers).value!
|
682
|
+
end
|
683
|
+
|
684
|
+
#
|
685
|
+
# Gets all managed hosting environments for a subscription
|
686
|
+
#
|
687
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
688
|
+
# to the HTTP request.
|
689
|
+
#
|
690
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
691
|
+
#
|
692
|
+
def get_all_managed_hosting_environments_async(custom_headers = nil)
|
469
693
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
470
694
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
471
695
|
request_headers = {}
|
@@ -480,7 +704,10 @@ module Azure::ARM::Web
|
|
480
704
|
query_params: {'api-version' => @client.api_version},
|
481
705
|
headers: request_headers.merge(custom_headers || {})
|
482
706
|
}
|
483
|
-
|
707
|
+
|
708
|
+
request_url = @base_url || @client.base_url
|
709
|
+
|
710
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
484
711
|
promise = request.run_promise do |req|
|
485
712
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
486
713
|
end
|
@@ -518,13 +745,37 @@ module Azure::ARM::Web
|
|
518
745
|
#
|
519
746
|
# Gets all mobile services for a subscription
|
520
747
|
#
|
521
|
-
# @param [Hash{String => String}]
|
522
|
-
#
|
748
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
749
|
+
# will be added to the HTTP request.
|
523
750
|
#
|
524
|
-
# @return [
|
525
|
-
# response.
|
751
|
+
# @return [ClassicMobileServiceCollection] operation results.
|
526
752
|
#
|
527
753
|
def get_all_classic_mobile_services(custom_headers = nil)
|
754
|
+
response = get_all_classic_mobile_services_async(custom_headers).value!
|
755
|
+
response.body unless response.nil?
|
756
|
+
end
|
757
|
+
|
758
|
+
#
|
759
|
+
# Gets all mobile services for a subscription
|
760
|
+
#
|
761
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
762
|
+
# will be added to the HTTP request.
|
763
|
+
#
|
764
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
765
|
+
#
|
766
|
+
def get_all_classic_mobile_services_with_http_info(custom_headers = nil)
|
767
|
+
get_all_classic_mobile_services_async(custom_headers).value!
|
768
|
+
end
|
769
|
+
|
770
|
+
#
|
771
|
+
# Gets all mobile services for a subscription
|
772
|
+
#
|
773
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
774
|
+
# to the HTTP request.
|
775
|
+
#
|
776
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
777
|
+
#
|
778
|
+
def get_all_classic_mobile_services_async(custom_headers = nil)
|
528
779
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
529
780
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
530
781
|
request_headers = {}
|
@@ -539,7 +790,10 @@ module Azure::ARM::Web
|
|
539
790
|
query_params: {'api-version' => @client.api_version},
|
540
791
|
headers: request_headers.merge(custom_headers || {})
|
541
792
|
}
|
542
|
-
|
793
|
+
|
794
|
+
request_url = @base_url || @client.base_url
|
795
|
+
|
796
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
543
797
|
promise = request.run_promise do |req|
|
544
798
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
545
799
|
end
|
@@ -577,13 +831,37 @@ module Azure::ARM::Web
|
|
577
831
|
#
|
578
832
|
# List premier add on offers
|
579
833
|
#
|
580
|
-
# @param [Hash{String => String}]
|
581
|
-
#
|
834
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
835
|
+
# will be added to the HTTP request.
|
582
836
|
#
|
583
|
-
# @return [
|
584
|
-
# response.
|
837
|
+
# @return [Object] operation results.
|
585
838
|
#
|
586
839
|
def list_premier_add_on_offers(custom_headers = nil)
|
840
|
+
response = list_premier_add_on_offers_async(custom_headers).value!
|
841
|
+
response.body unless response.nil?
|
842
|
+
end
|
843
|
+
|
844
|
+
#
|
845
|
+
# List premier add on offers
|
846
|
+
#
|
847
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
848
|
+
# will be added to the HTTP request.
|
849
|
+
#
|
850
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
851
|
+
#
|
852
|
+
def list_premier_add_on_offers_with_http_info(custom_headers = nil)
|
853
|
+
list_premier_add_on_offers_async(custom_headers).value!
|
854
|
+
end
|
855
|
+
|
856
|
+
#
|
857
|
+
# List premier add on offers
|
858
|
+
#
|
859
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
860
|
+
# to the HTTP request.
|
861
|
+
#
|
862
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
863
|
+
#
|
864
|
+
def list_premier_add_on_offers_async(custom_headers = nil)
|
587
865
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
588
866
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
589
867
|
request_headers = {}
|
@@ -598,7 +876,10 @@ module Azure::ARM::Web
|
|
598
876
|
query_params: {'api-version' => @client.api_version},
|
599
877
|
headers: request_headers.merge(custom_headers || {})
|
600
878
|
}
|
601
|
-
|
879
|
+
|
880
|
+
request_url = @base_url || @client.base_url
|
881
|
+
|
882
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
602
883
|
promise = request.run_promise do |req|
|
603
884
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
604
885
|
end
|
@@ -625,13 +906,39 @@ module Azure::ARM::Web
|
|
625
906
|
# Whether hosting environment name is available
|
626
907
|
#
|
627
908
|
# @param name [String] Hosting environment name
|
628
|
-
# @param [Hash{String => String}]
|
629
|
-
#
|
909
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
910
|
+
# will be added to the HTTP request.
|
630
911
|
#
|
631
|
-
# @return [
|
632
|
-
# response.
|
912
|
+
# @return [Object] operation results.
|
633
913
|
#
|
634
|
-
def
|
914
|
+
def is_hosting_environment_name_available(name, custom_headers = nil)
|
915
|
+
response = is_hosting_environment_name_available_async(name, custom_headers).value!
|
916
|
+
response.body unless response.nil?
|
917
|
+
end
|
918
|
+
|
919
|
+
#
|
920
|
+
# Whether hosting environment name is available
|
921
|
+
#
|
922
|
+
# @param name [String] Hosting environment name
|
923
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
924
|
+
# will be added to the HTTP request.
|
925
|
+
#
|
926
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
927
|
+
#
|
928
|
+
def is_hosting_environment_name_available_with_http_info(name, custom_headers = nil)
|
929
|
+
is_hosting_environment_name_available_async(name, custom_headers).value!
|
930
|
+
end
|
931
|
+
|
932
|
+
#
|
933
|
+
# Whether hosting environment name is available
|
934
|
+
#
|
935
|
+
# @param name [String] Hosting environment name
|
936
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
937
|
+
# to the HTTP request.
|
938
|
+
#
|
939
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
940
|
+
#
|
941
|
+
def is_hosting_environment_name_available_async(name, custom_headers = nil)
|
635
942
|
fail ArgumentError, 'name is nil' if name.nil?
|
636
943
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
637
944
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -640,14 +947,17 @@ module Azure::ARM::Web
|
|
640
947
|
# Set Headers
|
641
948
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
642
949
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
643
|
-
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/ishostingenvironmentnameavailable
|
950
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/ishostingenvironmentnameavailable'
|
644
951
|
options = {
|
645
952
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
646
|
-
path_params: {'
|
647
|
-
query_params: {'api-version' => @client.api_version},
|
953
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
954
|
+
query_params: {'name' => name,'api-version' => @client.api_version},
|
648
955
|
headers: request_headers.merge(custom_headers || {})
|
649
956
|
}
|
650
|
-
|
957
|
+
|
958
|
+
request_url = @base_url || @client.base_url
|
959
|
+
|
960
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
651
961
|
promise = request.run_promise do |req|
|
652
962
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
653
963
|
end
|
@@ -674,13 +984,39 @@ module Azure::ARM::Web
|
|
674
984
|
# Whether hosting environment name is available
|
675
985
|
#
|
676
986
|
# @param name [String] Hosting environment name
|
677
|
-
# @param [Hash{String => String}]
|
678
|
-
#
|
987
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
988
|
+
# will be added to the HTTP request.
|
679
989
|
#
|
680
|
-
# @return [
|
681
|
-
# response.
|
990
|
+
# @return [Object] operation results.
|
682
991
|
#
|
683
|
-
def
|
992
|
+
def is_hosting_environment_with_legacy_name_available(name, custom_headers = nil)
|
993
|
+
response = is_hosting_environment_with_legacy_name_available_async(name, custom_headers).value!
|
994
|
+
response.body unless response.nil?
|
995
|
+
end
|
996
|
+
|
997
|
+
#
|
998
|
+
# Whether hosting environment name is available
|
999
|
+
#
|
1000
|
+
# @param name [String] Hosting environment name
|
1001
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1002
|
+
# will be added to the HTTP request.
|
1003
|
+
#
|
1004
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1005
|
+
#
|
1006
|
+
def is_hosting_environment_with_legacy_name_available_with_http_info(name, custom_headers = nil)
|
1007
|
+
is_hosting_environment_with_legacy_name_available_async(name, custom_headers).value!
|
1008
|
+
end
|
1009
|
+
|
1010
|
+
#
|
1011
|
+
# Whether hosting environment name is available
|
1012
|
+
#
|
1013
|
+
# @param name [String] Hosting environment name
|
1014
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1015
|
+
# to the HTTP request.
|
1016
|
+
#
|
1017
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1018
|
+
#
|
1019
|
+
def is_hosting_environment_with_legacy_name_available_async(name, custom_headers = nil)
|
684
1020
|
fail ArgumentError, 'name is nil' if name.nil?
|
685
1021
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
686
1022
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -689,14 +1025,17 @@ module Azure::ARM::Web
|
|
689
1025
|
# Set Headers
|
690
1026
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
691
1027
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
692
|
-
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/ishostingenvironmentnameavailable'
|
1028
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/ishostingenvironmentnameavailable/{name}'
|
693
1029
|
options = {
|
694
1030
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
695
|
-
path_params: {'subscriptionId' => @client.subscription_id},
|
696
|
-
query_params: {'
|
1031
|
+
path_params: {'name' => name,'subscriptionId' => @client.subscription_id},
|
1032
|
+
query_params: {'api-version' => @client.api_version},
|
697
1033
|
headers: request_headers.merge(custom_headers || {})
|
698
1034
|
}
|
699
|
-
|
1035
|
+
|
1036
|
+
request_url = @base_url || @client.base_url
|
1037
|
+
|
1038
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
700
1039
|
promise = request.run_promise do |req|
|
701
1040
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
702
1041
|
end
|
@@ -723,13 +1062,39 @@ module Azure::ARM::Web
|
|
723
1062
|
# Check if resource name is available
|
724
1063
|
#
|
725
1064
|
# @param request [ResourceNameAvailabilityRequest] Name availability request
|
726
|
-
# @param [Hash{String => String}]
|
727
|
-
#
|
1065
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1066
|
+
# will be added to the HTTP request.
|
728
1067
|
#
|
729
|
-
# @return [
|
730
|
-
# response.
|
1068
|
+
# @return [ResourceNameAvailability] operation results.
|
731
1069
|
#
|
732
1070
|
def check_name_availability(request, custom_headers = nil)
|
1071
|
+
response = check_name_availability_async(request, custom_headers).value!
|
1072
|
+
response.body unless response.nil?
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
#
|
1076
|
+
# Check if resource name is available
|
1077
|
+
#
|
1078
|
+
# @param request [ResourceNameAvailabilityRequest] Name availability request
|
1079
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1080
|
+
# will be added to the HTTP request.
|
1081
|
+
#
|
1082
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1083
|
+
#
|
1084
|
+
def check_name_availability_with_http_info(request, custom_headers = nil)
|
1085
|
+
check_name_availability_async(request, custom_headers).value!
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
#
|
1089
|
+
# Check if resource name is available
|
1090
|
+
#
|
1091
|
+
# @param request [ResourceNameAvailabilityRequest] Name availability request
|
1092
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1093
|
+
# to the HTTP request.
|
1094
|
+
#
|
1095
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1096
|
+
#
|
1097
|
+
def check_name_availability_async(request, custom_headers = nil)
|
733
1098
|
fail ArgumentError, 'request is nil' if request.nil?
|
734
1099
|
request.validate unless request.nil?
|
735
1100
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -745,7 +1110,7 @@ module Azure::ARM::Web
|
|
745
1110
|
unless request.nil?
|
746
1111
|
request = ResourceNameAvailabilityRequest.serialize_object(request)
|
747
1112
|
end
|
748
|
-
request_content = JSON.generate(request, quirks_mode: true)
|
1113
|
+
request_content = request != nil ? JSON.generate(request, quirks_mode: true) : nil
|
749
1114
|
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability'
|
750
1115
|
options = {
|
751
1116
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -754,7 +1119,10 @@ module Azure::ARM::Web
|
|
754
1119
|
body: request_content,
|
755
1120
|
headers: request_headers.merge(custom_headers || {})
|
756
1121
|
}
|
757
|
-
|
1122
|
+
|
1123
|
+
request_url = @base_url || @client.base_url
|
1124
|
+
|
1125
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
758
1126
|
promise = request.run_promise do |req|
|
759
1127
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
760
1128
|
end
|