azure_mgmt_resources 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2016-02-01/generated/azure_mgmt_resources/deployment_operations.rb +21 -18
- data/lib/2016-02-01/generated/azure_mgmt_resources/deployments.rb +65 -60
- data/lib/2016-02-01/generated/azure_mgmt_resources/providers.rb +33 -28
- data/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb +70 -66
- data/lib/2016-02-01/generated/azure_mgmt_resources/resource_management_client.rb +4 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/resources.rb +233 -46
- data/lib/2016-02-01/generated/azure_mgmt_resources/tags.rb +39 -33
- data/lib/2016-07-01/generated/azure_mgmt_resources/deployment_operations.rb +21 -18
- data/lib/2016-07-01/generated/azure_mgmt_resources/deployments.rb +65 -60
- data/lib/2016-07-01/generated/azure_mgmt_resources/providers.rb +33 -28
- data/lib/2016-07-01/generated/azure_mgmt_resources/resource_groups.rb +70 -66
- data/lib/2016-07-01/generated/azure_mgmt_resources/resource_management_client.rb +4 -1
- data/lib/2016-07-01/generated/azure_mgmt_resources/resources.rb +233 -46
- data/lib/2016-07-01/generated/azure_mgmt_resources/tags.rb +39 -33
- data/lib/2016-09-01/generated/azure_mgmt_resources/deployment_operations.rb +21 -18
- data/lib/2016-09-01/generated/azure_mgmt_resources/deployments.rb +65 -60
- data/lib/2016-09-01/generated/azure_mgmt_resources/providers.rb +33 -28
- data/lib/2016-09-01/generated/azure_mgmt_resources/resource_groups.rb +70 -66
- data/lib/2016-09-01/generated/azure_mgmt_resources/resource_management_client.rb +4 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/resources.rb +428 -84
- data/lib/2016-09-01/generated/azure_mgmt_resources/tags.rb +39 -33
- data/lib/2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb +21 -18
- data/lib/2017-05-10/generated/azure_mgmt_resources/deployments.rb +65 -60
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/plan.rb +11 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group.rb +1 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/providers.rb +33 -28
- data/lib/2017-05-10/generated/azure_mgmt_resources/resource_groups.rb +55 -53
- data/lib/2017-05-10/generated/azure_mgmt_resources/resource_management_client.rb +4 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/resources.rb +453 -108
- data/lib/2017-05-10/generated/azure_mgmt_resources/tags.rb +39 -33
- data/lib/profiles/latest/modules/resources_profile_module.rb +174 -155
- data/lib/profiles/latest/resources_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/resources_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/modules/resources_profile_module.rb +171 -152
- data/lib/profiles/v2017_03_09/resources_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/resources_v2017_03_09_profile_client.rb +28 -9
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -31,8 +31,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
31
31
|
#
|
32
32
|
# @return [Provider] operation results.
|
33
33
|
#
|
34
|
-
def unregister(resource_provider_namespace, custom_headers
|
35
|
-
response = unregister_async(resource_provider_namespace, custom_headers).value!
|
34
|
+
def unregister(resource_provider_namespace, custom_headers:nil)
|
35
|
+
response = unregister_async(resource_provider_namespace, custom_headers:custom_headers).value!
|
36
36
|
response.body unless response.nil?
|
37
37
|
end
|
38
38
|
|
@@ -46,8 +46,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
46
46
|
#
|
47
47
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
48
|
#
|
49
|
-
def unregister_with_http_info(resource_provider_namespace, custom_headers
|
50
|
-
unregister_async(resource_provider_namespace, custom_headers).value!
|
49
|
+
def unregister_with_http_info(resource_provider_namespace, custom_headers:nil)
|
50
|
+
unregister_async(resource_provider_namespace, custom_headers:custom_headers).value!
|
51
51
|
end
|
52
52
|
|
53
53
|
#
|
@@ -60,13 +60,14 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
60
60
|
#
|
61
61
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
62
|
#
|
63
|
-
def unregister_async(resource_provider_namespace, custom_headers
|
63
|
+
def unregister_async(resource_provider_namespace, custom_headers:nil)
|
64
64
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
65
65
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
66
66
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
67
67
|
|
68
68
|
|
69
69
|
request_headers = {}
|
70
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
70
71
|
|
71
72
|
# Set Headers
|
72
73
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -121,8 +122,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
121
122
|
#
|
122
123
|
# @return [Provider] operation results.
|
123
124
|
#
|
124
|
-
def register(resource_provider_namespace, custom_headers
|
125
|
-
response = register_async(resource_provider_namespace, custom_headers).value!
|
125
|
+
def register(resource_provider_namespace, custom_headers:nil)
|
126
|
+
response = register_async(resource_provider_namespace, custom_headers:custom_headers).value!
|
126
127
|
response.body unless response.nil?
|
127
128
|
end
|
128
129
|
|
@@ -136,8 +137,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
136
137
|
#
|
137
138
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
138
139
|
#
|
139
|
-
def register_with_http_info(resource_provider_namespace, custom_headers
|
140
|
-
register_async(resource_provider_namespace, custom_headers).value!
|
140
|
+
def register_with_http_info(resource_provider_namespace, custom_headers:nil)
|
141
|
+
register_async(resource_provider_namespace, custom_headers:custom_headers).value!
|
141
142
|
end
|
142
143
|
|
143
144
|
#
|
@@ -150,13 +151,14 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
150
151
|
#
|
151
152
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
152
153
|
#
|
153
|
-
def register_async(resource_provider_namespace, custom_headers
|
154
|
+
def register_async(resource_provider_namespace, custom_headers:nil)
|
154
155
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
155
156
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
156
157
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
157
158
|
|
158
159
|
|
159
160
|
request_headers = {}
|
161
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
160
162
|
|
161
163
|
# Set Headers
|
162
164
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -215,8 +217,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
215
217
|
#
|
216
218
|
# @return [Array<Provider>] operation results.
|
217
219
|
#
|
218
|
-
def list(top
|
219
|
-
first_page = list_as_lazy(top, expand, custom_headers)
|
220
|
+
def list(top:nil, expand:nil, custom_headers:nil)
|
221
|
+
first_page = list_as_lazy(top:top, expand:expand, custom_headers:custom_headers)
|
220
222
|
first_page.get_all_items
|
221
223
|
end
|
222
224
|
|
@@ -234,8 +236,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
234
236
|
#
|
235
237
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
236
238
|
#
|
237
|
-
def list_with_http_info(top
|
238
|
-
list_async(top, expand, custom_headers).value!
|
239
|
+
def list_with_http_info(top:nil, expand:nil, custom_headers:nil)
|
240
|
+
list_async(top:top, expand:expand, custom_headers:custom_headers).value!
|
239
241
|
end
|
240
242
|
|
241
243
|
#
|
@@ -252,12 +254,13 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
252
254
|
#
|
253
255
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
254
256
|
#
|
255
|
-
def list_async(top
|
257
|
+
def list_async(top:nil, expand:nil, custom_headers:nil)
|
256
258
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
257
259
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
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
|
@@ -314,8 +317,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
314
317
|
#
|
315
318
|
# @return [Provider] operation results.
|
316
319
|
#
|
317
|
-
def get(resource_provider_namespace, expand
|
318
|
-
response = get_async(resource_provider_namespace, expand, custom_headers).value!
|
320
|
+
def get(resource_provider_namespace, expand:nil, custom_headers:nil)
|
321
|
+
response = get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value!
|
319
322
|
response.body unless response.nil?
|
320
323
|
end
|
321
324
|
|
@@ -331,8 +334,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
331
334
|
#
|
332
335
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
333
336
|
#
|
334
|
-
def get_with_http_info(resource_provider_namespace, expand
|
335
|
-
get_async(resource_provider_namespace, expand, custom_headers).value!
|
337
|
+
def get_with_http_info(resource_provider_namespace, expand:nil, custom_headers:nil)
|
338
|
+
get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value!
|
336
339
|
end
|
337
340
|
|
338
341
|
#
|
@@ -347,13 +350,14 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
347
350
|
#
|
348
351
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
349
352
|
#
|
350
|
-
def get_async(resource_provider_namespace, expand
|
353
|
+
def get_async(resource_provider_namespace, expand:nil, custom_headers:nil)
|
351
354
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
352
355
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
353
356
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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::Resources::Mgmt::V2016_09_01
|
|
408
412
|
#
|
409
413
|
# @return [ProviderListResult] operation results.
|
410
414
|
#
|
411
|
-
def list_next(next_page_link, custom_headers
|
412
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
415
|
+
def list_next(next_page_link, custom_headers:nil)
|
416
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
413
417
|
response.body unless response.nil?
|
414
418
|
end
|
415
419
|
|
@@ -423,8 +427,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
423
427
|
#
|
424
428
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
425
429
|
#
|
426
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
427
|
-
list_next_async(next_page_link, custom_headers).value!
|
430
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
431
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
428
432
|
end
|
429
433
|
|
430
434
|
#
|
@@ -437,11 +441,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
437
441
|
#
|
438
442
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
439
443
|
#
|
440
|
-
def list_next_async(next_page_link, custom_headers
|
444
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
441
445
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
442
446
|
|
443
447
|
|
444
448
|
request_headers = {}
|
449
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
445
450
|
|
446
451
|
# Set Headers
|
447
452
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -500,12 +505,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
500
505
|
# @return [ProviderListResult] which provide lazy access to pages of the
|
501
506
|
# response.
|
502
507
|
#
|
503
|
-
def list_as_lazy(top
|
504
|
-
response = list_async(top, expand, custom_headers).value!
|
508
|
+
def list_as_lazy(top:nil, expand:nil, custom_headers:nil)
|
509
|
+
response = list_async(top:top, expand:expand, custom_headers:custom_headers).value!
|
505
510
|
unless response.nil?
|
506
511
|
page = response.body
|
507
512
|
page.next_method = Proc.new do |next_page_link|
|
508
|
-
list_next_async(next_page_link, custom_headers)
|
513
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
509
514
|
end
|
510
515
|
page
|
511
516
|
end
|
@@ -35,8 +35,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
35
35
|
#
|
36
36
|
# @return [Array<GenericResource>] operation results.
|
37
37
|
#
|
38
|
-
def list_resources(resource_group_name, filter
|
39
|
-
first_page = list_resources_as_lazy(resource_group_name, filter, expand, top, custom_headers)
|
38
|
+
def list_resources(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil)
|
39
|
+
first_page = list_resources_as_lazy(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers)
|
40
40
|
first_page.get_all_items
|
41
41
|
end
|
42
42
|
|
@@ -54,8 +54,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
54
54
|
#
|
55
55
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
56
56
|
#
|
57
|
-
def list_resources_with_http_info(resource_group_name, filter
|
58
|
-
list_resources_async(resource_group_name, filter, expand, top, custom_headers).value!
|
57
|
+
def list_resources_with_http_info(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil)
|
58
|
+
list_resources_async(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers).value!
|
59
59
|
end
|
60
60
|
|
61
61
|
#
|
@@ -72,7 +72,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
72
72
|
#
|
73
73
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
74
|
#
|
75
|
-
def list_resources_async(resource_group_name, filter
|
75
|
+
def list_resources_async(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil)
|
76
76
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
77
77
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
78
78
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -82,6 +82,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
82
82
|
|
83
83
|
|
84
84
|
request_headers = {}
|
85
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
85
86
|
|
86
87
|
# Set Headers
|
87
88
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -136,8 +137,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
136
137
|
#
|
137
138
|
# @return [Boolean] operation results.
|
138
139
|
#
|
139
|
-
def check_existence(resource_group_name, custom_headers
|
140
|
-
response = check_existence_async(resource_group_name, custom_headers).value!
|
140
|
+
def check_existence(resource_group_name, custom_headers:nil)
|
141
|
+
response = check_existence_async(resource_group_name, custom_headers:custom_headers).value!
|
141
142
|
response.body unless response.nil?
|
142
143
|
end
|
143
144
|
|
@@ -151,8 +152,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
151
152
|
#
|
152
153
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
153
154
|
#
|
154
|
-
def check_existence_with_http_info(resource_group_name, custom_headers
|
155
|
-
check_existence_async(resource_group_name, custom_headers).value!
|
155
|
+
def check_existence_with_http_info(resource_group_name, custom_headers:nil)
|
156
|
+
check_existence_async(resource_group_name, custom_headers:custom_headers).value!
|
156
157
|
end
|
157
158
|
|
158
159
|
#
|
@@ -165,7 +166,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
165
166
|
#
|
166
167
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
167
168
|
#
|
168
|
-
def check_existence_async(resource_group_name, custom_headers
|
169
|
+
def check_existence_async(resource_group_name, custom_headers:nil)
|
169
170
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
170
171
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
171
172
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -175,6 +176,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
175
176
|
|
176
177
|
|
177
178
|
request_headers = {}
|
179
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
178
180
|
|
179
181
|
# Set Headers
|
180
182
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -222,8 +224,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
222
224
|
#
|
223
225
|
# @return [ResourceGroup] operation results.
|
224
226
|
#
|
225
|
-
def create_or_update(resource_group_name, parameters, custom_headers
|
226
|
-
response = create_or_update_async(resource_group_name, parameters, custom_headers).value!
|
227
|
+
def create_or_update(resource_group_name, parameters, custom_headers:nil)
|
228
|
+
response = create_or_update_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
227
229
|
response.body unless response.nil?
|
228
230
|
end
|
229
231
|
|
@@ -239,8 +241,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
239
241
|
#
|
240
242
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
241
243
|
#
|
242
|
-
def create_or_update_with_http_info(resource_group_name, parameters, custom_headers
|
243
|
-
create_or_update_async(resource_group_name, parameters, custom_headers).value!
|
244
|
+
def create_or_update_with_http_info(resource_group_name, parameters, custom_headers:nil)
|
245
|
+
create_or_update_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
244
246
|
end
|
245
247
|
|
246
248
|
#
|
@@ -255,7 +257,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
255
257
|
#
|
256
258
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
257
259
|
#
|
258
|
-
def create_or_update_async(resource_group_name, parameters, custom_headers
|
260
|
+
def create_or_update_async(resource_group_name, parameters, custom_headers:nil)
|
259
261
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
260
262
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
261
263
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -266,13 +268,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
266
268
|
|
267
269
|
|
268
270
|
request_headers = {}
|
271
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
269
272
|
|
270
273
|
# Set Headers
|
271
274
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
272
275
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
273
276
|
|
274
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
275
|
-
|
276
277
|
# Serialize Request
|
277
278
|
request_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::ResourceGroup.mapper()
|
278
279
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -341,8 +342,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
341
342
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
342
343
|
# will be added to the HTTP request.
|
343
344
|
#
|
344
|
-
def delete(resource_group_name, custom_headers
|
345
|
-
response = delete_async(resource_group_name, custom_headers).value!
|
345
|
+
def delete(resource_group_name, custom_headers:nil)
|
346
|
+
response = delete_async(resource_group_name, custom_headers:custom_headers).value!
|
346
347
|
nil
|
347
348
|
end
|
348
349
|
|
@@ -355,9 +356,9 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
355
356
|
# @return [Concurrent::Promise] promise which provides async access to http
|
356
357
|
# response.
|
357
358
|
#
|
358
|
-
def delete_async(resource_group_name, custom_headers
|
359
|
+
def delete_async(resource_group_name, custom_headers:nil)
|
359
360
|
# Send request
|
360
|
-
promise = begin_delete_async(resource_group_name, custom_headers)
|
361
|
+
promise = begin_delete_async(resource_group_name, custom_headers:custom_headers)
|
361
362
|
|
362
363
|
promise = promise.then do |response|
|
363
364
|
# Defining deserialization method.
|
@@ -381,8 +382,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
381
382
|
#
|
382
383
|
# @return [ResourceGroup] operation results.
|
383
384
|
#
|
384
|
-
def get(resource_group_name, custom_headers
|
385
|
-
response = get_async(resource_group_name, custom_headers).value!
|
385
|
+
def get(resource_group_name, custom_headers:nil)
|
386
|
+
response = get_async(resource_group_name, custom_headers:custom_headers).value!
|
386
387
|
response.body unless response.nil?
|
387
388
|
end
|
388
389
|
|
@@ -396,8 +397,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
396
397
|
#
|
397
398
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
398
399
|
#
|
399
|
-
def get_with_http_info(resource_group_name, custom_headers
|
400
|
-
get_async(resource_group_name, custom_headers).value!
|
400
|
+
def get_with_http_info(resource_group_name, custom_headers:nil)
|
401
|
+
get_async(resource_group_name, custom_headers:custom_headers).value!
|
401
402
|
end
|
402
403
|
|
403
404
|
#
|
@@ -410,7 +411,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
410
411
|
#
|
411
412
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
412
413
|
#
|
413
|
-
def get_async(resource_group_name, custom_headers
|
414
|
+
def get_async(resource_group_name, custom_headers:nil)
|
414
415
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
415
416
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
416
417
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -420,6 +421,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
420
421
|
|
421
422
|
|
422
423
|
request_headers = {}
|
424
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
423
425
|
|
424
426
|
# Set Headers
|
425
427
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -480,8 +482,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
480
482
|
#
|
481
483
|
# @return [ResourceGroup] operation results.
|
482
484
|
#
|
483
|
-
def patch(resource_group_name, parameters, custom_headers
|
484
|
-
response = patch_async(resource_group_name, parameters, custom_headers).value!
|
485
|
+
def patch(resource_group_name, parameters, custom_headers:nil)
|
486
|
+
response = patch_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
485
487
|
response.body unless response.nil?
|
486
488
|
end
|
487
489
|
|
@@ -501,8 +503,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
501
503
|
#
|
502
504
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
503
505
|
#
|
504
|
-
def patch_with_http_info(resource_group_name, parameters, custom_headers
|
505
|
-
patch_async(resource_group_name, parameters, custom_headers).value!
|
506
|
+
def patch_with_http_info(resource_group_name, parameters, custom_headers:nil)
|
507
|
+
patch_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
506
508
|
end
|
507
509
|
|
508
510
|
#
|
@@ -521,7 +523,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
521
523
|
#
|
522
524
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
523
525
|
#
|
524
|
-
def patch_async(resource_group_name, parameters, custom_headers
|
526
|
+
def patch_async(resource_group_name, parameters, custom_headers:nil)
|
525
527
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
526
528
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
527
529
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -532,13 +534,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
532
534
|
|
533
535
|
|
534
536
|
request_headers = {}
|
537
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
535
538
|
|
536
539
|
# Set Headers
|
537
540
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
538
541
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
539
542
|
|
540
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
541
|
-
|
542
543
|
# Serialize Request
|
543
544
|
request_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::ResourceGroup.mapper()
|
544
545
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -597,8 +598,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
597
598
|
#
|
598
599
|
# @return [ResourceGroupExportResult] operation results.
|
599
600
|
#
|
600
|
-
def export_template(resource_group_name, parameters, custom_headers
|
601
|
-
response = export_template_async(resource_group_name, parameters, custom_headers).value!
|
601
|
+
def export_template(resource_group_name, parameters, custom_headers:nil)
|
602
|
+
response = export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
602
603
|
response.body unless response.nil?
|
603
604
|
end
|
604
605
|
|
@@ -614,8 +615,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
614
615
|
#
|
615
616
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
616
617
|
#
|
617
|
-
def export_template_with_http_info(resource_group_name, parameters, custom_headers
|
618
|
-
export_template_async(resource_group_name, parameters, custom_headers).value!
|
618
|
+
def export_template_with_http_info(resource_group_name, parameters, custom_headers:nil)
|
619
|
+
export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
619
620
|
end
|
620
621
|
|
621
622
|
#
|
@@ -630,7 +631,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
630
631
|
#
|
631
632
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
632
633
|
#
|
633
|
-
def export_template_async(resource_group_name, parameters, custom_headers
|
634
|
+
def export_template_async(resource_group_name, parameters, custom_headers:nil)
|
634
635
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
635
636
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
636
637
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -641,13 +642,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
641
642
|
|
642
643
|
|
643
644
|
request_headers = {}
|
645
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
644
646
|
|
645
647
|
# Set Headers
|
646
648
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
647
649
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
648
650
|
|
649
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
650
|
-
|
651
651
|
# Serialize Request
|
652
652
|
request_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::ExportTemplateRequest.mapper()
|
653
653
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -705,8 +705,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
705
705
|
#
|
706
706
|
# @return [Array<ResourceGroup>] operation results.
|
707
707
|
#
|
708
|
-
def list(filter
|
709
|
-
first_page = list_as_lazy(filter, top, custom_headers)
|
708
|
+
def list(filter:nil, top:nil, custom_headers:nil)
|
709
|
+
first_page = list_as_lazy(filter:filter, top:top, custom_headers:custom_headers)
|
710
710
|
first_page.get_all_items
|
711
711
|
end
|
712
712
|
|
@@ -721,8 +721,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
721
721
|
#
|
722
722
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
723
723
|
#
|
724
|
-
def list_with_http_info(filter
|
725
|
-
list_async(filter, top, custom_headers).value!
|
724
|
+
def list_with_http_info(filter:nil, top:nil, custom_headers:nil)
|
725
|
+
list_async(filter:filter, top:top, custom_headers:custom_headers).value!
|
726
726
|
end
|
727
727
|
|
728
728
|
#
|
@@ -736,12 +736,13 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
736
736
|
#
|
737
737
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
738
738
|
#
|
739
|
-
def list_async(filter
|
739
|
+
def list_async(filter:nil, top:nil, custom_headers:nil)
|
740
740
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
741
741
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
742
742
|
|
743
743
|
|
744
744
|
request_headers = {}
|
745
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
745
746
|
|
746
747
|
# Set Headers
|
747
748
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -799,8 +800,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
799
800
|
# will be added to the HTTP request.
|
800
801
|
#
|
801
802
|
#
|
802
|
-
def begin_delete(resource_group_name, custom_headers
|
803
|
-
response = begin_delete_async(resource_group_name, custom_headers).value!
|
803
|
+
def begin_delete(resource_group_name, custom_headers:nil)
|
804
|
+
response = begin_delete_async(resource_group_name, custom_headers:custom_headers).value!
|
804
805
|
nil
|
805
806
|
end
|
806
807
|
|
@@ -818,8 +819,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
818
819
|
#
|
819
820
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
820
821
|
#
|
821
|
-
def begin_delete_with_http_info(resource_group_name, custom_headers
|
822
|
-
begin_delete_async(resource_group_name, custom_headers).value!
|
822
|
+
def begin_delete_with_http_info(resource_group_name, custom_headers:nil)
|
823
|
+
begin_delete_async(resource_group_name, custom_headers:custom_headers).value!
|
823
824
|
end
|
824
825
|
|
825
826
|
#
|
@@ -836,7 +837,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
836
837
|
#
|
837
838
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
838
839
|
#
|
839
|
-
def begin_delete_async(resource_group_name, custom_headers
|
840
|
+
def begin_delete_async(resource_group_name, custom_headers:nil)
|
840
841
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
841
842
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
842
843
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -846,6 +847,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
846
847
|
|
847
848
|
|
848
849
|
request_headers = {}
|
850
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
849
851
|
|
850
852
|
# Set Headers
|
851
853
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -890,8 +892,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
890
892
|
#
|
891
893
|
# @return [ResourceListResult] operation results.
|
892
894
|
#
|
893
|
-
def list_resources_next(next_page_link, custom_headers
|
894
|
-
response = list_resources_next_async(next_page_link, custom_headers).value!
|
895
|
+
def list_resources_next(next_page_link, custom_headers:nil)
|
896
|
+
response = list_resources_next_async(next_page_link, custom_headers:custom_headers).value!
|
895
897
|
response.body unless response.nil?
|
896
898
|
end
|
897
899
|
|
@@ -905,8 +907,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
905
907
|
#
|
906
908
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
907
909
|
#
|
908
|
-
def list_resources_next_with_http_info(next_page_link, custom_headers
|
909
|
-
list_resources_next_async(next_page_link, custom_headers).value!
|
910
|
+
def list_resources_next_with_http_info(next_page_link, custom_headers:nil)
|
911
|
+
list_resources_next_async(next_page_link, custom_headers:custom_headers).value!
|
910
912
|
end
|
911
913
|
|
912
914
|
#
|
@@ -919,11 +921,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
919
921
|
#
|
920
922
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
921
923
|
#
|
922
|
-
def list_resources_next_async(next_page_link, custom_headers
|
924
|
+
def list_resources_next_async(next_page_link, custom_headers:nil)
|
923
925
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
924
926
|
|
925
927
|
|
926
928
|
request_headers = {}
|
929
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
927
930
|
|
928
931
|
# Set Headers
|
929
932
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -977,8 +980,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
977
980
|
#
|
978
981
|
# @return [ResourceGroupListResult] operation results.
|
979
982
|
#
|
980
|
-
def list_next(next_page_link, custom_headers
|
981
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
983
|
+
def list_next(next_page_link, custom_headers:nil)
|
984
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
982
985
|
response.body unless response.nil?
|
983
986
|
end
|
984
987
|
|
@@ -992,8 +995,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
992
995
|
#
|
993
996
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
994
997
|
#
|
995
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
996
|
-
list_next_async(next_page_link, custom_headers).value!
|
998
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
999
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
997
1000
|
end
|
998
1001
|
|
999
1002
|
#
|
@@ -1006,11 +1009,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
1006
1009
|
#
|
1007
1010
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1008
1011
|
#
|
1009
|
-
def list_next_async(next_page_link, custom_headers
|
1012
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
1010
1013
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1011
1014
|
|
1012
1015
|
|
1013
1016
|
request_headers = {}
|
1017
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1014
1018
|
|
1015
1019
|
# Set Headers
|
1016
1020
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1069,12 +1073,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
1069
1073
|
# @return [ResourceListResult] which provide lazy access to pages of the
|
1070
1074
|
# response.
|
1071
1075
|
#
|
1072
|
-
def list_resources_as_lazy(resource_group_name, filter
|
1073
|
-
response = list_resources_async(resource_group_name, filter, expand, top, custom_headers).value!
|
1076
|
+
def list_resources_as_lazy(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil)
|
1077
|
+
response = list_resources_async(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers).value!
|
1074
1078
|
unless response.nil?
|
1075
1079
|
page = response.body
|
1076
1080
|
page.next_method = Proc.new do |next_page_link|
|
1077
|
-
list_resources_next_async(next_page_link, custom_headers)
|
1081
|
+
list_resources_next_async(next_page_link, custom_headers:custom_headers)
|
1078
1082
|
end
|
1079
1083
|
page
|
1080
1084
|
end
|
@@ -1092,12 +1096,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
1092
1096
|
# @return [ResourceGroupListResult] which provide lazy access to pages of the
|
1093
1097
|
# response.
|
1094
1098
|
#
|
1095
|
-
def list_as_lazy(filter
|
1096
|
-
response = list_async(filter, top, custom_headers).value!
|
1099
|
+
def list_as_lazy(filter:nil, top:nil, custom_headers:nil)
|
1100
|
+
response = list_async(filter:filter, top:top, custom_headers:custom_headers).value!
|
1097
1101
|
unless response.nil?
|
1098
1102
|
page = response.body
|
1099
1103
|
page.next_method = Proc.new do |next_page_link|
|
1100
|
-
list_next_async(next_page_link, custom_headers)
|
1104
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1101
1105
|
end
|
1102
1106
|
page
|
1103
1107
|
end
|