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.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-01/generated/azure_mgmt_cdn/cdn_management_client.rb +4 -1
  3. data/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb +38 -37
  4. data/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb +88 -88
  5. data/lib/2015-06-01/generated/azure_mgmt_cdn/name_availability.rb +6 -7
  6. data/lib/2015-06-01/generated/azure_mgmt_cdn/operations.rb +6 -5
  7. data/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb +42 -41
  8. data/lib/2015-06-01/generated/azure_mgmt_cdn/profiles.rb +54 -51
  9. data/lib/2016-04-02/generated/azure_mgmt_cdn.rb +70 -0
  10. data/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +151 -0
  11. data/lib/2016-04-02/generated/azure_mgmt_cdn/custom_domains.rb +719 -0
  12. data/lib/2016-04-02/generated/azure_mgmt_cdn/endpoints.rb +1456 -0
  13. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  14. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +69 -0
  15. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +103 -0
  16. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +57 -0
  17. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +47 -0
  18. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  19. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/deep_created_origin.rb +82 -0
  20. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +249 -0
  21. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_create_parameters.rb +185 -0
  22. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +56 -0
  23. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  24. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +152 -0
  25. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/error_response.rb +58 -0
  26. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  27. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation.rb +58 -0
  28. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_display.rb +70 -0
  29. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/operation_list_result.rb +57 -0
  30. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin.rb +128 -0
  31. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_list_result.rb +56 -0
  32. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_parameters.rb +71 -0
  33. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  34. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile.rb +128 -0
  35. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_create_parameters.rb +77 -0
  36. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_list_result.rb +56 -0
  37. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  38. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  39. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/provisioning_state.rb +17 -0
  40. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  41. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  42. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource.rb +72 -0
  43. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  44. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku.rb +49 -0
  45. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sku_name.rb +18 -0
  46. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/sso_uri.rb +46 -0
  47. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  48. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  49. data/lib/2016-04-02/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +70 -0
  50. data/lib/2016-04-02/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  51. data/lib/2016-04-02/generated/azure_mgmt_cdn/name_availability.rb +130 -0
  52. data/lib/2016-04-02/generated/azure_mgmt_cdn/operations.rb +110 -0
  53. data/lib/2016-04-02/generated/azure_mgmt_cdn/origins.rb +778 -0
  54. data/lib/2016-04-02/generated/azure_mgmt_cdn/profiles.rb +899 -0
  55. data/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +46 -38
  56. data/lib/2016-10-02/generated/azure_mgmt_cdn/custom_domains.rb +53 -48
  57. data/lib/2016-10-02/generated/azure_mgmt_cdn/edge_nodes.rb +15 -13
  58. data/lib/2016-10-02/generated/azure_mgmt_cdn/endpoints.rb +112 -109
  59. data/lib/2016-10-02/generated/azure_mgmt_cdn/origins.rb +31 -29
  60. data/lib/2016-10-02/generated/azure_mgmt_cdn/profiles.rb +93 -85
  61. data/lib/2017-04-02/generated/azure_mgmt_cdn.rb +18 -16
  62. data/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +16 -15
  63. data/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb +53 -48
  64. data/lib/2017-04-02/generated/azure_mgmt_cdn/edge_nodes.rb +15 -13
  65. data/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb +136 -113
  66. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/custom_domain.rb +1 -25
  67. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/edge_node.rb +1 -25
  68. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint.rb +6 -3
  69. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +5 -2
  70. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/origin.rb +1 -1
  71. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile.rb +1 -1
  72. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +1 -1
  73. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
  74. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/resource.rb +1 -31
  75. data/lib/2017-04-02/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  76. data/lib/2017-04-02/generated/azure_mgmt_cdn/operations.rb +15 -13
  77. data/lib/2017-04-02/generated/azure_mgmt_cdn/origins.rb +31 -29
  78. data/lib/2017-04-02/generated/azure_mgmt_cdn/profiles.rb +93 -85
  79. data/lib/2017-04-02/generated/azure_mgmt_cdn/resource_usage_operations.rb +15 -13
  80. data/lib/2017-10-12/generated/azure_mgmt_cdn.rb +93 -0
  81. data/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +358 -0
  82. data/lib/2017-10-12/generated/azure_mgmt_cdn/custom_domains.rb +970 -0
  83. data/lib/2017-10-12/generated/azure_mgmt_cdn/edge_nodes.rb +223 -0
  84. data/lib/2017-10-12/generated/azure_mgmt_cdn/endpoints.rb +1922 -0
  85. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cache_expiration_action_parameters.rb +89 -0
  86. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_input.rb +60 -0
  87. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/check_name_availability_output.rb +72 -0
  88. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/cidr_ip_address.rb +57 -0
  89. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain.rb +148 -0
  90. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb +102 -0
  91. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb +48 -0
  92. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb +17 -0
  93. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb +19 -0
  94. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb +24 -0
  95. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/deep_created_origin.rb +91 -0
  96. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule.rb +96 -0
  97. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_action.rb +46 -0
  98. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_cache_expiration_action.rb +64 -0
  99. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_condition.rb +47 -0
  100. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_file_extension_condition.rb +64 -0
  101. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/delivery_rule_url_path_condition.rb +64 -0
  102. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edge_node.rb +83 -0
  103. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/edgenode_result.rb +101 -0
  104. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint.rb +318 -0
  105. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_list_result.rb +101 -0
  106. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_properties_update_parameters_delivery_policy.rb +67 -0
  107. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb +20 -0
  108. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb +223 -0
  109. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/error_response.rb +60 -0
  110. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter.rb +80 -0
  111. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/geo_filter_actions.rb +16 -0
  112. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/ip_address_group.rb +86 -0
  113. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/load_parameters.rb +55 -0
  114. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation.rb +59 -0
  115. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operation_display.rb +72 -0
  116. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/operations_list_result.rb +102 -0
  117. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/optimization_type.rb +19 -0
  118. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin.rb +158 -0
  119. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_list_result.rb +101 -0
  120. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_resource_state.rb +17 -0
  121. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/origin_update_parameters.rb +79 -0
  122. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile.rb +125 -0
  123. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_list_result.rb +101 -0
  124. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_resource_state.rb +18 -0
  125. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/profile_update_parameters.rb +54 -0
  126. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/proxy_resource.rb +63 -0
  127. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/purge_parameters.rb +55 -0
  128. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb +18 -0
  129. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource.rb +71 -0
  130. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_type.rb +15 -0
  131. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage.rb +83 -0
  132. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb +100 -0
  133. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku.rb +49 -0
  134. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sku_name.rb +19 -0
  135. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/sso_uri.rb +48 -0
  136. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb +56 -0
  137. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/tracked_resource.rb +92 -0
  138. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_file_extension_condition_parameters.rb +70 -0
  139. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/url_path_condition_parameters.rb +72 -0
  140. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb +47 -0
  141. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb +72 -0
  142. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_input.rb +46 -0
  143. data/lib/2017-10-12/generated/azure_mgmt_cdn/models/validate_probe_output.rb +73 -0
  144. data/lib/2017-10-12/generated/azure_mgmt_cdn/module_definition.rb +9 -0
  145. data/lib/2017-10-12/generated/azure_mgmt_cdn/operations.rb +217 -0
  146. data/lib/2017-10-12/generated/azure_mgmt_cdn/origins.rb +556 -0
  147. data/lib/2017-10-12/generated/azure_mgmt_cdn/profiles.rb +1460 -0
  148. data/lib/2017-10-12/generated/azure_mgmt_cdn/resource_usage_operations.rb +226 -0
  149. data/lib/azure_mgmt_cdn.rb +2 -0
  150. data/lib/profiles/latest/cdn_latest_profile_client.rb +28 -9
  151. data/lib/profiles/latest/cdn_module_definition.rb +0 -1
  152. data/lib/profiles/latest/modules/cdn_profile_module.rb +277 -210
  153. data/lib/version.rb +1 -1
  154. metadata +119 -2
