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
@@ -31,8 +31,8 @@ module Azure::Automation::Mgmt::V2015_10_31
31
31
  #
32
32
  # @return [UsageListResult] operation results.
33
33
  #
34
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
35
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
34
+ def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
35
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
36
36
  response.body unless response.nil?
37
37
  end
38
38
 
@@ -46,8 +46,8 @@ module Azure::Automation::Mgmt::V2015_10_31
46
46
  #
47
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
48
  #
49
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
50
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
49
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
50
+ list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
51
51
  end
52
52
 
53
53
  #
@@ -60,7 +60,7 @@ module Azure::Automation::Mgmt::V2015_10_31
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
63
+ def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
64
64
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
65
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?
66
66
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
@@ -69,6 +69,7 @@ module Azure::Automation::Mgmt::V2015_10_31
69
69
 
70
70
 
71
71
  request_headers = {}
72
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
72
73
 
73
74
  # Set Headers
74
75
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -24,7 +24,6 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Create a variable.
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 variable_name [String] The variable name.
30
29
  # @param parameters [VariableCreateOrUpdateParameters] The parameters supplied
@@ -34,15 +33,14 @@ module Azure::Automation::Mgmt::V2015_10_31
34
33
  #
35
34
  # @return [Variable] operation results.
36
35
  #
37
- def create_or_update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil)
38
- response = create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value!
36
+ def create_or_update(automation_account_name, variable_name, parameters, custom_headers:nil)
37
+ response = create_or_update_async(automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
39
38
  response.body unless response.nil?
40
39
  end
41
40
 
42
41
  #
43
42
  # Create a variable.
44
43
  #
45
- # @param resource_group_name [String] The resource group name.
46
44
  # @param automation_account_name [String] The automation account name.
47
45
  # @param variable_name [String] The variable name.
48
46
  # @param parameters [VariableCreateOrUpdateParameters] The parameters supplied
@@ -52,14 +50,13 @@ module Azure::Automation::Mgmt::V2015_10_31
52
50
  #
53
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
52
  #
55
- def create_or_update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil)
56
- create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value!
53
+ def create_or_update_with_http_info(automation_account_name, variable_name, parameters, custom_headers:nil)
54
+ create_or_update_async(automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
57
55
  end
58
56
 
59
57
  #
60
58
  # Create a variable.
61
59
  #
62
- # @param resource_group_name [String] The resource group name.
63
60
  # @param automation_account_name [String] The automation account name.
64
61
  # @param variable_name [String] The variable name.
65
62
  # @param parameters [VariableCreateOrUpdateParameters] The parameters supplied
@@ -69,9 +66,9 @@ module Azure::Automation::Mgmt::V2015_10_31
69
66
  #
70
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
68
  #
72
- def create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil)
73
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
74
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
69
+ def create_or_update_async(automation_account_name, variable_name, parameters, custom_headers:nil)
70
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
71
+ 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?
75
72
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
76
73
  fail ArgumentError, 'variable_name is nil' if variable_name.nil?
77
74
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -80,13 +77,12 @@ module Azure::Automation::Mgmt::V2015_10_31
80
77
 
81
78
 
82
79
  request_headers = {}
80
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
83
81
 
84
82
  # Set Headers
85
83
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
86
84
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
87
85
 
88
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
89
-
90
86
  # Serialize Request
91
87
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters.mapper()
92
88
  request_content = @client.serialize(request_mapper, parameters)
@@ -98,7 +94,7 @@ module Azure::Automation::Mgmt::V2015_10_31
98
94
 
