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,22 +24,20 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete the job schedule identified by job schedule name.
26
26
  #
27
- # @param resource_group_name [String] The resource group name.
28
27
  # @param automation_account_name [String] The automation account name.
29
28
  # @param job_schedule_id The job schedule name.
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, job_schedule_id, custom_headers = nil)
35
- response = delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers).value!
33
+ def delete(automation_account_name, job_schedule_id, custom_headers:nil)
34
+ response = delete_async(automation_account_name, job_schedule_id, custom_headers:custom_headers).value!
36
35
  nil
37
36
  end
38
37
 
39
38
  #
40
39
  # Delete the job schedule identified by job schedule name.
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 job_schedule_id The job schedule name.
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, job_schedule_id, custom_headers = nil)
51
- delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers).value!
48
+ def delete_with_http_info(automation_account_name, job_schedule_id, custom_headers:nil)
49
+ delete_async(automation_account_name, job_schedule_id, custom_headers:custom_headers).value!
52
50
  end
53
51
 
54
52
  #
55
53
  # Delete the job schedule identified by job schedule name.
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 job_schedule_id The job schedule name.
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, job_schedule_id, 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, job_schedule_id, 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, 'job_schedule_id is nil' if job_schedule_id.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,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id},
83
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'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 job schedule identified by job schedule 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 job_schedule_id The job schedule name.
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 [JobSchedule] operation results.
119
116
  #
120
- def get(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil)
121
- response = get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers).value!
117
+ def get(automation_account_name, job_schedule_id, custom_headers:nil)
118
+ response = get_async(automation_account_name, job_schedule_id, custom_headers:custom_headers).value!
122
119
  response.body unless response.nil?
123
120
  end
124
121
 
125
122
  #
126
123
  # Retrieve the job schedule identified by job schedule 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 job_schedule_id The job schedule name.
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, job_schedule_id, custom_headers = nil)
137
- get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers).value!
132
+ def get_with_http_info(automation_account_name, job_schedule_id, custom_headers:nil)
133
+ get_async(automation_account_name, job_schedule_id, custom_headers:custom_headers).value!
138
134
  end
139
135
 
140
136
  #
141
137
  # Retrieve the job schedule identified by job schedule 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 job_schedule_id The job schedule name.
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, job_schedule_id, 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, job_schedule_id, 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, 'job_schedule_id is nil' if job_schedule_id.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,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id},
167
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'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 job schedule.
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 job_schedule_id The job schedule name.
211
206
  # @param parameters [JobScheduleCreateParameters] The parameters supplied to
@@ -215,15 +210,14 @@ module Azure::Automation::Mgmt::V2015_10_31
215
210
  #
216
211
  # @return [JobSchedule] operation results.
217
212
  #
218
- def create(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers = nil)
219
- response = create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers).value!
213
+ def create(automation_account_name, job_schedule_id, parameters, custom_headers:nil)
214
+ response = create_async(automation_account_name, job_schedule_id, parameters, custom_headers:custom_headers).value!
220
215
  response.body unless response.nil?
221
216
  end
222
217
 
223
218
  #
224
219
  # Create a job schedule.
225
220
  #
226
- # @param resource_group_name [String] The resource group name.
227
221
  # @param automation_account_name [String] The automation account name.
228
222
  # @param job_schedule_id The job schedule name.
229
223
  # @param parameters [JobScheduleCreateParameters] The parameters supplied to
@@ -233,14 +227,13 @@ module Azure::Automation::Mgmt::V2015_10_31
233
227
  #
234
228
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
235
229
  #
236
- def create_with_http_info(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers = nil)
237
- create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers).value!
230
+ def create_with_http_info(automation_account_name, job_schedule_id, parameters, custom_headers:nil)
231
+ create_async(automation_account_name, job_schedule_id, parameters, custom_headers:custom_headers).value!
238
232
  end
239
233
 
240
234
  #
241
235
  # Create a job schedule.
242
236
  #
243
- # @param resource_group_name [String] The resource group name.
244
237
  # @param automation_account_name [String] The automation account name.
245
238
  # @param job_schedule_id The job schedule name.
246
239
  # @param parameters [JobScheduleCreateParameters] The parameters supplied to
@@ -250,9 +243,9 @@ module Azure::Automation::Mgmt::V2015_10_31
250
243
  #
251
244
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
252
245
  #
