azure_mgmt_automation 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-10-31/generated/azure_mgmt_automation.rb +110 -97
  3. data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +36 -25
  4. data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +32 -22
  5. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +38 -31
  6. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +22 -12
  7. data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +84 -58
  8. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +84 -58
  9. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +68 -47
  10. data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +84 -58
  11. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +68 -47
  12. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_stream.rb +124 -0
  13. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +218 -61
  14. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +69 -58
  15. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +68 -47
  16. data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +16 -11
  17. data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +73 -48
  18. data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +132 -91
  19. data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +73 -48
  20. data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +36 -25
  21. data/lib/2015-10-31/generated/azure_mgmt_automation/keys.rb +120 -0
  22. data/lib/2015-10-31/generated/azure_mgmt_automation/linked_workspace_operations.rb +120 -0
  23. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb +35 -2
  24. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_validation_set.rb +47 -0
  25. data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +1 -1
  26. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb +2 -2
  27. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +2 -2
  28. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb +9 -9
  29. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_name.rb +16 -0
  30. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb +16 -0
  31. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +1 -10
  32. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +1 -10
  33. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +1 -10
  34. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +44 -4
  35. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +3 -3
  36. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb +20 -9
  37. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +12 -0
  38. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_update_parameters.rb +132 -0
  39. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +1 -25
  40. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +20 -15
  41. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +4 -4
  42. data/lib/2015-10-31/generated/azure_mgmt_automation/models/group_type_enum.rb +16 -0
  43. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +11 -0
  44. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +12 -0
  45. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb +37 -1
  46. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb +0 -42
  47. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state.rb +18 -0
  48. data/lib/2015-10-31/generated/azure_mgmt_automation/models/key.rb +73 -0
  49. data/lib/2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb +56 -0
  50. data/lib/2015-10-31/generated/azure_mgmt_automation/models/{sub_resource.rb → linked_workspace.rb} +7 -6
  51. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb +20 -9
  52. data/lib/2015-10-31/generated/azure_mgmt_automation/models/proxy_resource.rb +62 -0
  53. data/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb +4 -34
  54. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb +9 -9
  55. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb +2 -1
  56. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +1 -10
  57. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb +1 -1
  58. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +1 -1
  59. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +1 -1
  60. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb +11 -0
  61. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +0 -11
  62. data/lib/2015-10-31/generated/azure_mgmt_automation/models/tracked_resource.rb +92 -0
  63. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +1 -10
  64. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +23 -7
  65. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +1 -1
  66. data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +84 -58
  67. data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +53 -54
  68. data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +32 -22
  69. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +150 -107
  70. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +130 -78
  71. data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +96 -60
  72. data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +8 -6
  73. data/lib/2015-10-31/generated/azure_mgmt_automation/{test_jobs.rb → test_job_operations.rb} +87 -62
  74. data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +44 -30
  75. data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +8 -6
  76. data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +84 -58
  77. data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +100 -69
  78. data/lib/profiles/latest/modules/automation_profile_module.rb +364 -318
  79. data/lib/version.rb +1 -1
  80. metadata +19 -6
@@ -24,7 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Create a schedule.
26
26
  #
27
- # @param automation_account_name [String] The automation account name.
27
+ # @param resource_group_name [String] Name of an Azure Resource group.
28
+ # @param automation_account_name [String] The name of the automation account.
28
29
  # @param schedule_name [String] The schedule name.
29
30
  # @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied
30
31
  # to the create or update schedule operation.
@@ -33,15 +34,16 @@ module Azure::Automation::Mgmt::V2015_10_31
33
34
  #
34
35
  # @return [Schedule] operation results.
35
36
  #
