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
@@ -46,7 +46,7 @@ module Azure::Automation::Mgmt::V2015_10_31
46
46
  model_properties: {
47
47
  name: {
48
48
  client_side_validation: true,
49
- required: true,
49
+ required: false,
50
50
  serialized_name: 'name',
51
51
  type: {
52
52
  name: 'String'
@@ -24,44 +24,49 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete the module by name.
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 module_name [String] The module name.
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, module_name, custom_headers:nil)
34
- response = delete_async(automation_account_name, module_name, custom_headers:custom_headers).value!
34
+ def delete(resource_group_name, automation_account_name, module_name, custom_headers:nil)
35
+ response = delete_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value!
35
36
  nil
36
37
  end
37
38
 
38
39
  #
39
40
  # Delete the module by name.
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 module_name [String] The module name.
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, module_name, custom_headers:nil)
49
- delete_async(automation_account_name, module_name, custom_headers:custom_headers).value!
50
+ def delete_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers:nil)
51
+ delete_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value!
50
52
  end
51
53
 
52
54
  #
53
55
  # Delete the module by name.
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 module_name [String] The module name.
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, module_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, module_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, 'module_name is nil' if module_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,'moduleName' => module_name,'subscriptionId' => @client.subscription_id},
88
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_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 module identified by module 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 module_name [String] The module name.
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 [ModuleModel] operation results.
116
122
  #
117
- def get(automation_account_name, module_name, custom_headers:nil)
118
- response = get_async(automation_account_name, module_name, custom_headers:custom_headers).value!
123
+ def get(resource_group_name, automation_account_name, module_name, custom_headers:nil)
124
+ response = get_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value!
119
125
  response.body unless response.nil?
120
126
  end
121
127
 
122
128
  #
123
129
  # Retrieve the module identified by module 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 module_name [String] The module name.
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, module_name, custom_headers:nil)
133
- get_async(automation_account_name, module_name, custom_headers:custom_headers).value!
139
+ def get_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers:nil)
140
+ get_async(resource_group_name, automation_account_name, module_name, custom_headers:custom_headers).value!
134
141
  end
135
142
 
136
143
  #
137
144
  # Retrieve the module identified by module 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 module_name [String] The module name.
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, module_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, module_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, 'module_name is nil' if module_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,'moduleName' => module_name,'subscriptionId' => @client.subscription_id},
177
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_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 or Update the module identified by module name.
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 module_name [String] The name of module.
206
217
  # @param parameters [ModuleCreateOrUpdateParameters] The create or update
207
218
  # parameters for module.
@@ -210,15 +221,16 @@ module Azure::Automation::Mgmt::V2015_10_31
210
221
  #
211
222
  # @return [ModuleModel] operation results.
212
223
  #
213
- def create_or_update(automation_account_name, module_name, parameters, custom_headers:nil)
214
- response = create_or_update_async(automation_account_name, module_name, parameters, custom_headers:custom_headers).value!
224
+ def create_or_update(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil)
225
+ response = create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:custom_headers).value!
215
226
  response.body unless response.nil?
216
227
  end
217
228
 
218
229
  #
219
230
  # Create or Update the module identified by module name.
220
231
  #
221
- # @param automation_account_name [String] The automation account name.
232
+ # @param resource_group_name [String] Name of an Azure Resource group.
233
+ # @param automation_account_name [String] The name of the automation account.
222
234
  # @param module_name [String] The name of module.
223
235
  # @param parameters [ModuleCreateOrUpdateParameters] The create or update
224
236
  # parameters for module.
@@ -227,14 +239,15 @@ module Azure::Automation::Mgmt::V2015_10_31
227
239
  #
228
240
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
229
241
  #
230
- def create_or_update_with_http_info(automation_account_name, module_name, parameters, custom_headers:nil)
231
- create_or_update_async(automation_account_name, module_name, parameters, custom_headers:custom_headers).value!
242
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil)
243
+ create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:custom_headers).value!
232
244
  end
233
245
 
234
246
  #
235
247
  # Create or Update the module identified by module name.
236
248
  #
237
- # @param automation_account_name [String] The automation account name.
249
+ # @param resource_group_name [String] Name of an Azure Resource group.
250
+ # @param automation_account_name [String] The name of the automation account.
238
251
  # @param module_name [String] The name of module.
