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,44 +24,49 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete the credential.
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 credential_name [String] The name of credential.
29
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
31
  # will be added to the HTTP request.
31
32
  #
32
33
  #
33
- def delete(automation_account_name, credential_name, custom_headers:nil)
34
- response = delete_async(automation_account_name, credential_name, custom_headers:custom_headers).value!
34
+ def delete(resource_group_name, automation_account_name, credential_name, custom_headers:nil)
35
+ response = delete_async(resource_group_name, automation_account_name, credential_name, custom_headers:custom_headers).value!
35
36
  nil
36
37
  end
37
38
 
38
39
  #
39
40
  # Delete the credential.
40
41
  #
41
- # @param automation_account_name [String] The automation account name.
42
+ # @param resource_group_name [String] Name of an Azure Resource group.
43
+ # @param automation_account_name [String] The name of the automation account.
42
44
  # @param credential_name [String] The name of credential.
43
45
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
44
46
  # will be added to the HTTP request.
45
47
  #
46
48
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
47
49
  #
48
- def delete_with_http_info(automation_account_name, credential_name, custom_headers:nil)
49
- delete_async(automation_account_name, credential_name, custom_headers:custom_headers).value!
50
+ def delete_with_http_info(resource_group_name, automation_account_name, credential_name, custom_headers:nil)
51
+ delete_async(resource_group_name, automation_account_name, credential_name, custom_headers:custom_headers).value!
50
52
  end
51
53
 
52
54
  #
53
55
  # Delete the credential.
54
56
  #
55
- # @param automation_account_name [String] The automation account name.
57
+ # @param resource_group_name [String] Name of an Azure Resource group.
58
+ # @param automation_account_name [String] The name of the automation account.
56
59
  # @param credential_name [String] The name of credential.
57
60
  # @param [Hash{String => String}] A hash of custom headers that will be added
58
61
  # to the HTTP request.
59
62
  #
60
63
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
61
64
  #
62
- def delete_async(automation_account_name, credential_name, custom_headers:nil)
63
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
64
- 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?
65
+ def delete_async(resource_group_name, automation_account_name, credential_name, custom_headers:nil)
66
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
67
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
68
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
69
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
65
70
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
66
71
  fail ArgumentError, 'credential_name is nil' if credential_name.nil?
67
72
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -80,7 +85,7 @@ module Azure::Automation::Mgmt::V2015_10_31
80
85
 
