azure_mgmt_web 0.8.0 → 0.9.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 +149 -123
- data/lib/generated/azure_mgmt_web/app_service_certificate_orders.rb +556 -297
- data/lib/generated/azure_mgmt_web/app_service_environments.rb +1584 -1057
- data/lib/generated/azure_mgmt_web/app_service_plans.rb +890 -805
- data/lib/generated/azure_mgmt_web/certificates.rb +328 -215
- data/lib/generated/azure_mgmt_web/deleted_web_apps.rb +443 -0
- data/lib/generated/azure_mgmt_web/domains.rb +721 -243
- data/lib/generated/azure_mgmt_web/models/address.rb +12 -12
- data/lib/generated/azure_mgmt_web/models/address_response.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/api_definition_info.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/app_service_certificate.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/app_service_certificate_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/app_service_certificate_order.rb +36 -16
- data/lib/generated/azure_mgmt_web/models/app_service_certificate_order_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/app_service_environment.rb +83 -64
- data/lib/generated/azure_mgmt_web/models/app_service_environment_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/app_service_plan.rb +69 -17
- data/lib/generated/azure_mgmt_web/models/app_service_plan_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/app_service_plan_restrictions.rb +20 -0
- data/lib/generated/azure_mgmt_web/models/application_logs_config.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/auto_heal_actions.rb +6 -8
- data/lib/generated/azure_mgmt_web/models/auto_heal_custom_action.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/auto_heal_rules.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/auto_heal_triggers.rb +6 -9
- data/lib/generated/azure_mgmt_web/models/azure_blob_storage_application_logs_config.rb +2 -2
- data/lib/generated/azure_mgmt_web/models/azure_blob_storage_http_logs_config.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/azure_table_storage_application_logs_config.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/backup_item.rb +26 -11
- data/lib/generated/azure_mgmt_web/models/backup_item_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/backup_request.rb +9 -7
- data/lib/generated/azure_mgmt_web/models/backup_schedule.rb +18 -11
- data/lib/generated/azure_mgmt_web/models/capability.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/certificate.rb +79 -18
- data/lib/generated/azure_mgmt_web/models/certificate_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/certificate_details.rb +29 -70
- data/lib/generated/azure_mgmt_web/models/certificate_email.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/certificate_order_action.rb +8 -6
- data/lib/generated/azure_mgmt_web/models/certificate_order_action_type.rb +5 -0
- data/lib/generated/azure_mgmt_web/models/channels.rb +1 -0
- data/lib/generated/azure_mgmt_web/models/cloning_info.rb +24 -22
- data/lib/generated/azure_mgmt_web/models/conn_string_info.rb +67 -0
- data/lib/generated/azure_mgmt_web/models/conn_string_value_type_pair.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/connection_string_dictionary.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/contact.rb +16 -15
- data/lib/generated/azure_mgmt_web/models/cors_settings.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/csm_move_resource_envelope.rb +7 -2
- data/lib/generated/azure_mgmt_web/models/csm_publishing_profile_options.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/csm_site_recovery_entity.rb +6 -18
- data/lib/generated/azure_mgmt_web/models/csm_slot_entity.rb +6 -7
- data/lib/generated/azure_mgmt_web/models/csm_usage_quota.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/csm_usage_quota_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/csr.rb +9 -9
- data/lib/generated/azure_mgmt_web/models/csr_collection.rb +93 -0
- data/lib/generated/azure_mgmt_web/models/custom_hostname_analysis_result.rb +28 -19
- data/lib/generated/azure_mgmt_web/models/database_backup_setting.rb +5 -6
- data/lib/generated/azure_mgmt_web/models/database_type.rb +17 -0
- data/lib/generated/azure_mgmt_web/models/deleted_site.rb +97 -61
- data/lib/generated/azure_mgmt_web/models/deleted_web_app_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/deployment.rb +12 -12
- data/lib/generated/azure_mgmt_web/models/deployment_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/domain.rb +30 -20
- data/lib/generated/azure_mgmt_web/models/domain_availablility_check_result.rb +8 -6
- data/lib/generated/azure_mgmt_web/models/domain_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/domain_control_center_sso_request.rb +6 -3
- data/lib/generated/azure_mgmt_web/models/{classic_mobile_service.rb → domain_ownership_identifier.rb} +10 -10
- data/lib/generated/azure_mgmt_web/models/domain_ownership_identifier_collection.rb +93 -0
- data/lib/generated/azure_mgmt_web/models/domain_purchase_consent.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/domain_recommendation_search_parameters.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/enabled_config.rb +2 -2
- data/lib/generated/azure_mgmt_web/models/error_entity.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/experiments.rb +2 -3
- data/lib/generated/azure_mgmt_web/models/file_system_application_logs_config.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/file_system_http_logs_config.rb +6 -2
- data/lib/generated/azure_mgmt_web/models/geo_region.rb +8 -5
- data/lib/generated/azure_mgmt_web/models/geo_region_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/global_csm_sku_description.rb +101 -0
- data/lib/generated/azure_mgmt_web/models/handler_mapping.rb +1 -1
- data/lib/generated/azure_mgmt_web/models/host_name.rb +8 -8
- data/lib/generated/azure_mgmt_web/models/host_name_binding.rb +40 -7
- data/lib/generated/azure_mgmt_web/models/host_name_binding_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/host_name_ssl_state.rb +7 -7
- data/lib/generated/azure_mgmt_web/models/hosting_environment_diagnostics.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/hosting_environment_profile.rb +6 -8
- data/lib/generated/azure_mgmt_web/models/http_logs_config.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/hybrid_connection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/{metric_definition_collection.rb → hybrid_connection_collection.rb} +12 -12
- data/lib/generated/azure_mgmt_web/models/hybrid_connection_key.rb +5 -3
- data/lib/generated/azure_mgmt_web/models/hybrid_connection_limits.rb +107 -0
- data/lib/generated/azure_mgmt_web/models/{premier_add_on_request.rb → identifier.rb} +40 -40
- data/lib/generated/azure_mgmt_web/models/identifier_collection.rb +93 -0
- data/lib/generated/azure_mgmt_web/models/in_availability_reason_type.rb +16 -0
- data/lib/generated/azure_mgmt_web/models/ip_security_restriction.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/localizable_string.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/metric_availabilily.rb +3 -4
- data/lib/generated/azure_mgmt_web/models/metric_definition.rb +12 -7
- data/lib/generated/azure_mgmt_web/models/migrate_my_sql_request.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/name_identifier.rb +2 -2
- data/lib/generated/azure_mgmt_web/models/name_identifier_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/name_value_pair.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/network_access_control_entry.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/network_features.rb +12 -9
- data/lib/generated/azure_mgmt_web/models/operation.rb +8 -8
- data/lib/generated/azure_mgmt_web/models/perf_mon_counter_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/perf_mon_response.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/perf_mon_sample.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/perf_mon_set.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/premier_add_on.rb +171 -0
- data/lib/generated/azure_mgmt_web/models/premier_add_on_offer.rb +198 -0
- data/lib/generated/azure_mgmt_web/models/premier_add_on_offer_collection.rb +93 -0
- data/lib/generated/azure_mgmt_web/models/publishing_profile_format.rb +17 -0
- data/lib/generated/azure_mgmt_web/models/push_settings.rb +5 -2
- data/lib/generated/azure_mgmt_web/models/ramp_up_rule.rb +16 -20
- data/lib/generated/azure_mgmt_web/models/recommendation.rb +20 -28
- data/lib/generated/azure_mgmt_web/models/recommendation_rule.rb +12 -22
- data/lib/generated/azure_mgmt_web/models/recover_response.rb +3 -2
- data/lib/generated/azure_mgmt_web/models/reissue_certificate_order_request.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/relay_service_connection_entity.rb +2 -2
- data/lib/generated/azure_mgmt_web/models/renew_certificate_order_request.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/requests_based_trigger.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/{arm_plan.rb → resource.rb} +32 -29
- data/lib/generated/azure_mgmt_web/models/resource_collection.rb +92 -0
- data/lib/generated/azure_mgmt_web/models/resource_metric.rb +9 -9
- data/lib/generated/azure_mgmt_web/models/resource_metric_availability.rb +56 -0
- data/lib/generated/azure_mgmt_web/models/resource_metric_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/resource_metric_definition.rb +178 -0
- data/lib/generated/azure_mgmt_web/models/resource_metric_definition_collection.rb +93 -0
- data/lib/generated/azure_mgmt_web/models/resource_metric_name.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/resource_metric_property.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/resource_metric_value.rb +8 -8
- data/lib/generated/azure_mgmt_web/models/resource_name_availability.rb +14 -8
- data/lib/generated/azure_mgmt_web/models/resource_name_availability_request.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/resource_scope_type.rb +17 -0
- data/lib/generated/azure_mgmt_web/models/restore_request.rb +20 -17
- data/lib/generated/azure_mgmt_web/models/restore_response.rb +4 -3
- data/lib/generated/azure_mgmt_web/models/route_type.rb +17 -0
- data/lib/generated/azure_mgmt_web/models/scm_type.rb +27 -0
- data/lib/generated/azure_mgmt_web/models/site.rb +95 -60
- data/lib/generated/azure_mgmt_web/models/site_auth_settings.rb +57 -79
- data/lib/generated/azure_mgmt_web/models/site_cloneability.rb +8 -8
- data/lib/generated/azure_mgmt_web/models/site_cloneability_criterion.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/site_config.rb +99 -38
- data/lib/generated/azure_mgmt_web/models/site_configuration_snapshot_info.rb +106 -0
- data/lib/generated/azure_mgmt_web/models/site_instance.rb +4 -3
- data/lib/generated/azure_mgmt_web/models/site_limits.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/site_logs_config.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/site_machine_key.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/site_php_error_log_flag.rb +124 -0
- data/lib/generated/azure_mgmt_web/models/site_seal.rb +44 -0
- data/lib/generated/azure_mgmt_web/models/site_seal_request.rb +54 -0
- data/lib/generated/azure_mgmt_web/models/site_source_control.rb +11 -7
- data/lib/generated/azure_mgmt_web/models/sku_capacity.rb +9 -8
- data/lib/generated/azure_mgmt_web/models/sku_description.rb +9 -9
- data/lib/generated/azure_mgmt_web/models/sku_info.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/sku_info_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/sku_infos.rb +63 -0
- data/lib/generated/azure_mgmt_web/models/sku_name.rb +20 -0
- data/lib/generated/azure_mgmt_web/models/slot_config_names_resource.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/slot_difference.rb +18 -13
- data/lib/generated/azure_mgmt_web/models/slot_difference_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/slot_swap_status.rb +67 -0
- data/lib/generated/azure_mgmt_web/models/slow_requests_based_trigger.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/snapshot.rb +4 -3
- data/lib/generated/azure_mgmt_web/models/snapshot_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/source_control.rb +7 -7
- data/lib/generated/azure_mgmt_web/models/source_control_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/stamp_capacity.rb +12 -11
- data/lib/generated/azure_mgmt_web/models/stamp_capacity_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/status_codes_based_trigger.rb +6 -6
- data/lib/generated/azure_mgmt_web/models/storage_migration_options.rb +11 -7
- data/lib/generated/azure_mgmt_web/models/storage_migration_response.rb +4 -3
- data/lib/generated/azure_mgmt_web/models/string_dictionary.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/tld_legal_agreement.rb +8 -8
- data/lib/generated/azure_mgmt_web/models/tld_legal_agreement_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/top_level_domain.rb +8 -7
- data/lib/generated/azure_mgmt_web/models/top_level_domain_agreement_option.rb +4 -3
- data/lib/generated/azure_mgmt_web/models/top_level_domain_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/usage.rb +20 -11
- data/lib/generated/azure_mgmt_web/models/usage_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/user.rb +7 -7
- data/lib/generated/azure_mgmt_web/models/validate_request.rb +58 -12
- data/lib/generated/azure_mgmt_web/models/validate_response.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/validate_response_error.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/virtual_application.rb +7 -6
- data/lib/generated/azure_mgmt_web/models/virtual_directory.rb +3 -3
- data/lib/generated/azure_mgmt_web/models/virtual_ipmapping.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/virtual_network_profile.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/vnet_gateway.rb +5 -5
- data/lib/generated/azure_mgmt_web/models/vnet_info.rb +12 -9
- data/lib/generated/azure_mgmt_web/models/vnet_route.rb +11 -11
- data/lib/generated/azure_mgmt_web/models/web_app_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/models/{site_instance_collection.rb → web_app_instance_collection.rb} +9 -9
- data/lib/generated/azure_mgmt_web/models/worker_pool.rb +9 -8
- data/lib/generated/azure_mgmt_web/models/worker_pool_collection.rb +4 -4
- data/lib/generated/azure_mgmt_web/recommendations.rb +388 -132
- data/lib/generated/azure_mgmt_web/top_level_domains.rb +62 -48
- data/lib/generated/azure_mgmt_web/version.rb +1 -1
- data/lib/generated/azure_mgmt_web/web_apps.rb +8787 -6295
- data/lib/generated/azure_mgmt_web/web_site_management_client.rb +459 -288
- metadata +37 -11
- data/lib/generated/azure_mgmt_web/models/domain_registration_input.rb +0 -292
- data/lib/generated/azure_mgmt_web/models/validate_properties.rb +0 -76
@@ -0,0 +1,443 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.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
|
+
# Composite Swagger for WebSite Management Client
|
9
|
+
#
|
10
|
+
class DeletedWebApps
|
11
|
+
include Azure::ARM::Web::Models
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the DeletedWebApps class.
|
16
|
+
# @param client service class for accessing basic functionality.
|
17
|
+
#
|
18
|
+
def initialize(client)
|
19
|
+
@client = client
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [WebSiteManagementClient] reference to the WebSiteManagementClient
|
23
|
+
attr_reader :client
|
24
|
+
|
25
|
+
#
|
26
|
+
# Get all deleted apps for a subscription.
|
27
|
+
#
|
28
|
+
# Get all deleted apps for a subscription.
|
29
|
+
#
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [Array<DeletedSite>] operation results.
|
34
|
+
#
|
35
|
+
def list(custom_headers = nil)
|
36
|
+
first_page = list_as_lazy(custom_headers)
|
37
|
+
first_page.get_all_items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Get all deleted apps for a subscription.
|
42
|
+
#
|
43
|
+
# Get all deleted apps for a subscription.
|
44
|
+
#
|
45
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
|
+
# will be added to the HTTP request.
|
47
|
+
#
|
48
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
49
|
+
#
|
50
|
+
def list_with_http_info(custom_headers = nil)
|
51
|
+
list_async(custom_headers).value!
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Get all deleted apps for a subscription.
|
56
|
+
#
|
57
|
+
# Get all deleted apps for a subscription.
|
58
|
+
#
|
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 list_async(custom_headers = nil)
|
65
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
66
|
+
api_version = '2016-03-01'
|
67
|
+
|
68
|
+
|
69
|
+
request_headers = {}
|
70
|
+
|
71
|
+
# Set Headers
|
72
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
73
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
74
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites'
|
75
|
+
|
76
|
+
request_url = @base_url || @client.base_url
|
77
|
+
|
78
|
+
options = {
|
79
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
80
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
81
|
+
query_params: {'api-version' => api_version},
|
82
|
+
headers: request_headers.merge(custom_headers || {}),
|
83
|
+
base_url: request_url
|
84
|
+
}
|
85
|
+
promise = @client.make_request_async(:post, path_template, options)
|
86
|
+
|
87
|
+
promise = promise.then do |result|
|
88
|
+
http_response = result.response
|
89
|
+
status_code = http_response.status
|
90
|
+
response_content = http_response.body
|
91
|
+
unless status_code == 200
|
92
|
+
error_model = JSON.load(response_content)
|
93
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
94
|
+
end
|
95
|
+
|
96
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
97
|
+
# Deserialize Response
|
98
|
+
if status_code == 200
|
99
|
+
begin
|
100
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
101
|
+
result_mapper = DeletedWebAppCollection.mapper()
|
102
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
103
|
+
rescue Exception => e
|
104
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
result
|
109
|
+
end
|
110
|
+
|
111
|
+
promise.execute
|
112
|
+
end
|
113
|
+
|
114
|
+
#
|
115
|
+
# Gets deleted web apps in subscription.
|
116
|
+
#
|
117
|
+
# Gets deleted web apps in subscription.
|
118
|
+
#
|
119
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
120
|
+
# resource belongs.
|
121
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
122
|
+
# will be added to the HTTP request.
|
123
|
+
#
|
124
|
+
# @return [Array<DeletedSite>] operation results.
|
125
|
+
#
|
126
|
+
def list_by_resource_group(resource_group_name, custom_headers = nil)
|
127
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
128
|
+
first_page.get_all_items
|
129
|
+
end
|
130
|
+
|
131
|
+
#
|
132
|
+
# Gets deleted web apps in subscription.
|
133
|
+
#
|
134
|
+
# Gets deleted web apps in subscription.
|
135
|
+
#
|
136
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
137
|
+
# resource belongs.
|
138
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
139
|
+
# will be added to the HTTP request.
|
140
|
+
#
|
141
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
142
|
+
#
|
143
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
|
144
|
+
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
145
|
+
end
|
146
|
+
|
147
|
+
#
|
148
|
+
# Gets deleted web apps in subscription.
|
149
|
+
#
|
150
|
+
# Gets deleted web apps in subscription.
|
151
|
+
#
|
152
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
153
|
+
# resource belongs.
|
154
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
155
|
+
# to the HTTP request.
|
156
|
+
#
|
157
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
158
|
+
#
|
159
|
+
def list_by_resource_group_async(resource_group_name, custom_headers = nil)
|
160
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
161
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
162
|
+
api_version = '2016-03-01'
|
163
|
+
|
164
|
+
|
165
|
+
request_headers = {}
|
166
|
+
|
167
|
+
# Set Headers
|
168
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
169
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
170
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/deletedSites'
|
171
|
+
|
172
|
+
request_url = @base_url || @client.base_url
|
173
|
+
|
174
|
+
options = {
|
175
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
176
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
177
|
+
query_params: {'api-version' => api_version},
|
178
|
+
headers: request_headers.merge(custom_headers || {}),
|
179
|
+
base_url: request_url
|
180
|
+
}
|
181
|
+
promise = @client.make_request_async(:get, path_template, options)
|
182
|
+
|
183
|
+
promise = promise.then do |result|
|
184
|
+
http_response = result.response
|
185
|
+
status_code = http_response.status
|
186
|
+
response_content = http_response.body
|
187
|
+
unless status_code == 200
|
188
|
+
error_model = JSON.load(response_content)
|
189
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
190
|
+
end
|
191
|
+
|
192
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
193
|
+
# Deserialize Response
|
194
|
+
if status_code == 200
|
195
|
+
begin
|
196
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
197
|
+
result_mapper = DeletedWebAppCollection.mapper()
|
198
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
199
|
+
rescue Exception => e
|
200
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
result
|
205
|
+
end
|
206
|
+
|
207
|
+
promise.execute
|
208
|
+
end
|
209
|
+
|
210
|
+
#
|
211
|
+
# Get all deleted apps for a subscription.
|
212
|
+
#
|
213
|
+
# Get all deleted apps for a subscription.
|
214
|
+
#
|
215
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
216
|
+
# to List operation.
|
217
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
218
|
+
# will be added to the HTTP request.
|
219
|
+
#
|
220
|
+
# @return [DeletedWebAppCollection] operation results.
|
221
|
+
#
|
222
|
+
def list_next(next_page_link, custom_headers = nil)
|
223
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
224
|
+
response.body unless response.nil?
|
225
|
+
end
|
226
|
+
|
227
|
+
#
|
228
|
+
# Get all deleted apps for a subscription.
|
229
|
+
#
|
230
|
+
# Get all deleted apps for a subscription.
|
231
|
+
#
|
232
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
233
|
+
# to List operation.
|
234
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
235
|
+
# will be added to the HTTP request.
|
236
|
+
#
|
237
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
238
|
+
#
|
239
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
240
|
+
list_next_async(next_page_link, custom_headers).value!
|
241
|
+
end
|
242
|
+
|
243
|
+
#
|
244
|
+
# Get all deleted apps for a subscription.
|
245
|
+
#
|
246
|
+
# Get all deleted apps for a subscription.
|
247
|
+
#
|
248
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
249
|
+
# to List operation.
|
250
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
251
|
+
# to the HTTP request.
|
252
|
+
#
|
253
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
254
|
+
#
|
255
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
256
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
257
|
+
|
258
|
+
|
259
|
+
request_headers = {}
|
260
|
+
|
261
|
+
# Set Headers
|
262
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
263
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
264
|
+
path_template = '{nextLink}'
|
265
|
+
|
266
|
+
request_url = @base_url || @client.base_url
|
267
|
+
|
268
|
+
options = {
|
269
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
270
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
271
|
+
headers: request_headers.merge(custom_headers || {}),
|
272
|
+
base_url: request_url
|
273
|
+
}
|
274
|
+
promise = @client.make_request_async(:post, path_template, options)
|
275
|
+
|
276
|
+
promise = promise.then do |result|
|
277
|
+
http_response = result.response
|
278
|
+
status_code = http_response.status
|
279
|
+
response_content = http_response.body
|
280
|
+
unless status_code == 200
|
281
|
+
error_model = JSON.load(response_content)
|
282
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
283
|
+
end
|
284
|
+
|
285
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
286
|
+
# Deserialize Response
|
287
|
+
if status_code == 200
|
288
|
+
begin
|
289
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
290
|
+
result_mapper = DeletedWebAppCollection.mapper()
|
291
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
292
|
+
rescue Exception => e
|
293
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
294
|
+
end
|
295
|
+
end
|
296
|
+
|
297
|
+
result
|
298
|
+
end
|
299
|
+
|
300
|
+
promise.execute
|
301
|
+
end
|
302
|
+
|
303
|
+
#
|
304
|
+
# Gets deleted web apps in subscription.
|
305
|
+
#
|
306
|
+
# Gets deleted web apps in subscription.
|
307
|
+
#
|
308
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
309
|
+
# to List operation.
|
310
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
311
|
+
# will be added to the HTTP request.
|
312
|
+
#
|
313
|
+
# @return [DeletedWebAppCollection] operation results.
|
314
|
+
#
|
315
|
+
def list_by_resource_group_next(next_page_link, custom_headers = nil)
|
316
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
317
|
+
response.body unless response.nil?
|
318
|
+
end
|
319
|
+
|
320
|
+
#
|
321
|
+
# Gets deleted web apps in subscription.
|
322
|
+
#
|
323
|
+
# Gets deleted web apps in subscription.
|
324
|
+
#
|
325
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
326
|
+
# to List operation.
|
327
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
328
|
+
# will be added to the HTTP request.
|
329
|
+
#
|
330
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
331
|
+
#
|
332
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
|
333
|
+
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
334
|
+
end
|
335
|
+
|
336
|
+
#
|
337
|
+
# Gets deleted web apps in subscription.
|
338
|
+
#
|
339
|
+
# Gets deleted web apps in subscription.
|
340
|
+
#
|
341
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
342
|
+
# to List operation.
|
343
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
344
|
+
# to the HTTP request.
|
345
|
+
#
|
346
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
347
|
+
#
|
348
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
|
349
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
350
|
+
|
351
|
+
|
352
|
+
request_headers = {}
|
353
|
+
|
354
|
+
# Set Headers
|
355
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
356
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
357
|
+
path_template = '{nextLink}'
|
358
|
+
|
359
|
+
request_url = @base_url || @client.base_url
|
360
|
+
|
361
|
+
options = {
|
362
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
363
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
364
|
+
headers: request_headers.merge(custom_headers || {}),
|
365
|
+
base_url: request_url
|
366
|
+
}
|
367
|
+
promise = @client.make_request_async(:get, path_template, options)
|
368
|
+
|
369
|
+
promise = promise.then do |result|
|
370
|
+
http_response = result.response
|
371
|
+
status_code = http_response.status
|
372
|
+
response_content = http_response.body
|
373
|
+
unless status_code == 200
|
374
|
+
error_model = JSON.load(response_content)
|
375
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
376
|
+
end
|
377
|
+
|
378
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
379
|
+
# Deserialize Response
|
380
|
+
if status_code == 200
|
381
|
+
begin
|
382
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
383
|
+
result_mapper = DeletedWebAppCollection.mapper()
|
384
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
385
|
+
rescue Exception => e
|
386
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
387
|
+
end
|
388
|
+
end
|
389
|
+
|
390
|
+
result
|
391
|
+
end
|
392
|
+
|
393
|
+
promise.execute
|
394
|
+
end
|
395
|
+
|
396
|
+
#
|
397
|
+
# Get all deleted apps for a subscription.
|
398
|
+
#
|
399
|
+
# Get all deleted apps for a subscription.
|
400
|
+
#
|
401
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
402
|
+
# will be added to the HTTP request.
|
403
|
+
#
|
404
|
+
# @return [DeletedWebAppCollection] which provide lazy access to pages of the
|
405
|
+
# response.
|
406
|
+
#
|
407
|
+
def list_as_lazy(custom_headers = nil)
|
408
|
+
response = list_async(custom_headers).value!
|
409
|
+
unless response.nil?
|
410
|
+
page = response.body
|
411
|
+
page.next_method = Proc.new do |next_page_link|
|
412
|
+
list_next_async(next_page_link, custom_headers)
|
413
|
+
end
|
414
|
+
page
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
#
|
419
|
+
# Gets deleted web apps in subscription.
|
420
|
+
#
|
421
|
+
# Gets deleted web apps in subscription.
|
422
|
+
#
|
423
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
424
|
+
# resource belongs.
|
425
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
426
|
+
# will be added to the HTTP request.
|
427
|
+
#
|
428
|
+
# @return [DeletedWebAppCollection] which provide lazy access to pages of the
|
429
|
+
# response.
|
430
|
+
#
|
431
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
|
432
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
433
|
+
unless response.nil?
|
434
|
+
page = response.body
|
435
|
+
page.next_method = Proc.new do |next_page_link|
|
436
|
+
list_by_resource_group_next_async(next_page_link, custom_headers)
|
437
|
+
end
|
438
|
+
page
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
442
|
+
end
|
443
|
+
end
|
@@ -23,11 +23,11 @@ module Azure::ARM::Web
|
|
23
23
|
attr_reader :client
|
24
24
|
|
25
25
|
#
|
26
|
-
#
|
26
|
+
# Check if a domain is available for registration.
|
27
27
|
#
|
28
|
-
#
|
28
|
+
# Check if a domain is available for registration.
|
29
29
|
#
|
30
|
-
# @param identifier [NameIdentifier] Name of the domain
|
30
|
+
# @param identifier [NameIdentifier] Name of the domain.
|
31
31
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
32
|
# will be added to the HTTP request.
|
33
33
|
#
|
@@ -39,11 +39,11 @@ module Azure::ARM::Web
|
|
39
39
|
end
|
40
40
|
|
41
41
|
#
|
42
|
-
#
|
42
|
+
# Check if a domain is available for registration.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# Check if a domain is available for registration.
|
45
45
|
#
|
46
|
-
# @param identifier [NameIdentifier] Name of the domain
|
46
|
+
# @param identifier [NameIdentifier] Name of the domain.
|
47
47
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
48
48
|
# will be added to the HTTP request.
|
49
49
|
#
|
@@ -54,11 +54,11 @@ module Azure::ARM::Web
|
|
54
54
|
end
|
55
55
|
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Check if a domain is available for registration.
|
58
58
|
#
|
59
|
-
#
|
59
|
+
# Check if a domain is available for registration.
|
60
60
|
#
|
61
|
-
# @param identifier [NameIdentifier] Name of the domain
|
61
|
+
# @param identifier [NameIdentifier] Name of the domain.
|
62
62
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
63
63
|
# to the HTTP request.
|
64
64
|
#
|
@@ -67,7 +67,7 @@ module Azure::ARM::Web
|
|
67
67
|
def check_availability_async(identifier, custom_headers = nil)
|
68
68
|
fail ArgumentError, 'identifier is nil' if identifier.nil?
|
69
69
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
70
|
-
api_version = '
|
70
|
+
api_version = '2015-04-01'
|
71
71
|
|
72
72
|
|
73
73
|
request_headers = {}
|
@@ -125,9 +125,9 @@ module Azure::ARM::Web
|
|
125
125
|
end
|
126
126
|
|
127
127
|
#
|
128
|
-
#
|
128
|
+
# Get all domains in a subscription.
|
129
129
|
#
|
130
|
-
#
|
130
|
+
# Get all domains in a subscription.
|
131
131
|
#
|
132
132
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
133
133
|
# will be added to the HTTP request.
|
@@ -140,9 +140,9 @@ module Azure::ARM::Web
|
|
140
140
|
end
|
141
141
|
|
142
142
|
#
|
143
|
-
#
|
143
|
+
# Get all domains in a subscription.
|
144
144
|
#
|
145
|
-
#
|
145
|
+
# Get all domains in a subscription.
|
146
146
|
#
|
147
147
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
148
148
|
# will be added to the HTTP request.
|
@@ -154,9 +154,9 @@ module Azure::ARM::Web
|
|
154
154
|
end
|
155
155
|
|
156
156
|
#
|
157
|
-
#
|
157
|
+
# Get all domains in a subscription.
|
158
158
|
#
|
159
|
-
#
|
159
|
+
# Get all domains in a subscription.
|
160
160
|
#
|
161
161
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
162
162
|
# to the HTTP request.
|
@@ -165,7 +165,7 @@ module Azure::ARM::Web
|
|
165
165
|
#
|
166
166
|
def list_async(custom_headers = nil)
|
167
167
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
168
|
-
api_version = '
|
168
|
+
api_version = '2015-04-01'
|
169
169
|
|
170
170
|
|
171
171
|
request_headers = {}
|
@@ -214,9 +214,9 @@ module Azure::ARM::Web
|
|
214
214
|
end
|
215
215
|
|
216
216
|
#
|
217
|
-
#
|
217
|
+
# Generate a single sign-on request for the domain management portal.
|
218
218
|
#
|
219
|
-
#
|
219
|
+
# Generate a single sign-on request for the domain management portal.
|
220
220
|
#
|
221
221
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
222
222
|
# will be added to the HTTP request.
|
@@ -229,9 +229,9 @@ module Azure::ARM::Web
|
|
229
229
|
end
|
230
230
|
|
231
231
|
#
|
232
|
-
#
|
232
|
+
# Generate a single sign-on request for the domain management portal.
|
233
233
|
#
|
234
|
-
#
|
234
|
+
# Generate a single sign-on request for the domain management portal.
|
235
235
|
#
|
236
236
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
237
237
|
# will be added to the HTTP request.
|
@@ -243,9 +243,9 @@ module Azure::ARM::Web
|
|
243
243
|
end
|
244
244
|
|
245
245
|
#
|
246
|
-
#
|
246
|
+
# Generate a single sign-on request for the domain management portal.
|
247
247
|
#
|
248
|
-
#
|
248
|
+
# Generate a single sign-on request for the domain management portal.
|
249
249
|
#
|
250
250
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
251
251
|
# to the HTTP request.
|
@@ -254,7 +254,7 @@ module Azure::ARM::Web
|
|
254
254
|
#
|
255
255
|
def get_control_center_sso_request_async(custom_headers = nil)
|
256
256
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
257
|
-
api_version = '
|
257
|
+
api_version = '2015-04-01'
|
258
258
|
|
259
259
|
|
260
260
|
request_headers = {}
|
@@ -303,12 +303,12 @@ module Azure::ARM::Web
|
|
303
303
|
end
|
304
304
|
|
305
305
|
#
|
306
|
-
#
|
306
|
+
# Get domain name recommendations based on keywords.
|
307
307
|
#
|
308
|
-
#
|
308
|
+
# Get domain name recommendations based on keywords.
|
309
309
|
#
|
310
|
-
# @param parameters [DomainRecommendationSearchParameters]
|
311
|
-
#
|
310
|
+
# @param parameters [DomainRecommendationSearchParameters] Search parameters
|
311
|
+
# for domain name recommendations.
|
312
312
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
313
313
|
# will be added to the HTTP request.
|
314
314
|
#
|
@@ -320,12 +320,12 @@ module Azure::ARM::Web
|
|
320
320
|
end
|
321
321
|
|
322
322
|
#
|
323
|
-
#
|
323
|
+
# Get domain name recommendations based on keywords.
|
324
324
|
#
|
325
|
-
#
|
325
|
+
# Get domain name recommendations based on keywords.
|
326
326
|
#
|
327
|
-
# @param parameters [DomainRecommendationSearchParameters]
|
328
|
-
#
|
327
|
+
# @param parameters [DomainRecommendationSearchParameters] Search parameters
|
328
|
+
# for domain name recommendations.
|
329
329
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
330
330
|
# will be added to the HTTP request.
|
331
331
|
#
|
@@ -336,12 +336,12 @@ module Azure::ARM::Web
|
|
336
336
|
end
|
337
337
|
|
338
338
|
#
|
339
|
-
#
|
339
|
+
# Get domain name recommendations based on keywords.
|
340
340
|
#
|
341
|
-
#
|
341
|
+
# Get domain name recommendations based on keywords.
|
342
342
|
#
|
343
|
-
# @param parameters [DomainRecommendationSearchParameters]
|
344
|
-
#
|
343
|
+
# @param parameters [DomainRecommendationSearchParameters] Search parameters
|
344
|
+
# for domain name recommendations.
|
345
345
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
346
346
|
# to the HTTP request.
|
347
347
|
#
|
@@ -350,7 +350,7 @@ module Azure::ARM::Web
|
|
350
350
|
def list_recommendations_async(parameters, custom_headers = nil)
|
351
351
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
352
352
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
353
|
-
api_version = '
|
353
|
+
api_version = '2015-04-01'
|
354
354
|
|
355
355
|
|
356
356
|
request_headers = {}
|
@@ -408,54 +408,54 @@ module Azure::ARM::Web
|
|
408
408
|
end
|
409
409
|
|
410
410
|
#
|
411
|
-
#
|
411
|
+
# Get all domains in a resource group.
|
412
412
|
#
|
413
|
-
#
|
413
|
+
# Get all domains in a resource group.
|
414
414
|
#
|
415
|
-
# @param
|
416
|
-
#
|
415
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
416
|
+
# resource belongs.
|
417
417
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
418
418
|
# will be added to the HTTP request.
|
419
419
|
#
|
420
|
-
# @return [
|
420
|
+
# @return [Array<Domain>] operation results.
|
421
421
|
#
|
422
|
-
def
|
423
|
-
|
424
|
-
|
422
|
+
def list_by_resource_group(resource_group_name, custom_headers = nil)
|
423
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
424
|
+
first_page.get_all_items
|
425
425
|
end
|
426
426
|
|
427
427
|
#
|
428
|
-
#
|
428
|
+
# Get all domains in a resource group.
|
429
429
|
#
|
430
|
-
#
|
430
|
+
# Get all domains in a resource group.
|
431
431
|
#
|
432
|
-
# @param
|
433
|
-
#
|
432
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
433
|
+
# resource belongs.
|
434
434
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
435
435
|
# will be added to the HTTP request.
|
436
436
|
#
|
437
437
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
438
438
|
#
|
439
|
-
def
|
440
|
-
|
439
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
|
440
|
+
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
441
441
|
end
|
442
442
|
|
443
443
|
#
|
444
|
-
#
|
444
|
+
# Get all domains in a resource group.
|
445
445
|
#
|
446
|
-
#
|
446
|
+
# Get all domains in a resource group.
|
447
447
|
#
|
448
|
-
# @param
|
449
|
-
#
|
448
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
449
|
+
# resource belongs.
|
450
450
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
451
451
|
# to the HTTP request.
|
452
452
|
#
|
453
453
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
454
454
|
#
|
455
|
-
def
|
456
|
-
fail ArgumentError, '
|
455
|
+
def list_by_resource_group_async(resource_group_name, custom_headers = nil)
|
456
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
457
457
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
458
|
-
api_version = '
|
458
|
+
api_version = '2015-04-01'
|
459
459
|
|
460
460
|
|
461
461
|
request_headers = {}
|
@@ -463,27 +463,18 @@ module Azure::ARM::Web
|
|
463
463
|
# Set Headers
|
464
464
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
465
465
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
466
|
-
|
467
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
468
|
-
|
469
|
-
# Serialize Request
|
470
|
-
request_mapper = DomainRegistrationInput.mapper()
|
471
|
-
request_content = @client.serialize(request_mapper, domain_registration_input, 'domain_registration_input')
|
472
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
473
|
-
|
474
|
-
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/validateDomainRegistrationInformation'
|
466
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains'
|
475
467
|
|
476
468
|
request_url = @base_url || @client.base_url
|
477
469
|
|
478
470
|
options = {
|
479
471
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
480
|
-
path_params: {'subscriptionId' => @client.subscription_id},
|
472
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
481
473
|
query_params: {'api-version' => api_version},
|
482
|
-
body: request_content,
|
483
474
|
headers: request_headers.merge(custom_headers || {}),
|
484
475
|
base_url: request_url
|
485
476
|
}
|
486
|
-
promise = @client.make_request_async(:
|
477
|
+
promise = @client.make_request_async(:get, path_template, options)
|
487
478
|
|
488
479
|
promise = promise.then do |result|
|
489
480
|
http_response = result.response
|
@@ -495,6 +486,16 @@ module Azure::ARM::Web
|
|
495
486
|
end
|
496
487
|
|
497
488
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
489
|
+
# Deserialize Response
|
490
|
+
if status_code == 200
|
491
|
+
begin
|
492
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
493
|
+
result_mapper = DomainCollection.mapper()
|
494
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
495
|
+
rescue Exception => e
|
496
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
497
|
+
end
|
498
|
+
end
|
498
499
|
|
499
500
|
result
|
500
501
|
end
|
@@ -503,51 +504,58 @@ module Azure::ARM::Web
|
|
503
504
|
end
|
504
505
|
|
505
506
|
#
|
506
|
-
#
|
507
|
+
# Get a domain.
|
507
508
|
#
|
508
|
-
#
|
509
|
+
# Get a domain.
|
509
510
|
#
|
510
|
-
# @param resource_group_name [String] Name of the resource group
|
511
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
512
|
+
# resource belongs.
|
513
|
+
# @param domain_name [String] Name of the domain.
|
511
514
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
512
515
|
# will be added to the HTTP request.
|
513
516
|
#
|
514
|
-
# @return [
|
517
|
+
# @return [Domain] operation results.
|
515
518
|
#
|
516
|
-
def
|
517
|
-
|
518
|
-
|
519
|
+
def get(resource_group_name, domain_name, custom_headers = nil)
|
520
|
+
response = get_async(resource_group_name, domain_name, custom_headers).value!
|
521
|
+
response.body unless response.nil?
|
519
522
|
end
|
520
523
|
|
521
524
|
#
|
522
|
-
#
|
525
|
+
# Get a domain.
|
523
526
|
#
|
524
|
-
#
|
527
|
+
# Get a domain.
|
525
528
|
#
|
526
|
-
# @param resource_group_name [String] Name of the resource group
|
529
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
530
|
+
# resource belongs.
|
531
|
+
# @param domain_name [String] Name of the domain.
|
527
532
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
528
533
|
# will be added to the HTTP request.
|
529
534
|
#
|
530
535
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
531
536
|
#
|
532
|
-
def
|
533
|
-
|
537
|
+
def get_with_http_info(resource_group_name, domain_name, custom_headers = nil)
|
538
|
+
get_async(resource_group_name, domain_name, custom_headers).value!
|
534
539
|
end
|
535
540
|
|
536
541
|
#
|
537
|
-
#
|
542
|
+
# Get a domain.
|
538
543
|
#
|
539
|
-
#
|
544
|
+
# Get a domain.
|
540
545
|
#
|
541
|
-
# @param resource_group_name [String] Name of the resource group
|
546
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
547
|
+
# resource belongs.
|
548
|
+
# @param domain_name [String] Name of the domain.
|
542
549
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
543
550
|
# to the HTTP request.
|
544
551
|
#
|
545
552
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
546
553
|
#
|
547
|
-
def
|
554
|
+
def get_async(resource_group_name, domain_name, custom_headers = nil)
|
548
555
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
556
|
+
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
549
557
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
550
|
-
api_version = '
|
558
|
+
api_version = '2015-04-01'
|
551
559
|
|
552
560
|
|
553
561
|
request_headers = {}
|
@@ -555,13 +563,13 @@ module Azure::ARM::Web
|
|
555
563
|
# Set Headers
|
556
564
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
557
565
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
558
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains'
|
566
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}'
|
559
567
|
|
560
568
|
request_url = @base_url || @client.base_url
|
561
569
|
|
562
570
|
options = {
|
563
571
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
564
|
-
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
572
|
+
path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
|
565
573
|
query_params: {'api-version' => api_version},
|
566
574
|
headers: request_headers.merge(custom_headers || {}),
|
567
575
|
base_url: request_url
|
@@ -582,7 +590,7 @@ module Azure::ARM::Web
|
|
582
590
|
if status_code == 200
|
583
591
|
begin
|
584
592
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
585
|
-
result_mapper =
|
593
|
+
result_mapper = Domain.mapper()
|
586
594
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
587
595
|
rescue Exception => e
|
588
596
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -596,55 +604,114 @@ module Azure::ARM::Web
|
|
596
604
|
end
|
597
605
|
|
598
606
|
#
|
599
|
-
#
|
607
|
+
# Creates or updates a domain.
|
600
608
|
#
|
601
|
-
#
|
609
|
+
# Creates or updates a domain.
|
602
610
|
#
|
603
|
-
# @param resource_group_name [String] Name of the resource group
|
604
|
-
#
|
611
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
612
|
+
# resource belongs.
|
613
|
+
# @param domain_name [String] Name of the domain.
|
614
|
+
# @param domain [Domain] Domain registration information.
|
605
615
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
606
616
|
# will be added to the HTTP request.
|
607
617
|
#
|
608
618
|
# @return [Domain] operation results.
|
609
619
|
#
|
610
|
-
def
|
611
|
-
response =
|
620
|
+
def create_or_update(resource_group_name, domain_name, domain, custom_headers = nil)
|
621
|
+
response = create_or_update_async(resource_group_name, domain_name, domain, custom_headers).value!
|
612
622
|
response.body unless response.nil?
|
613
623
|
end
|
614
624
|
|
615
625
|
#
|
616
|
-
#
|
626
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
627
|
+
# resource belongs.
|
628
|
+
# @param domain_name [String] Name of the domain.
|
629
|
+
# @param domain [Domain] Domain registration information.
|
630
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
631
|
+
# will be added to the HTTP request.
|
632
|
+
#
|
633
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
634
|
+
# response.
|
635
|
+
#
|
636
|
+
def create_or_update_async(resource_group_name, domain_name, domain, custom_headers = nil)
|
637
|
+
# Send request
|
638
|
+
promise = begin_create_or_update_async(resource_group_name, domain_name, domain, custom_headers)
|
639
|
+
|
640
|
+
promise = promise.then do |response|
|
641
|
+
# Defining deserialization method.
|
642
|
+
deserialize_method = lambda do |parsed_response|
|
643
|
+
result_mapper = Domain.mapper()
|
644
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
645
|
+
end
|
646
|
+
|
647
|
+
# Waiting for response.
|
648
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
649
|
+
end
|
650
|
+
|
651
|
+
promise
|
652
|
+
end
|
653
|
+
|
654
|
+
#
|
655
|
+
# Delete a domain.
|
617
656
|
#
|
618
|
-
#
|
657
|
+
# Delete a domain.
|
619
658
|
#
|
620
|
-
# @param resource_group_name [String] Name of the resource group
|
621
|
-
#
|
659
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
660
|
+
# resource belongs.
|
661
|
+
# @param domain_name [String] Name of the domain.
|
662
|
+
# @param force_hard_delete_domain [Boolean] Specify <code>true</code> to delete
|
663
|
+
# the domain immediately. The default is <code>false</code> which deletes the
|
664
|
+
# domain after 24 hours.
|
665
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
666
|
+
# will be added to the HTTP request.
|
667
|
+
#
|
668
|
+
#
|
669
|
+
def delete(resource_group_name, domain_name, force_hard_delete_domain = nil, custom_headers = nil)
|
670
|
+
response = delete_async(resource_group_name, domain_name, force_hard_delete_domain, custom_headers).value!
|
671
|
+
nil
|
672
|
+
end
|
673
|
+
|
674
|
+
#
|
675
|
+
# Delete a domain.
|
676
|
+
#
|
677
|
+
# Delete a domain.
|
678
|
+
#
|
679
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
680
|
+
# resource belongs.
|
681
|
+
# @param domain_name [String] Name of the domain.
|
682
|
+
# @param force_hard_delete_domain [Boolean] Specify <code>true</code> to delete
|
683
|
+
# the domain immediately. The default is <code>false</code> which deletes the
|
684
|
+
# domain after 24 hours.
|
622
685
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
623
686
|
# will be added to the HTTP request.
|
624
687
|
#
|
625
688
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
626
689
|
#
|
627
|
-
def
|
628
|
-
|
690
|
+
def delete_with_http_info(resource_group_name, domain_name, force_hard_delete_domain = nil, custom_headers = nil)
|
691
|
+
delete_async(resource_group_name, domain_name, force_hard_delete_domain, custom_headers).value!
|
629
692
|
end
|
630
693
|
|
631
694
|
#
|
632
|
-
#
|
695
|
+
# Delete a domain.
|
633
696
|
#
|
634
|
-
#
|
697
|
+
# Delete a domain.
|
635
698
|
#
|
636
|
-
# @param resource_group_name [String] Name of the resource group
|
637
|
-
#
|
699
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
700
|
+
# resource belongs.
|
701
|
+
# @param domain_name [String] Name of the domain.
|
702
|
+
# @param force_hard_delete_domain [Boolean] Specify <code>true</code> to delete
|
703
|
+
# the domain immediately. The default is <code>false</code> which deletes the
|
704
|
+
# domain after 24 hours.
|
638
705
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
639
706
|
# to the HTTP request.
|
640
707
|
#
|
641
708
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
642
709
|
#
|
643
|
-
def
|
710
|
+
def delete_async(resource_group_name, domain_name, force_hard_delete_domain = nil, custom_headers = nil)
|
644
711
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
645
712
|
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
646
713
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
647
|
-
api_version = '
|
714
|
+
api_version = '2015-04-01'
|
648
715
|
|
649
716
|
|
650
717
|
request_headers = {}
|
@@ -656,6 +723,96 @@ module Azure::ARM::Web
|
|
656
723
|
|
657
724
|
request_url = @base_url || @client.base_url
|
658
725
|
|
726
|
+
options = {
|
727
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
728
|
+
path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
|
729
|
+
query_params: {'forceHardDeleteDomain' => force_hard_delete_domain,'api-version' => api_version},
|
730
|
+
headers: request_headers.merge(custom_headers || {}),
|
731
|
+
base_url: request_url
|
732
|
+
}
|
733
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
734
|
+
|
735
|
+
promise = promise.then do |result|
|
736
|
+
http_response = result.response
|
737
|
+
status_code = http_response.status
|
738
|
+
response_content = http_response.body
|
739
|
+
unless status_code == 200 || status_code == 204
|
740
|
+
error_model = JSON.load(response_content)
|
741
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
742
|
+
end
|
743
|
+
|
744
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
745
|
+
|
746
|
+
result
|
747
|
+
end
|
748
|
+
|
749
|
+
promise.execute
|
750
|
+
end
|
751
|
+
|
752
|
+
#
|
753
|
+
# Lists domain ownership identifiers.
|
754
|
+
#
|
755
|
+
# Lists domain ownership identifiers.
|
756
|
+
#
|
757
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
758
|
+
# resource belongs.
|
759
|
+
# @param domain_name [String] Name of domain.
|
760
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
761
|
+
# will be added to the HTTP request.
|
762
|
+
#
|
763
|
+
# @return [Array<DomainOwnershipIdentifier>] operation results.
|
764
|
+
#
|
765
|
+
def list_ownership_identifiers(resource_group_name, domain_name, custom_headers = nil)
|
766
|
+
first_page = list_ownership_identifiers_as_lazy(resource_group_name, domain_name, custom_headers)
|
767
|
+
first_page.get_all_items
|
768
|
+
end
|
769
|
+
|
770
|
+
#
|
771
|
+
# Lists domain ownership identifiers.
|
772
|
+
#
|
773
|
+
# Lists domain ownership identifiers.
|
774
|
+
#
|
775
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
776
|
+
# resource belongs.
|
777
|
+
# @param domain_name [String] Name of domain.
|
778
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
779
|
+
# will be added to the HTTP request.
|
780
|
+
#
|
781
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
782
|
+
#
|
783
|
+
def list_ownership_identifiers_with_http_info(resource_group_name, domain_name, custom_headers = nil)
|
784
|
+
list_ownership_identifiers_async(resource_group_name, domain_name, custom_headers).value!
|
785
|
+
end
|
786
|
+
|
787
|
+
#
|
788
|
+
# Lists domain ownership identifiers.
|
789
|
+
#
|
790
|
+
# Lists domain ownership identifiers.
|
791
|
+
#
|
792
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
793
|
+
# resource belongs.
|
794
|
+
# @param domain_name [String] Name of domain.
|
795
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
796
|
+
# to the HTTP request.
|
797
|
+
#
|
798
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
799
|
+
#
|
800
|
+
def list_ownership_identifiers_async(resource_group_name, domain_name, custom_headers = nil)
|
801
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
802
|
+
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
803
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
804
|
+
api_version = '2015-04-01'
|
805
|
+
|
806
|
+
|
807
|
+
request_headers = {}
|
808
|
+
|
809
|
+
# Set Headers
|
810
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
811
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
812
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers'
|
813
|
+
|
814
|
+
request_url = @base_url || @client.base_url
|
815
|
+
|
659
816
|
options = {
|
660
817
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
661
818
|
path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'subscriptionId' => @client.subscription_id},
|
@@ -679,7 +836,7 @@ module Azure::ARM::Web
|
|
679
836
|
if status_code == 200
|
680
837
|
begin
|
681
838
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
682
|
-
result_mapper =
|
839
|
+
result_mapper = DomainOwnershipIdentifierCollection.mapper()
|
683
840
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
684
841
|
rescue Exception => e
|
685
842
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -693,107 +850,179 @@ module Azure::ARM::Web
|
|
693
850
|
end
|
694
851
|
|
695
852
|
#
|
696
|
-
#
|
853
|
+
# Get ownership identifier for domain
|
697
854
|
#
|
698
|
-
#
|
855
|
+
# Get ownership identifier for domain
|
699
856
|
#
|
700
|
-
# @param resource_group_name [String]
|
701
|
-
#
|
702
|
-
# @param
|
857
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
858
|
+
# resource belongs.
|
859
|
+
# @param domain_name [String] Name of domain.
|
860
|
+
# @param name [String] Name of identifier.
|
703
861
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
704
862
|
# will be added to the HTTP request.
|
705
863
|
#
|
706
|
-
# @return [
|
864
|
+
# @return [DomainOwnershipIdentifier] operation results.
|
707
865
|
#
|
708
|
-
def
|
709
|
-
response =
|
866
|
+
def get_ownership_identifier(resource_group_name, domain_name, name, custom_headers = nil)
|
867
|
+
response = get_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers).value!
|
710
868
|
response.body unless response.nil?
|
711
869
|
end
|
712
870
|
|
713
871
|
#
|
714
|
-
#
|
715
|
-
#
|
716
|
-
#
|
872
|
+
# Get ownership identifier for domain
|
873
|
+
#
|
874
|
+
# Get ownership identifier for domain
|
875
|
+
#
|
876
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
877
|
+
# resource belongs.
|
878
|
+
# @param domain_name [String] Name of domain.
|
879
|
+
# @param name [String] Name of identifier.
|
717
880
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
718
881
|
# will be added to the HTTP request.
|
719
882
|
#
|
720
|
-
# @return [
|
721
|
-
# response.
|
883
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
722
884
|
#
|
723
|
-
def
|
724
|
-
|
725
|
-
|
885
|
+
def get_ownership_identifier_with_http_info(resource_group_name, domain_name, name, custom_headers = nil)
|
886
|
+
get_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers).value!
|
887
|
+
end
|
726
888
|
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
889
|
+
#
|
890
|
+
# Get ownership identifier for domain
|
891
|
+
#
|
892
|
+
# Get ownership identifier for domain
|
893
|
+
#
|
894
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
895
|
+
# resource belongs.
|
896
|
+
# @param domain_name [String] Name of domain.
|
897
|
+
# @param name [String] Name of identifier.
|
898
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
899
|
+
# to the HTTP request.
|
900
|
+
#
|
901
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
902
|
+
#
|
903
|
+
def get_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers = nil)
|
904
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
905
|
+
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
906
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
907
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
908
|
+
api_version = '2015-04-01'
|
909
|
+
|
910
|
+
|
911
|
+
request_headers = {}
|
912
|
+
|
913
|
+
# Set Headers
|
914
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
915
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
916
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}'
|
917
|
+
|
918
|
+
request_url = @base_url || @client.base_url
|
919
|
+
|
920
|
+
options = {
|
921
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
922
|
+
path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
923
|
+
query_params: {'api-version' => api_version},
|
924
|
+
headers: request_headers.merge(custom_headers || {}),
|
925
|
+
base_url: request_url
|
926
|
+
}
|
927
|
+
promise = @client.make_request_async(:get, path_template, options)
|
928
|
+
|
929
|
+
promise = promise.then do |result|
|
930
|
+
http_response = result.response
|
931
|
+
status_code = http_response.status
|
932
|
+
response_content = http_response.body
|
933
|
+
unless status_code == 200
|
934
|
+
error_model = JSON.load(response_content)
|
935
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
732
936
|
end
|
733
937
|
|
734
|
-
|
735
|
-
|
938
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
939
|
+
# Deserialize Response
|
940
|
+
if status_code == 200
|
941
|
+
begin
|
942
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
943
|
+
result_mapper = DomainOwnershipIdentifier.mapper()
|
944
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
945
|
+
rescue Exception => e
|
946
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
950
|
+
result
|
736
951
|
end
|
737
952
|
|
738
|
-
promise
|
953
|
+
promise.execute
|
739
954
|
end
|
740
955
|
|
741
956
|
#
|
742
|
-
#
|
957
|
+
# Creates an ownership identifier for a domain or updates identifier details
|
958
|
+
# for an existing identifer
|
743
959
|
#
|
744
|
-
#
|
960
|
+
# Creates an ownership identifier for a domain or updates identifier details
|
961
|
+
# for an existing identifer
|
745
962
|
#
|
746
|
-
# @param resource_group_name [String] Name of the resource group
|
747
|
-
#
|
748
|
-
# @param
|
749
|
-
#
|
963
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
964
|
+
# resource belongs.
|
965
|
+
# @param domain_name [String] Name of domain.
|
966
|
+
# @param name [String] Name of identifier.
|
967
|
+
# @param domain_ownership_identifier [DomainOwnershipIdentifier] A JSON
|
968
|
+
# representation of the domain ownership properties.
|
750
969
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
751
970
|
# will be added to the HTTP request.
|
752
971
|
#
|
753
|
-
# @return [
|
972
|
+
# @return [DomainOwnershipIdentifier] operation results.
|
754
973
|
#
|
755
|
-
def
|
756
|
-
response =
|
974
|
+
def create_or_update_ownership_identifier(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers = nil)
|
975
|
+
response = create_or_update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers).value!
|
757
976
|
response.body unless response.nil?
|
758
977
|
end
|
759
978
|
|
760
979
|
#
|
761
|
-
#
|
980
|
+
# Creates an ownership identifier for a domain or updates identifier details
|
981
|
+
# for an existing identifer
|
762
982
|
#
|
763
|
-
#
|
983
|
+
# Creates an ownership identifier for a domain or updates identifier details
|
984
|
+
# for an existing identifer
|
764
985
|
#
|
765
|
-
# @param resource_group_name [String] Name of the resource group
|
766
|
-
#
|
767
|
-
# @param
|
768
|
-
#
|
986
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
987
|
+
# resource belongs.
|
988
|
+
# @param domain_name [String] Name of domain.
|
989
|
+
# @param name [String] Name of identifier.
|
990
|
+
# @param domain_ownership_identifier [DomainOwnershipIdentifier] A JSON
|
991
|
+
# representation of the domain ownership properties.
|
769
992
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
770
993
|
# will be added to the HTTP request.
|
771
994
|
#
|
772
995
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
773
996
|
#
|
774
|
-
def
|
775
|
-
|
997
|
+
def create_or_update_ownership_identifier_with_http_info(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers = nil)
|
998
|
+
create_or_update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers).value!
|
776
999
|
end
|
777
1000
|
|
778
1001
|
#
|
779
|
-
#
|
1002
|
+
# Creates an ownership identifier for a domain or updates identifier details
|
1003
|
+
# for an existing identifer
|
780
1004
|
#
|
781
|
-
#
|
1005
|
+
# Creates an ownership identifier for a domain or updates identifier details
|
1006
|
+
# for an existing identifer
|
782
1007
|
#
|
783
|
-
# @param resource_group_name [String] Name of the resource group
|
784
|
-
#
|
785
|
-
# @param
|
786
|
-
#
|
1008
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1009
|
+
# resource belongs.
|
1010
|
+
# @param domain_name [String] Name of domain.
|
1011
|
+
# @param name [String] Name of identifier.
|
1012
|
+
# @param domain_ownership_identifier [DomainOwnershipIdentifier] A JSON
|
1013
|
+
# representation of the domain ownership properties.
|
787
1014
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
788
1015
|
# to the HTTP request.
|
789
1016
|
#
|
790
1017
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
791
1018
|
#
|
792
|
-
def
|
1019
|
+
def create_or_update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers = nil)
|
793
1020
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
794
1021
|
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
1022
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
1023
|
+
fail ArgumentError, 'domain_ownership_identifier is nil' if domain_ownership_identifier.nil?
|
795
1024
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
796
|
-
api_version = '
|
1025
|
+
api_version = '2015-04-01'
|
797
1026
|
|
798
1027
|
|
799
1028
|
request_headers = {}
|
@@ -801,14 +1030,126 @@ module Azure::ARM::Web
|
|
801
1030
|
# Set Headers
|
802
1031
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
803
1032
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
804
|
-
|
1033
|
+
|
1034
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1035
|
+
|
1036
|
+
# Serialize Request
|
1037
|
+
request_mapper = DomainOwnershipIdentifier.mapper()
|
1038
|
+
request_content = @client.serialize(request_mapper, domain_ownership_identifier, 'domain_ownership_identifier')
|
1039
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1040
|
+
|
1041
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}'
|
805
1042
|
|
806
1043
|
request_url = @base_url || @client.base_url
|
807
1044
|
|
808
1045
|
options = {
|
809
1046
|
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: {'
|
1047
|
+
path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
1048
|
+
query_params: {'api-version' => api_version},
|
1049
|
+
body: request_content,
|
1050
|
+
headers: request_headers.merge(custom_headers || {}),
|
1051
|
+
base_url: request_url
|
1052
|
+
}
|
1053
|
+
promise = @client.make_request_async(:put, path_template, options)
|
1054
|
+
|
1055
|
+
promise = promise.then do |result|
|
1056
|
+
http_response = result.response
|
1057
|
+
status_code = http_response.status
|
1058
|
+
response_content = http_response.body
|
1059
|
+
unless status_code == 200
|
1060
|
+
error_model = JSON.load(response_content)
|
1061
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1065
|
+
# Deserialize Response
|
1066
|
+
if status_code == 200
|
1067
|
+
begin
|
1068
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1069
|
+
result_mapper = DomainOwnershipIdentifier.mapper()
|
1070
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1071
|
+
rescue Exception => e
|
1072
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1073
|
+
end
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
result
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
promise.execute
|
1080
|
+
end
|
1081
|
+
|
1082
|
+
#
|
1083
|
+
# Delete ownership identifier for domain
|
1084
|
+
#
|
1085
|
+
# Delete ownership identifier for domain
|
1086
|
+
#
|
1087
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1088
|
+
# resource belongs.
|
1089
|
+
# @param domain_name [String] Name of domain.
|
1090
|
+
# @param name [String] Name of identifier.
|
1091
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1092
|
+
# will be added to the HTTP request.
|
1093
|
+
#
|
1094
|
+
#
|
1095
|
+
def delete_ownership_identifier(resource_group_name, domain_name, name, custom_headers = nil)
|
1096
|
+
response = delete_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers).value!
|
1097
|
+
nil
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
#
|
1101
|
+
# Delete ownership identifier for domain
|
1102
|
+
#
|
1103
|
+
# Delete ownership identifier for domain
|
1104
|
+
#
|
1105
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1106
|
+
# resource belongs.
|
1107
|
+
# @param domain_name [String] Name of domain.
|
1108
|
+
# @param name [String] Name of identifier.
|
1109
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1110
|
+
# will be added to the HTTP request.
|
1111
|
+
#
|
1112
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1113
|
+
#
|
1114
|
+
def delete_ownership_identifier_with_http_info(resource_group_name, domain_name, name, custom_headers = nil)
|
1115
|
+
delete_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers).value!
|
1116
|
+
end
|
1117
|
+
|
1118
|
+
#
|
1119
|
+
# Delete ownership identifier for domain
|
1120
|
+
#
|
1121
|
+
# Delete ownership identifier for domain
|
1122
|
+
#
|
1123
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1124
|
+
# resource belongs.
|
1125
|
+
# @param domain_name [String] Name of domain.
|
1126
|
+
# @param name [String] Name of identifier.
|
1127
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1128
|
+
# to the HTTP request.
|
1129
|
+
#
|
1130
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1131
|
+
#
|
1132
|
+
def delete_ownership_identifier_async(resource_group_name, domain_name, name, custom_headers = nil)
|
1133
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1134
|
+
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
1135
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
1136
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1137
|
+
api_version = '2015-04-01'
|
1138
|
+
|
1139
|
+
|
1140
|
+
request_headers = {}
|
1141
|
+
|
1142
|
+
# Set Headers
|
1143
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1144
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1145
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}'
|
1146
|
+
|
1147
|
+
request_url = @base_url || @client.base_url
|
1148
|
+
|
1149
|
+
options = {
|
1150
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1151
|
+
path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
1152
|
+
query_params: {'api-version' => api_version},
|
812
1153
|
headers: request_headers.merge(custom_headers || {}),
|
813
1154
|
base_url: request_url
|
814
1155
|
}
|
@@ -818,7 +1159,7 @@ module Azure::ARM::Web
|
|
818
1159
|
http_response = result.response
|
819
1160
|
status_code = http_response.status
|
820
1161
|
response_content = http_response.body
|
821
|
-
unless status_code == 204
|
1162
|
+
unless status_code == 200 || status_code == 204
|
822
1163
|
error_model = JSON.load(response_content)
|
823
1164
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
824
1165
|
end
|
@@ -832,59 +1173,75 @@ module Azure::ARM::Web
|
|
832
1173
|
end
|
833
1174
|
|
834
1175
|
#
|
835
|
-
#
|
1176
|
+
# Creates an ownership identifier for a domain or updates identifier details
|
1177
|
+
# for an existing identifer
|
836
1178
|
#
|
837
|
-
#
|
1179
|
+
# Creates an ownership identifier for a domain or updates identifier details
|
1180
|
+
# for an existing identifer
|
838
1181
|
#
|
839
|
-
# @param resource_group_name [String] Name of the resource group
|
840
|
-
#
|
841
|
-
# @param
|
1182
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1183
|
+
# resource belongs.
|
1184
|
+
# @param domain_name [String] Name of domain.
|
1185
|
+
# @param name [String] Name of identifier.
|
1186
|
+
# @param domain_ownership_identifier [DomainOwnershipIdentifier] A JSON
|
1187
|
+
# representation of the domain ownership properties.
|
842
1188
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
843
1189
|
# will be added to the HTTP request.
|
844
1190
|
#
|
845
|
-
# @return [
|
1191
|
+
# @return [DomainOwnershipIdentifier] operation results.
|
846
1192
|
#
|
847
|
-
def
|
848
|
-
response =
|
1193
|
+
def update_ownership_identifier(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers = nil)
|
1194
|
+
response = update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers).value!
|
849
1195
|
response.body unless response.nil?
|
850
1196
|
end
|
851
1197
|
|
852
1198
|
#
|
853
|
-
#
|
1199
|
+
# Creates an ownership identifier for a domain or updates identifier details
|
1200
|
+
# for an existing identifer
|
854
1201
|
#
|
855
|
-
#
|
1202
|
+
# Creates an ownership identifier for a domain or updates identifier details
|
1203
|
+
# for an existing identifer
|
856
1204
|
#
|
857
|
-
# @param resource_group_name [String] Name of the resource group
|
858
|
-
#
|
859
|
-
# @param
|
1205
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1206
|
+
# resource belongs.
|
1207
|
+
# @param domain_name [String] Name of domain.
|
1208
|
+
# @param name [String] Name of identifier.
|
1209
|
+
# @param domain_ownership_identifier [DomainOwnershipIdentifier] A JSON
|
1210
|
+
# representation of the domain ownership properties.
|
860
1211
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
861
1212
|
# will be added to the HTTP request.
|
862
1213
|
#
|
863
1214
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
864
1215
|
#
|
865
|
-
def
|
866
|
-
|
1216
|
+
def update_ownership_identifier_with_http_info(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers = nil)
|
1217
|
+
update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers).value!
|
867
1218
|
end
|
868
1219
|
|
869
1220
|
#
|
870
|
-
#
|
1221
|
+
# Creates an ownership identifier for a domain or updates identifier details
|
1222
|
+
# for an existing identifer
|
871
1223
|
#
|
872
|
-
#
|
1224
|
+
# Creates an ownership identifier for a domain or updates identifier details
|
1225
|
+
# for an existing identifer
|
873
1226
|
#
|
874
|
-
# @param resource_group_name [String] Name of the resource group
|
875
|
-
#
|
876
|
-
# @param
|
1227
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1228
|
+
# resource belongs.
|
1229
|
+
# @param domain_name [String] Name of domain.
|
1230
|
+
# @param name [String] Name of identifier.
|
1231
|
+
# @param domain_ownership_identifier [DomainOwnershipIdentifier] A JSON
|
1232
|
+
# representation of the domain ownership properties.
|
877
1233
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
878
1234
|
# to the HTTP request.
|
879
1235
|
#
|
880
1236
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
881
1237
|
#
|
882
|
-
def
|
1238
|
+
def update_ownership_identifier_async(resource_group_name, domain_name, name, domain_ownership_identifier, custom_headers = nil)
|
883
1239
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
884
1240
|
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
885
|
-
fail ArgumentError, '
|
1241
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
1242
|
+
fail ArgumentError, 'domain_ownership_identifier is nil' if domain_ownership_identifier.nil?
|
886
1243
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
887
|
-
api_version = '
|
1244
|
+
api_version = '2015-04-01'
|
888
1245
|
|
889
1246
|
|
890
1247
|
request_headers = {}
|
@@ -892,44 +1249,43 @@ module Azure::ARM::Web
|
|
892
1249
|
# Set Headers
|
893
1250
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
894
1251
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
895
|
-
|
1252
|
+
|
1253
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1254
|
+
|
1255
|
+
# Serialize Request
|
1256
|
+
request_mapper = DomainOwnershipIdentifier.mapper()
|
1257
|
+
request_content = @client.serialize(request_mapper, domain_ownership_identifier, 'domain_ownership_identifier')
|
1258
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1259
|
+
|
1260
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}'
|
896
1261
|
|
897
1262
|
request_url = @base_url || @client.base_url
|
898
1263
|
|
899
1264
|
options = {
|
900
1265
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
901
|
-
path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'
|
1266
|
+
path_params: {'resourceGroupName' => resource_group_name,'domainName' => domain_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
902
1267
|
query_params: {'api-version' => api_version},
|
1268
|
+
body: request_content,
|
903
1269
|
headers: request_headers.merge(custom_headers || {}),
|
904
1270
|
base_url: request_url
|
905
1271
|
}
|
906
|
-
promise = @client.make_request_async(:
|
1272
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
907
1273
|
|
908
1274
|
promise = promise.then do |result|
|
909
1275
|
http_response = result.response
|
910
1276
|
status_code = http_response.status
|
911
1277
|
response_content = http_response.body
|
912
|
-
unless status_code ==
|
1278
|
+
unless status_code == 200
|
913
1279
|
error_model = JSON.load(response_content)
|
914
1280
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
915
1281
|
end
|
916
1282
|
|
917
1283
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
918
1284
|
# 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
1285
|
if status_code == 200
|
930
1286
|
begin
|
931
1287
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
932
|
-
result_mapper =
|
1288
|
+
result_mapper = DomainOwnershipIdentifier.mapper()
|
933
1289
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
934
1290
|
rescue Exception => e
|
935
1291
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -943,13 +1299,14 @@ module Azure::ARM::Web
|
|
943
1299
|
end
|
944
1300
|
|
945
1301
|
#
|
946
|
-
# Creates a domain
|
1302
|
+
# Creates or updates a domain.
|
947
1303
|
#
|
948
|
-
# Creates a domain
|
1304
|
+
# Creates or updates a domain.
|
949
1305
|
#
|
950
|
-
# @param resource_group_name [String]
|
951
|
-
#
|
952
|
-
# @param
|
1306
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1307
|
+
# resource belongs.
|
1308
|
+
# @param domain_name [String] Name of the domain.
|
1309
|
+
# @param domain [Domain] Domain registration information.
|
953
1310
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
954
1311
|
# will be added to the HTTP request.
|
955
1312
|
#
|
@@ -961,13 +1318,14 @@ module Azure::ARM::Web
|
|
961
1318
|
end
|
962
1319
|
|
963
1320
|
#
|
964
|
-
# Creates a domain
|
1321
|
+
# Creates or updates a domain.
|
965
1322
|
#
|
966
|
-
# Creates a domain
|
1323
|
+
# Creates or updates a domain.
|
967
1324
|
#
|
968
|
-
# @param resource_group_name [String]
|
969
|
-
#
|
970
|
-
# @param
|
1325
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1326
|
+
# resource belongs.
|
1327
|
+
# @param domain_name [String] Name of the domain.
|
1328
|
+
# @param domain [Domain] Domain registration information.
|
971
1329
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
972
1330
|
# will be added to the HTTP request.
|
973
1331
|
#
|
@@ -978,13 +1336,14 @@ module Azure::ARM::Web
|
|
978
1336
|
end
|
979
1337
|
|
980
1338
|
#
|
981
|
-
# Creates a domain
|
1339
|
+
# Creates or updates a domain.
|
982
1340
|
#
|
983
|
-
# Creates a domain
|
1341
|
+
# Creates or updates a domain.
|
984
1342
|
#
|
985
|
-
# @param resource_group_name [String]
|
986
|
-
#
|
987
|
-
# @param
|
1343
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1344
|
+
# resource belongs.
|
1345
|
+
# @param domain_name [String] Name of the domain.
|
1346
|
+
# @param domain [Domain] Domain registration information.
|
988
1347
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
989
1348
|
# to the HTTP request.
|
990
1349
|
#
|
@@ -995,7 +1354,7 @@ module Azure::ARM::Web
|
|
995
1354
|
fail ArgumentError, 'domain_name is nil' if domain_name.nil?
|
996
1355
|
fail ArgumentError, 'domain is nil' if domain.nil?
|
997
1356
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
998
|
-
api_version = '
|
1357
|
+
api_version = '2015-04-01'
|
999
1358
|
|
1000
1359
|
|
1001
1360
|
request_headers = {}
|
@@ -1063,9 +1422,9 @@ module Azure::ARM::Web
|
|
1063
1422
|
end
|
1064
1423
|
|
1065
1424
|
#
|
1066
|
-
#
|
1425
|
+
# Get all domains in a subscription.
|
1067
1426
|
#
|
1068
|
-
#
|
1427
|
+
# Get all domains in a subscription.
|
1069
1428
|
#
|
1070
1429
|
# @param next_page_link [String] The NextLink from the previous successful call
|
1071
1430
|
# to List operation.
|
@@ -1080,9 +1439,9 @@ module Azure::ARM::Web
|
|
1080
1439
|
end
|
1081
1440
|
|
1082
1441
|
#
|
1083
|
-
#
|
1442
|
+
# Get all domains in a subscription.
|
1084
1443
|
#
|
1085
|
-
#
|
1444
|
+
# Get all domains in a subscription.
|
1086
1445
|
#
|
1087
1446
|
# @param next_page_link [String] The NextLink from the previous successful call
|
1088
1447
|
# to List operation.
|
@@ -1096,9 +1455,9 @@ module Azure::ARM::Web
|
|
1096
1455
|
end
|
1097
1456
|
|
1098
1457
|
#
|
1099
|
-
#
|
1458
|
+
# Get all domains in a subscription.
|
1100
1459
|
#
|
1101
|
-
#
|
1460
|
+
# Get all domains in a subscription.
|
1102
1461
|
#
|
1103
1462
|
# @param next_page_link [String] The NextLink from the previous successful call
|
1104
1463
|
# to List operation.
|
@@ -1156,9 +1515,9 @@ module Azure::ARM::Web
|
|
1156
1515
|
end
|
1157
1516
|
|
1158
1517
|
#
|
1159
|
-
#
|
1518
|
+
# Get domain name recommendations based on keywords.
|
1160
1519
|
#
|
1161
|
-
#
|
1520
|
+
# Get domain name recommendations based on keywords.
|
1162
1521
|
#
|
1163
1522
|
# @param next_page_link [String] The NextLink from the previous successful call
|
1164
1523
|
# to List operation.
|
@@ -1173,9 +1532,9 @@ module Azure::ARM::Web
|
|
1173
1532
|
end
|
1174
1533
|
|
1175
1534
|
#
|
1176
|
-
#
|
1535
|
+
# Get domain name recommendations based on keywords.
|
1177
1536
|
#
|
1178
|
-
#
|
1537
|
+
# Get domain name recommendations based on keywords.
|
1179
1538
|
#
|
1180
1539
|
# @param next_page_link [String] The NextLink from the previous successful call
|
1181
1540
|
# to List operation.
|
@@ -1189,9 +1548,9 @@ module Azure::ARM::Web
|
|
1189
1548
|
end
|
1190
1549
|
|
1191
1550
|
#
|
1192
|
-
#
|
1551
|
+
# Get domain name recommendations based on keywords.
|
1193
1552
|
#
|
1194
|
-
#
|
1553
|
+
# Get domain name recommendations based on keywords.
|
1195
1554
|
#
|
1196
1555
|
# @param next_page_link [String] The NextLink from the previous successful call
|
1197
1556
|
# to List operation.
|
@@ -1249,9 +1608,9 @@ module Azure::ARM::Web
|
|
1249
1608
|
end
|
1250
1609
|
|
1251
1610
|
#
|
1252
|
-
#
|
1611
|
+
# Get all domains in a resource group.
|
1253
1612
|
#
|
1254
|
-
#
|
1613
|
+
# Get all domains in a resource group.
|
1255
1614
|
#
|
1256
1615
|
# @param next_page_link [String] The NextLink from the previous successful call
|
1257
1616
|
# to List operation.
|
@@ -1266,9 +1625,9 @@ module Azure::ARM::Web
|
|
1266
1625
|
end
|
1267
1626
|
|
1268
1627
|
#
|
1269
|
-
#
|
1628
|
+
# Get all domains in a resource group.
|
1270
1629
|
#
|
1271
|
-
#
|
1630
|
+
# Get all domains in a resource group.
|
1272
1631
|
#
|
1273
1632
|
# @param next_page_link [String] The NextLink from the previous successful call
|
1274
1633
|
# to List operation.
|
@@ -1282,9 +1641,9 @@ module Azure::ARM::Web
|
|
1282
1641
|
end
|
1283
1642
|
|
1284
1643
|
#
|
1285
|
-
#
|
1644
|
+
# Get all domains in a resource group.
|
1286
1645
|
#
|
1287
|
-
#
|
1646
|
+
# Get all domains in a resource group.
|
1288
1647
|
#
|
1289
1648
|
# @param next_page_link [String] The NextLink from the previous successful call
|
1290
1649
|
# to List operation.
|
@@ -1342,9 +1701,102 @@ module Azure::ARM::Web
|
|
1342
1701
|
end
|
1343
1702
|
|
1344
1703
|
#
|
1345
|
-
# Lists
|
1704
|
+
# Lists domain ownership identifiers.
|
1705
|
+
#
|
1706
|
+
# Lists domain ownership identifiers.
|
1707
|
+
#
|
1708
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1709
|
+
# to List operation.
|
1710
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1711
|
+
# will be added to the HTTP request.
|
1712
|
+
#
|
1713
|
+
# @return [DomainOwnershipIdentifierCollection] operation results.
|
1714
|
+
#
|
1715
|
+
def list_ownership_identifiers_next(next_page_link, custom_headers = nil)
|
1716
|
+
response = list_ownership_identifiers_next_async(next_page_link, custom_headers).value!
|
1717
|
+
response.body unless response.nil?
|
1718
|
+
end
|
1719
|
+
|
1720
|
+
#
|
1721
|
+
# Lists domain ownership identifiers.
|
1722
|
+
#
|
1723
|
+
# Lists domain ownership identifiers.
|
1724
|
+
#
|
1725
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1726
|
+
# to List operation.
|
1727
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1728
|
+
# will be added to the HTTP request.
|
1729
|
+
#
|
1730
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1731
|
+
#
|
1732
|
+
def list_ownership_identifiers_next_with_http_info(next_page_link, custom_headers = nil)
|
1733
|
+
list_ownership_identifiers_next_async(next_page_link, custom_headers).value!
|
1734
|
+
end
|
1735
|
+
|
1736
|
+
#
|
1737
|
+
# Lists domain ownership identifiers.
|
1738
|
+
#
|
1739
|
+
# Lists domain ownership identifiers.
|
1740
|
+
#
|
1741
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1742
|
+
# to List operation.
|
1743
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1744
|
+
# to the HTTP request.
|
1745
|
+
#
|
1746
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1747
|
+
#
|
1748
|
+
def list_ownership_identifiers_next_async(next_page_link, custom_headers = nil)
|
1749
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1750
|
+
|
1751
|
+
|
1752
|
+
request_headers = {}
|
1753
|
+
|
1754
|
+
# Set Headers
|
1755
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1756
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1757
|
+
path_template = '{nextLink}'
|
1758
|
+
|
1759
|
+
request_url = @base_url || @client.base_url
|
1760
|
+
|
1761
|
+
options = {
|
1762
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1763
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1764
|
+
headers: request_headers.merge(custom_headers || {}),
|
1765
|
+
base_url: request_url
|
1766
|
+
}
|
1767
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1768
|
+
|
1769
|
+
promise = promise.then do |result|
|
1770
|
+
http_response = result.response
|
1771
|
+
status_code = http_response.status
|
1772
|
+
response_content = http_response.body
|
1773
|
+
unless status_code == 200
|
1774
|
+
error_model = JSON.load(response_content)
|
1775
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1776
|
+
end
|
1777
|
+
|
1778
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1779
|
+
# Deserialize Response
|
1780
|
+
if status_code == 200
|
1781
|
+
begin
|
1782
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1783
|
+
result_mapper = DomainOwnershipIdentifierCollection.mapper()
|
1784
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1785
|
+
rescue Exception => e
|
1786
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1787
|
+
end
|
1788
|
+
end
|
1789
|
+
|
1790
|
+
result
|
1791
|
+
end
|
1792
|
+
|
1793
|
+
promise.execute
|
1794
|
+
end
|
1795
|
+
|
1796
|
+
#
|
1797
|
+
# Get all domains in a subscription.
|
1346
1798
|
#
|
1347
|
-
#
|
1799
|
+
# Get all domains in a subscription.
|
1348
1800
|
#
|
1349
1801
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1350
1802
|
# will be added to the HTTP request.
|
@@ -1364,12 +1816,12 @@ module Azure::ARM::Web
|
|
1364
1816
|
end
|
1365
1817
|
|
1366
1818
|
#
|
1367
|
-
#
|
1819
|
+
# Get domain name recommendations based on keywords.
|
1368
1820
|
#
|
1369
|
-
#
|
1821
|
+
# Get domain name recommendations based on keywords.
|
1370
1822
|
#
|
1371
|
-
# @param parameters [DomainRecommendationSearchParameters]
|
1372
|
-
#
|
1823
|
+
# @param parameters [DomainRecommendationSearchParameters] Search parameters
|
1824
|
+
# for domain name recommendations.
|
1373
1825
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1374
1826
|
# will be added to the HTTP request.
|
1375
1827
|
#
|
@@ -1388,11 +1840,12 @@ module Azure::ARM::Web
|
|
1388
1840
|
end
|
1389
1841
|
|
1390
1842
|
#
|
1391
|
-
#
|
1843
|
+
# Get all domains in a resource group.
|
1392
1844
|
#
|
1393
|
-
#
|
1845
|
+
# Get all domains in a resource group.
|
1394
1846
|
#
|
1395
|
-
# @param resource_group_name [String] Name of the resource group
|
1847
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1848
|
+
# resource belongs.
|
1396
1849
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1397
1850
|
# will be added to the HTTP request.
|
1398
1851
|
#
|
@@ -1410,5 +1863,30 @@ module Azure::ARM::Web
|
|
1410
1863
|
end
|
1411
1864
|
end
|
1412
1865
|
|
1866
|
+
#
|
1867
|
+
# Lists domain ownership identifiers.
|
1868
|
+
#
|
1869
|
+
# Lists domain ownership identifiers.
|
1870
|
+
#
|
1871
|
+
# @param resource_group_name [String] Name of the resource group to which the
|
1872
|
+
# resource belongs.
|
1873
|
+
# @param domain_name [String] Name of domain.
|
1874
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1875
|
+
# will be added to the HTTP request.
|
1876
|
+
#
|
1877
|
+
# @return [DomainOwnershipIdentifierCollection] which provide lazy access to
|
1878
|
+
# pages of the response.
|
1879
|
+
#
|
1880
|
+
def list_ownership_identifiers_as_lazy(resource_group_name, domain_name, custom_headers = nil)
|
1881
|
+
response = list_ownership_identifiers_async(resource_group_name, domain_name, custom_headers).value!
|
1882
|
+
unless response.nil?
|
1883
|
+
page = response.body
|
1884
|
+
page.next_method = Proc.new do |next_page_link|
|
1885
|
+
list_ownership_identifiers_next_async(next_page_link, custom_headers)
|
1886
|
+
end
|
1887
|
+
page
|
1888
|
+
end
|
1889
|
+
end
|
1890
|
+
|
1413
1891
|
end
|
1414
1892
|
end
|