253
- def create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers = nil)
254
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
255
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
246
+ def create_async(automation_account_name, job_schedule_id, parameters, custom_headers:nil)
247
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
248
+ 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?
256
249
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
257
250
  fail ArgumentError, 'job_schedule_id is nil' if job_schedule_id.nil?
258
251
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -261,13 +254,12 @@ module Azure::Automation::Mgmt::V2015_10_31
261
254
 
262
255
 
263
256
  request_headers = {}
257
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
264
258
 
265
259
  # Set Headers
266
260
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
267
261
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
268
262
 
269
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
270
-
271
263
  # Serialize Request
272
264
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::JobScheduleCreateParameters.mapper()
273
265
  request_content = @client.serialize(request_mapper, parameters)
@@ -279,7 +271,7 @@ module Azure::Automation::Mgmt::V2015_10_31
279
271
 
280
272
  options = {
281
273
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
282
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id},
274
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id},
283
275
  query_params: {'api-version' => @client.api_version},
284
276
  body: request_content,
285
277
  headers: request_headers.merge(custom_headers || {}),
@@ -317,51 +309,49 @@ module Azure::Automation::Mgmt::V2015_10_31
317
309
  #
318
310
  # Retrieve a list of job schedules.
319
311
  #
320
- # @param resource_group_name [String] The resource group name.
321
312
  # @param automation_account_name [String] The automation account name.
322
313
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
323
314
  # will be added to the HTTP request.
324
315
  #
325
316
  # @return [Array<JobSchedule>] operation results.
326
317
  #
327
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
328
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
318
+ def list_by_automation_account(automation_account_name, custom_headers:nil)
319
+ first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
329
320
  first_page.get_all_items
330
321
  end
331
322
 
332
323
  #
333
324
  # Retrieve a list of job schedules.
334
325
  #
335
- # @param resource_group_name [String] The resource group name.
336
326
  # @param automation_account_name [String] The automation account name.
337
327
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
338
328
  # will be added to the HTTP request.
339
329
  #
340
330
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
341
331
  #
342
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
343
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
332
+ def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
333
+ list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
344
334
  end
345
335
 
346
336
  #
347
337
  # Retrieve a list of job schedules.
348
338
  #
349
- # @param resource_group_name [String] The resource group name.
350
339
  # @param automation_account_name [String] The automation account name.
351
340
  # @param [Hash{String => String}] A hash of custom headers that will be added
352
341
  # to the HTTP request.
353
342
  #
354
343
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
355
344
  #
