azure_mgmt_automation 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation.rb +54 -53
- data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +27 -31
- data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +18 -24
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +54 -50
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +7 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +54 -68
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +54 -68
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +45 -55
- data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +54 -68
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +45 -55
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +54 -66
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +45 -55
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +45 -55
- data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +9 -11
- data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +45 -55
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +81 -99
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +45 -55
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +27 -31
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +13 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +21 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb +58 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb +26 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +16 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +2 -2
- 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/variable.rb +16 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +54 -68
- data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +36 -42
- data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +18 -22
- data/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb +6 -5
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +53 -70
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +63 -79
- data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +54 -68
- data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +6 -5
- data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +27 -31
- data/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb +45 -57
- data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +6 -5
- data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +54 -68
- data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +63 -79
- data/lib/profiles/latest/automation_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/automation_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/automation_profile_module.rb +494 -471
- data/lib/version.rb +1 -1
- metadata +3 -2
@@ -24,22 +24,20 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Delete the dsc configuration identified by configuration name.
|
26
26
|
#
|
27
|
-
# @param resource_group_name [String] The resource group name.
|
28
27
|
# @param automation_account_name [String] The automation account name.
|
29
28
|
# @param configuration_name [String] The configuration name.
|
30
29
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
30
|
# will be added to the HTTP request.
|
32
31
|
#
|
33
32
|
#
|
34
|
-
def delete(
|
35
|
-
response = delete_async(
|
33
|
+
def delete(automation_account_name, configuration_name, custom_headers:nil)
|
34
|
+
response = delete_async(automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
36
35
|
nil
|
37
36
|
end
|
38
37
|
|
39
38
|
#
|
40
39
|
# Delete the dsc configuration identified by configuration name.
|
41
40
|
#
|
42
|
-
# @param resource_group_name [String] The resource group name.
|
43
41
|
# @param automation_account_name [String] The automation account name.
|
44
42
|
# @param configuration_name [String] The configuration name.
|
45
43
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -47,14 +45,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
47
45
|
#
|
48
46
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
49
47
|
#
|
50
|
-
def delete_with_http_info(
|
51
|
-
delete_async(
|
48
|
+
def delete_with_http_info(automation_account_name, configuration_name, custom_headers:nil)
|
49
|
+
delete_async(automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
52
50
|
end
|
53
51
|
|
54
52
|
#
|
55
53
|
# Delete the dsc configuration identified by configuration name.
|
56
54
|
#
|
57
|
-
# @param resource_group_name [String] The resource group name.
|
58
55
|
# @param automation_account_name [String] The automation account name.
|
59
56
|
# @param configuration_name [String] The configuration name.
|
60
57
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -62,9 +59,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
62
59
|
#
|
63
60
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
64
61
|
#
|
65
|
-
def delete_async(
|
66
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
67
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
62
|
+
def delete_async(automation_account_name, configuration_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?
|
68
65
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
69
66
|
fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
|
70
67
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -72,6 +69,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
72
69
|
|
73
70
|
|
74
71
|
request_headers = {}
|
72
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
75
73
|
|
76
74
|
# Set Headers
|
77
75
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -82,7 +80,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
82
80
|
|
83
81
|
options = {
|
84
82
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
85
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
83
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
86
84
|
query_params: {'api-version' => @client.api_version},
|
87
85
|
headers: request_headers.merge(custom_headers || {}),
|
88
86
|
base_url: request_url
|
@@ -109,7 +107,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
109
107
|
#
|
110
108
|
# Retrieve the configuration identified by configuration name.
|
111
109
|
#
|
112
|
-
# @param resource_group_name [String] The resource group name.
|
113
110
|
# @param automation_account_name [String] The automation account name.
|
114
111
|
# @param configuration_name [String] The configuration name.
|
115
112
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -117,15 +114,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
117
114
|
#
|
118
115
|
# @return [DscConfiguration] operation results.
|
119
116
|
#
|
120
|
-
def get(
|
121
|
-
response = get_async(
|
117
|
+
def get(automation_account_name, configuration_name, custom_headers:nil)
|
118
|
+
response = get_async(automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
122
119
|
response.body unless response.nil?
|
123
120
|
end
|
124
121
|
|
125
122
|
#
|
126
123
|
# Retrieve the configuration identified by configuration name.
|
127
124
|
#
|
128
|
-
# @param resource_group_name [String] The resource group name.
|
129
125
|
# @param automation_account_name [String] The automation account name.
|
130
126
|
# @param configuration_name [String] The configuration name.
|
131
127
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -133,14 +129,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
133
129
|
#
|
134
130
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
135
131
|
#
|
136
|
-
def get_with_http_info(
|
137
|
-
get_async(
|
132
|
+
def get_with_http_info(automation_account_name, configuration_name, custom_headers:nil)
|
133
|
+
get_async(automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
138
134
|
end
|
139
135
|
|
140
136
|
#
|
141
137
|
# Retrieve the configuration identified by configuration name.
|
142
138
|
#
|
143
|
-
# @param resource_group_name [String] The resource group name.
|
144
139
|
# @param automation_account_name [String] The automation account name.
|
145
140
|
# @param configuration_name [String] The configuration name.
|
146
141
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -148,9 +143,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
148
143
|
#
|
149
144
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
150
145
|
#
|
151
|
-
def get_async(
|
152
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
153
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
146
|
+
def get_async(automation_account_name, configuration_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
149
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
155
150
|
fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
|
156
151
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -158,6 +153,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
158
153
|
|
159
154
|
|
160
155
|
request_headers = {}
|
156
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
161
157
|
|
162
158
|
# Set Headers
|
163
159
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -168,7 +164,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
168
164
|
|
169
165
|
options = {
|
170
166
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
171
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
167
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
172
168
|
query_params: {'api-version' => @client.api_version},
|
173
169
|
headers: request_headers.merge(custom_headers || {}),
|
174
170
|
base_url: request_url
|
@@ -205,7 +201,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
205
201
|
#
|
206
202
|
# Create the configuration identified by configuration name.
|
207
203
|
#
|
208
|
-
# @param resource_group_name [String] The resource group name.
|
209
204
|
# @param automation_account_name [String] The automation account name.
|
210
205
|
# @param configuration_name [String] The create or update parameters for
|
211
206
|
# configuration.
|
@@ -216,15 +211,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
216
211
|
#
|
217
212
|
# @return [DscConfiguration] operation results.
|
218
213
|
#
|
219
|
-
def create_or_update(
|
220
|
-
response = create_or_update_async(
|
214
|
+
def create_or_update(automation_account_name, configuration_name, parameters, custom_headers:nil)
|
215
|
+
response = create_or_update_async(automation_account_name, configuration_name, parameters, custom_headers:custom_headers).value!
|
221
216
|
response.body unless response.nil?
|
222
217
|
end
|
223
218
|
|
224
219
|
#
|
225
220
|
# Create the configuration identified by configuration name.
|
226
221
|
#
|
227
|
-
# @param resource_group_name [String] The resource group name.
|
228
222
|
# @param automation_account_name [String] The automation account name.
|
229
223
|
# @param configuration_name [String] The create or update parameters for
|
230
224
|
# configuration.
|
@@ -235,14 +229,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
235
229
|
#
|
236
230
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
237
231
|
#
|
238
|
-
def create_or_update_with_http_info(
|
239
|
-
create_or_update_async(
|
232
|
+
def create_or_update_with_http_info(automation_account_name, configuration_name, parameters, custom_headers:nil)
|
233
|
+
create_or_update_async(automation_account_name, configuration_name, parameters, custom_headers:custom_headers).value!
|
240
234
|
end
|
241
235
|
|
242
236
|
#
|
243
237
|
# Create the configuration identified by configuration name.
|
244
238
|
#
|
245
|
-
# @param resource_group_name [String] The resource group name.
|
246
239
|
# @param automation_account_name [String] The automation account name.
|
247
240
|
# @param configuration_name [String] The create or update parameters for
|
248
241
|
# configuration.
|
@@ -253,9 +246,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
253
246
|
#
|
254
247
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
255
248
|
#
|
256
|
-
def create_or_update_async(
|
257
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
258
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
249
|
+
def create_or_update_async(automation_account_name, configuration_name, parameters, custom_headers:nil)
|
250
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
251
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
259
252
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
260
253
|
fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
|
261
254
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -264,13 +257,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
264
257
|
|
265
258
|
|
266
259
|
request_headers = {}
|
260
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
267
261
|
|
268
262
|
# Set Headers
|
269
263
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
270
264
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
271
265
|
|
272
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
273
|
-
|
274
266
|
# Serialize Request
|
275
267
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationCreateOrUpdateParameters.mapper()
|
276
268
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -282,7 +274,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
282
274
|
|
283
275
|
options = {
|
284
276
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
285
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
277
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
286
278
|
query_params: {'api-version' => @client.api_version},
|
287
279
|
body: request_content,
|
288
280
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -330,7 +322,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
330
322
|
#
|
331
323
|
# Retrieve the configuration script identified by configuration name.
|
332
324
|
#
|
333
|
-
# @param resource_group_name [String] The resource group name.
|
334
325
|
# @param automation_account_name [String] The automation account name.
|
335
326
|
# @param configuration_name [String] The configuration name.
|
336
327
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -338,15 +329,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
338
329
|
#
|
339
330
|
# @return [NOT_IMPLEMENTED] operation results.
|
340
331
|
#
|
341
|
-
def get_content(
|
342
|
-
response = get_content_async(
|
332
|
+
def get_content(automation_account_name, configuration_name, custom_headers:nil)
|
333
|
+
response = get_content_async(automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
343
334
|
response.body unless response.nil?
|
344
335
|
end
|
345
336
|
|
346
337
|
#
|
347
338
|
# Retrieve the configuration script identified by configuration name.
|
348
339
|
#
|
349
|
-
# @param resource_group_name [String] The resource group name.
|
350
340
|
# @param automation_account_name [String] The automation account name.
|
351
341
|
# @param configuration_name [String] The configuration name.
|
352
342
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -354,14 +344,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
354
344
|
#
|
355
345
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
356
346
|
#
|
357
|
-
def get_content_with_http_info(
|
358
|
-
get_content_async(
|
347
|
+
def get_content_with_http_info(automation_account_name, configuration_name, custom_headers:nil)
|
348
|
+
get_content_async(automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
359
349
|
end
|
360
350
|
|
361
351
|
#
|
362
352
|
# Retrieve the configuration script identified by configuration name.
|
363
353
|
#
|
364
|
-
# @param resource_group_name [String] The resource group name.
|
365
354
|
# @param automation_account_name [String] The automation account name.
|
366
355
|
# @param configuration_name [String] The configuration name.
|
367
356
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -369,9 +358,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
369
358
|
#
|
370
359
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
371
360
|
#
|
372
|
-
def get_content_async(
|
373
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
374
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
361
|
+
def get_content_async(automation_account_name, configuration_name, 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?
|
375
364
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
376
365
|
fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
|
377
366
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -379,6 +368,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
379
368
|
|
380
369
|
|
381
370
|
request_headers = {}
|
371
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
382
372
|
|
383
373
|
# Set Headers
|
384
374
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -389,7 +379,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
389
379
|
|
390
380
|
options = {
|
391
381
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
392
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
382
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
393
383
|
query_params: {'api-version' => @client.api_version},
|
394
384
|
headers: request_headers.merge(custom_headers || {}),
|
395
385
|
base_url: request_url
|
@@ -433,51 +423,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
433
423
|
#
|
434
424
|
# Retrieve a list of configurations.
|
435
425
|
#
|
436
|
-
# @param resource_group_name [String] The resource group name.
|
437
426
|
# @param automation_account_name [String] The automation account name.
|
438
427
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
439
428
|
# will be added to the HTTP request.
|
440
429
|
#
|
441
430
|
# @return [Array<DscConfiguration>] operation results.
|
442
431
|
#
|
443
|
-
def list_by_automation_account(
|
444
|
-
first_page = list_by_automation_account_as_lazy(
|
432
|
+
def list_by_automation_account(automation_account_name, custom_headers:nil)
|
433
|
+
first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
|
445
434
|
first_page.get_all_items
|
446
435
|
end
|
447
436
|
|
448
437
|
#
|
449
438
|
# Retrieve a list of configurations.
|
450
439
|
#
|
451
|
-
# @param resource_group_name [String] The resource group name.
|
452
440
|
# @param automation_account_name [String] The automation account name.
|
453
441
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
454
442
|
# will be added to the HTTP request.
|
455
443
|
#
|
456
444
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
457
445
|
#
|
458
|
-
def list_by_automation_account_with_http_info(
|
459
|
-
list_by_automation_account_async(
|
446
|
+
def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
|
447
|
+
list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
460
448
|
end
|
461
449
|
|
462
450
|
#
|
463
451
|
# Retrieve a list of configurations.
|
464
452
|
#
|
465
|
-
# @param resource_group_name [String] The resource group name.
|
466
453
|
# @param automation_account_name [String] The automation account name.
|
467
454
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
468
455
|
# to the HTTP request.
|
469
456
|
#
|
470
457
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
471
458
|
#
|
472
|
-
def list_by_automation_account_async(
|
473
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
474
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
459
|
+
def list_by_automation_account_async(automation_account_name, custom_headers:nil)
|
460
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
461
|
+
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?
|
475
462
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
476
463
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
477
464
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
478
465
|
|
479
466
|
|
480
467
|
request_headers = {}
|
468
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
481
469
|
|
482
470
|
# Set Headers
|
483
471
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -488,7 +476,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
488
476
|
|
489
477
|
options = {
|
490
478
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
491
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
479
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
492
480
|
query_params: {'api-version' => @client.api_version},
|
493
481
|
headers: request_headers.merge(custom_headers || {}),
|
494
482
|
base_url: request_url
|
@@ -532,8 +520,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
532
520
|
#
|
533
521
|
# @return [DscConfigurationListResult] operation results.
|
534
522
|
#
|
535
|
-
def list_by_automation_account_next(next_page_link, custom_headers
|
536
|
-
response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
523
|
+
def list_by_automation_account_next(next_page_link, custom_headers:nil)
|
524
|
+
response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
537
525
|
response.body unless response.nil?
|
538
526
|
end
|
539
527
|
|
@@ -547,8 +535,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
547
535
|
#
|
548
536
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
549
537
|
#
|
550
|
-
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers
|
551
|
-
list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
538
|
+
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
|
539
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
552
540
|
end
|
553
541
|
|
554
542
|
#
|
@@ -561,11 +549,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
561
549
|
#
|
562
550
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
563
551
|
#
|
564
|
-
def list_by_automation_account_next_async(next_page_link, custom_headers
|
552
|
+
def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
|
565
553
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
566
554
|
|
567
555
|
|
568
556
|
request_headers = {}
|
557
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
569
558
|
|
570
559
|
# Set Headers
|
571
560
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -612,7 +601,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
612
601
|
#
|
613
602
|
# Retrieve a list of configurations.
|
614
603
|
#
|
615
|
-
# @param resource_group_name [String] The resource group name.
|
616
604
|
# @param automation_account_name [String] The automation account name.
|
617
605
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
618
606
|
# will be added to the HTTP request.
|
@@ -620,12 +608,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
620
608
|
# @return [DscConfigurationListResult] which provide lazy access to pages of
|
621
609
|
# the response.
|
622
610
|
#
|
623
|
-
def list_by_automation_account_as_lazy(
|
624
|
-
response = list_by_automation_account_async(
|
611
|
+
def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
|
612
|
+
response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
625
613
|
unless response.nil?
|
626
614
|
page = response.body
|
627
615
|
page.next_method = Proc.new do |next_page_link|
|
628
|
-
list_by_automation_account_next_async(next_page_link, custom_headers)
|
616
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
|
629
617
|
end
|
630
618
|
page
|
631
619
|
end
|
@@ -24,22 +24,20 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Delete the Dsc node configurations by node configuration.
|
26
26
|
#
|
27
|
-
# @param resource_group_name [String] The resource group name.
|
28
27
|
# @param automation_account_name [String] The automation account name.
|
29
28
|
# @param node_configuration_name [String] The Dsc node configuration name.
|
30
29
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
30
|
# will be added to the HTTP request.
|
32
31
|
#
|
33
32
|
#
|
34
|
-
def delete(
|
35
|
-
response = delete_async(
|
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!
|
36
35
|
nil
|
37
36
|
end
|
38
37
|
|
39
38
|
#
|
40
39
|
# Delete the Dsc node configurations by node configuration.
|
41
40
|
#
|
42
|
-
# @param resource_group_name [String] The resource group name.
|
43
41
|
# @param automation_account_name [String] The automation account name.
|
44
42
|
# @param node_configuration_name [String] The Dsc node configuration name.
|
45
43
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -47,14 +45,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
47
45
|
#
|
48
46
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
49
47
|
#
|
50
|
-
def delete_with_http_info(
|
51
|
-
delete_async(
|
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!
|
52
50
|
end
|
53
51
|
|
54
52
|
#
|
55
53
|
# Delete the Dsc node configurations by node configuration.
|
56
54
|
#
|
57
|
-
# @param resource_group_name [String] The resource group name.
|
58
55
|
# @param automation_account_name [String] The automation account name.
|
59
56
|
# @param node_configuration_name [String] The Dsc node configuration name.
|
60
57
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -62,9 +59,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
62
59
|
#
|
63
60
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
64
61
|
#
|
65
|
-
def delete_async(
|
66
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
67
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
62
|
+
def delete_async(automation_account_name, node_configuration_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?
|
68
65
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
69
66
|
fail ArgumentError, 'node_configuration_name is nil' if node_configuration_name.nil?
|
70
67
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -72,6 +69,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
72
69
|
|
73
70
|
|
74
71
|
request_headers = {}
|
72
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
75
73
|
|
76
74
|
# Set Headers
|
77
75
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -82,7 +80,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
82
80
|
|
83
81
|
options = {
|
84
82
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
85
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id},
|
83
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id},
|
86
84
|
query_params: {'api-version' => @client.api_version},
|
87
85
|
headers: request_headers.merge(custom_headers || {}),
|
88
86
|
base_url: request_url
|
@@ -109,7 +107,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
109
107
|
#
|
110
108
|
# Retrieve the Dsc node configurations by node configuration.
|
111
109
|
#
|
112
|
-
# @param resource_group_name [String] The resource group name.
|
113
110
|
# @param automation_account_name [String] The automation account name.
|
114
111
|
# @param node_configuration_name [String] The Dsc node configuration name.
|
115
112
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -117,15 +114,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
117
114
|
#
|
118
115
|
# @return [DscNodeConfiguration] operation results.
|
119
116
|
#
|
120
|
-
def get(
|
121
|
-
response = get_async(
|
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!
|
122
119
|
response.body unless response.nil?
|
123
120
|
end
|
124
121
|
|
125
122
|
#
|
126
123
|
# Retrieve the Dsc node configurations by node configuration.
|
127
124
|
#
|
128
|
-
# @param resource_group_name [String] The resource group name.
|
129
125
|
# @param automation_account_name [String] The automation account name.
|
130
126
|
# @param node_configuration_name [String] The Dsc node configuration name.
|
131
127
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -133,14 +129,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
133
129
|
#
|
134
130
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
135
131
|
#
|
136
|
-
def get_with_http_info(
|
137
|
-
get_async(
|
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!
|
138
134
|
end
|
139
135
|
|
140
136
|
#
|
141
137
|
# Retrieve the Dsc node configurations by node configuration.
|
142
138
|
#
|
143
|
-
# @param resource_group_name [String] The resource group name.
|
144
139
|
# @param automation_account_name [String] The automation account name.
|
145
140
|
# @param node_configuration_name [String] The Dsc node configuration name.
|
146
141
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -148,9 +143,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
148
143
|
#
|
149
144
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
150
145
|
#
|
151
|
-
def get_async(
|
152
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
153
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
146
|
+
def get_async(automation_account_name, node_configuration_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
149
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
155
150
|
fail ArgumentError, 'node_configuration_name is nil' if node_configuration_name.nil?
|
156
151
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -158,6 +153,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
158
153
|
|
159
154
|
|
160
155
|
request_headers = {}
|
156
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
161
157
|
|
162
158
|
# Set Headers
|
163
159
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -168,7 +164,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
168
164
|
|
169
165
|
options = {
|
170
166
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
171
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id},
|
167
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id},
|
172
168
|
query_params: {'api-version' => @client.api_version},
|
173
169
|
headers: request_headers.merge(custom_headers || {}),
|
174
170
|
base_url: request_url
|
@@ -205,7 +201,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
205
201
|
#
|
206
202
|
# Create the node configuration identified by node configuration name.
|
207
203
|
#
|
208
|
-
# @param resource_group_name [String] The resource group name.
|
209
204
|
# @param automation_account_name [String] The automation account name.
|
210
205
|
# @param node_configuration_name [String] The create or update parameters for
|
211
206
|
# configuration.
|
@@ -216,15 +211,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
216
211
|
#
|
217
212
|
# @return [DscNodeConfiguration] operation results.
|
218
213
|
#
|
219
|
-
def create_or_update(
|
220
|
-
response = create_or_update_async(
|
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!
|
221
216
|
response.body unless response.nil?
|
222
217
|
end
|
223
218
|
|
224
219
|
#
|
225
220
|
# Create the node configuration identified by node configuration name.
|
226
221
|
#
|
227
|
-
# @param resource_group_name [String] The resource group name.
|
228
222
|
# @param automation_account_name [String] The automation account name.
|
229
223
|
# @param node_configuration_name [String] The create or update parameters for
|
230
224
|
# configuration.
|
@@ -235,14 +229,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
235
229
|
#
|
236
230
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
237
231
|
#
|
238
|
-
def create_or_update_with_http_info(
|
239
|
-
create_or_update_async(
|
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!
|
240
234
|
end
|
241
235
|
|
242
236
|
#
|
243
237
|
# Create the node configuration identified by node configuration name.
|
244
238
|
#
|
245
|
-
# @param resource_group_name [String] The resource group name.
|
246
239
|
# @param automation_account_name [String] The automation account name.
|
247
240
|
# @param node_configuration_name [String] The create or update parameters for
|
248
241
|
# configuration.
|
@@ -253,9 +246,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
253
246
|
#
|
254
247
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
255
248
|
#
|
256
|
-
def create_or_update_async(
|
257
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
258
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
249
|
+
def create_or_update_async(automation_account_name, node_configuration_name, parameters, custom_headers:nil)
|
250
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
251
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
259
252
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
260
253
|
fail ArgumentError, 'node_configuration_name is nil' if node_configuration_name.nil?
|
261
254
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -264,13 +257,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
264
257
|
|
265
258
|
|
266
259
|
request_headers = {}
|
260
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
267
261
|
|
268
262
|
# Set Headers
|
269
263
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
270
264
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
271
265
|
|
272
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
273
|
-
|
274
266
|
# Serialize Request
|
275
267
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationCreateOrUpdateParameters.mapper()
|
276
268
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -282,7 +274,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
282
274
|
|
283
275
|
options = {
|
284
276
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
285
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id},
|
277
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id},
|
286
278
|
query_params: {'api-version' => @client.api_version},
|
287
279
|
body: request_content,
|
288
280
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -330,7 +322,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
330
322
|
#
|
331
323
|
# Retrieve a list of dsc node configurations.
|
332
324
|
#
|
333
|
-
# @param resource_group_name [String] The resource group name.
|
334
325
|
# @param automation_account_name [String] The automation account name.
|
335
326
|
# @param filter [String] The filter to apply on the operation.
|
336
327
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -338,15 +329,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
338
329
|
#
|
339
330
|
# @return [Array<DscNodeConfiguration>] operation results.
|
340
331
|
#
|
341
|
-
def list_by_automation_account(
|
342
|
-
first_page = list_by_automation_account_as_lazy(
|
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)
|
343
334
|
first_page.get_all_items
|
344
335
|
end
|
345
336
|
|
346
337
|
#
|
347
338
|
# Retrieve a list of dsc node configurations.
|
348
339
|
#
|
349
|
-
# @param resource_group_name [String] The resource group name.
|
350
340
|
# @param automation_account_name [String] The automation account name.
|
351
341
|
# @param filter [String] The filter to apply on the operation.
|
352
342
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -354,14 +344,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
354
344
|
#
|
355
345
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
356
346
|
#
|
357
|
-
def list_by_automation_account_with_http_info(
|
358
|
-
list_by_automation_account_async(
|
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!
|
359
349
|
end
|
360
350
|
|
361
351
|
#
|
362
352
|
# Retrieve a list of dsc node configurations.
|
363
353
|
#
|
364
|
-
# @param resource_group_name [String] The resource group name.
|
365
354
|
# @param automation_account_name [String] The automation account name.
|
366
355
|
# @param filter [String] The filter to apply on the operation.
|
367
356
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -369,15 +358,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
369
358
|
#
|
370
359
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
371
360
|
#
|
372
|
-
def list_by_automation_account_async(
|
373
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
374
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
361
|
+
def list_by_automation_account_async(automation_account_name, filter:nil, 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?
|
375
364
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
376
365
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
377
366
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
378
367
|
|
379
368
|
|
380
369
|
request_headers = {}
|
370
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
381
371
|
|
382
372
|
# Set Headers
|
383
373
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -388,7 +378,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
388
378
|
|
389
379
|
options = {
|
390
380
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
391
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
381
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
392
382
|
query_params: {'$filter' => filter,'api-version' => @client.api_version},
|
393
383
|
headers: request_headers.merge(custom_headers || {}),
|
394
384
|
base_url: request_url
|
@@ -432,8 +422,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
432
422
|
#
|
433
423
|
# @return [DscNodeConfigurationListResult] operation results.
|
434
424
|
#
|
435
|
-
def list_by_automation_account_next(next_page_link, custom_headers
|
436
|
-
response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
425
|
+
def list_by_automation_account_next(next_page_link, custom_headers:nil)
|
426
|
+
response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
437
427
|
response.body unless response.nil?
|
438
428
|
end
|
439
429
|
|
@@ -447,8 +437,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
447
437
|
#
|
448
438
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
449
439
|
#
|
450
|
-
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers
|
451
|
-
list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
440
|
+
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
|
441
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
452
442
|
end
|
453
443
|
|
454
444
|
#
|
@@ -461,11 +451,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
461
451
|
#
|
462
452
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
463
453
|
#
|
464
|
-
def list_by_automation_account_next_async(next_page_link, custom_headers
|
454
|
+
def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
|
465
455
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
466
456
|
|
467
457
|
|
468
458
|
request_headers = {}
|
459
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
469
460
|
|
470
461
|
# Set Headers
|
471
462
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -512,7 +503,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
512
503
|
#
|
513
504
|
# Retrieve a list of dsc node configurations.
|
514
505
|
#
|
515
|
-
# @param resource_group_name [String] The resource group name.
|
516
506
|
# @param automation_account_name [String] The automation account name.
|
517
507
|
# @param filter [String] The filter to apply on the operation.
|
518
508
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -521,12 +511,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
521
511
|
# @return [DscNodeConfigurationListResult] which provide lazy access to pages
|
522
512
|
# of the response.
|
523
513
|
#
|
524
|
-
def list_by_automation_account_as_lazy(
|
525
|
-
response = list_by_automation_account_async(
|
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!
|
526
516
|
unless response.nil?
|
527
517
|
page = response.body
|
528
518
|
page.next_method = Proc.new do |next_page_link|
|
529
|
-
list_by_automation_account_next_async(next_page_link, custom_headers)
|
519
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
|
530
520
|
end
|
531
521
|
page
|
532
522
|
end
|