azure_mgmt_automation 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
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 connection.
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 connection_name [String] The name of connection.
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 [Connection] operation results.
34
33
  #
35
- def delete(resource_group_name, automation_account_name, connection_name, custom_headers = nil)
36
- response = delete_async(resource_group_name, automation_account_name, connection_name, custom_headers).value!
34
+ def delete(automation_account_name, connection_name, custom_headers:nil)
35
+ response = delete_async(automation_account_name, connection_name, custom_headers:custom_headers).value!
37
36
  response.body unless response.nil?
38
37
  end
39
38
 
40
39
  #
41
40
  # Delete the connection.
42
41
  #
43
- # @param resource_group_name [String] The resource group name.
44
42
  # @param automation_account_name [String] The automation account name.
45
43
  # @param connection_name [String] The name of connection.
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, connection_name, custom_headers = nil)
52
- delete_async(resource_group_name, automation_account_name, connection_name, custom_headers).value!
49
+ def delete_with_http_info(automation_account_name, connection_name, custom_headers:nil)
50
+ delete_async(automation_account_name, connection_name, custom_headers:custom_headers).value!
53
51
  end
54
52
 
55
53
  #
56
54
  # Delete the connection.
57
55
  #
58
- # @param resource_group_name [String] The resource group name.
59
56
  # @param automation_account_name [String] The automation account name.
60
57
  # @param connection_name [String] The name of connection.
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, connection_name, 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, connection_name, 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, 'connection_name is nil' if connection_name.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,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id},
84
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'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 connection identified by connection name.
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 connection_name [String] The name of connection.
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 [Connection] operation results.
130
127
  #
131
- def get(resource_group_name, automation_account_name, connection_name, custom_headers = nil)
132
- response = get_async(resource_group_name, automation_account_name, connection_name, custom_headers).value!
128
+ def get(automation_account_name, connection_name, custom_headers:nil)
129
+ response = get_async(automation_account_name, connection_name, custom_headers:custom_headers).value!
133
130
  response.body unless response.nil?
134
131
  end
135
132
 
136
133
  #
137
134
  # Retrieve the connection identified by connection name.
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 connection_name [String] The name of connection.
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, connection_name, custom_headers = nil)
148
- get_async(resource_group_name, automation_account_name, connection_name, custom_headers).value!
143
+ def get_with_http_info(automation_account_name, connection_name, custom_headers:nil)
144
+ get_async(automation_account_name, connection_name, custom_headers:custom_headers).value!
149
145
  end
150
146
 
151
147
  #
152
148
  # Retrieve the connection identified by connection name.
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 connection_name [String] The name of connection.
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, connection_name, 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, connection_name, 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, 'connection_name is nil' if connection_name.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,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id},
178
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'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
  # Create or update a connection.
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 connection_name [String] The parameters supplied to the create or
222
217
  # update connection operation.
@@ -227,15 +222,14 @@ module Azure::Automation::Mgmt::V2015_10_31
227
222
  #
228
223
  # @return [Connection] operation results.
229
224
  #
230
- def create_or_update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil)
231
- response = create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value!
225
+ def create_or_update(automation_account_name, connection_name, parameters, custom_headers:nil)
226
+ response = create_or_update_async(automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
232
227
  response.body unless response.nil?
233
228
  end
234
229
 
235
230
  #
236
231
  # Create or update a connection.
237
232
  #
238
- # @param resource_group_name [String] The resource group name.
239
233
  # @param automation_account_name [String] The automation account name.
240
234
  # @param connection_name [String] The parameters supplied to the create or
241
235
  # update connection operation.
@@ -246,14 +240,13 @@ module Azure::Automation::Mgmt::V2015_10_31
246
240
  #
247
241
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
248
242
  #
249
- def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil)
250
- create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value!
243
+ def create_or_update_with_http_info(automation_account_name, connection_name, parameters, custom_headers:nil)
244
+ create_or_update_async(automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
251
245
  end
252
246
 
253
247
  #
254
248
  # Create or update a connection.
255
249
  #
256
- # @param resource_group_name [String] The resource group name.
257
250
  # @param automation_account_name [String] The automation account name.
258
251
  # @param connection_name [String] The parameters supplied to the create or
259
252
  # update connection operation.
@@ -264,9 +257,9 @@ module Azure::Automation::Mgmt::V2015_10_31
264
257
  #
265
258
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
266
259
  #
267
- def create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil)
268
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
269
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
260
+ def create_or_update_async(automation_account_name, connection_name, parameters, custom_headers:nil)
261
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
262
+ 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?
270
263
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
271
264
  fail ArgumentError, 'connection_name is nil' if connection_name.nil?