99
95
  options = {
100
96
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
101
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
97
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
102
98
  query_params: {'api-version' => @client.api_version},
103
99
  body: request_content,
104
100
  headers: request_headers.merge(custom_headers || {}),
@@ -146,7 +142,6 @@ module Azure::Automation::Mgmt::V2015_10_31
146
142
  #
147
143
  # Update a variable.
148
144
  #
149
- # @param resource_group_name [String] The resource group name.
150
145
  # @param automation_account_name [String] The automation account name.
151
146
  # @param variable_name [String] The variable name.
152
147
  # @param parameters [VariableUpdateParameters] The parameters supplied to the
@@ -156,15 +151,14 @@ module Azure::Automation::Mgmt::V2015_10_31
156
151
  #
157
152
  # @return [Variable] operation results.
158
153
  #
159
- def update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil)
160
- response = update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value!
154
+ def update(automation_account_name, variable_name, parameters, custom_headers:nil)
155
+ response = update_async(automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
161
156
  response.body unless response.nil?
162
157
  end
163
158
 
164
159
  #
165
160
  # Update a variable.
166
161
  #
167
- # @param resource_group_name [String] The resource group name.
168
162
  # @param automation_account_name [String] The automation account name.
169
163
  # @param variable_name [String] The variable name.
170
164
  # @param parameters [VariableUpdateParameters] The parameters supplied to the
@@ -174,14 +168,13 @@ module Azure::Automation::Mgmt::V2015_10_31
174
168
  #
175
169
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
176
170
  #
177
- def update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil)
178
- update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value!
171
+ def update_with_http_info(automation_account_name, variable_name, parameters, custom_headers:nil)
172
+ update_async(automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
179
173
  end
180
174
 
181
175
  #
182
176
  # Update a variable.
183
177
  #
184
- # @param resource_group_name [String] The resource group name.
185
178
  # @param automation_account_name [String] The automation account name.
186
179
  # @param variable_name [String] The variable name.
187
180
  # @param parameters [VariableUpdateParameters] The parameters supplied to the
@@ -191,9 +184,9 @@ module Azure::Automation::Mgmt::V2015_10_31
191
184
  #
192
185
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
193
186
  #
194
- def update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil)
195
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
196
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
187
+ def update_async(automation_account_name, variable_name, parameters, custom_headers:nil)
188
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
189
+ 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?
197
190
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
198
191
  fail ArgumentError, 'variable_name is nil' if variable_name.nil?
199
192
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -202,13 +195,12 @@ module Azure::Automation::Mgmt::V2015_10_31
202
195
 
203
196
 
204
197
  request_headers = {}
198
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
205
199
 
206
200
  # Set Headers
207
201
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
208
202
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
209
203
 
210
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
211
-
212
204
  # Serialize Request
213
205
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters.mapper()
214
206
  request_content = @client.serialize(request_mapper, parameters)
@@ -220,7 +212,7 @@ module Azure::Automation::Mgmt::V2015_10_31
220
212
 
221
213
  options = {
222
214
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
223
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
215
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
224
216
  query_params: {'api-version' => @client.api_version},
225
217
  body: request_content,
226
218
  headers: request_headers.merge(custom_headers || {}),
@@ -258,22 +250,20 @@ module Azure::Automation::Mgmt::V2015_10_31
258
250
  #
259
251
  # Delete the variable.
260
252
  #
261
- # @param resource_group_name [String] The resource group name.
262
253
  # @param automation_account_name [String] The automation account name.
263
254
  # @param variable_name [String] The name of variable.
264
255
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
265
256
  # will be added to the HTTP request.
266
257
  #
267
258
  #
268
- def delete(resource_group_name, automation_account_name, variable_name, custom_headers = nil)
269
- response = delete_async(resource_group_name, automation_account_name, variable_name, custom_headers).value!
259
+ def delete(automation_account_name, variable_name, custom_headers:nil)
260
+ response = delete_async(automation_account_name, variable_name, custom_headers:custom_headers).value!
270
261
  nil
271
262
  end
272
263
 
273
264
  #
274
265
  # Delete the variable.
275
266
  #
276
- # @param resource_group_name [String] The resource group name.
277
267
  # @param automation_account_name [String] The automation account name.
278
268
  # @param variable_name [String] The name of variable.
279
269
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -281,14 +271,13 @@ module Azure::Automation::Mgmt::V2015_10_31
281
271
  #
282
272
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
283
273
  #
284
- def delete_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers = nil)
285
- delete_async(resource_group_name, automation_account_name, variable_name, custom_headers).value!
274
+ def delete_with_http_info(automation_account_name, variable_name, custom_headers:nil)
275
+ delete_async(automation_account_name, variable_name, custom_headers:custom_headers).value!
286
276
  end
