azure_mgmt_automation 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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-10-31/generated/azure_mgmt_automation.rb +54 -53
  3. data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +27 -31
  4. data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +18 -24
  5. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +54 -50
  6. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +7 -1
  7. data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +54 -68
  8. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +54 -68
  9. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +45 -55
  10. data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +54 -68
  11. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +45 -55
  12. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +54 -66
  13. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +45 -55
  14. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +45 -55
  15. data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +9 -11
  16. data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +45 -55
  17. data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +81 -99
  18. data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +45 -55
  19. data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +27 -31
  20. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +12 -0
  21. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb +1 -1
  22. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +12 -0
  23. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb +12 -0
  24. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +13 -0
  25. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb +1 -1
  26. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +12 -0
  27. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +21 -0
  28. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +12 -0
  29. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb +58 -0
  30. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb +26 -1
  31. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +16 -2
  32. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +2 -2
  33. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +1 -1
  34. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +16 -2
  35. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb +1 -1
  36. data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +54 -68
  37. data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +36 -42
  38. data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +18 -22
  39. data/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb +6 -5
  40. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +53 -70
  41. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +63 -79
  42. data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +54 -68
  43. data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +6 -5
  44. data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +27 -31
  45. data/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb +45 -57
  46. data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +6 -5
  47. data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +54 -68
  48. data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +63 -79
  49. data/lib/profiles/latest/automation_latest_profile_client.rb +28 -9
  50. data/lib/profiles/latest/automation_module_definition.rb +0 -1
  51. data/lib/profiles/latest/modules/automation_profile_module.rb +494 -471
  52. data/lib/version.rb +1 -1
  53. metadata +3 -2
@@ -24,7 +24,6 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete the dsc node identified by node id.
26
26
  #
27
- # @param resource_group_name [String] The resource group name.
28
27
  # @param automation_account_name [String] Automation account name.
29
28
  # @param node_id [String] The node id.
30
29
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -32,15 +31,14 @@ module Azure::Automation::Mgmt::V2015_10_31
32
31
  #
33
32
  # @return [DscNode] operation results.
34
33
  #
35
- def delete(resource_group_name, automation_account_name, node_id, custom_headers = nil)
36
- response = delete_async(resource_group_name, automation_account_name, node_id, custom_headers).value!
34
+ def delete(automation_account_name, node_id, custom_headers:nil)
35
+ response = delete_async(automation_account_name, node_id, custom_headers:custom_headers).value!
37
36
  response.body unless response.nil?
38
37
  end
39
38
 
40
39
  #
41
40
  # Delete the dsc node identified by node id.
42
41
  #
43
- # @param resource_group_name [String] The resource group name.
44
42
  # @param automation_account_name [String] Automation account name.
45
43
  # @param node_id [String] The node id.
46
44
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -48,14 +46,13 @@ module Azure::Automation::Mgmt::V2015_10_31
48
46
  #
49
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
48
  #
51
- def delete_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers = nil)
52
- delete_async(resource_group_name, automation_account_name, node_id, custom_headers).value!
49
+ def delete_with_http_info(automation_account_name, node_id, custom_headers:nil)
50
+ delete_async(automation_account_name, node_id, custom_headers:custom_headers).value!
53
51
  end
54
52
 
55
53
  #
56
54
  # Delete the dsc node identified by node id.
57
55
  #
58
- # @param resource_group_name [String] The resource group name.
59
56
  # @param automation_account_name [String] Automation account name.
60
57
  # @param node_id [String] The node id.
61
58
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -63,9 +60,9 @@ module Azure::Automation::Mgmt::V2015_10_31
63
60
  #
64
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
62
  #
66
- def delete_async(resource_group_name, automation_account_name, node_id, custom_headers = nil)
67
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
68
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
63
+ def delete_async(automation_account_name, node_id, custom_headers:nil)
64
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
65
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
69
66
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
70
67
  fail ArgumentError, 'node_id is nil' if node_id.nil?
71
68
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -73,6 +70,7 @@ module Azure::Automation::Mgmt::V2015_10_31
73
70
 
74
71
 
75
72
  request_headers = {}
73
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
76
74
 
77
75
  # Set Headers
78
76
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -83,7 +81,7 @@ module Azure::Automation::Mgmt::V2015_10_31
83
81
 
