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,7 +24,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Create a schedule.
|
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 schedule_name [String] The schedule name.
|
30
29
|
# @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied
|
@@ -34,15 +33,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
34
33
|
#
|
35
34
|
# @return [Schedule] operation results.
|
36
35
|
#
|
37
|
-
def create_or_update(
|
38
|
-
response = create_or_update_async(
|
36
|
+
def create_or_update(automation_account_name, schedule_name, parameters, custom_headers:nil)
|
37
|
+
response = create_or_update_async(automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
|
39
38
|
response.body unless response.nil?
|
40
39
|
end
|
41
40
|
|
42
41
|
#
|
43
42
|
# Create a schedule.
|
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 schedule_name [String] The schedule name.
|
48
46
|
# @param parameters [ScheduleCreateOrUpdateParameters] 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_or_update_with_http_info(
|
56
|
-
create_or_update_async(
|
53
|
+
def create_or_update_with_http_info(automation_account_name, schedule_name, parameters, custom_headers:nil)
|
54
|
+
create_or_update_async(automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
|
57
55
|
end
|
58
56
|
|
59
57
|
#
|
60
58
|
# Create a schedule.
|
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 schedule_name [String] The schedule name.
|
65
62
|
# @param parameters [ScheduleCreateOrUpdateParameters] 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_or_update_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_or_update_async(automation_account_name, schedule_name, 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, 'schedule_name is nil' if schedule_name.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::ScheduleCreateOrUpdateParameters.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,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
|
97
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'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
|
# Update the schedule identified by schedule name.
|
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 schedule_name [String] The schedule name.
|
142
137
|
# @param parameters [ScheduleUpdateParameters] The parameters supplied to the
|
@@ -146,15 +141,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
146
141
|
#
|
147
142
|
# @return [Schedule] operation results.
|
148
143
|
#
|
149
|
-
def update(
|
150
|
-
response = update_async(
|
144
|
+
def update(automation_account_name, schedule_name, parameters, custom_headers:nil)
|
145
|
+
response = update_async(automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
|
151
146
|
response.body unless response.nil?
|
152
147
|
end
|
153
148
|
|
154
149
|
#
|
155
150
|
# Update the schedule identified by schedule name.
|
156
151
|
#
|
157
|
-
# @param resource_group_name [String] The resource group name.
|
158
152
|
# @param automation_account_name [String] The automation account name.
|
159
153
|
# @param schedule_name [String] The schedule name.
|
160
154
|
# @param parameters [ScheduleUpdateParameters] The parameters supplied to the
|
@@ -164,14 +158,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
164
158
|
#
|
165
159
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
166
160
|
#
|
167
|
-
def update_with_http_info(
|
168
|
-
update_async(
|
161
|
+
def update_with_http_info(automation_account_name, schedule_name, parameters, custom_headers:nil)
|
162
|
+
update_async(automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
|
169
163
|
end
|
170
164
|
|
171
165
|
#
|
172
166
|
# Update the schedule identified by schedule name.
|
173
167
|
#
|
174
|
-
# @param resource_group_name [String] The resource group name.
|
175
168
|
# @param automation_account_name [String] The automation account name.
|
176
169
|
# @param schedule_name [String] The schedule name.
|
177
170
|
# @param parameters [ScheduleUpdateParameters] The parameters supplied to the
|
@@ -181,9 +174,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
181
174
|
#
|
182
175
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
183
176
|
#
|
184
|
-
def update_async(
|
185
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
186
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
177
|
+
def update_async(automation_account_name, schedule_name, parameters, custom_headers:nil)
|
178
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
179
|
+
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?
|
187
180
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
188
181
|
fail ArgumentError, 'schedule_name is nil' if schedule_name.nil?
|
189
182
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -192,13 +185,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
192
185
|
|
193
186
|
|
194
187
|
request_headers = {}
|
188
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
195
189
|
|
196
190
|
# Set Headers
|
197
191
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
198
192
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
199
193
|
|
200
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
201
|
-
|
202
194
|
# Serialize Request
|
203
195
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleUpdateParameters.mapper()
|
204
196
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -210,7 +202,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
210
202
|
|
211
203
|
options = {
|
212
204
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
213
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
|
205
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
|
214
206
|
query_params: {'api-version' => @client.api_version},
|
215
207
|
body: request_content,
|
216
208
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -248,7 +240,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
248
240
|
#
|
249
241
|
# Retrieve the schedule identified by schedule name.
|
250
242
|
#
|
251
|
-
# @param resource_group_name [String] The resource group name.
|
252
243
|
# @param automation_account_name [String] The automation account name.
|
253
244
|
# @param schedule_name [String] The schedule name.
|
254
245
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -256,15 +247,14 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
256
247
|
#
|
257
248
|
# @return [Schedule] operation results.
|
258
249
|
#
|
259
|
-
def get(
|
260
|
-
response = get_async(
|
250
|
+
def get(automation_account_name, schedule_name, custom_headers:nil)
|
251
|
+
response = get_async(automation_account_name, schedule_name, custom_headers:custom_headers).value!
|
261
252
|
response.body unless response.nil?
|
262
253
|
end
|
263
254
|
|
264
255
|
#
|
265
256
|
# Retrieve the schedule identified by schedule name.
|
266
257
|
#
|
267
|
-
# @param resource_group_name [String] The resource group name.
|
268
258
|
# @param automation_account_name [String] The automation account name.
|
269
259
|
# @param schedule_name [String] The schedule name.
|
270
260
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -272,14 +262,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
272
262
|
#
|
273
263
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
274
264
|
#
|
275
|
-
def get_with_http_info(
|
276
|
-
get_async(
|
265
|
+
def get_with_http_info(automation_account_name, schedule_name, custom_headers:nil)
|
266
|
+
get_async(automation_account_name, schedule_name, custom_headers:custom_headers).value!
|
277
267
|
end
|
278
268
|
|
279
269
|
#
|
280
270
|
# Retrieve the schedule identified by schedule name.
|
281
271
|
#
|
282
|
-
# @param resource_group_name [String] The resource group name.
|
283
272
|
# @param automation_account_name [String] The automation account name.
|
284
273
|
# @param schedule_name [String] The schedule name.
|
285
274
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -287,9 +276,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
287
276
|
#
|
288
277
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
289
278
|
#
|
290
|
-
def get_async(
|
291
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
292
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
279
|
+
def get_async(automation_account_name, schedule_name, custom_headers:nil)
|
280
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
281
|
+
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?
|
293
282
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
294
283
|
fail ArgumentError, 'schedule_name is nil' if schedule_name.nil?
|
295
284
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -297,6 +286,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
297
286
|
|
298
287
|
|
299
288
|
request_headers = {}
|
289
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
300
290
|
|
301
291
|
# Set Headers
|
302
292
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -307,7 +297,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
307
297
|
|
308
298
|
options = {
|
309
299
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
310
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
|
300
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
|
311
301
|
query_params: {'api-version' => @client.api_version},
|
312
302
|
headers: request_headers.merge(custom_headers || {}),
|
313
303
|
base_url: request_url
|
@@ -344,22 +334,20 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
344
334
|
#
|
345
335
|
# Delete the schedule identified by schedule name.
|
346
336
|
#
|
347
|
-
# @param resource_group_name [String] The resource group name.
|
348
337
|
# @param automation_account_name [String] The automation account name.
|
349
338
|
# @param schedule_name [String] The schedule name.
|
350
339
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
351
340
|
# will be added to the HTTP request.
|
352
341
|
#
|
353
342
|
#
|
354
|
-
def delete(
|
355
|
-
response = delete_async(
|
343
|
+
def delete(automation_account_name, schedule_name, custom_headers:nil)
|
344
|
+
response = delete_async(automation_account_name, schedule_name, custom_headers:custom_headers).value!
|
356
345
|
nil
|
357
346
|
end
|
358
347
|
|
359
348
|
#
|
360
349
|
# Delete the schedule identified by schedule name.
|
361
350
|
#
|
362
|
-
# @param resource_group_name [String] The resource group name.
|
363
351
|
# @param automation_account_name [String] The automation account name.
|
364
352
|
# @param schedule_name [String] The schedule name.
|
365
353
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -367,14 +355,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
367
355
|
#
|
368
356
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
369
357
|
#
|
370
|
-
def delete_with_http_info(
|
371
|
-
delete_async(
|
358
|
+
def delete_with_http_info(automation_account_name, schedule_name, custom_headers:nil)
|
359
|
+
delete_async(automation_account_name, schedule_name, custom_headers:custom_headers).value!
|
372
360
|
end
|
373
361
|
|
374
362
|
#
|
375
363
|
# Delete the schedule identified by schedule name.
|
376
364
|
#
|
377
|
-
# @param resource_group_name [String] The resource group name.
|
378
365
|
# @param automation_account_name [String] The automation account name.
|
379
366
|
# @param schedule_name [String] The schedule name.
|
380
367
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -382,9 +369,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
382
369
|
#
|
383
370
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
384
371
|
#
|
385
|
-
def delete_async(
|
386
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
387
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
372
|
+
def delete_async(automation_account_name, schedule_name, custom_headers:nil)
|
373
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
374
|
+
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
388
375
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
389
376
|
fail ArgumentError, 'schedule_name is nil' if schedule_name.nil?
|
390
377
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -392,6 +379,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
392
379
|
|
393
380
|
|
394
381
|
request_headers = {}
|
382
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
395
383
|
|
396
384
|
# Set Headers
|
397
385
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -402,7 +390,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
402
390
|
|
403
391
|
options = {
|
404
392
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
405
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
|
393
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id},
|
406
394
|
query_params: {'api-version' => @client.api_version},
|
407
395
|
headers: request_headers.merge(custom_headers || {}),
|
408
396
|
base_url: request_url
|
@@ -429,51 +417,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
429
417
|
#
|
430
418
|
# Retrieve a list of schedules.
|
431
419
|
#
|
432
|
-
# @param resource_group_name [String] The resource group name.
|
433
420
|
# @param automation_account_name [String] The automation account name.
|
434
421
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
435
422
|
# will be added to the HTTP request.
|
436
423
|
#
|
437
424
|
# @return [Array<Schedule>] operation results.
|
438
425
|
#
|
439
|
-
def list_by_automation_account(
|
440
|
-
first_page = list_by_automation_account_as_lazy(
|
426
|
+
def list_by_automation_account(automation_account_name, custom_headers:nil)
|
427
|
+
first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
|
441
428
|
first_page.get_all_items
|
442
429
|
end
|
443
430
|
|
444
431
|
#
|
445
432
|
# Retrieve a list of schedules.
|
446
433
|
#
|
447
|
-
# @param resource_group_name [String] The resource group name.
|
448
434
|
# @param automation_account_name [String] The automation account name.
|
449
435
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
450
436
|
# will be added to the HTTP request.
|
451
437
|
#
|
452
438
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
453
439
|
#
|
454
|
-
def list_by_automation_account_with_http_info(
|
455
|
-
list_by_automation_account_async(
|
440
|
+
def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
|
441
|
+
list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
456
442
|
end
|
457
443
|
|
458
444
|
#
|
459
445
|
# Retrieve a list of schedules.
|
460
446
|
#
|
461
|
-
# @param resource_group_name [String] The resource group name.
|
462
447
|
# @param automation_account_name [String] The automation account name.
|
463
448
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
464
449
|
# to the HTTP request.
|
465
450
|
#
|
466
451
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
467
452
|
#
|
468
|
-
def list_by_automation_account_async(
|
469
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
470
|
-
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if
|
453
|
+
def list_by_automation_account_async(automation_account_name, custom_headers:nil)
|
454
|
+
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
455
|
+
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?
|
471
456
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
472
457
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
473
458
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
474
459
|
|
475
460
|
|
476
461
|
request_headers = {}
|
462
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
477
463
|
|
478
464
|
# Set Headers
|
479
465
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -484,7 +470,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
484
470
|
|
485
471
|
options = {
|
486
472
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
487
|
-
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
473
|
+
path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
488
474
|
query_params: {'api-version' => @client.api_version},
|
489
475
|
headers: request_headers.merge(custom_headers || {}),
|
490
476
|
base_url: request_url
|
@@ -528,8 +514,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
528
514
|
#
|
529
515
|
# @return [ScheduleListResult] operation results.
|
530
516
|
#
|
531
|
-
def list_by_automation_account_next(next_page_link, custom_headers
|
532
|
-
response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
517
|
+
def list_by_automation_account_next(next_page_link, custom_headers:nil)
|
518
|
+
response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
533
519
|
response.body unless response.nil?
|
534
520
|
end
|
535
521
|
|
@@ -543,8 +529,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
543
529
|
#
|
544
530
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
545
531
|
#
|
546
|
-
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers
|
547
|
-
list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
532
|
+
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
|
533
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
548
534
|
end
|
549
535
|
|
550
536
|
#
|
@@ -557,11 +543,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
557
543
|
#
|
558
544
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
559
545
|
#
|
560
|
-
def list_by_automation_account_next_async(next_page_link, custom_headers
|
546
|
+
def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
|
561
547
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
562
548
|
|
563
549
|
|
564
550
|
request_headers = {}
|
551
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
565
552
|
|
566
553
|
# Set Headers
|
567
554
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -608,7 +595,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
608
595
|
#
|
609
596
|
# Retrieve a list of schedules.
|
610
597
|
#
|
611
|
-
# @param resource_group_name [String] The resource group name.
|
612
598
|
# @param automation_account_name [String] The automation account name.
|
613
599
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
614
600
|
# will be added to the HTTP request.
|
@@ -616,12 +602,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
616
602
|
# @return [ScheduleListResult] which provide lazy access to pages of the
|
617
603
|
# response.
|
618
604
|
#
|
619
|
-
def list_by_automation_account_as_lazy(
|
620
|
-
response = list_by_automation_account_async(
|
605
|
+
def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
|
606
|
+
response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
621
607
|
unless response.nil?
|
622
608
|
page = response.body
|
623
609
|
page.next_method = Proc.new do |next_page_link|
|
624
|
-
list_by_automation_account_next_async(next_page_link, custom_headers)
|
610
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
|
625
611
|
end
|
626
612
|
page
|
627
613
|
end
|
@@ -32,8 +32,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
32
32
|
#
|
33
33
|
# @return [StatisticsListResult] operation results.
|
34
34
|
#
|
35
|
-
def list_by_automation_account(resource_group_name, automation_account_name, filter
|
36
|
-
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
|
35
|
+
def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
36
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
37
37
|
response.body unless response.nil?
|
38
38
|
end
|
39
39
|
|
@@ -48,8 +48,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
48
48
|
#
|
49
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
50
|
#
|
51
|
-
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter
|
52
|
-
list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
|
51
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
52
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
53
53
|
end
|
54
54
|
|
55
55
|
#
|
@@ -63,7 +63,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
63
63
|
#
|
64
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
65
|
#
|
66
|
-
def list_by_automation_account_async(resource_group_name, automation_account_name, filter
|
66
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
67
67
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
68
68
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
69
69
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
@@ -72,6 +72,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
72
72
|
|
73
73
|
|
74
74
|
request_headers = {}
|
75
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
75
76
|
|
76
77
|
# Set Headers
|
77
78
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|