azure_mgmt_web 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_web/app_service_certificate_orders.rb +128 -128
- data/lib/generated/azure_mgmt_web/app_service_environments.rb +1 -1
- data/lib/generated/azure_mgmt_web/app_service_plans.rb +1 -1
- data/lib/generated/azure_mgmt_web/certificates.rb +1 -1
- data/lib/generated/azure_mgmt_web/deleted_web_apps.rb +1 -1
- data/lib/generated/azure_mgmt_web/domains.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/access_control_entry_action.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/address.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/address_response.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/api_definition_info.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/app_service_certificate.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/app_service_certificate_order.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/app_service_environment.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/app_service_environment_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/app_service_plan.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/app_service_plan_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/application_logs_config.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/auto_heal_action_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/auto_heal_actions.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/auto_heal_custom_action.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/auto_heal_rules.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/auto_heal_triggers.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/azure_resource_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/backup_item.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/backup_item_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/backup_item_status.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/backup_request.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/backup_restore_operation_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/backup_schedule.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/built_in_authentication_provider.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/capability.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/certificate.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/certificate_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/certificate_details.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/certificate_email.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/certificate_order_action.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/certificate_order_action_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/certificate_order_status.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/certificate_product_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/channels.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/check_name_resource_types.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/clone_ability_result.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/cloning_info.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/compute_mode_options.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/conn_string_info.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/connection_string_dictionary.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/connection_string_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/contact.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/cors_settings.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/csm_site_recovery_entity.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/csm_slot_entity.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/csm_usage_quota.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/csr.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/csr_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/custom_host_name_dns_record_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/database_backup_setting.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/database_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/deleted_site.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/deployment.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/deployment_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/dns_verification_test_result.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/domain.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/domain_availablility_check_result.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/domain_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/domain_ownership_identifier.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/domain_purchase_consent.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/domain_status.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/domain_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/enabled_config.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/error_entity.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/experiments.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/file_system_application_logs_config.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/frequency_unit.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/geo_region.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/geo_region_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/global_csm_sku_description.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/handler_mapping.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/host_name.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/host_name_binding.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/host_name_binding_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/host_name_ssl_state.rb +13 -1
- data/lib/generated/azure_mgmt_web/models/host_name_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/host_type.rb +16 -0
- data/lib/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/hosting_environment_profile.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/hosting_environment_status.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/http_logs_config.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/hybrid_connection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/hybrid_connection_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/hybrid_connection_key.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/identifier.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/identifier_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/in_availability_reason_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/internal_load_balancing_mode.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/ip_security_restriction.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/key_vault_secret_status.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/localizable_string.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/log_level.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/managed_pipeline_mode.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/metric_availabilily.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/metric_definition.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/name_identifier.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/name_identifier_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/name_value_pair.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/network_access_control_entry.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/network_features.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/notification_level.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/operation.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/operation_status.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/perf_mon_response.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/perf_mon_sample.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/perf_mon_set.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/premier_add_on.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/premier_add_on_offer.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/provisioning_state.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/publishing_profile_format.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/push_settings.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/ramp_up_rule.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/recommendation.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/recommendation_rule.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/recover_response.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/requests_based_trigger.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_metric.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_metric_availability.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_metric_definition.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_metric_name.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_metric_property.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_metric_value.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_name_availability.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_name_availability_request.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_scope_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/restore_request.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/restore_response.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/route_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/scm_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_auth_settings.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_availability_state.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_cloneability.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_config.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_instance.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_limits.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_load_balancing.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_logs_config.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_machine_key.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_seal.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_seal_request.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_source_control.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/sku_capacity.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/sku_description.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/sku_info.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/sku_info_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/sku_infos.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/sku_name.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/slot_config_names_resource.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/slot_difference.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/slot_difference_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/slot_swap_status.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/snapshot.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/snapshot_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/source_control.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/source_control_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/ssl_state.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/stamp_capacity.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/status_codes_based_trigger.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/status_options.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/storage_migration_options.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/storage_migration_response.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/string_dictionary.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/tld_legal_agreement.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/top_level_domain.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/top_level_domain_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/unauthenticated_client_action.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/usage.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/usage_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/usage_state.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/user.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/validate_request.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/validate_resource_types.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/validate_response.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/validate_response_error.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/virtual_application.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/virtual_directory.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/virtual_ipmapping.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/virtual_network_profile.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/vnet_gateway.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/vnet_info.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/vnet_route.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/web_app_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/web_app_instance_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/worker_pool.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/worker_pool_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/worker_size_options.rb +1 -1
- data/lib/generated/azure_mgmt_web/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_web/recommendations.rb +1 -1
- data/lib/generated/azure_mgmt_web/top_level_domains.rb +1 -1
- data/lib/generated/azure_mgmt_web/version.rb +2 -2
- data/lib/generated/azure_mgmt_web/web_apps.rb +1 -1
- data/lib/generated/azure_mgmt_web/web_site_management_client.rb +172 -179
- data/lib/generated/azure_mgmt_web.rb +2 -1
- metadata +3 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -143,45 +143,45 @@ module Azure::ARM::Web
|
|
143
143
|
end
|
144
144
|
|
145
145
|
#
|
146
|
-
# Gets
|
146
|
+
# Gets publishing user
|
147
147
|
#
|
148
|
-
# Gets
|
148
|
+
# Gets publishing user
|
149
149
|
#
|
150
150
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
151
151
|
# will be added to the HTTP request.
|
152
152
|
#
|
153
|
-
# @return [
|
153
|
+
# @return [User] operation results.
|
154
154
|
#
|
155
|
-
def
|
156
|
-
|
157
|
-
|
155
|
+
def get_publishing_user(custom_headers = nil)
|
156
|
+
response = get_publishing_user_async(custom_headers).value!
|
157
|
+
response.body unless response.nil?
|
158
158
|
end
|
159
159
|
|
160
160
|
#
|
161
|
-
# Gets
|
161
|
+
# Gets publishing user
|
162
162
|
#
|
163
|
-
# Gets
|
163
|
+
# Gets publishing user
|
164
164
|
#
|
165
165
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
166
166
|
# will be added to the HTTP request.
|
167
167
|
#
|
168
168
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
169
169
|
#
|
170
|
-
def
|
171
|
-
|
170
|
+
def get_publishing_user_with_http_info(custom_headers = nil)
|
171
|
+
get_publishing_user_async(custom_headers).value!
|
172
172
|
end
|
173
173
|
|
174
174
|
#
|
175
|
-
# Gets
|
175
|
+
# Gets publishing user
|
176
176
|
#
|
177
|
-
# Gets
|
177
|
+
# Gets publishing user
|
178
178
|
#
|
179
179
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
180
180
|
# to the HTTP request.
|
181
181
|
#
|
182
182
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
183
183
|
#
|
184
|
-
def
|
184
|
+
def get_publishing_user_async(custom_headers = nil)
|
185
185
|
api_version = '2016-03-01'
|
186
186
|
|
187
187
|
|
@@ -190,7 +190,7 @@ module Azure::ARM::Web
|
|
190
190
|
# Set Headers
|
191
191
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
192
192
|
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
193
|
-
path_template = '/providers/Microsoft.Web/
|
193
|
+
path_template = '/providers/Microsoft.Web/publishingUsers/web'
|
194
194
|
|
195
195
|
request_url = @base_url || self.base_url
|
196
196
|
|
@@ -216,7 +216,7 @@ module Azure::ARM::Web
|
|
216
216
|
if status_code == 200
|
217
217
|
begin
|
218
218
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
219
|
-
result_mapper =
|
219
|
+
result_mapper = User.mapper()
|
220
220
|
result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
|
221
221
|
rescue Exception => e
|
222
222
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -230,53 +230,49 @@ module Azure::ARM::Web
|
|
230
230
|
end
|
231
231
|
|
232
232
|
#
|
233
|
-
# Updates
|
233
|
+
# Updates publishing user
|
234
234
|
#
|
235
|
-
# Updates
|
235
|
+
# Updates publishing user
|
236
236
|
#
|
237
|
-
# @param
|
238
|
-
# @param request_message [SourceControl] Source control token information
|
237
|
+
# @param user_details [User] Details of publishing user
|
239
238
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
240
239
|
# will be added to the HTTP request.
|
241
240
|
#
|
242
|
-
# @return [
|
241
|
+
# @return [User] operation results.
|
243
242
|
#
|
244
|
-
def
|
245
|
-
response =
|
243
|
+
def update_publishing_user(user_details, custom_headers = nil)
|
244
|
+
response = update_publishing_user_async(user_details, custom_headers).value!
|
246
245
|
response.body unless response.nil?
|
247
246
|
end
|
248
247
|
|
249
248
|
#
|
250
|
-
# Updates
|
249
|
+
# Updates publishing user
|
251
250
|
#
|
252
|
-
# Updates
|
251
|
+
# Updates publishing user
|
253
252
|
#
|
254
|
-
# @param
|
255
|
-
# @param request_message [SourceControl] Source control token information
|
253
|
+
# @param user_details [User] Details of publishing user
|
256
254
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
257
255
|
# will be added to the HTTP request.
|
258
256
|
#
|
259
257
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
260
258
|
#
|
261
|
-
def
|
262
|
-
|
259
|
+
def update_publishing_user_with_http_info(user_details, custom_headers = nil)
|
260
|
+
update_publishing_user_async(user_details, custom_headers).value!
|
263
261
|
end
|
264
262
|
|
265
263
|
#
|
266
|
-
# Updates
|
264
|
+
# Updates publishing user
|
267
265
|
#
|
268
|
-
# Updates
|
266
|
+
# Updates publishing user
|
269
267
|
#
|
270
|
-
# @param
|
271
|
-
# @param request_message [SourceControl] Source control token information
|
268
|
+
# @param user_details [User] Details of publishing user
|
272
269
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
273
270
|
# to the HTTP request.
|
274
271
|
#
|
275
272
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
276
273
|
#
|
277
|
-
def
|
278
|
-
fail ArgumentError, '
|
279
|
-
fail ArgumentError, 'request_message is nil' if request_message.nil?
|
274
|
+
def update_publishing_user_async(user_details, custom_headers = nil)
|
275
|
+
fail ArgumentError, 'user_details is nil' if user_details.nil?
|
280
276
|
api_version = '2016-03-01'
|
281
277
|
|
282
278
|
|
@@ -289,17 +285,16 @@ module Azure::ARM::Web
|
|
289
285
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
290
286
|
|
291
287
|
# Serialize Request
|
292
|
-
request_mapper =
|
293
|
-
request_content = self.serialize(request_mapper,
|
288
|
+
request_mapper = User.mapper()
|
289
|
+
request_content = self.serialize(request_mapper, user_details, 'user_details')
|
294
290
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
295
291
|
|
296
|
-
path_template = '/providers/Microsoft.Web/
|
292
|
+
path_template = '/providers/Microsoft.Web/publishingUsers/web'
|
297
293
|
|
298
294
|
request_url = @base_url || self.base_url
|
299
295
|
|
300
296
|
options = {
|
301
297
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
302
|
-
path_params: {'sourceControlType' => source_control_type},
|
303
298
|
query_params: {'api-version' => api_version},
|
304
299
|
body: request_content,
|
305
300
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -321,7 +316,7 @@ module Azure::ARM::Web
|
|
321
316
|
if status_code == 200
|
322
317
|
begin
|
323
318
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
324
|
-
result_mapper =
|
319
|
+
result_mapper = User.mapper()
|
325
320
|
result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
|
326
321
|
rescue Exception => e
|
327
322
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -335,95 +330,64 @@ module Azure::ARM::Web
|
|
335
330
|
end
|
336
331
|
|
337
332
|
#
|
338
|
-
#
|
333
|
+
# Gets the source controls available for Azure websites.
|
339
334
|
#
|
340
|
-
#
|
335
|
+
# Gets the source controls available for Azure websites.
|
341
336
|
#
|
342
|
-
# @param name [String] Resource name to verify.
|
343
|
-
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
344
|
-
# Possible values include: 'Site', 'Slot', 'HostingEnvironment'
|
345
|
-
# @param is_fqdn [Boolean] Is fully qualified domain name.
|
346
337
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
347
338
|
# will be added to the HTTP request.
|
348
339
|
#
|
349
|
-
# @return [
|
340
|
+
# @return [Array<SourceControl>] operation results.
|
350
341
|
#
|
351
|
-
def
|
352
|
-
|
353
|
-
|
342
|
+
def list_source_controls(custom_headers = nil)
|
343
|
+
first_page = list_source_controls_as_lazy(custom_headers)
|
344
|
+
first_page.get_all_items
|
354
345
|
end
|
355
346
|
|
356
347
|
#
|
357
|
-
#
|
348
|
+
# Gets the source controls available for Azure websites.
|
358
349
|
#
|
359
|
-
#
|
350
|
+
# Gets the source controls available for Azure websites.
|
360
351
|
#
|
361
|
-
# @param name [String] Resource name to verify.
|
362
|
-
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
363
|
-
# Possible values include: 'Site', 'Slot', 'HostingEnvironment'
|
364
|
-
# @param is_fqdn [Boolean] Is fully qualified domain name.
|
365
352
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
366
353
|
# will be added to the HTTP request.
|
367
354
|
#
|
368
355
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
369
356
|
#
|
370
|
-
def
|
371
|
-
|
357
|
+
def list_source_controls_with_http_info(custom_headers = nil)
|
358
|
+
list_source_controls_async(custom_headers).value!
|
372
359
|
end
|
373
360
|
|
374
361
|
#
|
375
|
-
#
|
362
|
+
# Gets the source controls available for Azure websites.
|
376
363
|
#
|
377
|
-
#
|
364
|
+
# Gets the source controls available for Azure websites.
|
378
365
|
#
|
379
|
-
# @param name [String] Resource name to verify.
|
380
|
-
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
381
|
-
# Possible values include: 'Site', 'Slot', 'HostingEnvironment'
|
382
|
-
# @param is_fqdn [Boolean] Is fully qualified domain name.
|
383
366
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
384
367
|
# to the HTTP request.
|
385
368
|
#
|
386
369
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
387
370
|
#
|
388
|
-
def
|
389
|
-
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
371
|
+
def list_source_controls_async(custom_headers = nil)
|
390
372
|
api_version = '2016-03-01'
|
391
|
-
fail ArgumentError, 'name is nil' if name.nil?
|
392
|
-
fail ArgumentError, 'type is nil' if type.nil?
|
393
373
|
|
394
|
-
request = ResourceNameAvailabilityRequest.new
|
395
|
-
unless name.nil? && type.nil? && is_fqdn.nil?
|
396
|
-
request.name = name
|
397
|
-
request.type = type
|
398
|
-
request.is_fqdn = is_fqdn
|
399
|
-
end
|
400
374
|
|
401
375
|
request_headers = {}
|
402
376
|
|
403
377
|
# Set Headers
|
404
378
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
405
379
|
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
406
|
-
|
407
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
408
|
-
|
409
|
-
# Serialize Request
|
410
|
-
request_mapper = ResourceNameAvailabilityRequest.mapper()
|
411
|
-
request_content = self.serialize(request_mapper, request, 'request')
|
412
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
413
|
-
|
414
|
-
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability'
|
380
|
+
path_template = '/providers/Microsoft.Web/sourcecontrols'
|
415
381
|
|
416
382
|
request_url = @base_url || self.base_url
|
417
383
|
|
418
384
|
options = {
|
419
385
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
420
|
-
path_params: {'subscriptionId' => subscription_id},
|
421
386
|
query_params: {'api-version' => api_version},
|
422
|
-
body: request_content,
|
423
387
|
headers: request_headers.merge(custom_headers || {}),
|
424
388
|
base_url: request_url
|
425
389
|
}
|
426
|
-
promise = self.make_request_async(:
|
390
|
+
promise = self.make_request_async(:get, path_template, options)
|
427
391
|
|
428
392
|
promise = promise.then do |result|
|
429
393
|
http_response = result.response
|
@@ -439,7 +403,7 @@ module Azure::ARM::Web
|
|
439
403
|
if status_code == 200
|
440
404
|
begin
|
441
405
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
442
|
-
result_mapper =
|
406
|
+
result_mapper = SourceControlCollection.mapper()
|
443
407
|
result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
|
444
408
|
rescue Exception => e
|
445
409
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -453,52 +417,53 @@ module Azure::ARM::Web
|
|
453
417
|
end
|
454
418
|
|
455
419
|
#
|
456
|
-
#
|
420
|
+
# Updates source control token
|
457
421
|
#
|
458
|
-
#
|
422
|
+
# Updates source control token
|
459
423
|
#
|
460
|
-
# @param
|
461
|
-
#
|
424
|
+
# @param source_control_type [String] Type of source control
|
425
|
+
# @param request_message [SourceControl] Source control token information
|
462
426
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
463
427
|
# will be added to the HTTP request.
|
464
428
|
#
|
465
|
-
# @return [
|
429
|
+
# @return [SourceControl] operation results.
|
466
430
|
#
|
467
|
-
def
|
468
|
-
|
469
|
-
|
431
|
+
def update_source_control(source_control_type, request_message, custom_headers = nil)
|
432
|
+
response = update_source_control_async(source_control_type, request_message, custom_headers).value!
|
433
|
+
response.body unless response.nil?
|
470
434
|
end
|
471
435
|
|
472
436
|
#
|
473
|
-
#
|
437
|
+
# Updates source control token
|
474
438
|
#
|
475
|
-
#
|
439
|
+
# Updates source control token
|
476
440
|
#
|
477
|
-
# @param
|
478
|
-
#
|
441
|
+
# @param source_control_type [String] Type of source control
|
442
|
+
# @param request_message [SourceControl] Source control token information
|
479
443
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
480
444
|
# will be added to the HTTP request.
|
481
445
|
#
|
482
446
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
483
447
|
#
|
484
|
-
def
|
485
|
-
|
448
|
+
def update_source_control_with_http_info(source_control_type, request_message, custom_headers = nil)
|
449
|
+
update_source_control_async(source_control_type, request_message, custom_headers).value!
|
486
450
|
end
|
487
451
|
|
488
452
|
#
|
489
|
-
#
|
453
|
+
# Updates source control token
|
490
454
|
#
|
491
|
-
#
|
455
|
+
# Updates source control token
|
492
456
|
#
|
493
|
-
# @param
|
494
|
-
#
|
457
|
+
# @param source_control_type [String] Type of source control
|
458
|
+
# @param request_message [SourceControl] Source control token information
|
495
459
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
496
460
|
# to the HTTP request.
|
497
461
|
#
|
498
462
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
499
463
|
#
|
500
|
-
def
|
501
|
-
fail ArgumentError, '
|
464
|
+
def update_source_control_async(source_control_type, request_message, custom_headers = nil)
|
465
|
+
fail ArgumentError, 'source_control_type is nil' if source_control_type.nil?
|
466
|
+
fail ArgumentError, 'request_message is nil' if request_message.nil?
|
502
467
|
api_version = '2016-03-01'
|
503
468
|
|
504
469
|
|
@@ -507,18 +472,27 @@ module Azure::ARM::Web
|
|
507
472
|
# Set Headers
|
508
473
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
509
474
|
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
510
|
-
|
475
|
+
|
476
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
477
|
+
|
478
|
+
# Serialize Request
|
479
|
+
request_mapper = SourceControl.mapper()
|
480
|
+
request_content = self.serialize(request_mapper, request_message, 'request_message')
|
481
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
482
|
+
|
483
|
+
path_template = '/providers/Microsoft.Web/sourcecontrols/{sourceControlType}'
|
511
484
|
|
512
485
|
request_url = @base_url || self.base_url
|
513
486
|
|
514
487
|
options = {
|
515
488
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
516
|
-
path_params: {'
|
517
|
-
query_params: {'
|
489
|
+
path_params: {'sourceControlType' => source_control_type},
|
490
|
+
query_params: {'api-version' => api_version},
|
491
|
+
body: request_content,
|
518
492
|
headers: request_headers.merge(custom_headers || {}),
|
519
493
|
base_url: request_url
|
520
494
|
}
|
521
|
-
promise = self.make_request_async(:
|
495
|
+
promise = self.make_request_async(:put, path_template, options)
|
522
496
|
|
523
497
|
promise = promise.then do |result|
|
524
498
|
http_response = result.response
|
@@ -534,7 +508,7 @@ module Azure::ARM::Web
|
|
534
508
|
if status_code == 200
|
535
509
|
begin
|
536
510
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
537
|
-
result_mapper =
|
511
|
+
result_mapper = SourceControl.mapper()
|
538
512
|
result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
|
539
513
|
rescue Exception => e
|
540
514
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -548,55 +522,83 @@ module Azure::ARM::Web
|
|
548
522
|
end
|
549
523
|
|
550
524
|
#
|
551
|
-
#
|
525
|
+
# Check if a resource name is available.
|
552
526
|
#
|
553
|
-
#
|
527
|
+
# Check if a resource name is available.
|
554
528
|
#
|
529
|
+
# @param name [String] Resource name to verify.
|
530
|
+
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
531
|
+
# Possible values include: 'Site', 'Slot', 'HostingEnvironment'
|
532
|
+
# @param is_fqdn [Boolean] Is fully qualified domain name.
|
555
533
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
556
534
|
# will be added to the HTTP request.
|
557
535
|
#
|
558
|
-
# @return [
|
536
|
+
# @return [ResourceNameAvailability] operation results.
|
559
537
|
#
|
560
|
-
def
|
561
|
-
|
562
|
-
|
538
|
+
def check_name_availability(name, type, is_fqdn = nil, custom_headers = nil)
|
539
|
+
response = check_name_availability_async(name, type, is_fqdn, custom_headers).value!
|
540
|
+
response.body unless response.nil?
|
563
541
|
end
|
564
542
|
|
565
543
|
#
|
566
|
-
#
|
544
|
+
# Check if a resource name is available.
|
567
545
|
#
|
568
|
-
#
|
546
|
+
# Check if a resource name is available.
|
569
547
|
#
|
548
|
+
# @param name [String] Resource name to verify.
|
549
|
+
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
550
|
+
# Possible values include: 'Site', 'Slot', 'HostingEnvironment'
|
551
|
+
# @param is_fqdn [Boolean] Is fully qualified domain name.
|
570
552
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
571
553
|
# will be added to the HTTP request.
|
572
554
|
#
|
573
555
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
574
556
|
#
|
575
|
-
def
|
576
|
-
|
557
|
+
def check_name_availability_with_http_info(name, type, is_fqdn = nil, custom_headers = nil)
|
558
|
+
check_name_availability_async(name, type, is_fqdn, custom_headers).value!
|
577
559
|
end
|
578
560
|
|
579
561
|
#
|
580
|
-
#
|
562
|
+
# Check if a resource name is available.
|
581
563
|
#
|
582
|
-
#
|
564
|
+
# Check if a resource name is available.
|
583
565
|
#
|
566
|
+
# @param name [String] Resource name to verify.
|
567
|
+
# @param type [CheckNameResourceTypes] Resource type used for verification.
|
568
|
+
# Possible values include: 'Site', 'Slot', 'HostingEnvironment'
|
569
|
+
# @param is_fqdn [Boolean] Is fully qualified domain name.
|
584
570
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
585
571
|
# to the HTTP request.
|
586
572
|
#
|
587
573
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
588
574
|
#
|
589
|
-
def
|
575
|
+
def check_name_availability_async(name, type, is_fqdn = nil, custom_headers = nil)
|
590
576
|
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
591
577
|
api_version = '2016-03-01'
|
578
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
579
|
+
fail ArgumentError, 'type is nil' if type.nil?
|
592
580
|
|
581
|
+
request = ResourceNameAvailabilityRequest.new
|
582
|
+
unless name.nil? && type.nil? && is_fqdn.nil?
|
583
|
+
request.name = name
|
584
|
+
request.type = type
|
585
|
+
request.is_fqdn = is_fqdn
|
586
|
+
end
|
593
587
|
|
594
588
|
request_headers = {}
|
595
589
|
|
596
590
|
# Set Headers
|
597
591
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
598
592
|
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
599
|
-
|
593
|
+
|
594
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
595
|
+
|
596
|
+
# Serialize Request
|
597
|
+
request_mapper = ResourceNameAvailabilityRequest.mapper()
|
598
|
+
request_content = self.serialize(request_mapper, request, 'request')
|
599
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
600
|
+
|
601
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/checknameavailability'
|
600
602
|
|
601
603
|
request_url = @base_url || self.base_url
|
602
604
|
|
@@ -604,10 +606,11 @@ module Azure::ARM::Web
|
|
604
606
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
605
607
|
path_params: {'subscriptionId' => subscription_id},
|
606
608
|
query_params: {'api-version' => api_version},
|
609
|
+
body: request_content,
|
607
610
|
headers: request_headers.merge(custom_headers || {}),
|
608
611
|
base_url: request_url
|
609
612
|
}
|
610
|
-
promise = self.make_request_async(:
|
613
|
+
promise = self.make_request_async(:post, path_template, options)
|
611
614
|
|
612
615
|
promise = promise.then do |result|
|
613
616
|
http_response = result.response
|
@@ -623,7 +626,7 @@ module Azure::ARM::Web
|
|
623
626
|
if status_code == 200
|
624
627
|
begin
|
625
628
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
626
|
-
result_mapper =
|
629
|
+
result_mapper = ResourceNameAvailability.mapper()
|
627
630
|
result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
|
628
631
|
rescue Exception => e
|
629
632
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -637,45 +640,51 @@ module Azure::ARM::Web
|
|
637
640
|
end
|
638
641
|
|
639
642
|
#
|
640
|
-
# Get
|
643
|
+
# Get a list of available geographical regions.
|
641
644
|
#
|
642
|
-
# Get
|
645
|
+
# Get a list of available geographical regions.
|
643
646
|
#
|
647
|
+
# @param sku [SkuName] Name of SKU used to filter the regions. Possible values
|
648
|
+
# include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic'
|
644
649
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
645
650
|
# will be added to the HTTP request.
|
646
651
|
#
|
647
|
-
# @return [
|
652
|
+
# @return [Array<GeoRegion>] operation results.
|
648
653
|
#
|
649
|
-
def
|
650
|
-
|
651
|
-
|
654
|
+
def list_geo_regions(sku = nil, custom_headers = nil)
|
655
|
+
first_page = list_geo_regions_as_lazy(sku, custom_headers)
|
656
|
+
first_page.get_all_items
|
652
657
|
end
|
653
658
|
|
654
659
|
#
|
655
|
-
# Get
|
660
|
+
# Get a list of available geographical regions.
|
656
661
|
#
|
657
|
-
# Get
|
662
|
+
# Get a list of available geographical regions.
|
658
663
|
#
|
664
|
+
# @param sku [SkuName] Name of SKU used to filter the regions. Possible values
|
665
|
+
# include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic'
|
659
666
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
660
667
|
# will be added to the HTTP request.
|
661
668
|
#
|
662
669
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
663
670
|
#
|
664
|
-
def
|
665
|
-
|
671
|
+
def list_geo_regions_with_http_info(sku = nil, custom_headers = nil)
|
672
|
+
list_geo_regions_async(sku, custom_headers).value!
|
666
673
|
end
|
667
674
|
|
668
675
|
#
|
669
|
-
# Get
|
676
|
+
# Get a list of available geographical regions.
|
670
677
|
#
|
671
|
-
# Get
|
678
|
+
# Get a list of available geographical regions.
|
672
679
|
#
|
680
|
+
# @param sku [SkuName] Name of SKU used to filter the regions. Possible values
|
681
|
+
# include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic'
|
673
682
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
674
683
|
# to the HTTP request.
|
675
684
|
#
|
676
685
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
677
686
|
#
|
678
|
-
def
|
687
|
+
def list_geo_regions_async(sku = nil, custom_headers = nil)
|
679
688
|
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
680
689
|
api_version = '2016-03-01'
|
681
690
|
|
@@ -685,14 +694,14 @@ module Azure::ARM::Web
|
|
685
694
|
# Set Headers
|
686
695
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
687
696
|
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
688
|
-
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/
|
697
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions'
|
689
698
|
|
690
699
|
request_url = @base_url || self.base_url
|
691
700
|
|
692
701
|
options = {
|
693
702
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
694
703
|
path_params: {'subscriptionId' => subscription_id},
|
695
|
-
query_params: {'api-version' => api_version},
|
704
|
+
query_params: {'sku' => sku,'api-version' => api_version},
|
696
705
|
headers: request_headers.merge(custom_headers || {}),
|
697
706
|
base_url: request_url
|
698
707
|
}
|
@@ -712,7 +721,7 @@ module Azure::ARM::Web
|
|
712
721
|
if status_code == 200
|
713
722
|
begin
|
714
723
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
715
|
-
result_mapper =
|
724
|
+
result_mapper = GeoRegionCollection.mapper()
|
716
725
|
result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
|
717
726
|
rescue Exception => e
|
718
727
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -726,52 +735,45 @@ module Azure::ARM::Web
|
|
726
735
|
end
|
727
736
|
|
728
737
|
#
|
729
|
-
#
|
738
|
+
# List all premier add-on offers.
|
730
739
|
#
|
731
|
-
#
|
740
|
+
# List all premier add-on offers.
|
732
741
|
#
|
733
|
-
# @param request_message [User] A request message with the new publishing
|
734
|
-
# credentials.
|
735
742
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
736
743
|
# will be added to the HTTP request.
|
737
744
|
#
|
738
|
-
# @return [
|
745
|
+
# @return [Array<PremierAddOnOffer>] operation results.
|
739
746
|
#
|
740
|
-
def
|
741
|
-
|
742
|
-
|
747
|
+
def list_premier_add_on_offers(custom_headers = nil)
|
748
|
+
first_page = list_premier_add_on_offers_as_lazy(custom_headers)
|
749
|
+
first_page.get_all_items
|
743
750
|
end
|
744
751
|
|
745
752
|
#
|
746
|
-
#
|
753
|
+
# List all premier add-on offers.
|
747
754
|
#
|
748
|
-
#
|
755
|
+
# List all premier add-on offers.
|
749
756
|
#
|
750
|
-
# @param request_message [User] A request message with the new publishing
|
751
|
-
# credentials.
|
752
757
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
753
758
|
# will be added to the HTTP request.
|
754
759
|
#
|
755
760
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
756
761
|
#
|
757
|
-
def
|
758
|
-
|
762
|
+
def list_premier_add_on_offers_with_http_info(custom_headers = nil)
|
763
|
+
list_premier_add_on_offers_async(custom_headers).value!
|
759
764
|
end
|
760
765
|
|
761
766
|
#
|
762
|
-
#
|
767
|
+
# List all premier add-on offers.
|
763
768
|
#
|
764
|
-
#
|
769
|
+
# List all premier add-on offers.
|
765
770
|
#
|
766
|
-
# @param request_message [User] A request message with the new publishing
|
767
|
-
# credentials.
|
768
771
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
769
772
|
# to the HTTP request.
|
770
773
|
#
|
771
774
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
772
775
|
#
|
773
|
-
def
|
774
|
-
fail ArgumentError, 'request_message is nil' if request_message.nil?
|
776
|
+
def list_premier_add_on_offers_async(custom_headers = nil)
|
775
777
|
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
776
778
|
api_version = '2016-03-01'
|
777
779
|
|
@@ -781,15 +783,7 @@ module Azure::ARM::Web
|
|
781
783
|
# Set Headers
|
782
784
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
783
785
|
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
784
|
-
|
785
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
786
|
-
|
787
|
-
# Serialize Request
|
788
|
-
request_mapper = User.mapper()
|
789
|
-
request_content = self.serialize(request_mapper, request_message, 'request_message')
|
790
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
791
|
-
|
792
|
-
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/publishingCredentials'
|
786
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/premieraddonoffers'
|
793
787
|
|
794
788
|
request_url = @base_url || self.base_url
|
795
789
|
|
@@ -797,11 +791,10 @@ module Azure::ARM::Web
|
|
797
791
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
798
792
|
path_params: {'subscriptionId' => subscription_id},
|
799
793
|
query_params: {'api-version' => api_version},
|
800
|
-
body: request_content,
|
801
794
|
headers: request_headers.merge(custom_headers || {}),
|
802
795
|
base_url: request_url
|
803
796
|
}
|
804
|
-
promise = self.make_request_async(:
|
797
|
+
promise = self.make_request_async(:get, path_template, options)
|
805
798
|
|
806
799
|
promise = promise.then do |result|
|
807
800
|
http_response = result.response
|
@@ -817,7 +810,7 @@ module Azure::ARM::Web
|
|
817
810
|
if status_code == 200
|
818
811
|
begin
|
819
812
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
820
|
-
result_mapper =
|
813
|
+
result_mapper = PremierAddOnOfferCollection.mapper()
|
821
814
|
result.body = self.deserialize(result_mapper, parsed_response, 'result.body')
|
822
815
|
rescue Exception => e
|
823
816
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1390,7 +1383,7 @@ module Azure::ARM::Web
|
|
1390
1383
|
headers: request_headers.merge(custom_headers || {}),
|
1391
1384
|
base_url: request_url
|
1392
1385
|
}
|
1393
|
-
promise = self.make_request_async(:
|
1386
|
+
promise = self.make_request_async(:get, path_template, options)
|
1394
1387
|
|
1395
1388
|
promise = promise.then do |result|
|
1396
1389
|
http_response = result.response
|
@@ -1655,7 +1648,7 @@ module Azure::ARM::Web
|
|
1655
1648
|
headers: request_headers.merge(custom_headers || {}),
|
1656
1649
|
base_url: request_url
|
1657
1650
|
}
|
1658
|
-
promise = self.make_request_async(:
|
1651
|
+
promise = self.make_request_async(:get, path_template, options)
|
1659
1652
|
|
1660
1653
|
promise = promise.then do |result|
|
1661
1654
|
http_response = result.response
|