84
82
  options = {
85
83
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
86
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id},
84
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id},
87
85
  query_params: {'api-version' => @client.api_version},
88
86
  headers: request_headers.merge(custom_headers || {}),
89
87
  base_url: request_url
@@ -120,7 +118,6 @@ module Azure::Automation::Mgmt::V2015_10_31
120
118
  #
121
119
  # Retrieve the dsc node identified by node id.
122
120
  #
123
- # @param resource_group_name [String] The resource group name.
124
121
  # @param automation_account_name [String] The automation account name.
125
122
  # @param node_id [String] The node id.
126
123
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -128,15 +125,14 @@ module Azure::Automation::Mgmt::V2015_10_31
128
125
  #
129
126
  # @return [DscNode] operation results.
130
127
  #
131
- def get(resource_group_name, automation_account_name, node_id, custom_headers = nil)
132
- response = get_async(resource_group_name, automation_account_name, node_id, custom_headers).value!
128
+ def get(automation_account_name, node_id, custom_headers:nil)
129
+ response = get_async(automation_account_name, node_id, custom_headers:custom_headers).value!
133
130
  response.body unless response.nil?
134
131
  end
135
132
 
136
133
  #
137
134
  # Retrieve the dsc node identified by node id.
138
135
  #
139
- # @param resource_group_name [String] The resource group name.
140
136
  # @param automation_account_name [String] The automation account name.
141
137
  # @param node_id [String] The node id.
142
138
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -144,14 +140,13 @@ module Azure::Automation::Mgmt::V2015_10_31
144
140
  #
145
141
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
146
142
  #
147
- def get_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers = nil)
148
- get_async(resource_group_name, automation_account_name, node_id, custom_headers).value!
143
+ def get_with_http_info(automation_account_name, node_id, custom_headers:nil)
144
+ get_async(automation_account_name, node_id, custom_headers:custom_headers).value!
149
145
  end
150
146
 
151
147
  #
152
148
  # Retrieve the dsc node identified by node id.
153
149
  #
154
- # @param resource_group_name [String] The resource group name.
155
150
  # @param automation_account_name [String] The automation account name.
156
151
  # @param node_id [String] The node id.
157
152
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -159,9 +154,9 @@ module Azure::Automation::Mgmt::V2015_10_31
159
154
  #
160
155
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
161
156
  #
162
- def get_async(resource_group_name, automation_account_name, node_id, custom_headers = nil)
163
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
164
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
157
+ def get_async(automation_account_name, node_id, custom_headers:nil)
158
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
159
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
165
160
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
166
161
  fail ArgumentError, 'node_id is nil' if node_id.nil?
167
162
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -169,6 +164,7 @@ module Azure::Automation::Mgmt::V2015_10_31
169
164
 
170
165
 
171
166
  request_headers = {}
167
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
172
168
 
173
169
  # Set Headers
174
170
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -179,7 +175,7 @@ module Azure::Automation::Mgmt::V2015_10_31
179
175
 
180
176
  options = {
181
177
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
182
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id},
178
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id},
183
179
  query_params: {'api-version' => @client.api_version},
184
180
  headers: request_headers.merge(custom_headers || {}),
185
181
  base_url: request_url
@@ -216,7 +212,6 @@ module Azure::Automation::Mgmt::V2015_10_31
216
212
  #
217
213
  # Update the dsc node.
218
214
  #
219
- # @param resource_group_name [String] The resource group name.
220
215
  # @param automation_account_name [String] The automation account name.
221
216
  # @param node_id [String] Parameters supplied to the update dsc node.
222
217
  # @param parameters [DscNodeUpdateParameters] Parameters supplied to the update
@@ -226,15 +221,14 @@ module Azure::Automation::Mgmt::V2015_10_31
226
221
  #
227
222
  # @return [DscNode] operation results.
228
223
  #
229
- def update(resource_group_name, automation_account_name, node_id, parameters, custom_headers = nil)
230
- response = update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers).value!
224
+ def update(automation_account_name, node_id, parameters, custom_headers:nil)
225
+ response = update_async(automation_account_name, node_id, parameters, custom_headers:custom_headers).value!
231
226
  response.body unless response.nil?
232
227
  end
233
228
 