287
277
 
288
278
  #
289
279
  # Delete the variable.
290
280
  #
291
- # @param resource_group_name [String] The resource group name.
292
281
  # @param automation_account_name [String] The automation account name.
293
282
  # @param variable_name [String] The name of variable.
294
283
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -296,9 +285,9 @@ module Azure::Automation::Mgmt::V2015_10_31
296
285
  #
297
286
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
298
287
  #
299
- def delete_async(resource_group_name, automation_account_name, variable_name, custom_headers = nil)
300
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
301
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
288
+ def delete_async(automation_account_name, variable_name, custom_headers:nil)
289
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
290
+ 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?
302
291
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
303
292
  fail ArgumentError, 'variable_name is nil' if variable_name.nil?
304
293
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -306,6 +295,7 @@ module Azure::Automation::Mgmt::V2015_10_31
306
295
 
307
296
 
308
297
  request_headers = {}
298
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
309
299
 
310
300
  # Set Headers
311
301
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -316,7 +306,7 @@ module Azure::Automation::Mgmt::V2015_10_31
316
306
 
317
307
  options = {
318
308
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
319
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
309
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
320
310
  query_params: {'api-version' => @client.api_version},
321
311
  headers: request_headers.merge(custom_headers || {}),
322
312
  base_url: request_url
@@ -343,7 +333,6 @@ module Azure::Automation::Mgmt::V2015_10_31
343
333
  #
344
334
  # Retrieve the variable identified by variable name.
345
335
  #
346
- # @param resource_group_name [String] The resource group name.
347
336
  # @param automation_account_name [String] The automation account name.
348
337
  # @param variable_name [String] The name of variable.
349
338
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -351,15 +340,14 @@ module Azure::Automation::Mgmt::V2015_10_31
351
340
  #
352
341
  # @return [Variable] operation results.
353
342
  #
354
- def get(resource_group_name, automation_account_name, variable_name, custom_headers = nil)
355
- response = get_async(resource_group_name, automation_account_name, variable_name, custom_headers).value!
343
+ def get(automation_account_name, variable_name, custom_headers:nil)
344
+ response = get_async(automation_account_name, variable_name, custom_headers:custom_headers).value!
356
345
  response.body unless response.nil?
357
346
  end
358
347
 
359
348
  #
360
349
  # Retrieve the variable identified by variable name.
361
350
  #
362
- # @param resource_group_name [String] The resource group name.
363
351
  # @param automation_account_name [String] The automation account name.
364
352
  # @param variable_name [String] The name of variable.
365
353
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -367,14 +355,13 @@ module Azure::Automation::Mgmt::V2015_10_31
367
355
  #
368
356
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
369
357
  #
370
- def get_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers = nil)
371
- get_async(resource_group_name, automation_account_name, variable_name, custom_headers).value!
358
+ def get_with_http_info(automation_account_name, variable_name, custom_headers:nil)
359
+ get_async(automation_account_name, variable_name, custom_headers:custom_headers).value!
372
360
  end
373
361
 
374
362
  #
375
363
  # Retrieve the variable identified by variable name.
376
364
  #
377
- # @param resource_group_name [String] The resource group name.
378
365
  # @param automation_account_name [String] The automation account name.
379
366
  # @param variable_name [String] The name of variable.
380
367
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -382,9 +369,9 @@ module Azure::Automation::Mgmt::V2015_10_31
382
369
  #
383
370
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
384
371
  #
385
- def get_async(resource_group_name, automation_account_name, variable_name, custom_headers = nil)
386
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
387
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
372
+ def get_async(automation_account_name, variable_name, custom_headers:nil)
373
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
374
+ 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?
388
375
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
389
376
  fail ArgumentError, 'variable_name is nil' if variable_name.nil?
390
377
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -392,6 +379,7 @@ module Azure::Automation::Mgmt::V2015_10_31
392
379
 