239
252
  # @param parameters [ModuleCreateOrUpdateParameters] The create or update
240
253
  # parameters for module.
@@ -243,9 +256,11 @@ module Azure::Automation::Mgmt::V2015_10_31
243
256
  #
244
257
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
245
258
  #
246
- def create_or_update_async(automation_account_name, module_name, parameters, custom_headers:nil)
247
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
248
- 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?
259
+ def create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil)
260
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
261
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
262
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
263
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
249
264
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
250
265
  fail ArgumentError, 'module_name is nil' if module_name.nil?
251
266
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -271,7 +286,7 @@ module Azure::Automation::Mgmt::V2015_10_31
271
286
 
272
287
  options = {
273
288
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
274
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id},
289
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id},
275
290
  query_params: {'api-version' => @client.api_version},
276
291
  body: request_content,
277
292
  headers: request_headers.merge(custom_headers || {}),
@@ -319,7 +334,8 @@ module Azure::Automation::Mgmt::V2015_10_31
319
334
  #
320
335
  # Update the module identified by module name.
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 module_name [String] The name of module.
324
340
  # @param parameters [ModuleUpdateParameters] The update parameters for module.
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 [ModuleModel] operation results.
329
345
  #
330
- def update(automation_account_name, module_name, parameters, custom_headers:nil)
331
- response = update_async(automation_account_name, module_name, parameters, custom_headers:custom_headers).value!
346
+ def update(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil)
347
+ response = update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:custom_headers).value!
332
348
  response.body unless response.nil?
333
349
  end
334
350
 
335
351
  #
336
352
  # Update the module identified by module name.
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 module_name [String] The name of module.
340
357
  # @param parameters [ModuleUpdateParameters] The update parameters for module.
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 update_with_http_info(automation_account_name, module_name, parameters, custom_headers:nil)
347
- update_async(automation_account_name, module_name, parameters, custom_headers:custom_headers).value!
363
+ def update_with_http_info(resource_group_name, automation_account_name, module_name, parameters, custom_headers:nil)
364
+ update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers:custom_headers).value!
348
365
  end
349
366
 
350
367
  #