@@ -37,8 +37,8 @@ module Azure::CDN::Mgmt::V2016_10_02
37
37
  #
38
38
  # @return [Array<Origin>] operation results.
39
39
  #
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)
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 = nil)
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 = nil)
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 [Origin] operation results.
148
149
  #
149
- def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers = nil)
150
- response = get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers).value!
150
+ def get(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil)
151
+ response = get_async(resource_group_name, profile_name, endpoint_name, origin_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, origin_name, custom_headers = nil)
171
- get_async(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers).value!
171
+ def get_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, custom_headers:nil)
172
+ get_async(resource_group_name, profile_name, endpoint_name, origin_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, origin_name, custom_headers = nil)
191
+ def get_async(resource_group_name, profile_name, endpoint_name, origin_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
@@ -261,8 +263,8 @@ module Azure::CDN::Mgmt::V2016_10_02
261
263
  #
262
264
  # @return [Origin] operation results.
263
265
  #
264
- def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil)
265
- response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value!
266
+ def update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil)
267
+ response = update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value!
266
268
  response.body unless response.nil?
267
269
  end
268
270
 
@@ -282,9 +284,9 @@ module Azure::CDN::Mgmt::V2016_10_02
282
284
  # @return [Concurrent::Promise] promise which provides async access to http
