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
  # Retrieve the job output identified by job id.
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 job_id [String] The job 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 [NOT_IMPLEMENTED] operation results.
34
33
  #
35
- def get_output(resource_group_name, automation_account_name, job_id, custom_headers = nil)
36
- response = get_output_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
34
+ def get_output(automation_account_name, job_id, custom_headers:nil)
35
+ response = get_output_async(automation_account_name, job_id, custom_headers:custom_headers).value!
37
36
  response.body unless response.nil?
38
37
  end
39
38
 
40
39
  #
41
40
  # Retrieve the job output identified by job id.
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 job_id [String] The job 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 get_output_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil)
52
- get_output_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
49
+ def get_output_with_http_info(automation_account_name, job_id, custom_headers:nil)
50
+ get_output_async(automation_account_name, job_id, custom_headers:custom_headers).value!
53
51
  end
54
52
 
55
53
  #
56
54
  # Retrieve the job output identified by job id.
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 job_id [String] The job 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 get_output_async(resource_group_name, automation_account_name, job_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 get_output_async(automation_account_name, job_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, 'job_id is nil' if job_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,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
84
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_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
@@ -127,7 +125,6 @@ module Azure::Automation::Mgmt::V2015_10_31
127
125
  #
128
126
  # Retrieve the runbook content of the job identified by job id.
129
127
  #
130
- # @param resource_group_name [String] The resource group name.
131
128
  # @param automation_account_name [String] The automation account name.
132
129
  # @param job_id [String] The job id.
133
130
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -135,15 +132,14 @@ module Azure::Automation::Mgmt::V2015_10_31
135
132
  #
136
133
  # @return [NOT_IMPLEMENTED] operation results.
137
134
  #
138
- def get_runbook_content(resource_group_name, automation_account_name, job_id, custom_headers = nil)
139
- response = get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
135
+ def get_runbook_content(automation_account_name, job_id, custom_headers:nil)
136
+ response = get_runbook_content_async(automation_account_name, job_id, custom_headers:custom_headers).value!
140
137
  response.body unless response.nil?
141
138
  end
142
139
 
143
140
  #
144
141
  # Retrieve the runbook content of the job identified by job id.
145
142
  #
146
- # @param resource_group_name [String] The resource group name.
147
143
  # @param automation_account_name [String] The automation account name.
148
144
  # @param job_id [String] The job id.
149
145
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -151,14 +147,13 @@ module Azure::Automation::Mgmt::V2015_10_31
151
147
  #
152
148
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
153
149
  #
154
- def get_runbook_content_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil)
155
- get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
150
+ def get_runbook_content_with_http_info(automation_account_name, job_id, custom_headers:nil)
151
+ get_runbook_content_async(automation_account_name, job_id, custom_headers:custom_headers).value!
156
152
  end
157
153
 
158
154
  #
159
155
  # Retrieve the runbook content of the job identified by job id.
160
156
  #
161
- # @param resource_group_name [String] The resource group name.
162
157
  # @param automation_account_name [String] The automation account name.
163
158
  # @param job_id [String] The job id.
164
159
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -166,9 +161,9 @@ module Azure::Automation::Mgmt::V2015_10_31
166
161
  #
167
162
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
168
163
  #
169
- def get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers = nil)
170
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
171
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
164
+ def get_runbook_content_async(automation_account_name, job_id, custom_headers:nil)
165
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
166
+ 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?
172
167
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
173
168
  fail ArgumentError, 'job_id is nil' if job_id.nil?
174
169
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -176,6 +171,7 @@ module Azure::Automation::Mgmt::V2015_10_31
176
171
 
177
172
 
178
173
  request_headers = {}
174
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
179
175
 
180
176
  # Set Headers
181
177
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -186,7 +182,7 @@ module Azure::Automation::Mgmt::V2015_10_31
186
182
 