81
86
  options = {
82
87
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
83
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
88
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
84
89
  query_params: {'api-version' => @client.api_version},
85
90
  headers: request_headers.merge(custom_headers || {}),
86
91
  base_url: request_url
@@ -107,45 +112,50 @@ module Azure::Automation::Mgmt::V2015_10_31
107
112
  #
108
113
  # Retrieve the credential identified by credential name.
109
114
  #
110
- # @param automation_account_name [String] The automation account name.
115
+ # @param resource_group_name [String] Name of an Azure Resource group.
116
+ # @param automation_account_name [String] The name of the automation account.
111
117
  # @param credential_name [String] The name of credential.
112
118
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
113
119
  # will be added to the HTTP request.
114
120
  #
115
121
  # @return [Credential] operation results.
116
122
  #
117
- def get(automation_account_name, credential_name, custom_headers:nil)
118
- response = get_async(automation_account_name, credential_name, custom_headers:custom_headers).value!
123
+ def get(resource_group_name, automation_account_name, credential_name, custom_headers:nil)
124
+ response = get_async(resource_group_name, automation_account_name, credential_name, custom_headers:custom_headers).value!
119
125
  response.body unless response.nil?
120
126
  end
121
127
 
122
128
  #
123
129
  # Retrieve the credential identified by credential name.
124
130
  #
125
- # @param automation_account_name [String] The automation account name.
131
+ # @param resource_group_name [String] Name of an Azure Resource group.
132
+ # @param automation_account_name [String] The name of the automation account.
126
133
  # @param credential_name [String] The name of credential.
127
134
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
128
135
  # will be added to the HTTP request.
129
136
  #
130
137
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
131
138
  #
132
- def get_with_http_info(automation_account_name, credential_name, custom_headers:nil)
133
- get_async(automation_account_name, credential_name, custom_headers:custom_headers).value!
139
+ def get_with_http_info(resource_group_name, automation_account_name, credential_name, custom_headers:nil)
140
+ get_async(resource_group_name, automation_account_name, credential_name, custom_headers:custom_headers).value!
134
141
  end
135
142
 
136
143
  #
137
144
  # Retrieve the credential identified by credential name.
138
145
  #
139
- # @param automation_account_name [String] The automation account name.
146
+ # @param resource_group_name [String] Name of an Azure Resource group.
147
+ # @param automation_account_name [String] The name of the automation account.
140
148
  # @param credential_name [String] The name of credential.
141
149
  # @param [Hash{String => String}] A hash of custom headers that will be added
142
150
  # to the HTTP request.
143
151
  #
144
152
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
145
153
  #
146
- def get_async(automation_account_name, credential_name, custom_headers:nil)
147
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
148
- 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?
154
+ def get_async(resource_group_name, automation_account_name, credential_name, custom_headers:nil)
155
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
156
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
157
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
158
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
149
159
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
150
160
  fail ArgumentError, 'credential_name is nil' if credential_name.nil?
151
161
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -164,7 +174,7 @@ module Azure::Automation::Mgmt::V2015_10_31
164
174
 
165
175
  options = {
166
176
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
167
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
177
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
168
178
  query_params: {'api-version' => @client.api_version},
169
179
  headers: request_headers.merge(custom_headers || {}),
170
180
  base_url: request_url
@@ -201,7 +211,8 @@ module Azure::Automation::Mgmt::V2015_10_31
201
211
  #
202
212
  # Create a credential.
203
213
  #
204
- # @param automation_account_name [String] The automation account name.
214
+ # @param resource_group_name [String] Name of an Azure Resource group.
215
+ # @param automation_account_name [String] The name of the automation account.
205
216
  # @param credential_name [String] The parameters supplied to the create or
206
217
  # update credential operation.
207
218
  # @param parameters [CredentialCreateOrUpdateParameters] The parameters
@@ -211,15 +222,16 @@ module Azure::Automation::Mgmt::V2015_10_31
211
222
  #
212
223
  # @return [Credential] operation results.
213
224
  #
214
- def create_or_update(automation_account_name, credential_name, parameters, custom_headers:nil)
215
- response = create_or_update_async(automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
225
+ def create_or_update(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil)
226
+ response = create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
216
227
  response.body unless response.nil?
217
228
  end
218
229
 
219
230
  #
220
231
  # Create a credential.
221
232
  #
222
- # @param automation_account_name [String] The automation account name.
233
+ # @param resource_group_name [String] Name of an Azure Resource group.
234
+ # @param automation_account_name [String] The name of the automation account.
223
235
  # @param credential_name [String] The parameters supplied to the create or
224
236
  # update credential operation.
225
237
  # @param parameters [CredentialCreateOrUpdateParameters] The parameters
@@ -229,14 +241,15 @@ module Azure::Automation::Mgmt::V2015_10_31
229
241
  #
230
242
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
231
243
  #
232
- def create_or_update_with_http_info(automation_account_name, credential_name, parameters, custom_headers:nil)
233
- create_or_update_async(automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
244
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil)
245
+ create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
234
246
  end
235
247
 
236
248
  #
237
249
  # Create a credential.
238
250
  #
239
- # @param automation_account_name [String] The automation account name.
251
+ # @param resource_group_name [String] Name of an Azure Resource group.
252
+ # @param automation_account_name [String] The name of the automation account.
240
253
  # @param credential_name [String] The parameters supplied to the create or
241
254
  # update credential operation.
242
255
  # @param parameters [CredentialCreateOrUpdateParameters] The parameters
@@ -246,9 +259,11 @@ module Azure::Automation::Mgmt::V2015_10_31
246
259
  #
247
260
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
248
261
  #
249
- def create_or_update_async(automation_account_name, credential_name, parameters, custom_headers:nil)
250
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
251
- 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?
262
+ def create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil)
263
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
264
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
265
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
266
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
252
267
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
253
268
  fail ArgumentError, 'credential_name is nil' if credential_name.nil?
254
269
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -274,7 +289,7 @@ module Azure::Automation::Mgmt::V2015_10_31
274
289
 
275
290
  options = {
276
291
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
277
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
292
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
278
293
  query_params: {'api-version' => @client.api_version},
279
294
  body: request_content,
280
295
  headers: request_headers.merge(custom_headers || {}),
@@ -322,7 +337,8 @@ module Azure::Automation::Mgmt::V2015_10_31
322
337
  #
323
338
  # Update a credential.
324
339
  #
325
- # @param automation_account_name [String] The automation account name.
340
+ # @param resource_group_name [String] Name of an Azure Resource group.
341
+ # @param automation_account_name [String] The name of the automation account.
326
342
  # @param credential_name [String] The parameters supplied to the Update
327
343
  # credential operation.
328
344
  # @param parameters [CredentialUpdateParameters] The parameters supplied to the
@@ -332,15 +348,16 @@ module Azure::Automation::Mgmt::V2015_10_31
332
348
  #
333
349
  # @return [Credential] operation results.
334
350
  #
335
- def update(automation_account_name, credential_name, parameters, custom_headers:nil)
336
- response = update_async(automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
351
+ def update(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil)
352
+ response = update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
337
353
  response.body unless response.nil?
338
354
  end
339
355
 
340
356
  #
341
357
  # Update a credential.
342
358
  #
343
- # @param automation_account_name [String] The automation account name.
359
+ # @param resource_group_name [String] Name of an Azure Resource group.
360
+ # @param automation_account_name [String] The name of the automation account.
344
361
  # @param credential_name [String] The parameters supplied to the Update
345
362
  # credential operation.
346
363
  # @param parameters [CredentialUpdateParameters] The parameters supplied to the
@@ -350,14 +367,15 @@ module Azure::Automation::Mgmt::V2015_10_31
350
367
  #
351
368
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
352
369
  #
353
- def update_with_http_info(automation_account_name, credential_name, parameters, custom_headers:nil)
354
- update_async(automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
370
+ def update_with_http_info(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil)
371
+ update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
355
372
  end
356
373
 
357
374
  #
358
375
  # Update a credential.
359
376
  #
360
- # @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.
361
379
  # @param credential_name [String] The parameters supplied to the Update
362
380
  # credential operation.
363
381
  # @param parameters [CredentialUpdateParameters] The parameters supplied to the
@@ -367,9 +385,11 @@ module Azure::Automation::Mgmt::V2015_10_31
367
385
  #
368
386
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
369
387
  #
370
- def update_async(automation_account_name, credential_name, parameters, custom_headers:nil)
371
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
372
- fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
388
+ def update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers:nil)
389
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
390
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
391
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
392
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
373
393
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
374
394
  fail ArgumentError, 'credential_name is nil' if credential_name.nil?
375
395
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -395,7 +415,7 @@ module Azure::Automation::Mgmt::V2015_10_31
395
415
 
396
416
  options = {
397
417
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
398
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
418
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
399
419
  query_params: {'api-version' => @client.api_version},
400
420
  body: request_content,
401
421
  headers: request_headers.merge(custom_headers || {}),
@@ -433,42 +453,47 @@ module Azure::Automation::Mgmt::V2015_10_31
433
453
  #
434
454
  # Retrieve a list of credentials.
435
455
  #
436
- # @param automation_account_name [String] The automation account name.
456
+ # @param resource_group_name [String] Name of an Azure Resource group.
457
+ # @param automation_account_name [String] The name of the automation account.
437
458
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
438
459
  # will be added to the HTTP request.
439
460
  #
440
461
  # @return [Array<Credential>] operation results.
441
462
  #
442
- def list_by_automation_account(automation_account_name, custom_headers:nil)
443
- first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
463
+ def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
464
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
444
465
  first_page.get_all_items
445
466
  end
446
467
 
447
468
  #
448
469
  # Retrieve a list of credentials.
449
470
  #
450
- # @param automation_account_name [String] The automation account name.
471
+ # @param resource_group_name [String] Name of an Azure Resource group.
472
+ # @param automation_account_name [String] The name of the automation account.
451
473
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
452
474
  # will be added to the HTTP request.
453
475
  #
454
476
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
455
477
  #
456
- def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
457
- list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
478
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
479
+ list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
458
480
  end
459
481
 
460
482
  #
461
483
  # Retrieve a list of credentials.
462
484
  #
463
- # @param automation_account_name [String] The automation account name.
485
+ # @param resource_group_name [String] Name of an Azure Resource group.
486
+ # @param automation_account_name [String] The name of the automation account.
464
487
  # @param [Hash{String => String}] A hash of custom headers that will be added
465
488
  # to the HTTP request.
466
489
  #
467
490
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
468
491
  #
469
- def list_by_automation_account_async(automation_account_name, custom_headers:nil)
470
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
471
- 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?
492
+ def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
493
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
494
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
495
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
496
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
472
497
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
473
498
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
474
499
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -486,7 +511,7 @@ module Azure::Automation::Mgmt::V2015_10_31
486
511
 
487
512
  options = {
488
513
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
489
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
514
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
490
515
  query_params: {'api-version' => @client.api_version},
491
516
  headers: request_headers.merge(custom_headers || {}),
492
517
  base_url: request_url
@@ -611,15 +636,16 @@ module Azure::Automation::Mgmt::V2015_10_31
611
636
  #
612
637
  # Retrieve a list of credentials.
613
638
  #
614
- # @param automation_account_name [String] The automation account name.
639
+ # @param resource_group_name [String] Name of an Azure Resource group.
640
+ # @param automation_account_name [String] The name of the automation account.
615
641
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
616
642
  # will be added to the HTTP request.
617
643
  #
618
644
  # @return [CredentialListResult] which provide lazy access to pages of the
619
645
  # response.
620
646
  #
621
- def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
622
- response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
647
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
648
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
623
649
  unless response.nil?
624
650
  page = response.body
625
651
  page.next_method = Proc.new do |next_page_link|
@@ -24,7 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Creates the Dsc compilation job of the configuration.
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 compilation_job_id The the DSC configuration Id.
29
30
  # @param parameters [DscCompilationJobCreateParameters] The parameters supplied
30
31
  # to the create compilation job operation.
@@ -33,15 +34,16 @@ module Azure::Automation::Mgmt::V2015_10_31
33
34
  #
34
35
  # @return [DscCompilationJob] operation results.
35
36
  #
36
- def create(automation_account_name, compilation_job_id, parameters, custom_headers:nil)
37
- response = create_async(automation_account_name, compilation_job_id, parameters, custom_headers:custom_headers).value!
37
+ def create(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:nil)
38
+ response = create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:custom_headers).value!
38
39
  response.body unless response.nil?
39
40
  end
40
41
 
41
42
  #
42
43
  # Creates the Dsc compilation job of the configuration.
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 compilation_job_id The the DSC configuration Id.
46
48
  # @param parameters [DscCompilationJobCreateParameters] The parameters supplied
47
49
  # to the create compilation job 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_with_http_info(automation_account_name, compilation_job_id, parameters, custom_headers:nil)
54
- create_async(automation_account_name, compilation_job_id, parameters, custom_headers:custom_headers).value!
55
+ def create_with_http_info(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:nil)
56
+ create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers:custom_headers).value!
55
57
  end
56
58
 
57
59
  #
58
60
  # Creates the Dsc compilation job of the configuration.
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 compilation_job_id The the DSC configuration Id.
62
65
  # @param parameters [DscCompilationJobCreateParameters] The parameters supplied
63
66
  # to the create compilation job 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_async(automation_account_name, compilation_job_id, 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_async(resource_group_name, automation_account_name, compilation_job_id, 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, 'compilation_job_id is nil' if compilation_job_id.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,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id},
102
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'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 || {}),
@@ -132,45 +137,50 @@ module Azure::Automation::Mgmt::V2015_10_31
132
137
  #
133
138
  # Retrieve the Dsc configuration compilation job identified by job id.
134
139
  #
135
- # @param automation_account_name [String] The automation account name.
140
+ # @param resource_group_name [String] Name of an Azure Resource group.
141
+ # @param automation_account_name [String] The name of the automation account.
136
142
  # @param compilation_job_id The Dsc configuration compilation job id.
137
143
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
138
144
  # will be added to the HTTP request.
139
145
  #
140
146
  # @return [DscCompilationJob] operation results.
141
147
  #
142
- def get(automation_account_name, compilation_job_id, custom_headers:nil)
143
- response = get_async(automation_account_name, compilation_job_id, custom_headers:custom_headers).value!
148
+ def get(resource_group_name, automation_account_name, compilation_job_id, custom_headers:nil)
149
+ response = get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers:custom_headers).value!
144
150
  response.body unless response.nil?
145
151
  end
146
152
 
147
153
  #
148
154
  # Retrieve the Dsc configuration compilation job identified by job id.
149
155
  #
150
- # @param automation_account_name [String] The automation account name.
156
+ # @param resource_group_name [String] Name of an Azure Resource group.
157
+ # @param automation_account_name [String] The name of the automation account.
151
158
  # @param compilation_job_id The Dsc configuration compilation job id.
152
159
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
153
160
  # will be added to the HTTP request.
154
161
  #
155
162
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
156
163
  #
157
- def get_with_http_info(automation_account_name, compilation_job_id, custom_headers:nil)
158
- get_async(automation_account_name, compilation_job_id, custom_headers:custom_headers).value!
164
+ def get_with_http_info(resource_group_name, automation_account_name, compilation_job_id, custom_headers:nil)
165
+ get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers:custom_headers).value!
159
166
  end
160
167
 
161
168
  #
162
169
  # Retrieve the Dsc configuration compilation job identified by job id.
163
170
  #
164
- # @param automation_account_name [String] The automation account name.
171
+ # @param resource_group_name [String] Name of an Azure Resource group.
172
+ # @param automation_account_name [String] The name of the automation account.
165
173
  # @param compilation_job_id The Dsc configuration compilation job id.
166
174
  # @param [Hash{String => String}] A hash of custom headers that will be added
167
175
  # to the HTTP request.
168
176
  #
169
177
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
170
178
  #
171
- def get_async(automation_account_name, compilation_job_id, custom_headers:nil)
172
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
173
- 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?
179
+ def get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers:nil)
180
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
181
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
182
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
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
184
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
175
185
  fail ArgumentError, 'compilation_job_id is nil' if compilation_job_id.nil?
176
186
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -189,7 +199,7 @@ module Azure::Automation::Mgmt::V2015_10_31
189
199
 
190
200
  options = {
191
201
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
192
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id},
202
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id},
193
203
  query_params: {'api-version' => @client.api_version},