272
265
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -275,13 +268,12 @@ module Azure::Automation::Mgmt::V2015_10_31
275
268
 
276
269
 
277
270
  request_headers = {}
271
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
278
272
 
279
273
  # Set Headers
280
274
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
281
275
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
282
276
 
283
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
284
-
285
277
  # Serialize Request
286
278
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionCreateOrUpdateParameters.mapper()
287
279
  request_content = @client.serialize(request_mapper, parameters)
@@ -293,7 +285,7 @@ module Azure::Automation::Mgmt::V2015_10_31
293
285
 
294
286
  options = {
295
287
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
296
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id},
288
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id},
297
289
  query_params: {'api-version' => @client.api_version},
298
290
  body: request_content,
299
291
  headers: request_headers.merge(custom_headers || {}),
@@ -341,7 +333,6 @@ module Azure::Automation::Mgmt::V2015_10_31
341
333
  #
342
334
  # Update a connection.
343
335
  #
344
- # @param resource_group_name [String] The resource group name.
345
336
  # @param automation_account_name [String] The automation account name.
346
337
  # @param connection_name [String] The parameters supplied to the update a
347
338
  # connection operation.
@@ -352,15 +343,14 @@ module Azure::Automation::Mgmt::V2015_10_31
352
343
  #
353
344
  # @return [Connection] operation results.
354
345
  #
355
- def update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil)
356
- response = update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value!
346
+ def update(automation_account_name, connection_name, parameters, custom_headers:nil)
347
+ response = update_async(automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
357
348
  response.body unless response.nil?
358
349
  end
359
350
 
360
351
  #
361
352
  # Update a connection.
362
353
  #
363
- # @param resource_group_name [String] The resource group name.
364
354
  # @param automation_account_name [String] The automation account name.
365
355
  # @param connection_name [String] The parameters supplied to the update a
366
356
  # connection operation.
@@ -371,14 +361,13 @@ module Azure::Automation::Mgmt::V2015_10_31
371
361
  #
372
362
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
373
363
  #
374
- def update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil)
375
- update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value!
364
+ def update_with_http_info(automation_account_name, connection_name, parameters, custom_headers:nil)
365
+ update_async(automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
376
366
  end
377
367
 
378
368
  #
379
369
  # Update a connection.
380
370
  #
381
- # @param resource_group_name [String] The resource group name.
382
371
  # @param automation_account_name [String] The automation account name.
383
372
  # @param connection_name [String] The parameters supplied to the update a
384
373
  # connection operation.
@@ -389,9 +378,9 @@ module Azure::Automation::Mgmt::V2015_10_31
389
378
  #
390
379
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
391
380
  #
392
- def update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil)
393
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
394
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
381
+ def update_async(automation_account_name, connection_name, parameters, custom_headers:nil)
382
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
383
+ 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?
395
384
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
396
385
  fail ArgumentError, 'connection_name is nil' if connection_name.nil?
397
386
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -400,13 +389,12 @@ module Azure::Automation::Mgmt::V2015_10_31
400
389
 
401
390
 
402
391
  request_headers = {}
392
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
403
393
 
404
394
  # Set Headers
405
395
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
406
396
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
407
397
 
408
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
409
-
410
398
  # Serialize Request
411
399
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters.mapper()
412
400
  request_content = @client.serialize(request_mapper, parameters)
@@ -418,7 +406,7 @@ module Azure::Automation::Mgmt::V2015_10_31
418
406
 