234
229
  #
235
230
  # Update the dsc node.
236
231
  #
237
- # @param resource_group_name [String] The resource group name.
238
232
  # @param automation_account_name [String] The automation account name.
239
233
  # @param node_id [String] Parameters supplied to the update dsc node.
240
234
  # @param parameters [DscNodeUpdateParameters] Parameters supplied to the update
@@ -244,14 +238,13 @@ module Azure::Automation::Mgmt::V2015_10_31
244
238
  #
245
239
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
246
240
  #
247
- def update_with_http_info(resource_group_name, automation_account_name, node_id, parameters, custom_headers = nil)
248
- update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers).value!
241
+ def update_with_http_info(automation_account_name, node_id, parameters, custom_headers:nil)
242
+ update_async(automation_account_name, node_id, parameters, custom_headers:custom_headers).value!
249
243
  end
250
244
 
251
245
  #
252
246
  # Update the dsc node.
253
247
  #
254
- # @param resource_group_name [String] The resource group name.
255
248
  # @param automation_account_name [String] The automation account name.
256
249
  # @param node_id [String] Parameters supplied to the update dsc node.
257
250
  # @param parameters [DscNodeUpdateParameters] Parameters supplied to the update
@@ -261,9 +254,9 @@ module Azure::Automation::Mgmt::V2015_10_31
261
254
  #
262
255
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
263
256
  #
264
- def update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers = nil)
265
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
266
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
257
+ def update_async(automation_account_name, node_id, parameters, custom_headers:nil)
258
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
259
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
267
260
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
268
261
  fail ArgumentError, 'node_id is nil' if node_id.nil?
269
262
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -272,13 +265,12 @@ module Azure::Automation::Mgmt::V2015_10_31
272
265
 
273
266
 
274
267
  request_headers = {}
268
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
275
269
 
276
270
  # Set Headers
277
271
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
278
272
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
279
273
 
280
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
281
-
282
274
  # Serialize Request
283
275
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeUpdateParameters.mapper()
284
276
  request_content = @client.serialize(request_mapper, parameters)
@@ -290,7 +282,7 @@ module Azure::Automation::Mgmt::V2015_10_31
290
282
 
291
283
  options = {
292
284
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
293
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id},
285
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id},
294
286
  query_params: {'api-version' => @client.api_version},
295
287
  body: request_content,
296
288
  headers: request_headers.merge(custom_headers || {}),
@@ -328,7 +320,6 @@ module Azure::Automation::Mgmt::V2015_10_31
328
320
  #
329
321
  # Retrieve a list of dsc nodes.
330
322
  #
331
- # @param resource_group_name [String] The resource group name.
332
323
  # @param automation_account_name [String] The automation account name.
333
324
  # @param filter [String] The filter to apply on the operation.
334
325
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -336,15 +327,14 @@ module Azure::Automation::Mgmt::V2015_10_31
336
327
  #
337
328
  # @return [Array<DscNode>] operation results.
338
329
  #
339
- def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
340
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers)
330
+ def list_by_automation_account(automation_account_name, filter:nil, custom_headers:nil)
331
+ first_page = list_by_automation_account_as_lazy(automation_account_name, filter:filter, custom_headers:custom_headers)
341
332
  first_page.get_all_items
342
333
  end
343
334
 
344
335
  #
345
336
  # Retrieve a list of dsc nodes.
346
337
  #
347
- # @param resource_group_name [String] The resource group name.
348
338
  # @param automation_account_name [String] The automation account name.
349
339
  # @param filter [String] The filter to apply on the operation.
350
340
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -352,14 +342,13 @@ module Azure::Automation::Mgmt::V2015_10_31
352
342
  #
353
343
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
354
344
  #
355
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
356
- list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
345
+ def list_by_automation_account_with_http_info(automation_account_name, filter:nil, custom_headers:nil)
346
+ list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
357
347
  end
358
348
 
359
349
  #
360
350
  # Retrieve a list of dsc nodes.
361
351
  #
362
- # @param resource_group_name [String] The resource group name.
363
352
  # @param automation_account_name [String] The automation account name.
364
353
  # @param filter [String] The filter to apply on the operation.
365
354
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -367,15 +356,16 @@ module Azure::Automation::Mgmt::V2015_10_31
367
356
  #
