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,51 +24,49 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Generates a Uri for use in creating a webhook.
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 custom_headers [Hash{String => String}] A hash of custom headers that
30
29
  # will be added to the HTTP request.
31
30
  #
32
31
  # @return [String] operation results.
33
32
  #
34
- def generate_uri(resource_group_name, automation_account_name, custom_headers = nil)
35
- response = generate_uri_async(resource_group_name, automation_account_name, custom_headers).value!
33
+ def generate_uri(automation_account_name, custom_headers:nil)
34
+ response = generate_uri_async(automation_account_name, custom_headers:custom_headers).value!
36
35
  response.body unless response.nil?
37
36
  end
38
37
 
39
38
  #
40
39
  # Generates a Uri for use in creating a webhook.
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 custom_headers [Hash{String => String}] A hash of custom headers that
45
43
  # will be added to the HTTP request.
46
44
  #
47
45
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
46
  #
49
- def generate_uri_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
50
- generate_uri_async(resource_group_name, automation_account_name, custom_headers).value!
47
+ def generate_uri_with_http_info(automation_account_name, custom_headers:nil)
48
+ generate_uri_async(automation_account_name, custom_headers:custom_headers).value!
51
49
  end
52
50
 
53
51
  #
54
52
  # Generates a Uri for use in creating a webhook.
55
53
  #
56
- # @param resource_group_name [String] The resource group name.
57
54
  # @param automation_account_name [String] The automation account name.
58
55
  # @param [Hash{String => String}] A hash of custom headers that will be added
59
56
  # to the HTTP request.
60
57
  #
61
58
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
59
  #
63
- def generate_uri_async(resource_group_name, automation_account_name, custom_headers = nil)
64
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
65
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
60
+ def generate_uri_async(automation_account_name, custom_headers:nil)
61
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
62
+ 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?
66
63
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
67
64
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
68
65
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
69
66
 
70
67
 
71
68
  request_headers = {}
69
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
72
70
 
73
71
  # Set Headers
74
72
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -79,7 +77,7 @@ module Azure::Automation::Mgmt::V2015_10_31
79
77
 
80
78
  options = {
81
79
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
82
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
80
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
83
81
  query_params: {'api-version' => @client.api_version},
84
82
  headers: request_headers.merge(custom_headers || {}),
85
83
  base_url: request_url
@@ -123,22 +121,20 @@ module Azure::Automation::Mgmt::V2015_10_31
123
121
  #
124
122
  # Delete the webhook by name.
125
123
  #
126
- # @param resource_group_name [String] The resource group name.
127
124
  # @param automation_account_name [String] The automation account name.
128
125
  # @param webhook_name [String] The webhook name.
129
126
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
130
127
  # will be added to the HTTP request.
131
128
  #
132
129
  #
133
- def delete(resource_group_name, automation_account_name, webhook_name, custom_headers = nil)
134
- response = delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value!
130
+ def delete(automation_account_name, webhook_name, custom_headers:nil)
131
+ response = delete_async(automation_account_name, webhook_name, custom_headers:custom_headers).value!
135
132
  nil
136
133
  end
137
134
 
138
135
  #
139
136
  # Delete the webhook by name.
140
137
  #
141
- # @param resource_group_name [String] The resource group name.
142
138
  # @param automation_account_name [String] The automation account name.
143
139
  # @param webhook_name [String] The webhook name.
144
140
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -146,14 +142,13 @@ module Azure::Automation::Mgmt::V2015_10_31
146
142
  #
147
143
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
148
144
  #
149
- def delete_with_http_info(resource_group_name, automation_account_name, webhook_name, custom_headers = nil)
150
- delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value!
145
+ def delete_with_http_info(automation_account_name, webhook_name, custom_headers:nil)
146
+ delete_async(automation_account_name, webhook_name, custom_headers:custom_headers).value!
151
147
  end
152
148
 
153
149
  #
154
150
  # Delete the webhook by name.
155
151
  #
156
- # @param resource_group_name [String] The resource group name.
157
152
  # @param automation_account_name [String] The automation account name.
158
153
  # @param webhook_name [String] The webhook name.
159
154
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -161,9 +156,9 @@ module Azure::Automation::Mgmt::V2015_10_31
161
156
  #
162
157
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
163
158
  #
164
- def delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers = nil)
165
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
166
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
159
+ def delete_async(automation_account_name, webhook_name, custom_headers:nil)
160
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
161
+ 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?
167
162
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
168
163
  fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
169
164
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -171,6 +166,7 @@ module Azure::Automation::Mgmt::V2015_10_31
171
166
 
172
167
 
173
168
  request_headers = {}
