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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs.rb +70 -62
  3. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/arm_templates.rb +21 -18
  4. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb +39 -37
  5. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifacts.rb +27 -25
  6. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/costs.rb +12 -12
  7. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/custom_images.rb +41 -38
  8. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb +12 -1
  9. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/disks.rb +61 -60
  10. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/environments.rb +41 -38
  11. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/formulas.rb +37 -34
  12. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/gallery_images.rb +15 -13
  13. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/global_schedules.rb +74 -70
  14. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/labs.rb +113 -109
  15. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb +1 -1
  16. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/http_status_code.rb +56 -0
  17. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb +1 -1
  18. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb +57 -0
  19. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb +59 -0
  20. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb +80 -0
  21. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb +82 -0
  22. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb +101 -0
  23. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb +45 -44
  24. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/operations.rb +117 -0
  25. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policies.rb +39 -37
  26. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policy_sets.rb +6 -7
  27. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/provider_operations.rb +215 -0
  28. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/schedules.rb +64 -59
  29. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/secrets.rb +33 -30
  30. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/service_runners.rb +33 -30
  31. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/users.rb +43 -41
  32. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb +49 -46
  33. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb +113 -110
  34. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb +47 -45
  35. data/lib/profiles/latest/devtestlabs_latest_profile_client.rb +28 -9
  36. data/lib/profiles/latest/devtestlabs_module_definition.rb +0 -1
  37. data/lib/profiles/latest/modules/devtestlabs_profile_module.rb +589 -542
  38. data/lib/version.rb +1 -1
  39. metadata +10 -2
@@ -39,8 +39,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
39
39
  #
40
40
  # @return [Array<Artifact>] operation results.
41
41
  #
42
- def list(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
43
- first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers)
42
+ def list(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
43
+ first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_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, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
66
- list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers).value!
65
+ def list_with_http_info(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
66
+ list_async(resource_group_name, lab_name, artifact_source_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, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
87
+ def list_async(resource_group_name, lab_name, artifact_source_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 [Artifact] operation results.
153
154
  #
154
- def get(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil)
155
- response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value!
155
+ def get(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil)
156
+ response = get_async(resource_group_name, lab_name, artifact_source_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, artifact_source_name, name, expand = nil, custom_headers = nil)
174
- get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value!
174
+ def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil)
175
+ get_async(resource_group_name, lab_name, artifact_source_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, artifact_source_name, name, expand = nil, custom_headers = nil)
192
+ def get_async(resource_group_name, lab_name, artifact_source_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 [ArmTemplateInfo] operation results.
259
261
  #
260
- def generate_arm_template(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers = nil)
261
- response = generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers).value!
262
+ def generate_arm_template(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:nil)
263
+ response = generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:custom_headers).value!
262
264
  response.body unless response.nil?
263
265
  end
264
266
 
@@ -277,8 +279,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
277
279
  #
278
280
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
279
281
  #
280
- def generate_arm_template_with_http_info(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers = nil)
281
- generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers).value!
282
+ def generate_arm_template_with_http_info(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:nil)
283
+ generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:custom_headers).value!
282
284
  end
283
285
 
284
286
  #
@@ -296,7 +298,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
296
298
  #
297
299
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
298
300
  #
299
- def generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers = nil)
301
+ def generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:nil)
300
302
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
301
303
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
302
304
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -307,13 +309,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
307
309
 
308
310
 
309
311
  request_headers = {}
312
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
310
313
 
311
314
  # Set Headers
312
315
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
313
316
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
314
317
 
315
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
316
-
317
318
  # Serialize Request
318
319
  request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::GenerateArmTemplateRequest.mapper()
319
320
  request_content = @client.serialize(request_mapper, generate_arm_template_request)
@@ -370,8 +371,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
370
371
  #
371
372
  # @return [ResponseWithContinuationArtifact] operation results.
372
373
  #
373
- def list_next(next_page_link, custom_headers = nil)
374
- response = list_next_async(next_page_link, custom_headers).value!
374
+ def list_next(next_page_link, custom_headers:nil)
375
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
375
376
  response.body unless response.nil?
376
377
  end
377
378
 
@@ -385,8 +386,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
385
386
  #
386
387
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
387
388
  #
388
- def list_next_with_http_info(next_page_link, custom_headers = nil)
389
- list_next_async(next_page_link, custom_headers).value!
389
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
390
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
390
391
  end
391
392
 
392
393
  #
@@ -399,11 +400,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
399
400
  #
400
401
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
401
402
  #
