azure_mgmt_automation 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation.rb +110 -97
- data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +36 -25
- data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +32 -22
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +38 -31
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +22 -12
- data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +68 -47
- data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +68 -47
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_stream.rb +124 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +218 -61
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +69 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +68 -47
- data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +16 -11
- data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +73 -48
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +132 -91
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +73 -48
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +36 -25
- data/lib/2015-10-31/generated/azure_mgmt_automation/keys.rb +120 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/linked_workspace_operations.rb +120 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb +35 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_validation_set.rb +47 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb +2 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +2 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb +9 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_name.rb +16 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb +16 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +44 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +3 -3
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb +20 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_update_parameters.rb +132 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +1 -25
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +20 -15
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +4 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/group_type_enum.rb +16 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +11 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb +37 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb +0 -42
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state.rb +18 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/key.rb +73 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb +56 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/{sub_resource.rb → linked_workspace.rb} +7 -6
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb +20 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/proxy_resource.rb +62 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb +4 -34
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb +9 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb +2 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb +11 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +0 -11
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/tracked_resource.rb +92 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +23 -7
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +53 -54
- data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +32 -22
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +150 -107
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +130 -78
- data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +96 -60
- data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +8 -6
- data/lib/2015-10-31/generated/azure_mgmt_automation/{test_jobs.rb → test_job_operations.rb} +87 -62
- data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +44 -30
- data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +8 -6
- data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +100 -69
- data/lib/profiles/latest/modules/automation_profile_module.rb +364 -318
- data/lib/version.rb +1 -1
- metadata +19 -6
@@ -24,44 +24,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Delete the job schedule identified by job schedule name.
|
26
26
|
#
|
27
|
-
# @param
|
27
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
28
|
+
# @param automation_account_name [String] The name of the automation account.
|
28
29
|
# @param job_schedule_id The job schedule name.
|
29
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
31
|
# will be added to the HTTP request.
|
31
32
|
#
|
32
33
|
#
|
33
|
-
def delete(automation_account_name, job_schedule_id, custom_headers:nil)
|
34
|
-
response = delete_async(automation_account_name, job_schedule_id, custom_headers:custom_headers).value!
|
34
|
+
def delete(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil)
|
35
|
+
response = delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:custom_headers).value!
|
35
36
|
nil
|
36
37
|
end
|
37
38
|
|
38
39
|
#
|
39
40
|
# Delete the job schedule identified by job schedule name.
|
40
41
|
#
|
41
|
-
# @param
|
42
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
43
|
+
# @param automation_account_name [String] The name of the automation account.
|
42
44
|
# @param job_schedule_id The job schedule name.
|
43
45
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
44
46
|
# will be added to the HTTP request.
|
45
47
|
#
|
46
48
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
47
49
|
#
|
48
|
-
def delete_with_http_info(automation_account_name, job_schedule_id, custom_headers:nil)
|
49
|
-
delete_async(automation_account_name, job_schedule_id, custom_headers:custom_headers).value!
|
50
|
+
def delete_with_http_info(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil)
|
51
|
+
delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:custom_headers).value!
|
50
52
|
end
|
51
53
|
|
52
54
|
#
|
53
55
|
# Delete the job schedule identified by job schedule name.
|
54
56
|
#
|
55
|
-
# @param
|
57
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
58
|
+
# @param automation_account_name [String] The name of the automation account.
|
56
59
|
# @param job_schedule_id The job schedule name.
|
57
60
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
58
61
|
# to the HTTP request.
|
59
62
|
#
|
60
63
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
61
64
|
#
|
62
|
-
def delete_async(automation_account_name, job_schedule_id, custom_headers:nil)
|
63
|
-
fail ArgumentError, '
|
64
|
-
fail ArgumentError, "'
|
65
|
+
def delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil)
|
66
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
67
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
68
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
69
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
65
70
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
66
71
|
fail ArgumentError, 'job_schedule_id is nil' if job_schedule_id.nil?
|
67
72
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -80,7 +85,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
80
85
|
|
81
86
|
options = {
|
82
87
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
83
|
-
path_params: {'resourceGroupName' =>
|
88
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id},
|
84
89
|
query_params: {'api-version' => @client.api_version},
|
85
90
|
headers: request_headers.merge(custom_headers || {}),
|
86
91
|
base_url: request_url
|
@@ -107,45 +112,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
107
112
|
#
|
108
113
|
# Retrieve the job schedule identified by job schedule name.
|
109
114
|
#
|
110
|
-
# @param
|
115
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
116
|
+
# @param automation_account_name [String] The name of the automation account.
|
111
117
|
# @param job_schedule_id The job schedule name.
|
112
118
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
113
119
|
# will be added to the HTTP request.
|
114
120
|
#
|
115
121
|
# @return [JobSchedule] operation results.
|
116
122
|
#
|
117
|
-
def get(automation_account_name, job_schedule_id, custom_headers:nil)
|
118
|
-
response = get_async(automation_account_name, job_schedule_id, custom_headers:custom_headers).value!
|
123
|
+
def get(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil)
|
124
|
+
response = get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:custom_headers).value!
|
119
125
|
response.body unless response.nil?
|
120
126
|
end
|
121
127
|
|
122
128
|
#
|
123
129
|
# Retrieve the job schedule identified by job schedule name.
|
124
130
|
#
|
125
|
-
# @param
|
131
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
132
|
+
# @param automation_account_name [String] The name of the automation account.
|
126
133
|
# @param job_schedule_id The job schedule name.
|
127
134
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
128
135
|
# will be added to the HTTP request.
|
129
136
|
#
|
130
137
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
131
138
|
#
|
132
|
-
def get_with_http_info(automation_account_name, job_schedule_id, custom_headers:nil)
|
133
|
-
get_async(automation_account_name, job_schedule_id, custom_headers:custom_headers).value!
|
139
|
+
def get_with_http_info(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil)
|
140
|
+
get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:custom_headers).value!
|
134
141
|
end
|
135
142
|
|
136
143
|
#
|
137
144
|
# Retrieve the job schedule identified by job schedule name.
|
138
145
|
#
|
139
|
-
# @param
|
146
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
147
|
+
# @param automation_account_name [String] The name of the automation account.
|
140
148
|
# @param job_schedule_id The job schedule name.
|
141
149
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
142
150
|
# to the HTTP request.
|
143
151
|
#
|
144
152
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
145
153
|
#
|
146
|
-
def get_async(automation_account_name, job_schedule_id, custom_headers:nil)
|
147
|
-
fail ArgumentError, '
|
148
|
-
fail ArgumentError, "'
|
154
|
+
def get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil)
|
155
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
156
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
157
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
158
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
149
159
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
150
160
|
fail ArgumentError, 'job_schedule_id is nil' if job_schedule_id.nil?
|
151
161
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -164,7 +174,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
164
174
|
|
165
175
|
options = {
|
166
176
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
167
|
-
path_params: {'resourceGroupName' =>
|
177
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id},
|
168
178
|
query_params: {'api-version' => @client.api_version},
|
169
179
|
headers: request_headers.merge(custom_headers || {}),
|
170
180
|
base_url: request_url
|
@@ -201,7 +211,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
201
211
|
#
|
202
212
|
# Create a job schedule.
|
203
213
|
#
|
204
|
-
# @param
|
214
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
215
|
+
# @param automation_account_name [String] The name of the automation account.
|
205
216
|
# @param job_schedule_id The job schedule name.
|
206
217
|
# @param parameters [JobScheduleCreateParameters] The parameters supplied to
|
207
218
|
# the create job schedule operation.
|
@@ -210,15 +221,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
210
221
|
#
|
211
222
|
# @return [JobSchedule] operation results.
|
212
223
|
#
|
213
|
-
def create(automation_account_name, job_schedule_id, parameters, custom_headers:nil)
|
214
|
-
response = create_async(automation_account_name, job_schedule_id, parameters, custom_headers:custom_headers).value!
|
224
|
+
def create(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers:nil)
|
225
|
+
response = create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers:custom_headers).value!
|
215
226
|
response.body unless response.nil?
|
216
227
|
end
|
217
228
|
|
218
229
|
#
|
219
230
|
# Create a job schedule.
|
220
231
|
#
|
221
|
-
# @param
|
232
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
233
|
+
# @param automation_account_name [String] The name of the automation account.
|
222
234
|
# @param job_schedule_id The job schedule name.
|
223
235
|
# @param parameters [JobScheduleCreateParameters] The parameters supplied to
|
224
236
|
# the create job schedule operation.
|
@@ -227,14 +239,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
227
239
|
#
|
228
240
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
229
241
|
#
|
230
|
-
def create_with_http_info(automation_account_name, job_schedule_id, parameters, custom_headers:nil)
|
231
|
-
create_async(automation_account_name, job_schedule_id, parameters, custom_headers:custom_headers).value!
|
242
|
+
def create_with_http_info(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers:nil)
|
243
|
+
create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers:custom_headers).value!
|
232
244
|
end
|
233
245
|
|
234
246
|
#
|
235
247
|
# Create a job schedule.
|
236
248
|
#
|
237
|
-
# @param
|
249
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
250
|
+
# @param automation_account_name [String] The name of the automation account.
|
238
251
|
# @param job_schedule_id The job schedule name.
|
239
252
|
# @param parameters [JobScheduleCreateParameters] The parameters supplied to
|
240
253
|
# the create job schedule operation.
|
@@ -243,9 +256,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
243
256
|
#
|
244
257
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
245
258
|
#
|
246
|
-
def create_async(automation_account_name, job_schedule_id, parameters, custom_headers:nil)
|
247
|
-
fail ArgumentError, '
|
248
|
-
fail ArgumentError, "'
|
259
|
+
def create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers:nil)
|
260
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
261
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
262
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
263
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
249
264
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
250
265
|
fail ArgumentError, 'job_schedule_id is nil' if job_schedule_id.nil?
|
251
266
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -271,7 +286,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
271
286
|
|
272
287
|
options = {
|
273
288
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
274
|
-
path_params: {'resourceGroupName' =>
|
289
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id},
|
275
290
|
query_params: {'api-version' => @client.api_version},
|
276
291
|
body: request_content,
|
277
292
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -309,42 +324,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
309
324
|
#
|
310
325
|
# Retrieve a list of job schedules.
|
311
326
|
#
|
312
|
-
# @param
|
327
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
328
|
+
# @param automation_account_name [String] The name of the automation account.
|
329
|
+
# @param filter [String] The filter to apply on the operation.
|
313
330
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
314
331
|
# will be added to the HTTP request.
|
315
332
|
#
|
316
333
|
# @return [Array<JobSchedule>] operation results.
|
317
334
|
#
|
318
|
-
def list_by_automation_account(automation_account_name, custom_headers:nil)
|
319
|
-
first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
|
335
|
+
def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
336
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers)
|
320
337
|
first_page.get_all_items
|
321
338
|
end
|
322
339
|
|
323
340
|
#
|
324
341
|
# Retrieve a list of job schedules.
|
325
342
|
#
|
326
|
-
# @param
|
343
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
344
|
+
# @param automation_account_name [String] The name of the automation account.
|
345
|
+
# @param filter [String] The filter to apply on the operation.
|
327
346
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
328
347
|
# will be added to the HTTP request.
|
329
348
|
#
|
330
349
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
331
350
|
#
|
332
|
-
def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
|
333
|
-
list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
351
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
352
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
334
353
|
end
|
335
354
|
|
336
355
|
#
|
337
356
|
# Retrieve a list of job schedules.
|
338
357
|
#
|
339
|
-
# @param
|
358
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
359
|
+
# @param automation_account_name [String] The name of the automation account.
|
360
|
+
# @param filter [String] The filter to apply on the operation.
|
340
361
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
341
362
|
# to the HTTP request.
|
342
363
|
#
|
343
364
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
344
365
|
#
|
345
|
-
def list_by_automation_account_async(automation_account_name, custom_headers:nil)
|
346
|
-
fail ArgumentError, '
|
347
|
-
fail ArgumentError, "'
|
366
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
367
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
368
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
369
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
370
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
348
371
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
349
372
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
350
373
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -362,8 +385,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
362
385
|
|
363
386
|
options = {
|
364
387
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
365
|
-
path_params: {'resourceGroupName' =>
|
366
|
-
query_params: {'api-version' => @client.api_version},
|
388
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
389
|
+
query_params: {'$filter' => filter,'api-version' => @client.api_version},
|
367
390
|
headers: request_headers.merge(custom_headers || {}),
|
368
391
|
base_url: request_url
|
369
392
|
}
|
@@ -487,15 +510,17 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
487
510
|
#
|
488
511
|
# Retrieve a list of job schedules.
|
489
512
|
#
|
490
|
-
# @param
|
513
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
514
|
+
# @param automation_account_name [String] The name of the automation account.
|
515
|
+
# @param filter [String] The filter to apply on the operation.
|
491
516
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
492
517
|
# will be added to the HTTP request.
|
493
518
|
#
|
494
519
|
# @return [JobScheduleListResult] which provide lazy access to pages of the
|
495
520
|
# response.
|
496
521
|
#
|
497
|
-
def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
|
498
|
-
response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
522
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
523
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
499
524
|
unless response.nil?
|
500
525
|
page = response.body
|
501
526
|
page.next_method = Proc.new do |next_page_link|
|
@@ -24,7 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Retrieve the job stream identified by job stream id.
|
26
26
|
#
|
27
|
-
# @param
|
27
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
28
|
+
# @param automation_account_name [String] The name of the automation account.
|
28
29
|
# @param job_id [String] The job id.
|
29
30
|
# @param job_stream_id [String] The job stream id.
|
30
31
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -32,15 +33,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
32
33
|
#
|
33
34
|
# @return [JobStream] operation results.
|
34
35
|
#
|
35
|
-
def get(automation_account_name, job_id, job_stream_id, custom_headers:nil)
|
36
|
-
response = get_async(automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
|
36
|
+
def get(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil)
|
37
|
+
response = get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
|
37
38
|
response.body unless response.nil?
|
38
39
|
end
|
39
40
|
|
40
41
|
#
|
41
42
|
# Retrieve the job stream identified by job stream id.
|
42
43
|
#
|
43
|
-
# @param
|
44
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
45
|
+
# @param automation_account_name [String] The name of the automation account.
|
44
46
|
# @param job_id [String] The job id.
|
45
47
|
# @param job_stream_id [String] The job stream id.
|
46
48
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -48,14 +50,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
48
50
|
#
|
49
51
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
52
|
#
|
51
|
-
def get_with_http_info(automation_account_name, job_id, job_stream_id, custom_headers:nil)
|
52
|
-
get_async(automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
|
53
|
+
def get_with_http_info(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil)
|
54
|
+
get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:custom_headers).value!
|
53
55
|
end
|
54
56
|
|
55
57
|
#
|
56
58
|
# Retrieve the job stream identified by job stream id.
|
57
59
|
#
|
58
|
-
# @param
|
60
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
61
|
+
# @param automation_account_name [String] The name of the automation account.
|
59
62
|
# @param job_id [String] The job id.
|
60
63
|
# @param job_stream_id [String] The job stream id.
|
61
64
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -63,9 +66,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
63
66
|
#
|
64
67
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
68
|
#
|
66
|
-
def get_async(automation_account_name, job_id, job_stream_id, custom_headers:nil)
|
67
|
-
fail ArgumentError, '
|
68
|
-
fail ArgumentError, "'
|
69
|
+
def get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers:nil)
|
70
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
72
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
73
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
69
74
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
70
75
|
fail ArgumentError, 'job_id is nil' if job_id.nil?
|
71
76
|
fail ArgumentError, 'job_stream_id is nil' if job_stream_id.nil?
|
@@ -85,7 +90,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
85
90
|
|
86
91
|
options = {
|
87
92
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
88
|
-
path_params: {'resourceGroupName' =>
|
93
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id},
|
89
94
|
query_params: {'api-version' => @client.api_version},
|
90
95
|
headers: request_headers.merge(custom_headers || {}),
|
91
96
|
base_url: request_url
|
@@ -122,7 +127,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
122
127
|
#
|
123
128
|
# Retrieve a list of jobs streams identified by job id.
|
124
129
|
#
|
125
|
-
# @param
|
130
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
131
|
+
# @param automation_account_name [String] The name of the automation account.
|
126
132
|
# @param job_id [String] The job Id.
|
127
133
|
# @param filter [String] The filter to apply on the operation.
|
128
134
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -130,15 +136,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
130
136
|
#
|
131
137
|
# @return [Array<JobStream>] operation results.
|
132
138
|
#
|
133
|
-
def list_by_job(automation_account_name, job_id, filter:nil, custom_headers:nil)
|
134
|
-
first_page = list_by_job_as_lazy(automation_account_name, job_id, filter:filter, custom_headers:custom_headers)
|
139
|
+
def list_by_job(resource_group_name, automation_account_name, job_id, filter:nil, custom_headers:nil)
|
140
|
+
first_page = list_by_job_as_lazy(resource_group_name, automation_account_name, job_id, filter:filter, custom_headers:custom_headers)
|
135
141
|
first_page.get_all_items
|
136
142
|
end
|
137
143
|
|
138
144
|
#
|
139
145
|
# Retrieve a list of jobs streams identified by job id.
|
140
146
|
#
|
141
|
-
# @param
|
147
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
148
|
+
# @param automation_account_name [String] The name of the automation account.
|
142
149
|
# @param job_id [String] The job Id.
|
143
150
|
# @param filter [String] The filter to apply on the operation.
|
144
151
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -146,14 +153,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
146
153
|
#
|
147
154
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
148
155
|
#
|
149
|
-
def list_by_job_with_http_info(automation_account_name, job_id, filter:nil, custom_headers:nil)
|
150
|
-
list_by_job_async(automation_account_name, job_id, filter:filter, custom_headers:custom_headers).value!
|
156
|
+
def list_by_job_with_http_info(resource_group_name, automation_account_name, job_id, filter:nil, custom_headers:nil)
|
157
|
+
list_by_job_async(resource_group_name, automation_account_name, job_id, filter:filter, custom_headers:custom_headers).value!
|
151
158
|
end
|
152
159
|
|
153
160
|
#
|
154
161
|
# Retrieve a list of jobs streams identified by job id.
|
155
162
|
#
|
156
|
-
# @param
|
163
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
164
|
+
# @param automation_account_name [String] The name of the automation account.
|
157
165
|
# @param job_id [String] The job Id.
|
158
166
|
# @param filter [String] The filter to apply on the operation.
|
159
167
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -161,9 +169,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
161
169
|
#
|
162
170
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
163
171
|
#
|
164
|
-
def list_by_job_async(automation_account_name, job_id, filter:nil, custom_headers:nil)
|
165
|
-
fail ArgumentError, '
|
166
|
-
fail ArgumentError, "'
|
172
|
+
def list_by_job_async(resource_group_name, automation_account_name, job_id, filter:nil, custom_headers:nil)
|
173
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
174
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
175
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
176
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
167
177
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
168
178
|
fail ArgumentError, 'job_id is nil' if job_id.nil?
|
169
179
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -182,7 +192,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
182
192
|
|
183
193
|
options = {
|
184
194
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
185
|
-
path_params: {'resourceGroupName' =>
|
195
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
|
186
196
|
query_params: {'$filter' => filter,'api-version' => @client.api_version},
|
187
197
|
headers: request_headers.merge(custom_headers || {}),
|
188
198
|
base_url: request_url
|
@@ -307,7 +317,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
307
317
|
#
|
308
318
|
# Retrieve a list of jobs streams identified by job id.
|
309
319
|
#
|
310
|
-
# @param
|
320
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
321
|
+
# @param automation_account_name [String] The name of the automation account.
|
311
322
|
# @param job_id [String] The job Id.
|
312
323
|
# @param filter [String] The filter to apply on the operation.
|
313
324
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -316,8 +327,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
316
327
|
# @return [JobStreamListResult] which provide lazy access to pages of the
|
317
328
|
# response.
|
318
329
|
#
|
319
|
-
def list_by_job_as_lazy(automation_account_name, job_id, filter:nil, custom_headers:nil)
|
320
|
-
response = list_by_job_async(automation_account_name, job_id, filter:filter, custom_headers:custom_headers).value!
|
330
|
+
def list_by_job_as_lazy(resource_group_name, automation_account_name, job_id, filter:nil, custom_headers:nil)
|
331
|
+
response = list_by_job_async(resource_group_name, automation_account_name, job_id, filter:filter, custom_headers:custom_headers).value!
|
321
332
|
unless response.nil?
|
322
333
|
page = response.body
|
323
334
|
page.next_method = Proc.new do |next_page_link|
|