283
285
  # response.
284
286
  #
285
- def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil)
287
+ def update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil)
286
288
  # Send request
287
- promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers)
289
+ promise = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers)
288
290
 
289
291
  promise = promise.then do |response|
290
292
  # Defining deserialization method.
@@ -317,8 +319,8 @@ module Azure::CDN::Mgmt::V2016_10_02
317
319
  #
318
320
  # @return [Origin] operation results.
319
321
  #
320
- def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil)
321
- response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value!
322
+ def begin_update(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil)
323
+ response = begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value!
322
324
  response.body unless response.nil?
323
325
  end
324
326
 
@@ -339,8 +341,8 @@ module Azure::CDN::Mgmt::V2016_10_02
339
341
  #
340
342
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
341
343
  #
342
- def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil)
343
- begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers).value!
344
+ def begin_update_with_http_info(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil)
345
+ begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:custom_headers).value!
344
346
  end
345
347
 
346
348
  #
@@ -360,7 +362,7 @@ module Azure::CDN::Mgmt::V2016_10_02
360
362
  #
361
363
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
362
364
  #
363
- def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers = nil)
365
+ def begin_update_async(resource_group_name, profile_name, endpoint_name, origin_name, origin_update_properties, custom_headers:nil)
364
366
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
365
367
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
366
368
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -374,13 +376,12 @@ module Azure::CDN::Mgmt::V2016_10_02
374
376
 
375
377
 
376
378
  request_headers = {}
379
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
377
380
 
378
381
  # Set Headers
379
382
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
380
383
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
381
384
 
382
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
383
-
384
385
  # Serialize Request
385
386
  request_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::OriginUpdateParameters.mapper()
386
387
  request_content = @client.serialize(request_mapper, origin_update_properties)
@@ -447,8 +448,8 @@ module Azure::CDN::Mgmt::V2016_10_02
447
448
  #
448
449
  # @return [OriginListResult] operation results.
449
450
  #
450
- def list_by_endpoint_next(next_page_link, custom_headers = nil)
451
- response = list_by_endpoint_next_async(next_page_link, custom_headers).value!
451
+ def list_by_endpoint_next(next_page_link, custom_headers:nil)
452
+ response = list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value!
452
453
  response.body unless response.nil?
453
454
  end
454
455
 
@@ -462,8 +463,8 @@ module Azure::CDN::Mgmt::V2016_10_02
462
463
  #
463
464
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
464
465
  #
465
- def list_by_endpoint_next_with_http_info(next_page_link, custom_headers = nil)
466
- list_by_endpoint_next_async(next_page_link, custom_headers).value!
466
+ def list_by_endpoint_next_with_http_info(next_page_link, custom_headers:nil)
467
+ list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers).value!
467
468
  end
468
469
 
469
470
  #
@@ -476,11 +477,12 @@ module Azure::CDN::Mgmt::V2016_10_02
476
477
  #
477
478
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
478
479
  #
479
- def list_by_endpoint_next_async(next_page_link, custom_headers = nil)
480
+ def list_by_endpoint_next_async(next_page_link, custom_headers:nil)
480
481
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
481
482
 
482
483
 
483
484
  request_headers = {}
485
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
484
486
 
485
487
  # Set Headers
486
488
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -539,12 +541,12 @@ module Azure::CDN::Mgmt::V2016_10_02
539
541
  # @return [OriginListResult] which provide lazy access to pages of the
540
542
  # response.
541
543
  #
542
- def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers = nil)
543
- response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers).value!
544
+ def list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:nil)
545
+ response = list_by_endpoint_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value!
544
546
  unless response.nil?
545
547
  page = response.body
546
548
  page.next_method = Proc.new do |next_page_link|
547
- list_by_endpoint_next_async(next_page_link, custom_headers)
549
+ list_by_endpoint_next_async(next_page_link, custom_headers:custom_headers)
548
550
  end
549
551
  page
550
552
  end
@@ -31,8 +31,8 @@ module Azure::CDN::Mgmt::V2016_10_02
31
31
  #
32
32
  # @return [Array<Profile>] operation results.
33
33
  #