187
183
  options = {
188
184
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
189
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
185
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
190
186
  query_params: {'api-version' => @client.api_version},
191
187
  headers: request_headers.merge(custom_headers || {}),
192
188
  base_url: request_url
@@ -230,22 +226,20 @@ module Azure::Automation::Mgmt::V2015_10_31
230
226
  #
231
227
  # Suspend the job identified by jobId.
232
228
  #
233
- # @param resource_group_name [String] The resource group name.
234
229
  # @param automation_account_name [String] The automation account name.
235
230
  # @param job_id The job id.
236
231
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
237
232
  # will be added to the HTTP request.
238
233
  #
239
234
  #
240
- def suspend(resource_group_name, automation_account_name, job_id, custom_headers = nil)
241
- response = suspend_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
235
+ def suspend(automation_account_name, job_id, custom_headers:nil)
236
+ response = suspend_async(automation_account_name, job_id, custom_headers:custom_headers).value!
242
237
  nil
243
238
  end
244
239
 
245
240
  #
246
241
  # Suspend the job identified by jobId.
247
242
  #
248
- # @param resource_group_name [String] The resource group name.
249
243
  # @param automation_account_name [String] The automation account name.
250
244
  # @param job_id The job id.
251
245
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -253,14 +247,13 @@ module Azure::Automation::Mgmt::V2015_10_31
253
247
  #
254
248
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
255
249
  #
256
- def suspend_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil)
257
- suspend_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
250
+ def suspend_with_http_info(automation_account_name, job_id, custom_headers:nil)
251
+ suspend_async(automation_account_name, job_id, custom_headers:custom_headers).value!
258
252
  end
259
253
 
260
254
  #
261
255
  # Suspend the job identified by jobId.
262
256
  #
263
- # @param resource_group_name [String] The resource group name.
264
257
  # @param automation_account_name [String] The automation account name.
265
258
  # @param job_id The job id.
266
259
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -268,9 +261,9 @@ module Azure::Automation::Mgmt::V2015_10_31
268
261
  #
269
262
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
270
263
  #
271
- def suspend_async(resource_group_name, automation_account_name, job_id, custom_headers = nil)
272
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
273
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
264
+ def suspend_async(automation_account_name, job_id, custom_headers:nil)
265
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
266
+ 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?
274
267
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
275
268
  fail ArgumentError, 'job_id is nil' if job_id.nil?
276
269
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -278,6 +271,7 @@ module Azure::Automation::Mgmt::V2015_10_31
278
271
 
279
272
 
280
273
  request_headers = {}
274
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
281
275
 
282
276
  # Set Headers
283
277
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -288,7 +282,7 @@ module Azure::Automation::Mgmt::V2015_10_31
288
282
 
289
283
  options = {
290
284
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
291
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
285
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
292
286
  query_params: {'api-version' => @client.api_version},
293
287
  headers: request_headers.merge(custom_headers || {}),
294
288
  base_url: request_url
@@ -315,22 +309,20 @@ module Azure::Automation::Mgmt::V2015_10_31
315
309
  #
316
310
  # Stop the job identified by jobId.
317
311
  #
318
- # @param resource_group_name [String] The resource group name.
319
312
  # @param automation_account_name [String] The automation account name.
320
313
  # @param job_id The job id.
321
314
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
322
315
  # will be added to the HTTP request.
323
316
  #
324
317
  #
325
- def stop(resource_group_name, automation_account_name, job_id, custom_headers = nil)
326
- response = stop_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
318
+ def stop(automation_account_name, job_id, custom_headers:nil)
319
+ response = stop_async(automation_account_name, job_id, custom_headers:custom_headers).value!
327
320
  nil
328
321
  end
329
322
 
330
323
  #
331
324
  # Stop the job identified by jobId.
332
325
  #
333
- # @param resource_group_name [String] The resource group name.
334
326
  # @param automation_account_name [String] The automation account name.
335
327
  # @param job_id The job id.
336
328
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -338,14 +330,13 @@ module Azure::Automation::Mgmt::V2015_10_31
338
330
  #
339
331
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
340
332
  #
341
- def stop_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil)
342
- stop_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
333
+ def stop_with_http_info(automation_account_name, job_id, custom_headers:nil)
334
+ stop_async(automation_account_name, job_id, custom_headers:custom_headers).value!
343
335
  end
344
336
 
345
337
  #
346
338
  # Stop the job identified by jobId.
347
339
  #
348
- # @param resource_group_name [String] The resource group name.
349
340
  # @param automation_account_name [String] The automation account name.
350
341
  # @param job_id The job id.
351
342
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -353,9 +344,9 @@ module Azure::Automation::Mgmt::V2015_10_31
353
344
  #
354
345
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
355
346
  #
356
- def stop_async(resource_group_name, automation_account_name, job_id, custom_headers = nil)
357
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
358
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
347
+ def stop_async(automation_account_name, job_id, custom_headers:nil)
348
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
349
+ 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?
359
350
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
360
351
  fail ArgumentError, 'job_id is nil' if job_id.nil?
361
352
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -363,6 +354,7 @@ module Azure::Automation::Mgmt::V2015_10_31
363
354
 
364
355
 