356
- def list_by_automation_account_async(resource_group_name, automation_account_name, 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?
345
+ def list_by_automation_account_async(automation_account_name, custom_headers:nil)
346
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
347
+ 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
348
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
360
349
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
361
350
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
362
351
 
363
352
 
364
353
  request_headers = {}
354
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
365
355
 
366
356
  # Set Headers
367
357
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -372,7 +362,7 @@ module Azure::Automation::Mgmt::V2015_10_31
372
362
 
373
363
  options = {
374
364
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
375
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
365
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
376
366
  query_params: {'api-version' => @client.api_version},
377
367
  headers: request_headers.merge(custom_headers || {}),
378
368
  base_url: request_url
@@ -416,8 +406,8 @@ module Azure::Automation::Mgmt::V2015_10_31
416
406
  #
417
407
  # @return [JobScheduleListResult] operation results.
418
408
  #
419
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
420
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
409
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
410
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
421
411
  response.body unless response.nil?
422
412
  end
423
413
 
@@ -431,8 +421,8 @@ module Azure::Automation::Mgmt::V2015_10_31
431
421
  #
432
422
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
433
423
  #
434
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
435
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
424
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
425
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
436
426
  end
437
427
 
438
428
  #
@@ -445,11 +435,12 @@ module Azure::Automation::Mgmt::V2015_10_31
445
435
  #
446
436
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
447
437
  #
448
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
438
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
449
439
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
450
440
 
451
441
 
452
442
  request_headers = {}
443
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
453
444
 
454
445
  # Set Headers
455
446
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -496,7 +487,6 @@ module Azure::Automation::Mgmt::V2015_10_31
496
487
  #
497
488
  # Retrieve a list of job schedules.
498
489
  #
499
- # @param resource_group_name [String] The resource group name.
500
490
  # @param automation_account_name [String] The automation account name.
501
491
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
502
492
  # will be added to the HTTP request.
@@ -504,12 +494,12 @@ module Azure::Automation::Mgmt::V2015_10_31
504
494
  # @return [JobScheduleListResult] which provide lazy access to pages of the
505
495
  # response.
506
496
  #
507
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
508
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
497
+ def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
498
+ response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
509
499
  unless response.nil?
510
500
  page = response.body
511
501
  page.next_method = Proc.new do |next_page_link|
512
- list_by_automation_account_next_async(next_page_link, custom_headers)
502
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
513
503
  end
514
504
  page
515
505
  end
@@ -24,7 +24,6 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Retrieve the job stream identified by job stream 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 job_stream_id [String] The job stream id.
@@ -33,15 +32,14 @@ module Azure::Automation::Mgmt::V2015_10_31
33
32
  #
34
33
  # @return [JobStream] operation results.
35
34
  #
36
- def get(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil)
37
- response = get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers).value!
35
+ def get(automation_account_name, job_id, job_stream_id, custom_headers:nil)
36
+ response = get_async(automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
38
37
  response.body unless response.nil?
39
38
  end
40
39
 
41
40
  #
42
41
  # Retrieve the job stream identified by job stream id.
43
42
  #
44
- # @param resource_group_name [String] The resource group name.
45
43
  # @param automation_account_name [String] The automation account name.
46
44
  # @param job_id [String] The job id.
47
45
  # @param job_stream_id [String] The job stream id.
@@ -50,14 +48,13 @@ module Azure::Automation::Mgmt::V2015_10_31
50
48
  #
51
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
50
  #
53
- def get_with_http_info(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil)
54
- get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers).value!
51
+ def get_with_http_info(automation_account_name, job_id, job_stream_id, custom_headers:nil)
52
+ get_async(automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
55
53
  end
56
54
 
57
55
  #
58
56
  # Retrieve the job stream identified by job stream id.
59
57
  #
60
- # @param resource_group_name [String] The resource group name.
61
58
  # @param automation_account_name [String] The automation account name.
62
59
  # @param job_id [String] The job id.
63
60
  # @param job_stream_id [String] The job stream id.
@@ -66,9 +63,9 @@ module Azure::Automation::Mgmt::V2015_10_31
66
63
  #
67
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
65
  #
69
- def get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil)
70
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
66
+ def get_async(automation_account_name, job_id, job_stream_id, custom_headers:nil)
67
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
68
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
72
69
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
73
70
  fail ArgumentError, 'job_id is nil' if job_id.nil?
74
71
  fail ArgumentError, 'job_stream_id is nil' if job_stream_id.nil?
@@ -77,6 +74,7 @@ module Azure::Automation::Mgmt::V2015_10_31
77
74
 
78
75
 
79
76
  request_headers = {}
77
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
80
78
 
81
79
  # Set Headers
82
80
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -87,7 +85,7 @@ module Azure::Automation::Mgmt::V2015_10_31
87
85
 
88
86
  options = {
89
87
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
90
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id},
88
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id},
91
89
  query_params: {'api-version' => @client.api_version},
92
90
  headers: request_headers.merge(custom_headers || {}),
93
91
  base_url: request_url
@@ -124,7 +122,6 @@ module Azure::Automation::Mgmt::V2015_10_31
124
122
  #
125
123
  # Retrieve a list of jobs streams identified by job id.
126
124
  #
127
- # @param resource_group_name [String] The resource group name.
128
125
  # @param automation_account_name [String] The automation account name.
129
126
  # @param job_id [String] The job Id.
130
127
  # @param filter [String] The filter to apply on the operation.
@@ -133,15 +130,14 @@ module Azure::Automation::Mgmt::V2015_10_31
133
130
  #
134
131
  # @return [Array<JobStream>] operation results.
135
132
  #
136
- def list_by_job(resource_group_name, automation_account_name, job_id, filter = nil, custom_headers = nil)
137
- first_page = list_by_job_as_lazy(resource_group_name, automation_account_name, job_id, filter, custom_headers)
133
+ def list_by_job(automation_account_name, job_id, filter:nil, custom_headers:nil)
134
+ first_page = list_by_job_as_lazy(automation_account_name, job_id, filter:filter, custom_headers:custom_headers)
138
135
  first_page.get_all_items
139
136
  end
140
137
 
141
138
  #
142
139
  # Retrieve a list of jobs streams identified by job id.
143
140
  #
144
- # @param resource_group_name [String] The resource group name.
145
141
  # @param automation_account_name [String] The automation account name.