34
- def list(custom_headers = nil)
35
- first_page = list_as_lazy(custom_headers)
34
+ def list(custom_headers:nil)
35
+ first_page = list_as_lazy(custom_headers:custom_headers)
36
36
  first_page.get_all_items
37
37
  end
38
38
 
@@ -44,8 +44,8 @@ module Azure::CDN::Mgmt::V2016_10_02
44
44
  #
45
45
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
46
46
  #
47
- def list_with_http_info(custom_headers = nil)
48
- list_async(custom_headers).value!
47
+ def list_with_http_info(custom_headers:nil)
48
+ list_async(custom_headers:custom_headers).value!
49
49
  end
50
50
 
51
51
  #
@@ -56,12 +56,13 @@ module Azure::CDN::Mgmt::V2016_10_02
56
56
  #
57
57
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
58
58
  #
59
- def list_async(custom_headers = nil)
59
+ def list_async(custom_headers:nil)
60
60
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
61
61
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
62
62
 
63
63
 
64
64
  request_headers = {}
65
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
65
66
 
66
67
  # Set Headers
67
68
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -116,8 +117,8 @@ module Azure::CDN::Mgmt::V2016_10_02
116
117
  #
117
118
  # @return [Array<Profile>] operation results.
118
119
  #
119
- def list_by_resource_group(resource_group_name, custom_headers = nil)
120
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
120
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
121
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
121
122
  first_page.get_all_items
122
123
  end
123
124
 
@@ -131,8 +132,8 @@ module Azure::CDN::Mgmt::V2016_10_02
131
132
  #
132
133
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
133
134
  #
134
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
135
- list_by_resource_group_async(resource_group_name, custom_headers).value!
135
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
136
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
136
137
  end
137
138
 
138
139
  #
@@ -145,7 +146,7 @@ module Azure::CDN::Mgmt::V2016_10_02
145
146
  #
146
147
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
147
148
  #
148
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
149
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
149
150
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
150
151
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
151
152
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -155,6 +156,7 @@ module Azure::CDN::Mgmt::V2016_10_02
155
156
 
156
157
 
157
158
  request_headers = {}
159
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
158
160
 
159
161
  # Set Headers
160
162
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -212,8 +214,8 @@ module Azure::CDN::Mgmt::V2016_10_02
212
214
  #
213
215
  # @return [Profile] operation results.
214
216
  #
215
- def get(resource_group_name, profile_name, custom_headers = nil)
216
- response = get_async(resource_group_name, profile_name, custom_headers).value!
217
+ def get(resource_group_name, profile_name, custom_headers:nil)
218
+ response = get_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
217
219
  response.body unless response.nil?
218
220
  end
219
221
 
@@ -230,8 +232,8 @@ module Azure::CDN::Mgmt::V2016_10_02
230
232
  #
231
233
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
232
234
  #
233
- def get_with_http_info(resource_group_name, profile_name, custom_headers = nil)
234
- get_async(resource_group_name, profile_name, custom_headers).value!
235
+ def get_with_http_info(resource_group_name, profile_name, custom_headers:nil)
236
+ get_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
235
237
  end
236
238
 
237
239
  #
@@ -247,7 +249,7 @@ module Azure::CDN::Mgmt::V2016_10_02
247
249
  #
248
250
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
249
251
  #
250
- def get_async(resource_group_name, profile_name, custom_headers = nil)
252
+ def get_async(resource_group_name, profile_name, custom_headers:nil)
251
253
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
252
254
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
253
255
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -258,6 +260,7 @@ module Azure::CDN::Mgmt::V2016_10_02
258
260
 
259
261
 
260
262
  request_headers = {}
263
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
261
264
 
262
265
  # Set Headers
263
266
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -316,8 +319,8 @@ module Azure::CDN::Mgmt::V2016_10_02
316
319
  #
317
320
  # @return [Profile] operation results.
318
321
  #
319
- def create(resource_group_name, profile_name, profile, custom_headers = nil)
320
- response = create_async(resource_group_name, profile_name, profile, custom_headers).value!
322
+ def create(resource_group_name, profile_name, profile, custom_headers:nil)
323
+ response = create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value!
321
324
  response.body unless response.nil?
322
325
  end
323
326
 
@@ -333,9 +336,9 @@ module Azure::CDN::Mgmt::V2016_10_02
333
336
  # @return [Concurrent::Promise] promise which provides async access to http
334
337
  # response.
335
338
  #
336
- def create_async(resource_group_name, profile_name, profile, custom_headers = nil)
339
+ def create_async(resource_group_name, profile_name, profile, custom_headers:nil)
337
340
  # Send request
