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 a test job streams identified by runbook name and stream id.
26
26
  #
27
- # @param resource_group_name [String] The resource group name.
28
27
  # @param automation_account_name [String] The automation account name.
29
28
  # @param runbook_name [String] The runbook name.
30
29
  # @param job_stream_id [String] The job stream id.
@@ -33,15 +32,14 @@ module Azure::Automation::Mgmt::V2015_10_31
33
32
  #
34
33
  # @return [JobStream] operation results.
35
34
  #
36
- def get(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = nil)
37
- response = get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers).value!
35
+ def get(automation_account_name, runbook_name, job_stream_id, custom_headers:nil)
36
+ response = get_async(automation_account_name, runbook_name, job_stream_id, custom_headers:custom_headers).value!
38
37
  response.body unless response.nil?
39
38
  end
40
39
 
41
40
  #
42
41
  # Retrieve a test job streams identified by runbook name and stream id.
43
42
  #
44
- # @param resource_group_name [String] The resource group name.
45
43
  # @param automation_account_name [String] The automation account name.
46
44
  # @param runbook_name [String] The runbook name.
47
45
  # @param job_stream_id [String] The job stream id.
@@ -50,14 +48,13 @@ module Azure::Automation::Mgmt::V2015_10_31
50
48
  #
51
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
50
  #
53
- def get_with_http_info(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = nil)
54
- get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers).value!
51
+ def get_with_http_info(automation_account_name, runbook_name, job_stream_id, custom_headers:nil)
52
+ get_async(automation_account_name, runbook_name, job_stream_id, custom_headers:custom_headers).value!
55
53
  end
56
54
 
57
55
  #
58
56
  # Retrieve a test job streams identified by runbook name and stream id.
59
57
  #
60
- # @param resource_group_name [String] The resource group name.
61
58
  # @param automation_account_name [String] The automation account name.
62
59
  # @param runbook_name [String] The runbook name.
63
60
  # @param job_stream_id [String] The job stream id.
@@ -66,9 +63,9 @@ module Azure::Automation::Mgmt::V2015_10_31
66
63
  #
67
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
65
  #
69
- def get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = nil)
70
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
66
+ def get_async(automation_account_name, runbook_name, job_stream_id, custom_headers:nil)
67
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
68
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
72
69
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
73
70
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
74
71
  fail ArgumentError, 'job_stream_id is nil' if job_stream_id.nil?
@@ -77,6 +74,7 @@ module Azure::Automation::Mgmt::V2015_10_31
77
74
 
78
75
 
79
76
  request_headers = {}
77
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
80
78
 
81
79
  # Set Headers
82
80
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -87,7 +85,7 @@ module Azure::Automation::Mgmt::V2015_10_31
87
85
 
88
86
  options = {
89
87
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
90
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id},
88
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id},
91
89
  query_params: {'api-version' => @client.api_version},
92
90
  headers: request_headers.merge(custom_headers || {}),
93
91
  base_url: request_url
@@ -124,7 +122,6 @@ module Azure::Automation::Mgmt::V2015_10_31
124
122
  #
125
123
  # Retrieve a list of test job streams identified by runbook name.
126
124
  #
127
- # @param resource_group_name [String] The resource group name.
128
125
  # @param automation_account_name [String] The automation account name.
129
126
  # @param runbook_name [String] The runbook name.
130
127
  # @param filter [String] The filter to apply on the operation.
@@ -133,15 +130,14 @@ module Azure::Automation::Mgmt::V2015_10_31
133
130
  #
134
131
  # @return [Array<JobStream>] operation results.
135
132
  #
136
- def list_by_test_job(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil)
137
- first_page = list_by_test_job_as_lazy(resource_group_name, automation_account_name, runbook_name, filter, custom_headers)
133
+ def list_by_test_job(automation_account_name, runbook_name, filter:nil, custom_headers:nil)
134
+ first_page = list_by_test_job_as_lazy(automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers)
138
135
  first_page.get_all_items
139
136
  end
140
137
 
141
138
  #
142
139
  # Retrieve a list of test job streams identified by runbook name.