368
357
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
369
358
  #
370
- def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
371
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
372
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
359
+ def list_by_automation_account_async(automation_account_name, filter:nil, custom_headers:nil)
360
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
361
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
373
362
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
374
363
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
375
364
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
376
365
 
377
366
 
378
367
  request_headers = {}
368
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
379
369
 
380
370
  # Set Headers
381
371
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -386,7 +376,7 @@ module Azure::Automation::Mgmt::V2015_10_31
386
376
 
387
377
  options = {
388
378
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
389
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
379
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
390
380
  query_params: {'$filter' => filter,'api-version' => @client.api_version},
391
381
  headers: request_headers.merge(custom_headers || {}),
392
382
  base_url: request_url
@@ -430,8 +420,8 @@ module Azure::Automation::Mgmt::V2015_10_31
430
420
  #
431
421
  # @return [DscNodeListResult] operation results.
432
422
  #
433
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
434
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
423
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
424
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
435
425
  response.body unless response.nil?
436
426
  end
437
427
 
@@ -445,8 +435,8 @@ module Azure::Automation::Mgmt::V2015_10_31
445
435
  #
446
436
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
447
437
  #
448
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
449
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
438
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
439
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
450
440
  end
451
441
 
452
442
  #
@@ -459,11 +449,12 @@ module Azure::Automation::Mgmt::V2015_10_31
459
449
  #
460
450
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
461
451
  #
462
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
452
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
463
453
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
464
454
 
465
455
 
466
456
  request_headers = {}
457
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
467
458
 
468
459
  # Set Headers
469
460
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -510,7 +501,6 @@ module Azure::Automation::Mgmt::V2015_10_31
510
501
  #
511
502
  # Retrieve a list of dsc nodes.
512
503
  #
513
- # @param resource_group_name [String] The resource group name.
514
504
  # @param automation_account_name [String] The automation account name.
515
505
  # @param filter [String] The filter to apply on the operation.
516
506
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -519,12 +509,12 @@ module Azure::Automation::Mgmt::V2015_10_31
519
509
  # @return [DscNodeListResult] which provide lazy access to pages of the
520
510
  # response.
521
511
  #
522
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
523
- response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
512
+ def list_by_automation_account_as_lazy(automation_account_name, filter:nil, custom_headers:nil)
513
+ response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
524
514
  unless response.nil?
525
515
  page = response.body
526
516
  page.next_method = Proc.new do |next_page_link|
527
- list_by_automation_account_next_async(next_page_link, custom_headers)
517
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
528
518
  end
529
519
  page
530
520
  end
@@ -24,7 +24,6 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Retrieve a list of fields of a given type identified by module name.
26
26
  #
27
- # @param resource_group_name [String] The resource group name.
28
27
  # @param automation_account_name [String] The automation account name.
29
28
  # @param module_name [String] The name of module.
30
29
  # @param type_name [String] The name of type.
@@ -33,15 +32,14 @@ module Azure::Automation::Mgmt::V2015_10_31
33
32
  #
34
33
  # @return [TypeFieldListResult] operation results.
35
34
  #
36
- def list_by_type(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil)
37
- response = list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers).value!
35
+ def list_by_type(automation_account_name, module_name, type_name, custom_headers:nil)
36
+ response = list_by_type_async(automation_account_name, module_name, type_name, custom_headers:custom_headers).value!
38
37
  response.body unless response.nil?
39
38
  end
40
39
 
41
40
  #
42
41
  # Retrieve a list of fields of a given type identified by module name.
43
42
  #
44
- # @param resource_group_name [String] The resource group name.
45
43
  # @param automation_account_name [String] The automation account name.
46
44
  # @param module_name [String] The name of module.
47
45
  # @param type_name [String] The name of type.
@@ -50,14 +48,13 @@ module Azure::Automation::Mgmt::V2015_10_31
50
48
  #
51
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
50
  #
53
- def list_by_type_with_http_info(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil)
54
- list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers).value!
51
+ def list_by_type_with_http_info(automation_account_name, module_name, type_name, custom_headers:nil)
52
+ list_by_type_async(automation_account_name, module_name, type_name, custom_headers:custom_headers).value!
55
53
  end
56
54
 
57
55
  #