194
204
  headers: request_headers.merge(custom_headers || {}),
195
205
  base_url: request_url
@@ -226,45 +236,50 @@ module Azure::Automation::Mgmt::V2015_10_31
226
236
  #
227
237
  # Retrieve a list of dsc compilation jobs.
228
238
  #
229
- # @param automation_account_name [String] The automation account name.
239
+ # @param resource_group_name [String] Name of an Azure Resource group.
240
+ # @param automation_account_name [String] The name of the automation account.
230
241
  # @param filter [String] The filter to apply on the operation.
231
242
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
232
243
  # will be added to the HTTP request.
233
244
  #
234
245
  # @return [Array<DscCompilationJob>] operation results.
235
246
  #
236
- def list_by_automation_account(automation_account_name, filter:nil, custom_headers:nil)
237
- first_page = list_by_automation_account_as_lazy(automation_account_name, filter:filter, custom_headers:custom_headers)
247
+ def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
248
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers)
238
249
  first_page.get_all_items
239
250
  end
240
251
 
241
252
  #
242
253
  # Retrieve a list of dsc compilation jobs.
243
254
  #
244
- # @param automation_account_name [String] The automation account name.
255
+ # @param resource_group_name [String] Name of an Azure Resource group.
256
+ # @param automation_account_name [String] The name of the automation account.
245
257
  # @param filter [String] The filter to apply on the operation.