419
407
  options = {
420
408
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
421
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id},
409
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id},
422
410
  query_params: {'api-version' => @client.api_version},
423
411
  body: request_content,
424
412
  headers: request_headers.merge(custom_headers || {}),
@@ -456,51 +444,49 @@ module Azure::Automation::Mgmt::V2015_10_31
456
444
  #
457
445
  # Retrieve a list of connections.
458
446
  #
459
- # @param resource_group_name [String] The resource group name.
460
447
  # @param automation_account_name [String] The automation account name.
461
448
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
462
449
  # will be added to the HTTP request.
463
450
  #
464
451
  # @return [Array<Connection>] operation results.
465
452
  #
466
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
467
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
453
+ def list_by_automation_account(automation_account_name, custom_headers:nil)
454
+ first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
468
455
  first_page.get_all_items
469
456
  end
470
457
 
471
458
  #
472
459
  # Retrieve a list of connections.
473
460
  #
474
- # @param resource_group_name [String] The resource group name.
475
461
  # @param automation_account_name [String] The automation account name.
476
462
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
477
463
  # will be added to the HTTP request.
478
464
  #
479
465
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
480
466
  #
481
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
482
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
467
+ def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
468
+ list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
483
469
  end
484
470
 
485
471
  #
486
472
  # Retrieve a list of connections.
487
473
  #
488
- # @param resource_group_name [String] The resource group name.
489
474
  # @param automation_account_name [String] The automation account name.
490
475
  # @param [Hash{String => String}] A hash of custom headers that will be added
491
476
  # to the HTTP request.
492
477
  #
493
478
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
494
479
  #
495
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
496
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
497
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
480
+ def list_by_automation_account_async(automation_account_name, custom_headers:nil)
481
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
482
+ 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?
498
483
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
499
484
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
500
485
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
501
486
 
502
487
 
503
488
  request_headers = {}
489
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
504
490
 
505
491
  # Set Headers
506
492
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -511,7 +497,7 @@ module Azure::Automation::Mgmt::V2015_10_31
511
497
 
512
498
  options = {
513
499
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
514
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
500
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
515
501
  query_params: {'api-version' => @client.api_version},
516
502
  headers: request_headers.merge(custom_headers || {}),
517
503
  base_url: request_url
@@ -555,8 +541,8 @@ module Azure::Automation::Mgmt::V2015_10_31
555
541
  #
556
542
  # @return [ConnectionListResult] operation results.
557
543
  #
558
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
559
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
544
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
545
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
560
546
  response.body unless response.nil?
561
547
  end
562
548
 
@@ -570,8 +556,8 @@ module Azure::Automation::Mgmt::V2015_10_31
570
556
  #
571
557
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
572
558
  #
573
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
574
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
559
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
560
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
575
561
  end
576
562
 
577
563
  #
@@ -584,11 +570,12 @@ module Azure::Automation::Mgmt::V2015_10_31
584
570
  #
585
571
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
586
572
  #
587
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
573
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
588
574
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
589
575
 
590
576
 
591
577
  request_headers = {}
578
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
592
579
 
593
580
  # Set Headers
594
581
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -635,7 +622,6 @@ module Azure::Automation::Mgmt::V2015_10_31
635
622
  #
636
623
  # Retrieve a list of connections.
637
624
  #
638
- # @param resource_group_name [String] The resource group name.
639
625
  # @param automation_account_name [String] The automation account name.
640
626
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
641
627
  # will be added to the HTTP request.
@@ -643,12 +629,12 @@ module Azure::Automation::Mgmt::V2015_10_31
643
629
  # @return [ConnectionListResult] which provide lazy access to pages of the
644
630
  # response.
645
631
  #
646
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
647
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
632
+ def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
633
+ response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
648
634
  unless response.nil?
649
635
  page = response.body
650
636
  page.next_method = Proc.new do |next_page_link|
651
- list_by_automation_account_next_async(next_page_link, custom_headers)
637
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
652
638
  end
653
639
  page
654
640
  end
@@ -24,22 +24,20 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete the connectiontype.
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 connection_type_name [String] The name of connectiontype.
30
29
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
30
  # will be added to the HTTP request.
32
31
  #
33
32
  #
34
- def delete(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil)
35
- response = delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value!
33
+ def delete(automation_account_name, connection_type_name, custom_headers:nil)
34
+ response = delete_async(automation_account_name, connection_type_name, custom_headers:custom_headers).value!
36
35
  nil
37
36
  end
38
37
 
39
38
  #
40
39
  # Delete the connectiontype.
41
40
  #
42
- # @param resource_group_name [String] The resource group name.
43
41
  # @param automation_account_name [String] The automation account name.
44
42
  # @param connection_type_name [String] The name of connectiontype.
45
43
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -47,14 +45,13 @@ module Azure::Automation::Mgmt::V2015_10_31
47
45
  #
48
46
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
49
47
  #
50
- def delete_with_http_info(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil)
51
- delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value!
48
+ def delete_with_http_info(automation_account_name, connection_type_name, custom_headers:nil)
49
+ delete_async(automation_account_name, connection_type_name, custom_headers:custom_headers).value!
52
50
  end
53
51
 
54
52
  #
55
53
  # Delete the connectiontype.
56
54
  #
57
- # @param resource_group_name [String] The resource group name.
58
55
  # @param automation_account_name [String] The automation account name.
59
56
  # @param connection_type_name [String] The name of connectiontype.
60
57
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -62,9 +59,9 @@ module Azure::Automation::Mgmt::V2015_10_31
62
59
  #
63
60
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
64
61
  #
65
- def delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil)
66
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
67
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
62
+ def delete_async(automation_account_name, connection_type_name, custom_headers:nil)
63
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
64
+ 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?
68
65
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
69
66
  fail ArgumentError, 'connection_type_name is nil' if connection_type_name.nil?