146
142
  # @param job_id [String] The job Id.
147
143
  # @param filter [String] The filter to apply on the operation.
@@ -150,14 +146,13 @@ module Azure::Automation::Mgmt::V2015_10_31
150
146
  #
151
147
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
152
148
  #
153
- def list_by_job_with_http_info(resource_group_name, automation_account_name, job_id, filter = nil, custom_headers = nil)
154
- list_by_job_async(resource_group_name, automation_account_name, job_id, filter, custom_headers).value!
149
+ def list_by_job_with_http_info(automation_account_name, job_id, filter:nil, custom_headers:nil)
150
+ list_by_job_async(automation_account_name, job_id, filter:filter, custom_headers:custom_headers).value!
155
151
  end
156
152
 
157
153
  #
158
154
  # Retrieve a list of jobs streams identified by job id.
159
155
  #
160
- # @param resource_group_name [String] The resource group name.
161
156
  # @param automation_account_name [String] The automation account name.
162
157
  # @param job_id [String] The job Id.
163
158
  # @param filter [String] The filter to apply on the operation.
@@ -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 list_by_job_async(resource_group_name, automation_account_name, job_id, filter = nil, 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 list_by_job_async(automation_account_name, job_id, filter:nil, 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: {'$filter' => filter,'api-version' => @client.api_version},
191
187
  headers: request_headers.merge(custom_headers || {}),
192
188
  base_url: request_url
@@ -230,8 +226,8 @@ module Azure::Automation::Mgmt::V2015_10_31
230
226
  #
231
227
  # @return [JobStreamListResult] operation results.
232
228
  #
233
- def list_by_job_next(next_page_link, custom_headers = nil)
234
- response = list_by_job_next_async(next_page_link, custom_headers).value!
229
+ def list_by_job_next(next_page_link, custom_headers:nil)
230
+ response = list_by_job_next_async(next_page_link, custom_headers:custom_headers).value!
235
231
  response.body unless response.nil?
236
232
  end
237
233
 
@@ -245,8 +241,8 @@ module Azure::Automation::Mgmt::V2015_10_31
245
241
  #
246
242
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
247
243
  #
248
- def list_by_job_next_with_http_info(next_page_link, custom_headers = nil)
249
- list_by_job_next_async(next_page_link, custom_headers).value!
244
+ def list_by_job_next_with_http_info(next_page_link, custom_headers:nil)
245
+ list_by_job_next_async(next_page_link, custom_headers:custom_headers).value!
250
246
  end
251
247
 
252
248
  #
@@ -259,11 +255,12 @@ module Azure::Automation::Mgmt::V2015_10_31
259
255
  #
260
256
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
261
257
  #
262
- def list_by_job_next_async(next_page_link, custom_headers = nil)
258
+ def list_by_job_next_async(next_page_link, custom_headers:nil)
263
259
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
264
260
 
265
261
 
266
262
  request_headers = {}
263
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
267
264
 
268
265
  # Set Headers
269
266
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -310,7 +307,6 @@ module Azure::Automation::Mgmt::V2015_10_31
310
307
  #
311
308
  # Retrieve a list of jobs streams identified by job id.
312
309
  #
313
- # @param resource_group_name [String] The resource group name.
314
310
  # @param automation_account_name [String] The automation account name.
315
311
  # @param job_id [String] The job Id.
316
312
  # @param filter [String] The filter to apply on the operation.
@@ -320,12 +316,12 @@ module Azure::Automation::Mgmt::V2015_10_31
320
316
  # @return [JobStreamListResult] which provide lazy access to pages of the
321
317
  # response.
322
318
  #
323
- def list_by_job_as_lazy(resource_group_name, automation_account_name, job_id, filter = nil, custom_headers = nil)
324
- response = list_by_job_async(resource_group_name, automation_account_name, job_id, filter, custom_headers).value!
319
+ def list_by_job_as_lazy(automation_account_name, job_id, filter:nil, custom_headers:nil)
320
+ response = list_by_job_async(automation_account_name, job_id, filter:filter, custom_headers:custom_headers).value!
325
321
  unless response.nil?
326
322
  page = response.body
327
323
  page.next_method = Proc.new do |next_page_link|
328
- list_by_job_next_async(next_page_link, custom_headers)
324
+ list_by_job_next_async(next_page_link, custom_headers:custom_headers)
329
325
  end
330
326
  page
331
327
  end