365
356
  request_headers = {}
357
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
366
358
 
367
359
  # Set Headers
368
360
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -373,7 +365,7 @@ module Azure::Automation::Mgmt::V2015_10_31
373
365
 
374
366
  options = {
375
367
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
376
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
368
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
377
369
  query_params: {'api-version' => @client.api_version},
378
370
  headers: request_headers.merge(custom_headers || {}),
379
371
  base_url: request_url
@@ -400,7 +392,6 @@ module Azure::Automation::Mgmt::V2015_10_31
400
392
  #
401
393
  # Retrieve the job identified by job id.
402
394
  #
403
- # @param resource_group_name [String] The resource group name.
404
395
  # @param automation_account_name [String] The automation account name.
405
396
  # @param job_id The job id.
406
397
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -408,15 +399,14 @@ module Azure::Automation::Mgmt::V2015_10_31
408
399
  #
409
400
  # @return [Job] operation results.
410
401
  #
411
- def get(resource_group_name, automation_account_name, job_id, custom_headers = nil)
412
- response = get_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
402
+ def get(automation_account_name, job_id, custom_headers:nil)
403
+ response = get_async(automation_account_name, job_id, custom_headers:custom_headers).value!
413
404
  response.body unless response.nil?
414
405
  end
415
406
 
416
407
  #
417
408
  # Retrieve the job identified by job id.
418
409
  #
419
- # @param resource_group_name [String] The resource group name.
420
410
  # @param automation_account_name [String] The automation account name.
421
411
  # @param job_id The job id.
422
412
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -424,14 +414,13 @@ module Azure::Automation::Mgmt::V2015_10_31
424
414
  #
425
415
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
426
416
  #
427
- def get_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil)
428
- get_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
417
+ def get_with_http_info(automation_account_name, job_id, custom_headers:nil)
418
+ get_async(automation_account_name, job_id, custom_headers:custom_headers).value!
429
419
  end
430
420
 
431
421
  #
432
422
  # Retrieve the job identified by job id.
433
423
  #
434
- # @param resource_group_name [String] The resource group name.
435
424
  # @param automation_account_name [String] The automation account name.
436
425
  # @param job_id The job id.
437
426
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -439,9 +428,9 @@ module Azure::Automation::Mgmt::V2015_10_31
439
428
  #
440
429
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
441
430
  #
442
- def get_async(resource_group_name, automation_account_name, job_id, custom_headers = nil)
443
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
444
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
431
+ def get_async(automation_account_name, job_id, custom_headers:nil)
432
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
433
+ 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?
445
434
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
446
435
  fail ArgumentError, 'job_id is nil' if job_id.nil?
447
436
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -449,6 +438,7 @@ module Azure::Automation::Mgmt::V2015_10_31
449
438
 
450
439
 
451
440
  request_headers = {}
441
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
452
442
 
453
443
  # Set Headers
454
444
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -459,7 +449,7 @@ module Azure::Automation::Mgmt::V2015_10_31
459
449
 
460
450
  options = {
461
451
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
462
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
452
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
463
453
  query_params: {'api-version' => @client.api_version},
464
454
  headers: request_headers.merge(custom_headers || {}),
465
455
  base_url: request_url
@@ -496,7 +486,6 @@ module Azure::Automation::Mgmt::V2015_10_31
496
486
  #
497
487
  # Create a job of the runbook.
498
488
  #
499
- # @param resource_group_name [String] The resource group name.
500
489
  # @param automation_account_name [String] The automation account name.
501
490
  # @param job_id The job id.
502
491
  # @param parameters [JobCreateParameters] The parameters supplied to the create
@@ -506,15 +495,14 @@ module Azure::Automation::Mgmt::V2015_10_31
506
495
  #
507
496
  # @return [Job] operation results.
508
497
  #
509
- def create(resource_group_name, automation_account_name, job_id, parameters, custom_headers = nil)
510
- response = create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers).value!
498
+ def create(automation_account_name, job_id, parameters, custom_headers:nil)
499
+ response = create_async(automation_account_name, job_id, parameters, custom_headers:custom_headers).value!
511
500
  response.body unless response.nil?
512
501
  end
513
502
 
514
503
  #
515
504
  # Create a job of the runbook.
516
505
  #
517
- # @param resource_group_name [String] The resource group name.
518
506
  # @param automation_account_name [String] The automation account name.
519
507
  # @param job_id The job id.
520
508
  # @param parameters [JobCreateParameters] The parameters supplied to the create