169
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
174
170
 
175
171
  # Set Headers
176
172
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -181,7 +177,7 @@ module Azure::Automation::Mgmt::V2015_10_31
181
177
 
182
178
  options = {
183
179
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
184
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id},
180
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id},
185
181
  query_params: {'api-version' => @client.api_version},
186
182
  headers: request_headers.merge(custom_headers || {}),
187
183
  base_url: request_url
@@ -208,7 +204,6 @@ module Azure::Automation::Mgmt::V2015_10_31
208
204
  #
209
205
  # Retrieve the webhook identified by webhook name.
210
206
  #
211
- # @param resource_group_name [String] The resource group name.
212
207
  # @param automation_account_name [String] The automation account name.
213
208
  # @param webhook_name [String] The webhook name.
214
209
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -216,15 +211,14 @@ module Azure::Automation::Mgmt::V2015_10_31
216
211
  #
217
212
  # @return [Webhook] operation results.
218
213
  #
219
- def get(resource_group_name, automation_account_name, webhook_name, custom_headers = nil)
220
- response = get_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value!
214
+ def get(automation_account_name, webhook_name, custom_headers:nil)
215
+ response = get_async(automation_account_name, webhook_name, custom_headers:custom_headers).value!
221
216
  response.body unless response.nil?
222
217
  end
223
218
 
224
219
  #
225
220
  # Retrieve the webhook identified by webhook name.
226
221
  #
227
- # @param resource_group_name [String] The resource group name.
228
222
  # @param automation_account_name [String] The automation account name.
229
223
  # @param webhook_name [String] The webhook name.
230
224
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -232,14 +226,13 @@ module Azure::Automation::Mgmt::V2015_10_31
232
226
  #
233
227
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
234
228
  #
235
- def get_with_http_info(resource_group_name, automation_account_name, webhook_name, custom_headers = nil)
236
- get_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value!
229
+ def get_with_http_info(automation_account_name, webhook_name, custom_headers:nil)
230
+ get_async(automation_account_name, webhook_name, custom_headers:custom_headers).value!
237
231
  end
238
232
 
239
233
  #
240
234
  # Retrieve the webhook identified by webhook name.
241
235
  #
242
- # @param resource_group_name [String] The resource group name.
243
236
  # @param automation_account_name [String] The automation account name.
244
237
  # @param webhook_name [String] The webhook name.
245
238
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -247,9 +240,9 @@ module Azure::Automation::Mgmt::V2015_10_31
247
240
  #
248
241
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
249
242
  #
250
- def get_async(resource_group_name, automation_account_name, webhook_name, custom_headers = nil)
251
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
252
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
243
+ def get_async(automation_account_name, webhook_name, custom_headers:nil)
244
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
245
+ 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?
253
246
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
254
247
  fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
255
248
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -257,6 +250,7 @@ module Azure::Automation::Mgmt::V2015_10_31
257
250
 
258
251
 
259
252
  request_headers = {}
253
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
260
254
 
261
255
  # Set Headers
262
256
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -267,7 +261,7 @@ module Azure::Automation::Mgmt::V2015_10_31
267
261
 
268
262
  options = {
269
263
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
270
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id},
264
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id},
271
265
  query_params: {'api-version' => @client.api_version},
272
266
  headers: request_headers.merge(custom_headers || {}),
273
267
  base_url: request_url
@@ -304,7 +298,6 @@ module Azure::Automation::Mgmt::V2015_10_31
304
298
  #
305
299
  # Create the webhook identified by webhook name.
306
300
  #
307
- # @param resource_group_name [String] The resource group name.
308
301
  # @param automation_account_name [String] The automation account name.
309
302
  # @param webhook_name [String] The webhook name.
310
303
  # @param parameters [WebhookCreateOrUpdateParameters] The create or update
@@ -314,15 +307,14 @@ module Azure::Automation::Mgmt::V2015_10_31
314
307
  #
315
308
  # @return [Webhook] operation results.
316
309
  #
