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,18 +1,11 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Web
|
7
7
|
#
|
8
|
-
#
|
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>
|
8
|
+
# Composite Swagger for WebSite Management Client
|
16
9
|
#
|
17
10
|
class Domains
|
18
11
|
include Azure::ARM::Web::Models
|
@@ -30,66 +23,51 @@ module Azure::ARM::Web
|
|
30
23
|
attr_reader :client
|
31
24
|
|
32
25
|
#
|
33
|
-
#
|
34
|
-
#
|
35
|
-
# @param resource_group_name [String] Name of the resource group
|
36
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
|
-
# will be added to the HTTP request.
|
38
|
-
#
|
39
|
-
# @return [DomainCollection] which provide lazy access to pages of the
|
40
|
-
# response.
|
41
|
-
#
|
42
|
-
def get_domains_as_lazy(resource_group_name, custom_headers = nil)
|
43
|
-
response = get_domains_async(resource_group_name, custom_headers).value!
|
44
|
-
unless response.nil?
|
45
|
-
page = response.body
|
46
|
-
page.next_method = Proc.new do |next_page_link|
|
47
|
-
get_domains_next_async(next_page_link, custom_headers)
|
48
|
-
end
|
49
|
-
page
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
26
|
+
# Checks if a domain is available for registration
|
53
27
|
#
|
54
|
-
#
|
28
|
+
# Checks if a domain is available for registration
|
55
29
|
#
|
56
|
-
# @param
|
30
|
+
# @param identifier [NameIdentifier] Name of the domain
|
57
31
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
58
32
|
# will be added to the HTTP request.
|
59
33
|
#
|
60
|
-
# @return [
|
34
|
+
# @return [DomainAvailablilityCheckResult] operation results.
|
61
35
|
#
|
62
|
-
def
|
63
|
-
|
64
|
-
|
36
|
+
def check_availability(identifier, custom_headers = nil)
|
37
|
+
response = check_availability_async(identifier, custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
65
39
|
end
|
66
40
|
|
67
41
|
#
|
68
|
-
#
|
42
|
+
# Checks if a domain is available for registration
|
69
43
|
#
|
70
|
-
#
|
44
|
+
# Checks if a domain is available for registration
|
45
|
+
#
|
46
|
+
# @param identifier [NameIdentifier] Name of the domain
|
71
47
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
72
48
|
# will be added to the HTTP request.
|
73
49
|
#
|
74
50
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
75
51
|
#
|
76
|
-
def
|
77
|
-
|
52
|
+
def check_availability_with_http_info(identifier, custom_headers = nil)
|
53
|
+
check_availability_async(identifier, custom_headers).value!
|
78
54
|
end
|
79
55
|
|
80
56
|
#
|
81
|
-
#
|
57
|
+
# Checks if a domain is available for registration
|
82
58
|
#
|
83
|
-
#
|
59
|
+
# Checks if a domain is available for registration
|
60
|
+
#
|
61
|
+
# @param identifier [NameIdentifier] Name of the domain
|
84
62
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
85
63
|
# to the HTTP request.
|
86
64
|
#
|
87
65
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
88
66
|
#
|
89
|
-
def
|
90
|
-
fail ArgumentError, '
|
67
|
+
def check_availability_async(identifier, custom_headers = nil)
|
68
|
+
fail ArgumentError, 'identifier is nil' if identifier.nil?
|
91
69
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
92
|
-
|
70
|
+
api_version = '2016-03-01'
|
93
71
|
|
94
72
|
|
95
73
|
request_headers = {}
|
@@ -97,18 +75,27 @@ module Azure::ARM::Web
|
|
97
75
|
# Set Headers
|
98
76
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
99
77
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
100
|
-
|
78
|
+
|
79
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
80
|
+
|
81
|
+
# Serialize Request
|
82
|
+
request_mapper = NameIdentifier.mapper()
|
83
|
+
request_content = @client.serialize(request_mapper, identifier, 'identifier')
|
84
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
85
|
+
|
86
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/checkDomainAvailability'
|
101
87
|
|
102
88
|
request_url = @base_url || @client.base_url
|
103
89
|
|
104
90
|
options = {
|
105
91
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
106
|
-
path_params: {'
|
107
|
-
query_params: {'api-version' =>
|
92
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
93
|
+
query_params: {'api-version' => api_version},
|
94
|
+
body: request_content,
|
108
95
|
headers: request_headers.merge(custom_headers || {}),
|
109
96
|
base_url: request_url
|
110
97
|
}
|
111
|
-
promise = @client.make_request_async(:
|
98
|
+
promise = @client.make_request_async(:post, path_template, options)
|
112
99
|
|
113
100
|
promise = promise.then do |result|
|
114
101
|
http_response = result.response
|
@@ -124,7 +111,7 @@ module Azure::ARM::Web
|
|
124
111
|
if status_code == 200
|
125
112
|
begin
|
126
113
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
127
|
-
result_mapper =
|
114
|
+
result_mapper = DomainAvailablilityCheckResult.mapper()
|
128
115
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
129
116
|
rescue Exception => e
|
130
117
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -138,49 +125,47 @@ module Azure::ARM::Web
|
|
138
125
|
end
|
139
126
|
|
140
127
|
#
|
141
|
-
#
|
128
|
+
# Lists all domains in a subscription
|
129
|
+
#
|
130
|
+
# Lists all domains in a subscription
|
142
131
|
#
|
143
|
-
# @param resource_group_name [String] Name of the resource group
|
144
|
-
# @param domain_name [String] Name of the domain
|
145
132
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
146
133
|
# will be added to the HTTP request.
|
147
134
|
#
|
148
|
-
# @return [Domain] operation results.
|
135
|
+
# @return [Array<Domain>] operation results.
|
149
136
|
#
|
150
|
-
def
|
151
|
-
|
152
|
-
|
137
|
+
def list(custom_headers = nil)
|
138
|
+
first_page = list_as_lazy(custom_headers)
|
139
|
+
first_page.get_all_items
|
153
140
|
end
|
154
141
|
|
155
142
|
#
|
156
|
-
#
|
143
|
+
# Lists all domains in a subscription
|
144
|
+
#
|
145
|
+
# Lists all domains in a subscription
|
157
146
|
#
|
158
|
-
# @param resource_group_name [String] Name of the resource group
|
159
|
-
# @param domain_name [String] Name of the domain
|
160
147
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
161
148
|
# will be added to the HTTP request.
|
162
149
|
#
|
163
150
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
164
151
|
#
|
165
|
-
def
|
166
|
-
|
152
|
+
def list_with_http_info(custom_headers = nil)
|
153
|
+
list_async(custom_headers).value!
|
167
154
|
end
|
168
155
|
|
169
156
|
#
|
170
|
-
#
|
157
|
+
# Lists all domains in a subscription
|
158
|
+
#
|
159
|
+
# Lists all domains in a subscription
|
171
160
|
#
|
172
|
-
# @param resource_group_name [String] Name of the resource group
|
173
|
-
# @param domain_name [String] Name of the domain
|
174
161
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
175
162
|
# to the HTTP request.
|
176
163
|
#
|
177
164
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
178
165
|
#
|
179
|
-
def
|
180
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
181
|
-
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
166
|
+
def list_async(custom_headers = nil)
|
182
167
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
183
|
-
|
168
|
+
api_version = '2016-03-01'
|
184
169
|
|
185
170
|
|
186
171
|
request_headers = {}
|
@@ -188,14 +173,14 @@ module Azure::ARM::Web
|
|
188
173
|
# Set Headers
|
189
174
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
190
175
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
191
|
-
path_template = '/subscriptions/{subscriptionId}/
|
176
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/domains'
|
192
177
|
|
193
178
|
request_url = @base_url || @client.base_url
|
194
179
|
|
195
180
|
options = {
|
196
181
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
197
|
-
path_params: {'
|
198
|
-
query_params: {'api-version' =>
|
182
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
183
|
+
query_params: {'api-version' => api_version},
|
199
184
|
headers: request_headers.merge(custom_headers || {}),
|
200
185
|
base_url: request_url
|
201
186
|
}
|
@@ -215,7 +200,7 @@ module Azure::ARM::Web
|
|
215
200
|
if status_code == 200
|
216
201
|
begin
|
217
202
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
218
|
-
result_mapper =
|
203
|
+
result_mapper = DomainCollection.mapper()
|
219
204
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
220
205
|
rescue Exception => e
|
221
206
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -229,53 +214,47 @@ module Azure::ARM::Web
|
|
229
214
|
end
|
230
215
|
|
231
216
|
#
|
232
|
-
#
|
217
|
+
# Generates a single sign on request for domain management portal
|
218
|
+
#
|
219
|
+
# Generates a single sign on request for domain management portal
|
233
220
|
#
|
234
|
-
# @param resource_group_name [String] >Name of the resource group
|
235
|
-
# @param domain_name [String] Name of the domain
|
236
|
-
# @param domain [Domain] Domain registration information
|
237
221
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
238
222
|
# will be added to the HTTP request.
|
239
223
|
#
|
240
|
-
# @return [
|
224
|
+
# @return [DomainControlCenterSsoRequest] operation results.
|
241
225
|
#
|
242
|
-
def
|
243
|
-
response =
|
226
|
+
def get_control_center_sso_request(custom_headers = nil)
|
227
|
+
response = get_control_center_sso_request_async(custom_headers).value!
|
244
228
|
response.body unless response.nil?
|
245
229
|
end
|
246
230
|
|
247
231
|
#
|
248
|
-
#
|
232
|
+
# Generates a single sign on request for domain management portal
|
233
|
+
#
|
234
|
+
# Generates a single sign on request for domain management portal
|
249
235
|
#
|
250
|
-
# @param resource_group_name [String] >Name of the resource group
|
251
|
-
# @param domain_name [String] Name of the domain
|
252
|
-
# @param domain [Domain] Domain registration information
|
253
236
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
254
237
|
# will be added to the HTTP request.
|
255
238
|
#
|
256
239
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
257
240
|
#
|
258
|
-
def
|
259
|
-
|
241
|
+
def get_control_center_sso_request_with_http_info(custom_headers = nil)
|
242
|
+
get_control_center_sso_request_async(custom_headers).value!
|
260
243
|
end
|
261
244
|
|
262
245
|
#
|
263
|
-
#
|
246
|
+
# Generates a single sign on request for domain management portal
|
247
|
+
#
|
248
|
+
# Generates a single sign on request for domain management portal
|
264
249
|
#
|
265
|
-
# @param resource_group_name [String] >Name of the resource group
|
266
|
-
# @param domain_name [String] Name of the domain
|
267
|
-
# @param domain [Domain] Domain registration information
|
268
250
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
269
251
|
# to the HTTP request.
|
270
252
|
#
|
271
253
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
272
254
|
#
|
273
|
-
def
|
274
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
275
|
-
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
276
|
-
fail ArgumentError, 'domain is nil' if domain.nil?
|
255
|
+
def get_control_center_sso_request_async(custom_headers = nil)
|
277
256
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
278
|
-
|
257
|
+
api_version = '2016-03-01'
|
279
258
|
|
280
259
|
|
281
260
|
request_headers = {}
|
@@ -283,53 +262,34 @@ module Azure::ARM::Web
|
|
283
262
|
# Set Headers
|
284
263
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
285
264
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
286
|
-
|
287
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
288
|
-
|
289
|
-
# Serialize Request
|
290
|
-
request_mapper = Domain.mapper()
|
291
|
-
request_content = @client.serialize(request_mapper, domain, 'domain')
|
292
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
293
|
-
|
294
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}'
|
265
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/generateSsoRequest'
|
295
266
|
|
296
267
|
request_url = @base_url || @client.base_url
|
297
268
|
|
298
269
|
options = {
|
299
270
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
300
|
-
path_params: {'
|
301
|
-
query_params: {'api-version' =>
|
302
|
-
body: request_content,
|
271
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
272
|
+
query_params: {'api-version' => api_version},
|
303
273
|
headers: request_headers.merge(custom_headers || {}),
|
304
274
|
base_url: request_url
|
305
275
|
}
|
306
|
-
promise = @client.make_request_async(:
|
276
|
+
promise = @client.make_request_async(:post, path_template, options)
|
307
277
|
|
308
278
|
promise = promise.then do |result|
|
309
279
|
http_response = result.response
|
310
280
|
status_code = http_response.status
|
311
281
|
response_content = http_response.body
|
312
|
-
unless status_code ==
|
282
|
+
unless status_code == 200
|
313
283
|
error_model = JSON.load(response_content)
|
314
284
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
315
285
|
end
|
316
286
|
|
317
287
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
318
288
|
# Deserialize Response
|
319
|
-
if status_code == 202
|
320
|
-
begin
|
321
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
322
|
-
result_mapper = Domain.mapper()
|
323
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
324
|
-
rescue Exception => e
|
325
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
326
|
-
end
|
327
|
-
end
|
328
|
-
# Deserialize Response
|
329
289
|
if status_code == 200
|
330
290
|
begin
|
331
291
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
332
|
-
result_mapper =
|
292
|
+
result_mapper = DomainControlCenterSsoRequest.mapper()
|
333
293
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
334
294
|
rescue Exception => e
|
335
295
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -343,55 +303,54 @@ module Azure::ARM::Web
|
|
343
303
|
end
|
344
304
|
|
345
305
|
#
|
346
|
-
#
|
306
|
+
# Lists domain recommendations based on keywords
|
347
307
|
#
|
348
|
-
#
|
349
|
-
#
|
350
|
-
# @param
|
351
|
-
#
|
308
|
+
# Lists domain recommendations based on keywords
|
309
|
+
#
|
310
|
+
# @param parameters [DomainRecommendationSearchParameters] Domain
|
311
|
+
# recommendation search parameters
|
352
312
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
353
313
|
# will be added to the HTTP request.
|
354
314
|
#
|
355
|
-
# @return [
|
315
|
+
# @return [Array<NameIdentifier>] operation results.
|
356
316
|
#
|
357
|
-
def
|
358
|
-
|
359
|
-
|
317
|
+
def list_recommendations(parameters, custom_headers = nil)
|
318
|
+
first_page = list_recommendations_as_lazy(parameters, custom_headers)
|
319
|
+
first_page.get_all_items
|
360
320
|
end
|
361
321
|
|
362
322
|
#
|
363
|
-
#
|
323
|
+
# Lists domain recommendations based on keywords
|
364
324
|
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
# @param
|
368
|
-
#
|
325
|
+
# Lists domain recommendations based on keywords
|
326
|
+
#
|
327
|
+
# @param parameters [DomainRecommendationSearchParameters] Domain
|
328
|
+
# recommendation search parameters
|
369
329
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
370
330
|
# will be added to the HTTP request.
|
371
331
|
#
|
372
332
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
373
333
|
#
|
374
|
-
def
|
375
|
-
|
334
|
+
def list_recommendations_with_http_info(parameters, custom_headers = nil)
|
335
|
+
list_recommendations_async(parameters, custom_headers).value!
|
376
336
|
end
|
377
337
|
|
378
338
|
#
|
379
|
-
#
|
339
|
+
# Lists domain recommendations based on keywords
|
380
340
|
#
|
381
|
-
#
|
382
|
-
#
|
383
|
-
# @param
|
384
|
-
#
|
341
|
+
# Lists domain recommendations based on keywords
|
342
|
+
#
|
343
|
+
# @param parameters [DomainRecommendationSearchParameters] Domain
|
344
|
+
# recommendation search parameters
|
385
345
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
386
346
|
# to the HTTP request.
|
387
347
|
#
|
388
348
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
389
349
|
#
|
390
|
-
def
|
391
|
-
fail ArgumentError, '
|
392
|
-
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
350
|
+
def list_recommendations_async(parameters, custom_headers = nil)
|
351
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
393
352
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
394
|
-
|
353
|
+
api_version = '2016-03-01'
|
395
354
|
|
396
355
|
|
397
356
|
request_headers = {}
|
@@ -399,29 +358,48 @@ module Azure::ARM::Web
|
|
399
358
|
# Set Headers
|
400
359
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
401
360
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
402
|
-
|
361
|
+
|
362
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
363
|
+
|
364
|
+
# Serialize Request
|
365
|
+
request_mapper = DomainRecommendationSearchParameters.mapper()
|
366
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
367
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
368
|
+
|
369
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/listDomainRecommendations'
|
403
370
|
|
404
371
|
request_url = @base_url || @client.base_url
|
405
372
|
|
406
373
|
options = {
|
407
374
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
408
|
-
path_params: {'
|
409
|
-
query_params: {'
|
375
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
376
|
+
query_params: {'api-version' => api_version},
|
377
|
+
body: request_content,
|
410
378
|
headers: request_headers.merge(custom_headers || {}),
|
411
379
|
base_url: request_url
|
412
380
|
}
|
413
|
-
promise = @client.make_request_async(:
|
381
|
+
promise = @client.make_request_async(:post, path_template, options)
|
414
382
|
|
415
383
|
promise = promise.then do |result|
|
416
384
|
http_response = result.response
|
417
385
|
status_code = http_response.status
|
418
386
|
response_content = http_response.body
|
419
|
-
unless status_code ==
|
387
|
+
unless status_code == 200
|
420
388
|
error_model = JSON.load(response_content)
|
421
389
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
422
390
|
end
|
423
391
|
|
424
392
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
393
|
+
# Deserialize Response
|
394
|
+
if status_code == 200
|
395
|
+
begin
|
396
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
397
|
+
result_mapper = NameIdentifierCollection.mapper()
|
398
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
399
|
+
rescue Exception => e
|
400
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
401
|
+
end
|
402
|
+
end
|
425
403
|
|
426
404
|
result
|
427
405
|
end
|
@@ -430,53 +408,54 @@ module Azure::ARM::Web
|
|
430
408
|
end
|
431
409
|
|
432
410
|
#
|
433
|
-
#
|
411
|
+
# Validates domain registration information
|
434
412
|
#
|
435
|
-
#
|
436
|
-
#
|
437
|
-
# @param
|
413
|
+
# Validates domain registration information
|
414
|
+
#
|
415
|
+
# @param domain_registration_input [DomainRegistrationInput] Domain
|
416
|
+
# registration information
|
438
417
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
439
418
|
# will be added to the HTTP request.
|
440
419
|
#
|
441
|
-
# @return [
|
420
|
+
# @return [Object] operation results.
|
442
421
|
#
|
443
|
-
def
|
444
|
-
response =
|
422
|
+
def validate_purchase_information(domain_registration_input, custom_headers = nil)
|
423
|
+
response = validate_purchase_information_async(domain_registration_input, custom_headers).value!
|
445
424
|
response.body unless response.nil?
|
446
425
|
end
|
447
426
|
|
448
427
|
#
|
449
|
-
#
|
428
|
+
# Validates domain registration information
|
450
429
|
#
|
451
|
-
#
|
452
|
-
#
|
453
|
-
# @param
|
430
|
+
# Validates domain registration information
|
431
|
+
#
|
432
|
+
# @param domain_registration_input [DomainRegistrationInput] Domain
|
433
|
+
# registration information
|
454
434
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
455
435
|
# will be added to the HTTP request.
|
456
436
|
#
|
457
437
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
458
438
|
#
|
459
|
-
def
|
460
|
-
|
439
|
+
def validate_purchase_information_with_http_info(domain_registration_input, custom_headers = nil)
|
440
|
+
validate_purchase_information_async(domain_registration_input, custom_headers).value!
|
461
441
|
end
|
462
442
|
|
463
443
|
#
|
464
|
-
#
|
444
|
+
# Validates domain registration information
|
465
445
|
#
|
466
|
-
#
|
467
|
-
#
|
468
|
-
# @param
|
446
|
+
# Validates domain registration information
|
447
|
+
#
|
448
|
+
# @param domain_registration_input [DomainRegistrationInput] Domain
|
449
|
+
# registration information
|
469
450
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
470
451
|
# to the HTTP request.
|
471
452
|
#
|
472
453
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
473
454
|
#
|
474
|
-
def
|
475
|
-
fail ArgumentError, '
|
476
|
-
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
477
|
-
fail ArgumentError, 'domain is nil' if domain.nil?
|
455
|
+
def validate_purchase_information_async(domain_registration_input, custom_headers = nil)
|
456
|
+
fail ArgumentError, 'domain_registration_input is nil' if domain_registration_input.nil?
|
478
457
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
479
|
-
|
458
|
+
api_version = '2016-03-01'
|
480
459
|
|
481
460
|
|
482
461
|
request_headers = {}
|
@@ -488,54 +467,34 @@ module Azure::ARM::Web
|
|
488
467
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
489
468
|
|
490
469
|
# Serialize Request
|
491
|
-
request_mapper =
|
492
|
-
request_content = @client.serialize(request_mapper,
|
470
|
+
request_mapper = DomainRegistrationInput.mapper()
|
471
|
+
request_content = @client.serialize(request_mapper, domain_registration_input, 'domain_registration_input')
|
493
472
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
494
473
|
|
495
|
-
path_template = '/subscriptions/{subscriptionId}/
|
474
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/validateDomainRegistrationInformation'
|
496
475
|
|
497
476
|
request_url = @base_url || @client.base_url
|
498
477
|
|
499
478
|
options = {
|
500
479
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
501
|
-
path_params: {'
|
502
|
-
query_params: {'api-version' =>
|
480
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
481
|
+
query_params: {'api-version' => api_version},
|
503
482
|
body: request_content,
|
504
483
|
headers: request_headers.merge(custom_headers || {}),
|
505
484
|
base_url: request_url
|
506
485
|
}
|
507
|
-
promise = @client.make_request_async(:
|
486
|
+
promise = @client.make_request_async(:post, path_template, options)
|
508
487
|
|
509
488
|
promise = promise.then do |result|
|
510
489
|
http_response = result.response
|
511
490
|
status_code = http_response.status
|
512
491
|
response_content = http_response.body
|
513
|
-
unless status_code ==
|
492
|
+
unless status_code == 200
|
514
493
|
error_model = JSON.load(response_content)
|
515
494
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
516
495
|
end
|
517
496
|
|
518
497
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
519
|
-
# Deserialize Response
|
520
|
-
if status_code == 202
|
521
|
-
begin
|
522
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
523
|
-
result_mapper = Domain.mapper()
|
524
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
525
|
-
rescue Exception => e
|
526
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
527
|
-
end
|
528
|
-
end
|
529
|
-
# Deserialize Response
|
530
|
-
if status_code == 200
|
531
|
-
begin
|
532
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
533
|
-
result_mapper = Domain.mapper()
|
534
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
535
|
-
rescue Exception => e
|
536
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
537
|
-
end
|
538
|
-
end
|
539
498
|
|
540
499
|
result
|
541
500
|
end
|
@@ -544,53 +503,51 @@ module Azure::ARM::Web
|
|
544
503
|
end
|
545
504
|
|
546
505
|
#
|
547
|
-
#
|
506
|
+
# Lists domains under a resource group
|
507
|
+
#
|
508
|
+
# Lists domains under a resource group
|
548
509
|
#
|
549
510
|
# @param resource_group_name [String] Name of the resource group
|
550
|
-
# @param domain_name [String] Name of the domain
|
551
|
-
# @param operation_id [String] Domain purchase operation Id
|
552
511
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
553
512
|
# will be added to the HTTP request.
|
554
513
|
#
|
555
|
-
# @return [Domain] operation results.
|
514
|
+
# @return [Array<Domain>] operation results.
|
556
515
|
#
|
557
|
-
def
|
558
|
-
|
559
|
-
|
516
|
+
def list_by_resource_group(resource_group_name, custom_headers = nil)
|
517
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
518
|
+
first_page.get_all_items
|
560
519
|
end
|
561
520
|
|
562
521
|
#
|
563
|
-
#
|
522
|
+
# Lists domains under a resource group
|
523
|
+
#
|
524
|
+
# Lists domains under a resource group
|
564
525
|
#
|
565
526
|
# @param resource_group_name [String] Name of the resource group
|
566
|
-
# @param domain_name [String] Name of the domain
|
567
|
-
# @param operation_id [String] Domain purchase operation Id
|
568
527
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
569
528
|
# will be added to the HTTP request.
|
570
529
|
#
|
571
530
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
572
531
|
#
|
573
|
-
def
|
574
|
-
|
532
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
|
533
|
+
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
575
534
|
end
|
576
535
|
|
577
536
|
#
|
578
|
-
#
|
537
|
+
# Lists domains under a resource group
|
538
|
+
#
|
539
|
+
# Lists domains under a resource group
|
579
540
|
#
|
580
541
|
# @param resource_group_name [String] Name of the resource group
|
581
|
-
# @param domain_name [String] Name of the domain
|
582
|
-
# @param operation_id [String] Domain purchase operation Id
|
583
542
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
584
543
|
# to the HTTP request.
|
585
544
|
#
|
586
545
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
587
546
|
#
|
588
|
-
def
|
547
|
+
def list_by_resource_group_async(resource_group_name, custom_headers = nil)
|
589
548
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
590
|
-
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
591
|
-
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
592
549
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
593
|
-
|
550
|
+
api_version = '2016-03-01'
|
594
551
|
|
595
552
|
|
596
553
|
request_headers = {}
|
@@ -598,14 +555,14 @@ module Azure::ARM::Web
|
|
598
555
|
# Set Headers
|
599
556
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
600
557
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
601
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains
|
558
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains'
|
602
559
|
|
603
560
|
request_url = @base_url || @client.base_url
|
604
561
|
|
605
562
|
options = {
|
606
563
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
607
|
-
path_params: {'resourceGroupName' => resource_group_name,'
|
608
|
-
query_params: {'api-version' =>
|
564
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
565
|
+
query_params: {'api-version' => api_version},
|
609
566
|
headers: request_headers.merge(custom_headers || {}),
|
610
567
|
base_url: request_url
|
611
568
|
}
|
@@ -615,27 +572,17 @@ module Azure::ARM::Web
|
|
615
572
|
http_response = result.response
|
616
573
|
status_code = http_response.status
|
617
574
|
response_content = http_response.body
|
618
|
-
unless status_code ==
|
575
|
+
unless status_code == 200
|
619
576
|
error_model = JSON.load(response_content)
|
620
577
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
621
578
|
end
|
622
579
|
|
623
580
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
624
581
|
# Deserialize Response
|
625
|
-
if status_code == 202
|
626
|
-
begin
|
627
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
628
|
-
result_mapper = Domain.mapper()
|
629
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
630
|
-
rescue Exception => e
|
631
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
632
|
-
end
|
633
|
-
end
|
634
|
-
# Deserialize Response
|
635
582
|
if status_code == 200
|
636
583
|
begin
|
637
584
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
638
|
-
result_mapper =
|
585
|
+
result_mapper = DomainCollection.mapper()
|
639
586
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
640
587
|
rescue Exception => e
|
641
588
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -649,45 +596,704 @@ module Azure::ARM::Web
|
|
649
596
|
end
|
650
597
|
|
651
598
|
#
|
652
|
-
#
|
599
|
+
# Gets details of a domain
|
653
600
|
#
|
654
|
-
#
|
655
|
-
#
|
601
|
+
# Gets details of a domain
|
602
|
+
#
|
603
|
+
# @param resource_group_name [String] Name of the resource group
|
604
|
+
# @param domain_name [String] Name of the domain
|
656
605
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
657
606
|
# will be added to the HTTP request.
|
658
607
|
#
|
659
|
-
# @return [
|
608
|
+
# @return [Domain] operation results.
|
660
609
|
#
|
661
|
-
def
|
662
|
-
response =
|
610
|
+
def get(resource_group_name, domain_name, custom_headers = nil)
|
611
|
+
response = get_async(resource_group_name, domain_name, custom_headers).value!
|
663
612
|
response.body unless response.nil?
|
664
613
|
end
|
665
614
|
|
666
615
|
#
|
667
|
-
#
|
616
|
+
# Gets details of a domain
|
668
617
|
#
|
669
|
-
#
|
670
|
-
#
|
618
|
+
# Gets details of a domain
|
619
|
+
#
|
620
|
+
# @param resource_group_name [String] Name of the resource group
|
621
|
+
# @param domain_name [String] Name of the domain
|
671
622
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
672
623
|
# will be added to the HTTP request.
|
673
624
|
#
|
674
625
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
675
626
|
#
|
676
|
-
def
|
677
|
-
|
627
|
+
def get_with_http_info(resource_group_name, domain_name, custom_headers = nil)
|
628
|
+
get_async(resource_group_name, domain_name, custom_headers).value!
|
678
629
|
end
|
679
630
|
|
680
631
|
#
|
681
|
-
#
|
632
|
+
# Gets details of a domain
|
682
633
|
#
|
683
|
-
#
|
684
|
-
#
|
685
|
-
# @param [
|
686
|
-
#
|
634
|
+
# Gets details of a domain
|
635
|
+
#
|
636
|
+
# @param resource_group_name [String] Name of the resource group
|
637
|
+
# @param domain_name [String] Name of the domain
|
638
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
639
|
+
# to the HTTP request.
|
640
|
+
#
|
641
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
642
|
+
#
|
643
|
+
def get_async(resource_group_name, domain_name, custom_headers = nil)
|
644
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
645
|
+
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
646
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
647
|
+
api_version = '2016-03-01'
|
648
|
+
|
649
|
+
|
650
|
+
request_headers = {}
|
651
|
+
|
652
|
+
# Set Headers
|
653
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
654
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
655
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}'
|
656
|
+
|
657
|
+
request_url = @base_url || @client.base_url
|
658
|
+
|
659
|
+
options = {
|
660
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
661
|
+
path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
|
662
|
+
query_params: {'api-version' => api_version},
|
663
|
+
headers: request_headers.merge(custom_headers || {}),
|
664
|
+
base_url: request_url
|
665
|
+
}
|
666
|
+
promise = @client.make_request_async(:get, path_template, options)
|
667
|
+
|
668
|
+
promise = promise.then do |result|
|
669
|
+
http_response = result.response
|
670
|
+
status_code = http_response.status
|
671
|
+
response_content = http_response.body
|
672
|
+
unless status_code == 200
|
673
|
+
error_model = JSON.load(response_content)
|
674
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
675
|
+
end
|
676
|
+
|
677
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
678
|
+
# Deserialize Response
|
679
|
+
if status_code == 200
|
680
|
+
begin
|
681
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
682
|
+
result_mapper = Domain.mapper()
|
683
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
684
|
+
rescue Exception => e
|
685
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
686
|
+
end
|
687
|
+
end
|
688
|
+
|
689
|
+
result
|
690
|
+
end
|
691
|
+
|
692
|
+
promise.execute
|
693
|
+
end
|
694
|
+
|
695
|
+
#
|
696
|
+
# Creates a domain
|
697
|
+
#
|
698
|
+
# Creates a domain
|
699
|
+
#
|
700
|
+
# @param resource_group_name [String] >Name of the resource group
|
701
|
+
# @param domain_name [String] Name of the domain
|
702
|
+
# @param domain [Domain] Domain registration information
|
703
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
704
|
+
# will be added to the HTTP request.
|
705
|
+
#
|
706
|
+
# @return [Domain] operation results.
|
707
|
+
#
|
708
|
+
def create_or_update(resource_group_name, domain_name, domain, custom_headers = nil)
|
709
|
+
response = create_or_update_async(resource_group_name, domain_name, domain, custom_headers).value!
|
710
|
+
response.body unless response.nil?
|
711
|
+
end
|
712
|
+
|
713
|
+
#
|
714
|
+
# @param resource_group_name [String] >Name of the resource group
|
715
|
+
# @param domain_name [String] Name of the domain
|
716
|
+
# @param domain [Domain] Domain registration information
|
717
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
718
|
+
# will be added to the HTTP request.
|
719
|
+
#
|
720
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
721
|
+
# response.
|
722
|
+
#
|
723
|
+
def create_or_update_async(resource_group_name, domain_name, domain, custom_headers = nil)
|
724
|
+
# Send request
|
725
|
+
promise = begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers)
|
726
|
+
|
727
|
+
promise = promise.then do |response|
|
728
|
+
# Defining deserialization method.
|
729
|
+
deserialize_method = lambda do |parsed_response|
|
730
|
+
result_mapper = Domain.mapper()
|
731
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
732
|
+
end
|
733
|
+
|
734
|
+
# Waiting for response.
|
735
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
736
|
+
end
|
737
|
+
|
738
|
+
promise
|
739
|
+
end
|
740
|
+
|
741
|
+
#
|
742
|
+
# Deletes a domain
|
743
|
+
#
|
744
|
+
# Deletes a domain
|
745
|
+
#
|
746
|
+
# @param resource_group_name [String] Name of the resource group
|
747
|
+
# @param domain_name [String] Name of the domain
|
748
|
+
# @param force_hard_delete_domain [Boolean] If true then the domain will be
|
749
|
+
# deleted immediately instead of after 24 hours
|
750
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
751
|
+
# will be added to the HTTP request.
|
752
|
+
#
|
753
|
+
# @return [Object] operation results.
|
754
|
+
#
|
755
|
+
def delete(resource_group_name, domain_name, force_hard_delete_domain = nil, custom_headers = nil)
|
756
|
+
response = delete_async(resource_group_name, domain_name, force_hard_delete_domain, custom_headers).value!
|
757
|
+
response.body unless response.nil?
|
758
|
+
end
|
759
|
+
|
760
|
+
#
|
761
|
+
# Deletes a domain
|
762
|
+
#
|
763
|
+
# Deletes a domain
|
764
|
+
#
|
765
|
+
# @param resource_group_name [String] Name of the resource group
|
766
|
+
# @param domain_name [String] Name of the domain
|
767
|
+
# @param force_hard_delete_domain [Boolean] If true then the domain will be
|
768
|
+
# deleted immediately instead of after 24 hours
|
769
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
770
|
+
# will be added to the HTTP request.
|
771
|
+
#
|
772
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
773
|
+
#
|
774
|
+
def delete_with_http_info(resource_group_name, domain_name, force_hard_delete_domain = nil, custom_headers = nil)
|
775
|
+
delete_async(resource_group_name, domain_name, force_hard_delete_domain, custom_headers).value!
|
776
|
+
end
|
777
|
+
|
778
|
+
#
|
779
|
+
# Deletes a domain
|
780
|
+
#
|
781
|
+
# Deletes a domain
|
782
|
+
#
|
783
|
+
# @param resource_group_name [String] Name of the resource group
|
784
|
+
# @param domain_name [String] Name of the domain
|
785
|
+
# @param force_hard_delete_domain [Boolean] If true then the domain will be
|
786
|
+
# deleted immediately instead of after 24 hours
|
787
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
788
|
+
# to the HTTP request.
|
789
|
+
#
|
790
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
791
|
+
#
|
792
|
+
def delete_async(resource_group_name, domain_name, force_hard_delete_domain = nil, custom_headers = nil)
|
793
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
794
|
+
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
795
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
796
|
+
api_version = '2016-03-01'
|
797
|
+
|
798
|
+
|
799
|
+
request_headers = {}
|
800
|
+
|
801
|
+
# Set Headers
|
802
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
803
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
804
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}'
|
805
|
+
|
806
|
+
request_url = @base_url || @client.base_url
|
807
|
+
|
808
|
+
options = {
|
809
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
810
|
+
path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
|
811
|
+
query_params: {'forceHardDeleteDomain' => force_hard_delete_domain,'api-version' => api_version},
|
812
|
+
headers: request_headers.merge(custom_headers || {}),
|
813
|
+
base_url: request_url
|
814
|
+
}
|
815
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
816
|
+
|
817
|
+
promise = promise.then do |result|
|
818
|
+
http_response = result.response
|
819
|
+
status_code = http_response.status
|
820
|
+
response_content = http_response.body
|
821
|
+
unless status_code == 204
|
822
|
+
error_model = JSON.load(response_content)
|
823
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
824
|
+
end
|
825
|
+
|
826
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
827
|
+
|
828
|
+
result
|
829
|
+
end
|
830
|
+
|
831
|
+
promise.execute
|
832
|
+
end
|
833
|
+
|
834
|
+
#
|
835
|
+
# Retrieves the latest status of a domain purchase operation
|
836
|
+
#
|
837
|
+
# Retrieves the latest status of a domain purchase operation
|
838
|
+
#
|
839
|
+
# @param resource_group_name [String] Name of the resource group
|
840
|
+
# @param domain_name [String] Name of the domain
|
841
|
+
# @param operation_id [String] Domain purchase operation Id
|
842
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
843
|
+
# will be added to the HTTP request.
|
844
|
+
#
|
845
|
+
# @return [Domain] operation results.
|
846
|
+
#
|
847
|
+
def get_operation(resource_group_name, domain_name, operation_id, custom_headers = nil)
|
848
|
+
response = get_operation_async(resource_group_name, domain_name, operation_id, custom_headers).value!
|
849
|
+
response.body unless response.nil?
|
850
|
+
end
|
851
|
+
|
852
|
+
#
|
853
|
+
# Retrieves the latest status of a domain purchase operation
|
854
|
+
#
|
855
|
+
# Retrieves the latest status of a domain purchase operation
|
856
|
+
#
|
857
|
+
# @param resource_group_name [String] Name of the resource group
|
858
|
+
# @param domain_name [String] Name of the domain
|
859
|
+
# @param operation_id [String] Domain purchase operation Id
|
860
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
861
|
+
# will be added to the HTTP request.
|
862
|
+
#
|
863
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
864
|
+
#
|
865
|
+
def get_operation_with_http_info(resource_group_name, domain_name, operation_id, custom_headers = nil)
|
866
|
+
get_operation_async(resource_group_name, domain_name, operation_id, custom_headers).value!
|
867
|
+
end
|
868
|
+
|
869
|
+
#
|
870
|
+
# Retrieves the latest status of a domain purchase operation
|
871
|
+
#
|
872
|
+
# Retrieves the latest status of a domain purchase operation
|
873
|
+
#
|
874
|
+
# @param resource_group_name [String] Name of the resource group
|
875
|
+
# @param domain_name [String] Name of the domain
|
876
|
+
# @param operation_id [String] Domain purchase operation Id
|
877
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
878
|
+
# to the HTTP request.
|
879
|
+
#
|
880
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
881
|
+
#
|
882
|
+
def get_operation_async(resource_group_name, domain_name, operation_id, custom_headers = nil)
|
883
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
884
|
+
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
885
|
+
fail ArgumentError, 'operation_id is nil' if operation_id.nil?
|
886
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
887
|
+
api_version = '2016-03-01'
|
888
|
+
|
889
|
+
|
890
|
+
request_headers = {}
|
891
|
+
|
892
|
+
# Set Headers
|
893
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
894
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
895
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/operationresults/{operationId}'
|
896
|
+
|
897
|
+
request_url = @base_url || @client.base_url
|
898
|
+
|
899
|
+
options = {
|
900
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
901
|
+
path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'operationId' => operation_id,'subscriptionId' => @client.subscription_id},
|
902
|
+
query_params: {'api-version' => api_version},
|
903
|
+
headers: request_headers.merge(custom_headers || {}),
|
904
|
+
base_url: request_url
|
905
|
+
}
|
906
|
+
promise = @client.make_request_async(:get, path_template, options)
|
907
|
+
|
908
|
+
promise = promise.then do |result|
|
909
|
+
http_response = result.response
|
910
|
+
status_code = http_response.status
|
911
|
+
response_content = http_response.body
|
912
|
+
unless status_code == 202 || status_code == 200 || status_code == 500
|
913
|
+
error_model = JSON.load(response_content)
|
914
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
915
|
+
end
|
916
|
+
|
917
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
918
|
+
# Deserialize Response
|
919
|
+
if status_code == 202
|
920
|
+
begin
|
921
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
922
|
+
result_mapper = Domain.mapper()
|
923
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
924
|
+
rescue Exception => e
|
925
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
926
|
+
end
|
927
|
+
end
|
928
|
+
# Deserialize Response
|
929
|
+
if status_code == 200
|
930
|
+
begin
|
931
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
932
|
+
result_mapper = Domain.mapper()
|
933
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
934
|
+
rescue Exception => e
|
935
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
936
|
+
end
|
937
|
+
end
|
938
|
+
|
939
|
+
result
|
940
|
+
end
|
941
|
+
|
942
|
+
promise.execute
|
943
|
+
end
|
944
|
+
|
945
|
+
#
|
946
|
+
# Creates a domain
|
947
|
+
#
|
948
|
+
# Creates a domain
|
949
|
+
#
|
950
|
+
# @param resource_group_name [String] >Name of the resource group
|
951
|
+
# @param domain_name [String] Name of the domain
|
952
|
+
# @param domain [Domain] Domain registration information
|
953
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
954
|
+
# will be added to the HTTP request.
|
955
|
+
#
|
956
|
+
# @return [Domain] operation results.
|
957
|
+
#
|
958
|
+
def begin_create_or_update(resource_group_name, domain_name, domain, custom_headers = nil)
|
959
|
+
response = begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers).value!
|
960
|
+
response.body unless response.nil?
|
961
|
+
end
|
962
|
+
|
963
|
+
#
|
964
|
+
# Creates a domain
|
965
|
+
#
|
966
|
+
# Creates a domain
|
967
|
+
#
|
968
|
+
# @param resource_group_name [String] >Name of the resource group
|
969
|
+
# @param domain_name [String] Name of the domain
|
970
|
+
# @param domain [Domain] Domain registration information
|
971
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
972
|
+
# will be added to the HTTP request.
|
973
|
+
#
|
974
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
975
|
+
#
|
976
|
+
def begin_create_or_update_with_http_info(resource_group_name, domain_name, domain, custom_headers = nil)
|
977
|
+
begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers).value!
|
978
|
+
end
|
979
|
+
|
980
|
+
#
|
981
|
+
# Creates a domain
|
982
|
+
#
|
983
|
+
# Creates a domain
|
984
|
+
#
|
985
|
+
# @param resource_group_name [String] >Name of the resource group
|
986
|
+
# @param domain_name [String] Name of the domain
|
987
|
+
# @param domain [Domain] Domain registration information
|
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 begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers = nil)
|
994
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
995
|
+
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
996
|
+
fail ArgumentError, 'domain is nil' if domain.nil?
|
997
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
998
|
+
api_version = '2016-03-01'
|
999
|
+
|
1000
|
+
|
1001
|
+
request_headers = {}
|
1002
|
+
|
1003
|
+
# Set Headers
|
1004
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1005
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1006
|
+
|
1007
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1008
|
+
|
1009
|
+
# Serialize Request
|
1010
|
+
request_mapper = Domain.mapper()
|
1011
|
+
request_content = @client.serialize(request_mapper, domain, 'domain')
|
1012
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1013
|
+
|
1014
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}'
|
1015
|
+
|
1016
|
+
request_url = @base_url || @client.base_url
|
1017
|
+
|
1018
|
+
options = {
|
1019
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1020
|
+
path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
|
1021
|
+
query_params: {'api-version' => api_version},
|
1022
|
+
body: request_content,
|
1023
|
+
headers: request_headers.merge(custom_headers || {}),
|
1024
|
+
base_url: request_url
|
1025
|
+
}
|
1026
|
+
promise = @client.make_request_async(:put, path_template, options)
|
1027
|
+
|
1028
|
+
promise = promise.then do |result|
|
1029
|
+
http_response = result.response
|
1030
|
+
status_code = http_response.status
|
1031
|
+
response_content = http_response.body
|
1032
|
+
unless status_code == 202 || status_code == 200
|
1033
|
+
error_model = JSON.load(response_content)
|
1034
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1038
|
+
# Deserialize Response
|
1039
|
+
if status_code == 202
|
1040
|
+
begin
|
1041
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1042
|
+
result_mapper = Domain.mapper()
|
1043
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1044
|
+
rescue Exception => e
|
1045
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1046
|
+
end
|
1047
|
+
end
|
1048
|
+
# Deserialize Response
|
1049
|
+
if status_code == 200
|
1050
|
+
begin
|
1051
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1052
|
+
result_mapper = Domain.mapper()
|
1053
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1054
|
+
rescue Exception => e
|
1055
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1056
|
+
end
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
result
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
promise.execute
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
#
|
1066
|
+
# Lists all domains in a subscription
|
1067
|
+
#
|
1068
|
+
# Lists all domains in a subscription
|
1069
|
+
#
|
1070
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1071
|
+
# to List operation.
|
1072
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1073
|
+
# will be added to the HTTP request.
|
1074
|
+
#
|
1075
|
+
# @return [DomainCollection] operation results.
|
1076
|
+
#
|
1077
|
+
def list_next(next_page_link, custom_headers = nil)
|
1078
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
1079
|
+
response.body unless response.nil?
|
1080
|
+
end
|
1081
|
+
|
1082
|
+
#
|
1083
|
+
# Lists all domains in a subscription
|
1084
|
+
#
|
1085
|
+
# Lists all domains in a subscription
|
1086
|
+
#
|
1087
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1088
|
+
# to List operation.
|
1089
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1090
|
+
# will be added to the HTTP request.
|
1091
|
+
#
|
1092
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1093
|
+
#
|
1094
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
1095
|
+
list_next_async(next_page_link, custom_headers).value!
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
#
|
1099
|
+
# Lists all domains in a subscription
|
1100
|
+
#
|
1101
|
+
# Lists all domains in a subscription
|
1102
|
+
#
|
1103
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1104
|
+
# to List operation.
|
1105
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1106
|
+
# to the HTTP request.
|
1107
|
+
#
|
1108
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1109
|
+
#
|
1110
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
1111
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1112
|
+
|
1113
|
+
|
1114
|
+
request_headers = {}
|
1115
|
+
|
1116
|
+
# Set Headers
|
1117
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1118
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1119
|
+
path_template = '{nextLink}'
|
1120
|
+
|
1121
|
+
request_url = @base_url || @client.base_url
|
1122
|
+
|
1123
|
+
options = {
|
1124
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1125
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1126
|
+
headers: request_headers.merge(custom_headers || {}),
|
1127
|
+
base_url: request_url
|
1128
|
+
}
|
1129
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1130
|
+
|
1131
|
+
promise = promise.then do |result|
|
1132
|
+
http_response = result.response
|
1133
|
+
status_code = http_response.status
|
1134
|
+
response_content = http_response.body
|
1135
|
+
unless status_code == 200
|
1136
|
+
error_model = JSON.load(response_content)
|
1137
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1141
|
+
# Deserialize Response
|
1142
|
+
if status_code == 200
|
1143
|
+
begin
|
1144
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1145
|
+
result_mapper = DomainCollection.mapper()
|
1146
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1147
|
+
rescue Exception => e
|
1148
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1149
|
+
end
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
result
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
promise.execute
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
#
|
1159
|
+
# Lists domain recommendations based on keywords
|
1160
|
+
#
|
1161
|
+
# Lists domain recommendations based on keywords
|
1162
|
+
#
|
1163
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1164
|
+
# to List operation.
|
1165
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1166
|
+
# will be added to the HTTP request.
|
1167
|
+
#
|
1168
|
+
# @return [NameIdentifierCollection] operation results.
|
1169
|
+
#
|
1170
|
+
def list_recommendations_next(next_page_link, custom_headers = nil)
|
1171
|
+
response = list_recommendations_next_async(next_page_link, custom_headers).value!
|
1172
|
+
response.body unless response.nil?
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
#
|
1176
|
+
# Lists domain recommendations based on keywords
|
1177
|
+
#
|
1178
|
+
# Lists domain recommendations based on keywords
|
1179
|
+
#
|
1180
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1181
|
+
# to List operation.
|
1182
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1183
|
+
# will be added to the HTTP request.
|
1184
|
+
#
|
1185
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1186
|
+
#
|
1187
|
+
def list_recommendations_next_with_http_info(next_page_link, custom_headers = nil)
|
1188
|
+
list_recommendations_next_async(next_page_link, custom_headers).value!
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
#
|
1192
|
+
# Lists domain recommendations based on keywords
|
1193
|
+
#
|
1194
|
+
# Lists domain recommendations based on keywords
|
1195
|
+
#
|
1196
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1197
|
+
# to List operation.
|
1198
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1199
|
+
# to the HTTP request.
|
1200
|
+
#
|
1201
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1202
|
+
#
|
1203
|
+
def list_recommendations_next_async(next_page_link, custom_headers = nil)
|
1204
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1205
|
+
|
1206
|
+
|
1207
|
+
request_headers = {}
|
1208
|
+
|
1209
|
+
# Set Headers
|
1210
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1211
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1212
|
+
path_template = '{nextLink}'
|
1213
|
+
|
1214
|
+
request_url = @base_url || @client.base_url
|
1215
|
+
|
1216
|
+
options = {
|
1217
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1218
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1219
|
+
headers: request_headers.merge(custom_headers || {}),
|
1220
|
+
base_url: request_url
|
1221
|
+
}
|
1222
|
+
promise = @client.make_request_async(:post, path_template, options)
|
1223
|
+
|
1224
|
+
promise = promise.then do |result|
|
1225
|
+
http_response = result.response
|
1226
|
+
status_code = http_response.status
|
1227
|
+
response_content = http_response.body
|
1228
|
+
unless status_code == 200
|
1229
|
+
error_model = JSON.load(response_content)
|
1230
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1234
|
+
# Deserialize Response
|
1235
|
+
if status_code == 200
|
1236
|
+
begin
|
1237
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1238
|
+
result_mapper = NameIdentifierCollection.mapper()
|
1239
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1240
|
+
rescue Exception => e
|
1241
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1242
|
+
end
|
1243
|
+
end
|
1244
|
+
|
1245
|
+
result
|
1246
|
+
end
|
1247
|
+
|
1248
|
+
promise.execute
|
1249
|
+
end
|
1250
|
+
|
1251
|
+
#
|
1252
|
+
# Lists domains under a resource group
|
1253
|
+
#
|
1254
|
+
# Lists domains under a resource group
|
1255
|
+
#
|
1256
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1257
|
+
# to List operation.
|
1258
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1259
|
+
# will be added to the HTTP request.
|
1260
|
+
#
|
1261
|
+
# @return [DomainCollection] operation results.
|
1262
|
+
#
|
1263
|
+
def list_by_resource_group_next(next_page_link, custom_headers = nil)
|
1264
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1265
|
+
response.body unless response.nil?
|
1266
|
+
end
|
1267
|
+
|
1268
|
+
#
|
1269
|
+
# Lists domains under a resource group
|
1270
|
+
#
|
1271
|
+
# Lists domains under a resource group
|
1272
|
+
#
|
1273
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1274
|
+
# to List operation.
|
1275
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1276
|
+
# will be added to the HTTP request.
|
1277
|
+
#
|
1278
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1279
|
+
#
|
1280
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
|
1281
|
+
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
#
|
1285
|
+
# Lists domains under a resource group
|
1286
|
+
#
|
1287
|
+
# Lists domains under a resource group
|
1288
|
+
#
|
1289
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1290
|
+
# to List operation.
|
1291
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1292
|
+
# to the HTTP request.
|
687
1293
|
#
|
688
1294
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
689
1295
|
#
|
690
|
-
def
|
1296
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
|
691
1297
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
692
1298
|
|
693
1299
|
|
@@ -735,5 +1341,74 @@ module Azure::ARM::Web
|
|
735
1341
|
promise.execute
|
736
1342
|
end
|
737
1343
|
|
1344
|
+
#
|
1345
|
+
# Lists all domains in a subscription
|
1346
|
+
#
|
1347
|
+
# Lists all domains in a subscription
|
1348
|
+
#
|
1349
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1350
|
+
# will be added to the HTTP request.
|
1351
|
+
#
|
1352
|
+
# @return [DomainCollection] which provide lazy access to pages of the
|
1353
|
+
# response.
|
1354
|
+
#
|
1355
|
+
def list_as_lazy(custom_headers = nil)
|
1356
|
+
response = list_async(custom_headers).value!
|
1357
|
+
unless response.nil?
|
1358
|
+
page = response.body
|
1359
|
+
page.next_method = Proc.new do |next_page_link|
|
1360
|
+
list_next_async(next_page_link, custom_headers)
|
1361
|
+
end
|
1362
|
+
page
|
1363
|
+
end
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
#
|
1367
|
+
# Lists domain recommendations based on keywords
|
1368
|
+
#
|
1369
|
+
# Lists domain recommendations based on keywords
|
1370
|
+
#
|
1371
|
+
# @param parameters [DomainRecommendationSearchParameters] Domain
|
1372
|
+
# recommendation search parameters
|
1373
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1374
|
+
# will be added to the HTTP request.
|
1375
|
+
#
|
1376
|
+
# @return [NameIdentifierCollection] which provide lazy access to pages of the
|
1377
|
+
# response.
|
1378
|
+
#
|
1379
|
+
def list_recommendations_as_lazy(parameters, custom_headers = nil)
|
1380
|
+
response = list_recommendations_async(parameters, custom_headers).value!
|
1381
|
+
unless response.nil?
|
1382
|
+
page = response.body
|
1383
|
+
page.next_method = Proc.new do |next_page_link|
|
1384
|
+
list_recommendations_next_async(next_page_link, custom_headers)
|
1385
|
+
end
|
1386
|
+
page
|
1387
|
+
end
|
1388
|
+
end
|
1389
|
+
|
1390
|
+
#
|
1391
|
+
# Lists domains under a resource group
|
1392
|
+
#
|
1393
|
+
# Lists domains under a resource group
|
1394
|
+
#
|
1395
|
+
# @param resource_group_name [String] Name of the resource group
|
1396
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1397
|
+
# will be added to the HTTP request.
|
1398
|
+
#
|
1399
|
+
# @return [DomainCollection] which provide lazy access to pages of the
|
1400
|
+
# response.
|
1401
|
+
#
|
1402
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
|
1403
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
1404
|
+
unless response.nil?
|
1405
|
+
page = response.body
|
1406
|
+
page.next_method = Proc.new do |next_page_link|
|
1407
|
+
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1408
|
+
end
|
1409
|
+
page
|
1410
|
+
end
|
1411
|
+
end
|
1412
|
+
|
738
1413
|
end
|
739
1414
|
end
|