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,45 +24,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Delete the connection.
|
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 connection_name [String] The name of connection.
|
29
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
31
|
# will be added to the HTTP request.
|
31
32
|
#
|
32
33
|
# @return [Connection] operation results.
|
33
34
|
#
|
34
|
-
def delete(automation_account_name, connection_name, custom_headers:nil)
|
35
|
-
response = delete_async(automation_account_name, connection_name, custom_headers:custom_headers).value!
|
35
|
+
def delete(resource_group_name, automation_account_name, connection_name, custom_headers:nil)
|
36
|
+
response = delete_async(resource_group_name, automation_account_name, connection_name, custom_headers:custom_headers).value!
|
36
37
|
response.body unless response.nil?
|
37
38
|
end
|
38
39
|
|
39
40
|
#
|
40
41
|
# Delete the connection.
|
41
42
|
#
|
42
|
-
# @param
|
43
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
44
|
+
# @param automation_account_name [String] The name of the automation account.
|
43
45
|
# @param connection_name [String] The name of connection.
|
44
46
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
47
|
# will be added to the HTTP request.
|
46
48
|
#
|
47
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
50
|
#
|
49
|
-
def delete_with_http_info(automation_account_name, connection_name, custom_headers:nil)
|
50
|
-
delete_async(automation_account_name, connection_name, custom_headers:custom_headers).value!
|
51
|
+
def delete_with_http_info(resource_group_name, automation_account_name, connection_name, custom_headers:nil)
|
52
|
+
delete_async(resource_group_name, automation_account_name, connection_name, custom_headers:custom_headers).value!
|
51
53
|
end
|
52
54
|
|
53
55
|
#
|
54
56
|
# Delete the connection.
|
55
57
|
#
|
56
|
-
# @param
|
58
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
59
|
+
# @param automation_account_name [String] The name of the automation account.
|
57
60
|
# @param connection_name [String] The name of connection.
|
58
61
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
62
|
# to the HTTP request.
|
60
63
|
#
|
61
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
65
|
#
|
63
|
-
def delete_async(automation_account_name, connection_name, custom_headers:nil)
|
64
|
-
fail ArgumentError, '
|
65
|
-
fail ArgumentError, "'
|
66
|
+
def delete_async(resource_group_name, automation_account_name, connection_name, custom_headers:nil)
|
67
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
68
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
69
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
70
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
66
71
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
67
72
|
fail ArgumentError, 'connection_name is nil' if connection_name.nil?
|
68
73
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -81,7 +86,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
81
86
|
|
82
87
|
options = {
|
83
88
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
84
|
-
path_params: {'resourceGroupName' =>
|
89
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id},
|
85
90
|
query_params: {'api-version' => @client.api_version},
|
86
91
|
headers: request_headers.merge(custom_headers || {}),
|
87
92
|
base_url: request_url
|
@@ -118,45 +123,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
118
123
|
#
|
119
124
|
# Retrieve the connection identified by connection name.
|
120
125
|
#
|
121
|
-
# @param
|
126
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
127
|
+
# @param automation_account_name [String] The name of the automation account.
|
122
128
|
# @param connection_name [String] The name of connection.
|
123
129
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
124
130
|
# will be added to the HTTP request.
|
125
131
|
#
|
126
132
|
# @return [Connection] operation results.
|
127
133
|
#
|
128
|
-
def get(automation_account_name, connection_name, custom_headers:nil)
|
129
|
-
response = get_async(automation_account_name, connection_name, custom_headers:custom_headers).value!
|
134
|
+
def get(resource_group_name, automation_account_name, connection_name, custom_headers:nil)
|
135
|
+
response = get_async(resource_group_name, automation_account_name, connection_name, custom_headers:custom_headers).value!
|
130
136
|
response.body unless response.nil?
|
131
137
|
end
|
132
138
|
|
133
139
|
#
|
134
140
|
# Retrieve the connection identified by connection name.
|
135
141
|
#
|
136
|
-
# @param
|
142
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
143
|
+
# @param automation_account_name [String] The name of the automation account.
|
137
144
|
# @param connection_name [String] The name of connection.
|
138
145
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
139
146
|
# will be added to the HTTP request.
|
140
147
|
#
|
141
148
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
142
149
|
#
|
143
|
-
def get_with_http_info(automation_account_name, connection_name, custom_headers:nil)
|
144
|
-
get_async(automation_account_name, connection_name, custom_headers:custom_headers).value!
|
150
|
+
def get_with_http_info(resource_group_name, automation_account_name, connection_name, custom_headers:nil)
|
151
|
+
get_async(resource_group_name, automation_account_name, connection_name, custom_headers:custom_headers).value!
|
145
152
|
end
|
146
153
|
|
147
154
|
#
|
148
155
|
# Retrieve the connection identified by connection name.
|
149
156
|
#
|
150
|
-
# @param
|
157
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
158
|
+
# @param automation_account_name [String] The name of the automation account.
|
151
159
|
# @param connection_name [String] The name of connection.
|
152
160
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
153
161
|
# to the HTTP request.
|
154
162
|
#
|
155
163
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
156
164
|
#
|
157
|
-
def get_async(automation_account_name, connection_name, custom_headers:nil)
|
158
|
-
fail ArgumentError, '
|
159
|
-
fail ArgumentError, "'
|
165
|
+
def get_async(resource_group_name, automation_account_name, connection_name, custom_headers:nil)
|
166
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
167
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
168
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
169
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
160
170
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
161
171
|
fail ArgumentError, 'connection_name is nil' if connection_name.nil?
|
162
172
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -175,7 +185,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
175
185
|
|
176
186
|
options = {
|
177
187
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
178
|
-
path_params: {'resourceGroupName' =>
|
188
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id},
|
179
189
|
query_params: {'api-version' => @client.api_version},
|
180
190
|
headers: request_headers.merge(custom_headers || {}),
|
181
191
|
base_url: request_url
|
@@ -212,7 +222,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
212
222
|
#
|
213
223
|
# Create or update a connection.
|
214
224
|
#
|
215
|
-
# @param
|
225
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
226
|
+
# @param automation_account_name [String] The name of the automation account.
|
216
227
|
# @param connection_name [String] The parameters supplied to the create or
|
217
228
|
# update connection operation.
|
218
229
|
# @param parameters [ConnectionCreateOrUpdateParameters] The parameters
|
@@ -222,15 +233,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
222
233
|
#
|
223
234
|
# @return [Connection] operation results.
|
224
235
|
#
|
225
|
-
def create_or_update(automation_account_name, connection_name, parameters, custom_headers:nil)
|
226
|
-
response = create_or_update_async(automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
|
236
|
+
def create_or_update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil)
|
237
|
+
response = create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
|
227
238
|
response.body unless response.nil?
|
228
239
|
end
|
229
240
|
|
230
241
|
#
|
231
242
|
# Create or update a connection.
|
232
243
|
#
|
233
|
-
# @param
|
244
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
245
|
+
# @param automation_account_name [String] The name of the automation account.
|
234
246
|
# @param connection_name [String] The parameters supplied to the create or
|
235
247
|
# update connection operation.
|
236
248
|
# @param parameters [ConnectionCreateOrUpdateParameters] The parameters
|
@@ -240,14 +252,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
240
252
|
#
|
241
253
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
242
254
|
#
|
243
|
-
def create_or_update_with_http_info(automation_account_name, connection_name, parameters, custom_headers:nil)
|
244
|
-
create_or_update_async(automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
|
255
|
+
def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil)
|
256
|
+
create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
|
245
257
|
end
|
246
258
|
|
247
259
|
#
|
248
260
|
# Create or update a connection.
|
249
261
|
#
|
250
|
-
# @param
|
262
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
263
|
+
# @param automation_account_name [String] The name of the automation account.
|
251
264
|
# @param connection_name [String] The parameters supplied to the create or
|
252
265
|
# update connection operation.
|
253
266
|
# @param parameters [ConnectionCreateOrUpdateParameters] The parameters
|
@@ -257,9 +270,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
257
270
|
#
|
258
271
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
259
272
|
#
|
260
|
-
def create_or_update_async(automation_account_name, connection_name, parameters, custom_headers:nil)
|
261
|
-
fail ArgumentError, '
|
262
|
-
fail ArgumentError, "'
|
273
|
+
def create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil)
|
274
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
275
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
276
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
277
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
263
278
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
264
279
|
fail ArgumentError, 'connection_name is nil' if connection_name.nil?
|
265
280
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -285,7 +300,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
285
300
|
|
286
301
|
options = {
|
287
302
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
288
|
-
path_params: {'resourceGroupName' =>
|
303
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id},
|
289
304
|
query_params: {'api-version' => @client.api_version},
|
290
305
|
body: request_content,
|
291
306
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -333,7 +348,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
333
348
|
#
|
334
349
|
# Update a connection.
|
335
350
|
#
|
336
|
-
# @param
|
351
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
352
|
+
# @param automation_account_name [String] The name of the automation account.
|
337
353
|
# @param connection_name [String] The parameters supplied to the update a
|
338
354
|
# connection operation.
|
339
355
|
# @param parameters [ConnectionUpdateParameters] The parameters supplied to the
|
@@ -343,15 +359,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
343
359
|
#
|
344
360
|
# @return [Connection] operation results.
|
345
361
|
#
|
346
|
-
def update(automation_account_name, connection_name, parameters, custom_headers:nil)
|
347
|
-
response = update_async(automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
|
362
|
+
def update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil)
|
363
|
+
response = update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
|
348
364
|
response.body unless response.nil?
|
349
365
|
end
|
350
366
|
|
351
367
|
#
|
352
368
|
# Update a connection.
|
353
369
|
#
|
354
|
-
# @param
|
370
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
371
|
+
# @param automation_account_name [String] The name of the automation account.
|
355
372
|
# @param connection_name [String] The parameters supplied to the update a
|
356
373
|
# connection operation.
|
357
374
|
# @param parameters [ConnectionUpdateParameters] The parameters supplied to the
|
@@ -361,14 +378,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
361
378
|
#
|
362
379
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
363
380
|
#
|
364
|
-
def update_with_http_info(automation_account_name, connection_name, parameters, custom_headers:nil)
|
365
|
-
update_async(automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
|
381
|
+
def update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil)
|
382
|
+
update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:custom_headers).value!
|
366
383
|
end
|
367
384
|
|
368
385
|
#
|
369
386
|
# Update a connection.
|
370
387
|
#
|
371
|
-
# @param
|
388
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
389
|
+
# @param automation_account_name [String] The name of the automation account.
|
372
390
|
# @param connection_name [String] The parameters supplied to the update a
|
373
391
|
# connection operation.
|
374
392
|
# @param parameters [ConnectionUpdateParameters] The parameters supplied to the
|
@@ -378,9 +396,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
378
396
|
#
|
379
397
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
380
398
|
#
|
381
|
-
def update_async(automation_account_name, connection_name, parameters, custom_headers:nil)
|
382
|
-
fail ArgumentError, '
|
383
|
-
fail ArgumentError, "'
|
399
|
+
def update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers:nil)
|
400
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
401
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
402
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
403
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
384
404
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
385
405
|
fail ArgumentError, 'connection_name is nil' if connection_name.nil?
|
386
406
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -406,7 +426,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
406
426
|
|
407
427
|
options = {
|
408
428
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
409
|
-
path_params: {'resourceGroupName' =>
|
429
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id},
|
410
430
|
query_params: {'api-version' => @client.api_version},
|
411
431
|
body: request_content,
|
412
432
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -444,42 +464,47 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
444
464
|
#
|
445
465
|
# Retrieve a list of connections.
|
446
466
|
#
|
447
|
-
# @param
|
467
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
468
|
+
# @param automation_account_name [String] The name of the automation account.
|
448
469
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
449
470
|
# will be added to the HTTP request.
|
450
471
|
#
|
451
472
|
# @return [Array<Connection>] operation results.
|
452
473
|
#
|
453
|
-
def list_by_automation_account(automation_account_name, custom_headers:nil)
|
454
|
-
first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
|
474
|
+
def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
|
475
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
|
455
476
|
first_page.get_all_items
|
456
477
|
end
|
457
478
|
|
458
479
|
#
|
459
480
|
# Retrieve a list of connections.
|
460
481
|
#
|
461
|
-
# @param
|
482
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
483
|
+
# @param automation_account_name [String] The name of the automation account.
|
462
484
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
463
485
|
# will be added to the HTTP request.
|
464
486
|
#
|
465
487
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
466
488
|
#
|
467
|
-
def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
|
468
|
-
list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
489
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
|
490
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
469
491
|
end
|
470
492
|
|
471
493
|
#
|
472
494
|
# Retrieve a list of connections.
|
473
495
|
#
|
474
|
-
# @param
|
496
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
497
|
+
# @param automation_account_name [String] The name of the automation account.
|
475
498
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
476
499
|
# to the HTTP request.
|
477
500
|
#
|
478
501
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
479
502
|
#
|
480
|
-
def list_by_automation_account_async(automation_account_name, custom_headers:nil)
|
481
|
-
fail ArgumentError, '
|
482
|
-
fail ArgumentError, "'
|
503
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
|
504
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
505
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
506
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
507
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
483
508
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
484
509
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
485
510
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -497,7 +522,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
497
522
|
|
498
523
|
options = {
|
499
524
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
500
|
-
path_params: {'resourceGroupName' =>
|
525
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
501
526
|
query_params: {'api-version' => @client.api_version},
|
502
527
|
headers: request_headers.merge(custom_headers || {}),
|
503
528
|
base_url: request_url
|
@@ -622,15 +647,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
622
647
|
#
|
623
648
|
# Retrieve a list of connections.
|
624
649
|
#
|
625
|
-
# @param
|
650
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
651
|
+
# @param automation_account_name [String] The name of the automation account.
|
626
652
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
627
653
|
# will be added to the HTTP request.
|
628
654
|
#
|
629
655
|
# @return [ConnectionListResult] which provide lazy access to pages of the
|
630
656
|
# response.
|
631
657
|
#
|
632
|
-
def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
|
633
|
-
response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
658
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
|
659
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
634
660
|
unless response.nil?
|
635
661
|
page = response.body
|
636
662
|
page.next_method = Proc.new do |next_page_link|
|
@@ -24,44 +24,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Delete the connectiontype.
|
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 connection_type_name [String] The name of connectiontype.
|
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, connection_type_name, custom_headers:nil)
|
34
|
-
response = delete_async(automation_account_name, connection_type_name, custom_headers:custom_headers).value!
|
34
|
+
def delete(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil)
|
35
|
+
response = delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:custom_headers).value!
|
35
36
|
nil
|
36
37
|
end
|
37
38
|
|
38
39
|
#
|
39
40
|
# Delete the connectiontype.
|
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 connection_type_name [String] The name of connectiontype.
|
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, connection_type_name, custom_headers:nil)
|
49
|
-
delete_async(automation_account_name, connection_type_name, custom_headers:custom_headers).value!
|
50
|
+
def delete_with_http_info(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil)
|
51
|
+
delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:custom_headers).value!
|
50
52
|
end
|
51
53
|
|
52
54
|
#
|
53
55
|
# Delete the connectiontype.
|
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 connection_type_name [String] The name of connectiontype.
|
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, connection_type_name, custom_headers:nil)
|
63
|
-
fail ArgumentError, '
|
64
|
-
fail ArgumentError, "'
|
65
|
+
def delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil)
|
66
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
67
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
68
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
69
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
65
70
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
66
71
|
fail ArgumentError, 'connection_type_name is nil' if connection_type_name.nil?
|
67
72
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -80,7 +85,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
80
85
|
|
81
86
|
options = {
|
82
87
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
83
|
-
path_params: {'resourceGroupName' =>
|
88
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id},
|
84
89
|
query_params: {'api-version' => @client.api_version},
|
85
90
|
headers: request_headers.merge(custom_headers || {}),
|
86
91
|
base_url: request_url
|
@@ -107,45 +112,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
107
112
|
#
|
108
113
|
# Retrieve the connectiontype identified by connectiontype 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 connection_type_name [String] The name of connectiontype.
|
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 [ConnectionType] operation results.
|
116
122
|
#
|
117
|
-
def get(automation_account_name, connection_type_name, custom_headers:nil)
|
118
|
-
response = get_async(automation_account_name, connection_type_name, custom_headers:custom_headers).value!
|
123
|
+
def get(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil)
|
124
|
+
response = get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:custom_headers).value!
|
119
125
|
response.body unless response.nil?
|
120
126
|
end
|
121
127
|
|
122
128
|
#
|
123
129
|
# Retrieve the connectiontype identified by connectiontype 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 connection_type_name [String] The name of connectiontype.
|
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, connection_type_name, custom_headers:nil)
|
133
|
-
get_async(automation_account_name, connection_type_name, custom_headers:custom_headers).value!
|
139
|
+
def get_with_http_info(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil)
|
140
|
+
get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:custom_headers).value!
|
134
141
|
end
|
135
142
|
|
136
143
|
#
|
137
144
|
# Retrieve the connectiontype identified by connectiontype 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 connection_type_name [String] The name of connectiontype.
|
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, connection_type_name, custom_headers:nil)
|
147
|
-
fail ArgumentError, '
|
148
|
-
fail ArgumentError, "'
|
154
|
+
def get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers:nil)
|
155
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
156
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
157
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
158
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
149
159
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
150
160
|
fail ArgumentError, 'connection_type_name is nil' if connection_type_name.nil?
|
151
161
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -164,7 +174,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
164
174
|
|
165
175
|
options = {
|
166
176
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
167
|
-
path_params: {'resourceGroupName' =>
|
177
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id},
|
168
178
|
query_params: {'api-version' => @client.api_version},
|
169
179
|
headers: request_headers.merge(custom_headers || {}),
|
170
180
|
base_url: request_url
|
@@ -201,7 +211,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
201
211
|
#
|
202
212
|
# Create a connectiontype.
|
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 connection_type_name [String] The parameters supplied to the create or
|
206
217
|
# update connectiontype operation.
|
207
218
|
# @param parameters [ConnectionTypeCreateOrUpdateParameters] The parameters
|
@@ -211,15 +222,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
211
222
|
#
|
212
223
|
# @return [ConnectionType] operation results.
|
213
224
|
#
|
214
|
-
def create_or_update(automation_account_name, connection_type_name, parameters, custom_headers:nil)
|
215
|
-
response = create_or_update_async(automation_account_name, connection_type_name, parameters, custom_headers:custom_headers).value!
|
225
|
+
def create_or_update(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:nil)
|
226
|
+
response = create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:custom_headers).value!
|
216
227
|
response.body unless response.nil?
|
217
228
|
end
|
218
229
|
|
219
230
|
#
|
220
231
|
# Create a connectiontype.
|
221
232
|
#
|
222
|
-
# @param
|
233
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
234
|
+
# @param automation_account_name [String] The name of the automation account.
|
223
235
|
# @param connection_type_name [String] The parameters supplied to the create or
|
224
236
|
# update connectiontype operation.
|
225
237
|
# @param parameters [ConnectionTypeCreateOrUpdateParameters] The parameters
|
@@ -229,14 +241,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
229
241
|
#
|
230
242
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
231
243
|
#
|
232
|
-
def create_or_update_with_http_info(automation_account_name, connection_type_name, parameters, custom_headers:nil)
|
233
|
-
create_or_update_async(automation_account_name, connection_type_name, parameters, custom_headers:custom_headers).value!
|
244
|
+
def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:nil)
|
245
|
+
create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:custom_headers).value!
|
234
246
|
end
|
235
247
|
|
236
248
|
#
|
237
249
|
# Create a connectiontype.
|
238
250
|
#
|
239
|
-
# @param
|
251
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
252
|
+
# @param automation_account_name [String] The name of the automation account.
|
240
253
|
# @param connection_type_name [String] The parameters supplied to the create or
|
241
254
|
# update connectiontype operation.
|
242
255
|
# @param parameters [ConnectionTypeCreateOrUpdateParameters] The parameters
|
@@ -246,9 +259,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
246
259
|
#
|
247
260
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
248
261
|
#
|
249
|
-
def create_or_update_async(automation_account_name, connection_type_name, parameters, custom_headers:nil)
|
250
|
-
fail ArgumentError, '
|
251
|
-
fail ArgumentError, "'
|
262
|
+
def create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers:nil)
|
263
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
264
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
265
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
266
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
252
267
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
253
268
|
fail ArgumentError, 'connection_type_name is nil' if connection_type_name.nil?
|
254
269
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -274,7 +289,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
274
289
|
|
275
290
|
options = {
|
276
291
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
277
|
-
path_params: {'resourceGroupName' =>
|
292
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id},
|
278
293
|
query_params: {'api-version' => @client.api_version},
|
279
294
|
body: request_content,
|
280
295
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -322,42 +337,47 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
322
337
|
#
|
323
338
|
# Retrieve a list of connectiontypes.
|
324
339
|
#
|
325
|
-
# @param
|
340
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
341
|
+
# @param automation_account_name [String] The name of the automation account.
|
326
342
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
327
343
|
# will be added to the HTTP request.
|
328
344
|
#
|
329
345
|
# @return [Array<ConnectionType>] operation results.
|
330
346
|
#
|
331
|
-
def list_by_automation_account(automation_account_name, custom_headers:nil)
|
332
|
-
first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
|
347
|
+
def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
|
348
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
|
333
349
|
first_page.get_all_items
|
334
350
|
end
|
335
351
|
|
336
352
|
#
|
337
353
|
# Retrieve a list of connectiontypes.
|
338
354
|
#
|
339
|
-
# @param
|
355
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
356
|
+
# @param automation_account_name [String] The name of the automation account.
|
340
357
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
341
358
|
# will be added to the HTTP request.
|
342
359
|
#
|
343
360
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
344
361
|
#
|
345
|
-
def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
|
346
|
-
list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
362
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
|
363
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
347
364
|
end
|
348
365
|
|
349
366
|
#
|
350
367
|
# Retrieve a list of connectiontypes.
|
351
368
|
#
|
352
|
-
# @param
|
369
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
370
|
+
# @param automation_account_name [String] The name of the automation account.
|
353
371
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
354
372
|
# to the HTTP request.
|
355
373
|
#
|
356
374
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
357
375
|
#
|
358
|
-
def list_by_automation_account_async(automation_account_name, custom_headers:nil)
|
359
|
-
fail ArgumentError, '
|
360
|
-
fail ArgumentError, "'
|
376
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
|
377
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
378
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
379
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
380
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
361
381
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
362
382
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
363
383
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -375,7 +395,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
375
395
|
|
376
396
|
options = {
|
377
397
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
378
|
-
path_params: {'resourceGroupName' =>
|
398
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
379
399
|
query_params: {'api-version' => @client.api_version},
|
380
400
|
headers: request_headers.merge(custom_headers || {}),
|
381
401
|
base_url: request_url
|
@@ -500,15 +520,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
500
520
|
#
|
501
521
|
# Retrieve a list of connectiontypes.
|
502
522
|
#
|
503
|
-
# @param
|
523
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
524
|
+
# @param automation_account_name [String] The name of the automation account.
|
504
525
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
505
526
|
# will be added to the HTTP request.
|
506
527
|
#
|
507
528
|
# @return [ConnectionTypeListResult] which provide lazy access to pages of the
|
508
529
|
# response.
|
509
530
|
#
|
510
|
-
def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
|
511
|
-
response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
531
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
|
532
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
512
533
|
unless response.nil?
|
513
534
|
page = response.body
|
514
535
|
page.next_method = Proc.new do |next_page_link|
|