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
  # Retrieve the content of runbook identified by runbook 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 runbook_name [String] The runbook name.
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_content(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
36
- response = get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
34
+ def get_content(automation_account_name, runbook_name, custom_headers:nil)
35
+ response = get_content_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
37
36
  response.body unless response.nil?
38
37
  end
39
38
 
40
39
  #
41
40
  # Retrieve the content of runbook identified by runbook name.
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 runbook_name [String] The runbook name.
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_content_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
52
- get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
49
+ def get_content_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
50
+ get_content_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
53
51
  end
54
52
 
55
53
  #
56
54
  # Retrieve the content of runbook identified by runbook name.
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 runbook_name [String] The runbook name.
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_content_async(resource_group_name, automation_account_name, runbook_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 get_content_async(automation_account_name, runbook_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, 'runbook_name is nil' if runbook_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,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
84
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_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
@@ -127,7 +125,6 @@ module Azure::Automation::Mgmt::V2015_10_31
127
125
  #
128
126
  # Retrieve the runbook identified by runbook name.
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 runbook_name [String] The runbook name.
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 [Runbook] operation results.
137
134
  #
138
- def get(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
139
- response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
135
+ def get(automation_account_name, runbook_name, custom_headers:nil)
136
+ response = get_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
140
137
  response.body unless response.nil?
141
138
  end
142
139
 
143
140
  #
144
141
  # Retrieve the runbook identified by runbook name.
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 runbook_name [String] The runbook name.
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_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
155
- get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
150
+ def get_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
151
+ get_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
156
152
  end
157
153
 
158
154
  #
159
155
  # Retrieve the runbook identified by runbook name.
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 runbook_name [String] The runbook name.
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_async(resource_group_name, automation_account_name, runbook_name, 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_async(automation_account_name, runbook_name, 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, 'runbook_name is nil' if runbook_name.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,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
185
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'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
@@ -223,7 +219,6 @@ module Azure::Automation::Mgmt::V2015_10_31
223
219
  #
224
220
  # Create the runbook identified by runbook name.
225
221
  #
226
- # @param resource_group_name [String] The resource group name.
227
222
  # @param automation_account_name [String] The automation account name.
228
223
  # @param runbook_name [String] The runbook name.
229
224
  # @param parameters [RunbookCreateOrUpdateParameters] The create or update
@@ -233,15 +228,14 @@ module Azure::Automation::Mgmt::V2015_10_31
233
228
  # will be added to the HTTP request.
234
229
  #
235
230
  #
236
- def create_or_update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
237
- response = create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value!
231
+ def create_or_update(automation_account_name, runbook_name, parameters, custom_headers:nil)
232
+ response = create_or_update_async(automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
238
233
  nil
239
234
  end
240
235
 
241
236
  #
242
237
  # Create the runbook identified by runbook name.
243
238
  #
244
- # @param resource_group_name [String] The resource group name.
245
239
  # @param automation_account_name [String] The automation account name.
246
240
  # @param runbook_name [String] The runbook name.
247
241
  # @param parameters [RunbookCreateOrUpdateParameters] The create or update
@@ -252,14 +246,13 @@ module Azure::Automation::Mgmt::V2015_10_31
252
246
  #
253
247
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
254
248
  #
255
- def create_or_update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
256
- create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value!
249
+ def create_or_update_with_http_info(automation_account_name, runbook_name, parameters, custom_headers:nil)
250
+ create_or_update_async(automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
257
251
  end
258
252
 
259
253
  #
260
254
  # Create the runbook identified by runbook name.
261
255
  #
262
- # @param resource_group_name [String] The resource group name.
263
256
  # @param automation_account_name [String] The automation account name.
264
257
  # @param runbook_name [String] The runbook name.
265
258
  # @param parameters [RunbookCreateOrUpdateParameters] The create or update
@@ -270,9 +263,9 @@ module Azure::Automation::Mgmt::V2015_10_31
270
263
  #
271
264
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
272
265
  #
273
- def create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
274
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
275
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
266
+ def create_or_update_async(automation_account_name, runbook_name, parameters, custom_headers:nil)
267
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
268
+ 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?
276
269
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
277
270
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
278
271
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -281,13 +274,12 @@ module Azure::Automation::Mgmt::V2015_10_31
281
274
 
282
275
 
283
276
  request_headers = {}
277
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
284
278
 
285
279
  # Set Headers
286
280
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
287
281
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
288
282
 
289
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
290
-
291
283
  # Serialize Request
292
284
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateParameters.mapper()
293
285
  request_content = @client.serialize(request_mapper, parameters)
@@ -299,7 +291,7 @@ module Azure::Automation::Mgmt::V2015_10_31
299
291
 
300
292
  options = {
301
293
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
302
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
294
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
303
295
  query_params: {'api-version' => @client.api_version},
304
296
  body: request_content,
305
297
  headers: request_headers.merge(custom_headers || {}),
@@ -327,7 +319,6 @@ module Azure::Automation::Mgmt::V2015_10_31
327
319
  #
328
320
  # Update the runbook identified by runbook name.
329
321
  #
330
- # @param resource_group_name [String] The resource group name.
331
322
  # @param automation_account_name [String] The automation account name.
332
323
  # @param runbook_name [String] The runbook name.
333
324
  # @param parameters [RunbookUpdateParameters] The update parameters for
@@ -337,15 +328,14 @@ module Azure::Automation::Mgmt::V2015_10_31
337
328
  #
338
329
  # @return [Runbook] operation results.
339
330
  #
340
- def update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
341
- response = update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value!
331
+ def update(automation_account_name, runbook_name, parameters, custom_headers:nil)
332
+ response = update_async(automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
342
333
  response.body unless response.nil?
343
334
  end
344
335
 
345
336
  #
346
337
  # Update the runbook identified by runbook name.
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 runbook_name [String] The runbook name.
351
341
  # @param parameters [RunbookUpdateParameters] The update parameters for
@@ -355,14 +345,13 @@ module Azure::Automation::Mgmt::V2015_10_31
355
345
  #
356
346
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
357
347
  #
358
- def update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
359
- update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value!
348
+ def update_with_http_info(automation_account_name, runbook_name, parameters, custom_headers:nil)
349
+ update_async(automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
360
350
  end
361
351
 
362
352
  #
363
353
  # Update the runbook identified by runbook name.
364
354
  #
365
- # @param resource_group_name [String] The resource group name.
366
355
  # @param automation_account_name [String] The automation account name.
367
356
  # @param runbook_name [String] The runbook name.
368
357
  # @param parameters [RunbookUpdateParameters] The update parameters for
@@ -372,9 +361,9 @@ module Azure::Automation::Mgmt::V2015_10_31
372
361
  #
373
362
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
374
363
  #
375
- def update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
376
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
377
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
364
+ def update_async(automation_account_name, runbook_name, parameters, custom_headers:nil)
365
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
366
+ 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?
378
367
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
379
368
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
380
369
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -383,13 +372,12 @@ module Azure::Automation::Mgmt::V2015_10_31
383
372
 
384
373
 
385
374
  request_headers = {}
375
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
386
376
 
387
377
  # Set Headers
388
378
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
389
379
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
390
380
 
391
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
392
-
393
381
  # Serialize Request
394
382
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookUpdateParameters.mapper()
395
383
  request_content = @client.serialize(request_mapper, parameters)
@@ -401,7 +389,7 @@ module Azure::Automation::Mgmt::V2015_10_31
401
389
 
402
390
  options = {
403
391
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
404
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
392
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
405
393
  query_params: {'api-version' => @client.api_version},
406
394
  body: request_content,
407
395
  headers: request_headers.merge(custom_headers || {}),
@@ -439,22 +427,20 @@ module Azure::Automation::Mgmt::V2015_10_31
439
427
  #
440
428
  # Delete the runbook by name.
441
429
  #
442
- # @param resource_group_name [String] The resource group name.
443
430
  # @param automation_account_name [String] The automation account name.
444
431
  # @param runbook_name [String] The runbook name.
445
432
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
446
433
  # will be added to the HTTP request.
447
434
  #
448
435
  #
449
- def delete(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
450
- response = delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
436
+ def delete(automation_account_name, runbook_name, custom_headers:nil)
437
+ response = delete_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
451
438
  nil
452
439
  end
453
440
 
454
441
  #
455
442
  # Delete the runbook by name.
456
443
  #
457
- # @param resource_group_name [String] The resource group name.
458
444
  # @param automation_account_name [String] The automation account name.
459
445
  # @param runbook_name [String] The runbook name.
460
446
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -462,14 +448,13 @@ module Azure::Automation::Mgmt::V2015_10_31
462
448
  #
463
449
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
464
450
  #
465
- def delete_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
466
- delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
451
+ def delete_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
452
+ delete_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
467
453
  end
468
454
 
469
455
  #
470
456
  # Delete the runbook by name.
471
457
  #
472
- # @param resource_group_name [String] The resource group name.
473
458
  # @param automation_account_name [String] The automation account name.
474
459
  # @param runbook_name [String] The runbook name.
475
460
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -477,9 +462,9 @@ module Azure::Automation::Mgmt::V2015_10_31
477
462
  #
478
463
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
479
464
  #
480
- def delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
481
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
482
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
465
+ def delete_async(automation_account_name, runbook_name, custom_headers:nil)
466
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
467
+ 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?
483
468
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
484
469
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
485
470
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -487,6 +472,7 @@ module Azure::Automation::Mgmt::V2015_10_31
487
472
 
488
473
 
489
474
  request_headers = {}
475
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
490
476
 
491
477
  # Set Headers
492
478
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -497,7 +483,7 @@ module Azure::Automation::Mgmt::V2015_10_31
497
483
 
498
484
  options = {
499
485
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
500
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
486
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
501
487
  query_params: {'api-version' => @client.api_version},
502
488
  headers: request_headers.merge(custom_headers || {}),
503
489
  base_url: request_url
@@ -524,51 +510,49 @@ module Azure::Automation::Mgmt::V2015_10_31
524
510
  #
525
511
  # Retrieve a list of runbooks.
526
512
  #
527
- # @param resource_group_name [String] The resource group name.
528
513
  # @param automation_account_name [String] The automation account name.
529
514
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
530
515
  # will be added to the HTTP request.
531
516
  #
532
517
  # @return [Array<Runbook>] operation results.
533
518
  #
534
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
535
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
519
+ def list_by_automation_account(automation_account_name, custom_headers:nil)
520
+ first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
536
521
  first_page.get_all_items
537
522
  end
538
523
 
539
524
  #
540
525
  # Retrieve a list of runbooks.
541
526
  #
542
- # @param resource_group_name [String] The resource group name.
543
527
  # @param automation_account_name [String] The automation account name.
544
528
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
545
529
  # will be added to the HTTP request.
546
530
  #
547
531
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
548
532
  #
549
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
550
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
533
+ def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
534
+ list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
551
535
  end
552
536
 
553
537
  #
554
538
  # Retrieve a list of runbooks.
555
539
  #
556
- # @param resource_group_name [String] The resource group name.
557
540
  # @param automation_account_name [String] The automation account name.
558
541
  # @param [Hash{String => String}] A hash of custom headers that will be added
559
542
  # to the HTTP request.
560
543
  #
561
544
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
562
545
  #
563
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
564
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
565
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
546
+ def list_by_automation_account_async(automation_account_name, custom_headers:nil)
547
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
548
+ 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?
566
549
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
567
550
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
568
551
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
569
552
 
570
553
 
571
554
  request_headers = {}
555
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
572
556
 
573
557
  # Set Headers
574
558
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -579,7 +563,7 @@ module Azure::Automation::Mgmt::V2015_10_31
579
563
 
580
564
  options = {
581
565
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
582
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
566
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
583
567
  query_params: {'api-version' => @client.api_version},
584
568
  headers: request_headers.merge(custom_headers || {}),
585
569
  base_url: request_url
@@ -623,8 +607,8 @@ module Azure::Automation::Mgmt::V2015_10_31
623
607
  #
624
608
  # @return [RunbookListResult] operation results.
625
609
  #
626
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
627
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
610
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
611
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
628
612
  response.body unless response.nil?
629
613
  end
630
614
 
@@ -638,8 +622,8 @@ module Azure::Automation::Mgmt::V2015_10_31
638
622
  #
639
623
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
640
624
  #
641
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
642
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
625
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
626
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
643
627
  end
644
628
 
645
629
  #
@@ -652,11 +636,12 @@ module Azure::Automation::Mgmt::V2015_10_31
652
636
  #
653
637
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
654
638
  #
655
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
639
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
656
640
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
657
641
 
658
642
 
659
643
  request_headers = {}
644
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
660
645
 
661
646
  # Set Headers
662
647
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -703,7 +688,6 @@ module Azure::Automation::Mgmt::V2015_10_31
703
688
  #
704
689
  # Retrieve a list of runbooks.
705
690
  #
706
- # @param resource_group_name [String] The resource group name.
707
691
  # @param automation_account_name [String] The automation account name.
708
692
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
709
693
  # will be added to the HTTP request.
@@ -711,12 +695,12 @@ module Azure::Automation::Mgmt::V2015_10_31
711
695
  # @return [RunbookListResult] which provide lazy access to pages of the
712
696
  # response.
713
697
  #
714
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
715
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
698
+ def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
699
+ response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
716
700
  unless response.nil?
717
701
  page = response.body
718
702
  page.next_method = Proc.new do |next_page_link|
719
- list_by_automation_account_next_async(next_page_link, custom_headers)
703
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
720
704
  end
721
705
  page
722
706
  end