58
56
  # Retrieve a list of fields of a given type identified by module name.
59
57
  #
60
- # @param resource_group_name [String] The resource group name.
61
58
  # @param automation_account_name [String] The automation account name.
62
59
  # @param module_name [String] The name of module.
63
60
  # @param type_name [String] The name of type.
@@ -66,9 +63,9 @@ module Azure::Automation::Mgmt::V2015_10_31
66
63
  #
67
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
65
  #
69
- def list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil)
70
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
66
+ def list_by_type_async(automation_account_name, module_name, type_name, custom_headers:nil)
67
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
68
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
72
69
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
73
70
  fail ArgumentError, 'module_name is nil' if module_name.nil?
74
71
  fail ArgumentError, 'type_name is nil' if type_name.nil?
@@ -77,6 +74,7 @@ module Azure::Automation::Mgmt::V2015_10_31
77
74
 
78
75
 
79
76
  request_headers = {}
77
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
80
78
 
81
79
  # Set Headers
82
80
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -87,7 +85,7 @@ module Azure::Automation::Mgmt::V2015_10_31
87
85
 
88
86
  options = {
89
87
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
90
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id},
88
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id},
91
89
  query_params: {'api-version' => @client.api_version},
92
90
  headers: request_headers.merge(custom_headers || {}),
93
91
  base_url: request_url
@@ -24,7 +24,6 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete a hybrid runbook worker group.
26
26
  #
27
- # @param resource_group_name [String] The resource group name.
28
27
  # @param automation_account_name [String] Automation account name.
29
28
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
30
29
  # group name
@@ -32,15 +31,14 @@ module Azure::Automation::Mgmt::V2015_10_31
32
31
  # will be added to the HTTP request.
33
32
  #
34
33
  #
35
- def delete(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil)
36
- response = delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value!
34
+ def delete(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
35
+ response = delete_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
37
36
  nil
38
37
  end
39
38
 
40
39
  #
41
40
  # Delete a hybrid runbook worker group.
42
41
  #
43
- # @param resource_group_name [String] The resource group name.
44
42
  # @param automation_account_name [String] Automation account name.
45
43
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
46
44
  # group name
@@ -49,14 +47,13 @@ module Azure::Automation::Mgmt::V2015_10_31
49
47
  #
50
48
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
51
49
  #
52
- def delete_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil)
53
- delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value!
50
+ def delete_with_http_info(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
51
+ delete_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
54
52
  end
55
53
 
56
54
  #
57
55
  # Delete a hybrid runbook worker group.
58
56
  #
59
- # @param resource_group_name [String] The resource group name.
60
57
  # @param automation_account_name [String] Automation account name.
61
58
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
62
59
  # group name
@@ -65,9 +62,9 @@ module Azure::Automation::Mgmt::V2015_10_31
65
62
  #
66
63
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
67
64
  #
68
- def delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil)
69
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
70
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
65
+ def delete_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
66
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
67
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
71
68
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
72
69
  fail ArgumentError, 'hybrid_runbook_worker_group_name is nil' if hybrid_runbook_worker_group_name.nil?
73
70
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -75,6 +72,7 @@ module Azure::Automation::Mgmt::V2015_10_31
75
72
 
76
73
 
77
74
  request_headers = {}
75
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
78
76
 
79
77
  # Set Headers
80
78
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -85,7 +83,7 @@ module Azure::Automation::Mgmt::V2015_10_31
85
83
 
86
84
  options = {
87
85
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
88
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id},
86
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id},
89
87
  query_params: {'api-version' => @client.api_version},
90
88
  headers: request_headers.merge(custom_headers || {}),
91
89
  base_url: request_url
@@ -112,7 +110,6 @@ module Azure::Automation::Mgmt::V2015_10_31
112
110
  #
113
111
  # Retrieve a hybrid runbook worker group.
114
112
  #
115
- # @param resource_group_name [String] The resource group name.
116
113
  # @param automation_account_name [String] The automation account name.
117
114
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
118
115
  # group name
@@ -121,15 +118,14 @@ module Azure::Automation::Mgmt::V2015_10_31
121
118
  #
122
119
  # @return [HybridRunbookWorkerGroup] operation results.
123
120
  #