338
- promise = begin_create_async(resource_group_name, profile_name, profile, custom_headers)
341
+ promise = begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers)
339
342
 
340
343
  promise = promise.then do |response|
341
344
  # Defining deserialization method.
@@ -366,8 +369,8 @@ module Azure::CDN::Mgmt::V2016_10_02
366
369
  #
367
370
  # @return [Profile] operation results.
368
371
  #
369
- def update(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil)
370
- response = update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value!
372
+ def update(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil)
373
+ response = update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value!
371
374
  response.body unless response.nil?
372
375
  end
373
376
 
@@ -384,9 +387,9 @@ module Azure::CDN::Mgmt::V2016_10_02
384
387
  # @return [Concurrent::Promise] promise which provides async access to http
385
388
  # response.
386
389
  #
387
- def update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil)
390
+ def update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil)
388
391
  # Send request
389
- promise = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers)
392
+ promise = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers)
390
393
 
391
394
  promise = promise.then do |response|
392
395
  # Defining deserialization method.
@@ -414,8 +417,8 @@ module Azure::CDN::Mgmt::V2016_10_02
414
417
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
415
418
  # will be added to the HTTP request.
416
419
  #
417
- def delete(resource_group_name, profile_name, custom_headers = nil)
418
- response = delete_async(resource_group_name, profile_name, custom_headers).value!
420
+ def delete(resource_group_name, profile_name, custom_headers:nil)
421
+ response = delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
419
422
  nil
420
423
  end
421
424
 
@@ -430,9 +433,9 @@ module Azure::CDN::Mgmt::V2016_10_02
430
433
  # @return [Concurrent::Promise] promise which provides async access to http
431
434
  # response.
432
435
  #
433
- def delete_async(resource_group_name, profile_name, custom_headers = nil)
436
+ def delete_async(resource_group_name, profile_name, custom_headers:nil)
434
437
  # Send request
435
- promise = begin_delete_async(resource_group_name, profile_name, custom_headers)
438
+ promise = begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers)
436
439
 
437
440
  promise = promise.then do |response|
438
441
  # Defining deserialization method.
@@ -462,8 +465,8 @@ module Azure::CDN::Mgmt::V2016_10_02
462
465
  #
463
466
  # @return [SsoUri] operation results.
464
467
  #
465
- def generate_sso_uri(resource_group_name, profile_name, custom_headers = nil)
466
- response = generate_sso_uri_async(resource_group_name, profile_name, custom_headers).value!
468
+ def generate_sso_uri(resource_group_name, profile_name, custom_headers:nil)
469
+ response = generate_sso_uri_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
467
470
  response.body unless response.nil?
468
471
  end
469
472
 
@@ -483,8 +486,8 @@ module Azure::CDN::Mgmt::V2016_10_02
483
486
  #
484
487
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
485
488
  #
486
- def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_headers = nil)
487
- generate_sso_uri_async(resource_group_name, profile_name, custom_headers).value!
489
+ def generate_sso_uri_with_http_info(resource_group_name, profile_name, custom_headers:nil)
490
+ generate_sso_uri_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
488
491
  end
489
492
 
490
493
  #
@@ -503,7 +506,7 @@ module Azure::CDN::Mgmt::V2016_10_02
503
506
  #
504
507
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
505
508
  #
506
- def generate_sso_uri_async(resource_group_name, profile_name, custom_headers = nil)
509
+ def generate_sso_uri_async(resource_group_name, profile_name, custom_headers:nil)
507
510
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
508
511
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
509
512
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -514,6 +517,7 @@ module Azure::CDN::Mgmt::V2016_10_02
514
517
 
515
518
 
516
519
  request_headers = {}
520
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
517
521
 
518
522
  # Set Headers
519
523
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -571,8 +575,8 @@ module Azure::CDN::Mgmt::V2016_10_02
571
575
  #
572
576
  # @return [SupportedOptimizationTypesResult] operation results.
573
577
  #
574
- def get_supported_optimization_types(resource_group_name, profile_name, custom_headers = nil)
575
- response = get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value!
578
+ def get_supported_optimization_types(resource_group_name, profile_name, custom_headers:nil)
579
+ response = get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
576
580
  response.body unless response.nil?
577
581
  end
578
582
 
@@ -589,8 +593,8 @@ module Azure::CDN::Mgmt::V2016_10_02
589
593
  #
590
594
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
591
595
  #
592
- def get_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers = nil)
593
- get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value!
596
+ def get_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers:nil)
597
+ get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
594
598
  end
595
599
 
