azure_mgmt_devtestlabs 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-05-15/generated/azure_mgmt_devtestlabs.rb +70 -62
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/arm_templates.rb +21 -18
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb +39 -37
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifacts.rb +27 -25
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/costs.rb +12 -12
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/custom_images.rb +41 -38
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb +12 -1
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/disks.rb +61 -60
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/environments.rb +41 -38
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/formulas.rb +37 -34
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/gallery_images.rb +15 -13
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/global_schedules.rb +74 -70
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/labs.rb +113 -109
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb +1 -1
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/http_status_code.rb +56 -0
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb +1 -1
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb +57 -0
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb +59 -0
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb +80 -0
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb +82 -0
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb +101 -0
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb +45 -44
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/operations.rb +117 -0
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policies.rb +39 -37
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policy_sets.rb +6 -7
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/provider_operations.rb +215 -0
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/schedules.rb +64 -59
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/secrets.rb +33 -30
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/service_runners.rb +33 -30
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/users.rb +43 -41
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb +49 -46
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb +113 -110
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb +47 -45
- data/lib/profiles/latest/devtestlabs_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/devtestlabs_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/devtestlabs_profile_module.rb +589 -542
- data/lib/version.rb +1 -1
- metadata +10 -2
@@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
38
38
|
#
|
39
39
|
# @return [Array<Formula>] operation results.
|
40
40
|
#
|
41
|
-
def list(resource_group_name, lab_name, expand
|
42
|
-
first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers)
|
41
|
+
def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
42
|
+
first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers)
|
43
43
|
first_page.get_all_items
|
44
44
|
end
|
45
45
|
|
@@ -60,8 +60,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
60
60
|
#
|
61
61
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
62
62
|
#
|
63
|
-
def list_with_http_info(resource_group_name, lab_name, expand
|
64
|
-
list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
|
63
|
+
def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
64
|
+
list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
65
65
|
end
|
66
66
|
|
67
67
|
#
|
@@ -81,7 +81,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
81
81
|
#
|
82
82
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
83
83
|
#
|
84
|
-
def list_async(resource_group_name, lab_name, expand
|
84
|
+
def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
85
85
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
86
86
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
87
87
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -89,6 +89,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
89
89
|
|
90
90
|
|
91
91
|
request_headers = {}
|
92
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
92
93
|
|
93
94
|
# Set Headers
|
94
95
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -146,8 +147,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
146
147
|
#
|
147
148
|
# @return [Formula] operation results.
|
148
149
|
#
|
149
|
-
def get(resource_group_name, lab_name, name, expand
|
150
|
-
response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value!
|
150
|
+
def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil)
|
151
|
+
response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value!
|
151
152
|
response.body unless response.nil?
|
152
153
|
end
|
153
154
|
|
@@ -164,8 +165,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
164
165
|
#
|
165
166
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
166
167
|
#
|
167
|
-
def get_with_http_info(resource_group_name, lab_name, name, expand
|
168
|
-
get_async(resource_group_name, lab_name, name, expand, custom_headers).value!
|
168
|
+
def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil)
|
169
|
+
get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value!
|
169
170
|
end
|
170
171
|
|
171
172
|
#
|
@@ -181,7 +182,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
181
182
|
#
|
182
183
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
183
184
|
#
|
184
|
-
def get_async(resource_group_name, lab_name, name, expand
|
185
|
+
def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil)
|
185
186
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
186
187
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
187
188
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -190,6 +191,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
190
191
|
|
191
192
|
|
192
193
|
request_headers = {}
|
194
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
193
195
|
|
194
196
|
# Set Headers
|
195
197
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -248,8 +250,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
248
250
|
#
|
249
251
|
# @return [Formula] operation results.
|
250
252
|
#
|
251
|
-
def create_or_update(resource_group_name, lab_name, name, formula, custom_headers
|
252
|
-
response = create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value!
|
253
|
+
def create_or_update(resource_group_name, lab_name, name, formula, custom_headers:nil)
|
254
|
+
response = create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:custom_headers).value!
|
253
255
|
response.body unless response.nil?
|
254
256
|
end
|
255
257
|
|
@@ -265,9 +267,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
265
267
|
# @return [Concurrent::Promise] promise which provides async access to http
|
266
268
|
# response.
|
267
269
|
#
|
268
|
-
def create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers
|
270
|
+
def create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:nil)
|
269
271
|
# Send request
|
270
|
-
promise = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers)
|
272
|
+
promise = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:custom_headers)
|
271
273
|
|
272
274
|
promise = promise.then do |response|
|
273
275
|
# Defining deserialization method.
|
@@ -293,8 +295,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
293
295
|
# will be added to the HTTP request.
|
294
296
|
#
|
295
297
|
#
|
296
|
-
def delete(resource_group_name, lab_name, name, custom_headers
|
297
|
-
response = delete_async(resource_group_name, lab_name, name, custom_headers).value!
|
298
|
+
def delete(resource_group_name, lab_name, name, custom_headers:nil)
|
299
|
+
response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
|
298
300
|
nil
|
299
301
|
end
|
300
302
|
|
@@ -309,8 +311,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
309
311
|
#
|
310
312
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
311
313
|
#
|
312
|
-
def delete_with_http_info(resource_group_name, lab_name, name, custom_headers
|
313
|
-
delete_async(resource_group_name, lab_name, name, custom_headers).value!
|
314
|
+
def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil)
|
315
|
+
delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
|
314
316
|
end
|
315
317
|
|
316
318
|
#
|
@@ -324,7 +326,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
324
326
|
#
|
325
327
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
326
328
|
#
|
327
|
-
def delete_async(resource_group_name, lab_name, name, custom_headers
|
329
|
+
def delete_async(resource_group_name, lab_name, name, custom_headers:nil)
|
328
330
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
329
331
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
330
332
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -333,6 +335,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
333
335
|
|
334
336
|
|
335
337
|
request_headers = {}
|
338
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
336
339
|
|
337
340
|
# Set Headers
|
338
341
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -381,8 +384,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
381
384
|
#
|
382
385
|
# @return [Formula] operation results.
|
383
386
|
#
|
384
|
-
def begin_create_or_update(resource_group_name, lab_name, name, formula, custom_headers
|
385
|
-
response = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value!
|
387
|
+
def begin_create_or_update(resource_group_name, lab_name, name, formula, custom_headers:nil)
|
388
|
+
response = begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:custom_headers).value!
|
386
389
|
response.body unless response.nil?
|
387
390
|
end
|
388
391
|
|
@@ -400,8 +403,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
400
403
|
#
|
401
404
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
402
405
|
#
|
403
|
-
def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, formula, custom_headers
|
404
|
-
begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers).value!
|
406
|
+
def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, formula, custom_headers:nil)
|
407
|
+
begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:custom_headers).value!
|
405
408
|
end
|
406
409
|
|
407
410
|
#
|
@@ -418,7 +421,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
418
421
|
#
|
419
422
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
420
423
|
#
|
421
|
-
def begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers
|
424
|
+
def begin_create_or_update_async(resource_group_name, lab_name, name, formula, custom_headers:nil)
|
422
425
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
423
426
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
424
427
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -428,13 +431,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
428
431
|
|
429
432
|
|
430
433
|
request_headers = {}
|
434
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
431
435
|
|
432
436
|
# Set Headers
|
433
437
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
434
438
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
435
439
|
|
436
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
437
|
-
|
438
440
|
# Serialize Request
|
439
441
|
request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Formula.mapper()
|
440
442
|
request_content = @client.serialize(request_mapper, formula)
|
@@ -501,8 +503,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
501
503
|
#
|
502
504
|
# @return [ResponseWithContinuationFormula] operation results.
|
503
505
|
#
|
504
|
-
def list_next(next_page_link, custom_headers
|
505
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
506
|
+
def list_next(next_page_link, custom_headers:nil)
|
507
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
506
508
|
response.body unless response.nil?
|
507
509
|
end
|
508
510
|
|
@@ -516,8 +518,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
516
518
|
#
|
517
519
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
518
520
|
#
|
519
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
520
|
-
list_next_async(next_page_link, custom_headers).value!
|
521
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
522
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
521
523
|
end
|
522
524
|
|
523
525
|
#
|
@@ -530,11 +532,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
530
532
|
#
|
531
533
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
532
534
|
#
|
533
|
-
def list_next_async(next_page_link, custom_headers
|
535
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
534
536
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
535
537
|
|
536
538
|
|
537
539
|
request_headers = {}
|
540
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
538
541
|
|
539
542
|
# Set Headers
|
540
543
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -596,12 +599,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
596
599
|
# @return [ResponseWithContinuationFormula] which provide lazy access to pages
|
597
600
|
# of the response.
|
598
601
|
#
|
599
|
-
def list_as_lazy(resource_group_name, lab_name, expand
|
600
|
-
response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
|
602
|
+
def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
603
|
+
response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
601
604
|
unless response.nil?
|
602
605
|
page = response.body
|
603
606
|
page.next_method = Proc.new do |next_page_link|
|
604
|
-
list_next_async(next_page_link, custom_headers)
|
607
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
605
608
|
end
|
606
609
|
page
|
607
610
|
end
|
@@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
38
38
|
#
|
39
39
|
# @return [Array<GalleryImage>] operation results.
|
40
40
|
#
|
41
|
-
def list(resource_group_name, lab_name, expand
|
42
|
-
first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers)
|
41
|
+
def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
42
|
+
first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers)
|
43
43
|
first_page.get_all_items
|
44
44
|
end
|
45
45
|
|
@@ -60,8 +60,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
60
60
|
#
|
61
61
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
62
62
|
#
|
63
|
-
def list_with_http_info(resource_group_name, lab_name, expand
|
64
|
-
list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
|
63
|
+
def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
64
|
+
list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
65
65
|
end
|
66
66
|
|
67
67
|
#
|
@@ -81,7 +81,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
81
81
|
#
|
82
82
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
83
83
|
#
|
84
|
-
def list_async(resource_group_name, lab_name, expand
|
84
|
+
def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
85
85
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
86
86
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
87
87
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -89,6 +89,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
89
89
|
|
90
90
|
|
91
91
|
request_headers = {}
|
92
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
92
93
|
|
93
94
|
# Set Headers
|
94
95
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -143,8 +144,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
143
144
|
#
|
144
145
|
# @return [ResponseWithContinuationGalleryImage] operation results.
|
145
146
|
#
|
146
|
-
def list_next(next_page_link, custom_headers
|
147
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
147
|
+
def list_next(next_page_link, custom_headers:nil)
|
148
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
148
149
|
response.body unless response.nil?
|
149
150
|
end
|
150
151
|
|
@@ -158,8 +159,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
158
159
|
#
|
159
160
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
160
161
|
#
|
161
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
162
|
-
list_next_async(next_page_link, custom_headers).value!
|
162
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
163
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
163
164
|
end
|
164
165
|
|
165
166
|
#
|
@@ -172,11 +173,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
172
173
|
#
|
173
174
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
174
175
|
#
|
175
|
-
def list_next_async(next_page_link, custom_headers
|
176
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
176
177
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
177
178
|
|
178
179
|
|
179
180
|
request_headers = {}
|
181
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
180
182
|
|
181
183
|
# Set Headers
|
182
184
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -238,12 +240,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
238
240
|
# @return [ResponseWithContinuationGalleryImage] which provide lazy access to
|
239
241
|
# pages of the response.
|
240
242
|
#
|
241
|
-
def list_as_lazy(resource_group_name, lab_name, expand
|
242
|
-
response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
|
243
|
+
def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
244
|
+
response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
243
245
|
unless response.nil?
|
244
246
|
page = response.body
|
245
247
|
page.next_method = Proc.new do |next_page_link|
|
246
|
-
list_next_async(next_page_link, custom_headers)
|
248
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
247
249
|
end
|
248
250
|
page
|
249
251
|
end
|
@@ -36,8 +36,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
36
36
|
#
|
37
37
|
# @return [Array<Schedule>] operation results.
|
38
38
|
#
|
39
|
-
def list_by_subscription(expand
|
40
|
-
first_page = list_by_subscription_as_lazy(expand, filter, top, orderby, custom_headers)
|
39
|
+
def list_by_subscription(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
40
|
+
first_page = list_by_subscription_as_lazy(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers)
|
41
41
|
first_page.get_all_items
|
42
42
|
end
|
43
43
|
|
@@ -56,8 +56,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
56
56
|
#
|
57
57
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
58
|
#
|
59
|
-
def list_by_subscription_with_http_info(expand
|
60
|
-
list_by_subscription_async(expand, filter, top, orderby, custom_headers).value!
|
59
|
+
def list_by_subscription_with_http_info(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
60
|
+
list_by_subscription_async(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
61
61
|
end
|
62
62
|
|
63
63
|
#
|
@@ -75,12 +75,13 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
75
75
|
#
|
76
76
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
77
77
|
#
|
78
|
-
def list_by_subscription_async(expand
|
78
|
+
def list_by_subscription_async(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
79
79
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
80
80
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
81
81
|
|
82
82
|
|
83
83
|
request_headers = {}
|
84
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
84
85
|
|
85
86
|
# Set Headers
|
86
87
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -141,8 +142,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
141
142
|
#
|
142
143
|
# @return [Array<Schedule>] operation results.
|
143
144
|
#
|
144
|
-
def list_by_resource_group(resource_group_name, expand
|
145
|
-
first_page = list_by_resource_group_as_lazy(resource_group_name, expand, filter, top, orderby, custom_headers)
|
145
|
+
def list_by_resource_group(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
146
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers)
|
146
147
|
first_page.get_all_items
|
147
148
|
end
|
148
149
|
|
@@ -162,8 +163,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
162
163
|
#
|
163
164
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
164
165
|
#
|
165
|
-
def list_by_resource_group_with_http_info(resource_group_name, expand
|
166
|
-
list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, custom_headers).value!
|
166
|
+
def list_by_resource_group_with_http_info(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
167
|
+
list_by_resource_group_async(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
167
168
|
end
|
168
169
|
|
169
170
|
#
|
@@ -182,13 +183,14 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
182
183
|
#
|
183
184
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
184
185
|
#
|
185
|
-
def list_by_resource_group_async(resource_group_name, expand
|
186
|
+
def list_by_resource_group_async(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
186
187
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
187
188
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
188
189
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
189
190
|
|
190
191
|
|
191
192
|
request_headers = {}
|
193
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
192
194
|
|
193
195
|
# Set Headers
|
194
196
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -245,8 +247,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
245
247
|
#
|
246
248
|
# @return [Schedule] operation results.
|
247
249
|
#
|
248
|
-
def get(resource_group_name, name, expand
|
249
|
-
response = get_async(resource_group_name, name, expand, custom_headers).value!
|
250
|
+
def get(resource_group_name, name, expand:nil, custom_headers:nil)
|
251
|
+
response = get_async(resource_group_name, name, expand:expand, custom_headers:custom_headers).value!
|
250
252
|
response.body unless response.nil?
|
251
253
|
end
|
252
254
|
|
@@ -262,8 +264,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
262
264
|
#
|
263
265
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
264
266
|
#
|
265
|
-
def get_with_http_info(resource_group_name, name, expand
|
266
|
-
get_async(resource_group_name, name, expand, custom_headers).value!
|
267
|
+
def get_with_http_info(resource_group_name, name, expand:nil, custom_headers:nil)
|
268
|
+
get_async(resource_group_name, name, expand:expand, custom_headers:custom_headers).value!
|
267
269
|
end
|
268
270
|
|
269
271
|
#
|
@@ -278,7 +280,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
278
280
|
#
|
279
281
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
280
282
|
#
|
281
|
-
def get_async(resource_group_name, name, expand
|
283
|
+
def get_async(resource_group_name, name, expand:nil, custom_headers:nil)
|
282
284
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
283
285
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
284
286
|
fail ArgumentError, 'name is nil' if name.nil?
|
@@ -286,6 +288,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
286
288
|
|
287
289
|
|
288
290
|
request_headers = {}
|
291
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
289
292
|
|
290
293
|
# Set Headers
|
291
294
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -341,8 +344,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
341
344
|
#
|
342
345
|
# @return [Schedule] operation results.
|
343
346
|
#
|
344
|
-
def create_or_update(resource_group_name, name, schedule, custom_headers
|
345
|
-
response = create_or_update_async(resource_group_name, name, schedule, custom_headers).value!
|
347
|
+
def create_or_update(resource_group_name, name, schedule, custom_headers:nil)
|
348
|
+
response = create_or_update_async(resource_group_name, name, schedule, custom_headers:custom_headers).value!
|
346
349
|
response.body unless response.nil?
|
347
350
|
end
|
348
351
|
|
@@ -357,8 +360,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
357
360
|
#
|
358
361
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
359
362
|
#
|
360
|
-
def create_or_update_with_http_info(resource_group_name, name, schedule, custom_headers
|
361
|
-
create_or_update_async(resource_group_name, name, schedule, custom_headers).value!
|
363
|
+
def create_or_update_with_http_info(resource_group_name, name, schedule, custom_headers:nil)
|
364
|
+
create_or_update_async(resource_group_name, name, schedule, custom_headers:custom_headers).value!
|
362
365
|
end
|
363
366
|
|
364
367
|
#
|
@@ -372,7 +375,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
372
375
|
#
|
373
376
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
374
377
|
#
|
375
|
-
def create_or_update_async(resource_group_name, name, schedule, custom_headers
|
378
|
+
def create_or_update_async(resource_group_name, name, schedule, custom_headers:nil)
|
376
379
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
377
380
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
378
381
|
fail ArgumentError, 'name is nil' if name.nil?
|
@@ -381,13 +384,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
381
384
|
|
382
385
|
|
383
386
|
request_headers = {}
|
387
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
384
388
|
|
385
389
|
# Set Headers
|
386
390
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
387
391
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
388
392
|
|
389
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
390
|
-
|
391
393
|
# Serialize Request
|
392
394
|
request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Schedule.mapper()
|
393
395
|
request_content = @client.serialize(request_mapper, schedule)
|
@@ -453,8 +455,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
453
455
|
# will be added to the HTTP request.
|
454
456
|
#
|
455
457
|
#
|
456
|
-
def delete(resource_group_name, name, custom_headers
|
457
|
-
response = delete_async(resource_group_name, name, custom_headers).value!
|
458
|
+
def delete(resource_group_name, name, custom_headers:nil)
|
459
|
+
response = delete_async(resource_group_name, name, custom_headers:custom_headers).value!
|
458
460
|
nil
|
459
461
|
end
|
460
462
|
|
@@ -468,8 +470,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
468
470
|
#
|
469
471
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
470
472
|
#
|
471
|
-
def delete_with_http_info(resource_group_name, name, custom_headers
|
472
|
-
delete_async(resource_group_name, name, custom_headers).value!
|
473
|
+
def delete_with_http_info(resource_group_name, name, custom_headers:nil)
|
474
|
+
delete_async(resource_group_name, name, custom_headers:custom_headers).value!
|
473
475
|
end
|
474
476
|
|
475
477
|
#
|
@@ -482,7 +484,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
482
484
|
#
|
483
485
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
484
486
|
#
|
485
|
-
def delete_async(resource_group_name, name, custom_headers
|
487
|
+
def delete_async(resource_group_name, name, custom_headers:nil)
|
486
488
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
487
489
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
488
490
|
fail ArgumentError, 'name is nil' if name.nil?
|
@@ -490,6 +492,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
490
492
|
|
491
493
|
|
492
494
|
request_headers = {}
|
495
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
493
496
|
|
494
497
|
# Set Headers
|
495
498
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -535,8 +538,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
535
538
|
#
|
536
539
|
# @return [Schedule] operation results.
|
537
540
|
#
|
538
|
-
def update(resource_group_name, name, schedule, custom_headers
|
539
|
-
response = update_async(resource_group_name, name, schedule, custom_headers).value!
|
541
|
+
def update(resource_group_name, name, schedule, custom_headers:nil)
|
542
|
+
response = update_async(resource_group_name, name, schedule, custom_headers:custom_headers).value!
|
540
543
|
response.body unless response.nil?
|
541
544
|
end
|
542
545
|
|
@@ -551,8 +554,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
551
554
|
#
|
552
555
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
553
556
|
#
|
554
|
-
def update_with_http_info(resource_group_name, name, schedule, custom_headers
|
555
|
-
update_async(resource_group_name, name, schedule, custom_headers).value!
|
557
|
+
def update_with_http_info(resource_group_name, name, schedule, custom_headers:nil)
|
558
|
+
update_async(resource_group_name, name, schedule, custom_headers:custom_headers).value!
|
556
559
|
end
|
557
560
|
|
558
561
|
#
|
@@ -566,7 +569,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
566
569
|
#
|
567
570
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
568
571
|
#
|
569
|
-
def update_async(resource_group_name, name, schedule, custom_headers
|
572
|
+
def update_async(resource_group_name, name, schedule, custom_headers:nil)
|
570
573
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
571
574
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
572
575
|
fail ArgumentError, 'name is nil' if name.nil?
|
@@ -575,13 +578,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
575
578
|
|
576
579
|
|
577
580
|
request_headers = {}
|
581
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
578
582
|
|
579
583
|
# Set Headers
|
580
584
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
581
585
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
582
586
|
|
583
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
584
|
-
|
585
587
|
# Serialize Request
|
586
588
|
request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ScheduleFragment.mapper()
|
587
589
|
request_content = @client.serialize(request_mapper, schedule)
|
@@ -636,8 +638,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
636
638
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
637
639
|
# will be added to the HTTP request.
|
638
640
|
#
|
639
|
-
def execute(resource_group_name, name, custom_headers
|
640
|
-
response = execute_async(resource_group_name, name, custom_headers).value!
|
641
|
+
def execute(resource_group_name, name, custom_headers:nil)
|
642
|
+
response = execute_async(resource_group_name, name, custom_headers:custom_headers).value!
|
641
643
|
nil
|
642
644
|
end
|
643
645
|
|
@@ -650,9 +652,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
650
652
|
# @return [Concurrent::Promise] promise which provides async access to http
|
651
653
|
# response.
|
652
654
|
#
|
653
|
-
def execute_async(resource_group_name, name, custom_headers
|
655
|
+
def execute_async(resource_group_name, name, custom_headers:nil)
|
654
656
|
# Send request
|
655
|
-
promise = begin_execute_async(resource_group_name, name, custom_headers)
|
657
|
+
promise = begin_execute_async(resource_group_name, name, custom_headers:custom_headers)
|
656
658
|
|
657
659
|
promise = promise.then do |response|
|
658
660
|
# Defining deserialization method.
|
@@ -677,8 +679,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
677
679
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
678
680
|
# will be added to the HTTP request.
|
679
681
|
#
|
680
|
-
def retarget(resource_group_name, name, retarget_schedule_properties, custom_headers
|
681
|
-
response = retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers).value!
|
682
|
+
def retarget(resource_group_name, name, retarget_schedule_properties, custom_headers:nil)
|
683
|
+
response = retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:custom_headers).value!
|
682
684
|
nil
|
683
685
|
end
|
684
686
|
|
@@ -693,9 +695,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
693
695
|
# @return [Concurrent::Promise] promise which provides async access to http
|
694
696
|
# response.
|
695
697
|
#
|
696
|
-
def retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers
|
698
|
+
def retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:nil)
|
697
699
|
# Send request
|
698
|
-
promise = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers)
|
700
|
+
promise = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:custom_headers)
|
699
701
|
|
700
702
|
promise = promise.then do |response|
|
701
703
|
# Defining deserialization method.
|
@@ -718,8 +720,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
718
720
|
# will be added to the HTTP request.
|
719
721
|
#
|
720
722
|
#
|
721
|
-
def begin_execute(resource_group_name, name, custom_headers
|
722
|
-
response = begin_execute_async(resource_group_name, name, custom_headers).value!
|
723
|
+
def begin_execute(resource_group_name, name, custom_headers:nil)
|
724
|
+
response = begin_execute_async(resource_group_name, name, custom_headers:custom_headers).value!
|
723
725
|
nil
|
724
726
|
end
|
725
727
|
|
@@ -733,8 +735,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
733
735
|
#
|
734
736
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
735
737
|
#
|
736
|
-
def begin_execute_with_http_info(resource_group_name, name, custom_headers
|
737
|
-
begin_execute_async(resource_group_name, name, custom_headers).value!
|
738
|
+
def begin_execute_with_http_info(resource_group_name, name, custom_headers:nil)
|
739
|
+
begin_execute_async(resource_group_name, name, custom_headers:custom_headers).value!
|
738
740
|
end
|
739
741
|
|
740
742
|
#
|
@@ -747,7 +749,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
747
749
|
#
|
748
750
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
749
751
|
#
|
750
|
-
def begin_execute_async(resource_group_name, name, custom_headers
|
752
|
+
def begin_execute_async(resource_group_name, name, custom_headers:nil)
|
751
753
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
752
754
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
753
755
|
fail ArgumentError, 'name is nil' if name.nil?
|
@@ -755,6 +757,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
755
757
|
|
756
758
|
|
757
759
|
request_headers = {}
|
760
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
758
761
|
|
759
762
|
# Set Headers
|
760
763
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -801,8 +804,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
801
804
|
# will be added to the HTTP request.
|
802
805
|
#
|
803
806
|
#
|
804
|
-
def begin_retarget(resource_group_name, name, retarget_schedule_properties, custom_headers
|
805
|
-
response = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers).value!
|
807
|
+
def begin_retarget(resource_group_name, name, retarget_schedule_properties, custom_headers:nil)
|
808
|
+
response = begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:custom_headers).value!
|
806
809
|
nil
|
807
810
|
end
|
808
811
|
|
@@ -819,8 +822,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
819
822
|
#
|
820
823
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
821
824
|
#
|
822
|
-
def begin_retarget_with_http_info(resource_group_name, name, retarget_schedule_properties, custom_headers
|
823
|
-
begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers).value!
|
825
|
+
def begin_retarget_with_http_info(resource_group_name, name, retarget_schedule_properties, custom_headers:nil)
|
826
|
+
begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:custom_headers).value!
|
824
827
|
end
|
825
828
|
|
826
829
|
#
|
@@ -836,7 +839,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
836
839
|
#
|
837
840
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
838
841
|
#
|
839
|
-
def begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers
|
842
|
+
def begin_retarget_async(resource_group_name, name, retarget_schedule_properties, custom_headers:nil)
|
840
843
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
841
844
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
842
845
|
fail ArgumentError, 'name is nil' if name.nil?
|
@@ -845,13 +848,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
845
848
|
|
846
849
|
|
847
850
|
request_headers = {}
|
851
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
848
852
|
|
849
853
|
# Set Headers
|
850
854
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
851
855
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
852
856
|
|
853
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
854
|
-
|
855
857
|
# Serialize Request
|
856
858
|
request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::RetargetScheduleProperties.mapper()
|
857
859
|
request_content = @client.serialize(request_mapper, retarget_schedule_properties)
|
@@ -898,8 +900,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
898
900
|
#
|
899
901
|
# @return [ResponseWithContinuationSchedule] operation results.
|
900
902
|
#
|
901
|
-
def list_by_subscription_next(next_page_link, custom_headers
|
902
|
-
response = list_by_subscription_next_async(next_page_link, custom_headers).value!
|
903
|
+
def list_by_subscription_next(next_page_link, custom_headers:nil)
|
904
|
+
response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
903
905
|
response.body unless response.nil?
|
904
906
|
end
|
905
907
|
|
@@ -913,8 +915,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
913
915
|
#
|
914
916
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
915
917
|
#
|
916
|
-
def list_by_subscription_next_with_http_info(next_page_link, custom_headers
|
917
|
-
list_by_subscription_next_async(next_page_link, custom_headers).value!
|
918
|
+
def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
|
919
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
918
920
|
end
|
919
921
|
|
920
922
|
#
|
@@ -927,11 +929,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
927
929
|
#
|
928
930
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
929
931
|
#
|
930
|
-
def list_by_subscription_next_async(next_page_link, custom_headers
|
932
|
+
def list_by_subscription_next_async(next_page_link, custom_headers:nil)
|
931
933
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
932
934
|
|
933
935
|
|
934
936
|
request_headers = {}
|
937
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
935
938
|
|
936
939
|
# Set Headers
|
937
940
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -985,8 +988,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
985
988
|
#
|
986
989
|
# @return [ResponseWithContinuationSchedule] operation results.
|
987
990
|
#
|
988
|
-
def list_by_resource_group_next(next_page_link, custom_headers
|
989
|
-
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
991
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
992
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
990
993
|
response.body unless response.nil?
|
991
994
|
end
|
992
995
|
|
@@ -1000,8 +1003,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
1000
1003
|
#
|
1001
1004
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1002
1005
|
#
|
1003
|
-
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers
|
1004
|
-
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1006
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
1007
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1005
1008
|
end
|
1006
1009
|
|
1007
1010
|
#
|
@@ -1014,11 +1017,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
1014
1017
|
#
|
1015
1018
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1016
1019
|
#
|
1017
|
-
def list_by_resource_group_next_async(next_page_link, custom_headers
|
1020
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
1018
1021
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1019
1022
|
|
1020
1023
|
|
1021
1024
|
request_headers = {}
|
1025
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1022
1026
|
|
1023
1027
|
# Set Headers
|
1024
1028
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1078,12 +1082,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
1078
1082
|
# @return [ResponseWithContinuationSchedule] which provide lazy access to pages
|
1079
1083
|
# of the response.
|
1080
1084
|
#
|
1081
|
-
def list_by_subscription_as_lazy(expand
|
1082
|
-
response = list_by_subscription_async(expand, filter, top, orderby, custom_headers).value!
|
1085
|
+
def list_by_subscription_as_lazy(expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
1086
|
+
response = list_by_subscription_async(expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
1083
1087
|
unless response.nil?
|
1084
1088
|
page = response.body
|
1085
1089
|
page.next_method = Proc.new do |next_page_link|
|
1086
|
-
list_by_subscription_next_async(next_page_link, custom_headers)
|
1090
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
|
1087
1091
|
end
|
1088
1092
|
page
|
1089
1093
|
end
|
@@ -1106,12 +1110,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
1106
1110
|
# @return [ResponseWithContinuationSchedule] which provide lazy access to pages
|
1107
1111
|
# of the response.
|
1108
1112
|
#
|
1109
|
-
def list_by_resource_group_as_lazy(resource_group_name, expand
|
1110
|
-
response = list_by_resource_group_async(resource_group_name, expand, filter, top, orderby, custom_headers).value!
|
1113
|
+
def list_by_resource_group_as_lazy(resource_group_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
1114
|
+
response = list_by_resource_group_async(resource_group_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
1111
1115
|
unless response.nil?
|
1112
1116
|
page = response.body
|
1113
1117
|
page.next_method = Proc.new do |next_page_link|
|
1114
|
-
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1118
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
1115
1119
|
end
|
1116
1120
|
page
|
1117
1121
|
end
|