azure_mgmt_cdn 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb +4 -1
- data/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb +38 -37
- data/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb +88 -88
- data/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb +6 -7
- data/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb +6 -5
- data/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb +42 -41
- data/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb +54 -51
- data/lib/2016-04-02/generated/azure_mgmt_cdn.rb +70 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +151 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb +719 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/endpoints.rb +1456 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +69 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +103 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +57 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +47 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +82 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +249 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb +185 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +56 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +152 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/error_response.rb +58 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation.rb +58 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_display.rb +70 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_list_result.rb +57 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin.rb +128 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +56 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_parameters.rb +71 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile.rb +128 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_create_parameters.rb +77 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +56 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource.rb +72 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku.rb +49 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku_name.rb +18 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb +46 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +70 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/module_definition.rb +9 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/name_availability.rb +130 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/operations.rb +110 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/origins.rb +778 -0
- data/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb +899 -0
- data/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +46 -38
- data/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb +53 -48
- data/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb +15 -13
- data/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb +112 -109
- data/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb +31 -29
- data/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb +93 -85
- data/lib/2017-04-02/generated/azure_mgmt_cdn.rb +18 -16
- data/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +16 -15
- data/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb +53 -48
- data/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb +15 -13
- data/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb +136 -113
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +1 -25
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/edge_node.rb +1 -25
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +6 -3
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +5 -2
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin.rb +1 -1
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile.rb +1 -1
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +1 -1
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource.rb +1 -31
- data/lib/2017-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
- data/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb +15 -13
- data/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb +31 -29
- data/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb +93 -85
- data/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb +15 -13
- data/lib/2017-10-12/generated/azure_mgmt_cdn.rb +93 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +358 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb +970 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb +223 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb +1922 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +89 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb +148 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb +91 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb +96 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +46 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +47 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb +83 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb +318 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +223 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation.rb +59 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin.rb +158 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +79 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile.rb +125 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource.rb +71 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku.rb +49 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku_name.rb +19 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb +70 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb +72 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/module_definition.rb +9 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb +217 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb +556 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb +1460 -0
- data/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb +226 -0
- data/lib/azure_mgmt_cdn.rb +2 -0
- data/lib/profiles/latest/cdn_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/cdn_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/cdn_profile_module.rb +277 -210
- data/lib/version.rb +1 -1
- metadata +119 -2
@@ -121,6 +121,9 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
121
121
|
fail ArgumentError, 'path is nil' if path.nil?
|
122
122
|
|
123
123
|
request_url = options[:base_url] || @base_url
|
124
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
125
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
126
|
+
end
|
124
127
|
|
125
128
|
request_headers = @request_headers
|
126
129
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -141,8 +144,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
141
144
|
#
|
142
145
|
# @return [CheckNameAvailabilityOutput] operation results.
|
143
146
|
#
|
144
|
-
def check_name_availability(check_name_availability_input, custom_headers
|
145
|
-
response = check_name_availability_async(check_name_availability_input, custom_headers).value!
|
147
|
+
def check_name_availability(check_name_availability_input, custom_headers:nil)
|
148
|
+
response = check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value!
|
146
149
|
response.body unless response.nil?
|
147
150
|
end
|
148
151
|
|
@@ -157,8 +160,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
157
160
|
#
|
158
161
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
159
162
|
#
|
160
|
-
def check_name_availability_with_http_info(check_name_availability_input, custom_headers
|
161
|
-
check_name_availability_async(check_name_availability_input, custom_headers).value!
|
163
|
+
def check_name_availability_with_http_info(check_name_availability_input, custom_headers:nil)
|
164
|
+
check_name_availability_async(check_name_availability_input, custom_headers:custom_headers).value!
|
162
165
|
end
|
163
166
|
|
164
167
|
#
|
@@ -172,19 +175,18 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
172
175
|
#
|
173
176
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
174
177
|
#
|
175
|
-
def check_name_availability_async(check_name_availability_input, custom_headers
|
178
|
+
def check_name_availability_async(check_name_availability_input, custom_headers:nil)
|
176
179
|
fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil?
|
177
180
|
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
178
181
|
|
179
182
|
|
180
183
|
request_headers = {}
|
184
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
181
185
|
|
182
186
|
# Set Headers
|
183
187
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
184
188
|
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
185
189
|
|
186
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
187
|
-
|
188
190
|
# Serialize Request
|
189
191
|
request_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::CheckNameAvailabilityInput.mapper()
|
190
192
|
request_content = self.serialize(request_mapper, check_name_availability_input)
|
@@ -239,8 +241,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
239
241
|
#
|
240
242
|
# @return [Array<ResourceUsage>] operation results.
|
241
243
|
#
|
242
|
-
def list_resource_usage(custom_headers
|
243
|
-
first_page = list_resource_usage_as_lazy(custom_headers)
|
244
|
+
def list_resource_usage(custom_headers:nil)
|
245
|
+
first_page = list_resource_usage_as_lazy(custom_headers:custom_headers)
|
244
246
|
first_page.get_all_items
|
245
247
|
end
|
246
248
|
|
@@ -253,8 +255,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
253
255
|
#
|
254
256
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
255
257
|
#
|
256
|
-
def list_resource_usage_with_http_info(custom_headers
|
257
|
-
list_resource_usage_async(custom_headers).value!
|
258
|
+
def list_resource_usage_with_http_info(custom_headers:nil)
|
259
|
+
list_resource_usage_async(custom_headers:custom_headers).value!
|
258
260
|
end
|
259
261
|
|
260
262
|
#
|
@@ -266,12 +268,13 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
266
268
|
#
|
267
269
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
268
270
|
#
|
269
|
-
def list_resource_usage_async(custom_headers
|
271
|
+
def list_resource_usage_async(custom_headers:nil)
|
270
272
|
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
271
273
|
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
272
274
|
|
273
275
|
|
274
276
|
request_headers = {}
|
277
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
275
278
|
|
276
279
|
# Set Headers
|
277
280
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -324,8 +327,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
324
327
|
#
|
325
328
|
# @return [Array<Operation>] operation results.
|
326
329
|
#
|
327
|
-
def list_operations(custom_headers
|
328
|
-
first_page = list_operations_as_lazy(custom_headers)
|
330
|
+
def list_operations(custom_headers:nil)
|
331
|
+
first_page = list_operations_as_lazy(custom_headers:custom_headers)
|
329
332
|
first_page.get_all_items
|
330
333
|
end
|
331
334
|
|
@@ -337,8 +340,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
337
340
|
#
|
338
341
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
339
342
|
#
|
340
|
-
def list_operations_with_http_info(custom_headers
|
341
|
-
list_operations_async(custom_headers).value!
|
343
|
+
def list_operations_with_http_info(custom_headers:nil)
|
344
|
+
list_operations_async(custom_headers:custom_headers).value!
|
342
345
|
end
|
343
346
|
|
344
347
|
#
|
@@ -349,11 +352,12 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
349
352
|
#
|
350
353
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
351
354
|
#
|
352
|
-
def list_operations_async(custom_headers
|
355
|
+
def list_operations_async(custom_headers:nil)
|
353
356
|
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
354
357
|
|
355
358
|
|
356
359
|
request_headers = {}
|
360
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
357
361
|
|
358
362
|
# Set Headers
|
359
363
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -408,8 +412,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
408
412
|
#
|
409
413
|
# @return [ResourceUsageListResult] operation results.
|
410
414
|
#
|
411
|
-
def list_resource_usage_next(next_page_link, custom_headers
|
412
|
-
response = list_resource_usage_next_async(next_page_link, custom_headers).value!
|
415
|
+
def list_resource_usage_next(next_page_link, custom_headers:nil)
|
416
|
+
response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value!
|
413
417
|
response.body unless response.nil?
|
414
418
|
end
|
415
419
|
|
@@ -424,8 +428,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
424
428
|
#
|
425
429
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
426
430
|
#
|
427
|
-
def list_resource_usage_next_with_http_info(next_page_link, custom_headers
|
428
|
-
list_resource_usage_next_async(next_page_link, custom_headers).value!
|
431
|
+
def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil)
|
432
|
+
list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value!
|
429
433
|
end
|
430
434
|
|
431
435
|
#
|
@@ -439,11 +443,12 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
439
443
|
#
|
440
444
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
441
445
|
#
|
442
|
-
def list_resource_usage_next_async(next_page_link, custom_headers
|
446
|
+
def list_resource_usage_next_async(next_page_link, custom_headers:nil)
|
443
447
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
444
448
|
|
445
449
|
|
446
450
|
request_headers = {}
|
451
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
447
452
|
|
448
453
|
# Set Headers
|
449
454
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -497,8 +502,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
497
502
|
#
|
498
503
|
# @return [OperationListResult] operation results.
|
499
504
|
#
|
500
|
-
def list_operations_next(next_page_link, custom_headers
|
501
|
-
response = list_operations_next_async(next_page_link, custom_headers).value!
|
505
|
+
def list_operations_next(next_page_link, custom_headers:nil)
|
506
|
+
response = list_operations_next_async(next_page_link, custom_headers:custom_headers).value!
|
502
507
|
response.body unless response.nil?
|
503
508
|
end
|
504
509
|
|
@@ -512,8 +517,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
512
517
|
#
|
513
518
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
514
519
|
#
|
515
|
-
def list_operations_next_with_http_info(next_page_link, custom_headers
|
516
|
-
list_operations_next_async(next_page_link, custom_headers).value!
|
520
|
+
def list_operations_next_with_http_info(next_page_link, custom_headers:nil)
|
521
|
+
list_operations_next_async(next_page_link, custom_headers:custom_headers).value!
|
517
522
|
end
|
518
523
|
|
519
524
|
#
|
@@ -526,11 +531,12 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
526
531
|
#
|
527
532
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
528
533
|
#
|
529
|
-
def list_operations_next_async(next_page_link, custom_headers
|
534
|
+
def list_operations_next_async(next_page_link, custom_headers:nil)
|
530
535
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
531
536
|
|
532
537
|
|
533
538
|
request_headers = {}
|
539
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
534
540
|
|
535
541
|
# Set Headers
|
536
542
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -583,8 +589,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
583
589
|
#
|
584
590
|
# @return [ResourceUsageListResult] operation results.
|
585
591
|
#
|
586
|
-
def list_resource_usage_as_lazy(custom_headers
|
587
|
-
first_page = list_resource_usage_as_lazy_as_lazy(custom_headers)
|
592
|
+
def list_resource_usage_as_lazy(custom_headers:nil)
|
593
|
+
first_page = list_resource_usage_as_lazy_as_lazy(custom_headers:custom_headers)
|
588
594
|
first_page.get_all_items
|
589
595
|
end
|
590
596
|
|
@@ -597,8 +603,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
597
603
|
#
|
598
604
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
599
605
|
#
|
600
|
-
def list_resource_usage_as_lazy_with_http_info(custom_headers
|
601
|
-
list_resource_usage_as_lazy_async(custom_headers).value!
|
606
|
+
def list_resource_usage_as_lazy_with_http_info(custom_headers:nil)
|
607
|
+
list_resource_usage_as_lazy_async(custom_headers:custom_headers).value!
|
602
608
|
end
|
603
609
|
|
604
610
|
#
|
@@ -610,10 +616,11 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
610
616
|
#
|
611
617
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
612
618
|
#
|
613
|
-
def list_resource_usage_as_lazy_async(custom_headers
|
619
|
+
def list_resource_usage_as_lazy_async(custom_headers:nil)
|
614
620
|
|
615
621
|
|
616
622
|
request_headers = {}
|
623
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
617
624
|
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkResourceUsage'
|
618
625
|
|
619
626
|
request_url = @base_url || self.base_url
|
@@ -660,8 +667,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
660
667
|
#
|
661
668
|
# @return [OperationListResult] operation results.
|
662
669
|
#
|
663
|
-
def list_operations_as_lazy(custom_headers
|
664
|
-
first_page = list_operations_as_lazy_as_lazy(custom_headers)
|
670
|
+
def list_operations_as_lazy(custom_headers:nil)
|
671
|
+
first_page = list_operations_as_lazy_as_lazy(custom_headers:custom_headers)
|
665
672
|
first_page.get_all_items
|
666
673
|
end
|
667
674
|
|
@@ -673,8 +680,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
673
680
|
#
|
674
681
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
675
682
|
#
|
676
|
-
def list_operations_as_lazy_with_http_info(custom_headers
|
677
|
-
list_operations_as_lazy_async(custom_headers).value!
|
683
|
+
def list_operations_as_lazy_with_http_info(custom_headers:nil)
|
684
|
+
list_operations_as_lazy_async(custom_headers:custom_headers).value!
|
678
685
|
end
|
679
686
|
|
680
687
|
#
|
@@ -685,10 +692,11 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
685
692
|
#
|
686
693
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
687
694
|
#
|
688
|
-
def list_operations_as_lazy_async(custom_headers
|
695
|
+
def list_operations_as_lazy_async(custom_headers:nil)
|
689
696
|
|
690
697
|
|
691
698
|
request_headers = {}
|
699
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
692
700
|
path_template = 'providers/Microsoft.Cdn/operations'
|
693
701
|
|
694
702
|
request_url = @base_url || self.base_url
|
@@ -734,7 +742,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
734
742
|
#
|
735
743
|
def add_telemetry
|
736
744
|
sdk_information = 'azure_mgmt_cdn'
|
737
|
-
sdk_information = "#{sdk_information}/0.
|
745
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
738
746
|
add_user_agent_information(sdk_information)
|
739
747
|
end
|
740
748
|
end
|
@@ -37,8 +37,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
37
37
|
#
|
38
38
|
# @return [Array<CustomDomain>] operation results.
|
39
39
|
#
|
40
|
-
def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers
|
41
|
-
first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers)
|
40
|
+
def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
41
|
+
first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers)
|
42
42
|
first_page.get_all_items
|
43
43
|
end
|
44
44
|
|
@@ -56,8 +56,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
56
56
|
#
|
57
57
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
58
|
#
|
59
|
-
def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers
|
60
|
-
list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value!
|
59
|
+
def list_by_endpoint_with_http_info(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
60
|
+
list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
61
61
|
end
|
62
62
|
|
63
63
|
#
|
@@ -74,7 +74,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
74
74
|
#
|
75
75
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
76
76
|
#
|
77
|
-
def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers
|
77
|
+
def list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
78
78
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
79
79
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
80
80
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -86,6 +86,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
86
86
|
|
87
87
|
|
88
88
|
request_headers = {}
|
89
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
89
90
|
|
90
91
|
# Set Headers
|
91
92
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -146,8 +147,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
146
147
|
#
|
147
148
|
# @return [CustomDomain] operation results.
|
148
149
|
#
|
149
|
-
def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
150
|
-
response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value!
|
150
|
+
def get(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
151
|
+
response = get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
151
152
|
response.body unless response.nil?
|
152
153
|
end
|
153
154
|
|
@@ -167,8 +168,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
167
168
|
#
|
168
169
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
169
170
|
#
|
170
|
-
def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
171
|
-
get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value!
|
171
|
+
def get_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
172
|
+
get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
172
173
|
end
|
173
174
|
|
174
175
|
#
|
@@ -187,7 +188,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
187
188
|
#
|
188
189
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
189
190
|
#
|
190
|
-
def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
191
|
+
def get_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
191
192
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
192
193
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
193
194
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -200,6 +201,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
200
201
|
|
201
202
|
|
202
203
|
request_headers = {}
|
204
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
203
205
|
|
204
206
|
# Set Headers
|
205
207
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -262,8 +264,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
262
264
|
#
|
263
265
|
# @return [CustomDomain] operation results.
|
264
266
|
#
|
265
|
-
def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers
|
266
|
-
response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value!
|
267
|
+
def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
|
268
|
+
response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value!
|
267
269
|
response.body unless response.nil?
|
268
270
|
end
|
269
271
|
|
@@ -284,9 +286,9 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
284
286
|
# @return [Concurrent::Promise] promise which provides async access to http
|
285
287
|
# response.
|
286
288
|
#
|
287
|
-
def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers
|
289
|
+
def create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
|
288
290
|
# Send request
|
289
|
-
promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers)
|
291
|
+
promise = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers)
|
290
292
|
|
291
293
|
promise = promise.then do |response|
|
292
294
|
# Defining deserialization method.
|
@@ -318,8 +320,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
318
320
|
#
|
319
321
|
# @return [CustomDomain] operation results.
|
320
322
|
#
|
321
|
-
def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
322
|
-
response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value!
|
323
|
+
def delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
324
|
+
response = delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
323
325
|
response.body unless response.nil?
|
324
326
|
end
|
325
327
|
|
@@ -338,9 +340,9 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
338
340
|
# @return [Concurrent::Promise] promise which provides async access to http
|
339
341
|
# response.
|
340
342
|
#
|
341
|
-
def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
343
|
+
def delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
342
344
|
# Send request
|
343
|
-
promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers)
|
345
|
+
promise = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers)
|
344
346
|
|
345
347
|
promise = promise.then do |response|
|
346
348
|
# Defining deserialization method.
|
@@ -372,8 +374,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
372
374
|
#
|
373
375
|
# @return [CustomDomain] operation results.
|
374
376
|
#
|
375
|
-
def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
376
|
-
response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value!
|
377
|
+
def disable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
378
|
+
response = disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
377
379
|
response.body unless response.nil?
|
378
380
|
end
|
379
381
|
|
@@ -393,8 +395,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
393
395
|
#
|
394
396
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
395
397
|
#
|
396
|
-
def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
397
|
-
disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value!
|
398
|
+
def disable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
399
|
+
disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
398
400
|
end
|
399
401
|
|
400
402
|
#
|
@@ -413,7 +415,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
413
415
|
#
|
414
416
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
415
417
|
#
|
416
|
-
def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
418
|
+
def disable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
417
419
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
418
420
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
419
421
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -426,6 +428,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
426
428
|
|
427
429
|
|
428
430
|
request_headers = {}
|
431
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
429
432
|
|
430
433
|
# Set Headers
|
431
434
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -486,8 +489,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
486
489
|
#
|
487
490
|
# @return [CustomDomain] operation results.
|
488
491
|
#
|
489
|
-
def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
490
|
-
response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value!
|
492
|
+
def enable_custom_https(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
493
|
+
response = enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
491
494
|
response.body unless response.nil?
|
492
495
|
end
|
493
496
|
|
@@ -507,8 +510,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
507
510
|
#
|
508
511
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
509
512
|
#
|
510
|
-
def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
511
|
-
enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value!
|
513
|
+
def enable_custom_https_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
514
|
+
enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
512
515
|
end
|
513
516
|
|
514
517
|
#
|
@@ -527,7 +530,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
527
530
|
#
|
528
531
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
529
532
|
#
|
530
|
-
def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
533
|
+
def enable_custom_https_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
531
534
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
532
535
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
533
536
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -540,6 +543,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
540
543
|
|
541
544
|
|
542
545
|
request_headers = {}
|
546
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
543
547
|
|
544
548
|
# Set Headers
|
545
549
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -602,8 +606,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
602
606
|
#
|
603
607
|
# @return [CustomDomain] operation results.
|
604
608
|
#
|
605
|
-
def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers
|
606
|
-
response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value!
|
609
|
+
def begin_create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
|
610
|
+
response = begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value!
|
607
611
|
response.body unless response.nil?
|
608
612
|
end
|
609
613
|
|
@@ -625,8 +629,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
625
629
|
#
|
626
630
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
627
631
|
#
|
628
|
-
def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers
|
629
|
-
begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers).value!
|
632
|
+
def begin_create_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
|
633
|
+
begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value!
|
630
634
|
end
|
631
635
|
|
632
636
|
#
|
@@ -647,7 +651,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
647
651
|
#
|
648
652
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
649
653
|
#
|
650
|
-
def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers
|
654
|
+
def begin_create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil)
|
651
655
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
652
656
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
653
657
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -661,13 +665,12 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
661
665
|
|
662
666
|
|
663
667
|
request_headers = {}
|
668
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
664
669
|
|
665
670
|
# Set Headers
|
666
671
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
667
672
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
668
673
|
|
669
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
670
|
-
|
671
674
|
# Serialize Request
|
672
675
|
request_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::CustomDomainParameters.mapper()
|
673
676
|
request_content = @client.serialize(request_mapper, custom_domain_properties)
|
@@ -750,8 +753,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
750
753
|
#
|
751
754
|
# @return [CustomDomain] operation results.
|
752
755
|
#
|
753
|
-
def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
754
|
-
response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value!
|
756
|
+
def begin_delete(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
757
|
+
response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
755
758
|
response.body unless response.nil?
|
756
759
|
end
|
757
760
|
|
@@ -771,8 +774,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
771
774
|
#
|
772
775
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
773
776
|
#
|
774
|
-
def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
775
|
-
begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers).value!
|
777
|
+
def begin_delete_with_http_info(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
778
|
+
begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:custom_headers).value!
|
776
779
|
end
|
777
780
|
|
778
781
|
#
|
@@ -791,7 +794,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
791
794
|
#
|
792
795
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
793
796
|
#
|
794
|
-
def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers
|
797
|
+
def begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_headers:nil)
|
795
798
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
796
799
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
797
800
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -804,6 +807,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
804
807
|
|
805
808
|
|
806
809
|
request_headers = {}
|
810
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
807
811
|
|
808
812
|
# Set Headers
|
809
813
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -858,8 +862,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
858
862
|
#
|
859
863
|
# @return [CustomDomainListResult] operation results.
|
860
864
|
#
|
861
|
-
def list_by_endpoint_next(next_page_link, custom_headers
|
862
|
-
response = list_by_endpoint_next_async(next_page_link, custom_headers).value!
|
865
|
+
def list_by_endpoint_next(next_page_link, custom_headers:nil)
|
866
|
+
response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value!
|
863
867
|
response.body unless response.nil?
|
864
868
|
end
|
865
869
|
|
@@ -873,8 +877,8 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
873
877
|
#
|
874
878
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
875
879
|
#
|
876
|
-
def list_by_endpoint_next_with_http_info(next_page_link, custom_headers
|
877
|
-
list_by_endpoint_next_async(next_page_link, custom_headers).value!
|
880
|
+
def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil)
|
881
|
+
list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value!
|
878
882
|
end
|
879
883
|
|
880
884
|
#
|
@@ -887,11 +891,12 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
887
891
|
#
|
888
892
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
889
893
|
#
|
890
|
-
def list_by_endpoint_next_async(next_page_link, custom_headers
|
894
|
+
def list_by_endpoint_next_async(next_page_link, custom_headers:nil)
|
891
895
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
892
896
|
|
893
897
|
|
894
898
|
request_headers = {}
|
899
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
895
900
|
|
896
901
|
# Set Headers
|
897
902
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -950,12 +955,12 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
950
955
|
# @return [CustomDomainListResult] which provide lazy access to pages of the
|
951
956
|
# response.
|
952
957
|
#
|
953
|
-
def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers
|
954
|
-
response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value!
|
958
|
+
def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
|
959
|
+
response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
|
955
960
|
unless response.nil?
|
956
961
|
page = response.body
|
957
962
|
page.next_method = Proc.new do |next_page_link|
|
958
|
-
list_by_endpoint_next_async(next_page_link, custom_headers)
|
963
|
+
list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers)
|
959
964
|
end
|
960
965
|
page
|
961
966
|
end
|