143
140
  #
144
- # @param resource_group_name [String] The resource group name.
145
141
  # @param automation_account_name [String] The automation account name.
146
142
  # @param runbook_name [String] The runbook name.
147
143
  # @param filter [String] The filter to apply on the operation.
@@ -150,14 +146,13 @@ module Azure::Automation::Mgmt::V2015_10_31
150
146
  #
151
147
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
152
148
  #
153
- def list_by_test_job_with_http_info(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil)
154
- list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter, custom_headers).value!
149
+ def list_by_test_job_with_http_info(automation_account_name, runbook_name, filter:nil, custom_headers:nil)
150
+ list_by_test_job_async(automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers).value!
155
151
  end
156
152
 
157
153
  #
158
154
  # Retrieve a list of test job streams identified by runbook name.
159
155
  #
160
- # @param resource_group_name [String] The resource group name.
161
156
  # @param automation_account_name [String] The automation account name.
162
157
  # @param runbook_name [String] The runbook name.
163
158
  # @param filter [String] The filter to apply on the operation.
@@ -166,9 +161,9 @@ module Azure::Automation::Mgmt::V2015_10_31
166
161
  #
167
162
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
168
163
  #
169
- def list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil)
170
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
171
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
164
+ def list_by_test_job_async(automation_account_name, runbook_name, filter:nil, custom_headers:nil)
165
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
166
+ fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
172
167
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
173
168
  fail ArgumentError, '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: {'$filter' => filter,'api-version' => @client.api_version},
191
187
  headers: request_headers.merge(custom_headers || {}),
192
188
  base_url: request_url
@@ -230,8 +226,8 @@ module Azure::Automation::Mgmt::V2015_10_31
230
226
  #
231
227
  # @return [JobStreamListResult] operation results.
232
228
  #
233
- def list_by_test_job_next(next_page_link, custom_headers = nil)
234
- response = list_by_test_job_next_async(next_page_link, custom_headers).value!
229
+ def list_by_test_job_next(next_page_link, custom_headers:nil)
230
+ response = list_by_test_job_next_async(next_page_link, custom_headers:custom_headers).value!
235
231
  response.body unless response.nil?
236
232
  end
237
233
 
@@ -245,8 +241,8 @@ module Azure::Automation::Mgmt::V2015_10_31
245
241
  #
246
242
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
247
243
  #
248
- def list_by_test_job_next_with_http_info(next_page_link, custom_headers = nil)
249
- list_by_test_job_next_async(next_page_link, custom_headers).value!
244
+ def list_by_test_job_next_with_http_info(next_page_link, custom_headers:nil)
245
+ list_by_test_job_next_async(next_page_link, custom_headers:custom_headers).value!
250
246
  end
251
247
 
252
248
  #
@@ -259,11 +255,12 @@ module Azure::Automation::Mgmt::V2015_10_31
259
255
  #
260
256
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
261
257
  #
262
- def list_by_test_job_next_async(next_page_link, custom_headers = nil)
258
+ def list_by_test_job_next_async(next_page_link, custom_headers:nil)
263
259
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
264
260
 
265
261
 
266
262
  request_headers = {}
263
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
267
264
 
268
265
  # Set Headers
269
266
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -310,7 +307,6 @@ module Azure::Automation::Mgmt::V2015_10_31
310
307
  #
311
308
  # Retrieve a list of test job streams identified by runbook name.
312
309
  #
313
- # @param resource_group_name [String] The resource group name.
314
310
  # @param automation_account_name [String] The automation account name.
315
311
  # @param runbook_name [String] The runbook name.
316
312
  # @param filter [String] The filter to apply on the operation.
@@ -320,12 +316,12 @@ module Azure::Automation::Mgmt::V2015_10_31
320
316
  # @return [JobStreamListResult] which provide lazy access to pages of the
321
317
  # response.
322
318
  #
323
- def list_by_test_job_as_lazy(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil)
324
- response = list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter, custom_headers).value!
319
+ def list_by_test_job_as_lazy(automation_account_name, runbook_name, filter:nil, custom_headers:nil)
320
+ response = list_by_test_job_async(automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers).value!
325
321
  unless response.nil?
