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,8 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Update an automation account.
|
26
26
|
#
|
27
|
-
# @param resource_group_name [String]
|
28
|
-
# @param automation_account_name [String]
|
27
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
28
|
+
# @param automation_account_name [String] The name of the automation account.
|
29
29
|
# @param parameters [AutomationAccountUpdateParameters] Parameters supplied to
|
30
30
|
# the update automation account.
|
31
31
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -41,8 +41,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
41
41
|
#
|
42
42
|
# Update an automation account.
|
43
43
|
#
|
44
|
-
# @param resource_group_name [String]
|
45
|
-
# @param automation_account_name [String]
|
44
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
45
|
+
# @param automation_account_name [String] The name of the automation account.
|
46
46
|
# @param parameters [AutomationAccountUpdateParameters] Parameters supplied to
|
47
47
|
# the update automation account.
|
48
48
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -57,8 +57,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
57
57
|
#
|
58
58
|
# Update an automation account.
|
59
59
|
#
|
60
|
-
# @param resource_group_name [String]
|
61
|
-
# @param automation_account_name [String]
|
60
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
61
|
+
# @param automation_account_name [String] The name of the automation account.
|
62
62
|
# @param parameters [AutomationAccountUpdateParameters] Parameters supplied to
|
63
63
|
# the update automation account.
|
64
64
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -68,6 +68,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
68
68
|
#
|
69
69
|
def update_async(resource_group_name, automation_account_name, parameters, custom_headers:nil)
|
70
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
|
71
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?
|
72
74
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
73
75
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -131,9 +133,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
131
133
|
#
|
132
134
|
# Create or update automation account.
|
133
135
|
#
|
134
|
-
# @param resource_group_name [String]
|
135
|
-
# @param automation_account_name [String]
|
136
|
-
# update automation account.
|
136
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
137
|
+
# @param automation_account_name [String] The name of the automation account.
|
137
138
|
# @param parameters [AutomationAccountCreateOrUpdateParameters] Parameters
|
138
139
|
# supplied to the create or update automation account.
|
139
140
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -149,9 +150,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
149
150
|
#
|
150
151
|
# Create or update automation account.
|
151
152
|
#
|
152
|
-
# @param resource_group_name [String]
|
153
|
-
# @param automation_account_name [String]
|
154
|
-
# update automation account.
|
153
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
154
|
+
# @param automation_account_name [String] The name of the automation account.
|
155
155
|
# @param parameters [AutomationAccountCreateOrUpdateParameters] Parameters
|
156
156
|
# supplied to the create or update automation account.
|
157
157
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -166,9 +166,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
166
166
|
#
|
167
167
|
# Create or update automation account.
|
168
168
|
#
|
169
|
-
# @param resource_group_name [String]
|
170
|
-
# @param automation_account_name [String]
|
171
|
-
# update automation account.
|
169
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
170
|
+
# @param automation_account_name [String] The name of the automation account.
|
172
171
|
# @param parameters [AutomationAccountCreateOrUpdateParameters] Parameters
|
173
172
|
# supplied to the create or update automation account.
|
174
173
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -178,6 +177,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
178
177
|
#
|
179
178
|
def create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers:nil)
|
180
179
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
180
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
181
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
181
182
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
182
183
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
183
184
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -251,8 +252,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
251
252
|
#
|
252
253
|
# Delete an automation account.
|
253
254
|
#
|
254
|
-
# @param resource_group_name [String]
|
255
|
-
# @param automation_account_name [String]
|
255
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
256
|
+
# @param automation_account_name [String] The name of the automation account.
|
256
257
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
257
258
|
# will be added to the HTTP request.
|
258
259
|
#
|
@@ -265,8 +266,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
265
266
|
#
|
266
267
|
# Delete an automation account.
|
267
268
|
#
|
268
|
-
# @param resource_group_name [String]
|
269
|
-
# @param automation_account_name [String]
|
269
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
270
|
+
# @param automation_account_name [String] The name of the automation account.
|
270
271
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
271
272
|
# will be added to the HTTP request.
|
272
273
|
#
|
@@ -279,8 +280,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
279
280
|
#
|
280
281
|
# Delete an automation account.
|
281
282
|
#
|
282
|
-
# @param resource_group_name [String]
|
283
|
-
# @param automation_account_name [String]
|
283
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
284
|
+
# @param automation_account_name [String] The name of the automation account.
|
284
285
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
285
286
|
# to the HTTP request.
|
286
287
|
#
|
@@ -288,6 +289,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
288
289
|
#
|
289
290
|
def delete_async(resource_group_name, automation_account_name, custom_headers:nil)
|
290
291
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
292
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
293
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
291
294
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
292
295
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
293
296
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -333,8 +336,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
333
336
|
#
|
334
337
|
# Get information about an Automation Account.
|
335
338
|
#
|
336
|
-
# @param resource_group_name [String]
|
337
|
-
# @param automation_account_name [String] The automation account
|
339
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
340
|
+
# @param automation_account_name [String] The name of the automation account.
|
338
341
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
339
342
|
# will be added to the HTTP request.
|
340
343
|
#
|
@@ -348,8 +351,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
348
351
|
#
|
349
352
|
# Get information about an Automation Account.
|
350
353
|
#
|
351
|
-
# @param resource_group_name [String]
|
352
|
-
# @param automation_account_name [String] The automation account
|
354
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
355
|
+
# @param automation_account_name [String] The name of the automation account.
|
353
356
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
354
357
|
# will be added to the HTTP request.
|
355
358
|
#
|
@@ -362,8 +365,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
362
365
|
#
|
363
366
|
# Get information about an Automation Account.
|
364
367
|
#
|
365
|
-
# @param resource_group_name [String]
|
366
|
-
# @param automation_account_name [String] The automation account
|
368
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
369
|
+
# @param automation_account_name [String] The name of the automation account.
|
367
370
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
368
371
|
# to the HTTP request.
|
369
372
|
#
|
@@ -371,6 +374,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
371
374
|
#
|
372
375
|
def get_async(resource_group_name, automation_account_name, custom_headers:nil)
|
373
376
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
377
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
378
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
374
379
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
375
380
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
376
381
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -426,7 +431,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
426
431
|
#
|
427
432
|
# Retrieve a list of accounts within a given resource group.
|
428
433
|
#
|
429
|
-
# @param resource_group_name [String]
|
434
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
430
435
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
431
436
|
# will be added to the HTTP request.
|
432
437
|
#
|
@@ -440,7 +445,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
440
445
|
#
|
441
446
|
# Retrieve a list of accounts within a given resource group.
|
442
447
|
#
|
443
|
-
# @param resource_group_name [String]
|
448
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
444
449
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
445
450
|
# will be added to the HTTP request.
|
446
451
|
#
|
@@ -453,7 +458,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
453
458
|
#
|
454
459
|
# Retrieve a list of accounts within a given resource group.
|
455
460
|
#
|
456
|
-
# @param resource_group_name [String]
|
461
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
457
462
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
458
463
|
# to the HTTP request.
|
459
464
|
#
|
@@ -461,6 +466,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
461
466
|
#
|
462
467
|
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
463
468
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
469
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
470
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
464
471
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
465
472
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
466
473
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -787,7 +794,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
787
794
|
#
|
788
795
|
# Retrieve a list of accounts within a given resource group.
|
789
796
|
#
|
790
|
-
# @param resource_group_name [String]
|
797
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
791
798
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
792
799
|
# will be added to the HTTP request.
|
793
800
|
#
|
@@ -25,18 +25,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
25
25
|
# for every service call.
|
26
26
|
attr_accessor :subscription_id
|
27
27
|
|
28
|
-
# @return [String] The
|
29
|
-
attr_accessor :resource_group_name
|
30
|
-
|
31
|
-
# @return [String] Gets or sets the preferred language for the response.
|
28
|
+
# @return [String] The preferred language for the response.
|
32
29
|
attr_accessor :accept_language
|
33
30
|
|
34
|
-
# @return [Integer]
|
35
|
-
#
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
32
|
+
# Operations. Default value is 30.
|
36
33
|
attr_accessor :long_running_operation_retry_timeout
|
37
34
|
|
38
|
-
# @return [Boolean]
|
39
|
-
#
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
37
|
+
# generated and included in each request. Default is true.
|
40
38
|
attr_accessor :generate_client_request_id
|
41
39
|
|
42
40
|
# @return [AutomationAccountOperations] automation_account_operations
|
@@ -51,6 +49,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
51
49
|
# @return [Usages] usages
|
52
50
|
attr_reader :usages
|
53
51
|
|
52
|
+
# @return [Keys] keys
|
53
|
+
attr_reader :keys
|
54
|
+
|
54
55
|
# @return [CertificateOperations] certificate_operations
|
55
56
|
attr_reader :certificate_operations
|
56
57
|
|
@@ -66,6 +67,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
66
67
|
# @return [DscCompilationJobOperations] dsc_compilation_job_operations
|
67
68
|
attr_reader :dsc_compilation_job_operations
|
68
69
|
|
70
|
+
# @return [DscCompilationJobStream] dsc_compilation_job_stream
|
71
|
+
attr_reader :dsc_compilation_job_stream
|
72
|
+
|
69
73
|
# @return [DscConfigurationOperations] dsc_configuration_operations
|
70
74
|
attr_reader :dsc_configuration_operations
|
71
75
|
|
@@ -95,6 +99,9 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
95
99
|
# @return [JobScheduleOperations] job_schedule_operations
|
96
100
|
attr_reader :job_schedule_operations
|
97
101
|
|
102
|
+
# @return [LinkedWorkspaceOperations] linked_workspace_operations
|
103
|
+
attr_reader :linked_workspace_operations
|
104
|
+
|
98
105
|
# @return [ActivityOperations] activity_operations
|
99
106
|
attr_reader :activity_operations
|
100
107
|
|
@@ -116,8 +123,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
116
123
|
# @return [TestJobStreams] test_job_streams
|
117
124
|
attr_reader :test_job_streams
|
118
125
|
|
119
|
-
# @return [
|
120
|
-
attr_reader :
|
126
|
+
# @return [TestJobOperations] test_job_operations
|
127
|
+
attr_reader :test_job_operations
|
121
128
|
|
122
129
|
# @return [ScheduleOperations] schedule_operations
|
123
130
|
attr_reader :schedule_operations
|
@@ -145,11 +152,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
145
152
|
@operations = Operations.new(self)
|
146
153
|
@statistics_operations = StatisticsOperations.new(self)
|
147
154
|
@usages = Usages.new(self)
|
155
|
+
@keys = Keys.new(self)
|
148
156
|
@certificate_operations = CertificateOperations.new(self)
|
149
157
|
@connection_operations = ConnectionOperations.new(self)
|
150
158
|
@connection_type_operations = ConnectionTypeOperations.new(self)
|
151
159
|
@credential_operations = CredentialOperations.new(self)
|
152
160
|
@dsc_compilation_job_operations = DscCompilationJobOperations.new(self)
|
161
|
+
@dsc_compilation_job_stream = DscCompilationJobStream.new(self)
|
153
162
|
@dsc_configuration_operations = DscConfigurationOperations.new(self)
|
154
163
|
@agent_registration_information = AgentRegistrationInformation.new(self)
|
155
164
|
@dsc_node_operations = DscNodeOperations.new(self)
|
@@ -159,6 +168,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
159
168
|
@job_operations = JobOperations.new(self)
|
160
169
|
@job_stream_operations = JobStreamOperations.new(self)
|
161
170
|
@job_schedule_operations = JobScheduleOperations.new(self)
|
171
|
+
@linked_workspace_operations = LinkedWorkspaceOperations.new(self)
|
162
172
|
@activity_operations = ActivityOperations.new(self)
|
163
173
|
@module_model_operations = ModuleModelOperations.new(self)
|
164
174
|
@object_data_types = ObjectDataTypes.new(self)
|
@@ -166,7 +176,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
166
176
|
@runbook_draft_operations = RunbookDraftOperations.new(self)
|
167
177
|
@runbook_operations = RunbookOperations.new(self)
|
168
178
|
@test_job_streams = TestJobStreams.new(self)
|
169
|
-
@
|
179
|
+
@test_job_operations = TestJobOperations.new(self)
|
170
180
|
@schedule_operations = ScheduleOperations.new(self)
|
171
181
|
@variable_operations = VariableOperations.new(self)
|
172
182
|
@webhook_operations = WebhookOperations.new(self)
|
@@ -242,7 +252,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
242
252
|
#
|
243
253
|
def add_telemetry
|
244
254
|
sdk_information = 'azure_mgmt_automation'
|
245
|
-
sdk_information = "#{sdk_information}/0.
|
255
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
246
256
|
add_user_agent_information(sdk_information)
|
247
257
|
end
|
248
258
|
end
|
@@ -24,44 +24,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Delete the certificate.
|
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 certificate_name [String] The name of certificate.
|
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, certificate_name, custom_headers:nil)
|
34
|
-
response = delete_async(automation_account_name, certificate_name, custom_headers:custom_headers).value!
|
34
|
+
def delete(resource_group_name, automation_account_name, certificate_name, custom_headers:nil)
|
35
|
+
response = delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers:custom_headers).value!
|
35
36
|
nil
|
36
37
|
end
|
37
38
|
|
38
39
|
#
|
39
40
|
# Delete the certificate.
|
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 certificate_name [String] The name of certificate.
|
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, certificate_name, custom_headers:nil)
|
49
|
-
delete_async(automation_account_name, certificate_name, custom_headers:custom_headers).value!
|
50
|
+
def delete_with_http_info(resource_group_name, automation_account_name, certificate_name, custom_headers:nil)
|
51
|
+
delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers:custom_headers).value!
|
50
52
|
end
|
51
53
|
|
52
54
|
#
|
53
55
|
# Delete the certificate.
|
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 certificate_name [String] The name of certificate.
|
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, certificate_name, custom_headers:nil)
|
63
|
-
fail ArgumentError, '
|
64
|
-
fail ArgumentError, "'
|
65
|
+
def delete_async(resource_group_name, automation_account_name, certificate_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, 'certificate_name is nil' if certificate_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,'certificateName' => certificate_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 certificate identified by certificate 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 certificate_name [String] The name of certificate.
|
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 [Certificate] operation results.
|
116
122
|
#
|
117
|
-
def get(automation_account_name, certificate_name, custom_headers:nil)
|
118
|
-
response = get_async(automation_account_name, certificate_name, custom_headers:custom_headers).value!
|
123
|
+
def get(resource_group_name, automation_account_name, certificate_name, custom_headers:nil)
|
124
|
+
response = get_async(resource_group_name, automation_account_name, certificate_name, custom_headers:custom_headers).value!
|
119
125
|
response.body unless response.nil?
|
120
126
|
end
|
121
127
|
|
122
128
|
#
|
123
129
|
# Retrieve the certificate identified by certificate 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 certificate_name [String] The name of certificate.
|
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, certificate_name, custom_headers:nil)
|
133
|
-
get_async(automation_account_name, certificate_name, custom_headers:custom_headers).value!
|
139
|
+
def get_with_http_info(resource_group_name, automation_account_name, certificate_name, custom_headers:nil)
|
140
|
+
get_async(resource_group_name, automation_account_name, certificate_name, custom_headers:custom_headers).value!
|
134
141
|
end
|
135
142
|
|
136
143
|
#
|
137
144
|
# Retrieve the certificate identified by certificate 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 certificate_name [String] The name of certificate.
|
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, certificate_name, custom_headers:nil)
|
147
|
-
fail ArgumentError, '
|
148
|
-
fail ArgumentError, "'
|
154
|
+
def get_async(resource_group_name, automation_account_name, certificate_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, 'certificate_name is nil' if certificate_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,'certificateName' => certificate_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 certificate.
|
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 certificate_name [String] The parameters supplied to the create or
|
206
217
|
# update certificate operation.
|
207
218
|
# @param parameters [CertificateCreateOrUpdateParameters] The parameters
|
@@ -211,15 +222,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
211
222
|
#
|
212
223
|
# @return [Certificate] operation results.
|
213
224
|
#
|
214
|
-
def create_or_update(automation_account_name, certificate_name, parameters, custom_headers:nil)
|
215
|
-
response = create_or_update_async(automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
|
225
|
+
def create_or_update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil)
|
226
|
+
response = create_or_update_async(resource_group_name, automation_account_name, certificate_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 certificate.
|
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 certificate_name [String] The parameters supplied to the create or
|
224
236
|
# update certificate operation.
|
225
237
|
# @param parameters [CertificateCreateOrUpdateParameters] 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, certificate_name, parameters, custom_headers:nil)
|
233
|
-
create_or_update_async(automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
|
244
|
+
def create_or_update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil)
|
245
|
+
create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
|
234
246
|
end
|
235
247
|
|
236
248
|
#
|
237
249
|
# Create a certificate.
|
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 certificate_name [String] The parameters supplied to the create or
|
241
254
|
# update certificate operation.
|
242
255
|
# @param parameters [CertificateCreateOrUpdateParameters] 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, certificate_name, parameters, custom_headers:nil)
|
250
|
-
fail ArgumentError, '
|
251
|
-
fail ArgumentError, "'
|
262
|
+
def create_or_update_async(resource_group_name, automation_account_name, certificate_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, 'certificate_name is nil' if certificate_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,'certificateName' => certificate_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,7 +337,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
322
337
|
#
|
323
338
|
# Update a certificate.
|
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 certificate_name [String] The parameters supplied to the update
|
327
343
|
# certificate operation.
|
328
344
|
# @param parameters [CertificateUpdateParameters] The parameters supplied to
|
@@ -332,15 +348,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
332
348
|
#
|
333
349
|
# @return [Certificate] operation results.
|
334
350
|
#
|
335
|
-
def update(automation_account_name, certificate_name, parameters, custom_headers:nil)
|
336
|
-
response = update_async(automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
|
351
|
+
def update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil)
|
352
|
+
response = update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
|
337
353
|
response.body unless response.nil?
|
338
354
|
end
|
339
355
|
|
340
356
|
#
|
341
357
|
# Update a certificate.
|
342
358
|
#
|
343
|
-
# @param
|
359
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
360
|
+
# @param automation_account_name [String] The name of the automation account.
|
344
361
|
# @param certificate_name [String] The parameters supplied to the update
|
345
362
|
# certificate operation.
|
346
363
|
# @param parameters [CertificateUpdateParameters] The parameters supplied to
|
@@ -350,14 +367,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
350
367
|
#
|
351
368
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
352
369
|
#
|
353
|
-
def update_with_http_info(automation_account_name, certificate_name, parameters, custom_headers:nil)
|
354
|
-
update_async(automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
|
370
|
+
def update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil)
|
371
|
+
update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
|
355
372
|
end
|
356
373
|
|
357
374
|
#
|
358
375
|
# Update a certificate.
|
359
376
|
#
|
360
|
-
# @param
|
377
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
378
|
+
# @param automation_account_name [String] The name of the automation account.
|
361
379
|
# @param certificate_name [String] The parameters supplied to the update
|
362
380
|
# certificate operation.
|
363
381
|
# @param parameters [CertificateUpdateParameters] The parameters supplied to
|
@@ -367,9 +385,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
367
385
|
#
|
368
386
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
369
387
|
#
|
370
|
-
def update_async(automation_account_name, certificate_name, parameters, custom_headers:nil)
|
371
|
-
fail ArgumentError, '
|
372
|
-
fail ArgumentError, "'
|
388
|
+
def update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil)
|
389
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
390
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
391
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
392
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
373
393
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
374
394
|
fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
|
375
395
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -395,7 +415,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
395
415
|
|
396
416
|
options = {
|
397
417
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
398
|
-
path_params: {'resourceGroupName' =>
|
418
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id},
|
399
419
|
query_params: {'api-version' => @client.api_version},
|
400
420
|
body: request_content,
|
401
421
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -433,42 +453,47 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
433
453
|
#
|
434
454
|
# Retrieve a list of certificates.
|
435
455
|
#
|
436
|
-
# @param
|
456
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
457
|
+
# @param automation_account_name [String] The name of the automation account.
|
437
458
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
438
459
|
# will be added to the HTTP request.
|
439
460
|
#
|
440
461
|
# @return [Array<Certificate>] operation results.
|
441
462
|
#
|
442
|
-
def list_by_automation_account(automation_account_name, custom_headers:nil)
|
443
|
-
first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
|
463
|
+
def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
|
464
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
|
444
465
|
first_page.get_all_items
|
445
466
|
end
|
446
467
|
|
447
468
|
#
|
448
469
|
# Retrieve a list of certificates.
|
449
470
|
#
|
450
|
-
# @param
|
471
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
472
|
+
# @param automation_account_name [String] The name of the automation account.
|
451
473
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
452
474
|
# will be added to the HTTP request.
|
453
475
|
#
|
454
476
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
455
477
|
#
|
456
|
-
def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
|
457
|
-
list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
478
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
|
479
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
458
480
|
end
|
459
481
|
|
460
482
|
#
|
461
483
|
# Retrieve a list of certificates.
|
462
484
|
#
|
463
|
-
# @param
|
485
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
486
|
+
# @param automation_account_name [String] The name of the automation account.
|
464
487
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
465
488
|
# to the HTTP request.
|
466
489
|
#
|
467
490
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
468
491
|
#
|
469
|
-
def list_by_automation_account_async(automation_account_name, custom_headers:nil)
|
470
|
-
fail ArgumentError, '
|
471
|
-
fail ArgumentError, "'
|
492
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
|
493
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
494
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
495
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
496
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
472
497
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
473
498
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
474
499
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -486,7 +511,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
486
511
|
|
487
512
|
options = {
|
488
513
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
489
|
-
path_params: {'resourceGroupName' =>
|
514
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
490
515
|
query_params: {'api-version' => @client.api_version},
|
491
516
|
headers: request_headers.merge(custom_headers || {}),
|
492
517
|
base_url: request_url
|
@@ -611,15 +636,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
611
636
|
#
|
612
637
|
# Retrieve a list of certificates.
|
613
638
|
#
|
614
|
-
# @param
|
639
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
640
|
+
# @param automation_account_name [String] The name of the automation account.
|
615
641
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
616
642
|
# will be added to the HTTP request.
|
617
643
|
#
|
618
644
|
# @return [CertificateListResult] which provide lazy access to pages of the
|
619
645
|
# response.
|
620
646
|
#
|
621
|
-
def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
|
622
|
-
response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
647
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
|
648
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
623
649
|
unless response.nil?
|
624
650
|
page = response.body
|
625
651
|
page.next_method = Proc.new do |next_page_link|
|