@@ -524,14 +512,13 @@ module Azure::Automation::Mgmt::V2015_10_31
524
512
  #
525
513
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
526
514
  #
527
- def create_with_http_info(resource_group_name, automation_account_name, job_id, parameters, custom_headers = nil)
528
- create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers).value!
515
+ def create_with_http_info(automation_account_name, job_id, parameters, custom_headers:nil)
516
+ create_async(automation_account_name, job_id, parameters, custom_headers:custom_headers).value!
529
517
  end
530
518
 
531
519
  #
532
520
  # Create a job of the runbook.
533
521
  #
534
- # @param resource_group_name [String] The resource group name.
535
522
  # @param automation_account_name [String] The automation account name.
536
523
  # @param job_id The job id.
537
524
  # @param parameters [JobCreateParameters] The parameters supplied to the create
@@ -541,9 +528,9 @@ module Azure::Automation::Mgmt::V2015_10_31
541
528
  #
542
529
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
543
530
  #
544
- def create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers = nil)
545
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
546
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
531
+ def create_async(automation_account_name, job_id, parameters, custom_headers:nil)
532
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
533
+ 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?
547
534
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
548
535
  fail ArgumentError, 'job_id is nil' if job_id.nil?
549
536
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -552,13 +539,12 @@ module Azure::Automation::Mgmt::V2015_10_31
552
539
 
553
540
 
554
541
  request_headers = {}
542
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
555
543
 
556
544
  # Set Headers
557
545
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
558
546
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
559
547
 
560
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
561
-
562
548
  # Serialize Request
563
549
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::JobCreateParameters.mapper()
564
550
  request_content = @client.serialize(request_mapper, parameters)
@@ -570,7 +556,7 @@ module Azure::Automation::Mgmt::V2015_10_31
570
556
 
571
557
  options = {
572
558
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
573
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
559
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
574
560
  query_params: {'api-version' => @client.api_version},
575
561
  body: request_content,
576
562
  headers: request_headers.merge(custom_headers || {}),
@@ -608,7 +594,6 @@ module Azure::Automation::Mgmt::V2015_10_31
608
594
  #
609
595
  # Retrieve a list of jobs.
610
596
  #
611
- # @param resource_group_name [String] The resource group name.
612
597
  # @param automation_account_name [String] The automation account name.
613
598
  # @param filter [String] The filter to apply on the operation.
614
599
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -616,15 +601,14 @@ module Azure::Automation::Mgmt::V2015_10_31
616
601
  #
617
602
  # @return [Array<Job>] operation results.
618
603
  #
619
- def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
620
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers)
604
+ def list_by_automation_account(automation_account_name, filter:nil, custom_headers:nil)
605
+ first_page = list_by_automation_account_as_lazy(automation_account_name, filter:filter, custom_headers:custom_headers)
621
606
  first_page.get_all_items
622
607
  end
623
608
 
624
609
  #
625
610
  # Retrieve a list of jobs.
626
611
  #
627
- # @param resource_group_name [String] The resource group name.
628
612
  # @param automation_account_name [String] The automation account name.
629
613
  # @param filter [String] The filter to apply on the operation.
630
614
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -632,14 +616,13 @@ module Azure::Automation::Mgmt::V2015_10_31
632
616
  #
633
617
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
634
618
  #
635
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
636
- list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
619
+ def list_by_automation_account_with_http_info(automation_account_name, filter:nil, custom_headers:nil)
620
+ list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
637
621
  end
638
622
 
639
623
  #
640
624
  # Retrieve a list of jobs.
641
625
  #
642
- # @param resource_group_name [String] The resource group name.
643
626
  # @param automation_account_name [String] The automation account name.
644
627
  # @param filter [String] The filter to apply on the operation.
645
628
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -647,15 +630,16 @@ module Azure::Automation::Mgmt::V2015_10_31
647
630
  #
648
631
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
649
632
  #
650
- def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
651
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
652
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
633
+ def list_by_automation_account_async(automation_account_name, filter:nil, custom_headers:nil)
634
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
635
+ 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?
653
636
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
654
637
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
655
638
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
656
639
 
657
640
 
658
641
  request_headers = {}
642
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
659
643
 
660
644
  # Set Headers
661
645
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -666,7 +650,7 @@ module Azure::Automation::Mgmt::V2015_10_31
666
650
 
