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 automation agent registration information.
|
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 [AgentRegistration] operation results.
|
33
33
|
#
|
34
|
-
def get(resource_group_name, automation_account_name, custom_headers
|
35
|
-
response = get_async(resource_group_name, automation_account_name, custom_headers).value!
|
34
|
+
def get(resource_group_name, automation_account_name, custom_headers:nil)
|
35
|
+
response = get_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 automation agent registration information.
|
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 get_with_http_info(resource_group_name, automation_account_name, custom_headers
|
50
|
-
get_async(resource_group_name, automation_account_name, custom_headers).value!
|
49
|
+
def get_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
|
50
|
+
get_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
51
51
|
end
|
52
52
|
|
53
53
|
#
|
54
54
|
# Retrieve the automation agent registration information.
|
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 get_async(resource_group_name, automation_account_name, custom_headers
|
63
|
+
def get_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
|
@@ -116,8 +119,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
116
119
|
#
|
117
120
|
# Regenerate a primary or secondary agent registration key
|
118
121
|
#
|
119
|
-
# @param resource_group_name [String]
|
120
|
-
# @param automation_account_name [String] The automation account
|
122
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
123
|
+
# @param automation_account_name [String] The name of the automation account.
|
121
124
|
# @param parameters [AgentRegistrationRegenerateKeyParameter] The name of the
|
122
125
|
# agent registration key to be regenerated
|
123
126
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -125,16 +128,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
125
128
|
#
|
126
129
|
# @return [AgentRegistration] operation results.
|
127
130
|
#
|
128
|
-
def regenerate_key(resource_group_name, automation_account_name, parameters, custom_headers
|
129
|
-
response = regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers).value!
|
131
|
+
def regenerate_key(resource_group_name, automation_account_name, parameters, custom_headers:nil)
|
132
|
+
response = regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value!
|
130
133
|
response.body unless response.nil?
|
131
134
|
end
|
132
135
|
|
133
136
|
#
|
134
137
|
# Regenerate a primary or secondary agent registration key
|
135
138
|
#
|
136
|
-
# @param resource_group_name [String]
|
137
|
-
# @param automation_account_name [String] The automation account
|
139
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
140
|
+
# @param automation_account_name [String] The name of the automation account.
|
138
141
|
# @param parameters [AgentRegistrationRegenerateKeyParameter] The name of the
|
139
142
|
# agent registration key to be regenerated
|
140
143
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -142,15 +145,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
142
145
|
#
|
143
146
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
144
147
|
#
|
145
|
-
def regenerate_key_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers
|
146
|
-
regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers).value!
|
148
|
+
def regenerate_key_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers:nil)
|
149
|
+
regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value!
|
147
150
|
end
|
148
151
|
|
149
152
|
#
|
150
153
|
# Regenerate a primary or secondary agent registration key
|
151
154
|
#
|
152
|
-
# @param resource_group_name [String]
|
153
|
-
# @param automation_account_name [String] The automation account
|
155
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
156
|
+
# @param automation_account_name [String] The name of the automation account.
|
154
157
|
# @param parameters [AgentRegistrationRegenerateKeyParameter] The name of the
|
155
158
|
# agent registration key to be regenerated
|
156
159
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -158,8 +161,10 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
158
161
|
#
|
159
162
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
160
163
|
#
|
161
|
-
def regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers
|
164
|
+
def regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers:nil)
|
162
165
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
166
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
167
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
163
168
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
164
169
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
165
170
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -168,13 +173,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
168
173
|
|
169
174
|
|
170
175
|
request_headers = {}
|
176
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
171
177
|
|
172
178
|
# Set Headers
|
173
179
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
174
180
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
175
181
|
|
176
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
177
|
-
|
178
182
|
# Serialize Request
|
179
183
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationRegenerateKeyParameter.mapper()
|
180
184
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -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
|
@@ -33,16 +33,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
33
33
|
#
|
34
34
|
# @return [AutomationAccount] operation results.
|
35
35
|
#
|
36
|
-
def update(resource_group_name, automation_account_name, parameters, custom_headers
|
37
|
-
response = update_async(resource_group_name, automation_account_name, parameters, custom_headers).value!
|
36
|
+
def update(resource_group_name, automation_account_name, parameters, custom_headers:nil)
|
37
|
+
response = update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value!
|
38
38
|
response.body unless response.nil?
|
39
39
|
end
|
40
40
|
|
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
|
@@ -50,15 +50,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
50
50
|
#
|
51
51
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
52
|
#
|
53
|
-
def update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers
|
54
|
-
update_async(resource_group_name, automation_account_name, parameters, custom_headers).value!
|
53
|
+
def update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers:nil)
|
54
|
+
update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value!
|
55
55
|
end
|
56
56
|
|
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
|
@@ -66,8 +66,10 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
66
66
|
#
|
67
67
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
68
|
#
|
69
|
-
def update_async(resource_group_name, automation_account_name, parameters, custom_headers
|
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?
|
@@ -76,13 +78,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
76
78
|
|
77
79
|
|
78
80
|
request_headers = {}
|
81
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
79
82
|
|
80
83
|
# Set Headers
|
81
84
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
82
85
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
83
86
|
|
84
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
85
|
-
|
86
87
|
# Serialize Request
|
87
88
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters.mapper()
|
88
89
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -132,9 +133,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
132
133
|
#
|
133
134
|
# Create or update automation account.
|
134
135
|
#
|
135
|
-
# @param resource_group_name [String]
|
136
|
-
# @param automation_account_name [String]
|
137
|
-
# 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.
|
138
138
|
# @param parameters [AutomationAccountCreateOrUpdateParameters] Parameters
|
139
139
|
# supplied to the create or update automation account.
|
140
140
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -142,17 +142,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
142
142
|
#
|
143
143
|
# @return [AutomationAccount] operation results.
|
144
144
|
#
|
145
|
-
def create_or_update(resource_group_name, automation_account_name, parameters, custom_headers
|
146
|
-
response = create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers).value!
|
145
|
+
def create_or_update(resource_group_name, automation_account_name, parameters, custom_headers:nil)
|
146
|
+
response = create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value!
|
147
147
|
response.body unless response.nil?
|
148
148
|
end
|
149
149
|
|
150
150
|
#
|
151
151
|
# Create or update automation account.
|
152
152
|
#
|
153
|
-
# @param resource_group_name [String]
|
154
|
-
# @param automation_account_name [String]
|
155
|
-
# 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.
|
156
155
|
# @param parameters [AutomationAccountCreateOrUpdateParameters] Parameters
|
157
156
|
# supplied to the create or update automation account.
|
158
157
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -160,16 +159,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
160
159
|
#
|
161
160
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
162
161
|
#
|
163
|
-
def create_or_update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers
|
164
|
-
create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers).value!
|
162
|
+
def create_or_update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers:nil)
|
163
|
+
create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value!
|
165
164
|
end
|
166
165
|
|
167
166
|
#
|
168
167
|
# Create or update automation account.
|
169
168
|
#
|
170
|
-
# @param resource_group_name [String]
|
171
|
-
# @param automation_account_name [String]
|
172
|
-
# 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.
|
173
171
|
# @param parameters [AutomationAccountCreateOrUpdateParameters] Parameters
|
174
172
|
# supplied to the create or update automation account.
|
175
173
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -177,8 +175,10 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
177
175
|
#
|
178
176
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
179
177
|
#
|
180
|
-
def create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers
|
178
|
+
def create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers:nil)
|
181
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
|
182
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?
|
183
183
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
184
184
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -187,13 +187,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
187
187
|
|
188
188
|
|
189
189
|
request_headers = {}
|
190
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
190
191
|
|
191
192
|
# Set Headers
|
192
193
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
193
194
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
194
195
|
|
195
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
196
|
-
|
197
196
|
# Serialize Request
|
198
197
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters.mapper()
|
199
198
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -253,43 +252,45 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
253
252
|
#
|
254
253
|
# Delete an automation account.
|
255
254
|
#
|
256
|
-
# @param resource_group_name [String]
|
257
|
-
# @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.
|
258
257
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
259
258
|
# will be added to the HTTP request.
|
260
259
|
#
|
261
260
|
#
|
262
|
-
def delete(resource_group_name, automation_account_name, custom_headers
|
263
|
-
response = delete_async(resource_group_name, automation_account_name, custom_headers).value!
|
261
|
+
def delete(resource_group_name, automation_account_name, custom_headers:nil)
|
262
|
+
response = delete_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
264
263
|
nil
|
265
264
|
end
|
266
265
|
|
267
266
|
#
|
268
267
|
# Delete an automation account.
|
269
268
|
#
|
270
|
-
# @param resource_group_name [String]
|
271
|
-
# @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.
|
272
271
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
273
272
|
# will be added to the HTTP request.
|
274
273
|
#
|
275
274
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
276
275
|
#
|
277
|
-
def delete_with_http_info(resource_group_name, automation_account_name, custom_headers
|
278
|
-
delete_async(resource_group_name, automation_account_name, custom_headers).value!
|
276
|
+
def delete_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
|
277
|
+
delete_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
279
278
|
end
|
280
279
|
|
281
280
|
#
|
282
281
|
# Delete an automation account.
|
283
282
|
#
|
284
|
-
# @param resource_group_name [String]
|
285
|
-
# @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.
|
286
285
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
287
286
|
# to the HTTP request.
|
288
287
|
#
|
289
288
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
290
289
|
#
|
291
|
-
def delete_async(resource_group_name, automation_account_name, custom_headers
|
290
|
+
def delete_async(resource_group_name, automation_account_name, custom_headers:nil)
|
292
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
|
293
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?
|
294
295
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
295
296
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -297,6 +298,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
297
298
|
|
298
299
|
|
299
300
|
request_headers = {}
|
301
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
300
302
|
|
301
303
|
# Set Headers
|
302
304
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -334,44 +336,46 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
334
336
|
#
|
335
337
|
# Get information about an Automation Account.
|
336
338
|
#
|
337
|
-
# @param resource_group_name [String]
|
338
|
-
# @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.
|
339
341
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
340
342
|
# will be added to the HTTP request.
|
341
343
|
#
|
342
344
|
# @return [AutomationAccount] operation results.
|
343
345
|
#
|
344
|
-
def get(resource_group_name, automation_account_name, custom_headers
|
345
|
-
response = get_async(resource_group_name, automation_account_name, custom_headers).value!
|
346
|
+
def get(resource_group_name, automation_account_name, custom_headers:nil)
|
347
|
+
response = get_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
346
348
|
response.body unless response.nil?
|
347
349
|
end
|
348
350
|
|
349
351
|
#
|
350
352
|
# Get information about an Automation Account.
|
351
353
|
#
|
352
|
-
# @param resource_group_name [String]
|
353
|
-
# @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.
|
354
356
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
355
357
|
# will be added to the HTTP request.
|
356
358
|
#
|
357
359
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
358
360
|
#
|
359
|
-
def get_with_http_info(resource_group_name, automation_account_name, custom_headers
|
360
|
-
get_async(resource_group_name, automation_account_name, custom_headers).value!
|
361
|
+
def get_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
|
362
|
+
get_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
361
363
|
end
|
362
364
|
|
363
365
|
#
|
364
366
|
# Get information about an Automation Account.
|
365
367
|
#
|
366
|
-
# @param resource_group_name [String]
|
367
|
-
# @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.
|
368
370
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
369
371
|
# to the HTTP request.
|
370
372
|
#
|
371
373
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
372
374
|
#
|
373
|
-
def get_async(resource_group_name, automation_account_name, custom_headers
|
375
|
+
def get_async(resource_group_name, automation_account_name, custom_headers:nil)
|
374
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
|
375
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?
|
376
380
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
377
381
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -379,6 +383,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
379
383
|
|
380
384
|
|
381
385
|
request_headers = {}
|
386
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
382
387
|
|
383
388
|
# Set Headers
|
384
389
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -426,47 +431,50 @@ 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
|
#
|
433
438
|
# @return [Array<AutomationAccount>] operation results.
|
434
439
|
#
|
435
|
-
def list_by_resource_group(resource_group_name, custom_headers
|
436
|
-
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
440
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
441
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
|
437
442
|
first_page.get_all_items
|
438
443
|
end
|
439
444
|
|
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
|
#
|
447
452
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
448
453
|
#
|
449
|
-
def list_by_resource_group_with_http_info(resource_group_name, custom_headers
|
450
|
-
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
454
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
455
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
451
456
|
end
|
452
457
|
|
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
|
#
|
460
465
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
461
466
|
#
|
462
|
-
def list_by_resource_group_async(resource_group_name, custom_headers
|
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?
|
467
474
|
|
468
475
|
|
469
476
|
request_headers = {}
|
477
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
470
478
|
|
471
479
|
# Set Headers
|
472
480
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -521,8 +529,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
521
529
|
#
|
522
530
|
# @return [Array<AutomationAccount>] operation results.
|
523
531
|
#
|
524
|
-
def list(custom_headers
|
525
|
-
first_page = list_as_lazy(custom_headers)
|
532
|
+
def list(custom_headers:nil)
|
533
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
526
534
|
first_page.get_all_items
|
527
535
|
end
|
528
536
|
|
@@ -536,8 +544,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
536
544
|
#
|
537
545
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
538
546
|
#
|
539
|
-
def list_with_http_info(custom_headers
|
540
|
-
list_async(custom_headers).value!
|
547
|
+
def list_with_http_info(custom_headers:nil)
|
548
|
+
list_async(custom_headers:custom_headers).value!
|
541
549
|
end
|
542
550
|
|
543
551
|
#
|
@@ -550,12 +558,13 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
550
558
|
#
|
551
559
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
552
560
|
#
|
553
|
-
def list_async(custom_headers
|
561
|
+
def list_async(custom_headers:nil)
|
554
562
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
555
563
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
556
564
|
|
557
565
|
|
558
566
|
request_headers = {}
|
567
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
559
568
|
|
560
569
|
# Set Headers
|
561
570
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -610,8 +619,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
610
619
|
#
|
611
620
|
# @return [AutomationAccountListResult] operation results.
|
612
621
|
#
|
613
|
-
def list_by_resource_group_next(next_page_link, custom_headers
|
614
|
-
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
622
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
623
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
615
624
|
response.body unless response.nil?
|
616
625
|
end
|
617
626
|
|
@@ -625,8 +634,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
625
634
|
#
|
626
635
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
627
636
|
#
|
628
|
-
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers
|
629
|
-
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
637
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
638
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
630
639
|
end
|
631
640
|
|
632
641
|
#
|
@@ -639,11 +648,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
639
648
|
#
|
640
649
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
641
650
|
#
|
642
|
-
def list_by_resource_group_next_async(next_page_link, custom_headers
|
651
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
643
652
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
644
653
|
|
645
654
|
|
646
655
|
request_headers = {}
|
656
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
647
657
|
|
648
658
|
# Set Headers
|
649
659
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -699,8 +709,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
699
709
|
#
|
700
710
|
# @return [AutomationAccountListResult] operation results.
|
701
711
|
#
|
702
|
-
def list_next(next_page_link, custom_headers
|
703
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
712
|
+
def list_next(next_page_link, custom_headers:nil)
|
713
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
704
714
|
response.body unless response.nil?
|
705
715
|
end
|
706
716
|
|
@@ -716,8 +726,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
716
726
|
#
|
717
727
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
718
728
|
#
|
719
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
720
|
-
list_next_async(next_page_link, custom_headers).value!
|
729
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
730
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
721
731
|
end
|
722
732
|
|
723
733
|
#
|
@@ -732,11 +742,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
732
742
|
#
|
733
743
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
734
744
|
#
|
735
|
-
def list_next_async(next_page_link, custom_headers
|
745
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
736
746
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
737
747
|
|
738
748
|
|
739
749
|
request_headers = {}
|
750
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
740
751
|
|
741
752
|
# Set Headers
|
742
753
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -783,19 +794,19 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
783
794
|
#
|
784
795
|
# Retrieve a list of accounts within a given resource group.
|
785
796
|
#
|
786
|
-
# @param resource_group_name [String]
|
797
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
787
798
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
788
799
|
# will be added to the HTTP request.
|
789
800
|
#
|
790
801
|
# @return [AutomationAccountListResult] which provide lazy access to pages of
|
791
802
|
# the response.
|
792
803
|
#
|
793
|
-
def list_by_resource_group_as_lazy(resource_group_name, custom_headers
|
794
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
804
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
|
805
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
795
806
|
unless response.nil?
|
796
807
|
page = response.body
|
797
808
|
page.next_method = Proc.new do |next_page_link|
|
798
|
-
list_by_resource_group_next_async(next_page_link, custom_headers)
|
809
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
799
810
|
end
|
800
811
|
page
|
801
812
|
end
|
@@ -812,12 +823,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
812
823
|
# @return [AutomationAccountListResult] which provide lazy access to pages of
|
813
824
|
# the response.
|
814
825
|
#
|
815
|
-
def list_as_lazy(custom_headers
|
816
|
-
response = list_async(custom_headers).value!
|
826
|
+
def list_as_lazy(custom_headers:nil)
|
827
|
+
response = list_async(custom_headers:custom_headers).value!
|
817
828
|
unless response.nil?
|
818
829
|
page = response.body
|
819
830
|
page.next_method = Proc.new do |next_page_link|
|
820
|
-
list_next_async(next_page_link, custom_headers)
|
831
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
821
832
|
end
|
822
833
|
page
|
823
834
|
end
|