351
368
  # Update the module identified by module name.
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 module_name [String] The name of module.
355
373
  # @param parameters [ModuleUpdateParameters] The update parameters for module.
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 update_async(automation_account_name, module_name, parameters, 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 update_async(resource_group_name, automation_account_name, module_name, parameters, 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, 'module_name is nil' if module_name.nil?
366
386
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -386,7 +406,7 @@ module Azure::Automation::Mgmt::V2015_10_31
386
406
 
387
407
  options = {
388
408
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
389
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id},
409
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id},
390
410
  query_params: {'api-version' => @client.api_version},
391
411
  body: request_content,
392
412
  headers: request_headers.merge(custom_headers || {}),
@@ -424,42 +444,47 @@ module Azure::Automation::Mgmt::V2015_10_31
424
444
  #
425
445
  # Retrieve a list of modules.
426
446
  #
427
- # @param automation_account_name [String] The automation account name.
447
+ # @param resource_group_name [String] Name of an Azure Resource group.
448
+ # @param automation_account_name [String] The name of the automation account.
428
449
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
429
450
  # will be added to the HTTP request.
430
451
  #
431
452
  # @return [Array<ModuleModel>] operation results.
432
453
  #
433
- def list_by_automation_account(automation_account_name, custom_headers:nil)
434
- first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
454
+ def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
455
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
435
456
  first_page.get_all_items
436
457
  end
437
458
 
438
459
  #
439
460
  # Retrieve a list of modules.
440
461
  #
441
- # @param automation_account_name [String] The automation account name.
462
+ # @param resource_group_name [String] Name of an Azure Resource group.
463
+ # @param automation_account_name [String] The name of the automation account.
442
464
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
443
465
  # will be added to the HTTP request.
444
466
  #
445
467
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
446
468
  #
447
- def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
448
- list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
469
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
470
+ list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
449
471
  end
450
472
 
451
473
  #
452
474
  # Retrieve a list of modules.
453
475
  #
454
- # @param automation_account_name [String] The automation account name.
476
+ # @param resource_group_name [String] Name of an Azure Resource group.
477
+ # @param automation_account_name [String] The name of the automation account.
455
478
  # @param [Hash{String => String}] A hash of custom headers that will be added
456
479
  # to the HTTP request.
457
480
  #
458
481
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
459
482
  #
460
- def list_by_automation_account_async(automation_account_name, custom_headers:nil)
461
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
462
- 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?
483
+ def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
484
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
485
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
486
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
487
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
463
488
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
464
489
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
465
490
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -477,7 +502,7 @@ module Azure::Automation::Mgmt::V2015_10_31
477
502
 
478
503
  options = {
479
504
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
480
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
505
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
481
506
  query_params: {'api-version' => @client.api_version},
482
507
  headers: request_headers.merge(custom_headers || {}),
483
508
  base_url: request_url
@@ -602,15 +627,16 @@ module Azure::Automation::Mgmt::V2015_10_31
602
627
  #
603
628
  # Retrieve a list of modules.
604
629
  #
605
- # @param automation_account_name [String] The automation account name.
630
+ # @param resource_group_name [String] Name of an Azure Resource group.
631
+ # @param automation_account_name [String] The name of the automation account.
606
632
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
607
633
  # will be added to the HTTP request.
608
634
  #
609
635
  # @return [ModuleListResult] which provide lazy access to pages of the
610
636
  # response.
611
637
  #
612
- def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
613
- response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
638
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
639
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
614
640
  unless response.nil?
615
641
  page = response.body
616
642
  page.next_method = Proc.new do |next_page_link|
@@ -24,7 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Retrieve the Dsc node report list by node id.
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 node_id [String] The parameters supplied to the list operation.
29
30
  # @param filter [String] The filter to apply on the operation.
30
31
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -32,15 +33,16 @@ module Azure::Automation::Mgmt::V2015_10_31
32
33
  #
33
34
  # @return [Array<DscNodeReport>] operation results.
34
35
  #
35
- def list_by_node(automation_account_name, node_id, filter:nil, custom_headers:nil)
36
- first_page = list_by_node_as_lazy(automation_account_name, node_id, filter:filter, custom_headers:custom_headers)
36
+ def list_by_node(resource_group_name, automation_account_name, node_id, filter:nil, custom_headers:nil)
37
+ first_page = list_by_node_as_lazy(resource_group_name, automation_account_name, node_id, filter:filter, custom_headers:custom_headers)
37
38
  first_page.get_all_items
38
39
  end
39
40
 
40
41
  #
41
42
  # Retrieve the Dsc node report list by node id.
42
43
  #
43
- # @param automation_account_name [String] The automation account name.
44
+ # @param resource_group_name [String] Name of an Azure Resource group.
45
+ # @param automation_account_name [String] The name of the automation account.
44
46
  # @param node_id [String] The parameters supplied to the list operation.
45
47
  # @param filter [String] The filter to apply on the operation.
46
48
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -48,14 +50,15 @@ module Azure::Automation::Mgmt::V2015_10_31
48
50
  #
49
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
52
  #
51
- def list_by_node_with_http_info(automation_account_name, node_id, filter:nil, custom_headers:nil)
52
- list_by_node_async(automation_account_name, node_id, filter:filter, custom_headers:custom_headers).value!
53
+ def list_by_node_with_http_info(resource_group_name, automation_account_name, node_id, filter:nil, custom_headers:nil)
54
+ list_by_node_async(resource_group_name, automation_account_name, node_id, filter:filter, custom_headers:custom_headers).value!
53
55
  end
54
56
 
55
57
  #
56
58
  # Retrieve the Dsc node report list by node id.
57
59
  #
58
- # @param automation_account_name [String] The automation account name.
60
+ # @param resource_group_name [String] Name of an Azure Resource group.
61
+ # @param automation_account_name [String] The name of the automation account.
59
62
  # @param node_id [String] The parameters supplied to the list operation.
60
63
  # @param filter [String] The filter to apply on the operation.
61
64
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -63,9 +66,11 @@ module Azure::Automation::Mgmt::V2015_10_31
63
66
  #
64
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
68
  #
66
- def list_by_node_async(automation_account_name, node_id, filter:nil, custom_headers:nil)
67
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
68
- fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
69
+ def list_by_node_async(resource_group_name, automation_account_name, node_id, filter:nil, custom_headers:nil)
70
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
72
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
73
+ 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
74
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
70
75
  fail ArgumentError, 'node_id is nil' if node_id.nil?
71
76
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -84,7 +89,7 @@ module Azure::Automation::Mgmt::V2015_10_31
84
89
 
85
90
  options = {
86
91
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
87
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id},
92
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id},
88
93
  query_params: {'$filter' => filter,'api-version' => @client.api_version},
89
94
  headers: request_headers.merge(custom_headers || {}),
90
95
  base_url: request_url
@@ -121,7 +126,8 @@ module Azure::Automation::Mgmt::V2015_10_31
121
126
  #
122
127
  # Retrieve the Dsc node report data by node id and report id.
123
128
  #
124
- # @param automation_account_name [String] The automation account name.
129
+ # @param resource_group_name [String] Name of an Azure Resource group.
130
+ # @param automation_account_name [String] The name of the automation account.
125
131
  # @param node_id [String] The Dsc node id.
126
132
  # @param report_id [String] The report id.
127
133
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -129,15 +135,16 @@ module Azure::Automation::Mgmt::V2015_10_31
129
135
  #
130
136
  # @return [DscNodeReport] operation results.
131
137
  #
132
- def get(automation_account_name, node_id, report_id, custom_headers:nil)
133
- response = get_async(automation_account_name, node_id, report_id, custom_headers:custom_headers).value!
138
+ def get(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil)
139
+ response = get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:custom_headers).value!
134
140
  response.body unless response.nil?