326
322
  page = response.body
327
323
  page.next_method = Proc.new do |next_page_link|
328
- list_by_test_job_next_async(next_page_link, custom_headers)
324
+ list_by_test_job_next_async(next_page_link, custom_headers:custom_headers)
329
325
  end
330
326
  page
331
327
  end
@@ -24,7 +24,6 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Create a test job of the runbook.
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 parameters supplied to the create test job
30
29
  # operation.
@@ -35,15 +34,14 @@ module Azure::Automation::Mgmt::V2015_10_31
35
34
  #
36
35
  # @return [TestJob] operation results.
37
36
  #
38
- def create(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
39
- response = create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value!
37
+ def create(automation_account_name, runbook_name, parameters, custom_headers:nil)
38
+ response = create_async(automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
40
39
  response.body unless response.nil?
41
40
  end
42
41
 
43
42
  #
44
43
  # Create a test job of the runbook.
45
44
  #
46
- # @param resource_group_name [String] The resource group name.
47
45
  # @param automation_account_name [String] The automation account name.
48
46
  # @param runbook_name [String] The parameters supplied to the create test job
49
47
  # operation.
@@ -54,14 +52,13 @@ module Azure::Automation::Mgmt::V2015_10_31
54
52
  #
55
53
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
56
54
  #
57
- def create_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
58
- create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value!
55
+ def create_with_http_info(automation_account_name, runbook_name, parameters, custom_headers:nil)
56
+ create_async(automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
59
57
  end
60
58
 
61
59
  #
62
60
  # Create a test job of the runbook.
63
61
  #
64
- # @param resource_group_name [String] The resource group name.
65
62
  # @param automation_account_name [String] The automation account name.
66
63
  # @param runbook_name [String] The parameters supplied to the create test job
67
64
  # operation.
@@ -72,9 +69,9 @@ module Azure::Automation::Mgmt::V2015_10_31
72
69
  #
73
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
74
71
  #
75
- def create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
76
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
77
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
72
+ def create_async(automation_account_name, runbook_name, parameters, custom_headers:nil)
73
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
74
+ 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?
78
75
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
79
76
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
80
77
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -83,13 +80,12 @@ module Azure::Automation::Mgmt::V2015_10_31
83
80
 
84
81
 
85
82
  request_headers = {}
83
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
86
84
 
87
85
  # Set Headers
88
86
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
89
87
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
90
88
 
91
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
92
-
93
89
  # Serialize Request
94
90
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::TestJobCreateParameters.mapper()
95
91
  request_content = @client.serialize(request_mapper, parameters)
@@ -101,7 +97,7 @@ module Azure::Automation::Mgmt::V2015_10_31
101
97
 
102
98
  options = {
103
99
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
104
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
100
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
105
101
  query_params: {'api-version' => @client.api_version},
106
102
  body: request_content,
107
103
  headers: request_headers.merge(custom_headers || {}),
@@ -139,7 +135,6 @@ module Azure::Automation::Mgmt::V2015_10_31
139
135
  #
140
136
  # Retrieve the test job for the specified runbook.
141
137
  #
142
- # @param resource_group_name [String] The resource group name.
143
138
  # @param automation_account_name [String] The automation account name.
144
139
  # @param runbook_name [String] The runbook name.
145
140
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -147,15 +142,14 @@ module Azure::Automation::Mgmt::V2015_10_31
147
142
  #
148
143
  # @return [TestJob] operation results.
149
144
  #
150
- def get(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
151
- response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
145
+ def get(automation_account_name, runbook_name, custom_headers:nil)
146
+ response = get_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
152
147
  response.body unless response.nil?
153
148
  end
154
149
 
155
150
  #
156
151
  # Retrieve the test job for the specified runbook.
157
152
  #
158
- # @param resource_group_name [String] The resource group name.
159
153
  # @param automation_account_name [String] The automation account name.
160
154
  # @param runbook_name [String] The runbook name.
161
155
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -163,14 +157,13 @@ module Azure::Automation::Mgmt::V2015_10_31
163
157
  #
164
158
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
165
159
  #
166
- def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
167
- get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
160
+ def get_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
161
+ get_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
168
162
  end
169
163
 
170
164
  #
171
165
  # Retrieve the test job for the specified runbook.
172
166
  #
173
- # @param resource_group_name [String] The resource group name.
174
167
  # @param automation_account_name [String] The automation account name.
175
168
  # @param runbook_name [String] The runbook name.
176
169
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -178,9 +171,9 @@ module Azure::Automation::Mgmt::V2015_10_31
178
171
  #
179
172
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
180
173
  #
181
- def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
182
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
183
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
174
+ def get_async(automation_account_name, runbook_name, custom_headers:nil)
175
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
176
+ 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?
184
177
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
185
178
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
186
179
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -188,6 +181,7 @@ module Azure::Automation::Mgmt::V2015_10_31
188
181
 
189
182
 
190
183
  request_headers = {}
184
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
191
185
 
192
186
  # Set Headers
193
187
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -198,7 +192,7 @@ module Azure::Automation::Mgmt::V2015_10_31
198
192
 
199
193
  options = {
200
194
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
201
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
195
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
202
196
  query_params: {'api-version' => @client.api_version},
203
197
  headers: request_headers.merge(custom_headers || {}),
204
198
  base_url: request_url
@@ -235,22 +229,20 @@ module Azure::Automation::Mgmt::V2015_10_31
235
229
  #
236
230
  # Resume the test job.
237
231
  #
238
- # @param resource_group_name [String] The resource group name.
239
232
  # @param automation_account_name [String] The automation account name.
240
233
  # @param runbook_name [String] The runbook name.
241
234
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
235
  # will be added to the HTTP request.
243
236
  #
244
237
  #
245
- def resume(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
246
- response = resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
238
+ def resume(automation_account_name, runbook_name, custom_headers:nil)
239
+ response = resume_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
247
240
  nil
248
241
  end
249
242
 
250
243
  #
251
244
  # Resume the test job.
252
245
  #
253
- # @param resource_group_name [String] The resource group name.
254
246
  # @param automation_account_name [String] The automation account name.
255
247
  # @param runbook_name [String] The runbook name.
256
248
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -258,14 +250,13 @@ module Azure::Automation::Mgmt::V2015_10_31
258
250
  #
259
251
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
260
252
  #
261
- def resume_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
262
- resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
253
+ def resume_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
254
+ resume_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
263
255
  end
264
256
 
265
257
  #
266
258
  # Resume the test job.
267
259
  #
268
- # @param resource_group_name [String] The resource group name.
269
260
  # @param automation_account_name [String] The automation account name.
270
261
  # @param runbook_name [String] The runbook name.
271
262
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -273,9 +264,9 @@ module Azure::Automation::Mgmt::V2015_10_31
273
264
  #
274
265
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
275
266
  #
276
- def resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
277
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
278
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
267
+ def resume_async(automation_account_name, runbook_name, custom_headers:nil)
268
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
269
+ 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?
279
270
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
280
271
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
281
272
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -283,6 +274,7 @@ module Azure::Automation::Mgmt::V2015_10_31
283
274
 
284
275
 
285
276
  request_headers = {}
277
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
286
278
 
287
279
  # Set Headers
288
280
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -293,7 +285,7 @@ module Azure::Automation::Mgmt::V2015_10_31
293
285
 
294
286
  options = {
295
287
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
296
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
288
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
297
289
  query_params: {'api-version' => @client.api_version},
298
290
  headers: request_headers.merge(custom_headers || {}),
299
291
  base_url: request_url
@@ -320,22 +312,20 @@ module Azure::Automation::Mgmt::V2015_10_31
320
312
  #
321
313
  # Stop the test job.
322
314
  #
323
- # @param resource_group_name [String] The resource group name.
324
315
  # @param automation_account_name [String] The automation account name.
325
316
  # @param runbook_name [String] The runbook name.
326
317
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
327
318
  # will be added to the HTTP request.
328
319
  #
329
320
  #
330
- def stop(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
331
- response = stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
321
+ def stop(automation_account_name, runbook_name, custom_headers:nil)
322
+ response = stop_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
332
323
  nil
333
324
  end
334
325
 
335
326
  #
336
327
  # Stop the test job.
337
328
  #
338
- # @param resource_group_name [String] The resource group name.
339
329
  # @param automation_account_name [String] The automation account name.
340
330
  # @param runbook_name [String] The runbook name.
341
331
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -343,14 +333,13 @@ module Azure::Automation::Mgmt::V2015_10_31
343
333
  #
344
334
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
345
335
  #
346
- def stop_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
347
- stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
336
+ def stop_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
337
+ stop_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
348
338
  end
349
339
 
350
340
  #
351
341
  # Stop the test job.
352
342
  #
353
- # @param resource_group_name [String] The resource group name.
354
343
  # @param automation_account_name [String] The automation account name.
355
344
  # @param runbook_name [String] The runbook name.
356
345
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -358,9 +347,9 @@ module Azure::Automation::Mgmt::V2015_10_31
358
347
  #
359
348
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
360
349
  #
361
- def stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
362
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
363
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
350
+ def stop_async(automation_account_name, runbook_name, custom_headers:nil)
351
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
352
+ 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?
364
353
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
365
354
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
366
355
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -368,6 +357,7 @@ module Azure::Automation::Mgmt::V2015_10_31
368
357
 
369
358
 
370
359
  request_headers = {}
360
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
371
361
 
372
362
  # Set Headers
373
363
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -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,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
371
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
382
372
  query_params: {'api-version' => @client.api_version},
383
373
  headers: request_headers.merge(custom_headers || {}),
384
374
  base_url: request_url
@@ -405,22 +395,20 @@ module Azure::Automation::Mgmt::V2015_10_31
405
395
  #
406
396
  # Suspend the test job.
407
397
  #
408
- # @param resource_group_name [String] The resource group name.
409
398
  # @param automation_account_name [String] The automation account name.
410
399
  # @param runbook_name [String] The runbook name.
411
400
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
412
401
  # will be added to the HTTP request.
413
402
  #
414
403
  #
415
- def suspend(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
416
- response = suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
404
+ def suspend(automation_account_name, runbook_name, custom_headers:nil)
405
+ response = suspend_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
417
406
  nil
418
407
  end
419
408
 
420
409
  #
421
410
  # Suspend the test job.
422
411
  #
423
- # @param resource_group_name [String] The resource group name.
424
412
  # @param automation_account_name [String] The automation account name.
425
413
  # @param runbook_name [String] The runbook name.
426
414
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -428,14 +416,13 @@ module Azure::Automation::Mgmt::V2015_10_31
428
416
  #
429
417
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
430
418
  #
431
- def suspend_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
432
- suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
419
+ def suspend_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
420
+ suspend_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
433
421
  end
434
422
 
435
423
  #
436
424
  # Suspend the test job.
437
425
  #
438
- # @param resource_group_name [String] The resource group name.
439
426
  # @param automation_account_name [String] The automation account name.
440
427
  # @param runbook_name [String] The runbook name.
441
428
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -443,9 +430,9 @@ module Azure::Automation::Mgmt::V2015_10_31
443
430
  #
444
431
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
445
432
  #
446
- def suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
447
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
448
- fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
433
+ def suspend_async(automation_account_name, runbook_name, custom_headers:nil)
434
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
435
+ 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?
449
436
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
450
437
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
451
438
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -453,6 +440,7 @@ module Azure::Automation::Mgmt::V2015_10_31
453
440
 
454
441
 
455
442
  request_headers = {}
443
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
456
444
 
457
445
  # Set Headers
458
446
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -463,7 +451,7 @@ module Azure::Automation::Mgmt::V2015_10_31
463
451
 
464
452
  options = {
465
453
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
466
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
454
+ path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
467
455
  query_params: {'api-version' => @client.api_version},
468
456
  headers: request_headers.merge(custom_headers || {}),
469
457
  base_url: request_url