70
67
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -72,6 +69,7 @@ module Azure::Automation::Mgmt::V2015_10_31
72
69
 
73
70
 
74
71
  request_headers = {}
72
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
73
 
76
74
  # Set Headers
77
75
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -82,7 +80,7 @@ module Azure::Automation::Mgmt::V2015_10_31
82
80
 
83
81
  options = {
84
82
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
85
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id},
83
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id},
86
84
  query_params: {'api-version' => @client.api_version},
87
85
  headers: request_headers.merge(custom_headers || {}),
88
86
  base_url: request_url
@@ -109,7 +107,6 @@ module Azure::Automation::Mgmt::V2015_10_31
109
107
  #
110
108
  # Retrieve the connectiontype identified by connectiontype name.
111
109
  #
112
- # @param resource_group_name [String] The resource group name.
113
110
  # @param automation_account_name [String] The automation account name.
114
111
  # @param connection_type_name [String] The name of connectiontype.
115
112
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -117,15 +114,14 @@ module Azure::Automation::Mgmt::V2015_10_31
117
114
  #
118
115
  # @return [ConnectionType] operation results.
119
116
  #
120
- def get(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil)
121
- response = get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value!
117
+ def get(automation_account_name, connection_type_name, custom_headers:nil)
118
+ response = get_async(automation_account_name, connection_type_name, custom_headers:custom_headers).value!
122
119
  response.body unless response.nil?
123
120
  end
124
121
 
125
122
  #
126
123
  # Retrieve the connectiontype identified by connectiontype name.
127
124
  #
128
- # @param resource_group_name [String] The resource group name.
129
125
  # @param automation_account_name [String] The automation account name.
130
126
  # @param connection_type_name [String] The name of connectiontype.
131
127
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -133,14 +129,13 @@ module Azure::Automation::Mgmt::V2015_10_31
133
129
  #
134
130
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
135
131
  #
136
- def get_with_http_info(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil)
137
- get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value!
132
+ def get_with_http_info(automation_account_name, connection_type_name, custom_headers:nil)
133
+ get_async(automation_account_name, connection_type_name, custom_headers:custom_headers).value!
138
134
  end
139
135
 
140
136
  #
141
137
  # Retrieve the connectiontype identified by connectiontype name.