596
600
  #
@@ -606,7 +610,7 @@ module Azure::CDN::Mgmt::V2016_10_02
606
610
  #
607
611
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
608
612
  #
609
- def get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers = nil)
613
+ def get_supported_optimization_types_async(resource_group_name, profile_name, custom_headers:nil)
610
614
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
611
615
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
612
616
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -617,6 +621,7 @@ module Azure::CDN::Mgmt::V2016_10_02
617
621
 
618
622
 
619
623
  request_headers = {}
624
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
620
625
 
621
626
  # Set Headers
622
627
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -673,8 +678,8 @@ module Azure::CDN::Mgmt::V2016_10_02
673
678
  #
674
679
  # @return [Array<ResourceUsage>] operation results.
675
680
  #
676
- def list_resource_usage(resource_group_name, profile_name, custom_headers = nil)
677
- first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers)
681
+ def list_resource_usage(resource_group_name, profile_name, custom_headers:nil)
682
+ first_page = list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers:custom_headers)
678
683
  first_page.get_all_items
679
684
  end
680
685
 
@@ -690,8 +695,8 @@ module Azure::CDN::Mgmt::V2016_10_02
690
695
  #
691
696
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
692
697
  #
693
- def list_resource_usage_with_http_info(resource_group_name, profile_name, custom_headers = nil)
694
- list_resource_usage_async(resource_group_name, profile_name, custom_headers).value!
698
+ def list_resource_usage_with_http_info(resource_group_name, profile_name, custom_headers:nil)
699
+ list_resource_usage_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
695
700
  end
696
701
 
697
702
  #
@@ -706,7 +711,7 @@ module Azure::CDN::Mgmt::V2016_10_02
706
711
  #
707
712
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
708
713
  #
709
- def list_resource_usage_async(resource_group_name, profile_name, custom_headers = nil)
714
+ def list_resource_usage_async(resource_group_name, profile_name, custom_headers:nil)
710
715
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
711
716
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
712
717
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -717,6 +722,7 @@ module Azure::CDN::Mgmt::V2016_10_02
717
722
 
718
723
 
719
724
  request_headers = {}
725
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
720
726
 
721
727
  # Set Headers
722
728
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -775,8 +781,8 @@ module Azure::CDN::Mgmt::V2016_10_02
775
781
  #
776
782
  # @return [Profile] operation results.
777
783
  #
778
- def begin_create(resource_group_name, profile_name, profile, custom_headers = nil)
779
- response = begin_create_async(resource_group_name, profile_name, profile, custom_headers).value!
784
+ def begin_create(resource_group_name, profile_name, profile, custom_headers:nil)
785
+ response = begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value!
780
786
  response.body unless response.nil?
781
787
  end
782
788
 
@@ -794,8 +800,8 @@ module Azure::CDN::Mgmt::V2016_10_02
794
800
  #
795
801
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
796
802
  #
797
- def begin_create_with_http_info(resource_group_name, profile_name, profile, custom_headers = nil)
798
- begin_create_async(resource_group_name, profile_name, profile, custom_headers).value!
803
+ def begin_create_with_http_info(resource_group_name, profile_name, profile, custom_headers:nil)
804
+ begin_create_async(resource_group_name, profile_name, profile, custom_headers:custom_headers).value!
799
805
  end
800
806
 
801
807
  #
@@ -812,7 +818,7 @@ module Azure::CDN::Mgmt::V2016_10_02
812
818
  #
813
819
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
814
820
  #
815
- def begin_create_async(resource_group_name, profile_name, profile, custom_headers = nil)
821
+ def begin_create_async(resource_group_name, profile_name, profile, custom_headers:nil)
816
822
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
817
823
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
818
824
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -824,13 +830,12 @@ module Azure::CDN::Mgmt::V2016_10_02
824
830
 
825
831
 
826
832
  request_headers = {}
833
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
827
834
 
828
835
  # Set Headers
829
836
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
830
837
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
831
838
 
832
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
833
-
834
839
  # Serialize Request
835
840
  request_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::Profile.mapper()
836
841
  request_content = @client.serialize(request_mapper, profile)
@@ -912,8 +917,8 @@ module Azure::CDN::Mgmt::V2016_10_02
912
917
  #
913
918
  # @return [Profile] operation results.
914
919
  #
915
- def begin_update(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil)
916
- response = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value!
920
+ def begin_update(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil)
921
+ response = begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value!
917
922
  response.body unless response.nil?
918
923
  end
919
924
 