124
- def get(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil)
125
- response = get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value!
121
+ def get(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
122
+ response = get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
126
123
  response.body unless response.nil?
127
124
  end
128
125
 
129
126
  #
130
127
  # Retrieve a hybrid runbook worker group.
131
128
  #
132
- # @param resource_group_name [String] The resource group name.
133
129
  # @param automation_account_name [String] The automation account name.
134
130
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
135
131
  # group name
@@ -138,14 +134,13 @@ module Azure::Automation::Mgmt::V2015_10_31
138
134
  #
139
135
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
140
136
  #
141
- def get_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil)
142
- get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value!
137
+ def get_with_http_info(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
138
+ get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
143
139
  end
144
140
 
145
141
  #
146
142
  # Retrieve a hybrid runbook worker group.
147
143
  #
148
- # @param resource_group_name [String] The resource group name.
149
144
  # @param automation_account_name [String] The automation account name.
150
145
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
151
146
  # group name
@@ -154,9 +149,9 @@ module Azure::Automation::Mgmt::V2015_10_31
154
149
  #
155
150
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
156
151
  #
157
- def get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil)
158
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
159
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
152
+ def get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
153
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
154
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
160
155
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
161
156
  fail ArgumentError, 'hybrid_runbook_worker_group_name is nil' if hybrid_runbook_worker_group_name.nil?
162
157
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -164,6 +159,7 @@ module Azure::Automation::Mgmt::V2015_10_31
164
159
 
165
160
 
166
161
  request_headers = {}
162
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
167
163
 
168
164
  # Set Headers
169
165
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -174,7 +170,7 @@ module Azure::Automation::Mgmt::V2015_10_31
174
170
 
175
171
  options = {
176
172
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
177
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id},
173
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id},
178
174
  query_params: {'api-version' => @client.api_version},
179
175
  headers: request_headers.merge(custom_headers || {}),
180
176
  base_url: request_url
@@ -211,7 +207,6 @@ module Azure::Automation::Mgmt::V2015_10_31
211
207
  #
212
208
  # Update a hybrid runbook worker group.
213
209
  #
214
- # @param resource_group_name [String] The resource group name.
215
210
  # @param automation_account_name [String] The automation account name.
216
211
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
217
212
  # group name
@@ -222,15 +217,14 @@ module Azure::Automation::Mgmt::V2015_10_31
222
217
  #
223
218
  # @return [HybridRunbookWorkerGroup] operation results.
224
219
  #
225
- def update(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil)
226
- response = update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers).value!
220
+ def update(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil)
221
+ response = update_async(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:custom_headers).value!
227
222
  response.body unless response.nil?
228
223
  end
229
224
 
230
225
  #
231
226
  # Update a hybrid runbook worker group.
232
227
  #
233
- # @param resource_group_name [String] The resource group name.
234
228
  # @param automation_account_name [String] The automation account name.
235
229
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
236
230
  # group name
@@ -241,14 +235,13 @@ module Azure::Automation::Mgmt::V2015_10_31
241
235
  #
242
236
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
243
237
  #
244
- def update_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil)
245
- update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers).value!
238
+ def update_with_http_info(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil)
239
+ update_async(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:custom_headers).value!
246
240
  end
247
241
 
248
242
  #
249
243
  # Update a hybrid runbook worker group.
250
244
  #
251
- # @param resource_group_name [String] The resource group name.
252
245
  # @param automation_account_name [String] The automation account name.
253
246
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
254
247
  # group name
@@ -259,9 +252,9 @@ module Azure::Automation::Mgmt::V2015_10_31
259
252
  #
260
253
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
261
254
  #
262
- def update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil)
263
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
264
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
255
+ def update_async(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil)
256
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
257
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
265
258
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
266
259
  fail ArgumentError, 'hybrid_runbook_worker_group_name is nil' if hybrid_runbook_worker_group_name.nil?
267
260
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -270,13 +263,12 @@ module Azure::Automation::Mgmt::V2015_10_31
270
263
 
271
264
 
272
265
  request_headers = {}
266
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
273
267
 
274
268
  # Set Headers
275
269
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
276
270
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
277
271
 
278
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
279
-
280
272
  # Serialize Request
281
273
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroupUpdateParameters.mapper()
282
274
  request_content = @client.serialize(request_mapper, parameters)