402
- def list_next_async(next_page_link, custom_headers = nil)
403
+ def list_next_async(next_page_link, custom_headers:nil)
403
404
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
404
405
 
405
406
 
406
407
  request_headers = {}
408
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
407
409
 
408
410
  # Set Headers
409
411
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -466,12 +468,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
466
468
  # @return [ResponseWithContinuationArtifact] which provide lazy access to pages
467
469
  # of the response.
468
470
  #
469
- def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
470
- response = list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers).value!
471
+ def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
472
+ response = list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
471
473
  unless response.nil?
472
474
  page = response.body
473
475
  page.next_method = Proc.new do |next_page_link|
474
- list_next_async(next_page_link, custom_headers)
476
+ list_next_async(next_page_link, custom_headers:custom_headers)
475
477
  end
476
478
  page
477
479
  end
@@ -34,8 +34,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
34
34
  #
35
35
  # @return [LabCost] operation results.
36
36
  #
37
- def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
38
- response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value!
37
+ def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil)
38
+ response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value!
39
39
  response.body unless response.nil?
40
40
  end
41
41
 
@@ -52,8 +52,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
52
52
  #
53
53
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
54
  #
55
- def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
56
- get_async(resource_group_name, lab_name, name, expand, custom_headers).value!
55
+ def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil)
56
+ get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value!
57
57
  end
58
58
 
59
59
  #
@@ -69,7 +69,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
69
69
  #
70
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
71
  #
72
- def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
72
+ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil)
73
73
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
74
74
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
75
75
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -78,6 +78,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
78
78
 
79
79
 
80
80
  request_headers = {}
81
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
81
82
 
82
83
  # Set Headers
83
84
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -134,8 +135,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
134
135
  #
135
136
  # @return [LabCost] operation results.
136
137
  #
137
- def create_or_update(resource_group_name, lab_name, name, lab_cost, custom_headers = nil)
138
- response = create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers).value!
138
+ def create_or_update(resource_group_name, lab_name, name, lab_cost, custom_headers:nil)
139
+ response = create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers:custom_headers).value!
139
140
  response.body unless response.nil?
140
141
  end
141
142
 
@@ -151,8 +152,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
151
152
  #
152
153
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
153
154
  #
154
- def create_or_update_with_http_info(resource_group_name, lab_name, name, lab_cost, custom_headers = nil)
155
- create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers).value!
155
+ def create_or_update_with_http_info(resource_group_name, lab_name, name, lab_cost, custom_headers:nil)
156
+ create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers:custom_headers).value!
156
157
  end
157
158
 
158
159
  #
@@ -167,7 +168,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
167
168
  #
168
169
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
169
170
  #
170
- def create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers = nil)
171
+ def create_or_update_async(resource_group_name, lab_name, name, lab_cost, custom_headers:nil)
171
172
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
172
173
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
173
174
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -177,13 +178,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
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
183
185
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
184
186
 
185
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
186
-
187
187
  # Serialize Request
188
188
  request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabCost.mapper()
189
189
  request_content = @client.serialize(request_mapper, lab_cost)
@@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
38
38
  #
39
39
  # @return [Array<CustomImage>] operation results.
40
40
  #
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, 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 = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
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 = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
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 [CustomImage] operation results.
148
149
  #
149
- def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
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 = nil, custom_headers = nil)
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 = nil, custom_headers = nil)
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
@@ -247,8 +249,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
247
249
  #
248
250
  # @return [CustomImage] operation results.
249
251
  #
250
- def create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers = nil)
251
- response = create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value!
252
+ def create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers:nil)
253
+ response = create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:custom_headers).value!
252
254
  response.body unless response.nil?
253
255
  end
254
256
 
@@ -263,9 +265,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
263
265
  # @return [Concurrent::Promise] promise which provides async access to http
264
266
  # response.
265
267
  #
266
- def create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers = nil)
268
+ def create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:nil)
267
269
  # Send request
268
- promise = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers)
270
+ promise = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:custom_headers)
269
271
 
270
272
  promise = promise.then do |response|
271
273
  # Defining deserialization method.
@@ -290,8 +292,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
290
292
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
291
293
  # will be added to the HTTP request.
292
294
  #
293
- def delete(resource_group_name, lab_name, name, custom_headers = nil)
294
- response = delete_async(resource_group_name, lab_name, name, custom_headers).value!
295
+ def delete(resource_group_name, lab_name, name, custom_headers:nil)
296
+ response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
295
297
  nil
296
298
  end