667
651
  options = {
668
652
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
669
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
653
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
670
654
  query_params: {'$filter' => filter,'api-version' => @client.api_version},
671
655
  headers: request_headers.merge(custom_headers || {}),
672
656
  base_url: request_url
@@ -703,22 +687,20 @@ module Azure::Automation::Mgmt::V2015_10_31
703
687
  #
704
688
  # Resume the job identified by jobId.
705
689
  #
706
- # @param resource_group_name [String] The resource group name.
707
690
  # @param automation_account_name [String] The automation account name.
708
691
  # @param job_id The job id.
709
692
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
710
693
  # will be added to the HTTP request.
711
694
  #
712
695
  #
713
- def resume(resource_group_name, automation_account_name, job_id, custom_headers = nil)
714
- response = resume_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
696
+ def resume(automation_account_name, job_id, custom_headers:nil)
697
+ response = resume_async(automation_account_name, job_id, custom_headers:custom_headers).value!
715
698
  nil
716
699
  end
717
700
 
718
701
  #
719
702
  # Resume the job identified by jobId.
720
703
  #
721
- # @param resource_group_name [String] The resource group name.
722
704
  # @param automation_account_name [String] The automation account name.
723
705
  # @param job_id The job id.
724
706
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -726,14 +708,13 @@ module Azure::Automation::Mgmt::V2015_10_31
726
708
  #
727
709
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
728
710
  #
729
- def resume_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil)
730
- resume_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
711
+ def resume_with_http_info(automation_account_name, job_id, custom_headers:nil)
712
+ resume_async(automation_account_name, job_id, custom_headers:custom_headers).value!
731
713
  end
732
714
 
733
715
  #
734
716
  # Resume the job identified by jobId.
735
717
  #
736
- # @param resource_group_name [String] The resource group name.
737
718
  # @param automation_account_name [String] The automation account name.
738
719
  # @param job_id The job id.
739
720
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -741,9 +722,9 @@ module Azure::Automation::Mgmt::V2015_10_31
741
722
  #
742
723
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
743
724
  #
744
- def resume_async(resource_group_name, automation_account_name, job_id, custom_headers = nil)
745
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
746
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
725
+ def resume_async(automation_account_name, job_id, custom_headers:nil)
726
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
727
+ 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?
747
728
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
748
729
  fail ArgumentError, 'job_id is nil' if job_id.nil?
749
730
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -751,6 +732,7 @@ module Azure::Automation::Mgmt::V2015_10_31
751
732
 
752
733
 
753
734
  request_headers = {}
735
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
754
736
 
755
737
  # Set Headers
756
738
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -761,7 +743,7 @@ module Azure::Automation::Mgmt::V2015_10_31
761
743
 
762
744
  options = {
763
745
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
764
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
746
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
765
747
  query_params: {'api-version' => @client.api_version},
766
748
  headers: request_headers.merge(custom_headers || {}),
767
749
  base_url: request_url
@@ -795,8 +777,8 @@ module Azure::Automation::Mgmt::V2015_10_31
795
777
  #
796
778
  # @return [JobListResult] operation results.
797
779
  #
798
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
799
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
780
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
781
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
800
782
  response.body unless response.nil?
801
783
  end
802
784
 
@@ -810,8 +792,8 @@ module Azure::Automation::Mgmt::V2015_10_31
810
792
  #
811
793
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
812
794
  #
813
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
814
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
795
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
796
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
815
797
  end
816
798
 
817
799
  #
@@ -824,11 +806,12 @@ module Azure::Automation::Mgmt::V2015_10_31
824
806
  #
825
807
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
826
808
  #
827
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
809
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
828
810
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
829
811
 
830
812
 
831
813
  request_headers = {}
814
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
832
815
 
833
816
  # Set Headers
834
817
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -875,7 +858,6 @@ module Azure::Automation::Mgmt::V2015_10_31
875
858
  #
876
859
  # Retrieve a list of jobs.
877
860
  #
878
- # @param resource_group_name [String] The resource group name.
879
861
  # @param automation_account_name [String] The automation account name.
880
862
  # @param filter [String] The filter to apply on the operation.
881
863
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -883,12 +865,12 @@ module Azure::Automation::Mgmt::V2015_10_31
883
865
  #
884
866
  # @return [JobListResult] which provide lazy access to pages of the response.
885
867
  #
886
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
887
- response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
868
+ def list_by_automation_account_as_lazy(automation_account_name, filter:nil, custom_headers:nil)
869
+ response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
888
870
  unless response.nil?
889
871
  page = response.body
890
872
  page.next_method = Proc.new do |next_page_link|
891
- list_by_automation_account_next_async(next_page_link, custom_headers)
873
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
892
874
  end
893
875
  page
894
876
  end