azure_mgmt_automation 0.15.2 → 0.16.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 +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 credential.
|
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 credential_name [String] The name of credential.
|
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, credential_name, custom_headers:nil)
|
34
|
+
response = delete_async(automation_account_name, credential_name, custom_headers:custom_headers).value!
|
36
35
|
nil
|
37
36
|
end
|
38
37
|
|
39
38
|
#
|
40
39
|
# Delete the credential.
|
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 credential_name [String] The name of credential.
|
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, credential_name, custom_headers:nil)
|
49
|
+
delete_async(automation_account_name, credential_name, custom_headers:custom_headers).value!
|
52
50
|
end
|
53
51
|
|
54
52
|
#
|
55
53
|
# Delete the credential.
|
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 credential_name [String] The name of credential.
|
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, credential_name, custom_headers:nil)
|
63
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
64
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
68
65
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
69
66
|
fail ArgumentError, 'credential_name is nil' if credential_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,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
|
83
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_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 credential identified by credential 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 credential_name [String] The name of credential.
|
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 [Credential] operation results.
|
119
116
|
#
|
120
|
-
def get(
|
121
|
-
response = get_async(
|
117
|
+
def get(automation_account_name, credential_name, custom_headers:nil)
|
118
|
+
response = get_async(automation_account_name, credential_name, custom_headers:custom_headers).value!
|
122
119
|
response.body unless response.nil?
|
123
120
|
end
|
124
121
|
|
125
122
|
#
|
126
123
|
# Retrieve the credential identified by credential 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 credential_name [String] The name of credential.
|
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, credential_name, custom_headers:nil)
|
133
|
+
get_async(automation_account_name, credential_name, custom_headers:custom_headers).value!
|
138
134
|
end
|
139
135
|
|
140
136
|
#
|
141
137
|
# Retrieve the credential identified by credential 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 credential_name [String] The name of credential.
|
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, credential_name, custom_headers:nil)
|
147
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
148
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
154
149
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
155
150
|
fail ArgumentError, 'credential_name is nil' if credential_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,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
|
167
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_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 a credential.
|
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 credential_name [String] The parameters supplied to the create or
|
211
206
|
# update credential operation.
|
@@ -216,15 +211,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
216
211
|
#
|
217
212
|
# @return [Credential] operation results.
|
218
213
|
#
|
219
|
-
def create_or_update(
|
220
|
-
response = create_or_update_async(
|
214
|
+
def create_or_update(automation_account_name, credential_name, parameters, custom_headers:nil)
|
215
|
+
response = create_or_update_async(automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
|
221
216
|
response.body unless response.nil?
|
222
217
|
end
|
223
218
|
|
224
219
|
#
|
225
220
|
# Create a credential.
|
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 credential_name [String] The parameters supplied to the create or
|
230
224
|
# update credential operation.
|
@@ -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, credential_name, parameters, custom_headers:nil)
|
233
|
+
create_or_update_async(automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
|
240
234
|
end
|
241
235
|
|
242
236
|
#
|
243
237
|
# Create a credential.
|
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 credential_name [String] The parameters supplied to the create or
|
248
241
|
# update credential operation.
|
@@ -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, credential_name, parameters, custom_headers:nil)
|
250
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
251
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
259
252
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
260
253
|
fail ArgumentError, 'credential_name is nil' if credential_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::CredentialCreateOrUpdateParameters.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,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
|
277
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_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
|
# Update a credential.
|
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 credential_name [String] The parameters supplied to the Update
|
336
327
|
# credential operation.
|
@@ -341,15 +332,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
341
332
|
#
|
342
333
|
# @return [Credential] operation results.
|
343
334
|
#
|
344
|
-
def update(
|
345
|
-
response = update_async(
|
335
|
+
def update(automation_account_name, credential_name, parameters, custom_headers:nil)
|
336
|
+
response = update_async(automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
|
346
337
|
response.body unless response.nil?
|
347
338
|
end
|
348
339
|
|
349
340
|
#
|
350
341
|
# Update a credential.
|
351
342
|
#
|
352
|
-
# @param resource_group_name [String] The resource group name.
|
353
343
|
# @param automation_account_name [String] The automation account name.
|
354
344
|
# @param credential_name [String] The parameters supplied to the Update
|
355
345
|
# credential operation.
|
@@ -360,14 +350,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
360
350
|
#
|
361
351
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
362
352
|
#
|
363
|
-
def update_with_http_info(
|
364
|
-
update_async(
|
353
|
+
def update_with_http_info(automation_account_name, credential_name, parameters, custom_headers:nil)
|
354
|
+
update_async(automation_account_name, credential_name, parameters, custom_headers:custom_headers).value!
|
365
355
|
end
|
366
356
|
|
367
357
|
#
|
368
358
|
# Update a credential.
|
369
359
|
#
|
370
|
-
# @param resource_group_name [String] The resource group name.
|
371
360
|
# @param automation_account_name [String] The automation account name.
|
372
361
|
# @param credential_name [String] The parameters supplied to the Update
|
373
362
|
# credential operation.
|
@@ -378,9 +367,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
378
367
|
#
|
379
368
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
380
369
|
#
|
381
|
-
def update_async(
|
382
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
383
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
370
|
+
def update_async(automation_account_name, credential_name, parameters, custom_headers:nil)
|
371
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
372
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
384
373
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
385
374
|
fail ArgumentError, 'credential_name is nil' if credential_name.nil?
|
386
375
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -389,13 +378,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
389
378
|
|
390
379
|
|
391
380
|
request_headers = {}
|
381
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
392
382
|
|
393
383
|
# Set Headers
|
394
384
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
395
385
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
396
386
|
|
397
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
398
|
-
|
399
387
|
# Serialize Request
|
400
388
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters.mapper()
|
401
389
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -407,7 +395,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
407
395
|
|
408
396
|
options = {
|
409
397
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
410
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
|
398
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id},
|
411
399
|
query_params: {'api-version' => @client.api_version},
|
412
400
|
body: request_content,
|
413
401
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -445,51 +433,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
445
433
|
#
|
446
434
|
# Retrieve a list of credentials.
|
447
435
|
#
|
448
|
-
# @param resource_group_name [String] The resource group name.
|
449
436
|
# @param automation_account_name [String] The automation account name.
|
450
437
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
451
438
|
# will be added to the HTTP request.
|
452
439
|
#
|
453
440
|
# @return [Array<Credential>] operation results.
|
454
441
|
#
|
455
|
-
def list_by_automation_account(
|
456
|
-
first_page = list_by_automation_account_as_lazy(
|
442
|
+
def list_by_automation_account(automation_account_name, custom_headers:nil)
|
443
|
+
first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
|
457
444
|
first_page.get_all_items
|
458
445
|
end
|
459
446
|
|
460
447
|
#
|
461
448
|
# Retrieve a list of credentials.
|
462
449
|
#
|
463
|
-
# @param resource_group_name [String] The resource group name.
|
464
450
|
# @param automation_account_name [String] The automation account name.
|
465
451
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
466
452
|
# will be added to the HTTP request.
|
467
453
|
#
|
468
454
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
469
455
|
#
|
470
|
-
def list_by_automation_account_with_http_info(
|
471
|
-
list_by_automation_account_async(
|
456
|
+
def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
|
457
|
+
list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
472
458
|
end
|
473
459
|
|
474
460
|
#
|
475
461
|
# Retrieve a list of credentials.
|
476
462
|
#
|
477
|
-
# @param resource_group_name [String] The resource group name.
|
478
463
|
# @param automation_account_name [String] The automation account name.
|
479
464
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
480
465
|
# to the HTTP request.
|
481
466
|
#
|
482
467
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
483
468
|
#
|
484
|
-
def list_by_automation_account_async(
|
485
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
486
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
469
|
+
def list_by_automation_account_async(automation_account_name, custom_headers:nil)
|
470
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
471
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
487
472
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
488
473
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
489
474
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
490
475
|
|
491
476
|
|
492
477
|
request_headers = {}
|
478
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
493
479
|
|
494
480
|
# Set Headers
|
495
481
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -500,7 +486,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
500
486
|
|
501
487
|
options = {
|
502
488
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
503
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
489
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
504
490
|
query_params: {'api-version' => @client.api_version},
|
505
491
|
headers: request_headers.merge(custom_headers || {}),
|
506
492
|
base_url: request_url
|
@@ -544,8 +530,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
544
530
|
#
|
545
531
|
# @return [CredentialListResult] operation results.
|
546
532
|
#
|
547
|
-
def list_by_automation_account_next(next_page_link, custom_headers
|
548
|
-
response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
533
|
+
def list_by_automation_account_next(next_page_link, custom_headers:nil)
|
534
|
+
response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
549
535
|
response.body unless response.nil?
|
550
536
|
end
|
551
537
|
|
@@ -559,8 +545,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
559
545
|
#
|
560
546
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
561
547
|
#
|
562
|
-
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers
|
563
|
-
list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
548
|
+
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
|
549
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
564
550
|
end
|
565
551
|
|
566
552
|
#
|
@@ -573,11 +559,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
573
559
|
#
|
574
560
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
575
561
|
#
|
576
|
-
def list_by_automation_account_next_async(next_page_link, custom_headers
|
562
|
+
def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
|
577
563
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
578
564
|
|
579
565
|
|
580
566
|
request_headers = {}
|
567
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
581
568
|
|
582
569
|
# Set Headers
|
583
570
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -624,7 +611,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
624
611
|
#
|
625
612
|
# Retrieve a list of credentials.
|
626
613
|
#
|
627
|
-
# @param resource_group_name [String] The resource group name.
|
628
614
|
# @param automation_account_name [String] The automation account name.
|
629
615
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
630
616
|
# will be added to the HTTP request.
|
@@ -632,12 +618,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
632
618
|
# @return [CredentialListResult] which provide lazy access to pages of the
|
633
619
|
# response.
|
634
620
|
#
|
635
|
-
def list_by_automation_account_as_lazy(
|
636
|
-
response = list_by_automation_account_async(
|
621
|
+
def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
|
622
|
+
response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
637
623
|
unless response.nil?
|
638
624
|
page = response.body
|
639
625
|
page.next_method = Proc.new do |next_page_link|
|
640
|
-
list_by_automation_account_next_async(next_page_link, custom_headers)
|
626
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
|
641
627
|
end
|
642
628
|
page
|
643
629
|
end
|
@@ -24,7 +24,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Creates the Dsc compilation job of the 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 compilation_job_id The the DSC configuration Id.
|
30
29
|
# @param parameters [DscCompilationJobCreateParameters] The parameters supplied
|
@@ -34,15 +33,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
34
33
|
#
|
35
34
|
# @return [DscCompilationJob] operation results.
|
36
35
|
#
|
37
|
-
def create(
|
38
|
-
response = create_async(
|
36
|
+
def create(automation_account_name, compilation_job_id, parameters, custom_headers:nil)
|
37
|
+
response = create_async(automation_account_name, compilation_job_id, parameters, custom_headers:custom_headers).value!
|
39
38
|
response.body unless response.nil?
|
40
39
|
end
|
41
40
|
|
42
41
|
#
|
43
42
|
# Creates the Dsc compilation job of the configuration.
|
44
43
|
#
|
45
|
-
# @param resource_group_name [String] The resource group name.
|
46
44
|
# @param automation_account_name [String] The automation account name.
|
47
45
|
# @param compilation_job_id The the DSC configuration Id.
|
48
46
|
# @param parameters [DscCompilationJobCreateParameters] The parameters supplied
|
@@ -52,14 +50,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
52
50
|
#
|
53
51
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
52
|
#
|
55
|
-
def create_with_http_info(
|
56
|
-
create_async(
|
53
|
+
def create_with_http_info(automation_account_name, compilation_job_id, parameters, custom_headers:nil)
|
54
|
+
create_async(automation_account_name, compilation_job_id, parameters, custom_headers:custom_headers).value!
|
57
55
|
end
|
58
56
|
|
59
57
|
#
|
60
58
|
# Creates the Dsc compilation job of the configuration.
|
61
59
|
#
|
62
|
-
# @param resource_group_name [String] The resource group name.
|
63
60
|
# @param automation_account_name [String] The automation account name.
|
64
61
|
# @param compilation_job_id The the DSC configuration Id.
|
65
62
|
# @param parameters [DscCompilationJobCreateParameters] The parameters supplied
|
@@ -69,9 +66,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
69
66
|
#
|
70
67
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
68
|
#
|
72
|
-
def create_async(
|
73
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
69
|
+
def create_async(automation_account_name, compilation_job_id, parameters, custom_headers:nil)
|
70
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
71
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
75
72
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
76
73
|
fail ArgumentError, 'compilation_job_id is nil' if compilation_job_id.nil?
|
77
74
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -80,13 +77,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
80
77
|
|
81
78
|
|
82
79
|
request_headers = {}
|
80
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
83
81
|
|
84
82
|
# Set Headers
|
85
83
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
86
84
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
87
85
|
|
88
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
89
|
-
|
90
86
|
# Serialize Request
|
91
87
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobCreateParameters.mapper()
|
92
88
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -98,7 +94,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
98
94
|
|
99
95
|
options = {
|
100
96
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
101
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id},
|
97
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id},
|
102
98
|
query_params: {'api-version' => @client.api_version},
|
103
99
|
body: request_content,
|
104
100
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -136,7 +132,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
136
132
|
#
|
137
133
|
# Retrieve the Dsc configuration compilation job identified by job id.
|
138
134
|
#
|
139
|
-
# @param resource_group_name [String] The resource group name.
|
140
135
|
# @param automation_account_name [String] The automation account name.
|
141
136
|
# @param compilation_job_id The Dsc configuration compilation job id.
|
142
137
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -144,15 +139,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
144
139
|
#
|
145
140
|
# @return [DscCompilationJob] operation results.
|
146
141
|
#
|
147
|
-
def get(
|
148
|
-
response = get_async(
|
142
|
+
def get(automation_account_name, compilation_job_id, custom_headers:nil)
|
143
|
+
response = get_async(automation_account_name, compilation_job_id, custom_headers:custom_headers).value!
|
149
144
|
response.body unless response.nil?
|
150
145
|
end
|
151
146
|
|
152
147
|
#
|
153
148
|
# Retrieve the Dsc configuration compilation job identified by job id.
|
154
149
|
#
|
155
|
-
# @param resource_group_name [String] The resource group name.
|
156
150
|
# @param automation_account_name [String] The automation account name.
|
157
151
|
# @param compilation_job_id The Dsc configuration compilation job id.
|
158
152
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -160,14 +154,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
160
154
|
#
|
161
155
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
162
156
|
#
|
163
|
-
def get_with_http_info(
|
164
|
-
get_async(
|
157
|
+
def get_with_http_info(automation_account_name, compilation_job_id, custom_headers:nil)
|
158
|
+
get_async(automation_account_name, compilation_job_id, custom_headers:custom_headers).value!
|
165
159
|
end
|
166
160
|
|
167
161
|
#
|
168
162
|
# Retrieve the Dsc configuration compilation job identified by job id.
|
169
163
|
#
|
170
|
-
# @param resource_group_name [String] The resource group name.
|
171
164
|
# @param automation_account_name [String] The automation account name.
|
172
165
|
# @param compilation_job_id The Dsc configuration compilation job id.
|
173
166
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -175,9 +168,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
175
168
|
#
|
176
169
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
177
170
|
#
|
178
|
-
def get_async(
|
179
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
180
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
171
|
+
def get_async(automation_account_name, compilation_job_id, custom_headers:nil)
|
172
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
173
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
181
174
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
182
175
|
fail ArgumentError, 'compilation_job_id is nil' if compilation_job_id.nil?
|
183
176
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -185,6 +178,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
185
178
|
|
186
179
|
|
187
180
|
request_headers = {}
|
181
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
188
182
|
|
189
183
|
# Set Headers
|
190
184
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -195,7 +189,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
195
189
|
|
196
190
|
options = {
|
197
191
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
198
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id},
|
192
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id},
|
199
193
|
query_params: {'api-version' => @client.api_version},
|
200
194
|
headers: request_headers.merge(custom_headers || {}),
|
201
195
|
base_url: request_url
|
@@ -232,7 +226,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
232
226
|
#
|
233
227
|
# Retrieve a list of dsc compilation jobs.
|
234
228
|
#
|
235
|
-
# @param resource_group_name [String] The resource group name.
|
236
229
|
# @param automation_account_name [String] The automation account name.
|
237
230
|
# @param filter [String] The filter to apply on the operation.
|
238
231
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -240,15 +233,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
240
233
|
#
|
241
234
|
# @return [Array<DscCompilationJob>] operation results.
|
242
235
|
#
|
243
|
-
def list_by_automation_account(
|
244
|
-
first_page = list_by_automation_account_as_lazy(
|
236
|
+
def list_by_automation_account(automation_account_name, filter:nil, custom_headers:nil)
|
237
|
+
first_page = list_by_automation_account_as_lazy(automation_account_name, filter:filter, custom_headers:custom_headers)
|
245
238
|
first_page.get_all_items
|
246
239
|
end
|
247
240
|
|
248
241
|
#
|
249
242
|
# Retrieve a list of dsc compilation jobs.
|
250
243
|
#
|
251
|
-
# @param resource_group_name [String] The resource group name.
|
252
244
|
# @param automation_account_name [String] The automation account name.
|
253
245
|
# @param filter [String] The filter to apply on the operation.
|
254
246
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -256,14 +248,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
256
248
|
#
|
257
249
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
258
250
|
#
|
259
|
-
def list_by_automation_account_with_http_info(
|
260
|
-
list_by_automation_account_async(
|
251
|
+
def list_by_automation_account_with_http_info(automation_account_name, filter:nil, custom_headers:nil)
|
252
|
+
list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
261
253
|
end
|
262
254
|
|
263
255
|
#
|
264
256
|
# Retrieve a list of dsc compilation jobs.
|
265
257
|
#
|
266
|
-
# @param resource_group_name [String] The resource group name.
|
267
258
|
# @param automation_account_name [String] The automation account name.
|
268
259
|
# @param filter [String] The filter to apply on the operation.
|
269
260
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -271,15 +262,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
271
262
|
#
|
272
263
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
273
264
|
#
|
274
|
-
def list_by_automation_account_async(
|
275
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
276
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
265
|
+
def list_by_automation_account_async(automation_account_name, filter:nil, custom_headers:nil)
|
266
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
267
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
277
268
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
278
269
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
279
270
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
280
271
|
|
281
272
|
|
282
273
|
request_headers = {}
|
274
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
283
275
|
|
284
276
|
# Set Headers
|
285
277
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -290,7 +282,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
290
282
|
|
291
283
|
options = {
|
292
284
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
293
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
285
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
294
286
|
query_params: {'$filter' => filter,'api-version' => @client.api_version},
|
295
287
|
headers: request_headers.merge(custom_headers || {}),
|
296
288
|
base_url: request_url
|
@@ -327,7 +319,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
327
319
|
#
|
328
320
|
# Retrieve the job stream identified by job stream id.
|
329
321
|
#
|
330
|
-
# @param resource_group_name [String] The resource group name.
|
331
322
|
# @param automation_account_name [String] The automation account name.
|
332
323
|
# @param job_id The job id.
|
333
324
|
# @param job_stream_id [String] The job stream id.
|
@@ -336,15 +327,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
336
327
|
#
|
337
328
|
# @return [JobStream] operation results.
|
338
329
|
#
|
339
|
-
def get_stream(
|
340
|
-
response = get_stream_async(
|
330
|
+
def get_stream(automation_account_name, job_id, job_stream_id, custom_headers:nil)
|
331
|
+
response = get_stream_async(automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
|
341
332
|
response.body unless response.nil?
|
342
333
|
end
|
343
334
|
|
344
335
|
#
|
345
336
|
# Retrieve the job stream identified by job stream id.
|
346
337
|
#
|
347
|
-
# @param resource_group_name [String] The resource group name.
|
348
338
|
# @param automation_account_name [String] The automation account name.
|
349
339
|
# @param job_id The job id.
|
350
340
|
# @param job_stream_id [String] The job stream id.
|
@@ -353,14 +343,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
353
343
|
#
|
354
344
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
355
345
|
#
|
356
|
-
def get_stream_with_http_info(
|
357
|
-
get_stream_async(
|
346
|
+
def get_stream_with_http_info(automation_account_name, job_id, job_stream_id, custom_headers:nil)
|
347
|
+
get_stream_async(automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
|
358
348
|
end
|
359
349
|
|
360
350
|
#
|
361
351
|
# Retrieve the job stream identified by job stream id.
|
362
352
|
#
|
363
|
-
# @param resource_group_name [String] The resource group name.
|
364
353
|
# @param automation_account_name [String] The automation account name.
|
365
354
|
# @param job_id The job id.
|
366
355
|
# @param job_stream_id [String] The job stream id.
|
@@ -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_stream_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_stream_async(automation_account_name, job_id, job_stream_id, custom_headers:nil)
|
362
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
363
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
375
364
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
376
365
|
fail ArgumentError, 'job_id is nil' if job_id.nil?
|
377
366
|
fail ArgumentError, 'job_stream_id is nil' if job_stream_id.nil?
|
@@ -380,6 +369,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
380
369
|
|
381
370
|
|
382
371
|
request_headers = {}
|
372
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
383
373
|
|
384
374
|
# Set Headers
|
385
375
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -390,7 +380,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
390
380
|
|
391
381
|
options = {
|
392
382
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
393
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id},
|
383
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id},
|
394
384
|
query_params: {'api-version' => @client.api_version},
|
395
385
|
headers: request_headers.merge(custom_headers || {}),
|
396
386
|
base_url: request_url
|
@@ -434,8 +424,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
434
424
|
#
|
435
425
|
# @return [DscCompilationJobListResult] operation results.
|
436
426
|
#
|
437
|
-
def list_by_automation_account_next(next_page_link, custom_headers
|
438
|
-
response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
427
|
+
def list_by_automation_account_next(next_page_link, custom_headers:nil)
|
428
|
+
response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
439
429
|
response.body unless response.nil?
|
440
430
|
end
|
441
431
|
|
@@ -449,8 +439,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
449
439
|
#
|
450
440
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
451
441
|
#
|
452
|
-
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers
|
453
|
-
list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
442
|
+
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
|
443
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
454
444
|
end
|
455
445
|
|
456
446
|
#
|
@@ -463,11 +453,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
463
453
|
#
|
464
454
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
465
455
|
#
|
466
|
-
def list_by_automation_account_next_async(next_page_link, custom_headers
|
456
|
+
def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
|
467
457
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
468
458
|
|
469
459
|
|
470
460
|
request_headers = {}
|
461
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
471
462
|
|
472
463
|
# Set Headers
|
473
464
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -514,7 +505,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
514
505
|
#
|
515
506
|
# Retrieve a list of dsc compilation jobs.
|
516
507
|
#
|
517
|
-
# @param resource_group_name [String] The resource group name.
|
518
508
|
# @param automation_account_name [String] The automation account name.
|
519
509
|
# @param filter [String] The filter to apply on the operation.
|
520
510
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -523,12 +513,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
523
513
|
# @return [DscCompilationJobListResult] which provide lazy access to pages of
|
524
514
|
# the response.
|
525
515
|
#
|
526
|
-
def list_by_automation_account_as_lazy(
|
527
|
-
response = list_by_automation_account_async(
|
516
|
+
def list_by_automation_account_as_lazy(automation_account_name, filter:nil, custom_headers:nil)
|
517
|
+
response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
528
518
|
unless response.nil?
|
529
519
|
page = response.body
|
530
520
|
page.next_method = Proc.new do |next_page_link|
|
531
|
-
list_by_automation_account_next_async(next_page_link, custom_headers)
|
521
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
|
532
522
|
end
|
533
523
|
page
|
534
524
|
end
|