azure_mgmt_web 0.7.0 → 0.8.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.rb +155 -145
- data/lib/generated/azure_mgmt_web/{certificate_orders.rb → app_service_certificate_orders.rb} +806 -530
- data/lib/generated/azure_mgmt_web/{hosting_environments.rb → app_service_environments.rb} +2528 -2077
- data/lib/generated/azure_mgmt_web/{server_farms.rb → app_service_plans.rb} +1964 -763
- data/lib/generated/azure_mgmt_web/certificates.rb +379 -105
- data/lib/generated/azure_mgmt_web/domains.rb +924 -249
- 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/{certificate_order_certificate.rb → app_service_certificate.rb} +11 -9
- data/lib/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +93 -0
- data/lib/generated/azure_mgmt_web/models/{certificate_order.rb → app_service_certificate_order.rb} +23 -12
- data/lib/generated/azure_mgmt_web/models/{classic_mobile_service_collection.rb → app_service_certificate_order_collection.rb} +11 -11
- data/lib/generated/azure_mgmt_web/models/{hosting_environment.rb → app_service_environment.rb} +50 -28
- data/lib/generated/azure_mgmt_web/models/{hosting_environment_collection.rb → app_service_environment_collection.rb} +10 -10
- data/lib/generated/azure_mgmt_web/models/{server_farm_with_rich_sku.rb → app_service_plan.rb} +13 -27
- data/lib/generated/azure_mgmt_web/models/{server_farm_collection.rb → app_service_plan_collection.rb} +10 -10
- data/lib/generated/azure_mgmt_web/models/application_logs_config.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/arm_plan.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 +3 -3
- 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 +5 -5
- 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 +4 -4
- data/lib/generated/azure_mgmt_web/models/backup_restore_operation_type.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/backup_schedule.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/built_in_authentication_provider.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/{conn_string_info.rb → capability.rb} +17 -19
- data/lib/generated/azure_mgmt_web/models/certificate.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/certificate_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/certificate_details.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/certificate_email.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/certificate_order_action.rb +3 -2
- 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 +17 -0
- data/lib/generated/azure_mgmt_web/models/classic_mobile_service.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/clone_ability_result.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/cloning_info.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/compute_mode_options.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +5 -4
- data/lib/generated/azure_mgmt_web/models/connection_string_dictionary.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/connection_string_type.rb +24 -0
- data/lib/generated/azure_mgmt_web/models/contact.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/cors_settings.rb +4 -5
- 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 +4 -4
- 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 +3 -2
- 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 +238 -0
- data/lib/generated/azure_mgmt_web/models/database_backup_setting.rb +3 -5
- data/lib/generated/azure_mgmt_web/models/deleted_site.rb +48 -41
- data/lib/generated/azure_mgmt_web/models/{deleted_site_collection.rb → deleted_web_app_collection.rb} +6 -6
- data/lib/generated/azure_mgmt_web/models/deployment.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/deployment_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/dns_verification_test_result.rb +17 -0
- data/lib/generated/azure_mgmt_web/models/domain.rb +7 -7
- 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_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_registration_input.rb +7 -7
- 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 +109 -0
- 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 +2 -3
- data/lib/generated/azure_mgmt_web/models/frequency_unit.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/geo_region.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/geo_region_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/handler_mapping.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/host_name.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/host_name_binding.rb +3 -2
- 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 +1 -1
- data/lib/generated/azure_mgmt_web/models/host_name_type.rb +1 -1
- 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 +158 -0
- data/lib/generated/azure_mgmt_web/models/hybrid_connection_key.rb +105 -0
- 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 +2 -2
- data/lib/generated/azure_mgmt_web/models/key_vault_secret_status.rb +2 -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 +3 -2
- data/lib/generated/azure_mgmt_web/models/metric_definition_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +95 -0
- 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 +2 -2
- data/lib/generated/azure_mgmt_web/models/network_features.rb +22 -2
- data/lib/generated/azure_mgmt_web/models/notification_level.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/operation.rb +125 -0
- data/lib/generated/azure_mgmt_web/models/operation_status.rb +19 -0
- data/lib/generated/azure_mgmt_web/models/{certificate_order_collection.rb → perf_mon_counter_collection.rb} +11 -11
- data/lib/generated/azure_mgmt_web/models/perf_mon_response.rb +65 -0
- data/lib/generated/azure_mgmt_web/models/perf_mon_sample.rb +64 -0
- data/lib/generated/azure_mgmt_web/models/perf_mon_set.rb +93 -0
- data/lib/generated/azure_mgmt_web/models/premier_add_on_request.rb +2 -2
- data/lib/generated/azure_mgmt_web/models/provisioning_state.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/push_settings.rb +80 -0
- data/lib/generated/azure_mgmt_web/models/ramp_up_rule.rb +8 -9
- data/lib/generated/azure_mgmt_web/models/recommendation.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/recommendation_rule.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/recover_response.rb +95 -0
- data/lib/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +24 -2
- data/lib/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +24 -2
- data/lib/generated/azure_mgmt_web/models/requests_based_trigger.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_metric.rb +23 -4
- data/lib/generated/azure_mgmt_web/models/resource_metric_collection.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/resource_metric_name.rb +3 -1
- data/lib/generated/azure_mgmt_web/models/{key_value_pair_string_string.rb → resource_metric_property.rb} +8 -10
- data/lib/generated/azure_mgmt_web/models/resource_metric_value.rb +29 -4
- data/lib/generated/azure_mgmt_web/models/resource_name_availability.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/resource_name_availability_request.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/restore_request.rb +5 -4
- data/lib/generated/azure_mgmt_web/models/restore_response.rb +5 -4
- data/lib/generated/azure_mgmt_web/models/site.rb +48 -41
- data/lib/generated/azure_mgmt_web/models/site_auth_settings.rb +43 -54
- data/lib/generated/azure_mgmt_web/models/site_availability_state.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_cloneability.rb +4 -5
- data/lib/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/site_config.rb +32 -63
- data/lib/generated/azure_mgmt_web/models/site_instance.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/site_instance_collection.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 +3 -2
- data/lib/generated/azure_mgmt_web/models/site_machine_key.rb +74 -0
- data/lib/generated/azure_mgmt_web/models/site_source_control.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/sku_capacity.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/sku_description.rb +48 -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/slot_config_names_resource.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/slot_difference.rb +5 -4
- data/lib/generated/azure_mgmt_web/models/slot_difference_collection.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 +94 -0
- data/lib/generated/azure_mgmt_web/models/snapshot_collection.rb +94 -0
- data/lib/generated/azure_mgmt_web/models/source_control.rb +3 -2
- 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 +125 -0
- data/lib/generated/azure_mgmt_web/models/storage_migration_response.rb +95 -0
- data/lib/generated/azure_mgmt_web/models/string_dictionary.rb +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +17 -7
- data/lib/generated/azure_mgmt_web/models/validate_properties.rb +76 -0
- data/lib/generated/azure_mgmt_web/models/validate_request.rb +76 -0
- data/lib/generated/azure_mgmt_web/models/validate_resource_types.rb +16 -0
- data/lib/generated/azure_mgmt_web/models/validate_response.rb +56 -0
- data/lib/generated/azure_mgmt_web/models/validate_response_error.rb +54 -0
- data/lib/generated/azure_mgmt_web/models/virtual_application.rb +7 -6
- data/lib/generated/azure_mgmt_web/models/virtual_directory.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/virtual_ipmapping.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/virtual_network_profile.rb +3 -1
- data/lib/generated/azure_mgmt_web/models/vnet_gateway.rb +5 -4
- data/lib/generated/azure_mgmt_web/models/vnet_info.rb +5 -4
- data/lib/generated/azure_mgmt_web/models/vnet_route.rb +9 -9
- data/lib/generated/azure_mgmt_web/models/{site_collection.rb → web_app_collection.rb} +6 -6
- data/lib/generated/azure_mgmt_web/models/worker_pool.rb +5 -4
- 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 +128 -96
- data/lib/generated/azure_mgmt_web/top_level_domains.rb +118 -91
- data/lib/generated/azure_mgmt_web/version.rb +2 -2
- data/lib/generated/azure_mgmt_web/{sites.rb → web_apps.rb} +11407 -6127
- data/lib/generated/azure_mgmt_web/web_site_management_client.rb +1486 -51
- metadata +46 -36
- data/lib/generated/azure_mgmt_web/classic_mobile_services.rb +0 -400
- data/lib/generated/azure_mgmt_web/global.rb +0 -1888
- data/lib/generated/azure_mgmt_web/global_certificate_order.rb +0 -309
- data/lib/generated/azure_mgmt_web/global_domain_registration.rb +0 -699
- data/lib/generated/azure_mgmt_web/global_resource_groups.rb +0 -116
- data/lib/generated/azure_mgmt_web/managed_hosting_environments.rb +0 -1394
- data/lib/generated/azure_mgmt_web/models/certificate_order_certificate_collection.rb +0 -93
- data/lib/generated/azure_mgmt_web/models/database_server_type.rb +0 -18
- data/lib/generated/azure_mgmt_web/models/managed_hosting_environment.rb +0 -218
- data/lib/generated/azure_mgmt_web/models/managed_hosting_environment_collection.rb +0 -93
- data/lib/generated/azure_mgmt_web/models/managed_hosting_environment_status.rb +0 -17
- data/lib/generated/azure_mgmt_web/models/routing_rule.rb +0 -46
- data/lib/generated/azure_mgmt_web/models/site_properties.rb +0 -88
- data/lib/generated/azure_mgmt_web/models/slot_config_names.rb +0 -71
- data/lib/generated/azure_mgmt_web/provider.rb +0 -581
- data/lib/generated/azure_mgmt_web/usage_operations.rb +0 -122
@@ -1,116 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Web
|
7
|
-
#
|
8
|
-
# Use these APIs to manage Azure Websites resources through the Azure
|
9
|
-
# Resource Manager. All task operations conform to the HTTP/1.1 protocol
|
10
|
-
# specification and each operation returns an x-ms-request-id header that
|
11
|
-
# can be used to obtain information about the request. You must make sure
|
12
|
-
# that requests made to these resources are secure. For more information,
|
13
|
-
# see <a
|
14
|
-
# href="https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx">Authenticating
|
15
|
-
# Azure Resource Manager requests.</a>
|
16
|
-
#
|
17
|
-
class GlobalResourceGroups
|
18
|
-
include Azure::ARM::Web::Models
|
19
|
-
include MsRestAzure
|
20
|
-
|
21
|
-
#
|
22
|
-
# Creates and initializes a new instance of the GlobalResourceGroups class.
|
23
|
-
# @param client service class for accessing basic functionality.
|
24
|
-
#
|
25
|
-
def initialize(client)
|
26
|
-
@client = client
|
27
|
-
end
|
28
|
-
|
29
|
-
# @return [WebSiteManagementClient] reference to the WebSiteManagementClient
|
30
|
-
attr_reader :client
|
31
|
-
|
32
|
-
#
|
33
|
-
# @param resource_group_name [String]
|
34
|
-
# @param move_resource_envelope [CsmMoveResourceEnvelope]
|
35
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
|
-
# will be added to the HTTP request.
|
37
|
-
#
|
38
|
-
#
|
39
|
-
def move_resources(resource_group_name, move_resource_envelope, custom_headers = nil)
|
40
|
-
response = move_resources_async(resource_group_name, move_resource_envelope, custom_headers).value!
|
41
|
-
nil
|
42
|
-
end
|
43
|
-
|
44
|
-
#
|
45
|
-
# @param resource_group_name [String]
|
46
|
-
# @param move_resource_envelope [CsmMoveResourceEnvelope]
|
47
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
48
|
-
# will be added to the HTTP request.
|
49
|
-
#
|
50
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
51
|
-
#
|
52
|
-
def move_resources_with_http_info(resource_group_name, move_resource_envelope, custom_headers = nil)
|
53
|
-
move_resources_async(resource_group_name, move_resource_envelope, custom_headers).value!
|
54
|
-
end
|
55
|
-
|
56
|
-
#
|
57
|
-
# @param resource_group_name [String]
|
58
|
-
# @param move_resource_envelope [CsmMoveResourceEnvelope]
|
59
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
60
|
-
# to the HTTP request.
|
61
|
-
#
|
62
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
63
|
-
#
|
64
|
-
def move_resources_async(resource_group_name, move_resource_envelope, custom_headers = nil)
|
65
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
66
|
-
fail ArgumentError, 'move_resource_envelope is nil' if move_resource_envelope.nil?
|
67
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
68
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
69
|
-
|
70
|
-
|
71
|
-
request_headers = {}
|
72
|
-
|
73
|
-
# Set Headers
|
74
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
75
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
76
|
-
|
77
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
78
|
-
|
79
|
-
# Serialize Request
|
80
|
-
request_mapper = CsmMoveResourceEnvelope.mapper()
|
81
|
-
request_content = @client.serialize(request_mapper, move_resource_envelope, 'move_resource_envelope')
|
82
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
83
|
-
|
84
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/moveResources'
|
85
|
-
|
86
|
-
request_url = @base_url || @client.base_url
|
87
|
-
|
88
|
-
options = {
|
89
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
90
|
-
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
91
|
-
query_params: {'api-version' => @client.api_version},
|
92
|
-
body: request_content,
|
93
|
-
headers: request_headers.merge(custom_headers || {}),
|
94
|
-
base_url: request_url
|
95
|
-
}
|
96
|
-
promise = @client.make_request_async(:post, path_template, options)
|
97
|
-
|
98
|
-
promise = promise.then do |result|
|
99
|
-
http_response = result.response
|
100
|
-
status_code = http_response.status
|
101
|
-
response_content = http_response.body
|
102
|
-
unless status_code == 204
|
103
|
-
error_model = JSON.load(response_content)
|
104
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
105
|
-
end
|
106
|
-
|
107
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
108
|
-
|
109
|
-
result
|
110
|
-
end
|
111
|
-
|
112
|
-
promise.execute
|
113
|
-
end
|
114
|
-
|
115
|
-
end
|
116
|
-
end
|
@@ -1,1394 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Web
|
7
|
-
#
|
8
|
-
# Use these APIs to manage Azure Websites resources through the Azure
|
9
|
-
# Resource Manager. All task operations conform to the HTTP/1.1 protocol
|
10
|
-
# specification and each operation returns an x-ms-request-id header that
|
11
|
-
# can be used to obtain information about the request. You must make sure
|
12
|
-
# that requests made to these resources are secure. For more information,
|
13
|
-
# see <a
|
14
|
-
# href="https://msdn.microsoft.com/en-us/library/azure/dn790557.aspx">Authenticating
|
15
|
-
# Azure Resource Manager requests.</a>
|
16
|
-
#
|
17
|
-
class ManagedHostingEnvironments
|
18
|
-
include Azure::ARM::Web::Models
|
19
|
-
include MsRestAzure
|
20
|
-
|
21
|
-
#
|
22
|
-
# Creates and initializes a new instance of the ManagedHostingEnvironments class.
|
23
|
-
# @param client service class for accessing basic functionality.
|
24
|
-
#
|
25
|
-
def initialize(client)
|
26
|
-
@client = client
|
27
|
-
end
|
28
|
-
|
29
|
-
# @return [WebSiteManagementClient] reference to the WebSiteManagementClient
|
30
|
-
attr_reader :client
|
31
|
-
|
32
|
-
#
|
33
|
-
# Get properties of a managed hosting environment.
|
34
|
-
#
|
35
|
-
# @param resource_group_name [String] Name of resource group
|
36
|
-
# @param name [String] Name of managed hosting environment
|
37
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
38
|
-
# will be added to the HTTP request.
|
39
|
-
#
|
40
|
-
# @return [ManagedHostingEnvironment] operation results.
|
41
|
-
#
|
42
|
-
def get_managed_hosting_environment(resource_group_name, name, custom_headers = nil)
|
43
|
-
response = get_managed_hosting_environment_async(resource_group_name, name, custom_headers).value!
|
44
|
-
response.body unless response.nil?
|
45
|
-
end
|
46
|
-
|
47
|
-
#
|
48
|
-
# Get properties of a managed hosting environment.
|
49
|
-
#
|
50
|
-
# @param resource_group_name [String] Name of resource group
|
51
|
-
# @param name [String] Name of managed hosting environment
|
52
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
53
|
-
# will be added to the HTTP request.
|
54
|
-
#
|
55
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
56
|
-
#
|
57
|
-
def get_managed_hosting_environment_with_http_info(resource_group_name, name, custom_headers = nil)
|
58
|
-
get_managed_hosting_environment_async(resource_group_name, name, custom_headers).value!
|
59
|
-
end
|
60
|
-
|
61
|
-
#
|
62
|
-
# Get properties of a managed hosting environment.
|
63
|
-
#
|
64
|
-
# @param resource_group_name [String] Name of resource group
|
65
|
-
# @param name [String] Name of managed hosting environment
|
66
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
67
|
-
# to the HTTP request.
|
68
|
-
#
|
69
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
70
|
-
#
|
71
|
-
def get_managed_hosting_environment_async(resource_group_name, name, custom_headers = nil)
|
72
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
73
|
-
fail ArgumentError, 'name is nil' if name.nil?
|
74
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
75
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
76
|
-
|
77
|
-
|
78
|
-
request_headers = {}
|
79
|
-
|
80
|
-
# Set Headers
|
81
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
82
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
83
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}'
|
84
|
-
|
85
|
-
request_url = @base_url || @client.base_url
|
86
|
-
|
87
|
-
options = {
|
88
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
89
|
-
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
90
|
-
query_params: {'api-version' => @client.api_version},
|
91
|
-
headers: request_headers.merge(custom_headers || {}),
|
92
|
-
base_url: request_url
|
93
|
-
}
|
94
|
-
promise = @client.make_request_async(:get, path_template, options)
|
95
|
-
|
96
|
-
promise = promise.then do |result|
|
97
|
-
http_response = result.response
|
98
|
-
status_code = http_response.status
|
99
|
-
response_content = http_response.body
|
100
|
-
unless status_code == 200
|
101
|
-
error_model = JSON.load(response_content)
|
102
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
103
|
-
end
|
104
|
-
|
105
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
106
|
-
# Deserialize Response
|
107
|
-
if status_code == 200
|
108
|
-
begin
|
109
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
110
|
-
result_mapper = ManagedHostingEnvironment.mapper()
|
111
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
112
|
-
rescue Exception => e
|
113
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
|
-
result
|
118
|
-
end
|
119
|
-
|
120
|
-
promise.execute
|
121
|
-
end
|
122
|
-
|
123
|
-
#
|
124
|
-
# Create or update a managed hosting environment.
|
125
|
-
#
|
126
|
-
# @param resource_group_name [String] Name of resource group
|
127
|
-
# @param name [String] Name of managed hosting environment
|
128
|
-
# @param managed_hosting_environment_envelope [HostingEnvironment] Properties
|
129
|
-
# of managed hosting environment
|
130
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
131
|
-
# will be added to the HTTP request.
|
132
|
-
#
|
133
|
-
# @return [HostingEnvironment] operation results.
|
134
|
-
#
|
135
|
-
def create_or_update_managed_hosting_environment(resource_group_name, name, managed_hosting_environment_envelope, custom_headers = nil)
|
136
|
-
response = create_or_update_managed_hosting_environment_async(resource_group_name, name, managed_hosting_environment_envelope, custom_headers).value!
|
137
|
-
response.body unless response.nil?
|
138
|
-
end
|
139
|
-
|
140
|
-
#
|
141
|
-
# @param resource_group_name [String] Name of resource group
|
142
|
-
# @param name [String] Name of managed hosting environment
|
143
|
-
# @param managed_hosting_environment_envelope [HostingEnvironment] Properties
|
144
|
-
# of managed hosting environment
|
145
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
146
|
-
# will be added to the HTTP request.
|
147
|
-
#
|
148
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
149
|
-
# response.
|
150
|
-
#
|
151
|
-
def create_or_update_managed_hosting_environment_async(resource_group_name, name, managed_hosting_environment_envelope, custom_headers = nil)
|
152
|
-
# Send request
|
153
|
-
promise = begin_create_or_update_managed_hosting_environment_async(resource_group_name, name, managed_hosting_environment_envelope, custom_headers)
|
154
|
-
|
155
|
-
promise = promise.then do |response|
|
156
|
-
# Defining deserialization method.
|
157
|
-
deserialize_method = lambda do |parsed_response|
|
158
|
-
result_mapper = HostingEnvironment.mapper()
|
159
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
160
|
-
end
|
161
|
-
|
162
|
-
# Waiting for response.
|
163
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
164
|
-
end
|
165
|
-
|
166
|
-
promise
|
167
|
-
end
|
168
|
-
|
169
|
-
#
|
170
|
-
# Create or update a managed hosting environment.
|
171
|
-
#
|
172
|
-
# @param resource_group_name [String] Name of resource group
|
173
|
-
# @param name [String] Name of managed hosting environment
|
174
|
-
# @param managed_hosting_environment_envelope [HostingEnvironment] Properties
|
175
|
-
# of managed hosting environment
|
176
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
177
|
-
# will be added to the HTTP request.
|
178
|
-
#
|
179
|
-
# @return [HostingEnvironment] operation results.
|
180
|
-
#
|
181
|
-
def begin_create_or_update_managed_hosting_environment(resource_group_name, name, managed_hosting_environment_envelope, custom_headers = nil)
|
182
|
-
response = begin_create_or_update_managed_hosting_environment_async(resource_group_name, name, managed_hosting_environment_envelope, custom_headers).value!
|
183
|
-
response.body unless response.nil?
|
184
|
-
end
|
185
|
-
|
186
|
-
#
|
187
|
-
# Create or update a managed hosting environment.
|
188
|
-
#
|
189
|
-
# @param resource_group_name [String] Name of resource group
|
190
|
-
# @param name [String] Name of managed hosting environment
|
191
|
-
# @param managed_hosting_environment_envelope [HostingEnvironment] Properties
|
192
|
-
# of managed hosting environment
|
193
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
194
|
-
# will be added to the HTTP request.
|
195
|
-
#
|
196
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
197
|
-
#
|
198
|
-
def begin_create_or_update_managed_hosting_environment_with_http_info(resource_group_name, name, managed_hosting_environment_envelope, custom_headers = nil)
|
199
|
-
begin_create_or_update_managed_hosting_environment_async(resource_group_name, name, managed_hosting_environment_envelope, custom_headers).value!
|
200
|
-
end
|
201
|
-
|
202
|
-
#
|
203
|
-
# Create or update a managed hosting environment.
|
204
|
-
#
|
205
|
-
# @param resource_group_name [String] Name of resource group
|
206
|
-
# @param name [String] Name of managed hosting environment
|
207
|
-
# @param managed_hosting_environment_envelope [HostingEnvironment] Properties
|
208
|
-
# of managed hosting environment
|
209
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
210
|
-
# to the HTTP request.
|
211
|
-
#
|
212
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
213
|
-
#
|
214
|
-
def begin_create_or_update_managed_hosting_environment_async(resource_group_name, name, managed_hosting_environment_envelope, custom_headers = nil)
|
215
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
216
|
-
fail ArgumentError, 'name is nil' if name.nil?
|
217
|
-
fail ArgumentError, 'managed_hosting_environment_envelope is nil' if managed_hosting_environment_envelope.nil?
|
218
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
219
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
220
|
-
|
221
|
-
|
222
|
-
request_headers = {}
|
223
|
-
|
224
|
-
# Set Headers
|
225
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
226
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
227
|
-
|
228
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
229
|
-
|
230
|
-
# Serialize Request
|
231
|
-
request_mapper = HostingEnvironment.mapper()
|
232
|
-
request_content = @client.serialize(request_mapper, managed_hosting_environment_envelope, 'managed_hosting_environment_envelope')
|
233
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
234
|
-
|
235
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}'
|
236
|
-
|
237
|
-
request_url = @base_url || @client.base_url
|
238
|
-
|
239
|
-
options = {
|
240
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
241
|
-
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
242
|
-
query_params: {'api-version' => @client.api_version},
|
243
|
-
body: request_content,
|
244
|
-
headers: request_headers.merge(custom_headers || {}),
|
245
|
-
base_url: request_url
|
246
|
-
}
|
247
|
-
promise = @client.make_request_async(:put, path_template, options)
|
248
|
-
|
249
|
-
promise = promise.then do |result|
|
250
|
-
http_response = result.response
|
251
|
-
status_code = http_response.status
|
252
|
-
response_content = http_response.body
|
253
|
-
unless status_code == 202 || status_code == 400 || status_code == 404 || status_code == 409
|
254
|
-
error_model = JSON.load(response_content)
|
255
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
256
|
-
end
|
257
|
-
|
258
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
259
|
-
# Deserialize Response
|
260
|
-
if status_code == 202
|
261
|
-
begin
|
262
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
263
|
-
result_mapper = HostingEnvironment.mapper()
|
264
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
265
|
-
rescue Exception => e
|
266
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
267
|
-
end
|
268
|
-
end
|
269
|
-
|
270
|
-
result
|
271
|
-
end
|
272
|
-
|
273
|
-
promise.execute
|
274
|
-
end
|
275
|
-
|
276
|
-
#
|
277
|
-
# Delete a managed hosting environment.
|
278
|
-
#
|
279
|
-
# @param resource_group_name [String] Name of resource group
|
280
|
-
# @param name [String] Name of managed hosting environment
|
281
|
-
# @param force_delete [Boolean] Delete even if the managed hosting environment
|
282
|
-
# contains resources
|
283
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
284
|
-
# will be added to the HTTP request.
|
285
|
-
#
|
286
|
-
# @return [Object] operation results.
|
287
|
-
#
|
288
|
-
def delete_managed_hosting_environment(resource_group_name, name, force_delete = nil, custom_headers = nil)
|
289
|
-
response = delete_managed_hosting_environment_async(resource_group_name, name, force_delete, custom_headers).value!
|
290
|
-
response.body unless response.nil?
|
291
|
-
end
|
292
|
-
|
293
|
-
#
|
294
|
-
# @param resource_group_name [String] Name of resource group
|
295
|
-
# @param name [String] Name of managed hosting environment
|
296
|
-
# @param force_delete [Boolean] Delete even if the managed hosting environment
|
297
|
-
# contains resources
|
298
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
299
|
-
# will be added to the HTTP request.
|
300
|
-
#
|
301
|
-
# @return [Concurrent::Promise] promise which provides async access to http
|
302
|
-
# response.
|
303
|
-
#
|
304
|
-
def delete_managed_hosting_environment_async(resource_group_name, name, force_delete = nil, custom_headers = nil)
|
305
|
-
# Send request
|
306
|
-
promise = begin_delete_managed_hosting_environment_async(resource_group_name, name, force_delete, custom_headers)
|
307
|
-
|
308
|
-
promise = promise.then do |response|
|
309
|
-
# Defining deserialization method.
|
310
|
-
deserialize_method = lambda do |parsed_response|
|
311
|
-
result_mapper = {
|
312
|
-
required: false,
|
313
|
-
serialized_name: 'parsed_response',
|
314
|
-
type: {
|
315
|
-
name: 'Object'
|
316
|
-
}
|
317
|
-
}
|
318
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
319
|
-
end
|
320
|
-
|
321
|
-
# Waiting for response.
|
322
|
-
@client.get_long_running_operation_result(response, deserialize_method)
|
323
|
-
end
|
324
|
-
|
325
|
-
promise
|
326
|
-
end
|
327
|
-
|
328
|
-
#
|
329
|
-
# Delete a managed hosting environment.
|
330
|
-
#
|
331
|
-
# @param resource_group_name [String] Name of resource group
|
332
|
-
# @param name [String] Name of managed hosting environment
|
333
|
-
# @param force_delete [Boolean] Delete even if the managed hosting environment
|
334
|
-
# contains resources
|
335
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
336
|
-
# will be added to the HTTP request.
|
337
|
-
#
|
338
|
-
# @return [Object] operation results.
|
339
|
-
#
|
340
|
-
def begin_delete_managed_hosting_environment(resource_group_name, name, force_delete = nil, custom_headers = nil)
|
341
|
-
response = begin_delete_managed_hosting_environment_async(resource_group_name, name, force_delete, custom_headers).value!
|
342
|
-
response.body unless response.nil?
|
343
|
-
end
|
344
|
-
|
345
|
-
#
|
346
|
-
# Delete a managed hosting environment.
|
347
|
-
#
|
348
|
-
# @param resource_group_name [String] Name of resource group
|
349
|
-
# @param name [String] Name of managed hosting environment
|
350
|
-
# @param force_delete [Boolean] Delete even if the managed hosting environment
|
351
|
-
# contains resources
|
352
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
353
|
-
# will be added to the HTTP request.
|
354
|
-
#
|
355
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
356
|
-
#
|
357
|
-
def begin_delete_managed_hosting_environment_with_http_info(resource_group_name, name, force_delete = nil, custom_headers = nil)
|
358
|
-
begin_delete_managed_hosting_environment_async(resource_group_name, name, force_delete, custom_headers).value!
|
359
|
-
end
|
360
|
-
|
361
|
-
#
|
362
|
-
# Delete a managed hosting environment.
|
363
|
-
#
|
364
|
-
# @param resource_group_name [String] Name of resource group
|
365
|
-
# @param name [String] Name of managed hosting environment
|
366
|
-
# @param force_delete [Boolean] Delete even if the managed hosting environment
|
367
|
-
# contains resources
|
368
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
369
|
-
# to the HTTP request.
|
370
|
-
#
|
371
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
372
|
-
#
|
373
|
-
def begin_delete_managed_hosting_environment_async(resource_group_name, name, force_delete = nil, custom_headers = nil)
|
374
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
375
|
-
fail ArgumentError, 'name is nil' if name.nil?
|
376
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
377
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
378
|
-
|
379
|
-
|
380
|
-
request_headers = {}
|
381
|
-
|
382
|
-
# Set Headers
|
383
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
384
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
385
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}'
|
386
|
-
|
387
|
-
request_url = @base_url || @client.base_url
|
388
|
-
|
389
|
-
options = {
|
390
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
391
|
-
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
392
|
-
query_params: {'forceDelete' => force_delete,'api-version' => @client.api_version},
|
393
|
-
headers: request_headers.merge(custom_headers || {}),
|
394
|
-
base_url: request_url
|
395
|
-
}
|
396
|
-
promise = @client.make_request_async(:delete, path_template, options)
|
397
|
-
|
398
|
-
promise = promise.then do |result|
|
399
|
-
http_response = result.response
|
400
|
-
status_code = http_response.status
|
401
|
-
response_content = http_response.body
|
402
|
-
unless status_code == 202 || status_code == 400 || status_code == 404 || status_code == 409
|
403
|
-
error_model = JSON.load(response_content)
|
404
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
405
|
-
end
|
406
|
-
|
407
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
408
|
-
|
409
|
-
result
|
410
|
-
end
|
411
|
-
|
412
|
-
promise.execute
|
413
|
-
end
|
414
|
-
|
415
|
-
#
|
416
|
-
# Get all managed hosting environments in a resource group.
|
417
|
-
#
|
418
|
-
# @param resource_group_name [String] Name of resource group
|
419
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
420
|
-
# will be added to the HTTP request.
|
421
|
-
#
|
422
|
-
# @return [HostingEnvironmentCollection] which provide lazy access to pages of
|
423
|
-
# the response.
|
424
|
-
#
|
425
|
-
def get_managed_hosting_environments_as_lazy(resource_group_name, custom_headers = nil)
|
426
|
-
response = get_managed_hosting_environments_async(resource_group_name, custom_headers).value!
|
427
|
-
unless response.nil?
|
428
|
-
page = response.body
|
429
|
-
page.next_method = Proc.new do |next_page_link|
|
430
|
-
get_managed_hosting_environments_next_async(next_page_link, custom_headers)
|
431
|
-
end
|
432
|
-
page
|
433
|
-
end
|
434
|
-
end
|
435
|
-
|
436
|
-
#
|
437
|
-
# Get all managed hosting environments in a resource group.
|
438
|
-
#
|
439
|
-
# @param resource_group_name [String] Name of resource group
|
440
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
441
|
-
# will be added to the HTTP request.
|
442
|
-
#
|
443
|
-
# @return [Array<HostingEnvironment>] operation results.
|
444
|
-
#
|
445
|
-
def get_managed_hosting_environments(resource_group_name, custom_headers = nil)
|
446
|
-
first_page = get_managed_hosting_environments_as_lazy(resource_group_name, custom_headers)
|
447
|
-
first_page.get_all_items
|
448
|
-
end
|
449
|
-
|
450
|
-
#
|
451
|
-
# Get all managed hosting environments in a resource group.
|
452
|
-
#
|
453
|
-
# @param resource_group_name [String] Name of resource group
|
454
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
455
|
-
# will be added to the HTTP request.
|
456
|
-
#
|
457
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
458
|
-
#
|
459
|
-
def get_managed_hosting_environments_with_http_info(resource_group_name, custom_headers = nil)
|
460
|
-
get_managed_hosting_environments_async(resource_group_name, custom_headers).value!
|
461
|
-
end
|
462
|
-
|
463
|
-
#
|
464
|
-
# Get all managed hosting environments in a resource group.
|
465
|
-
#
|
466
|
-
# @param resource_group_name [String] Name of resource group
|
467
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
468
|
-
# to the HTTP request.
|
469
|
-
#
|
470
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
471
|
-
#
|
472
|
-
def get_managed_hosting_environments_async(resource_group_name, custom_headers = nil)
|
473
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
474
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
475
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
476
|
-
|
477
|
-
|
478
|
-
request_headers = {}
|
479
|
-
|
480
|
-
# Set Headers
|
481
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
482
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
483
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments'
|
484
|
-
|
485
|
-
request_url = @base_url || @client.base_url
|
486
|
-
|
487
|
-
options = {
|
488
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
489
|
-
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
490
|
-
query_params: {'api-version' => @client.api_version},
|
491
|
-
headers: request_headers.merge(custom_headers || {}),
|
492
|
-
base_url: request_url
|
493
|
-
}
|
494
|
-
promise = @client.make_request_async(:get, path_template, options)
|
495
|
-
|
496
|
-
promise = promise.then do |result|
|
497
|
-
http_response = result.response
|
498
|
-
status_code = http_response.status
|
499
|
-
response_content = http_response.body
|
500
|
-
unless status_code == 200
|
501
|
-
error_model = JSON.load(response_content)
|
502
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
503
|
-
end
|
504
|
-
|
505
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
506
|
-
# Deserialize Response
|
507
|
-
if status_code == 200
|
508
|
-
begin
|
509
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
510
|
-
result_mapper = HostingEnvironmentCollection.mapper()
|
511
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
512
|
-
rescue Exception => e
|
513
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
514
|
-
end
|
515
|
-
end
|
516
|
-
|
517
|
-
result
|
518
|
-
end
|
519
|
-
|
520
|
-
promise.execute
|
521
|
-
end
|
522
|
-
|
523
|
-
#
|
524
|
-
# Get list of ip addresses assigned to a managed hosting environment
|
525
|
-
#
|
526
|
-
# @param resource_group_name [String] Name of resource group
|
527
|
-
# @param name [String] Name of managed hosting environment
|
528
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
529
|
-
# will be added to the HTTP request.
|
530
|
-
#
|
531
|
-
# @return [AddressResponse] operation results.
|
532
|
-
#
|
533
|
-
def get_managed_hosting_environment_vips(resource_group_name, name, custom_headers = nil)
|
534
|
-
response = get_managed_hosting_environment_vips_async(resource_group_name, name, custom_headers).value!
|
535
|
-
response.body unless response.nil?
|
536
|
-
end
|
537
|
-
|
538
|
-
#
|
539
|
-
# Get list of ip addresses assigned to a managed hosting environment
|
540
|
-
#
|
541
|
-
# @param resource_group_name [String] Name of resource group
|
542
|
-
# @param name [String] Name of managed hosting environment
|
543
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
544
|
-
# will be added to the HTTP request.
|
545
|
-
#
|
546
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
547
|
-
#
|
548
|
-
def get_managed_hosting_environment_vips_with_http_info(resource_group_name, name, custom_headers = nil)
|
549
|
-
get_managed_hosting_environment_vips_async(resource_group_name, name, custom_headers).value!
|
550
|
-
end
|
551
|
-
|
552
|
-
#
|
553
|
-
# Get list of ip addresses assigned to a managed hosting environment
|
554
|
-
#
|
555
|
-
# @param resource_group_name [String] Name of resource group
|
556
|
-
# @param name [String] Name of managed hosting environment
|
557
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
558
|
-
# to the HTTP request.
|
559
|
-
#
|
560
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
561
|
-
#
|
562
|
-
def get_managed_hosting_environment_vips_async(resource_group_name, name, custom_headers = nil)
|
563
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
564
|
-
fail ArgumentError, 'name is nil' if name.nil?
|
565
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
566
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
567
|
-
|
568
|
-
|
569
|
-
request_headers = {}
|
570
|
-
|
571
|
-
# Set Headers
|
572
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
573
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
574
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}/capacities/virtualip'
|
575
|
-
|
576
|
-
request_url = @base_url || @client.base_url
|
577
|
-
|
578
|
-
options = {
|
579
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
580
|
-
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
581
|
-
query_params: {'api-version' => @client.api_version},
|
582
|
-
headers: request_headers.merge(custom_headers || {}),
|
583
|
-
base_url: request_url
|
584
|
-
}
|
585
|
-
promise = @client.make_request_async(:get, path_template, options)
|
586
|
-
|
587
|
-
promise = promise.then do |result|
|
588
|
-
http_response = result.response
|
589
|
-
status_code = http_response.status
|
590
|
-
response_content = http_response.body
|
591
|
-
unless status_code == 200
|
592
|
-
error_model = JSON.load(response_content)
|
593
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
594
|
-
end
|
595
|
-
|
596
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
597
|
-
# Deserialize Response
|
598
|
-
if status_code == 200
|
599
|
-
begin
|
600
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
601
|
-
result_mapper = AddressResponse.mapper()
|
602
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
603
|
-
rescue Exception => e
|
604
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
605
|
-
end
|
606
|
-
end
|
607
|
-
|
608
|
-
result
|
609
|
-
end
|
610
|
-
|
611
|
-
promise.execute
|
612
|
-
end
|
613
|
-
|
614
|
-
#
|
615
|
-
# Get status of an operation on a managed hosting environment.
|
616
|
-
#
|
617
|
-
# @param resource_group_name [String] Name of resource group
|
618
|
-
# @param name [String] Name of managed hosting environment
|
619
|
-
# @param operation_id [String] operation identifier GUID
|
620
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
621
|
-
# will be added to the HTTP request.
|
622
|
-
#
|
623
|
-
# @return [Object] operation results.
|
624
|
-
#
|
625
|
-
def get_managed_hosting_environment_operation(resource_group_name, name, operation_id, custom_headers = nil)
|
626
|
-
response = get_managed_hosting_environment_operation_async(resource_group_name, name, operation_id, custom_headers).value!
|
627
|
-
response.body unless response.nil?
|
628
|
-
end
|
629
|
-
|
630
|
-
#
|
631
|
-
# Get status of an operation on a managed hosting environment.
|
632
|
-
#
|
633
|
-
# @param resource_group_name [String] Name of resource group
|
634
|
-
# @param name [String] Name of managed hosting environment
|
635
|
-
# @param operation_id [String] operation identifier GUID
|
636
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
637
|
-
# will be added to the HTTP request.
|
638
|
-
#
|
639
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
640
|
-
#
|
641
|
-
def get_managed_hosting_environment_operation_with_http_info(resource_group_name, name, operation_id, custom_headers = nil)
|
642
|
-
get_managed_hosting_environment_operation_async(resource_group_name, name, operation_id, custom_headers).value!
|
643
|
-
end
|
644
|
-
|
645
|
-
#
|
646
|
-
# Get status of an operation on a managed hosting environment.
|
647
|
-
#
|
648
|
-
# @param resource_group_name [String] Name of resource group
|
649
|
-
# @param name [String] Name of managed hosting environment
|
650
|
-
# @param operation_id [String] operation identifier GUID
|
651
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
652
|
-
# to the HTTP request.
|
653
|
-
#
|
654
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
655
|
-
#
|
656
|
-
def get_managed_hosting_environment_operation_async(resource_group_name, name, operation_id, custom_headers = nil)
|
657
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
658
|
-
fail ArgumentError, 'name is nil' if name.nil?
|
659
|
-
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
660
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
661
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
662
|
-
|
663
|
-
|
664
|
-
request_headers = {}
|
665
|
-
|
666
|
-
# Set Headers
|
667
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
668
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
669
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}/operations/{operationId}'
|
670
|
-
|
671
|
-
request_url = @base_url || @client.base_url
|
672
|
-
|
673
|
-
options = {
|
674
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
675
|
-
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
|
676
|
-
query_params: {'api-version' => @client.api_version},
|
677
|
-
headers: request_headers.merge(custom_headers || {}),
|
678
|
-
base_url: request_url
|
679
|
-
}
|
680
|
-
promise = @client.make_request_async(:get, path_template, options)
|
681
|
-
|
682
|
-
promise = promise.then do |result|
|
683
|
-
http_response = result.response
|
684
|
-
status_code = http_response.status
|
685
|
-
response_content = http_response.body
|
686
|
-
unless status_code == 200 || status_code == 202 || status_code == 404 || status_code == 500
|
687
|
-
error_model = JSON.load(response_content)
|
688
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
689
|
-
end
|
690
|
-
|
691
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
692
|
-
|
693
|
-
result
|
694
|
-
end
|
695
|
-
|
696
|
-
promise.execute
|
697
|
-
end
|
698
|
-
|
699
|
-
#
|
700
|
-
# Get all sites on the managed hosting environment.
|
701
|
-
#
|
702
|
-
# @param resource_group_name [String] Name of resource group
|
703
|
-
# @param name [String] Name of managed hosting environment
|
704
|
-
# @param properties_to_include [String] Comma separated list of site
|
705
|
-
# properties to include
|
706
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
707
|
-
# will be added to the HTTP request.
|
708
|
-
#
|
709
|
-
# @return [SiteCollection] which provide lazy access to pages of the response.
|
710
|
-
#
|
711
|
-
def get_managed_hosting_environment_sites_as_lazy(resource_group_name, name, properties_to_include = nil, custom_headers = nil)
|
712
|
-
response = get_managed_hosting_environment_sites_async(resource_group_name, name, properties_to_include, custom_headers).value!
|
713
|
-
unless response.nil?
|
714
|
-
page = response.body
|
715
|
-
page.next_method = Proc.new do |next_page_link|
|
716
|
-
get_managed_hosting_environment_sites_next_async(next_page_link, custom_headers)
|
717
|
-
end
|
718
|
-
page
|
719
|
-
end
|
720
|
-
end
|
721
|
-
|
722
|
-
#
|
723
|
-
# Get all sites on the managed hosting environment.
|
724
|
-
#
|
725
|
-
# @param resource_group_name [String] Name of resource group
|
726
|
-
# @param name [String] Name of managed hosting environment
|
727
|
-
# @param properties_to_include [String] Comma separated list of site
|
728
|
-
# properties to include
|
729
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
730
|
-
# will be added to the HTTP request.
|
731
|
-
#
|
732
|
-
# @return [Array<Site>] operation results.
|
733
|
-
#
|
734
|
-
def get_managed_hosting_environment_sites(resource_group_name, name, properties_to_include = nil, custom_headers = nil)
|
735
|
-
first_page = get_managed_hosting_environment_sites_as_lazy(resource_group_name, name, properties_to_include, custom_headers)
|
736
|
-
first_page.get_all_items
|
737
|
-
end
|
738
|
-
|
739
|
-
#
|
740
|
-
# Get all sites on the managed hosting environment.
|
741
|
-
#
|
742
|
-
# @param resource_group_name [String] Name of resource group
|
743
|
-
# @param name [String] Name of managed hosting environment
|
744
|
-
# @param properties_to_include [String] Comma separated list of site
|
745
|
-
# properties to include
|
746
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
747
|
-
# will be added to the HTTP request.
|
748
|
-
#
|
749
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
750
|
-
#
|
751
|
-
def get_managed_hosting_environment_sites_with_http_info(resource_group_name, name, properties_to_include = nil, custom_headers = nil)
|
752
|
-
get_managed_hosting_environment_sites_async(resource_group_name, name, properties_to_include, custom_headers).value!
|
753
|
-
end
|
754
|
-
|
755
|
-
#
|
756
|
-
# Get all sites on the managed hosting environment.
|
757
|
-
#
|
758
|
-
# @param resource_group_name [String] Name of resource group
|
759
|
-
# @param name [String] Name of managed hosting environment
|
760
|
-
# @param properties_to_include [String] Comma separated list of site
|
761
|
-
# properties to include
|
762
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
763
|
-
# to the HTTP request.
|
764
|
-
#
|
765
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
766
|
-
#
|
767
|
-
def get_managed_hosting_environment_sites_async(resource_group_name, name, properties_to_include = nil, custom_headers = nil)
|
768
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
769
|
-
fail ArgumentError, 'name is nil' if name.nil?
|
770
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
771
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
772
|
-
|
773
|
-
|
774
|
-
request_headers = {}
|
775
|
-
|
776
|
-
# Set Headers
|
777
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
778
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
779
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}/sites'
|
780
|
-
|
781
|
-
request_url = @base_url || @client.base_url
|
782
|
-
|
783
|
-
options = {
|
784
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
785
|
-
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
786
|
-
query_params: {'propertiesToInclude' => properties_to_include,'api-version' => @client.api_version},
|
787
|
-
headers: request_headers.merge(custom_headers || {}),
|
788
|
-
base_url: request_url
|
789
|
-
}
|
790
|
-
promise = @client.make_request_async(:get, path_template, options)
|
791
|
-
|
792
|
-
promise = promise.then do |result|
|
793
|
-
http_response = result.response
|
794
|
-
status_code = http_response.status
|
795
|
-
response_content = http_response.body
|
796
|
-
unless status_code == 200
|
797
|
-
error_model = JSON.load(response_content)
|
798
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
799
|
-
end
|
800
|
-
|
801
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
802
|
-
# Deserialize Response
|
803
|
-
if status_code == 200
|
804
|
-
begin
|
805
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
806
|
-
result_mapper = SiteCollection.mapper()
|
807
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
808
|
-
rescue Exception => e
|
809
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
810
|
-
end
|
811
|
-
end
|
812
|
-
|
813
|
-
result
|
814
|
-
end
|
815
|
-
|
816
|
-
promise.execute
|
817
|
-
end
|
818
|
-
|
819
|
-
#
|
820
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
821
|
-
#
|
822
|
-
# @param resource_group_name [String] Name of resource group
|
823
|
-
# @param name [String] Name of managed hosting environment
|
824
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
825
|
-
# will be added to the HTTP request.
|
826
|
-
#
|
827
|
-
# @return [ServerFarmCollection] which provide lazy access to pages of the
|
828
|
-
# response.
|
829
|
-
#
|
830
|
-
def get_managed_hosting_environment_web_hosting_plans_as_lazy(resource_group_name, name, custom_headers = nil)
|
831
|
-
response = get_managed_hosting_environment_web_hosting_plans_async(resource_group_name, name, custom_headers).value!
|
832
|
-
unless response.nil?
|
833
|
-
page = response.body
|
834
|
-
page.next_method = Proc.new do |next_page_link|
|
835
|
-
get_managed_hosting_environment_web_hosting_plans_next_async(next_page_link, custom_headers)
|
836
|
-
end
|
837
|
-
page
|
838
|
-
end
|
839
|
-
end
|
840
|
-
|
841
|
-
#
|
842
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
843
|
-
#
|
844
|
-
# @param resource_group_name [String] Name of resource group
|
845
|
-
# @param name [String] Name of managed hosting environment
|
846
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
847
|
-
# will be added to the HTTP request.
|
848
|
-
#
|
849
|
-
# @return [Array<ServerFarmWithRichSku>] operation results.
|
850
|
-
#
|
851
|
-
def get_managed_hosting_environment_web_hosting_plans(resource_group_name, name, custom_headers = nil)
|
852
|
-
first_page = get_managed_hosting_environment_web_hosting_plans_as_lazy(resource_group_name, name, custom_headers)
|
853
|
-
first_page.get_all_items
|
854
|
-
end
|
855
|
-
|
856
|
-
#
|
857
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
858
|
-
#
|
859
|
-
# @param resource_group_name [String] Name of resource group
|
860
|
-
# @param name [String] Name of managed hosting environment
|
861
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
862
|
-
# will be added to the HTTP request.
|
863
|
-
#
|
864
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
865
|
-
#
|
866
|
-
def get_managed_hosting_environment_web_hosting_plans_with_http_info(resource_group_name, name, custom_headers = nil)
|
867
|
-
get_managed_hosting_environment_web_hosting_plans_async(resource_group_name, name, custom_headers).value!
|
868
|
-
end
|
869
|
-
|
870
|
-
#
|
871
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
872
|
-
#
|
873
|
-
# @param resource_group_name [String] Name of resource group
|
874
|
-
# @param name [String] Name of managed hosting environment
|
875
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
876
|
-
# to the HTTP request.
|
877
|
-
#
|
878
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
879
|
-
#
|
880
|
-
def get_managed_hosting_environment_web_hosting_plans_async(resource_group_name, name, custom_headers = nil)
|
881
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
882
|
-
fail ArgumentError, 'name is nil' if name.nil?
|
883
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
884
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
885
|
-
|
886
|
-
|
887
|
-
request_headers = {}
|
888
|
-
|
889
|
-
# Set Headers
|
890
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
891
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
892
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}/webhostingplans'
|
893
|
-
|
894
|
-
request_url = @base_url || @client.base_url
|
895
|
-
|
896
|
-
options = {
|
897
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
898
|
-
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
899
|
-
query_params: {'api-version' => @client.api_version},
|
900
|
-
headers: request_headers.merge(custom_headers || {}),
|
901
|
-
base_url: request_url
|
902
|
-
}
|
903
|
-
promise = @client.make_request_async(:get, path_template, options)
|
904
|
-
|
905
|
-
promise = promise.then do |result|
|
906
|
-
http_response = result.response
|
907
|
-
status_code = http_response.status
|
908
|
-
response_content = http_response.body
|
909
|
-
unless status_code == 200
|
910
|
-
error_model = JSON.load(response_content)
|
911
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
912
|
-
end
|
913
|
-
|
914
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
915
|
-
# Deserialize Response
|
916
|
-
if status_code == 200
|
917
|
-
begin
|
918
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
919
|
-
result_mapper = ServerFarmCollection.mapper()
|
920
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
921
|
-
rescue Exception => e
|
922
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
923
|
-
end
|
924
|
-
end
|
925
|
-
|
926
|
-
result
|
927
|
-
end
|
928
|
-
|
929
|
-
promise.execute
|
930
|
-
end
|
931
|
-
|
932
|
-
#
|
933
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
934
|
-
#
|
935
|
-
# @param resource_group_name [String] Name of resource group
|
936
|
-
# @param name [String] Name of managed hosting environment
|
937
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
938
|
-
# will be added to the HTTP request.
|
939
|
-
#
|
940
|
-
# @return [ServerFarmCollection] which provide lazy access to pages of the
|
941
|
-
# response.
|
942
|
-
#
|
943
|
-
def get_managed_hosting_environment_server_farms_as_lazy(resource_group_name, name, custom_headers = nil)
|
944
|
-
response = get_managed_hosting_environment_server_farms_async(resource_group_name, name, custom_headers).value!
|
945
|
-
unless response.nil?
|
946
|
-
page = response.body
|
947
|
-
page.next_method = Proc.new do |next_page_link|
|
948
|
-
get_managed_hosting_environment_server_farms_next_async(next_page_link, custom_headers)
|
949
|
-
end
|
950
|
-
page
|
951
|
-
end
|
952
|
-
end
|
953
|
-
|
954
|
-
#
|
955
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
956
|
-
#
|
957
|
-
# @param resource_group_name [String] Name of resource group
|
958
|
-
# @param name [String] Name of managed hosting environment
|
959
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
960
|
-
# will be added to the HTTP request.
|
961
|
-
#
|
962
|
-
# @return [Array<ServerFarmWithRichSku>] operation results.
|
963
|
-
#
|
964
|
-
def get_managed_hosting_environment_server_farms(resource_group_name, name, custom_headers = nil)
|
965
|
-
first_page = get_managed_hosting_environment_server_farms_as_lazy(resource_group_name, name, custom_headers)
|
966
|
-
first_page.get_all_items
|
967
|
-
end
|
968
|
-
|
969
|
-
#
|
970
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
971
|
-
#
|
972
|
-
# @param resource_group_name [String] Name of resource group
|
973
|
-
# @param name [String] Name of managed hosting environment
|
974
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
975
|
-
# will be added to the HTTP request.
|
976
|
-
#
|
977
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
978
|
-
#
|
979
|
-
def get_managed_hosting_environment_server_farms_with_http_info(resource_group_name, name, custom_headers = nil)
|
980
|
-
get_managed_hosting_environment_server_farms_async(resource_group_name, name, custom_headers).value!
|
981
|
-
end
|
982
|
-
|
983
|
-
#
|
984
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
985
|
-
#
|
986
|
-
# @param resource_group_name [String] Name of resource group
|
987
|
-
# @param name [String] Name of managed hosting environment
|
988
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
989
|
-
# to the HTTP request.
|
990
|
-
#
|
991
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
992
|
-
#
|
993
|
-
def get_managed_hosting_environment_server_farms_async(resource_group_name, name, custom_headers = nil)
|
994
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
995
|
-
fail ArgumentError, 'name is nil' if name.nil?
|
996
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
997
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
998
|
-
|
999
|
-
|
1000
|
-
request_headers = {}
|
1001
|
-
|
1002
|
-
# Set Headers
|
1003
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1004
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1005
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}/serverfarms'
|
1006
|
-
|
1007
|
-
request_url = @base_url || @client.base_url
|
1008
|
-
|
1009
|
-
options = {
|
1010
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1011
|
-
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
1012
|
-
query_params: {'api-version' => @client.api_version},
|
1013
|
-
headers: request_headers.merge(custom_headers || {}),
|
1014
|
-
base_url: request_url
|
1015
|
-
}
|
1016
|
-
promise = @client.make_request_async(:get, path_template, options)
|
1017
|
-
|
1018
|
-
promise = promise.then do |result|
|
1019
|
-
http_response = result.response
|
1020
|
-
status_code = http_response.status
|
1021
|
-
response_content = http_response.body
|
1022
|
-
unless status_code == 200
|
1023
|
-
error_model = JSON.load(response_content)
|
1024
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1025
|
-
end
|
1026
|
-
|
1027
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1028
|
-
# Deserialize Response
|
1029
|
-
if status_code == 200
|
1030
|
-
begin
|
1031
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1032
|
-
result_mapper = ServerFarmCollection.mapper()
|
1033
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1034
|
-
rescue Exception => e
|
1035
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1036
|
-
end
|
1037
|
-
end
|
1038
|
-
|
1039
|
-
result
|
1040
|
-
end
|
1041
|
-
|
1042
|
-
promise.execute
|
1043
|
-
end
|
1044
|
-
|
1045
|
-
#
|
1046
|
-
# Get all managed hosting environments in a resource group.
|
1047
|
-
#
|
1048
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1049
|
-
# call to List operation.
|
1050
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1051
|
-
# will be added to the HTTP request.
|
1052
|
-
#
|
1053
|
-
# @return [HostingEnvironmentCollection] operation results.
|
1054
|
-
#
|
1055
|
-
def get_managed_hosting_environments_next(next_page_link, custom_headers = nil)
|
1056
|
-
response = get_managed_hosting_environments_next_async(next_page_link, custom_headers).value!
|
1057
|
-
response.body unless response.nil?
|
1058
|
-
end
|
1059
|
-
|
1060
|
-
#
|
1061
|
-
# Get all managed hosting environments in a resource group.
|
1062
|
-
#
|
1063
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1064
|
-
# call to List operation.
|
1065
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1066
|
-
# will be added to the HTTP request.
|
1067
|
-
#
|
1068
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1069
|
-
#
|
1070
|
-
def get_managed_hosting_environments_next_with_http_info(next_page_link, custom_headers = nil)
|
1071
|
-
get_managed_hosting_environments_next_async(next_page_link, custom_headers).value!
|
1072
|
-
end
|
1073
|
-
|
1074
|
-
#
|
1075
|
-
# Get all managed hosting environments in a resource group.
|
1076
|
-
#
|
1077
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1078
|
-
# call to List operation.
|
1079
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1080
|
-
# to the HTTP request.
|
1081
|
-
#
|
1082
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1083
|
-
#
|
1084
|
-
def get_managed_hosting_environments_next_async(next_page_link, custom_headers = nil)
|
1085
|
-
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1086
|
-
|
1087
|
-
|
1088
|
-
request_headers = {}
|
1089
|
-
|
1090
|
-
# Set Headers
|
1091
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1092
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1093
|
-
path_template = '{nextLink}'
|
1094
|
-
|
1095
|
-
request_url = @base_url || @client.base_url
|
1096
|
-
|
1097
|
-
options = {
|
1098
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1099
|
-
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1100
|
-
headers: request_headers.merge(custom_headers || {}),
|
1101
|
-
base_url: request_url
|
1102
|
-
}
|
1103
|
-
promise = @client.make_request_async(:get, path_template, options)
|
1104
|
-
|
1105
|
-
promise = promise.then do |result|
|
1106
|
-
http_response = result.response
|
1107
|
-
status_code = http_response.status
|
1108
|
-
response_content = http_response.body
|
1109
|
-
unless status_code == 200
|
1110
|
-
error_model = JSON.load(response_content)
|
1111
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1112
|
-
end
|
1113
|
-
|
1114
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1115
|
-
# Deserialize Response
|
1116
|
-
if status_code == 200
|
1117
|
-
begin
|
1118
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1119
|
-
result_mapper = HostingEnvironmentCollection.mapper()
|
1120
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1121
|
-
rescue Exception => e
|
1122
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1123
|
-
end
|
1124
|
-
end
|
1125
|
-
|
1126
|
-
result
|
1127
|
-
end
|
1128
|
-
|
1129
|
-
promise.execute
|
1130
|
-
end
|
1131
|
-
|
1132
|
-
#
|
1133
|
-
# Get all sites on the managed hosting environment.
|
1134
|
-
#
|
1135
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1136
|
-
# call to List operation.
|
1137
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1138
|
-
# will be added to the HTTP request.
|
1139
|
-
#
|
1140
|
-
# @return [SiteCollection] operation results.
|
1141
|
-
#
|
1142
|
-
def get_managed_hosting_environment_sites_next(next_page_link, custom_headers = nil)
|
1143
|
-
response = get_managed_hosting_environment_sites_next_async(next_page_link, custom_headers).value!
|
1144
|
-
response.body unless response.nil?
|
1145
|
-
end
|
1146
|
-
|
1147
|
-
#
|
1148
|
-
# Get all sites on the managed hosting environment.
|
1149
|
-
#
|
1150
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1151
|
-
# call to List operation.
|
1152
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1153
|
-
# will be added to the HTTP request.
|
1154
|
-
#
|
1155
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1156
|
-
#
|
1157
|
-
def get_managed_hosting_environment_sites_next_with_http_info(next_page_link, custom_headers = nil)
|
1158
|
-
get_managed_hosting_environment_sites_next_async(next_page_link, custom_headers).value!
|
1159
|
-
end
|
1160
|
-
|
1161
|
-
#
|
1162
|
-
# Get all sites on the managed hosting environment.
|
1163
|
-
#
|
1164
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1165
|
-
# call to List operation.
|
1166
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1167
|
-
# to the HTTP request.
|
1168
|
-
#
|
1169
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1170
|
-
#
|
1171
|
-
def get_managed_hosting_environment_sites_next_async(next_page_link, custom_headers = nil)
|
1172
|
-
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1173
|
-
|
1174
|
-
|
1175
|
-
request_headers = {}
|
1176
|
-
|
1177
|
-
# Set Headers
|
1178
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1179
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1180
|
-
path_template = '{nextLink}'
|
1181
|
-
|
1182
|
-
request_url = @base_url || @client.base_url
|
1183
|
-
|
1184
|
-
options = {
|
1185
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1186
|
-
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1187
|
-
headers: request_headers.merge(custom_headers || {}),
|
1188
|
-
base_url: request_url
|
1189
|
-
}
|
1190
|
-
promise = @client.make_request_async(:get, path_template, options)
|
1191
|
-
|
1192
|
-
promise = promise.then do |result|
|
1193
|
-
http_response = result.response
|
1194
|
-
status_code = http_response.status
|
1195
|
-
response_content = http_response.body
|
1196
|
-
unless status_code == 200
|
1197
|
-
error_model = JSON.load(response_content)
|
1198
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1199
|
-
end
|
1200
|
-
|
1201
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1202
|
-
# Deserialize Response
|
1203
|
-
if status_code == 200
|
1204
|
-
begin
|
1205
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1206
|
-
result_mapper = SiteCollection.mapper()
|
1207
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1208
|
-
rescue Exception => e
|
1209
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1210
|
-
end
|
1211
|
-
end
|
1212
|
-
|
1213
|
-
result
|
1214
|
-
end
|
1215
|
-
|
1216
|
-
promise.execute
|
1217
|
-
end
|
1218
|
-
|
1219
|
-
#
|
1220
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
1221
|
-
#
|
1222
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1223
|
-
# call to List operation.
|
1224
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1225
|
-
# will be added to the HTTP request.
|
1226
|
-
#
|
1227
|
-
# @return [ServerFarmCollection] operation results.
|
1228
|
-
#
|
1229
|
-
def get_managed_hosting_environment_web_hosting_plans_next(next_page_link, custom_headers = nil)
|
1230
|
-
response = get_managed_hosting_environment_web_hosting_plans_next_async(next_page_link, custom_headers).value!
|
1231
|
-
response.body unless response.nil?
|
1232
|
-
end
|
1233
|
-
|
1234
|
-
#
|
1235
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
1236
|
-
#
|
1237
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1238
|
-
# call to List operation.
|
1239
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1240
|
-
# will be added to the HTTP request.
|
1241
|
-
#
|
1242
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1243
|
-
#
|
1244
|
-
def get_managed_hosting_environment_web_hosting_plans_next_with_http_info(next_page_link, custom_headers = nil)
|
1245
|
-
get_managed_hosting_environment_web_hosting_plans_next_async(next_page_link, custom_headers).value!
|
1246
|
-
end
|
1247
|
-
|
1248
|
-
#
|
1249
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
1250
|
-
#
|
1251
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1252
|
-
# call to List operation.
|
1253
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1254
|
-
# to the HTTP request.
|
1255
|
-
#
|
1256
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1257
|
-
#
|
1258
|
-
def get_managed_hosting_environment_web_hosting_plans_next_async(next_page_link, custom_headers = nil)
|
1259
|
-
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1260
|
-
|
1261
|
-
|
1262
|
-
request_headers = {}
|
1263
|
-
|
1264
|
-
# Set Headers
|
1265
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1266
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1267
|
-
path_template = '{nextLink}'
|
1268
|
-
|
1269
|
-
request_url = @base_url || @client.base_url
|
1270
|
-
|
1271
|
-
options = {
|
1272
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1273
|
-
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1274
|
-
headers: request_headers.merge(custom_headers || {}),
|
1275
|
-
base_url: request_url
|
1276
|
-
}
|
1277
|
-
promise = @client.make_request_async(:get, path_template, options)
|
1278
|
-
|
1279
|
-
promise = promise.then do |result|
|
1280
|
-
http_response = result.response
|
1281
|
-
status_code = http_response.status
|
1282
|
-
response_content = http_response.body
|
1283
|
-
unless status_code == 200
|
1284
|
-
error_model = JSON.load(response_content)
|
1285
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1286
|
-
end
|
1287
|
-
|
1288
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1289
|
-
# Deserialize Response
|
1290
|
-
if status_code == 200
|
1291
|
-
begin
|
1292
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1293
|
-
result_mapper = ServerFarmCollection.mapper()
|
1294
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1295
|
-
rescue Exception => e
|
1296
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1297
|
-
end
|
1298
|
-
end
|
1299
|
-
|
1300
|
-
result
|
1301
|
-
end
|
1302
|
-
|
1303
|
-
promise.execute
|
1304
|
-
end
|
1305
|
-
|
1306
|
-
#
|
1307
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
1308
|
-
#
|
1309
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1310
|
-
# call to List operation.
|
1311
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1312
|
-
# will be added to the HTTP request.
|
1313
|
-
#
|
1314
|
-
# @return [ServerFarmCollection] operation results.
|
1315
|
-
#
|
1316
|
-
def get_managed_hosting_environment_server_farms_next(next_page_link, custom_headers = nil)
|
1317
|
-
response = get_managed_hosting_environment_server_farms_next_async(next_page_link, custom_headers).value!
|
1318
|
-
response.body unless response.nil?
|
1319
|
-
end
|
1320
|
-
|
1321
|
-
#
|
1322
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
1323
|
-
#
|
1324
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1325
|
-
# call to List operation.
|
1326
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1327
|
-
# will be added to the HTTP request.
|
1328
|
-
#
|
1329
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1330
|
-
#
|
1331
|
-
def get_managed_hosting_environment_server_farms_next_with_http_info(next_page_link, custom_headers = nil)
|
1332
|
-
get_managed_hosting_environment_server_farms_next_async(next_page_link, custom_headers).value!
|
1333
|
-
end
|
1334
|
-
|
1335
|
-
#
|
1336
|
-
# Get all serverfarms (App Service Plans) on the managed hosting environment.
|
1337
|
-
#
|
1338
|
-
# @param next_page_link [String] The NextLink from the previous successful
|
1339
|
-
# call to List operation.
|
1340
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1341
|
-
# to the HTTP request.
|
1342
|
-
#
|
1343
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1344
|
-
#
|
1345
|
-
def get_managed_hosting_environment_server_farms_next_async(next_page_link, custom_headers = nil)
|
1346
|
-
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1347
|
-
|
1348
|
-
|
1349
|
-
request_headers = {}
|
1350
|
-
|
1351
|
-
# Set Headers
|
1352
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1353
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1354
|
-
path_template = '{nextLink}'
|
1355
|
-
|
1356
|
-
request_url = @base_url || @client.base_url
|
1357
|
-
|
1358
|
-
options = {
|
1359
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1360
|
-
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1361
|
-
headers: request_headers.merge(custom_headers || {}),
|
1362
|
-
base_url: request_url
|
1363
|
-
}
|
1364
|
-
promise = @client.make_request_async(:get, path_template, options)
|
1365
|
-
|
1366
|
-
promise = promise.then do |result|
|
1367
|
-
http_response = result.response
|
1368
|
-
status_code = http_response.status
|
1369
|
-
response_content = http_response.body
|
1370
|
-
unless status_code == 200
|
1371
|
-
error_model = JSON.load(response_content)
|
1372
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1373
|
-
end
|
1374
|
-
|
1375
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1376
|
-
# Deserialize Response
|
1377
|
-
if status_code == 200
|
1378
|
-
begin
|
1379
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1380
|
-
result_mapper = ServerFarmCollection.mapper()
|
1381
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1382
|
-
rescue Exception => e
|
1383
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1384
|
-
end
|
1385
|
-
end
|
1386
|
-
|
1387
|
-
result
|
1388
|
-
end
|
1389
|
-
|
1390
|
-
promise.execute
|
1391
|
-
end
|
1392
|
-
|
1393
|
-
end
|
1394
|
-
end
|