246
258
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
247
259
  # will be added to the HTTP request.
248
260
  #
249
261
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
250
262
  #
251
- def list_by_automation_account_with_http_info(automation_account_name, filter:nil, custom_headers:nil)
252
- list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
263
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
264
+ list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
253
265
  end
254
266
 
255
267
  #
256
268
  # Retrieve a list of dsc compilation jobs.
257
269
  #
258
- # @param automation_account_name [String] The automation account name.
270
+ # @param resource_group_name [String] Name of an Azure Resource group.
271
+ # @param automation_account_name [String] The name of the automation account.
259
272
  # @param filter [String] The filter to apply on the operation.
260
273
  # @param [Hash{String => String}] A hash of custom headers that will be added
261
274
  # to the HTTP request.
262
275
  #
263
276
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
264
277
  #
265
- def list_by_automation_account_async(automation_account_name, filter:nil, custom_headers:nil)
266
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
267
- 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?
278
+ def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
279
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
280
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
281
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
282
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
268
283
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
269
284
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
270
285
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -282,7 +297,7 @@ module Azure::Automation::Mgmt::V2015_10_31
282
297
 
283
298
  options = {
284
299
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
285
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
300
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
286
301
  query_params: {'$filter' => filter,'api-version' => @client.api_version},
287
302
  headers: request_headers.merge(custom_headers || {}),
288
303
  base_url: request_url
@@ -319,7 +334,8 @@ module Azure::Automation::Mgmt::V2015_10_31
319
334
  #
320
335
  # Retrieve the job stream identified by job stream id.
321
336
  #
322
- # @param automation_account_name [String] The automation account name.
337
+ # @param resource_group_name [String] Name of an Azure Resource group.
338
+ # @param automation_account_name [String] The name of the automation account.
323
339
  # @param job_id The job id.
324
340
  # @param job_stream_id [String] The job stream id.
325
341
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -327,15 +343,16 @@ module Azure::Automation::Mgmt::V2015_10_31
327
343
  #
328
344
  # @return [JobStream] operation results.
329
345
  #
330
- def get_stream(automation_account_name, job_id, job_stream_id, custom_headers:nil)
331
- response = get_stream_async(automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
346
+ def get_stream(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil)
347
+ response = get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
332
348
  response.body unless response.nil?
333
349
  end
334
350
 
335
351
  #
336
352
  # Retrieve the job stream identified by job stream id.
337
353
  #
338
- # @param automation_account_name [String] The automation account name.
354
+ # @param resource_group_name [String] Name of an Azure Resource group.
355
+ # @param automation_account_name [String] The name of the automation account.
339
356
  # @param job_id The job id.
340
357
  # @param job_stream_id [String] The job stream id.
341
358
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -343,14 +360,15 @@ module Azure::Automation::Mgmt::V2015_10_31
343
360
  #
344
361
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
345
362
  #
346
- def get_stream_with_http_info(automation_account_name, job_id, job_stream_id, custom_headers:nil)
347
- get_stream_async(automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
363
+ def get_stream_with_http_info(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil)
364
+ get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
348
365
  end
349
366
 
350
367
  #
351
368
  # Retrieve the job stream identified by job stream id.
352
369
  #
353
- # @param automation_account_name [String] The automation account name.
370
+ # @param resource_group_name [String] Name of an Azure Resource group.
371
+ # @param automation_account_name [String] The name of the automation account.
354
372
  # @param job_id The job id.
355
373
  # @param job_stream_id [String] The job stream id.
356
374
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -358,9 +376,11 @@ module Azure::Automation::Mgmt::V2015_10_31
358
376
  #
359
377
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
360
378
  #
361
- def get_stream_async(automation_account_name, job_id, job_stream_id, custom_headers:nil)
362
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
363
- 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?
379
+ def get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil)
380
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
381
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
382
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
383
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
364
384
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
365
385
  fail ArgumentError, 'job_id is nil' if job_id.nil?
366
386
  fail ArgumentError, 'job_stream_id is nil' if job_stream_id.nil?
@@ -380,7 +400,7 @@ module Azure::Automation::Mgmt::V2015_10_31
380
400
 
381
401
  options = {
382
402
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
383
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id},
403
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id},
384
404
  query_params: {'api-version' => @client.api_version},
385
405
  headers: request_headers.merge(custom_headers || {}),
386
406
  base_url: request_url
@@ -505,7 +525,8 @@ module Azure::Automation::Mgmt::V2015_10_31
505
525
  #
506
526
  # Retrieve a list of dsc compilation jobs.
507
527
  #
508
- # @param automation_account_name [String] The automation account name.
528
+ # @param resource_group_name [String] Name of an Azure Resource group.
529
+ # @param automation_account_name [String] The name of the automation account.
509
530
  # @param filter [String] The filter to apply on the operation.
510
531
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
511
532
  # will be added to the HTTP request.
@@ -513,8 +534,8 @@ module Azure::Automation::Mgmt::V2015_10_31
513
534
  # @return [DscCompilationJobListResult] which provide lazy access to pages of
514
535
  # the response.
515
536
  #
516
- def list_by_automation_account_as_lazy(automation_account_name, filter:nil, custom_headers:nil)
517
- response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
537
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
538
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
518
539
  unless response.nil?
519
540
  page = response.body
520
541
  page.next_method = Proc.new do |next_page_link|