135
141
  end
136
142
 
137
143
  #
138
144
  # Retrieve the Dsc node report data by node id and report id.
139
145
  #
140
- # @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.
141
148
  # @param node_id [String] The Dsc node id.
142
149
  # @param report_id [String] The report id.
143
150
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -145,14 +152,15 @@ module Azure::Automation::Mgmt::V2015_10_31
145
152
  #
146
153
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
147
154
  #
148
- def get_with_http_info(automation_account_name, node_id, report_id, custom_headers:nil)
149
- get_async(automation_account_name, node_id, report_id, custom_headers:custom_headers).value!
155
+ def get_with_http_info(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil)
156
+ get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:custom_headers).value!
150
157
  end
151
158
 
152
159
  #
153
160
  # Retrieve the Dsc node report data by node id and report id.
154
161
  #
155
- # @param automation_account_name [String] The automation account name.
162
+ # @param resource_group_name [String] Name of an Azure Resource group.
163
+ # @param automation_account_name [String] The name of the automation account.
156
164
  # @param node_id [String] The Dsc node id.
157
165
  # @param report_id [String] The report id.
158
166
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -160,9 +168,11 @@ module Azure::Automation::Mgmt::V2015_10_31
160
168
  #
161
169
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
162
170
  #
163
- def get_async(automation_account_name, node_id, report_id, custom_headers:nil)
164
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
165
- 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?
171
+ def get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil)
172
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
173
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
174
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
175
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
166
176
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
167
177
  fail ArgumentError, 'node_id is nil' if node_id.nil?
168
178
  fail ArgumentError, 'report_id is nil' if report_id.nil?
@@ -182,7 +192,7 @@ module Azure::Automation::Mgmt::V2015_10_31
182
192
 
183
193
  options = {
184
194
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
185
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'reportId' => report_id,'subscriptionId' => @client.subscription_id},
195
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'reportId' => report_id,'subscriptionId' => @client.subscription_id},
186
196
  query_params: {'api-version' => @client.api_version},
187
197
  headers: request_headers.merge(custom_headers || {}),
188
198
  base_url: request_url
@@ -219,23 +229,25 @@ module Azure::Automation::Mgmt::V2015_10_31
219
229
  #
220
230
  # Retrieve the Dsc node reports by node id and report id.
221
231
  #
222
- # @param automation_account_name [String] The automation account name.
232
+ # @param resource_group_name [String] Name of an Azure Resource group.
233
+ # @param automation_account_name [String] The name of the automation account.
223
234
  # @param node_id [String] The Dsc node id.
224
235
  # @param report_id [String] The report id.
225
236
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
226
237
  # will be added to the HTTP request.
227
238
  #
228
- # @return [NOT_IMPLEMENTED] operation results.
239
+ # @return [Object] operation results.
229
240
  #
230
- def get_content(automation_account_name, node_id, report_id, custom_headers:nil)
231
- response = get_content_async(automation_account_name, node_id, report_id, custom_headers:custom_headers).value!
241
+ def get_content(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil)
242
+ response = get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:custom_headers).value!
232
243
  response.body unless response.nil?