317
- def create_or_update(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil)
318
- response = create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value!
310
+ def create_or_update(automation_account_name, webhook_name, parameters, custom_headers:nil)
311
+ response = create_or_update_async(automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value!
319
312
  response.body unless response.nil?
320
313
  end
321
314
 
322
315
  #
323
316
  # Create the webhook identified by webhook name.
324
317
  #
325
- # @param resource_group_name [String] The resource group name.
326
318
  # @param automation_account_name [String] The automation account name.
327
319
  # @param webhook_name [String] The webhook name.
328
320
  # @param parameters [WebhookCreateOrUpdateParameters] The create or update
@@ -332,14 +324,13 @@ module Azure::Automation::Mgmt::V2015_10_31
332
324
  #
333
325
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
334
326
  #
335
- def create_or_update_with_http_info(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil)
336
- create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value!
327
+ def create_or_update_with_http_info(automation_account_name, webhook_name, parameters, custom_headers:nil)
328
+ create_or_update_async(automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value!
337
329
  end
338
330
 
339
331
  #
340
332
  # Create the webhook identified by webhook name.
341
333
  #
342
- # @param resource_group_name [String] The resource group name.
343
334
  # @param automation_account_name [String] The automation account name.
344
335
  # @param webhook_name [String] The webhook name.
345
336
  # @param parameters [WebhookCreateOrUpdateParameters] The create or update
@@ -349,9 +340,9 @@ module Azure::Automation::Mgmt::V2015_10_31
349
340
  #
350
341
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
351
342
  #
352
- def create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil)
353
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
354
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
343
+ def create_or_update_async(automation_account_name, webhook_name, parameters, custom_headers:nil)
344
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
345
+ 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?
355
346
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
356
347
  fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
357
348
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -360,13 +351,12 @@ module Azure::Automation::Mgmt::V2015_10_31
360
351
 
361
352
 
362
353
  request_headers = {}
354
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
363
355
 
364
356
  # Set Headers
365
357
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
366
358
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
367
359
 
368
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
369
-
370
360
  # Serialize Request
371
361
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters.mapper()
372
362
  request_content = @client.serialize(request_mapper, parameters)
@@ -378,7 +368,7 @@ module Azure::Automation::Mgmt::V2015_10_31
378
368
 
379
369
  options = {
380
370
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
381
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id},
371
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id},
382
372
  query_params: {'api-version' => @client.api_version},
383
373
  body: request_content,
384
374
  headers: request_headers.merge(custom_headers || {}),
@@ -426,7 +416,6 @@ module Azure::Automation::Mgmt::V2015_10_31
426
416
  #
427
417
  # Update the webhook identified by webhook name.
428
418
  #
429
- # @param resource_group_name [String] The resource group name.
430
419
  # @param automation_account_name [String] The automation account name.
431
420
  # @param webhook_name [String] The webhook name.
432
421
  # @param parameters [WebhookUpdateParameters] The update parameters for
@@ -436,15 +425,14 @@ module Azure::Automation::Mgmt::V2015_10_31
436
425
  #
437
426
  # @return [Webhook] operation results.
438
427
  #
439
- def update(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil)
440
- response = update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value!
428
+ def update(automation_account_name, webhook_name, parameters, custom_headers:nil)
429
+ response = update_async(automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value!
441
430
  response.body unless response.nil?
442
431
  end
443
432
 
444
433
  #
445
434
  # Update the webhook identified by webhook name.
446
435
  #
447
- # @param resource_group_name [String] The resource group name.
448
436
  # @param automation_account_name [String] The automation account name.
449
437
  # @param webhook_name [String] The webhook name.
450
438
  # @param parameters [WebhookUpdateParameters] The update parameters for
@@ -454,14 +442,13 @@ module Azure::Automation::Mgmt::V2015_10_31
454
442
  #
455
443
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
456
444
  #
457
- def update_with_http_info(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil)
458
- update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value!
445
+ def update_with_http_info(automation_account_name, webhook_name, parameters, custom_headers:nil)
446
+ update_async(automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value!
459
447
  end
460
448
 
461
449
  #
462
450
  # Update the webhook identified by webhook name.
463
451
  #
464
- # @param resource_group_name [String] The resource group name.
465
452
  # @param automation_account_name [String] The automation account name.
466
453
  # @param webhook_name [String] The webhook name.
467
454
  # @param parameters [WebhookUpdateParameters] The update parameters for
@@ -471,9 +458,9 @@ module Azure::Automation::Mgmt::V2015_10_31
471
458
  #
472
459
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
473
460
  #
474
- def update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil)
475
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
476
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
461
+ def update_async(automation_account_name, webhook_name, parameters, custom_headers:nil)
462
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
463
+ 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?
477
464
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
478
465
  fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
479
466
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -482,13 +469,12 @@ module Azure::Automation::Mgmt::V2015_10_31
482
469
 
483
470
 
484
471
  request_headers = {}
472
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
485
473
 
486
474
  # Set Headers
487
475
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
488
476
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
489
477
 
490
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
491
-
492
478
  # Serialize Request
493
479
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters.mapper()
494
480
  request_content = @client.serialize(request_mapper, parameters)
@@ -500,7 +486,7 @@ module Azure::Automation::Mgmt::V2015_10_31
500
486
 
501
487
  options = {
502
488
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
503
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id},
489
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id},
504
490
  query_params: {'api-version' => @client.api_version},