142
138
  #
143
- # @param resource_group_name [String] The resource group name.
144
139
  # @param automation_account_name [String] The automation account name.
145
140
  # @param connection_type_name [String] The name of connectiontype.
146
141
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -148,9 +143,9 @@ module Azure::Automation::Mgmt::V2015_10_31
148
143
  #
149
144
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
150
145
  #
151
- def get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil)
152
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
153
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
146
+ def get_async(automation_account_name, connection_type_name, custom_headers:nil)
147
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
148
+ 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?
154
149
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
155
150
  fail ArgumentError, 'connection_type_name is nil' if connection_type_name.nil?
156
151
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -158,6 +153,7 @@ module Azure::Automation::Mgmt::V2015_10_31
158
153
 
159
154
 
160
155
  request_headers = {}
156
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
161
157
 
162
158
  # Set Headers
163
159
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -168,7 +164,7 @@ module Azure::Automation::Mgmt::V2015_10_31
168
164
 
169
165
  options = {
170
166
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
171
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id},
167
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id},
172
168
  query_params: {'api-version' => @client.api_version},
173
169
  headers: request_headers.merge(custom_headers || {}),
174
170
  base_url: request_url
@@ -205,7 +201,6 @@ module Azure::Automation::Mgmt::V2015_10_31
205
201
  #
206
202
  # Create a connectiontype.
207
203
  #
208
- # @param resource_group_name [String] The resource group name.
209
204
  # @param automation_account_name [String] The automation account name.
210
205
  # @param connection_type_name [String] The parameters supplied to the create or
211
206
  # update connectiontype operation.
@@ -216,15 +211,14 @@ module Azure::Automation::Mgmt::V2015_10_31
216
211
  #
217
212
  # @return [ConnectionType] operation results.
218
213
  #
219
- def create_or_update(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers = nil)
220
- response = create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers).value!
214
+ def create_or_update(automation_account_name, connection_type_name, parameters, custom_headers:nil)
215
+ response = create_or_update_async(automation_account_name, connection_type_name, parameters, custom_headers:custom_headers).value!
221
216
  response.body unless response.nil?
222
217
  end
223
218
 
224
219
  #
225
220
  # Create a connectiontype.
226
221
  #
227
- # @param resource_group_name [String] The resource group name.
228
222
  # @param automation_account_name [String] The automation account name.
229
223
  # @param connection_type_name [String] The parameters supplied to the create or
230
224
  # update connectiontype operation.
@@ -235,14 +229,13 @@ module Azure::Automation::Mgmt::V2015_10_31
235
229
  #
236
230
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
237
231
  #
238
- def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers = nil)
239
- create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers).value!
232
+ def create_or_update_with_http_info(automation_account_name, connection_type_name, parameters, custom_headers:nil)
233
+ create_or_update_async(automation_account_name, connection_type_name, parameters, custom_headers:custom_headers).value!
240
234
  end
241
235
 
242
236
  #
243
237
  # Create a connectiontype.
244
238
  #
245
- # @param resource_group_name [String] The resource group name.
246
239
  # @param automation_account_name [String] The automation account name.
247
240
  # @param connection_type_name [String] The parameters supplied to the create or
248
241
  # update connectiontype operation.
@@ -253,9 +246,9 @@ module Azure::Automation::Mgmt::V2015_10_31
253
246
  #
254
247
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
255
248
  #
256
- def create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers = nil)
257
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
258
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
249
+ def create_or_update_async(automation_account_name, connection_type_name, parameters, custom_headers:nil)
250
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
251
+ 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?
259
252
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
260
253
  fail ArgumentError, 'connection_type_name is nil' if connection_type_name.nil?
261
254
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -264,13 +257,12 @@ module Azure::Automation::Mgmt::V2015_10_31
264
257
 
265
258
 
266
259
  request_headers = {}
260
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
267
261
 
268
262
  # Set Headers
269
263
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
270
264
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
271
265
 
272
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
273
-
274
266
  # Serialize Request