233
244
  end
234
245
 
235
246
  #
236
247
  # Retrieve the Dsc node reports by node id and report id.
237
248
  #
238
- # @param automation_account_name [String] The automation account name.
249
+ # @param resource_group_name [String] Name of an Azure Resource group.
250
+ # @param automation_account_name [String] The name of the automation account.
239
251
  # @param node_id [String] The Dsc node id.
240
252
  # @param report_id [String] The report id.
241
253
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -243,14 +255,15 @@ module Azure::Automation::Mgmt::V2015_10_31
243
255
  #
244
256
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
245
257
  #
246
- def get_content_with_http_info(automation_account_name, node_id, report_id, custom_headers:nil)
247
- get_content_async(automation_account_name, node_id, report_id, custom_headers:custom_headers).value!
258
+ def get_content_with_http_info(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil)
259
+ get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:custom_headers).value!
248
260
  end
249
261
 
250
262
  #
251
263
  # Retrieve the Dsc node reports by node id and report id.
252
264
  #
253
- # @param automation_account_name [String] The automation account name.
265
+ # @param resource_group_name [String] Name of an Azure Resource group.
266
+ # @param automation_account_name [String] The name of the automation account.
254
267
  # @param node_id [String] The Dsc node id.
255
268
  # @param report_id [String] The report id.
256
269
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -258,9 +271,11 @@ module Azure::Automation::Mgmt::V2015_10_31
258
271
  #
259
272
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
260
273
  #
261
- def get_content_async(automation_account_name, node_id, report_id, custom_headers:nil)
262
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
263
- 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?
274
+ def get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers:nil)
275
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
276
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
277
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
278
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
264
279
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
265
280
  fail ArgumentError, 'node_id is nil' if node_id.nil?
266
281
  fail ArgumentError, 'report_id is nil' if report_id.nil?
@@ -280,7 +295,7 @@ module Azure::Automation::Mgmt::V2015_10_31
280
295
 
281
296
  options = {
282
297
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
283
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'reportId' => report_id,'subscriptionId' => @client.subscription_id},
298
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'reportId' => report_id,'subscriptionId' => @client.subscription_id},
284
299
  query_params: {'api-version' => @client.api_version},
285
300
  headers: request_headers.merge(custom_headers || {}),
286
301
  base_url: request_url
@@ -297,23 +312,6 @@ module Azure::Automation::Mgmt::V2015_10_31
297
312
  end
298
313
 
299
314
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
300
- # Deserialize Response
301
- if status_code == 200
302
- begin
303
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
304
- result_mapper = {
305
- client_side_validation: true,
306
- required: false,
307
- serialized_name: 'parsed_response',
308
- type: {
309
- name: 'Stream'
310
- }
311
- }
312
- result.body = @client.deserialize(result_mapper, parsed_response)
313
- rescue Exception => e
314
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
315
- end
316
- end
317
315
 
318
316
  result
319
317
  end
@@ -412,7 +410,8 @@ module Azure::Automation::Mgmt::V2015_10_31
412
410
  #
413
411
  # Retrieve the Dsc node report list by node id.
414
412
  #
415
- # @param automation_account_name [String] The automation account name.
413
+ # @param resource_group_name [String] Name of an Azure Resource group.
414
+ # @param automation_account_name [String] The name of the automation account.
416
415
  # @param node_id [String] The parameters supplied to the list operation.
417
416
  # @param filter [String] The filter to apply on the operation.
418
417
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -421,8 +420,8 @@ module Azure::Automation::Mgmt::V2015_10_31
421
420
  # @return [DscNodeReportListResult] which provide lazy access to pages of the
422
421
  # response.
423
422
  #
424
- def list_by_node_as_lazy(automation_account_name, node_id, filter:nil, custom_headers:nil)
425
- response = list_by_node_async(automation_account_name, node_id, filter:filter, custom_headers:custom_headers).value!
423
+ def list_by_node_as_lazy(resource_group_name, automation_account_name, node_id, filter:nil, custom_headers:nil)
424
+ response = list_by_node_async(resource_group_name, automation_account_name, node_id, filter:filter, custom_headers:custom_headers).value!
426
425
  unless response.nil?
427
426
  page = response.body
428
427
  page.next_method = Proc.new do |next_page_link|