@@ -932,8 +937,8 @@ module Azure::CDN::Mgmt::V2016_10_02
932
937
  #
933
938
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
934
939
  #
935
- def begin_update_with_http_info(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil)
936
- begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers).value!
940
+ def begin_update_with_http_info(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil)
941
+ begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:custom_headers).value!
937
942
  end
938
943
 
939
944
  #
@@ -951,7 +956,7 @@ module Azure::CDN::Mgmt::V2016_10_02
951
956
  #
952
957
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
953
958
  #
954
- def begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers = nil)
959
+ def begin_update_async(resource_group_name, profile_name, profile_update_parameters, custom_headers:nil)
955
960
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
956
961
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
957
962
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -963,13 +968,12 @@ module Azure::CDN::Mgmt::V2016_10_02
963
968
 
964
969
 
965
970
  request_headers = {}
971
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
966
972
 
967
973
  # Set Headers
968
974
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
969
975
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
970
976
 
971
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
972
-
973
977
  # Serialize Request
974
978
  request_mapper = Azure::CDN::Mgmt::V2016_10_02::Models::ProfileUpdateParameters.mapper()
975
979
  request_content = @client.serialize(request_mapper, profile_update_parameters)
@@ -1039,8 +1043,8 @@ module Azure::CDN::Mgmt::V2016_10_02
1039
1043
  # will be added to the HTTP request.
1040
1044
  #
1041
1045
  #
1042
- def begin_delete(resource_group_name, profile_name, custom_headers = nil)
1043
- response = begin_delete_async(resource_group_name, profile_name, custom_headers).value!
1046
+ def begin_delete(resource_group_name, profile_name, custom_headers:nil)
1047
+ response = begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
1044
1048
  nil
1045
1049
  end
1046
1050
 
@@ -1058,8 +1062,8 @@ module Azure::CDN::Mgmt::V2016_10_02
1058
1062
  #
1059
1063
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1060
1064
  #
1061
- def begin_delete_with_http_info(resource_group_name, profile_name, custom_headers = nil)
1062
- begin_delete_async(resource_group_name, profile_name, custom_headers).value!
1065
+ def begin_delete_with_http_info(resource_group_name, profile_name, custom_headers:nil)
1066
+ begin_delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
1063
1067
  end
1064
1068
 
1065
1069
  #
@@ -1076,7 +1080,7 @@ module Azure::CDN::Mgmt::V2016_10_02
1076
1080
  #
1077
1081
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1078
1082
  #
1079
- def begin_delete_async(resource_group_name, profile_name, custom_headers = nil)
1083
+ def begin_delete_async(resource_group_name, profile_name, custom_headers:nil)
1080
1084
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1081
1085
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1082
1086
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1087,6 +1091,7 @@ module Azure::CDN::Mgmt::V2016_10_02
1087
1091
 
1088
1092
 
1089
1093
  request_headers = {}
1094
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1090
1095
 
1091
1096
  # Set Headers
1092
1097
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1131,8 +1136,8 @@ module Azure::CDN::Mgmt::V2016_10_02
1131
1136
  #
1132
1137
  # @return [ProfileListResult] operation results.
1133
1138
  #
1134
- def list_next(next_page_link, custom_headers = nil)
1135
- response = list_next_async(next_page_link, custom_headers).value!
1139
+ def list_next(next_page_link, custom_headers:nil)
1140
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1136
1141
  response.body unless response.nil?
1137
1142
  end
1138
1143
 
@@ -1146,8 +1151,8 @@ module Azure::CDN::Mgmt::V2016_10_02
1146
1151
  #
1147
1152
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1148
1153
  #
1149
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1150
- list_next_async(next_page_link, custom_headers).value!
1154
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1155
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1151
1156
  end
1152
1157
 
1153
1158
  #
@@ -1160,11 +1165,12 @@ module Azure::CDN::Mgmt::V2016_10_02
1160
1165
  #
1161
1166
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1162
1167
  #
1163
- def list_next_async(next_page_link, custom_headers = nil)
1168
+ def list_next_async(next_page_link, custom_headers:nil)
1164
1169
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1165
1170
 
1166
1171
 
1167
1172
  request_headers = {}
1173
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1168
1174
 
1169
1175
  # Set Headers
1170
1176
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1218,8 +1224,8 @@ module Azure::CDN::Mgmt::V2016_10_02
1218
1224
  #
1219
1225
  # @return [ProfileListResult] operation results.
1220
1226
  #
1221
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
1222
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
1227
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1228
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1223
1229
  response.body unless response.nil?