275
267
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters.mapper()
276
268
  request_content = @client.serialize(request_mapper, parameters)
@@ -282,7 +274,7 @@ module Azure::Automation::Mgmt::V2015_10_31
282
274
 
283
275
  options = {
284
276
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
285
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id},
277
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id},
286
278
  query_params: {'api-version' => @client.api_version},
287
279
  body: request_content,
288
280
  headers: request_headers.merge(custom_headers || {}),
@@ -330,51 +322,49 @@ module Azure::Automation::Mgmt::V2015_10_31
330
322
  #
331
323
  # Retrieve a list of connectiontypes.
332
324
  #
333
- # @param resource_group_name [String] The resource group name.
334
325
  # @param automation_account_name [String] The automation account name.
335
326
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
336
327
  # will be added to the HTTP request.
337
328
  #
338
329
  # @return [Array<ConnectionType>] operation results.
339
330
  #
340
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
341
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
331
+ def list_by_automation_account(automation_account_name, custom_headers:nil)
332
+ first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
342
333
  first_page.get_all_items
343
334
  end
344
335
 
345
336
  #
346
337
  # Retrieve a list of connectiontypes.
347
338
  #
348
- # @param resource_group_name [String] The resource group name.
349
339
  # @param automation_account_name [String] The automation account name.
350
340
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
351
341
  # will be added to the HTTP request.
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, custom_headers = nil)
356
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
345
+ def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
346
+ list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
357
347
  end
358
348
 
359
349
  #
360
350
  # Retrieve a list of connectiontypes.
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 [Hash{String => String}] A hash of custom headers that will be added
365
354
  # to the HTTP request.
366
355
  #
367
356
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
368
357
  #
369
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
370
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
371
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
358
+ def list_by_automation_account_async(automation_account_name, custom_headers:nil)
359
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
360
+ 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?
372
361
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
373
362
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
374
363
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
375
364
 
376
365
 
377
366
  request_headers = {}
367
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
378
368
 
379
369
  # Set Headers
380
370
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -385,7 +375,7 @@ module Azure::Automation::Mgmt::V2015_10_31
385
375
 
386
376
  options = {
387
377
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
388
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
378
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
389
379
  query_params: {'api-version' => @client.api_version},
390
380
  headers: request_headers.merge(custom_headers || {}),
391
381
  base_url: request_url
@@ -429,8 +419,8 @@ module Azure::Automation::Mgmt::V2015_10_31
429
419
  #
430
420
  # @return [ConnectionTypeListResult] operation results.
431
421
  #
432
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
433
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
422
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
423
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
434
424
  response.body unless response.nil?
435
425
  end
436
426
 
@@ -444,8 +434,8 @@ module Azure::Automation::Mgmt::V2015_10_31
444
434
  #
445
435
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
446
436
  #
447
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
448
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
437
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
438
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
449
439
  end
450
440
 
451
441
  #
@@ -458,11 +448,12 @@ module Azure::Automation::Mgmt::V2015_10_31
458
448
  #
459
449
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
460
450
  #
461
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
451
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
462
452
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
463
453
 
464
454
 
465
455
  request_headers = {}
456
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
466
457
 
467
458
  # Set Headers
468
459
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -509,7 +500,6 @@ module Azure::Automation::Mgmt::V2015_10_31
509
500
  #
510
501
  # Retrieve a list of connectiontypes.
511
502
  #
512
- # @param resource_group_name [String] The resource group name.
513
503
  # @param automation_account_name [String] The automation account name.
514
504
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
515
505
  # will be added to the HTTP request.
@@ -517,12 +507,12 @@ module Azure::Automation::Mgmt::V2015_10_31
517
507
  # @return [ConnectionTypeListResult] which provide lazy access to pages of the
518
508
  # response.
519
509
  #
520
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
521
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
510
+ def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
511
+ response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
522
512
  unless response.nil?
523
513
  page = response.body
524
514
  page.next_method = Proc.new do |next_page_link|
525
- list_by_automation_account_next_async(next_page_link, custom_headers)
515
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
526
516
  end
527
517
  page
528
518
  end