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
@@ -24,6 +24,9 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
24
24
|
# @return [String] The promotion code.
|
25
25
|
attr_accessor :promotion_code
|
26
26
|
|
27
|
+
# @return [String] The plan's version.
|
28
|
+
attr_accessor :version
|
29
|
+
|
27
30
|
|
28
31
|
#
|
29
32
|
# Mapper for Plan class as Ruby Hash.
|
@@ -69,6 +72,14 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
69
72
|
type: {
|
70
73
|
name: 'String'
|
71
74
|
}
|
75
|
+
},
|
76
|
+
version: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'version',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
72
83
|
}
|
73
84
|
}
|
74
85
|
}
|
@@ -22,7 +22,7 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
22
22
|
attr_accessor :properties
|
23
23
|
|
24
24
|
# @return [String] The location of the resource group. It cannot be
|
25
|
-
# changed after the resource group has been created. It
|
25
|
+
# changed after the resource group has been created. It must be one of
|
26
26
|
# the supported Azure locations.
|
27
27
|
attr_accessor :location
|
28
28
|
|
@@ -31,8 +31,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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::V2017_05_10
|
|
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
|
@@ -31,8 +31,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
31
31
|
#
|
32
32
|
# @return [Boolean] operation results.
|
33
33
|
#
|
34
|
-
def check_existence(resource_group_name, custom_headers
|
35
|
-
response = check_existence_async(resource_group_name, custom_headers).value!
|
34
|
+
def check_existence(resource_group_name, custom_headers:nil)
|
35
|
+
response = check_existence_async(resource_group_name, 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::V2017_05_10
|
|
46
46
|
#
|
47
47
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
48
|
#
|
49
|
-
def check_existence_with_http_info(resource_group_name, custom_headers
|
50
|
-
check_existence_async(resource_group_name, custom_headers).value!
|
49
|
+
def check_existence_with_http_info(resource_group_name, custom_headers:nil)
|
50
|
+
check_existence_async(resource_group_name, custom_headers:custom_headers).value!
|
51
51
|
end
|
52
52
|
|
53
53
|
#
|
@@ -60,7 +60,7 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
60
60
|
#
|
61
61
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
62
|
#
|
63
|
-
def check_existence_async(resource_group_name, custom_headers
|
63
|
+
def check_existence_async(resource_group_name, custom_headers:nil)
|
64
64
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
65
65
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
66
66
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -70,6 +70,7 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
70
70
|
|
71
71
|
|
72
72
|
request_headers = {}
|
73
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
73
74
|
|
74
75
|
# Set Headers
|
75
76
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -117,8 +118,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
117
118
|
#
|
118
119
|
# @return [ResourceGroup] operation results.
|
119
120
|
#
|
120
|
-
def create_or_update(resource_group_name, parameters, custom_headers
|
121
|
-
response = create_or_update_async(resource_group_name, parameters, custom_headers).value!
|
121
|
+
def create_or_update(resource_group_name, parameters, custom_headers:nil)
|
122
|
+
response = create_or_update_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
122
123
|
response.body unless response.nil?
|
123
124
|
end
|
124
125
|
|
@@ -134,8 +135,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
134
135
|
#
|
135
136
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
136
137
|
#
|
137
|
-
def create_or_update_with_http_info(resource_group_name, parameters, custom_headers
|
138
|
-
create_or_update_async(resource_group_name, parameters, custom_headers).value!
|
138
|
+
def create_or_update_with_http_info(resource_group_name, parameters, custom_headers:nil)
|
139
|
+
create_or_update_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
139
140
|
end
|
140
141
|
|
141
142
|
#
|
@@ -150,7 +151,7 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
150
151
|
#
|
151
152
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
152
153
|
#
|
153
|
-
def create_or_update_async(resource_group_name, parameters, custom_headers
|
154
|
+
def create_or_update_async(resource_group_name, parameters, custom_headers:nil)
|
154
155
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
155
156
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
156
157
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -161,13 +162,12 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
161
162
|
|
162
163
|
|
163
164
|
request_headers = {}
|
165
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
164
166
|
|
165
167
|
# Set Headers
|
166
168
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
167
169
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
168
170
|
|
169
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
170
|
-
|
171
171
|
# Serialize Request
|
172
172
|
request_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceGroup.mapper()
|
173
173
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -236,8 +236,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
236
236
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
237
237
|
# will be added to the HTTP request.
|
238
238
|
#
|
239
|
-
def delete(resource_group_name, custom_headers
|
240
|
-
response = delete_async(resource_group_name, custom_headers).value!
|
239
|
+
def delete(resource_group_name, custom_headers:nil)
|
240
|
+
response = delete_async(resource_group_name, custom_headers:custom_headers).value!
|
241
241
|
nil
|
242
242
|
end
|
243
243
|
|
@@ -250,9 +250,9 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
250
250
|
# @return [Concurrent::Promise] promise which provides async access to http
|
251
251
|
# response.
|
252
252
|
#
|
253
|
-
def delete_async(resource_group_name, custom_headers
|
253
|
+
def delete_async(resource_group_name, custom_headers:nil)
|
254
254
|
# Send request
|
255
|
-
promise = begin_delete_async(resource_group_name, custom_headers)
|
255
|
+
promise = begin_delete_async(resource_group_name, custom_headers:custom_headers)
|
256
256
|
|
257
257
|
promise = promise.then do |response|
|
258
258
|
# Defining deserialization method.
|
@@ -276,8 +276,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
276
276
|
#
|
277
277
|
# @return [ResourceGroup] operation results.
|
278
278
|
#
|
279
|
-
def get(resource_group_name, custom_headers
|
280
|
-
response = get_async(resource_group_name, custom_headers).value!
|
279
|
+
def get(resource_group_name, custom_headers:nil)
|
280
|
+
response = get_async(resource_group_name, custom_headers:custom_headers).value!
|
281
281
|
response.body unless response.nil?
|
282
282
|
end
|
283
283
|
|
@@ -291,8 +291,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
291
291
|
#
|
292
292
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
293
293
|
#
|
294
|
-
def get_with_http_info(resource_group_name, custom_headers
|
295
|
-
get_async(resource_group_name, custom_headers).value!
|
294
|
+
def get_with_http_info(resource_group_name, custom_headers:nil)
|
295
|
+
get_async(resource_group_name, custom_headers:custom_headers).value!
|
296
296
|
end
|
297
297
|
|
298
298
|
#
|
@@ -305,7 +305,7 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
305
305
|
#
|
306
306
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
307
307
|
#
|
308
|
-
def get_async(resource_group_name, custom_headers
|
308
|
+
def get_async(resource_group_name, custom_headers:nil)
|
309
309
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
310
310
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
311
311
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -315,6 +315,7 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
315
315
|
|
316
316
|
|
317
317
|
request_headers = {}
|
318
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
318
319
|
|
319
320
|
# Set Headers
|
320
321
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -375,8 +376,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
375
376
|
#
|
376
377
|
# @return [ResourceGroup] operation results.
|
377
378
|
#
|
378
|
-
def update(resource_group_name, parameters, custom_headers
|
379
|
-
response = update_async(resource_group_name, parameters, custom_headers).value!
|
379
|
+
def update(resource_group_name, parameters, custom_headers:nil)
|
380
|
+
response = update_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
380
381
|
response.body unless response.nil?
|
381
382
|
end
|
382
383
|
|
@@ -396,8 +397,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
396
397
|
#
|
397
398
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
398
399
|
#
|
399
|
-
def update_with_http_info(resource_group_name, parameters, custom_headers
|
400
|
-
update_async(resource_group_name, parameters, custom_headers).value!
|
400
|
+
def update_with_http_info(resource_group_name, parameters, custom_headers:nil)
|
401
|
+
update_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
401
402
|
end
|
402
403
|
|
403
404
|
#
|
@@ -416,7 +417,7 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
416
417
|
#
|
417
418
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
418
419
|
#
|
419
|
-
def update_async(resource_group_name, parameters, custom_headers
|
420
|
+
def update_async(resource_group_name, parameters, custom_headers:nil)
|
420
421
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
421
422
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
422
423
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -427,13 +428,12 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
427
428
|
|
428
429
|
|
429
430
|
request_headers = {}
|
431
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
430
432
|
|
431
433
|
# Set Headers
|
432
434
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
433
435
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
434
436
|
|
435
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
436
|
-
|
437
437
|
# Serialize Request
|
438
438
|
request_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ResourceGroupPatchable.mapper()
|
439
439
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -492,8 +492,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
492
492
|
#
|
493
493
|
# @return [ResourceGroupExportResult] operation results.
|
494
494
|
#
|
495
|
-
def export_template(resource_group_name, parameters, custom_headers
|
496
|
-
response = export_template_async(resource_group_name, parameters, custom_headers).value!
|
495
|
+
def export_template(resource_group_name, parameters, custom_headers:nil)
|
496
|
+
response = export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
497
497
|
response.body unless response.nil?
|
498
498
|
end
|
499
499
|
|
@@ -509,8 +509,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
509
509
|
#
|
510
510
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
511
511
|
#
|
512
|
-
def export_template_with_http_info(resource_group_name, parameters, custom_headers
|
513
|
-
export_template_async(resource_group_name, parameters, custom_headers).value!
|
512
|
+
def export_template_with_http_info(resource_group_name, parameters, custom_headers:nil)
|
513
|
+
export_template_async(resource_group_name, parameters, custom_headers:custom_headers).value!
|
514
514
|
end
|
515
515
|
|
516
516
|
#
|
@@ -525,7 +525,7 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
525
525
|
#
|
526
526
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
527
527
|
#
|
528
|
-
def export_template_async(resource_group_name, parameters, custom_headers
|
528
|
+
def export_template_async(resource_group_name, parameters, custom_headers:nil)
|
529
529
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
530
530
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
531
531
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -536,13 +536,12 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
536
536
|
|
537
537
|
|
538
538
|
request_headers = {}
|
539
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
539
540
|
|
540
541
|
# Set Headers
|
541
542
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
542
543
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
543
544
|
|
544
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
545
|
-
|
546
545
|
# Serialize Request
|
547
546
|
request_mapper = Azure::Resources::Mgmt::V2017_05_10::Models::ExportTemplateRequest.mapper()
|
548
547
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -600,8 +599,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
600
599
|
#
|
601
600
|
# @return [Array<ResourceGroup>] operation results.
|
602
601
|
#
|
603
|
-
def list(filter
|
604
|
-
first_page = list_as_lazy(filter, top, custom_headers)
|
602
|
+
def list(filter:nil, top:nil, custom_headers:nil)
|
603
|
+
first_page = list_as_lazy(filter:filter, top:top, custom_headers:custom_headers)
|
605
604
|
first_page.get_all_items
|
606
605
|
end
|
607
606
|
|
@@ -616,8 +615,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
616
615
|
#
|
617
616
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
618
617
|
#
|
619
|
-
def list_with_http_info(filter
|
620
|
-
list_async(filter, top, custom_headers).value!
|
618
|
+
def list_with_http_info(filter:nil, top:nil, custom_headers:nil)
|
619
|
+
list_async(filter:filter, top:top, custom_headers:custom_headers).value!
|
621
620
|
end
|
622
621
|
|
623
622
|
#
|
@@ -631,12 +630,13 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
631
630
|
#
|
632
631
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
633
632
|
#
|
634
|
-
def list_async(filter
|
633
|
+
def list_async(filter:nil, top:nil, custom_headers:nil)
|
635
634
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
636
635
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
637
636
|
|
638
637
|
|
639
638
|
request_headers = {}
|
639
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
640
640
|
|
641
641
|
# Set Headers
|
642
642
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -694,8 +694,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
694
694
|
# will be added to the HTTP request.
|
695
695
|
#
|
696
696
|
#
|
697
|
-
def begin_delete(resource_group_name, custom_headers
|
698
|
-
response = begin_delete_async(resource_group_name, custom_headers).value!
|
697
|
+
def begin_delete(resource_group_name, custom_headers:nil)
|
698
|
+
response = begin_delete_async(resource_group_name, custom_headers:custom_headers).value!
|
699
699
|
nil
|
700
700
|
end
|
701
701
|
|
@@ -713,8 +713,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
713
713
|
#
|
714
714
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
715
715
|
#
|
716
|
-
def begin_delete_with_http_info(resource_group_name, custom_headers
|
717
|
-
begin_delete_async(resource_group_name, custom_headers).value!
|
716
|
+
def begin_delete_with_http_info(resource_group_name, custom_headers:nil)
|
717
|
+
begin_delete_async(resource_group_name, custom_headers:custom_headers).value!
|
718
718
|
end
|
719
719
|
|
720
720
|
#
|
@@ -731,7 +731,7 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
731
731
|
#
|
732
732
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
733
733
|
#
|
734
|
-
def begin_delete_async(resource_group_name, custom_headers
|
734
|
+
def begin_delete_async(resource_group_name, custom_headers:nil)
|
735
735
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
736
736
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
737
737
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -741,6 +741,7 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
741
741
|
|
742
742
|
|
743
743
|
request_headers = {}
|
744
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
744
745
|
|
745
746
|
# Set Headers
|
746
747
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -785,8 +786,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
785
786
|
#
|
786
787
|
# @return [ResourceGroupListResult] operation results.
|
787
788
|
#
|
788
|
-
def list_next(next_page_link, custom_headers
|
789
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
789
|
+
def list_next(next_page_link, custom_headers:nil)
|
790
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
790
791
|
response.body unless response.nil?
|
791
792
|
end
|
792
793
|
|
@@ -800,8 +801,8 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
800
801
|
#
|
801
802
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
802
803
|
#
|
803
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
804
|
-
list_next_async(next_page_link, custom_headers).value!
|
804
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
805
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
805
806
|
end
|
806
807
|
|
807
808
|
#
|
@@ -814,11 +815,12 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
814
815
|
#
|
815
816
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
816
817
|
#
|
817
|
-
def list_next_async(next_page_link, custom_headers
|
818
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
818
819
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
819
820
|
|
820
821
|
|
821
822
|
request_headers = {}
|
823
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
822
824
|
|
823
825
|
# Set Headers
|
824
826
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -874,12 +876,12 @@ module Azure::Resources::Mgmt::V2017_05_10
|
|
874
876
|
# @return [ResourceGroupListResult] which provide lazy access to pages of the
|
875
877
|
# response.
|
876
878
|
#
|
877
|
-
def list_as_lazy(filter
|
878
|
-
response = list_async(filter, top, custom_headers).value!
|
879
|
+
def list_as_lazy(filter:nil, top:nil, custom_headers:nil)
|
880
|
+
response = list_async(filter:filter, top:top, custom_headers:custom_headers).value!
|
879
881
|
unless response.nil?
|
880
882
|
page = response.body
|
881
883
|
page.next_method = Proc.new do |next_page_link|
|
882
|
-
list_next_async(next_page_link, custom_headers)
|
884
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
883
885
|
end
|
884
886
|
page
|
885
887
|
end
|