1224
1230
  end
1225
1231
 
@@ -1233,8 +1239,8 @@ module Azure::CDN::Mgmt::V2016_10_02
1233
1239
  #
1234
1240
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1235
1241
  #
1236
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
1237
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
1242
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1243
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1238
1244
  end
1239
1245
 
1240
1246
  #
@@ -1247,11 +1253,12 @@ module Azure::CDN::Mgmt::V2016_10_02
1247
1253
  #
1248
1254
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1249
1255
  #
1250
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
1256
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1251
1257
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1252
1258
 
1253
1259
 
1254
1260
  request_headers = {}
1261
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1255
1262
 
1256
1263
  # Set Headers
1257
1264
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1305,8 +1312,8 @@ module Azure::CDN::Mgmt::V2016_10_02
1305
1312
  #
1306
1313
  # @return [ResourceUsageListResult] operation results.
1307
1314
  #
1308
- def list_resource_usage_next(next_page_link, custom_headers = nil)
1309
- response = list_resource_usage_next_async(next_page_link, custom_headers).value!
1315
+ def list_resource_usage_next(next_page_link, custom_headers:nil)
1316
+ response = list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value!
1310
1317
  response.body unless response.nil?
1311
1318
  end
1312
1319
 
@@ -1320,8 +1327,8 @@ module Azure::CDN::Mgmt::V2016_10_02
1320
1327
  #
1321
1328
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1322
1329
  #
1323
- def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil)
1324
- list_resource_usage_next_async(next_page_link, custom_headers).value!
1330
+ def list_resource_usage_next_with_http_info(next_page_link, custom_headers:nil)
1331
+ list_resource_usage_next_async(next_page_link, custom_headers:custom_headers).value!
1325
1332
  end
1326
1333
 
1327
1334
  #
@@ -1334,11 +1341,12 @@ module Azure::CDN::Mgmt::V2016_10_02
1334
1341
  #
1335
1342
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1336
1343
  #
1337
- def list_resource_usage_next_async(next_page_link, custom_headers = nil)
1344
+ def list_resource_usage_next_async(next_page_link, custom_headers:nil)
1338
1345
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1339
1346
 
1340
1347
 
1341
1348
  request_headers = {}
1349
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1342
1350
 
1343
1351
  # Set Headers
1344
1352
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1391,12 +1399,12 @@ module Azure::CDN::Mgmt::V2016_10_02
1391
1399
  # @return [ProfileListResult] which provide lazy access to pages of the
1392
1400
  # response.
1393
1401
  #
1394
- def list_as_lazy(custom_headers = nil)
1395
- response = list_async(custom_headers).value!
1402
+ def list_as_lazy(custom_headers:nil)
1403
+ response = list_async(custom_headers:custom_headers).value!
1396
1404
  unless response.nil?
1397
1405
  page = response.body
1398
1406
  page.next_method = Proc.new do |next_page_link|
1399
- list_next_async(next_page_link, custom_headers)
1407
+ list_next_async(next_page_link, custom_headers:custom_headers)
1400
1408
  end
1401
1409
  page
1402
1410
  end
@@ -1413,12 +1421,12 @@ module Azure::CDN::Mgmt::V2016_10_02
1413
1421
  # @return [ProfileListResult] which provide lazy access to pages of the
1414
1422
  # response.
1415
1423
  #
1416
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
1417
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
1424
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1425
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1418
1426
  unless response.nil?
1419
1427
  page = response.body
1420
1428
  page.next_method = Proc.new do |next_page_link|
1421
- list_by_resource_group_next_async(next_page_link, custom_headers)
1429
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1422
1430
  end
1423
1431
  page
1424
1432
  end
@@ -1437,12 +1445,12 @@ module Azure::CDN::Mgmt::V2016_10_02
1437
1445
  # @return [ResourceUsageListResult] which provide lazy access to pages of the
1438
1446
  # response.
1439
1447
  #
1440
- def list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers = nil)
1441
- response = list_resource_usage_async(resource_group_name, profile_name, custom_headers).value!
1448
+ def list_resource_usage_as_lazy(resource_group_name, profile_name, custom_headers:nil)
1449
+ response = list_resource_usage_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
1442
1450
  unless response.nil?
1443
1451
  page = response.body
1444
1452
  page.next_method = Proc.new do |next_page_link|
1445
- list_resource_usage_next_async(next_page_link, custom_headers)
1453
+ list_resource_usage_next_async(next_page_link, custom_headers:custom_headers)
1446
1454
  end
1447
1455
  page
1448
1456
  end