36
- def create_or_update(automation_account_name, schedule_name, parameters, custom_headers:nil)
37
- response = create_or_update_async(automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
37
+ def create_or_update(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil)
38
+ response = create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
38
39
  response.body unless response.nil?
39
40
  end
40
41
 
41
42
  #
42
43
  # Create a schedule.
43
44
  #
44
- # @param automation_account_name [String] The automation account name.
45
+ # @param resource_group_name [String] Name of an Azure Resource group.
46
+ # @param automation_account_name [String] The name of the automation account.
45
47
  # @param schedule_name [String] The schedule name.
46
48
  # @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied
47
49
  # to the create or update schedule operation.
@@ -50,14 +52,15 @@ module Azure::Automation::Mgmt::V2015_10_31
50
52
  #
51
53
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
54
  #
53
- def create_or_update_with_http_info(automation_account_name, schedule_name, parameters, custom_headers:nil)
54
- create_or_update_async(automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
55
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil)
56
+ create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
55
57
  end
56
58
 
57
59
  #
58
60
  # Create a schedule.
59
61
  #
60
- # @param automation_account_name [String] The automation account name.
62
+ # @param resource_group_name [String] Name of an Azure Resource group.
63
+ # @param automation_account_name [String] The name of the automation account.
61
64
  # @param schedule_name [String] The schedule name.
62
65
  # @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied
63
66
  # to the create or update schedule operation.
@@ -66,9 +69,11 @@ module Azure::Automation::Mgmt::V2015_10_31
66
69
  #
67
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
71
  #
69
- def create_or_update_async(automation_account_name, schedule_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?
72
+ def create_or_update_async(resource_group_name, automation_account_name, schedule_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 - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
75
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
76
+ 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
77
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
73
78
  fail ArgumentError, 'schedule_name is nil' if schedule_name.nil?
74
79
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -94,7 +99,7 @@ module Azure::Automation::Mgmt::V2015_10_31
94
99
 
95
100
  options = {
96
101
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
97
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
102
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
98
103
  query_params: {'api-version' => @client.api_version},
99
104
  body: request_content,
100
105
  headers: request_headers.merge(custom_headers || {}),
@@ -106,7 +111,7 @@ module Azure::Automation::Mgmt::V2015_10_31
106
111
  http_response = result.response
107
112
  status_code = http_response.status
108
113
  response_content = http_response.body
109
- unless status_code == 201 || status_code == 409
114
+ unless status_code == 201 || status_code == 200 || status_code == 409
110
115
  error_model = JSON.load(response_content)
111
116
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
112
117
  end
@@ -122,6 +127,16 @@ module Azure::Automation::Mgmt::V2015_10_31
122
127
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
123
128
  end
124
129
  end
130
+ # Deserialize Response
131
+ if status_code == 200
132
+ begin
133
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
134
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Schedule.mapper()
135
+ result.body = @client.deserialize(result_mapper, parsed_response)
136
+ rescue Exception => e
137
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
138
+ end
139
+ end
125
140
 
126
141
  result
127
142
  end
@@ -132,7 +147,8 @@ module Azure::Automation::Mgmt::V2015_10_31
132
147
  #
133
148
  # Update the schedule identified by schedule name.
134
149
  #
135
- # @param automation_account_name [String] The automation account name.
150
+ # @param resource_group_name [String] Name of an Azure Resource group.
151
+ # @param automation_account_name [String] The name of the automation account.
136
152
  # @param schedule_name [String] The schedule name.
137
153
  # @param parameters [ScheduleUpdateParameters] The parameters supplied to the
138
154
  # update schedule operation.
@@ -141,15 +157,16 @@ module Azure::Automation::Mgmt::V2015_10_31
141
157
  #
142
158
  # @return [Schedule] operation results.
143
159
  #
144
- def update(automation_account_name, schedule_name, parameters, custom_headers:nil)
145
- response = update_async(automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
160
+ def update(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil)
161
+ response = update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
146
162
  response.body unless response.nil?
147
163
  end
148
164
 
149
165
  #
150
166
  # Update the schedule identified by schedule name.
151
167
  #
152
- # @param automation_account_name [String] The automation account name.
168
+ # @param resource_group_name [String] Name of an Azure Resource group.
169
+ # @param automation_account_name [String] The name of the automation account.
153
170
  # @param schedule_name [String] The schedule name.
154
171
  # @param parameters [ScheduleUpdateParameters] The parameters supplied to the
155
172
  # update schedule operation.
@@ -158,14 +175,15 @@ module Azure::Automation::Mgmt::V2015_10_31
158
175
  #
159
176
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
160
177
  #
161
- def update_with_http_info(automation_account_name, schedule_name, parameters, custom_headers:nil)
162
- update_async(automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
178
+ def update_with_http_info(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil)
179
+ update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
163
180
  end
164
181
 
165
182
  #
166
183
  # Update the schedule identified by schedule name.
167
184
  #
168
- # @param automation_account_name [String] The automation account name.
185
+ # @param resource_group_name [String] Name of an Azure Resource group.
186
+ # @param automation_account_name [String] The name of the automation account.
169
187
  # @param schedule_name [String] The schedule name.
170
188
  # @param parameters [ScheduleUpdateParameters] The parameters supplied to the
171
189
  # update schedule operation.
@@ -174,9 +192,11 @@ module Azure::Automation::Mgmt::V2015_10_31
174
192
  #
175
193
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
176
194
  #
177
- def update_async(automation_account_name, schedule_name, parameters, custom_headers:nil)
178
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
179
- 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?
195
+ def update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil)
196
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
197
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
198
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
199
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
180
200
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
181
201
  fail ArgumentError, 'schedule_name is nil' if schedule_name.nil?
182
202
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -202,7 +222,7 @@ module Azure::Automation::Mgmt::V2015_10_31
202
222
 
203
223
  options = {
204
224
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
205
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
225
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
206
226
  query_params: {'api-version' => @client.api_version},
207
227
  body: request_content,
208
228
  headers: request_headers.merge(custom_headers || {}),
@@ -240,45 +260,50 @@ module Azure::Automation::Mgmt::V2015_10_31
240
260
  #
241
261
  # Retrieve the schedule identified by schedule name.
242
262
  #
243
- # @param automation_account_name [String] The automation account name.
263
+ # @param resource_group_name [String] Name of an Azure Resource group.
264
+ # @param automation_account_name [String] The name of the automation account.
244
265
  # @param schedule_name [String] The schedule name.
245
266
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
246
267
  # will be added to the HTTP request.
247
268
  #
248
269
  # @return [Schedule] operation results.
249
270
  #
250
- def get(automation_account_name, schedule_name, custom_headers:nil)
251
- response = get_async(automation_account_name, schedule_name, custom_headers:custom_headers).value!
271
+ def get(resource_group_name, automation_account_name, schedule_name, custom_headers:nil)
272
+ response = get_async(resource_group_name, automation_account_name, schedule_name, custom_headers:custom_headers).value!
252
273
  response.body unless response.nil?
253
274
  end
254
275
 
255
276
  #
256
277
  # Retrieve the schedule identified by schedule name.
257
278
  #
258
- # @param automation_account_name [String] The automation account name.
279
+ # @param resource_group_name [String] Name of an Azure Resource group.
280
+ # @param automation_account_name [String] The name of the automation account.
259
281
  # @param schedule_name [String] The schedule name.
260
282
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
261
283
  # will be added to the HTTP request.
262
284
  #
263
285
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
264
286
  #
265
- def get_with_http_info(automation_account_name, schedule_name, custom_headers:nil)
266
- get_async(automation_account_name, schedule_name, custom_headers:custom_headers).value!
287
+ def get_with_http_info(resource_group_name, automation_account_name, schedule_name, custom_headers:nil)
288
+ get_async(resource_group_name, automation_account_name, schedule_name, custom_headers:custom_headers).value!
267
289
  end
268
290
 
269
291
  #
270
292
  # Retrieve the schedule identified by schedule name.
271
293
  #
272
- # @param automation_account_name [String] The automation account name.
294
+ # @param resource_group_name [String] Name of an Azure Resource group.
295
+ # @param automation_account_name [String] The name of the automation account.
273
296
  # @param schedule_name [String] The schedule name.
274
297
  # @param [Hash{String => String}] A hash of custom headers that will be added
275
298
  # to the HTTP request.
276
299
  #
277
300
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
278
301
  #
279
- def get_async(automation_account_name, schedule_name, custom_headers:nil)
280
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
281
- 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
+ def get_async(resource_group_name, automation_account_name, schedule_name, custom_headers:nil)
303
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
304
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
305
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
306
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
282
307
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
283
308
  fail ArgumentError, 'schedule_name is nil' if schedule_name.nil?
284
309
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -297,7 +322,7 @@ module Azure::Automation::Mgmt::V2015_10_31
297
322
 
298
323
  options = {
299
324
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
300
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
325
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
301
326
  query_params: {'api-version' => @client.api_version},
302
327
  headers: request_headers.merge(custom_headers || {}),
303
328
  base_url: request_url
@@ -334,44 +359,49 @@ module Azure::Automation::Mgmt::V2015_10_31
334
359
  #
335
360
  # Delete the schedule identified by schedule name.
336
361
  #
337
- # @param automation_account_name [String] The automation account name.
362
+ # @param resource_group_name [String] Name of an Azure Resource group.
363
+ # @param automation_account_name [String] The name of the automation account.
338
364
  # @param schedule_name [String] The schedule name.
339
365
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
340
366
  # will be added to the HTTP request.
341
367
  #
342
368
  #
343
- def delete(automation_account_name, schedule_name, custom_headers:nil)
344
- response = delete_async(automation_account_name, schedule_name, custom_headers:custom_headers).value!
369
+ def delete(resource_group_name, automation_account_name, schedule_name, custom_headers:nil)
370
+ response = delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers:custom_headers).value!
345
371
  nil
346
372
  end
347
373
 
348
374
  #
349
375
  # Delete the schedule identified by schedule name.
350
376
  #
351
- # @param automation_account_name [String] The automation account name.
377
+ # @param resource_group_name [String] Name of an Azure Resource group.
378
+ # @param automation_account_name [String] The name of the automation account.
352
379
  # @param schedule_name [String] The schedule name.
353
380
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
354
381
  # will be added to the HTTP request.
355
382
  #
356
383
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
357
384
  #
358
- def delete_with_http_info(automation_account_name, schedule_name, custom_headers:nil)
359
- delete_async(automation_account_name, schedule_name, custom_headers:custom_headers).value!
385
+ def delete_with_http_info(resource_group_name, automation_account_name, schedule_name, custom_headers:nil)
386
+ delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers:custom_headers).value!
360
387
  end
361
388
 
362
389
  #
363
390
  # Delete the schedule identified by schedule name.
364
391
  #
365
- # @param automation_account_name [String] The automation account name.
392
+ # @param resource_group_name [String] Name of an Azure Resource group.
393
+ # @param automation_account_name [String] The name of the automation account.
366
394
  # @param schedule_name [String] The schedule name.
367
395
  # @param [Hash{String => String}] A hash of custom headers that will be added
368
396
  # to the HTTP request.
369
397
  #
370
398
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
371
399
  #
372
- def delete_async(automation_account_name, schedule_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?
400
+ def delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers:nil)
401
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
402
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
403
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
404
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
375
405
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
376
406
  fail ArgumentError, 'schedule_name is nil' if schedule_name.nil?
377
407
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -390,7 +420,7 @@ module Azure::Automation::Mgmt::V2015_10_31
390
420
 
391
421
  options = {
392
422
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
393
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
423
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
394
424
  query_params: {'api-version' => @client.api_version},
395
425
  headers: request_headers.merge(custom_headers || {}),
396
426
  base_url: request_url
@@ -401,7 +431,7 @@ module Azure::Automation::Mgmt::V2015_10_31
401
431
  http_response = result.response
402
432
  status_code = http_response.status
403
433
  response_content = http_response.body
404
- unless status_code == 200 || status_code == 404
434
+ unless status_code == 200
405
435
  error_model = JSON.load(response_content)
406
436
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
407
437
  end
@@ -417,42 +447,47 @@ module Azure::Automation::Mgmt::V2015_10_31
417
447
  #
418
448
  # Retrieve a list of schedules.
419
449
  #
420
- # @param automation_account_name [String] The automation account name.
450
+ # @param resource_group_name [String] Name of an Azure Resource group.
451
+ # @param automation_account_name [String] The name of the automation account.
421
452
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
422
453
  # will be added to the HTTP request.
423
454
  #
424
455
  # @return [Array<Schedule>] operation results.
425
456
  #
426
- def list_by_automation_account(automation_account_name, custom_headers:nil)
427
- first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
457
+ def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
458
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
428
459
  first_page.get_all_items
429
460
  end
430
461
 
431
462
  #
432
463
  # Retrieve a list of schedules.
433
464
  #
434
- # @param automation_account_name [String] The automation account name.
465
+ # @param resource_group_name [String] Name of an Azure Resource group.
466
+ # @param automation_account_name [String] The name of the automation account.
435
467
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
436
468
  # will be added to the HTTP request.
437
469
  #
438
470
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
439
471
  #
440
- def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
441
- list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
472
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
473
+ list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
442
474
  end
443
475
 
444
476
  #
445
477
  # Retrieve a list of schedules.
446
478
  #
447
- # @param automation_account_name [String] The automation account name.
479
+ # @param resource_group_name [String] Name of an Azure Resource group.
480
+ # @param automation_account_name [String] The name of the automation account.
448
481
  # @param [Hash{String => String}] A hash of custom headers that will be added
449
482
  # to the HTTP request.
450
483
  #
451
484
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
452
485
  #
453
- def list_by_automation_account_async(automation_account_name, custom_headers:nil)
454
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
455
- 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?
486
+ def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
487
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
488
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
489
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
490
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
456
491
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
457
492
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
458
493
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -470,7 +505,7 @@ module Azure::Automation::Mgmt::V2015_10_31
470
505
 
471
506
  options = {
472
507
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
473
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
508
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
474
509
  query_params: {'api-version' => @client.api_version},
475
510
  headers: request_headers.merge(custom_headers || {}),
476
511
  base_url: request_url
@@ -595,15 +630,16 @@ module Azure::Automation::Mgmt::V2015_10_31
595
630
  #
596
631
  # Retrieve a list of schedules.
597
632
  #
598
- # @param automation_account_name [String] The automation account name.
633
+ # @param resource_group_name [String] Name of an Azure Resource group.
634
+ # @param automation_account_name [String] The name of the automation account.
599
635
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
600
636
  # will be added to the HTTP request.
601
637
  #
602
638
  # @return [ScheduleListResult] which provide lazy access to pages of the
603
639
  # response.
604
640
  #
605
- def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
606
- response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
641
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
642
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
607
643
  unless response.nil?
608
644
  page = response.body
609
645
  page.next_method = Proc.new do |next_page_link|
@@ -24,8 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Retrieve the statistics for the account.
26
26
  #
27
- # @param resource_group_name [String] The resource group name.
28
- # @param automation_account_name [String] The automation account name.
27
+ # @param resource_group_name [String] Name of an Azure Resource group.
28
+ # @param automation_account_name [String] The name of the automation account.
29
29
  # @param filter [String] The filter to apply on the operation.
30
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
31
  # will be added to the HTTP request.
@@ -40,8 +40,8 @@ module Azure::Automation::Mgmt::V2015_10_31
40
40
  #
41
41
  # Retrieve the statistics for the account.
42
42
  #
43
- # @param resource_group_name [String] The resource group name.
44
- # @param automation_account_name [String] The automation account name.
43
+ # @param resource_group_name [String] Name of an Azure Resource group.
44
+ # @param automation_account_name [String] The name of the automation account.
45
45
  # @param filter [String] The filter to apply on the operation.
46
46
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
47
  # will be added to the HTTP request.
@@ -55,8 +55,8 @@ module Azure::Automation::Mgmt::V2015_10_31
55
55
  #
56
56
  # Retrieve the statistics for the account.
57
57
  #
58
- # @param resource_group_name [String] The resource group name.
59
- # @param automation_account_name [String] The automation account name.
58
+ # @param resource_group_name [String] Name of an Azure Resource group.
59
+ # @param automation_account_name [String] The name of the automation account.
60
60
  # @param filter [String] The filter to apply on the operation.
61
61
  # @param [Hash{String => String}] A hash of custom headers that will be added
62
62
  # to the HTTP request.
@@ -65,6 +65,8 @@ module Azure::Automation::Mgmt::V2015_10_31
65
65
  #
66
66
  def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
67
67
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
68
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
69
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
68
70
  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
71
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
70
72
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -7,11 +7,11 @@ module Azure::Automation::Mgmt::V2015_10_31
7
7
  #
8
8
  # Automation Client
9
9
  #
10
- class TestJobs
10
+ class TestJobOperations
11
11
  include MsRestAzure
12
12
 
13
13
  #
14
- # Creates and initializes a new instance of the TestJobs class.
14
+ # Creates and initializes a new instance of the TestJobOperations class.
15
15
  # @param client service class for accessing basic functionality.
16
16
  #
17
17
  def initialize(client)
@@ -24,7 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Create a test job of the runbook.
26
26
  #
27
- # @param automation_account_name [String] The automation account name.
27
+ # @param resource_group_name [String] Name of an Azure Resource group.
28
+ # @param automation_account_name [String] The name of the automation account.
28
29
  # @param runbook_name [String] The parameters supplied to the create test job
29
30
  # operation.
30
31
  # @param parameters [TestJobCreateParameters] The parameters supplied to the
@@ -34,15 +35,16 @@ module Azure::Automation::Mgmt::V2015_10_31
34
35
  #
35
36
  # @return [TestJob] operation results.
36
37
  #
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!
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:custom_headers).value!
39
40
  response.body unless response.nil?
40
41
  end
41
42
 
42
43
  #
43
44
  # Create a test job of the runbook.
44
45
  #
45
- # @param automation_account_name [String] The automation account name.
46
+ # @param resource_group_name [String] Name of an Azure Resource group.
47
+ # @param automation_account_name [String] The name of the automation account.
46
48
  # @param runbook_name [String] The parameters supplied to the create test job
47
49
  # operation.
48
50
  # @param parameters [TestJobCreateParameters] The parameters supplied to the
@@ -52,14 +54,15 @@ module Azure::Automation::Mgmt::V2015_10_31
52
54
  #
53
55
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
56
  #
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!
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:custom_headers).value!
57
59
  end
58
60
 
59
61
  #
60
62
  # Create a test job of the runbook.
61
63
  #
62
- # @param automation_account_name [String] The automation account name.
64
+ # @param resource_group_name [String] Name of an Azure Resource group.
65
+ # @param automation_account_name [String] The name of the automation account.
63
66
  # @param runbook_name [String] The parameters supplied to the create test job
64
67
  # operation.
65
68
  # @param parameters [TestJobCreateParameters] The parameters supplied to the
@@ -69,13 +72,15 @@ module Azure::Automation::Mgmt::V2015_10_31
69
72
  #
70
73
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
74
  #
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?
75
+ def create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
76
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
77
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
78
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
79
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
80
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
75
81
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
76
82
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
77
83
  fail ArgumentError, 'parameters is nil' if parameters.nil?
78
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
79
84
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
80
85
 
81
86
 
@@ -97,7 +102,7 @@ module Azure::Automation::Mgmt::V2015_10_31
97
102
 
98
103
  options = {
99
104
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
100
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
105
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
101
106
  query_params: {'api-version' => @client.api_version},
102
107
  body: request_content,
103
108
  headers: request_headers.merge(custom_headers || {}),
@@ -135,48 +140,53 @@ module Azure::Automation::Mgmt::V2015_10_31
135
140
  #
136
141
  # Retrieve the test job for the specified runbook.
137
142
  #
138
- # @param automation_account_name [String] The automation account name.
143
+ # @param resource_group_name [String] Name of an Azure Resource group.
144
+ # @param automation_account_name [String] The name of the automation account.
139
145
  # @param runbook_name [String] The runbook name.
140
146
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
141
147
  # will be added to the HTTP request.
142
148
  #
143
149
  # @return [TestJob] operation results.
144
150
  #
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!
151
+ def get(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
152
+ response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
147
153
  response.body unless response.nil?
148
154
  end
149
155
 
150
156
  #
151
157
  # Retrieve the test job for the specified runbook.
152
158
  #
153
- # @param automation_account_name [String] The automation account name.
159
+ # @param resource_group_name [String] Name of an Azure Resource group.
160
+ # @param automation_account_name [String] The name of the automation account.
154
161
  # @param runbook_name [String] The runbook name.
155
162
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
156
163
  # will be added to the HTTP request.
157
164
  #
158
165
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
159
166
  #
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!
167
+ def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
168
+ get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
162
169
  end
163
170
 
164
171
  #
165
172
  # Retrieve the test job for the specified runbook.
166
173
  #
167
- # @param automation_account_name [String] The automation account name.
174
+ # @param resource_group_name [String] Name of an Azure Resource group.
175
+ # @param automation_account_name [String] The name of the automation account.
168
176
  # @param runbook_name [String] The runbook name.
169
177
  # @param [Hash{String => String}] A hash of custom headers that will be added
170
178
  # to the HTTP request.
171
179
  #
172
180
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
173
181
  #
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?
182
+ def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
183
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
184
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
185
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
186
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
187
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
177
188
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
178
189
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
179
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
180
190
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
181
191
 
182
192
 
@@ -192,7 +202,7 @@ module Azure::Automation::Mgmt::V2015_10_31
192
202
 
193
203
  options = {
194
204
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
195
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
205
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
196
206
  query_params: {'api-version' => @client.api_version},
197
207
  headers: request_headers.merge(custom_headers || {}),
198
208
  base_url: request_url
@@ -229,47 +239,52 @@ module Azure::Automation::Mgmt::V2015_10_31
229
239
  #
230
240
  # Resume the test job.
231
241
  #
232
- # @param automation_account_name [String] The automation account name.
242
+ # @param resource_group_name [String] Name of an Azure Resource group.
243
+ # @param automation_account_name [String] The name of the automation account.
233
244
  # @param runbook_name [String] The runbook name.
234
245
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
235
246
  # will be added to the HTTP request.
236
247
  #
237
248
  #
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!
249
+ def resume(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
250
+ response = resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
240
251
  nil
241
252
  end
242
253
 
243
254
  #
244
255
  # Resume the test job.
245
256
  #
246
- # @param automation_account_name [String] The automation account name.
257
+ # @param resource_group_name [String] Name of an Azure Resource group.
258
+ # @param automation_account_name [String] The name of the automation account.
247
259
  # @param runbook_name [String] The runbook name.
248
260
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
249
261
  # will be added to the HTTP request.
250
262
  #
251
263
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
252
264
  #
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!
265
+ def resume_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
266
+ resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
255
267
  end
256
268
 
257
269
  #
258
270
  # Resume the test job.
259
271
  #
260
- # @param automation_account_name [String] The automation account name.
272
+ # @param resource_group_name [String] Name of an Azure Resource group.
273
+ # @param automation_account_name [String] The name of the automation account.
261
274
  # @param runbook_name [String] The runbook name.
262
275
  # @param [Hash{String => String}] A hash of custom headers that will be added
263
276
  # to the HTTP request.
264
277
  #
265
278
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
266
279
  #
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?
280
+ def resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
281
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
282
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
283
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
284
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
285
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
270
286
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
271
287
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
272
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
273
288
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
274
289
 
275
290
 
@@ -285,7 +300,7 @@ module Azure::Automation::Mgmt::V2015_10_31
285
300
 
286
301
  options = {
287
302
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
288
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
303
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
289
304
  query_params: {'api-version' => @client.api_version},
290
305
  headers: request_headers.merge(custom_headers || {}),
291
306
  base_url: request_url
@@ -312,47 +327,52 @@ module Azure::Automation::Mgmt::V2015_10_31
312
327
  #
313
328
  # Stop the test job.
314
329
  #
315
- # @param automation_account_name [String] The automation account name.
330
+ # @param resource_group_name [String] Name of an Azure Resource group.
331
+ # @param automation_account_name [String] The name of the automation account.
316
332
  # @param runbook_name [String] The runbook name.
317
333
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
318
334
  # will be added to the HTTP request.
319
335
  #
320
336
  #
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!
337
+ def stop(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
338
+ response = stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
323
339
  nil
324
340
  end
325
341
 
326
342
  #
327
343
  # Stop the test job.
328
344
  #
329
- # @param automation_account_name [String] The automation account name.
345
+ # @param resource_group_name [String] Name of an Azure Resource group.
346
+ # @param automation_account_name [String] The name of the automation account.
330
347
  # @param runbook_name [String] The runbook name.
331
348
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
332
349
  # will be added to the HTTP request.
333
350
  #
334
351
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
335
352
  #
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!
353
+ def stop_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
354
+ stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
338
355
  end
339
356
 
340
357
  #
341
358
  # Stop the test job.
342
359
  #
343
- # @param automation_account_name [String] The automation account name.
360
+ # @param resource_group_name [String] Name of an Azure Resource group.
361
+ # @param automation_account_name [String] The name of the automation account.
344
362
  # @param runbook_name [String] The runbook name.
345
363
  # @param [Hash{String => String}] A hash of custom headers that will be added
346
364
  # to the HTTP request.
347
365
  #
348
366
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
349
367
  #
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?
368
+ def stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
369
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
370
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
371
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
372
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
373
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
353
374
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
354
375
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
355
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
356
376
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
357
377
 
358
378
 
@@ -368,7 +388,7 @@ module Azure::Automation::Mgmt::V2015_10_31
368
388
 
369
389
  options = {
370
390
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
371
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
391
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
372
392
  query_params: {'api-version' => @client.api_version},
373
393
  headers: request_headers.merge(custom_headers || {}),
374
394
  base_url: request_url
@@ -395,47 +415,52 @@ module Azure::Automation::Mgmt::V2015_10_31
395
415
  #
396
416
  # Suspend the test job.
397
417
  #
398
- # @param automation_account_name [String] The automation account name.
418
+ # @param resource_group_name [String] Name of an Azure Resource group.
419
+ # @param automation_account_name [String] The name of the automation account.
399
420
  # @param runbook_name [String] The runbook name.
400
421
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
401
422
  # will be added to the HTTP request.
402
423
  #
403
424
  #
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!
425
+ def suspend(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
426
+ response = suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
406
427
  nil
407
428
  end
408
429
 
409
430
  #
410
431
  # Suspend the test job.
411
432
  #
412
- # @param automation_account_name [String] The automation account name.
433
+ # @param resource_group_name [String] Name of an Azure Resource group.
434
+ # @param automation_account_name [String] The name of the automation account.
413
435
  # @param runbook_name [String] The runbook name.
414
436
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
415
437
  # will be added to the HTTP request.
416
438
  #
417
439
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
418
440
  #
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!
441
+ def suspend_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
442
+ suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
421
443
  end
422
444
 
423
445
  #
424
446
  # Suspend the test job.
425
447
  #
426
- # @param automation_account_name [String] The automation account name.
448
+ # @param resource_group_name [String] Name of an Azure Resource group.
449
+ # @param automation_account_name [String] The name of the automation account.
427
450
  # @param runbook_name [String] The runbook name.
428
451
  # @param [Hash{String => String}] A hash of custom headers that will be added
429
452
  # to the HTTP request.
430
453
  #
431
454
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
432
455
  #
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?
456
+ def suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
457
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
458
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
459
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
460
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
461
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
436
462
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
437
463
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
438
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
439
464
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
440
465
 
441
466
 
@@ -451,7 +476,7 @@ module Azure::Automation::Mgmt::V2015_10_31
451
476
 
452
477
  options = {
453
478
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
454
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
479
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
455
480
  query_params: {'api-version' => @client.api_version},
456
481
  headers: request_headers.merge(custom_headers || {}),
457
482
  base_url: request_url