297
299
 
@@ -305,9 +307,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
305
307
  # @return [Concurrent::Promise] promise which provides async access to http
306
308
  # response.
307
309
  #
308
- def delete_async(resource_group_name, lab_name, name, custom_headers = nil)
310
+ def delete_async(resource_group_name, lab_name, name, custom_headers:nil)
309
311
  # Send request
310
- promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers)
312
+ promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers)
311
313
 
312
314
  promise = promise.then do |response|
313
315
  # Defining deserialization method.
@@ -334,8 +336,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
334
336
  #
335
337
  # @return [CustomImage] operation results.
336
338
  #
337
- def begin_create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers = nil)
338
- response = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value!
339
+ def begin_create_or_update(resource_group_name, lab_name, name, custom_image, custom_headers:nil)
340
+ response = begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:custom_headers).value!
339
341
  response.body unless response.nil?
340
342
  end
341
343
 
@@ -352,8 +354,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
352
354
  #
353
355
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
354
356
  #
355
- def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, custom_image, custom_headers = nil)
356
- begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers).value!
357
+ def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, custom_image, custom_headers:nil)
358
+ begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:custom_headers).value!
357
359
  end
358
360
 
359
361
  #
@@ -369,7 +371,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
369
371
  #
370
372
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
371
373
  #
372
- def begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers = nil)
374
+ def begin_create_or_update_async(resource_group_name, lab_name, name, custom_image, custom_headers:nil)
373
375
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
374
376
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
375
377
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -379,13 +381,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
379
381
 
380
382
 
381
383
  request_headers = {}
384
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
382
385
 
383
386
  # Set Headers
384
387
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
385
388
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
386
389
 
387
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
388
-
389
390
  # Serialize Request
390
391
  request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::CustomImage.mapper()
391
392
  request_content = @client.serialize(request_mapper, custom_image)
@@ -452,8 +453,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
452
453
  # will be added to the HTTP request.
453
454
  #
454
455
  #
455
- def begin_delete(resource_group_name, lab_name, name, custom_headers = nil)
456
- response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value!
456
+ def begin_delete(resource_group_name, lab_name, name, custom_headers:nil)
457
+ response = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
457
458
  nil
458
459
  end
459
460
 
@@ -468,8 +469,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
468
469
  #
469
470
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
470
471
  #
471
- def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil)
472
- begin_delete_async(resource_group_name, lab_name, name, custom_headers).value!
472
+ def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil)
473
+ begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
473
474
  end
474
475
 
475
476
  #
@@ -483,7 +484,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
483
484
  #
484
485
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
485
486
  #
486
- def begin_delete_async(resource_group_name, lab_name, name, custom_headers = nil)
487
+ def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil)
487
488
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
488
489
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
489
490
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -492,6 +493,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
492
493
 
493
494
 
494
495
  request_headers = {}
496
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
495
497
 
496
498
  # Set Headers
497
499
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -536,8 +538,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
536
538
  #
537
539
  # @return [ResponseWithContinuationCustomImage] operation results.
538
540
  #
539
- def list_next(next_page_link, custom_headers = nil)
540
- response = list_next_async(next_page_link, custom_headers).value!
541
+ def list_next(next_page_link, custom_headers:nil)
542
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
541
543
  response.body unless response.nil?
542
544
  end
543
545
 
@@ -551,8 +553,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
551
553
  #
552
554
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
553
555
  #
554
- def list_next_with_http_info(next_page_link, custom_headers = nil)
555
- list_next_async(next_page_link, custom_headers).value!
556
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
557
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
556
558
  end
557
559
 
558
560
  #
@@ -565,11 +567,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
565
567
  #
566
568
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
567
569
  #
568
- def list_next_async(next_page_link, custom_headers = nil)
570
+ def list_next_async(next_page_link, custom_headers:nil)
569
571
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
570
572
 
571
573
 
572
574
  request_headers = {}
575
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
573
576
 
574
577
  # Set Headers
575
578
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -631,12 +634,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
631
634
  # @return [ResponseWithContinuationCustomImage] which provide lazy access to
632
635
  # pages of the response.
633
636
  #
634
- def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
635
- response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
637
+ def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
638
+ response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
636
639
  unless response.nil?
637
640
  page = response.body
638
641
  page.next_method = Proc.new do |next_page_link|
639
- list_next_async(next_page_link, custom_headers)
642
+ list_next_async(next_page_link, custom_headers:custom_headers)
640
643
  end
641
644
  page
642
645
  end