azure_mgmt_resources 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/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_02_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_02_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_02_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_02_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_02_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_02_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
|
@@ -213,8 +215,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
213
215
|
#
|
214
216
|
# @return [Array<Provider>] operation results.
|
215
217
|
#
|
216
|
-
def list(top
|
217
|
-
first_page = list_as_lazy(top, expand, custom_headers)
|
218
|
+
def list(top:nil, expand:nil, custom_headers:nil)
|
219
|
+
first_page = list_as_lazy(top:top, expand:expand, custom_headers:custom_headers)
|
218
220
|
first_page.get_all_items
|
219
221
|
end
|
220
222
|
|
@@ -230,8 +232,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
230
232
|
#
|
231
233
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
232
234
|
#
|
233
|
-
def list_with_http_info(top
|
234
|
-
list_async(top, expand, custom_headers).value!
|
235
|
+
def list_with_http_info(top:nil, expand:nil, custom_headers:nil)
|
236
|
+
list_async(top:top, expand:expand, custom_headers:custom_headers).value!
|
235
237
|
end
|
236
238
|
|
237
239
|
#
|
@@ -246,12 +248,13 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
246
248
|
#
|
247
249
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
248
250
|
#
|
249
|
-
def list_async(top
|
251
|
+
def list_async(top:nil, expand:nil, custom_headers:nil)
|
250
252
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
251
253
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
252
254
|
|
253
255
|
|
254
256
|
request_headers = {}
|
257
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
255
258
|
|
256
259
|
# Set Headers
|
257
260
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -308,8 +311,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
308
311
|
#
|
309
312
|
# @return [Provider] operation results.
|
310
313
|
#
|
311
|
-
def get(resource_provider_namespace, expand
|
312
|
-
response = get_async(resource_provider_namespace, expand, custom_headers).value!
|
314
|
+
def get(resource_provider_namespace, expand:nil, custom_headers:nil)
|
315
|
+
response = get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value!
|
313
316
|
response.body unless response.nil?
|
314
317
|
end
|
315
318
|
|
@@ -325,8 +328,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
325
328
|
#
|
326
329
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
327
330
|
#
|
328
|
-
def get_with_http_info(resource_provider_namespace, expand
|
329
|
-
get_async(resource_provider_namespace, expand, custom_headers).value!
|
331
|
+
def get_with_http_info(resource_provider_namespace, expand:nil, custom_headers:nil)
|
332
|
+
get_async(resource_provider_namespace, expand:expand, custom_headers:custom_headers).value!
|
330
333
|
end
|
331
334
|
|
332
335
|
#
|
@@ -341,13 +344,14 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
341
344
|
#
|
342
345
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
343
346
|
#
|
344
|
-
def get_async(resource_provider_namespace, expand
|
347
|
+
def get_async(resource_provider_namespace, expand:nil, custom_headers:nil)
|
345
348
|
fail ArgumentError, 'resource_provider_namespace is nil' if resource_provider_namespace.nil?
|
346
349
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
347
350
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
348
351
|
|
349
352
|
|
350
353
|
request_headers = {}
|
354
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
351
355
|
|
352
356
|
# Set Headers
|
353
357
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -402,8 +406,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
402
406
|
#
|
403
407
|
# @return [ProviderListResult] operation results.
|
404
408
|
#
|
405
|
-
def list_next(next_page_link, custom_headers
|
406
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
409
|
+
def list_next(next_page_link, custom_headers:nil)
|
410
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
407
411
|
response.body unless response.nil?
|
408
412
|
end
|
409
413
|
|
@@ -417,8 +421,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
417
421
|
#
|
418
422
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
419
423
|
#
|
420
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
421
|
-
list_next_async(next_page_link, custom_headers).value!
|
424
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
425
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
422
426
|
end
|
423
427
|
|
424
428
|
#
|
@@ -431,11 +435,12 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
431
435
|
#
|
432
436
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
433
437
|
#
|
434
|
-
def list_next_async(next_page_link, custom_headers
|
438
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
435
439
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
436
440
|
|
437
441
|
|
438
442
|
request_headers = {}
|
443
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
439
444
|
|
440
445
|
# Set Headers
|
441
446
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -492,12 +497,12 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
492
497
|
# @return [ProviderListResult] which provide lazy access to pages of the
|
493
498
|
# response.
|
494
499
|
#
|
495
|
-
def list_as_lazy(top
|
496
|
-
response = list_async(top, expand, custom_headers).value!
|
500
|
+
def list_as_lazy(top:nil, expand:nil, custom_headers:nil)
|
501
|
+
response = list_async(top:top, expand:expand, custom_headers:custom_headers).value!
|
497
502
|
unless response.nil?
|
498
503
|
page = response.body
|
499
504
|
page.next_method = Proc.new do |next_page_link|
|
500
|
-
list_next_async(next_page_link, custom_headers)
|
505
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
501
506
|
end
|
502
507
|
page
|
503
508
|
end
|
@@ -35,8 +35,8 @@ module Azure::Resources::Mgmt::V2016_02_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_02_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_02_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_02_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_02_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_02_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_02_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_02_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_02_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_02_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_02_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_02_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_02_01::Models::ResourceGroup.mapper()
|
278
279
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -337,8 +338,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
337
338
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
338
339
|
# will be added to the HTTP request.
|
339
340
|
#
|
340
|
-
def delete(resource_group_name, custom_headers
|
341
|
-
response = delete_async(resource_group_name, custom_headers).value!
|
341
|
+
def delete(resource_group_name, custom_headers:nil)
|
342
|
+
response = delete_async(resource_group_name, custom_headers:custom_headers).value!
|
342
343
|
nil
|
343
344
|
end
|
344
345
|
|
@@ -351,9 +352,9 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
351
352
|
# @return [Concurrent::Promise] promise which provides async access to http
|
352
353
|
# response.
|
353
354
|
#
|
354
|
-
def delete_async(resource_group_name, custom_headers
|
355
|
+
def delete_async(resource_group_name, custom_headers:nil)
|
355
356
|
# Send request
|
356
|
-
promise = begin_delete_async(resource_group_name, custom_headers)
|
357
|
+
promise = begin_delete_async(resource_group_name, custom_headers:custom_headers)
|
357
358
|
|
358
359
|
promise = promise.then do |response|
|
359
360
|
# Defining deserialization method.
|
@@ -377,8 +378,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
377
378
|
#
|
378
379
|
# @return [ResourceGroup] operation results.
|
379
380
|
#
|
380
|
-
def get(resource_group_name, custom_headers
|
381
|
-
response = get_async(resource_group_name, custom_headers).value!
|
381
|
+
def get(resource_group_name, custom_headers:nil)
|
382
|
+
response = get_async(resource_group_name, custom_headers:custom_headers).value!
|
382
383
|
response.body unless response.nil?
|
383
384
|
end
|
384
385
|
|
@@ -392,8 +393,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
392
393
|
#
|
393
394
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
394
395
|
#
|
395
|
-
def get_with_http_info(resource_group_name, custom_headers
|
396
|
-
get_async(resource_group_name, custom_headers).value!
|
396
|
+
def get_with_http_info(resource_group_name, custom_headers:nil)
|
397
|
+
get_async(resource_group_name, custom_headers:custom_headers).value!
|
397
398
|
end
|
398
399
|
|
399
400
|
#
|
@@ -406,7 +407,7 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
406
407
|
#
|
407
408
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
408
409
|
#
|
409
|
-
def get_async(resource_group_name, custom_headers
|
410
|
+
def get_async(resource_group_name, custom_headers:nil)
|
410
411
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
411
412
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
412
413
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -416,6 +417,7 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
416
417
|
|
417
418
|
|
418
419
|
request_headers = {}
|
420
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
419
421
|
|
420
422
|
# Set Headers
|
421
423
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -475,8 +477,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
475
477
|
#
|
476
478
|
# @return [ResourceGroup] operation results.
|
477
479
|
#
|
478
|
-
def patch(resource_group_name, parameters, custom_headers
|
479
|
-
response = patch_async(resource_group_name, parameters, custom_headers).value!
|
480
|
+
def patch(resource_group_name, parameters, custom_headers:nil)
|
481
|
+
response = patch_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
480
482
|
response.body unless response.nil?
|
481
483
|
end
|
482
484
|
|
@@ -495,8 +497,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
495
497
|
#
|
496
498
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
497
499
|
#
|
498
|
-
def patch_with_http_info(resource_group_name, parameters, custom_headers
|
499
|
-
patch_async(resource_group_name, parameters, custom_headers).value!
|
500
|
+
def patch_with_http_info(resource_group_name, parameters, custom_headers:nil)
|
501
|
+
patch_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
500
502
|
end
|
501
503
|
|
502
504
|
#
|
@@ -514,7 +516,7 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
514
516
|
#
|
515
517
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
516
518
|
#
|
517
|
-
def patch_async(resource_group_name, parameters, custom_headers
|
519
|
+
def patch_async(resource_group_name, parameters, custom_headers:nil)
|
518
520
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
519
521
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
520
522
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -525,13 +527,12 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
525
527
|
|
526
528
|
|
527
529
|
request_headers = {}
|
530
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
528
531
|
|
529
532
|
# Set Headers
|
530
533
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
531
534
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
532
535
|
|
533
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
534
|
-
|
535
536
|
# Serialize Request
|
536
537
|
request_mapper = Azure::Resources::Mgmt::V2016_02_01::Models::ResourceGroup.mapper()
|
537
538
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -590,8 +591,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
590
591
|
#
|
591
592
|
# @return [ResourceGroupExportResult] operation results.
|
592
593
|
#
|
593
|
-
def export_template(resource_group_name, parameters, custom_headers
|
594
|
-
response = export_template_async(resource_group_name, parameters, custom_headers).value!
|
594
|
+
def export_template(resource_group_name, parameters, custom_headers:nil)
|
595
|
+
response = export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
595
596
|
response.body unless response.nil?
|
596
597
|
end
|
597
598
|
|
@@ -607,8 +608,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
607
608
|
#
|
608
609
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
609
610
|
#
|
610
|
-
def export_template_with_http_info(resource_group_name, parameters, custom_headers
|
611
|
-
export_template_async(resource_group_name, parameters, custom_headers).value!
|
611
|
+
def export_template_with_http_info(resource_group_name, parameters, custom_headers:nil)
|
612
|
+
export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
612
613
|
end
|
613
614
|
|
614
615
|
#
|
@@ -623,7 +624,7 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
623
624
|
#
|
624
625
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
625
626
|
#
|
626
|
-
def export_template_async(resource_group_name, parameters, custom_headers
|
627
|
+
def export_template_async(resource_group_name, parameters, custom_headers:nil)
|
627
628
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
628
629
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
629
630
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -634,13 +635,12 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
634
635
|
|
635
636
|
|
636
637
|
request_headers = {}
|
638
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
637
639
|
|
638
640
|
# Set Headers
|
639
641
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
640
642
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
641
643
|
|
642
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
643
|
-
|
644
644
|
# Serialize Request
|
645
645
|
request_mapper = Azure::Resources::Mgmt::V2016_02_01::Models::ExportTemplateRequest.mapper()
|
646
646
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -698,8 +698,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
698
698
|
#
|
699
699
|
# @return [Array<ResourceGroup>] operation results.
|
700
700
|
#
|
701
|
-
def list(filter
|
702
|
-
first_page = list_as_lazy(filter, top, custom_headers)
|
701
|
+
def list(filter:nil, top:nil, custom_headers:nil)
|
702
|
+
first_page = list_as_lazy(filter:filter, top:top, custom_headers:custom_headers)
|
703
703
|
first_page.get_all_items
|
704
704
|
end
|
705
705
|
|
@@ -714,8 +714,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
714
714
|
#
|
715
715
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
716
716
|
#
|
717
|
-
def list_with_http_info(filter
|
718
|
-
list_async(filter, top, custom_headers).value!
|
717
|
+
def list_with_http_info(filter:nil, top:nil, custom_headers:nil)
|
718
|
+
list_async(filter:filter, top:top, custom_headers:custom_headers).value!
|
719
719
|
end
|
720
720
|
|
721
721
|
#
|
@@ -729,12 +729,13 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
729
729
|
#
|
730
730
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
731
731
|
#
|
732
|
-
def list_async(filter
|
732
|
+
def list_async(filter:nil, top:nil, custom_headers:nil)
|
733
733
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
734
734
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
735
735
|
|
736
736
|
|
737
737
|
request_headers = {}
|
738
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
738
739
|
|
739
740
|
# Set Headers
|
740
741
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -788,8 +789,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
788
789
|
# will be added to the HTTP request.
|
789
790
|
#
|
790
791
|
#
|
791
|
-
def begin_delete(resource_group_name, custom_headers
|
792
|
-
response = begin_delete_async(resource_group_name, custom_headers).value!
|
792
|
+
def begin_delete(resource_group_name, custom_headers:nil)
|
793
|
+
response = begin_delete_async(resource_group_name, custom_headers:custom_headers).value!
|
793
794
|
nil
|
794
795
|
end
|
795
796
|
|
@@ -803,8 +804,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
803
804
|
#
|
804
805
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
805
806
|
#
|
806
|
-
def begin_delete_with_http_info(resource_group_name, custom_headers
|
807
|
-
begin_delete_async(resource_group_name, custom_headers).value!
|
807
|
+
def begin_delete_with_http_info(resource_group_name, custom_headers:nil)
|
808
|
+
begin_delete_async(resource_group_name, custom_headers:custom_headers).value!
|
808
809
|
end
|
809
810
|
|
810
811
|
#
|
@@ -817,7 +818,7 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
817
818
|
#
|
818
819
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
819
820
|
#
|
820
|
-
def begin_delete_async(resource_group_name, custom_headers
|
821
|
+
def begin_delete_async(resource_group_name, custom_headers:nil)
|
821
822
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
822
823
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
823
824
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -827,6 +828,7 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
827
828
|
|
828
829
|
|
829
830
|
request_headers = {}
|
831
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
830
832
|
|
831
833
|
# Set Headers
|
832
834
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -871,8 +873,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
871
873
|
#
|
872
874
|
# @return [ResourceListResult] operation results.
|
873
875
|
#
|
874
|
-
def list_resources_next(next_page_link, custom_headers
|
875
|
-
response = list_resources_next_async(next_page_link, custom_headers).value!
|
876
|
+
def list_resources_next(next_page_link, custom_headers:nil)
|
877
|
+
response = list_resources_next_async(next_page_link, custom_headers:custom_headers).value!
|
876
878
|
response.body unless response.nil?
|
877
879
|
end
|
878
880
|
|
@@ -886,8 +888,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
886
888
|
#
|
887
889
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
888
890
|
#
|
889
|
-
def list_resources_next_with_http_info(next_page_link, custom_headers
|
890
|
-
list_resources_next_async(next_page_link, custom_headers).value!
|
891
|
+
def list_resources_next_with_http_info(next_page_link, custom_headers:nil)
|
892
|
+
list_resources_next_async(next_page_link, custom_headers:custom_headers).value!
|
891
893
|
end
|
892
894
|
|
893
895
|
#
|
@@ -900,11 +902,12 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
900
902
|
#
|
901
903
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
902
904
|
#
|
903
|
-
def list_resources_next_async(next_page_link, custom_headers
|
905
|
+
def list_resources_next_async(next_page_link, custom_headers:nil)
|
904
906
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
905
907
|
|
906
908
|
|
907
909
|
request_headers = {}
|
910
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
908
911
|
|
909
912
|
# Set Headers
|
910
913
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -958,8 +961,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
958
961
|
#
|
959
962
|
# @return [ResourceGroupListResult] operation results.
|
960
963
|
#
|
961
|
-
def list_next(next_page_link, custom_headers
|
962
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
964
|
+
def list_next(next_page_link, custom_headers:nil)
|
965
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
963
966
|
response.body unless response.nil?
|
964
967
|
end
|
965
968
|
|
@@ -973,8 +976,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
973
976
|
#
|
974
977
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
975
978
|
#
|
976
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
977
|
-
list_next_async(next_page_link, custom_headers).value!
|
979
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
980
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
978
981
|
end
|
979
982
|
|
980
983
|
#
|
@@ -987,11 +990,12 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
987
990
|
#
|
988
991
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
989
992
|
#
|
990
|
-
def list_next_async(next_page_link, custom_headers
|
993
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
991
994
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
992
995
|
|
993
996
|
|
994
997
|
request_headers = {}
|
998
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
995
999
|
|
996
1000
|
# Set Headers
|
997
1001
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1050,12 +1054,12 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
1050
1054
|
# @return [ResourceListResult] which provide lazy access to pages of the
|
1051
1055
|
# response.
|
1052
1056
|
#
|
1053
|
-
def list_resources_as_lazy(resource_group_name, filter
|
1054
|
-
response = list_resources_async(resource_group_name, filter, expand, top, custom_headers).value!
|
1057
|
+
def list_resources_as_lazy(resource_group_name, filter:nil, expand:nil, top:nil, custom_headers:nil)
|
1058
|
+
response = list_resources_async(resource_group_name, filter:filter, expand:expand, top:top, custom_headers:custom_headers).value!
|
1055
1059
|
unless response.nil?
|
1056
1060
|
page = response.body
|
1057
1061
|
page.next_method = Proc.new do |next_page_link|
|
1058
|
-
list_resources_next_async(next_page_link, custom_headers)
|
1062
|
+
list_resources_next_async(next_page_link, custom_headers:custom_headers)
|
1059
1063
|
end
|
1060
1064
|
page
|
1061
1065
|
end
|
@@ -1073,12 +1077,12 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
1073
1077
|
# @return [ResourceGroupListResult] which provide lazy access to pages of the
|
1074
1078
|
# response.
|
1075
1079
|
#
|
1076
|
-
def list_as_lazy(filter
|
1077
|
-
response = list_async(filter, top, custom_headers).value!
|
1080
|
+
def list_as_lazy(filter:nil, top:nil, custom_headers:nil)
|
1081
|
+
response = list_async(filter:filter, top:top, custom_headers:custom_headers).value!
|
1078
1082
|
unless response.nil?
|
1079
1083
|
page = response.body
|
1080
1084
|
page.next_method = Proc.new do |next_page_link|
|
1081
|
-
list_next_async(next_page_link, custom_headers)
|
1085
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1082
1086
|
end
|
1083
1087
|
page
|
1084
1088
|
end
|