505
491
  body: request_content,
506
492
  headers: request_headers.merge(custom_headers || {}),
@@ -538,7 +524,6 @@ module Azure::Automation::Mgmt::V2015_10_31
538
524
  #
539
525
  # Retrieve a list of webhooks.
540
526
  #
541
- # @param resource_group_name [String] The resource group name.
542
527
  # @param automation_account_name [String] The automation account name.
543
528
  # @param filter [String] The filter to apply on the operation.
544
529
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -546,15 +531,14 @@ module Azure::Automation::Mgmt::V2015_10_31
546
531
  #
547
532
  # @return [Array<Webhook>] operation results.
548
533
  #
549
- def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
550
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers)
534
+ def list_by_automation_account(automation_account_name, filter:nil, custom_headers:nil)
535
+ first_page = list_by_automation_account_as_lazy(automation_account_name, filter:filter, custom_headers:custom_headers)
551
536
  first_page.get_all_items
552
537
  end
553
538
 
554
539
  #
555
540
  # Retrieve a list of webhooks.
556
541
  #
557
- # @param resource_group_name [String] The resource group name.
558
542
  # @param automation_account_name [String] The automation account name.
559
543
  # @param filter [String] The filter to apply on the operation.
560
544
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -562,14 +546,13 @@ module Azure::Automation::Mgmt::V2015_10_31
562
546
  #
563
547
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
564
548
  #
565
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
566
- list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
549
+ def list_by_automation_account_with_http_info(automation_account_name, filter:nil, custom_headers:nil)
550
+ list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
567
551
  end
568
552
 
569
553
  #
570
554
  # Retrieve a list of webhooks.
571
555
  #
572
- # @param resource_group_name [String] The resource group name.
573
556
  # @param automation_account_name [String] The automation account name.
574
557
  # @param filter [String] The filter to apply on the operation.
575
558
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -577,15 +560,16 @@ module Azure::Automation::Mgmt::V2015_10_31
577
560
  #
578
561
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
579
562
  #
580
- def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
581
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
582
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
563
+ def list_by_automation_account_async(automation_account_name, filter:nil, custom_headers:nil)
564
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
565
+ 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?
583
566
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
584
567
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
585
568
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
586
569
 
587
570
 
588
571
  request_headers = {}
572
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
589
573
 
590
574
  # Set Headers
591
575
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -596,7 +580,7 @@ module Azure::Automation::Mgmt::V2015_10_31
596
580
 
597
581
  options = {
598
582
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
599
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
583
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
600
584
  query_params: {'$filter' => filter,'api-version' => @client.api_version},
601
585
  headers: request_headers.merge(custom_headers || {}),
602
586
  base_url: request_url
@@ -640,8 +624,8 @@ module Azure::Automation::Mgmt::V2015_10_31
640
624
  #
641
625
  # @return [WebhookListResult] operation results.
642
626
  #
643
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
644
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
627
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
628
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
645
629
  response.body unless response.nil?
646
630
  end
647
631
 
@@ -655,8 +639,8 @@ module Azure::Automation::Mgmt::V2015_10_31
655
639
  #
656
640
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
657
641
  #
658
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
659
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
642
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
643
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
660
644
  end
661
645
 
662
646
  #
@@ -669,11 +653,12 @@ module Azure::Automation::Mgmt::V2015_10_31
669
653
  #
670
654
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
671
655
  #
672
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
656
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
673
657
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
674
658
 
675
659
 
676
660
  request_headers = {}
661
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
677
662
 
678
663
  # Set Headers
679
664
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -720,7 +705,6 @@ module Azure::Automation::Mgmt::V2015_10_31
720
705
  #
721
706
  # Retrieve a list of webhooks.
722
707
  #
723
- # @param resource_group_name [String] The resource group name.
724
708
  # @param automation_account_name [String] The automation account name.
725
709
  # @param filter [String] The filter to apply on the operation.
726
710
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -729,12 +713,12 @@ module Azure::Automation::Mgmt::V2015_10_31
729
713
  # @return [WebhookListResult] which provide lazy access to pages of the
730
714
  # response.
731
715
  #
732
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
733
- response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
716
+ def list_by_automation_account_as_lazy(automation_account_name, filter:nil, custom_headers:nil)
717
+ response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
734
718
  unless response.nil?
735
719
  page = response.body
736
720
  page.next_method = Proc.new do |next_page_link|
737
- list_by_automation_account_next_async(next_page_link, custom_headers)
721
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
738
722
  end
739
723
  page
740
724
  end