@@ -288,7 +280,7 @@ module Azure::Automation::Mgmt::V2015_10_31
288
280
 
289
281
  options = {
290
282
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
291
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id},
283
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id},
292
284
  query_params: {'api-version' => @client.api_version},
293
285
  body: request_content,
294
286
  headers: request_headers.merge(custom_headers || {}),
@@ -326,51 +318,49 @@ module Azure::Automation::Mgmt::V2015_10_31
326
318
  #
327
319
  # Retrieve a list of hybrid runbook worker groups.
328
320
  #
329
- # @param resource_group_name [String] The resource group name.
330
321
  # @param automation_account_name [String] The automation account name.
331
322
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
332
323
  # will be added to the HTTP request.
333
324
  #
334
325
  # @return [Array<HybridRunbookWorkerGroup>] operation results.
335
326
  #
336
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
337
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
327
+ def list_by_automation_account(automation_account_name, custom_headers:nil)
328
+ first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
338
329
  first_page.get_all_items
339
330
  end
340
331
 
341
332
  #
342
333
  # Retrieve a list of hybrid runbook worker groups.
343
334
  #
344
- # @param resource_group_name [String] The resource group name.
345
335
  # @param automation_account_name [String] The automation account name.
346
336
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
347
337
  # will be added to the HTTP request.
348
338
  #
349
339
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
350
340
  #
351
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
352
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
341
+ def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
342
+ list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
353
343
  end
354
344
 
355
345
  #
356
346
  # Retrieve a list of hybrid runbook worker groups.
357
347
  #
358
- # @param resource_group_name [String] The resource group name.
359
348
  # @param automation_account_name [String] The automation account name.
360
349
  # @param [Hash{String => String}] A hash of custom headers that will be added
361
350
  # to the HTTP request.
362
351
  #
363
352
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
364
353
  #
365
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
366
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
367
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
354
+ def list_by_automation_account_async(automation_account_name, custom_headers:nil)
355
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
356
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
368
357
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
369
358
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
370
359
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
371
360
 
372
361
 
373
362
  request_headers = {}
363
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
374
364
 
375
365
  # Set Headers
376
366
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -381,7 +371,7 @@ module Azure::Automation::Mgmt::V2015_10_31
381
371
 
382
372
  options = {
383
373
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
384
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
374
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
385
375
  query_params: {'api-version' => @client.api_version},
386
376
  headers: request_headers.merge(custom_headers || {}),
387
377
  base_url: request_url
@@ -425,8 +415,8 @@ module Azure::Automation::Mgmt::V2015_10_31
425
415
  #
426
416
  # @return [HybridRunbookWorkerGroupsListResult] operation results.
427
417
  #
428
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
429
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
418
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
419
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
430
420
  response.body unless response.nil?
431
421
  end
432
422
 
@@ -440,8 +430,8 @@ module Azure::Automation::Mgmt::V2015_10_31
440
430
  #
441
431
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
442
432
  #
443
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
444
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
433
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
434
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
445
435
  end
446
436
 
447
437
  #
@@ -454,11 +444,12 @@ module Azure::Automation::Mgmt::V2015_10_31
454
444
  #
455
445
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
456
446
  #
457
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
447
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
458
448
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
459
449
 
460
450
 
461
451
  request_headers = {}
452
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
462
453
 
463
454
  # Set Headers
464
455
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -505,7 +496,6 @@ module Azure::Automation::Mgmt::V2015_10_31
505
496
  #
506
497
  # Retrieve a list of hybrid runbook worker groups.
507
498
  #
508
- # @param resource_group_name [String] The resource group name.
509
499
  # @param automation_account_name [String] The automation account name.
510
500
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
511
501
  # will be added to the HTTP request.
@@ -513,12 +503,12 @@ module Azure::Automation::Mgmt::V2015_10_31
513
503
  # @return [HybridRunbookWorkerGroupsListResult] which provide lazy access to
514
504
  # pages of the response.
515
505
  #
516
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
517
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
506
+ def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
507
+ response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
518
508
  unless response.nil?
519
509
  page = response.body
520
510
  page.next_method = Proc.new do |next_page_link|
521
- list_by_automation_account_next_async(next_page_link, custom_headers)
511
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
522
512
  end
523
513
  page
524
514
  end