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
@@ -34,9 +34,15 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
34
34
|
# is generated and included in each request. Default is true.
|
35
35
|
attr_accessor :generate_client_request_id
|
36
36
|
|
37
|
+
# @return [ProviderOperations] provider_operations
|
38
|
+
attr_reader :provider_operations
|
39
|
+
|
37
40
|
# @return [Labs] labs
|
38
41
|
attr_reader :labs
|
39
42
|
|
43
|
+
# @return [Operations] operations
|
44
|
+
attr_reader :operations
|
45
|
+
|
40
46
|
# @return [GlobalSchedules] global_schedules
|
41
47
|
attr_reader :global_schedules
|
42
48
|
|
@@ -110,7 +116,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
110
116
|
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
111
117
|
@credentials = credentials
|
112
118
|
|
119
|
+
@provider_operations = ProviderOperations.new(self)
|
113
120
|
@labs = Labs.new(self)
|
121
|
+
@operations = Operations.new(self)
|
114
122
|
@global_schedules = GlobalSchedules.new(self)
|
115
123
|
@artifact_sources = ArtifactSources.new(self)
|
116
124
|
@arm_templates = ArmTemplates.new(self)
|
@@ -184,6 +192,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
184
192
|
fail ArgumentError, 'path is nil' if path.nil?
|
185
193
|
|
186
194
|
request_url = options[:base_url] || @base_url
|
195
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
196
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
197
|
+
end
|
187
198
|
|
188
199
|
request_headers = @request_headers
|
189
200
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -200,7 +211,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
200
211
|
#
|
201
212
|
def add_telemetry
|
202
213
|
sdk_information = 'azure_mgmt_devtestlabs'
|
203
|
-
sdk_information = "#{sdk_information}/0.
|
214
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
204
215
|
add_user_agent_information(sdk_information)
|
205
216
|
end
|
206
217
|
end
|
@@ -39,8 +39,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
39
39
|
#
|
40
40
|
# @return [Array<Disk>] operation results.
|
41
41
|
#
|
42
|
-
def list(resource_group_name, lab_name, user_name, expand
|
43
|
-
first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers)
|
42
|
+
def list(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
43
|
+
first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers)
|
44
44
|
first_page.get_all_items
|
45
45
|
end
|
46
46
|
|
@@ -62,8 +62,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
62
62
|
#
|
63
63
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
64
64
|
#
|
65
|
-
def list_with_http_info(resource_group_name, lab_name, user_name, expand
|
66
|
-
list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value!
|
65
|
+
def list_with_http_info(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
66
|
+
list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
67
67
|
end
|
68
68
|
|
69
69
|
#
|
@@ -84,7 +84,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
84
84
|
#
|
85
85
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
86
86
|
#
|
87
|
-
def list_async(resource_group_name, lab_name, user_name, expand
|
87
|
+
def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
88
88
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
89
89
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
90
90
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -93,6 +93,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
93
93
|
|
94
94
|
|
95
95
|
request_headers = {}
|
96
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
96
97
|
|
97
98
|
# Set Headers
|
98
99
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -151,8 +152,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
151
152
|
#
|
152
153
|
# @return [Disk] operation results.
|
153
154
|
#
|
154
|
-
def get(resource_group_name, lab_name, user_name, name, expand
|
155
|
-
response = get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value!
|
155
|
+
def get(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil)
|
156
|
+
response = get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value!
|
156
157
|
response.body unless response.nil?
|
157
158
|
end
|
158
159
|
|
@@ -170,8 +171,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
170
171
|
#
|
171
172
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
172
173
|
#
|
173
|
-
def get_with_http_info(resource_group_name, lab_name, user_name, name, expand
|
174
|
-
get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value!
|
174
|
+
def get_with_http_info(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil)
|
175
|
+
get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value!
|
175
176
|
end
|
176
177
|
|
177
178
|
#
|
@@ -188,7 +189,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
188
189
|
#
|
189
190
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
190
191
|
#
|
191
|
-
def get_async(resource_group_name, lab_name, user_name, name, expand
|
192
|
+
def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil)
|
192
193
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
193
194
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
194
195
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -198,6 +199,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
198
199
|
|
199
200
|
|
200
201
|
request_headers = {}
|
202
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
201
203
|
|
202
204
|
# Set Headers
|
203
205
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -256,8 +258,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
256
258
|
#
|
257
259
|
# @return [Disk] operation results.
|
258
260
|
#
|
259
|
-
def create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers
|
260
|
-
response = create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value!
|
261
|
+
def create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil)
|
262
|
+
response = create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:custom_headers).value!
|
261
263
|
response.body unless response.nil?
|
262
264
|
end
|
263
265
|
|
@@ -273,9 +275,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
273
275
|
# @return [Concurrent::Promise] promise which provides async access to http
|
274
276
|
# response.
|
275
277
|
#
|
276
|
-
def create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers
|
278
|
+
def create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil)
|
277
279
|
# Send request
|
278
|
-
promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers)
|
280
|
+
promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:custom_headers)
|
279
281
|
|
280
282
|
promise = promise.then do |response|
|
281
283
|
# Defining deserialization method.
|
@@ -301,8 +303,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
301
303
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
302
304
|
# will be added to the HTTP request.
|
303
305
|
#
|
304
|
-
def delete(resource_group_name, lab_name, user_name, name, custom_headers
|
305
|
-
response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value!
|
306
|
+
def delete(resource_group_name, lab_name, user_name, name, custom_headers:nil)
|
307
|
+
response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value!
|
306
308
|
nil
|
307
309
|
end
|
308
310
|
|
@@ -317,9 +319,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
317
319
|
# @return [Concurrent::Promise] promise which provides async access to http
|
318
320
|
# response.
|
319
321
|
#
|
320
|
-
def delete_async(resource_group_name, lab_name, user_name, name, custom_headers
|
322
|
+
def delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil)
|
321
323
|
# Send request
|
322
|
-
promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers)
|
324
|
+
promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers)
|
323
325
|
|
324
326
|
promise = promise.then do |response|
|
325
327
|
# Defining deserialization method.
|
@@ -346,8 +348,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
346
348
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
347
349
|
# will be added to the HTTP request.
|
348
350
|
#
|
349
|
-
def attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers
|
350
|
-
response = attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers).value!
|
351
|
+
def attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil)
|
352
|
+
response = attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:custom_headers).value!
|
351
353
|
nil
|
352
354
|
end
|
353
355
|
|
@@ -364,9 +366,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
364
366
|
# @return [Concurrent::Promise] promise which provides async access to http
|
365
367
|
# response.
|
366
368
|
#
|
367
|
-
def attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers
|
369
|
+
def attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil)
|
368
370
|
# Send request
|
369
|
-
promise = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers)
|
371
|
+
promise = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:custom_headers)
|
370
372
|
|
371
373
|
promise = promise.then do |response|
|
372
374
|
# Defining deserialization method.
|
@@ -393,8 +395,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
393
395
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
394
396
|
# will be added to the HTTP request.
|
395
397
|
#
|
396
|
-
def detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers
|
397
|
-
response = detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers).value!
|
398
|
+
def detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil)
|
399
|
+
response = detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:custom_headers).value!
|
398
400
|
nil
|
399
401
|
end
|
400
402
|
|
@@ -411,9 +413,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
411
413
|
# @return [Concurrent::Promise] promise which provides async access to http
|
412
414
|
# response.
|
413
415
|
#
|
414
|
-
def detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers
|
416
|
+
def detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil)
|
415
417
|
# Send request
|
416
|
-
promise = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers)
|
418
|
+
promise = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:custom_headers)
|
417
419
|
|
418
420
|
promise = promise.then do |response|
|
419
421
|
# Defining deserialization method.
|
@@ -441,8 +443,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
441
443
|
#
|
442
444
|
# @return [Disk] operation results.
|
443
445
|
#
|
444
|
-
def begin_create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers
|
445
|
-
response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value!
|
446
|
+
def begin_create_or_update(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil)
|
447
|
+
response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:custom_headers).value!
|
446
448
|
response.body unless response.nil?
|
447
449
|
end
|
448
450
|
|
@@ -460,8 +462,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
460
462
|
#
|
461
463
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
462
464
|
#
|
463
|
-
def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, disk, custom_headers
|
464
|
-
begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers).value!
|
465
|
+
def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil)
|
466
|
+
begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:custom_headers).value!
|
465
467
|
end
|
466
468
|
|
467
469
|
#
|
@@ -478,7 +480,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
478
480
|
#
|
479
481
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
480
482
|
#
|
481
|
-
def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers
|
483
|
+
def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, disk, custom_headers:nil)
|
482
484
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
483
485
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
484
486
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -489,13 +491,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
489
491
|
|
490
492
|
|
491
493
|
request_headers = {}
|
494
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
492
495
|
|
493
496
|
# Set Headers
|
494
497
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
495
498
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
496
499
|
|
497
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
498
|
-
|
499
500
|
# Serialize Request
|
500
501
|
request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Disk.mapper()
|
501
502
|
request_content = @client.serialize(request_mapper, disk)
|
@@ -563,8 +564,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
563
564
|
# will be added to the HTTP request.
|
564
565
|
#
|
565
566
|
#
|
566
|
-
def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers
|
567
|
-
response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value!
|
567
|
+
def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers:nil)
|
568
|
+
response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value!
|
568
569
|
nil
|
569
570
|
end
|
570
571
|
|
@@ -580,8 +581,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
580
581
|
#
|
581
582
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
582
583
|
#
|
583
|
-
def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers
|
584
|
-
begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value!
|
584
|
+
def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers:nil)
|
585
|
+
begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value!
|
585
586
|
end
|
586
587
|
|
587
588
|
#
|
@@ -596,7 +597,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
596
597
|
#
|
597
598
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
598
599
|
#
|
599
|
-
def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers
|
600
|
+
def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil)
|
600
601
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
601
602
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
602
603
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -606,6 +607,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
606
607
|
|
607
608
|
|
608
609
|
request_headers = {}
|
610
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
609
611
|
|
610
612
|
# Set Headers
|
611
613
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -654,8 +656,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
654
656
|
# will be added to the HTTP request.
|
655
657
|
#
|
656
658
|
#
|
657
|
-
def begin_attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers
|
658
|
-
response = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers).value!
|
659
|
+
def begin_attach(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil)
|
660
|
+
response = begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:custom_headers).value!
|
659
661
|
nil
|
660
662
|
end
|
661
663
|
|
@@ -674,8 +676,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
674
676
|
#
|
675
677
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
676
678
|
#
|
677
|
-
def begin_attach_with_http_info(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers
|
678
|
-
begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers).value!
|
679
|
+
def begin_attach_with_http_info(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil)
|
680
|
+
begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:custom_headers).value!
|
679
681
|
end
|
680
682
|
|
681
683
|
#
|
@@ -693,7 +695,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
693
695
|
#
|
694
696
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
695
697
|
#
|
696
|
-
def begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers
|
698
|
+
def begin_attach_async(resource_group_name, lab_name, user_name, name, attach_disk_properties, custom_headers:nil)
|
697
699
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
698
700
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
699
701
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -704,13 +706,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
704
706
|
|
705
707
|
|
706
708
|
request_headers = {}
|
709
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
707
710
|
|
708
711
|
# Set Headers
|
709
712
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
710
713
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
711
714
|
|
712
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
713
|
-
|
714
715
|
# Serialize Request
|
715
716
|
request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::AttachDiskProperties.mapper()
|
716
717
|
request_content = @client.serialize(request_mapper, attach_disk_properties)
|
@@ -761,8 +762,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
761
762
|
# will be added to the HTTP request.
|
762
763
|
#
|
763
764
|
#
|
764
|
-
def begin_detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers
|
765
|
-
response = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers).value!
|
765
|
+
def begin_detach(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil)
|
766
|
+
response = begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:custom_headers).value!
|
766
767
|
nil
|
767
768
|
end
|
768
769
|
|
@@ -781,8 +782,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
781
782
|
#
|
782
783
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
783
784
|
#
|
784
|
-
def begin_detach_with_http_info(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers
|
785
|
-
begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers).value!
|
785
|
+
def begin_detach_with_http_info(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil)
|
786
|
+
begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:custom_headers).value!
|
786
787
|
end
|
787
788
|
|
788
789
|
#
|
@@ -800,7 +801,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
800
801
|
#
|
801
802
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
802
803
|
#
|
803
|
-
def begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers
|
804
|
+
def begin_detach_async(resource_group_name, lab_name, user_name, name, detach_disk_properties, custom_headers:nil)
|
804
805
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
805
806
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
806
807
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -811,13 +812,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
811
812
|
|
812
813
|
|
813
814
|
request_headers = {}
|
815
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
814
816
|
|
815
817
|
# Set Headers
|
816
818
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
817
819
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
818
820
|
|
819
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
820
|
-
|
821
821
|
# Serialize Request
|
822
822
|
request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DetachDiskProperties.mapper()
|
823
823
|
request_content = @client.serialize(request_mapper, detach_disk_properties)
|
@@ -864,8 +864,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
864
864
|
#
|
865
865
|
# @return [ResponseWithContinuationDisk] operation results.
|
866
866
|
#
|
867
|
-
def list_next(next_page_link, custom_headers
|
868
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
867
|
+
def list_next(next_page_link, custom_headers:nil)
|
868
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
869
869
|
response.body unless response.nil?
|
870
870
|
end
|
871
871
|
|
@@ -879,8 +879,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
879
879
|
#
|
880
880
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
881
881
|
#
|
882
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
883
|
-
list_next_async(next_page_link, custom_headers).value!
|
882
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
883
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
884
884
|
end
|
885
885
|
|
886
886
|
#
|
@@ -893,11 +893,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
893
893
|
#
|
894
894
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
895
895
|
#
|
896
|
-
def list_next_async(next_page_link, custom_headers
|
896
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
897
897
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
898
898
|
|
899
899
|
|
900
900
|
request_headers = {}
|
901
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
901
902
|
|
902
903
|
# Set Headers
|
903
904
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -960,12 +961,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
960
961
|
# @return [ResponseWithContinuationDisk] which provide lazy access to pages of
|
961
962
|
# the response.
|
962
963
|
#
|
963
|
-
def list_as_lazy(resource_group_name, lab_name, user_name, expand
|
964
|
-
response = list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value!
|
964
|
+
def list_as_lazy(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
965
|
+
response = list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
965
966
|
unless response.nil?
|
966
967
|
page = response.body
|
967
968
|
page.next_method = Proc.new do |next_page_link|
|
968
|
-
list_next_async(next_page_link, custom_headers)
|
969
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
969
970
|
end
|
970
971
|
page
|
971
972
|
end
|
@@ -39,8 +39,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
39
39
|
#
|
40
40
|
# @return [Array<DtlEnvironment>] operation results.
|
41
41
|
#
|
42
|
-
def list(resource_group_name, lab_name, user_name, expand
|
43
|
-
first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers)
|
42
|
+
def list(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
43
|
+
first_page = list_as_lazy(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers)
|
44
44
|
first_page.get_all_items
|
45
45
|
end
|
46
46
|
|
@@ -62,8 +62,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
62
62
|
#
|
63
63
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
64
64
|
#
|
65
|
-
def list_with_http_info(resource_group_name, lab_name, user_name, expand
|
66
|
-
list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value!
|
65
|
+
def list_with_http_info(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
66
|
+
list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
67
67
|
end
|
68
68
|
|
69
69
|
#
|
@@ -84,7 +84,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
84
84
|
#
|
85
85
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
86
86
|
#
|
87
|
-
def list_async(resource_group_name, lab_name, user_name, expand
|
87
|
+
def list_async(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
88
88
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
89
89
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
90
90
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -93,6 +93,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
93
93
|
|
94
94
|
|
95
95
|
request_headers = {}
|
96
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
96
97
|
|
97
98
|
# Set Headers
|
98
99
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -151,8 +152,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
151
152
|
#
|
152
153
|
# @return [DtlEnvironment] operation results.
|
153
154
|
#
|
154
|
-
def get(resource_group_name, lab_name, user_name, name, expand
|
155
|
-
response = get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value!
|
155
|
+
def get(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil)
|
156
|
+
response = get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value!
|
156
157
|
response.body unless response.nil?
|
157
158
|
end
|
158
159
|
|
@@ -170,8 +171,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
170
171
|
#
|
171
172
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
172
173
|
#
|
173
|
-
def get_with_http_info(resource_group_name, lab_name, user_name, name, expand
|
174
|
-
get_async(resource_group_name, lab_name, user_name, name, expand, custom_headers).value!
|
174
|
+
def get_with_http_info(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil)
|
175
|
+
get_async(resource_group_name, lab_name, user_name, name, expand:expand, custom_headers:custom_headers).value!
|
175
176
|
end
|
176
177
|
|
177
178
|
#
|
@@ -188,7 +189,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
188
189
|
#
|
189
190
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
190
191
|
#
|
191
|
-
def get_async(resource_group_name, lab_name, user_name, name, expand
|
192
|
+
def get_async(resource_group_name, lab_name, user_name, name, expand:nil, custom_headers:nil)
|
192
193
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
193
194
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
194
195
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -198,6 +199,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
198
199
|
|
199
200
|
|
200
201
|
request_headers = {}
|
202
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
201
203
|
|
202
204
|
# Set Headers
|
203
205
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -257,8 +259,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
257
259
|
#
|
258
260
|
# @return [DtlEnvironment] operation results.
|
259
261
|
#
|
260
|
-
def create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers
|
261
|
-
response = create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value!
|
262
|
+
def create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil)
|
263
|
+
response = create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:custom_headers).value!
|
262
264
|
response.body unless response.nil?
|
263
265
|
end
|
264
266
|
|
@@ -275,9 +277,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
275
277
|
# @return [Concurrent::Promise] promise which provides async access to http
|
276
278
|
# response.
|
277
279
|
#
|
278
|
-
def create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers
|
280
|
+
def create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil)
|
279
281
|
# Send request
|
280
|
-
promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers)
|
282
|
+
promise = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:custom_headers)
|
281
283
|
|
282
284
|
promise = promise.then do |response|
|
283
285
|
# Defining deserialization method.
|
@@ -303,8 +305,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
303
305
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
304
306
|
# will be added to the HTTP request.
|
305
307
|
#
|
306
|
-
def delete(resource_group_name, lab_name, user_name, name, custom_headers
|
307
|
-
response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value!
|
308
|
+
def delete(resource_group_name, lab_name, user_name, name, custom_headers:nil)
|
309
|
+
response = delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value!
|
308
310
|
nil
|
309
311
|
end
|
310
312
|
|
@@ -319,9 +321,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
319
321
|
# @return [Concurrent::Promise] promise which provides async access to http
|
320
322
|
# response.
|
321
323
|
#
|
322
|
-
def delete_async(resource_group_name, lab_name, user_name, name, custom_headers
|
324
|
+
def delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil)
|
323
325
|
# Send request
|
324
|
-
promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers)
|
326
|
+
promise = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers)
|
325
327
|
|
326
328
|
promise = promise.then do |response|
|
327
329
|
# Defining deserialization method.
|
@@ -350,8 +352,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
350
352
|
#
|
351
353
|
# @return [DtlEnvironment] operation results.
|
352
354
|
#
|
353
|
-
def begin_create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers
|
354
|
-
response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value!
|
355
|
+
def begin_create_or_update(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil)
|
356
|
+
response = begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:custom_headers).value!
|
355
357
|
response.body unless response.nil?
|
356
358
|
end
|
357
359
|
|
@@ -370,8 +372,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
370
372
|
#
|
371
373
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
372
374
|
#
|
373
|
-
def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers
|
374
|
-
begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers).value!
|
375
|
+
def begin_create_or_update_with_http_info(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil)
|
376
|
+
begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:custom_headers).value!
|
375
377
|
end
|
376
378
|
|
377
379
|
#
|
@@ -389,7 +391,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
389
391
|
#
|
390
392
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
391
393
|
#
|
392
|
-
def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers
|
394
|
+
def begin_create_or_update_async(resource_group_name, lab_name, user_name, name, dtl_environment, custom_headers:nil)
|
393
395
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
394
396
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
395
397
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -400,13 +402,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
400
402
|
|
401
403
|
|
402
404
|
request_headers = {}
|
405
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
403
406
|
|
404
407
|
# Set Headers
|
405
408
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
406
409
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
407
410
|
|
408
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
409
|
-
|
410
411
|
# Serialize Request
|
411
412
|
request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DtlEnvironment.mapper()
|
412
413
|
request_content = @client.serialize(request_mapper, dtl_environment)
|
@@ -474,8 +475,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
474
475
|
# will be added to the HTTP request.
|
475
476
|
#
|
476
477
|
#
|
477
|
-
def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers
|
478
|
-
response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value!
|
478
|
+
def begin_delete(resource_group_name, lab_name, user_name, name, custom_headers:nil)
|
479
|
+
response = begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value!
|
479
480
|
nil
|
480
481
|
end
|
481
482
|
|
@@ -491,8 +492,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
491
492
|
#
|
492
493
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
493
494
|
#
|
494
|
-
def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers
|
495
|
-
begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers).value!
|
495
|
+
def begin_delete_with_http_info(resource_group_name, lab_name, user_name, name, custom_headers:nil)
|
496
|
+
begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:custom_headers).value!
|
496
497
|
end
|
497
498
|
|
498
499
|
#
|
@@ -507,7 +508,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
507
508
|
#
|
508
509
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
509
510
|
#
|
510
|
-
def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers
|
511
|
+
def begin_delete_async(resource_group_name, lab_name, user_name, name, custom_headers:nil)
|
511
512
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
512
513
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
513
514
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -517,6 +518,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
517
518
|
|
518
519
|
|
519
520
|
request_headers = {}
|
521
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
520
522
|
|
521
523
|
# Set Headers
|
522
524
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -561,8 +563,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
561
563
|
#
|
562
564
|
# @return [ResponseWithContinuationDtlEnvironment] operation results.
|
563
565
|
#
|
564
|
-
def list_next(next_page_link, custom_headers
|
565
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
566
|
+
def list_next(next_page_link, custom_headers:nil)
|
567
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
566
568
|
response.body unless response.nil?
|
567
569
|
end
|
568
570
|
|
@@ -576,8 +578,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
576
578
|
#
|
577
579
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
578
580
|
#
|
579
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
580
|
-
list_next_async(next_page_link, custom_headers).value!
|
581
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
582
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
581
583
|
end
|
582
584
|
|
583
585
|
#
|
@@ -590,11 +592,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
590
592
|
#
|
591
593
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
592
594
|
#
|
593
|
-
def list_next_async(next_page_link, custom_headers
|
595
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
594
596
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
595
597
|
|
596
598
|
|
597
599
|
request_headers = {}
|
600
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
598
601
|
|
599
602
|
# Set Headers
|
600
603
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -657,12 +660,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
|
|
657
660
|
# @return [ResponseWithContinuationDtlEnvironment] which provide lazy access to
|
658
661
|
# pages of the response.
|
659
662
|
#
|
660
|
-
def list_as_lazy(resource_group_name, lab_name, user_name, expand
|
661
|
-
response = list_async(resource_group_name, lab_name, user_name, expand, filter, top, orderby, custom_headers).value!
|
663
|
+
def list_as_lazy(resource_group_name, lab_name, user_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
664
|
+
response = list_async(resource_group_name, lab_name, user_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
662
665
|
unless response.nil?
|
663
666
|
page = response.body
|
664
667
|
page.next_method = Proc.new do |next_page_link|
|
665
|
-
list_next_async(next_page_link, custom_headers)
|
668
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
666
669
|
end
|
667
670
|
page
|
668
671
|
end
|