393
380
 
394
381
  request_headers = {}
382
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
395
383
 
396
384
  # Set Headers
397
385
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -402,7 +390,7 @@ module Azure::Automation::Mgmt::V2015_10_31
402
390
 
403
391
  options = {
404
392
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
405
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
393
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
406
394
  query_params: {'api-version' => @client.api_version},
407
395
  headers: request_headers.merge(custom_headers || {}),
408
396
  base_url: request_url
@@ -439,51 +427,49 @@ module Azure::Automation::Mgmt::V2015_10_31
439
427
  #
440
428
  # Retrieve a list of variables.
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 custom_headers [Hash{String => String}] A hash of custom headers that
445
432
  # will be added to the HTTP request.
446
433
  #
447
434
  # @return [Array<Variable>] operation results.
448
435
  #
449
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
450
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
436
+ def list_by_automation_account(automation_account_name, custom_headers:nil)
437
+ first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
451
438
  first_page.get_all_items
452
439
  end
453
440
 
454
441
  #
455
442
  # Retrieve a list of variables.
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 custom_headers [Hash{String => String}] A hash of custom headers that
460
446
  # will be added to the HTTP request.
461
447
  #
462
448
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
463
449
  #
464
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
465
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
450
+ def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
451
+ list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
466
452
  end
467
453
 
468
454
  #
469
455
  # Retrieve a list of variables.
470
456
  #
471
- # @param resource_group_name [String] The resource group name.
472
457
  # @param automation_account_name [String] The automation account name.
473
458
  # @param [Hash{String => String}] A hash of custom headers that will be added
474
459
  # to the HTTP request.
475
460
  #
476
461
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
477
462
  #
478
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
479
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
480
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
463
+ def list_by_automation_account_async(automation_account_name, custom_headers:nil)
464
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
465
+ 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?
481
466
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
482
467
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
483
468
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
484
469
 
485
470
 
486
471
  request_headers = {}
472
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
487
473
 
488
474
  # Set Headers
489
475
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -494,7 +480,7 @@ module Azure::Automation::Mgmt::V2015_10_31
494
480
 
495
481
  options = {
496
482
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
497
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
483
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
498
484
  query_params: {'api-version' => @client.api_version},
499
485
  headers: request_headers.merge(custom_headers || {}),
500
486
  base_url: request_url
@@ -538,8 +524,8 @@ module Azure::Automation::Mgmt::V2015_10_31
538
524
  #
539
525
  # @return [VariableListResult] operation results.
540
526
  #
541
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
542
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
527
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
528
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
543
529
  response.body unless response.nil?
544
530
  end
545
531
 
@@ -553,8 +539,8 @@ module Azure::Automation::Mgmt::V2015_10_31
553
539
  #
554
540
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
555
541
  #
556
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
557
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
542
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
543
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
558
544
  end
559
545
 
560
546
  #
@@ -567,11 +553,12 @@ module Azure::Automation::Mgmt::V2015_10_31
567
553
  #
568
554
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
569
555
  #
570
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
556
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
571
557
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
572
558
 
573
559
 
574
560
  request_headers = {}
561
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
575
562
 
576
563
  # Set Headers
577
564
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -618,7 +605,6 @@ module Azure::Automation::Mgmt::V2015_10_31
618
605
  #
619
606
  # Retrieve a list of variables.
620
607
  #
621
- # @param resource_group_name [String] The resource group name.
622
608
  # @param automation_account_name [String] The automation account name.
623
609
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
624
610
  # will be added to the HTTP request.
@@ -626,12 +612,12 @@ module Azure::Automation::Mgmt::V2015_10_31
626
612
  # @return [VariableListResult] which provide lazy access to pages of the
627
613
  # response.
628
614
  #
629
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
630
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
615
+ def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
616
+ response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
631
617
  unless response.nil?
632
618
  page = response.body
633
619
  page.next_method = Proc.new do |next_page_link|
634
- list_by_automation_account_next_async(next_page_link, custom_headers)
620
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
635
621
  end
636
622
  page
637
623
  end