azure_mgmt_automation 0.15.2 → 0.17.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2015-10-31/generated/azure_mgmt_automation.rb +111 -97
- data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +39 -32
- data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +28 -24
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +92 -81
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +25 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +81 -69
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +81 -69
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +67 -56
- data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +81 -69
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +67 -56
- 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 +215 -70
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +68 -67
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +67 -56
- data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +14 -11
- data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +72 -57
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +123 -100
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +72 -57
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +39 -32
- 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_list_result.rb +1 -1
- 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_account_list_result.rb +1 -1
- 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 +10 -7
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +10 -7
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +11 -7
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +44 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb +1 -1
- 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 +13 -1
- 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 +22 -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 +13 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb +58 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_list_result.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb +1 -1
- 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/hybrid_runbook_worker_groups_list_result.rb +1 -1
- 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_list_result.rb +1 -1
- 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/job_schedule.rb +26 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_list_result.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream_list_result.rb +1 -1
- 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_list_result.rb +1 -1
- 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 +11 -32
- 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/runbook_list_result.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +12 -7
- 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 +3 -3
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_list_result.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +2 -2
- 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 +12 -7
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_list_result.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +23 -7
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb +1 -1
- 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 +81 -69
- data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +54 -61
- data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +28 -22
- data/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb +6 -5
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +144 -118
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +131 -95
- data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +93 -71
- data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +14 -11
- data/lib/2015-10-31/generated/azure_mgmt_automation/{test_jobs.rb → test_job_operations.rb} +82 -69
- data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +49 -39
- data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +14 -11
- data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +81 -69
- data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +95 -80
- data/lib/profiles/latest/automation_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/automation_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/automation_profile_module.rb +585 -516
- data/lib/version.rb +1 -1
- metadata +21 -7
@@ -24,44 +24,46 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Retrieve the usage for the account id.
|
26
26
|
#
|
27
|
-
# @param resource_group_name [String]
|
28
|
-
# @param automation_account_name [String] The automation account
|
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 custom_headers [Hash{String => String}] A hash of custom headers that
|
30
30
|
# will be added to the HTTP request.
|
31
31
|
#
|
32
32
|
# @return [UsageListResult] operation results.
|
33
33
|
#
|
34
|
-
def list_by_automation_account(resource_group_name, automation_account_name, custom_headers
|
35
|
-
response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
|
34
|
+
def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
|
35
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
36
36
|
response.body unless response.nil?
|
37
37
|
end
|
38
38
|
|
39
39
|
#
|
40
40
|
# Retrieve the usage for the account id.
|
41
41
|
#
|
42
|
-
# @param resource_group_name [String]
|
43
|
-
# @param automation_account_name [String] The automation account
|
42
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
43
|
+
# @param automation_account_name [String] The name of the automation account.
|
44
44
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
45
|
# will be added to the HTTP request.
|
46
46
|
#
|
47
47
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
48
|
#
|
49
|
-
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers
|
50
|
-
list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
|
49
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
|
50
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
51
51
|
end
|
52
52
|
|
53
53
|
#
|
54
54
|
# Retrieve the usage for the account id.
|
55
55
|
#
|
56
|
-
# @param resource_group_name [String]
|
57
|
-
# @param automation_account_name [String] The automation account
|
56
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
57
|
+
# @param automation_account_name [String] The name of the automation account.
|
58
58
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
59
|
# to the HTTP request.
|
60
60
|
#
|
61
61
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
62
|
#
|
63
|
-
def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers
|
63
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
|
64
64
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
65
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
66
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
65
67
|
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
68
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
67
69
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -69,6 +71,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
69
71
|
|
70
72
|
|
71
73
|
request_headers = {}
|
74
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
72
75
|
|
73
76
|
# Set Headers
|
74
77
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -24,8 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Create a variable.
|
26
26
|
#
|
27
|
-
# @param resource_group_name [String]
|
28
|
-
# @param automation_account_name [String] The automation account
|
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 variable_name [String] The variable name.
|
30
30
|
# @param parameters [VariableCreateOrUpdateParameters] The parameters supplied
|
31
31
|
# to the create or update variable operation.
|
@@ -34,16 +34,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
34
34
|
#
|
35
35
|
# @return [Variable] operation results.
|
36
36
|
#
|
37
|
-
def create_or_update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers
|
38
|
-
response = create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value!
|
37
|
+
def create_or_update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil)
|
38
|
+
response = create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
|
39
39
|
response.body unless response.nil?
|
40
40
|
end
|
41
41
|
|
42
42
|
#
|
43
43
|
# Create a variable.
|
44
44
|
#
|
45
|
-
# @param resource_group_name [String]
|
46
|
-
# @param automation_account_name [String] The automation account
|
45
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
46
|
+
# @param automation_account_name [String] The name of the automation account.
|
47
47
|
# @param variable_name [String] The variable name.
|
48
48
|
# @param parameters [VariableCreateOrUpdateParameters] The parameters supplied
|
49
49
|
# to the create or update variable operation.
|
@@ -52,15 +52,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
52
52
|
#
|
53
53
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
54
|
#
|
55
|
-
def create_or_update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers
|
56
|
-
create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value!
|
55
|
+
def create_or_update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil)
|
56
|
+
create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
|
57
57
|
end
|
58
58
|
|
59
59
|
#
|
60
60
|
# Create a variable.
|
61
61
|
#
|
62
|
-
# @param resource_group_name [String]
|
63
|
-
# @param automation_account_name [String] The automation account
|
62
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
63
|
+
# @param automation_account_name [String] The name of the automation account.
|
64
64
|
# @param variable_name [String] The variable name.
|
65
65
|
# @param parameters [VariableCreateOrUpdateParameters] The parameters supplied
|
66
66
|
# to the create or update variable operation.
|
@@ -69,8 +69,10 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
69
69
|
#
|
70
70
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
71
|
#
|
72
|
-
def create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers
|
72
|
+
def create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil)
|
73
73
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
75
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
74
76
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
75
77
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
76
78
|
fail ArgumentError, 'variable_name is nil' if variable_name.nil?
|
@@ -80,13 +82,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
80
82
|
|
81
83
|
|
82
84
|
request_headers = {}
|
85
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
83
86
|
|
84
87
|
# Set Headers
|
85
88
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
86
89
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
87
90
|
|
88
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
89
|
-
|
90
91
|
# Serialize Request
|
91
92
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters.mapper()
|
92
93
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -146,8 +147,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
146
147
|
#
|
147
148
|
# Update a variable.
|
148
149
|
#
|
149
|
-
# @param resource_group_name [String]
|
150
|
-
# @param automation_account_name [String] The automation account
|
150
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
151
|
+
# @param automation_account_name [String] The name of the automation account.
|
151
152
|
# @param variable_name [String] The variable name.
|
152
153
|
# @param parameters [VariableUpdateParameters] The parameters supplied to the
|
153
154
|
# update variable operation.
|
@@ -156,16 +157,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
156
157
|
#
|
157
158
|
# @return [Variable] operation results.
|
158
159
|
#
|
159
|
-
def update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers
|
160
|
-
response = update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value!
|
160
|
+
def update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil)
|
161
|
+
response = update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
|
161
162
|
response.body unless response.nil?
|
162
163
|
end
|
163
164
|
|
164
165
|
#
|
165
166
|
# Update a variable.
|
166
167
|
#
|
167
|
-
# @param resource_group_name [String]
|
168
|
-
# @param automation_account_name [String] The automation account
|
168
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
169
|
+
# @param automation_account_name [String] The name of the automation account.
|
169
170
|
# @param variable_name [String] The variable name.
|
170
171
|
# @param parameters [VariableUpdateParameters] The parameters supplied to the
|
171
172
|
# update variable operation.
|
@@ -174,15 +175,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
174
175
|
#
|
175
176
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
176
177
|
#
|
177
|
-
def update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers
|
178
|
-
update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value!
|
178
|
+
def update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil)
|
179
|
+
update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
|
179
180
|
end
|
180
181
|
|
181
182
|
#
|
182
183
|
# Update a variable.
|
183
184
|
#
|
184
|
-
# @param resource_group_name [String]
|
185
|
-
# @param automation_account_name [String] The automation account
|
185
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
186
|
+
# @param automation_account_name [String] The name of the automation account.
|
186
187
|
# @param variable_name [String] The variable name.
|
187
188
|
# @param parameters [VariableUpdateParameters] The parameters supplied to the
|
188
189
|
# update variable operation.
|
@@ -191,8 +192,10 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
191
192
|
#
|
192
193
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
193
194
|
#
|
194
|
-
def update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers
|
195
|
+
def update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil)
|
195
196
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
197
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
198
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
196
199
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
197
200
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
198
201
|
fail ArgumentError, 'variable_name is nil' if variable_name.nil?
|
@@ -202,13 +205,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
202
205
|
|
203
206
|
|
204
207
|
request_headers = {}
|
208
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
205
209
|
|
206
210
|
# Set Headers
|
207
211
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
208
212
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
209
213
|
|
210
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
211
|
-
|
212
214
|
# Serialize Request
|
213
215
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters.mapper()
|
214
216
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -258,46 +260,48 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
258
260
|
#
|
259
261
|
# Delete the variable.
|
260
262
|
#
|
261
|
-
# @param resource_group_name [String]
|
262
|
-
# @param automation_account_name [String] The automation account
|
263
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
264
|
+
# @param automation_account_name [String] The name of the automation account.
|
263
265
|
# @param variable_name [String] The name of variable.
|
264
266
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
265
267
|
# will be added to the HTTP request.
|
266
268
|
#
|
267
269
|
#
|
268
|
-
def delete(resource_group_name, automation_account_name, variable_name, custom_headers
|
269
|
-
response = delete_async(resource_group_name, automation_account_name, variable_name, custom_headers).value!
|
270
|
+
def delete(resource_group_name, automation_account_name, variable_name, custom_headers:nil)
|
271
|
+
response = delete_async(resource_group_name, automation_account_name, variable_name, custom_headers:custom_headers).value!
|
270
272
|
nil
|
271
273
|
end
|
272
274
|
|
273
275
|
#
|
274
276
|
# Delete the variable.
|
275
277
|
#
|
276
|
-
# @param resource_group_name [String]
|
277
|
-
# @param automation_account_name [String] The automation account
|
278
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
279
|
+
# @param automation_account_name [String] The name of the automation account.
|
278
280
|
# @param variable_name [String] The name of variable.
|
279
281
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
280
282
|
# will be added to the HTTP request.
|
281
283
|
#
|
282
284
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
283
285
|
#
|
284
|
-
def delete_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers
|
285
|
-
delete_async(resource_group_name, automation_account_name, variable_name, custom_headers).value!
|
286
|
+
def delete_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers:nil)
|
287
|
+
delete_async(resource_group_name, automation_account_name, variable_name, custom_headers:custom_headers).value!
|
286
288
|
end
|
287
289
|
|
288
290
|
#
|
289
291
|
# Delete the variable.
|
290
292
|
#
|
291
|
-
# @param resource_group_name [String]
|
292
|
-
# @param automation_account_name [String] The automation account
|
293
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
294
|
+
# @param automation_account_name [String] The name of the automation account.
|
293
295
|
# @param variable_name [String] The name of variable.
|
294
296
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
295
297
|
# to the HTTP request.
|
296
298
|
#
|
297
299
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
298
300
|
#
|
299
|
-
def delete_async(resource_group_name, automation_account_name, variable_name, custom_headers
|
301
|
+
def delete_async(resource_group_name, automation_account_name, variable_name, custom_headers:nil)
|
300
302
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
303
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
304
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
301
305
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
302
306
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
303
307
|
fail ArgumentError, 'variable_name is nil' if variable_name.nil?
|
@@ -306,6 +310,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
306
310
|
|
307
311
|
|
308
312
|
request_headers = {}
|
313
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
309
314
|
|
310
315
|
# Set Headers
|
311
316
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -343,47 +348,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
343
348
|
#
|
344
349
|
# Retrieve the variable identified by variable name.
|
345
350
|
#
|
346
|
-
# @param resource_group_name [String]
|
347
|
-
# @param automation_account_name [String] The automation account
|
351
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
352
|
+
# @param automation_account_name [String] The name of the automation account.
|
348
353
|
# @param variable_name [String] The name of variable.
|
349
354
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
350
355
|
# will be added to the HTTP request.
|
351
356
|
#
|
352
357
|
# @return [Variable] operation results.
|
353
358
|
#
|
354
|
-
def get(resource_group_name, automation_account_name, variable_name, custom_headers
|
355
|
-
response = get_async(resource_group_name, automation_account_name, variable_name, custom_headers).value!
|
359
|
+
def get(resource_group_name, automation_account_name, variable_name, custom_headers:nil)
|
360
|
+
response = get_async(resource_group_name, automation_account_name, variable_name, custom_headers:custom_headers).value!
|
356
361
|
response.body unless response.nil?
|
357
362
|
end
|
358
363
|
|
359
364
|
#
|
360
365
|
# Retrieve the variable identified by variable name.
|
361
366
|
#
|
362
|
-
# @param resource_group_name [String]
|
363
|
-
# @param automation_account_name [String] The automation account
|
367
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
368
|
+
# @param automation_account_name [String] The name of the automation account.
|
364
369
|
# @param variable_name [String] The name of variable.
|
365
370
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
366
371
|
# will be added to the HTTP request.
|
367
372
|
#
|
368
373
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
369
374
|
#
|
370
|
-
def get_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers
|
371
|
-
get_async(resource_group_name, automation_account_name, variable_name, custom_headers).value!
|
375
|
+
def get_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers:nil)
|
376
|
+
get_async(resource_group_name, automation_account_name, variable_name, custom_headers:custom_headers).value!
|
372
377
|
end
|
373
378
|
|
374
379
|
#
|
375
380
|
# Retrieve the variable identified by variable name.
|
376
381
|
#
|
377
|
-
# @param resource_group_name [String]
|
378
|
-
# @param automation_account_name [String] The automation account
|
382
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
383
|
+
# @param automation_account_name [String] The name of the automation account.
|
379
384
|
# @param variable_name [String] The name of variable.
|
380
385
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
381
386
|
# to the HTTP request.
|
382
387
|
#
|
383
388
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
384
389
|
#
|
385
|
-
def get_async(resource_group_name, automation_account_name, variable_name, custom_headers
|
390
|
+
def get_async(resource_group_name, automation_account_name, variable_name, custom_headers:nil)
|
386
391
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
392
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
393
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
387
394
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
388
395
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
389
396
|
fail ArgumentError, 'variable_name is nil' if variable_name.nil?
|
@@ -392,6 +399,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
392
399
|
|
393
400
|
|
394
401
|
request_headers = {}
|
402
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
395
403
|
|
396
404
|
# Set Headers
|
397
405
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -439,44 +447,46 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
439
447
|
#
|
440
448
|
# Retrieve a list of variables.
|
441
449
|
#
|
442
|
-
# @param resource_group_name [String]
|
443
|
-
# @param automation_account_name [String] The automation account
|
450
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
451
|
+
# @param automation_account_name [String] The name of the automation account.
|
444
452
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
445
453
|
# will be added to the HTTP request.
|
446
454
|
#
|
447
455
|
# @return [Array<Variable>] operation results.
|
448
456
|
#
|
449
|
-
def list_by_automation_account(resource_group_name, automation_account_name, custom_headers
|
450
|
-
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
|
457
|
+
def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
|
458
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
|
451
459
|
first_page.get_all_items
|
452
460
|
end
|
453
461
|
|
454
462
|
#
|
455
463
|
# Retrieve a list of variables.
|
456
464
|
#
|
457
|
-
# @param resource_group_name [String]
|
458
|
-
# @param automation_account_name [String] The automation account
|
465
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
466
|
+
# @param automation_account_name [String] The name of the automation account.
|
459
467
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
460
468
|
# will be added to the HTTP request.
|
461
469
|
#
|
462
470
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
463
471
|
#
|
464
|
-
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers
|
465
|
-
list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
|
472
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
|
473
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
466
474
|
end
|
467
475
|
|
468
476
|
#
|
469
477
|
# Retrieve a list of variables.
|
470
478
|
#
|
471
|
-
# @param resource_group_name [String]
|
472
|
-
# @param automation_account_name [String] The automation account
|
479
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
480
|
+
# @param automation_account_name [String] The name of the automation account.
|
473
481
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
474
482
|
# to the HTTP request.
|
475
483
|
#
|
476
484
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
477
485
|
#
|
478
|
-
def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers
|
486
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
|
479
487
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
488
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
489
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
480
490
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
481
491
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
482
492
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -484,6 +494,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
484
494
|
|
485
495
|
|
486
496
|
request_headers = {}
|
497
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
487
498
|
|
488
499
|
# Set Headers
|
489
500
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -538,8 +549,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
538
549
|
#
|
539
550
|
# @return [VariableListResult] operation results.
|
540
551
|
#
|
541
|
-
def list_by_automation_account_next(next_page_link, custom_headers
|
542
|
-
response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
552
|
+
def list_by_automation_account_next(next_page_link, custom_headers:nil)
|
553
|
+
response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
543
554
|
response.body unless response.nil?
|
544
555
|
end
|
545
556
|
|
@@ -553,8 +564,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
553
564
|
#
|
554
565
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
555
566
|
#
|
556
|
-
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers
|
557
|
-
list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
567
|
+
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
|
568
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
558
569
|
end
|
559
570
|
|
560
571
|
#
|
@@ -567,11 +578,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
567
578
|
#
|
568
579
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
569
580
|
#
|
570
|
-
def list_by_automation_account_next_async(next_page_link, custom_headers
|
581
|
+
def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
|
571
582
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
572
583
|
|
573
584
|
|
574
585
|
request_headers = {}
|
586
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
575
587
|
|
576
588
|
# Set Headers
|
577
589
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -618,20 +630,20 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
618
630
|
#
|
619
631
|
# Retrieve a list of variables.
|
620
632
|
#
|
621
|
-
# @param resource_group_name [String]
|
622
|
-
# @param automation_account_name [String] The automation account
|
633
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
634
|
+
# @param automation_account_name [String] The name of the automation account.
|
623
635
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
624
636
|
# will be added to the HTTP request.
|
625
637
|
#
|
626
638
|
# @return [VariableListResult] which provide lazy access to pages of the
|
627
639
|
# response.
|
628
640
|
#
|
629
|
-
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers
|
630
|
-
response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
|
641
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
|
642
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
631
643
|
unless response.nil?
|
632
644
|
page = response.body
|
633
645
|
page.next_method = Proc.new do |next_page_link|
|
634
|
-
list_by_automation_account_next_async(next_page_link, custom_headers)
|
646
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
|
635
647
|
end
|
636
648
|
page
|
637
649
|
end
|