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.
- checksums.yaml +4 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation.rb +110 -97
- data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +36 -25
- data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +32 -22
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +38 -31
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +22 -12
- data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +68 -47
- data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +68 -47
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_stream.rb +124 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +218 -61
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +69 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +68 -47
- data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +16 -11
- data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +73 -48
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +132 -91
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +73 -48
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +36 -25
- data/lib/2015-10-31/generated/azure_mgmt_automation/keys.rb +120 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/linked_workspace_operations.rb +120 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb +35 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_validation_set.rb +47 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb +2 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +2 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb +9 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_name.rb +16 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb +16 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +44 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +3 -3
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb +20 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_update_parameters.rb +132 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +1 -25
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +20 -15
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +4 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/group_type_enum.rb +16 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +11 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb +37 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb +0 -42
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state.rb +18 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/key.rb +73 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb +56 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/{sub_resource.rb → linked_workspace.rb} +7 -6
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb +20 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/proxy_resource.rb +62 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb +4 -34
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb +9 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb +2 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb +11 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +0 -11
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/tracked_resource.rb +92 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +23 -7
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +53 -54
- data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +32 -22
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +150 -107
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +130 -78
- data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +96 -60
- data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +8 -6
- data/lib/2015-10-31/generated/azure_mgmt_automation/{test_jobs.rb → test_job_operations.rb} +87 -62
- data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +44 -30
- data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +8 -6
- data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +100 -69
- data/lib/profiles/latest/modules/automation_profile_module.rb +364 -318
- data/lib/version.rb +1 -1
- metadata +19 -6
@@ -24,44 +24,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Delete the Dsc node configurations by node configuration.
|
26
26
|
#
|
27
|
-
# @param
|
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_configuration_name [String] The Dsc node configuration 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, node_configuration_name, custom_headers:nil)
|
34
|
-
response = delete_async(automation_account_name, node_configuration_name, custom_headers:custom_headers).value!
|
34
|
+
def delete(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil)
|
35
|
+
response = delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:custom_headers).value!
|
35
36
|
nil
|
36
37
|
end
|
37
38
|
|
38
39
|
#
|
39
40
|
# Delete the Dsc node configurations by node configuration.
|
40
41
|
#
|
41
|
-
# @param
|
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 node_configuration_name [String] The Dsc node configuration 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, node_configuration_name, custom_headers:nil)
|
49
|
-
delete_async(automation_account_name, node_configuration_name, custom_headers:custom_headers).value!
|
50
|
+
def delete_with_http_info(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil)
|
51
|
+
delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:custom_headers).value!
|
50
52
|
end
|
51
53
|
|
52
54
|
#
|
53
55
|
# Delete the Dsc node configurations by node configuration.
|
54
56
|
#
|
55
|
-
# @param
|
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 node_configuration_name [String] The Dsc node configuration 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, node_configuration_name, custom_headers:nil)
|
63
|
-
fail ArgumentError, '
|
64
|
-
fail ArgumentError, "'
|
65
|
+
def delete_async(resource_group_name, automation_account_name, node_configuration_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, 'node_configuration_name is nil' if node_configuration_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' =>
|
88
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_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 Dsc node configurations by node configuration.
|
109
114
|
#
|
110
|
-
# @param
|
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 node_configuration_name [String] The Dsc node configuration 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 [DscNodeConfiguration] operation results.
|
116
122
|
#
|
117
|
-
def get(automation_account_name, node_configuration_name, custom_headers:nil)
|
118
|
-
response = get_async(automation_account_name, node_configuration_name, custom_headers:custom_headers).value!
|
123
|
+
def get(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil)
|
124
|
+
response = get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:custom_headers).value!
|
119
125
|
response.body unless response.nil?
|
120
126
|
end
|
121
127
|
|
122
128
|
#
|
123
129
|
# Retrieve the Dsc node configurations by node configuration.
|
124
130
|
#
|
125
|
-
# @param
|
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 node_configuration_name [String] The Dsc node configuration 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, node_configuration_name, custom_headers:nil)
|
133
|
-
get_async(automation_account_name, node_configuration_name, custom_headers:custom_headers).value!
|
139
|
+
def get_with_http_info(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil)
|
140
|
+
get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:custom_headers).value!
|
134
141
|
end
|
135
142
|
|
136
143
|
#
|
137
144
|
# Retrieve the Dsc node configurations by node configuration.
|
138
145
|
#
|
139
|
-
# @param
|
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 node_configuration_name [String] The Dsc node configuration 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, node_configuration_name, custom_headers:nil)
|
147
|
-
fail ArgumentError, '
|
148
|
-
fail ArgumentError, "'
|
154
|
+
def get_async(resource_group_name, automation_account_name, node_configuration_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, 'node_configuration_name is nil' if node_configuration_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' =>
|
177
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_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 the node configuration identified by node configuration name.
|
203
213
|
#
|
204
|
-
# @param
|
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 node_configuration_name [String] The create or update parameters for
|
206
217
|
# configuration.
|
207
218
|
# @param parameters [DscNodeConfigurationCreateOrUpdateParameters] The create
|
@@ -211,15 +222,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
211
222
|
#
|
212
223
|
# @return [DscNodeConfiguration] operation results.
|
213
224
|
#
|
214
|
-
def create_or_update(automation_account_name, node_configuration_name, parameters, custom_headers:nil)
|
215
|
-
response = create_or_update_async(automation_account_name, node_configuration_name, parameters, custom_headers:custom_headers).value!
|
225
|
+
def create_or_update(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:nil)
|
226
|
+
response = create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:custom_headers).value!
|
216
227
|
response.body unless response.nil?
|
217
228
|
end
|
218
229
|
|
219
230
|
#
|
220
231
|
# Create the node configuration identified by node configuration name.
|
221
232
|
#
|
222
|
-
# @param
|
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 node_configuration_name [String] The create or update parameters for
|
224
236
|
# configuration.
|
225
237
|
# @param parameters [DscNodeConfigurationCreateOrUpdateParameters] The create
|
@@ -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, node_configuration_name, parameters, custom_headers:nil)
|
233
|
-
create_or_update_async(automation_account_name, node_configuration_name, parameters, custom_headers:custom_headers).value!
|
244
|
+
def create_or_update_with_http_info(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:nil)
|
245
|
+
create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:custom_headers).value!
|
234
246
|
end
|
235
247
|
|
236
248
|
#
|
237
249
|
# Create the node configuration identified by node configuration name.
|
238
250
|
#
|
239
|
-
# @param
|
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 node_configuration_name [String] The create or update parameters for
|
241
254
|
# configuration.
|
242
255
|
# @param parameters [DscNodeConfigurationCreateOrUpdateParameters] The create
|
@@ -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, node_configuration_name, parameters, custom_headers:nil)
|
250
|
-
fail ArgumentError, '
|
251
|
-
fail ArgumentError, "'
|
262
|
+
def create_or_update_async(resource_group_name, automation_account_name, node_configuration_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, 'node_configuration_name is nil' if node_configuration_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' =>
|
292
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_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 || {}),
|
@@ -286,7 +301,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
286
301
|
http_response = result.response
|
287
302
|
status_code = http_response.status
|
288
303
|
response_content = http_response.body
|
289
|
-
unless status_code == 200
|
304
|
+
unless status_code == 200
|
290
305
|
error_model = JSON.load(response_content)
|
291
306
|
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
292
307
|
end
|
@@ -302,16 +317,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
302
317
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
303
318
|
end
|
304
319
|
end
|
305
|
-
# Deserialize Response
|
306
|
-
if status_code == 201
|
307
|
-
begin
|
308
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
309
|
-
result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration.mapper()
|
310
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
311
|
-
rescue Exception => e
|
312
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
313
|
-
end
|
314
|
-
end
|
315
320
|
|
316
321
|
result
|
317
322
|
end
|
@@ -322,45 +327,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
322
327
|
#
|
323
328
|
# Retrieve a list of dsc node configurations.
|
324
329
|
#
|
325
|
-
# @param
|
330
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
331
|
+
# @param automation_account_name [String] The name of the automation account.
|
326
332
|
# @param filter [String] The filter to apply on the operation.
|
327
333
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
328
334
|
# will be added to the HTTP request.
|
329
335
|
#
|
330
336
|
# @return [Array<DscNodeConfiguration>] operation results.
|
331
337
|
#
|
332
|
-
def list_by_automation_account(automation_account_name, filter:nil, custom_headers:nil)
|
333
|
-
first_page = list_by_automation_account_as_lazy(automation_account_name, filter:filter, custom_headers:custom_headers)
|
338
|
+
def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
339
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers)
|
334
340
|
first_page.get_all_items
|
335
341
|
end
|
336
342
|
|
337
343
|
#
|
338
344
|
# Retrieve a list of dsc node configurations.
|
339
345
|
#
|
340
|
-
# @param
|
346
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
347
|
+
# @param automation_account_name [String] The name of the automation account.
|
341
348
|
# @param filter [String] The filter to apply on the operation.
|
342
349
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
343
350
|
# will be added to the HTTP request.
|
344
351
|
#
|
345
352
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
346
353
|
#
|
347
|
-
def list_by_automation_account_with_http_info(automation_account_name, filter:nil, custom_headers:nil)
|
348
|
-
list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
354
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
355
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
349
356
|
end
|
350
357
|
|
351
358
|
#
|
352
359
|
# Retrieve a list of dsc node configurations.
|
353
360
|
#
|
354
|
-
# @param
|
361
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
362
|
+
# @param automation_account_name [String] The name of the automation account.
|
355
363
|
# @param filter [String] The filter to apply on the operation.
|
356
364
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
357
365
|
# to the HTTP request.
|
358
366
|
#
|
359
367
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
360
368
|
#
|
361
|
-
def list_by_automation_account_async(automation_account_name, filter:nil, custom_headers:nil)
|
362
|
-
fail ArgumentError, '
|
363
|
-
fail ArgumentError, "'
|
369
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
370
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
371
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
372
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
373
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
364
374
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
365
375
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
366
376
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -378,7 +388,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
378
388
|
|
379
389
|
options = {
|
380
390
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
381
|
-
path_params: {'resourceGroupName' =>
|
391
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
382
392
|
query_params: {'$filter' => filter,'api-version' => @client.api_version},
|
383
393
|
headers: request_headers.merge(custom_headers || {}),
|
384
394
|
base_url: request_url
|
@@ -503,7 +513,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
503
513
|
#
|
504
514
|
# Retrieve a list of dsc node configurations.
|
505
515
|
#
|
506
|
-
# @param
|
516
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
517
|
+
# @param automation_account_name [String] The name of the automation account.
|
507
518
|
# @param filter [String] The filter to apply on the operation.
|
508
519
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
509
520
|
# will be added to the HTTP request.
|
@@ -511,8 +522,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
511
522
|
# @return [DscNodeConfigurationListResult] which provide lazy access to pages
|
512
523
|
# of the response.
|
513
524
|
#
|
514
|
-
def list_by_automation_account_as_lazy(automation_account_name, filter:nil, custom_headers:nil)
|
515
|
-
response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
525
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
526
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
516
527
|
unless response.nil?
|
517
528
|
page = response.body
|
518
529
|
page.next_method = Proc.new do |next_page_link|
|
@@ -24,45 +24,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Delete the dsc node identified by node id.
|
26
26
|
#
|
27
|
-
# @param
|
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 node id.
|
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
|
# @return [DscNode] operation results.
|
33
34
|
#
|
34
|
-
def delete(automation_account_name, node_id, custom_headers:nil)
|
35
|
-
response = delete_async(automation_account_name, node_id, custom_headers:custom_headers).value!
|
35
|
+
def delete(resource_group_name, automation_account_name, node_id, custom_headers:nil)
|
36
|
+
response = delete_async(resource_group_name, automation_account_name, node_id, custom_headers:custom_headers).value!
|
36
37
|
response.body unless response.nil?
|
37
38
|
end
|
38
39
|
|
39
40
|
#
|
40
41
|
# Delete the dsc node identified by node id.
|
41
42
|
#
|
42
|
-
# @param
|
43
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
44
|
+
# @param automation_account_name [String] The name of the automation account.
|
43
45
|
# @param node_id [String] The node id.
|
44
46
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
47
|
# will be added to the HTTP request.
|
46
48
|
#
|
47
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
50
|
#
|
49
|
-
def delete_with_http_info(automation_account_name, node_id, custom_headers:nil)
|
50
|
-
delete_async(automation_account_name, node_id, custom_headers:custom_headers).value!
|
51
|
+
def delete_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers:nil)
|
52
|
+
delete_async(resource_group_name, automation_account_name, node_id, custom_headers:custom_headers).value!
|
51
53
|
end
|
52
54
|
|
53
55
|
#
|
54
56
|
# Delete the dsc node identified by node id.
|
55
57
|
#
|
56
|
-
# @param
|
58
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
59
|
+
# @param automation_account_name [String] The name of the automation account.
|
57
60
|
# @param node_id [String] The node id.
|
58
61
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
62
|
# to the HTTP request.
|
60
63
|
#
|
61
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
65
|
#
|
63
|
-
def delete_async(automation_account_name, node_id, custom_headers:nil)
|
64
|
-
fail ArgumentError, '
|
65
|
-
fail ArgumentError, "'
|
66
|
+
def delete_async(resource_group_name, automation_account_name, node_id, custom_headers:nil)
|
67
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
68
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
69
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
70
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
66
71
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
67
72
|
fail ArgumentError, 'node_id is nil' if node_id.nil?
|
68
73
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -81,7 +86,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
81
86
|
|
82
87
|
options = {
|
83
88
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
84
|
-
path_params: {'resourceGroupName' =>
|
89
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id},
|
85
90
|
query_params: {'api-version' => @client.api_version},
|
86
91
|
headers: request_headers.merge(custom_headers || {}),
|
87
92
|
base_url: request_url
|
@@ -118,45 +123,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
118
123
|
#
|
119
124
|
# Retrieve the dsc node identified by node id.
|
120
125
|
#
|
121
|
-
# @param
|
126
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
127
|
+
# @param automation_account_name [String] The name of the automation account.
|
122
128
|
# @param node_id [String] The node id.
|
123
129
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
124
130
|
# will be added to the HTTP request.
|
125
131
|
#
|
126
132
|
# @return [DscNode] operation results.
|
127
133
|
#
|
128
|
-
def get(automation_account_name, node_id, custom_headers:nil)
|
129
|
-
response = get_async(automation_account_name, node_id, custom_headers:custom_headers).value!
|
134
|
+
def get(resource_group_name, automation_account_name, node_id, custom_headers:nil)
|
135
|
+
response = get_async(resource_group_name, automation_account_name, node_id, custom_headers:custom_headers).value!
|
130
136
|
response.body unless response.nil?
|
131
137
|
end
|
132
138
|
|
133
139
|
#
|
134
140
|
# Retrieve the dsc node identified by node id.
|
135
141
|
#
|
136
|
-
# @param
|
142
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
143
|
+
# @param automation_account_name [String] The name of the automation account.
|
137
144
|
# @param node_id [String] The node id.
|
138
145
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
139
146
|
# will be added to the HTTP request.
|
140
147
|
#
|
141
148
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
142
149
|
#
|
143
|
-
def get_with_http_info(automation_account_name, node_id, custom_headers:nil)
|
144
|
-
get_async(automation_account_name, node_id, custom_headers:custom_headers).value!
|
150
|
+
def get_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers:nil)
|
151
|
+
get_async(resource_group_name, automation_account_name, node_id, custom_headers:custom_headers).value!
|
145
152
|
end
|
146
153
|
|
147
154
|
#
|
148
155
|
# Retrieve the dsc node identified by node id.
|
149
156
|
#
|
150
|
-
# @param
|
157
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
158
|
+
# @param automation_account_name [String] The name of the automation account.
|
151
159
|
# @param node_id [String] The node id.
|
152
160
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
153
161
|
# to the HTTP request.
|
154
162
|
#
|
155
163
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
156
164
|
#
|
157
|
-
def get_async(automation_account_name, node_id, custom_headers:nil)
|
158
|
-
fail ArgumentError, '
|
159
|
-
fail ArgumentError, "'
|
165
|
+
def get_async(resource_group_name, automation_account_name, node_id, custom_headers:nil)
|
166
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
167
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
168
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
169
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
160
170
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
161
171
|
fail ArgumentError, 'node_id is nil' if node_id.nil?
|
162
172
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -175,7 +185,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
175
185
|
|
176
186
|
options = {
|
177
187
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
178
|
-
path_params: {'resourceGroupName' =>
|
188
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id},
|
179
189
|
query_params: {'api-version' => @client.api_version},
|
180
190
|
headers: request_headers.merge(custom_headers || {}),
|
181
191
|
base_url: request_url
|
@@ -212,7 +222,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
212
222
|
#
|
213
223
|
# Update the dsc node.
|
214
224
|
#
|
215
|
-
# @param
|
225
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
226
|
+
# @param automation_account_name [String] The name of the automation account.
|
216
227
|
# @param node_id [String] Parameters supplied to the update dsc node.
|
217
228
|
# @param parameters [DscNodeUpdateParameters] Parameters supplied to the update
|
218
229
|
# dsc node.
|
@@ -221,15 +232,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
221
232
|
#
|
222
233
|
# @return [DscNode] operation results.
|
223
234
|
#
|
224
|
-
def update(automation_account_name, node_id, parameters, custom_headers:nil)
|
225
|
-
response = update_async(automation_account_name, node_id, parameters, custom_headers:custom_headers).value!
|
235
|
+
def update(resource_group_name, automation_account_name, node_id, parameters, custom_headers:nil)
|
236
|
+
response = update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers:custom_headers).value!
|
226
237
|
response.body unless response.nil?
|
227
238
|
end
|
228
239
|
|
229
240
|
#
|
230
241
|
# Update the dsc node.
|
231
242
|
#
|
232
|
-
# @param
|
243
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
244
|
+
# @param automation_account_name [String] The name of the automation account.
|
233
245
|
# @param node_id [String] Parameters supplied to the update dsc node.
|
234
246
|
# @param parameters [DscNodeUpdateParameters] Parameters supplied to the update
|
235
247
|
# dsc node.
|
@@ -238,14 +250,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
238
250
|
#
|
239
251
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
240
252
|
#
|
241
|
-
def update_with_http_info(automation_account_name, node_id, parameters, custom_headers:nil)
|
242
|
-
update_async(automation_account_name, node_id, parameters, custom_headers:custom_headers).value!
|
253
|
+
def update_with_http_info(resource_group_name, automation_account_name, node_id, parameters, custom_headers:nil)
|
254
|
+
update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers:custom_headers).value!
|
243
255
|
end
|
244
256
|
|
245
257
|
#
|
246
258
|
# Update the dsc node.
|
247
259
|
#
|
248
|
-
# @param
|
260
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
261
|
+
# @param automation_account_name [String] The name of the automation account.
|
249
262
|
# @param node_id [String] Parameters supplied to the update dsc node.
|
250
263
|
# @param parameters [DscNodeUpdateParameters] Parameters supplied to the update
|
251
264
|
# dsc node.
|
@@ -254,9 +267,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
254
267
|
#
|
255
268
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
256
269
|
#
|
257
|
-
def update_async(automation_account_name, node_id, parameters, custom_headers:nil)
|
258
|
-
fail ArgumentError, '
|
259
|
-
fail ArgumentError, "'
|
270
|
+
def update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers:nil)
|
271
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
272
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
273
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
274
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
260
275
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
261
276
|
fail ArgumentError, 'node_id is nil' if node_id.nil?
|
262
277
|
fail ArgumentError, 'parameters is nil' if parameters.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' =>
|
300
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id},
|
286
301
|
query_params: {'api-version' => @client.api_version},
|
287
302
|
body: request_content,
|
288
303
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -320,45 +335,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
320
335
|
#
|
321
336
|
# Retrieve a list of dsc nodes.
|
322
337
|
#
|
323
|
-
# @param
|
338
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
339
|
+
# @param automation_account_name [String] The name of the automation account.
|
324
340
|
# @param filter [String] The filter to apply on the operation.
|
325
341
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
326
342
|
# will be added to the HTTP request.
|
327
343
|
#
|
328
344
|
# @return [Array<DscNode>] operation results.
|
329
345
|
#
|
330
|
-
def list_by_automation_account(automation_account_name, filter:nil, custom_headers:nil)
|
331
|
-
first_page = list_by_automation_account_as_lazy(automation_account_name, filter:filter, custom_headers:custom_headers)
|
346
|
+
def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
347
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers)
|
332
348
|
first_page.get_all_items
|
333
349
|
end
|
334
350
|
|
335
351
|
#
|
336
352
|
# Retrieve a list of dsc nodes.
|
337
353
|
#
|
338
|
-
# @param
|
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 filter [String] The filter to apply on the operation.
|
340
357
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
341
358
|
# will be added to the HTTP request.
|
342
359
|
#
|
343
360
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
344
361
|
#
|
345
|
-
def list_by_automation_account_with_http_info(automation_account_name, filter:nil, custom_headers:nil)
|
346
|
-
list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
362
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
363
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
347
364
|
end
|
348
365
|
|
349
366
|
#
|
350
367
|
# Retrieve a list of dsc nodes.
|
351
368
|
#
|
352
|
-
# @param
|
369
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
370
|
+
# @param automation_account_name [String] The name of the automation account.
|
353
371
|
# @param filter [String] The filter to apply on the operation.
|
354
372
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
355
373
|
# to the HTTP request.
|
356
374
|
#
|
357
375
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
358
376
|
#
|
359
|
-
def list_by_automation_account_async(automation_account_name, filter:nil, custom_headers:nil)
|
360
|
-
fail ArgumentError, '
|
361
|
-
fail ArgumentError, "'
|
377
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
378
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
379
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
380
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
381
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
362
382
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
363
383
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
364
384
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -376,7 +396,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
376
396
|
|
377
397
|
options = {
|
378
398
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
379
|
-
path_params: {'resourceGroupName' =>
|
399
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
380
400
|
query_params: {'$filter' => filter,'api-version' => @client.api_version},
|
381
401
|
headers: request_headers.merge(custom_headers || {}),
|
382
402
|
base_url: request_url
|
@@ -501,7 +521,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
501
521
|
#
|
502
522
|
# Retrieve a list of dsc nodes.
|
503
523
|
#
|
504
|
-
# @param
|
524
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
525
|
+
# @param automation_account_name [String] The name of the automation account.
|
505
526
|
# @param filter [String] The filter to apply on the operation.
|
506
527
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
507
528
|
# will be added to the HTTP request.
|
@@ -509,8 +530,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
509
530
|
# @return [DscNodeListResult] which provide lazy access to pages of the
|
510
531
|
# response.
|
511
532
|
#
|
512
|
-
def list_by_automation_account_as_lazy(automation_account_name, filter:nil, custom_headers:nil)
|
513
|
-
response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
533
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
534
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
514
535
|
unless response.nil?
|
515
536
|
page = response.body
|
516
537
|
page.next_method = Proc.new do |next_page_link|
|