azure_mgmt_automation 0.15.2 → 0.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,46 +24,48 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Delete the Dsc node configurations by node configuration.
|
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 node_configuration_name [String] The Dsc node configuration name.
|
30
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
31
|
# will be added to the HTTP request.
|
32
32
|
#
|
33
33
|
#
|
34
|
-
def delete(resource_group_name, automation_account_name, node_configuration_name, custom_headers
|
35
|
-
response = delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers).value!
|
34
|
+
def delete(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil)
|
35
|
+
response = delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:custom_headers).value!
|
36
36
|
nil
|
37
37
|
end
|
38
38
|
|
39
39
|
#
|
40
40
|
# Delete the Dsc node configurations by node configuration.
|
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 node_configuration_name [String] The Dsc node configuration name.
|
45
45
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
46
|
# will be added to the HTTP request.
|
47
47
|
#
|
48
48
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
49
49
|
#
|
50
|
-
def delete_with_http_info(resource_group_name, automation_account_name, node_configuration_name, custom_headers
|
51
|
-
delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers).value!
|
50
|
+
def delete_with_http_info(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil)
|
51
|
+
delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:custom_headers).value!
|
52
52
|
end
|
53
53
|
|
54
54
|
#
|
55
55
|
# Delete the Dsc node configurations by node configuration.
|
56
56
|
#
|
57
|
-
# @param resource_group_name [String]
|
58
|
-
# @param automation_account_name [String] The automation account
|
57
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
58
|
+
# @param automation_account_name [String] The name of the automation account.
|
59
59
|
# @param node_configuration_name [String] The Dsc node configuration name.
|
60
60
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
61
61
|
# to the HTTP request.
|
62
62
|
#
|
63
63
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
64
64
|
#
|
65
|
-
def delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers
|
65
|
+
def delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil)
|
66
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
|
67
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?
|
68
70
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
69
71
|
fail ArgumentError, 'node_configuration_name is nil' if node_configuration_name.nil?
|
@@ -72,6 +74,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
72
74
|
|
73
75
|
|
74
76
|
request_headers = {}
|
77
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
75
78
|
|
76
79
|
# Set Headers
|
77
80
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -109,47 +112,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
109
112
|
#
|
110
113
|
# Retrieve the Dsc node configurations by node configuration.
|
111
114
|
#
|
112
|
-
# @param resource_group_name [String]
|
113
|
-
# @param automation_account_name [String] The automation account
|
115
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
116
|
+
# @param automation_account_name [String] The name of the automation account.
|
114
117
|
# @param node_configuration_name [String] The Dsc node configuration name.
|
115
118
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
116
119
|
# will be added to the HTTP request.
|
117
120
|
#
|
118
121
|
# @return [DscNodeConfiguration] operation results.
|
119
122
|
#
|
120
|
-
def get(resource_group_name, automation_account_name, node_configuration_name, custom_headers
|
121
|
-
response = get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers).value!
|
123
|
+
def get(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil)
|
124
|
+
response = get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:custom_headers).value!
|
122
125
|
response.body unless response.nil?
|
123
126
|
end
|
124
127
|
|
125
128
|
#
|
126
129
|
# Retrieve the Dsc node configurations by node configuration.
|
127
130
|
#
|
128
|
-
# @param resource_group_name [String]
|
129
|
-
# @param automation_account_name [String] The automation account
|
131
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
132
|
+
# @param automation_account_name [String] The name of the automation account.
|
130
133
|
# @param node_configuration_name [String] The Dsc node configuration name.
|
131
134
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
132
135
|
# will be added to the HTTP request.
|
133
136
|
#
|
134
137
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
135
138
|
#
|
136
|
-
def get_with_http_info(resource_group_name, automation_account_name, node_configuration_name, custom_headers
|
137
|
-
get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers).value!
|
139
|
+
def get_with_http_info(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil)
|
140
|
+
get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:custom_headers).value!
|
138
141
|
end
|
139
142
|
|
140
143
|
#
|
141
144
|
# Retrieve the Dsc node configurations by node configuration.
|
142
145
|
#
|
143
|
-
# @param resource_group_name [String]
|
144
|
-
# @param automation_account_name [String] The automation account
|
146
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
147
|
+
# @param automation_account_name [String] The name of the automation account.
|
145
148
|
# @param node_configuration_name [String] The Dsc node configuration name.
|
146
149
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
147
150
|
# to the HTTP request.
|
148
151
|
#
|
149
152
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
150
153
|
#
|
151
|
-
def get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers
|
154
|
+
def get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers:nil)
|
152
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
|
153
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?
|
154
159
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
155
160
|
fail ArgumentError, 'node_configuration_name is nil' if node_configuration_name.nil?
|
@@ -158,6 +163,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
158
163
|
|
159
164
|
|
160
165
|
request_headers = {}
|
166
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
161
167
|
|
162
168
|
# Set Headers
|
163
169
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -205,8 +211,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
205
211
|
#
|
206
212
|
# Create the node configuration identified by node configuration name.
|
207
213
|
#
|
208
|
-
# @param resource_group_name [String]
|
209
|
-
# @param automation_account_name [String] The automation account
|
214
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
215
|
+
# @param automation_account_name [String] The name of the automation account.
|
210
216
|
# @param node_configuration_name [String] The create or update parameters for
|
211
217
|
# configuration.
|
212
218
|
# @param parameters [DscNodeConfigurationCreateOrUpdateParameters] The create
|
@@ -216,16 +222,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
216
222
|
#
|
217
223
|
# @return [DscNodeConfiguration] operation results.
|
218
224
|
#
|
219
|
-
def create_or_update(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers
|
220
|
-
response = create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers).value!
|
225
|
+
def create_or_update(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:nil)
|
226
|
+
response = create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:custom_headers).value!
|
221
227
|
response.body unless response.nil?
|
222
228
|
end
|
223
229
|
|
224
230
|
#
|
225
231
|
# Create the node configuration identified by node configuration name.
|
226
232
|
#
|
227
|
-
# @param resource_group_name [String]
|
228
|
-
# @param automation_account_name [String] The automation account
|
233
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
234
|
+
# @param automation_account_name [String] The name of the automation account.
|
229
235
|
# @param node_configuration_name [String] The create or update parameters for
|
230
236
|
# configuration.
|
231
237
|
# @param parameters [DscNodeConfigurationCreateOrUpdateParameters] The create
|
@@ -235,15 +241,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
235
241
|
#
|
236
242
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
237
243
|
#
|
238
|
-
def create_or_update_with_http_info(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers
|
239
|
-
create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers).value!
|
244
|
+
def create_or_update_with_http_info(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:nil)
|
245
|
+
create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:custom_headers).value!
|
240
246
|
end
|
241
247
|
|
242
248
|
#
|
243
249
|
# Create the node configuration identified by node configuration name.
|
244
250
|
#
|
245
|
-
# @param resource_group_name [String]
|
246
|
-
# @param automation_account_name [String] The automation account
|
251
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
252
|
+
# @param automation_account_name [String] The name of the automation account.
|
247
253
|
# @param node_configuration_name [String] The create or update parameters for
|
248
254
|
# configuration.
|
249
255
|
# @param parameters [DscNodeConfigurationCreateOrUpdateParameters] The create
|
@@ -253,8 +259,10 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
253
259
|
#
|
254
260
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
255
261
|
#
|
256
|
-
def create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers
|
262
|
+
def create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:nil)
|
257
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
|
258
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?
|
259
267
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
260
268
|
fail ArgumentError, 'node_configuration_name is nil' if node_configuration_name.nil?
|
@@ -264,13 +272,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
264
272
|
|
265
273
|
|
266
274
|
request_headers = {}
|
275
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
267
276
|
|
268
277
|
# Set Headers
|
269
278
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
270
279
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
271
280
|
|
272
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
273
|
-
|
274
281
|
# Serialize Request
|
275
282
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationCreateOrUpdateParameters.mapper()
|
276
283
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -294,7 +301,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
294
301
|
http_response = result.response
|
295
302
|
status_code = http_response.status
|
296
303
|
response_content = http_response.body
|
297
|
-
unless status_code == 200
|
304
|
+
unless status_code == 200
|
298
305
|
error_model = JSON.load(response_content)
|
299
306
|
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
300
307
|
end
|
@@ -310,16 +317,6 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
310
317
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
311
318
|
end
|
312
319
|
end
|
313
|
-
# Deserialize Response
|
314
|
-
if status_code == 201
|
315
|
-
begin
|
316
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
317
|
-
result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration.mapper()
|
318
|
-
result.body = @client.deserialize(result_mapper, parsed_response)
|
319
|
-
rescue Exception => e
|
320
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
321
|
-
end
|
322
|
-
end
|
323
320
|
|
324
321
|
result
|
325
322
|
end
|
@@ -330,47 +327,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
330
327
|
#
|
331
328
|
# Retrieve a list of dsc node configurations.
|
332
329
|
#
|
333
|
-
# @param resource_group_name [String]
|
334
|
-
# @param automation_account_name [String] The automation account
|
330
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
331
|
+
# @param automation_account_name [String] The name of the automation account.
|
335
332
|
# @param filter [String] The filter to apply on the operation.
|
336
333
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
337
334
|
# will be added to the HTTP request.
|
338
335
|
#
|
339
336
|
# @return [Array<DscNodeConfiguration>] operation results.
|
340
337
|
#
|
341
|
-
def list_by_automation_account(resource_group_name, automation_account_name, filter
|
342
|
-
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers)
|
338
|
+
def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
339
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers)
|
343
340
|
first_page.get_all_items
|
344
341
|
end
|
345
342
|
|
346
343
|
#
|
347
344
|
# Retrieve a list of dsc node configurations.
|
348
345
|
#
|
349
|
-
# @param resource_group_name [String]
|
350
|
-
# @param automation_account_name [String] The automation account
|
346
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
347
|
+
# @param automation_account_name [String] The name of the automation account.
|
351
348
|
# @param filter [String] The filter to apply on the operation.
|
352
349
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
353
350
|
# will be added to the HTTP request.
|
354
351
|
#
|
355
352
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
356
353
|
#
|
357
|
-
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter
|
358
|
-
list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
|
354
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
355
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
359
356
|
end
|
360
357
|
|
361
358
|
#
|
362
359
|
# Retrieve a list of dsc node configurations.
|
363
360
|
#
|
364
|
-
# @param resource_group_name [String]
|
365
|
-
# @param automation_account_name [String] The automation account
|
361
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
362
|
+
# @param automation_account_name [String] The name of the automation account.
|
366
363
|
# @param filter [String] The filter to apply on the operation.
|
367
364
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
368
365
|
# to the HTTP request.
|
369
366
|
#
|
370
367
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
371
368
|
#
|
372
|
-
def list_by_automation_account_async(resource_group_name, automation_account_name, filter
|
369
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
373
370
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
371
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
372
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
374
373
|
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
374
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
376
375
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -378,6 +377,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
378
377
|
|
379
378
|
|
380
379
|
request_headers = {}
|
380
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
381
381
|
|
382
382
|
# Set Headers
|
383
383
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -432,8 +432,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
432
432
|
#
|
433
433
|
# @return [DscNodeConfigurationListResult] operation results.
|
434
434
|
#
|
435
|
-
def list_by_automation_account_next(next_page_link, custom_headers
|
436
|
-
response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
435
|
+
def list_by_automation_account_next(next_page_link, custom_headers:nil)
|
436
|
+
response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
437
437
|
response.body unless response.nil?
|
438
438
|
end
|
439
439
|
|
@@ -447,8 +447,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
447
447
|
#
|
448
448
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
449
449
|
#
|
450
|
-
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers
|
451
|
-
list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
450
|
+
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
|
451
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
452
452
|
end
|
453
453
|
|
454
454
|
#
|
@@ -461,11 +461,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
461
461
|
#
|
462
462
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
463
463
|
#
|
464
|
-
def list_by_automation_account_next_async(next_page_link, custom_headers
|
464
|
+
def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
|
465
465
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
466
466
|
|
467
467
|
|
468
468
|
request_headers = {}
|
469
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
469
470
|
|
470
471
|
# Set Headers
|
471
472
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -512,8 +513,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
512
513
|
#
|
513
514
|
# Retrieve a list of dsc node configurations.
|
514
515
|
#
|
515
|
-
# @param resource_group_name [String]
|
516
|
-
# @param automation_account_name [String] The automation account
|
516
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
517
|
+
# @param automation_account_name [String] The name of the automation account.
|
517
518
|
# @param filter [String] The filter to apply on the operation.
|
518
519
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
519
520
|
# will be added to the HTTP request.
|
@@ -521,12 +522,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
521
522
|
# @return [DscNodeConfigurationListResult] which provide lazy access to pages
|
522
523
|
# of the response.
|
523
524
|
#
|
524
|
-
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter
|
525
|
-
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
|
525
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
526
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
526
527
|
unless response.nil?
|
527
528
|
page = response.body
|
528
529
|
page.next_method = Proc.new do |next_page_link|
|
529
|
-
list_by_automation_account_next_async(next_page_link, custom_headers)
|
530
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
|
530
531
|
end
|
531
532
|
page
|
532
533
|
end
|
@@ -24,47 +24,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Delete the dsc node identified by node id.
|
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 node_id [String] The node id.
|
30
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
31
|
# will be added to the HTTP request.
|
32
32
|
#
|
33
33
|
# @return [DscNode] operation results.
|
34
34
|
#
|
35
|
-
def delete(resource_group_name, automation_account_name, node_id, custom_headers
|
36
|
-
response = delete_async(resource_group_name, automation_account_name, node_id, custom_headers).value!
|
35
|
+
def delete(resource_group_name, automation_account_name, node_id, custom_headers:nil)
|
36
|
+
response = delete_async(resource_group_name, automation_account_name, node_id, custom_headers:custom_headers).value!
|
37
37
|
response.body unless response.nil?
|
38
38
|
end
|
39
39
|
|
40
40
|
#
|
41
41
|
# Delete the dsc node identified by node id.
|
42
42
|
#
|
43
|
-
# @param resource_group_name [String]
|
44
|
-
# @param automation_account_name [String]
|
43
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
44
|
+
# @param automation_account_name [String] The name of the automation account.
|
45
45
|
# @param node_id [String] The node id.
|
46
46
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
47
|
# will be added to the HTTP request.
|
48
48
|
#
|
49
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
50
|
#
|
51
|
-
def delete_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers
|
52
|
-
delete_async(resource_group_name, automation_account_name, node_id, custom_headers).value!
|
51
|
+
def delete_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers:nil)
|
52
|
+
delete_async(resource_group_name, automation_account_name, node_id, custom_headers:custom_headers).value!
|
53
53
|
end
|
54
54
|
|
55
55
|
#
|
56
56
|
# Delete the dsc node identified by node id.
|
57
57
|
#
|
58
|
-
# @param resource_group_name [String]
|
59
|
-
# @param automation_account_name [String]
|
58
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
59
|
+
# @param automation_account_name [String] The name of the automation account.
|
60
60
|
# @param node_id [String] The node id.
|
61
61
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
62
|
# to the HTTP request.
|
63
63
|
#
|
64
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
65
|
#
|
66
|
-
def delete_async(resource_group_name, automation_account_name, node_id, custom_headers
|
66
|
+
def delete_async(resource_group_name, automation_account_name, node_id, custom_headers:nil)
|
67
67
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
68
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
69
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
68
70
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
69
71
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
70
72
|
fail ArgumentError, 'node_id is nil' if node_id.nil?
|
@@ -73,6 +75,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
73
75
|
|
74
76
|
|
75
77
|
request_headers = {}
|
78
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
76
79
|
|
77
80
|
# Set Headers
|
78
81
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -120,47 +123,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
120
123
|
#
|
121
124
|
# Retrieve the dsc node identified by node id.
|
122
125
|
#
|
123
|
-
# @param resource_group_name [String]
|
124
|
-
# @param automation_account_name [String] The automation account
|
126
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
127
|
+
# @param automation_account_name [String] The name of the automation account.
|
125
128
|
# @param node_id [String] The node id.
|
126
129
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
127
130
|
# will be added to the HTTP request.
|
128
131
|
#
|
129
132
|
# @return [DscNode] operation results.
|
130
133
|
#
|
131
|
-
def get(resource_group_name, automation_account_name, node_id, custom_headers
|
132
|
-
response = get_async(resource_group_name, automation_account_name, node_id, custom_headers).value!
|
134
|
+
def get(resource_group_name, automation_account_name, node_id, custom_headers:nil)
|
135
|
+
response = get_async(resource_group_name, automation_account_name, node_id, custom_headers:custom_headers).value!
|
133
136
|
response.body unless response.nil?
|
134
137
|
end
|
135
138
|
|
136
139
|
#
|
137
140
|
# Retrieve the dsc node identified by node id.
|
138
141
|
#
|
139
|
-
# @param resource_group_name [String]
|
140
|
-
# @param automation_account_name [String] The automation account
|
142
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
143
|
+
# @param automation_account_name [String] The name of the automation account.
|
141
144
|
# @param node_id [String] The node id.
|
142
145
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
143
146
|
# will be added to the HTTP request.
|
144
147
|
#
|
145
148
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
146
149
|
#
|
147
|
-
def get_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers
|
148
|
-
get_async(resource_group_name, automation_account_name, node_id, custom_headers).value!
|
150
|
+
def get_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers:nil)
|
151
|
+
get_async(resource_group_name, automation_account_name, node_id, custom_headers:custom_headers).value!
|
149
152
|
end
|
150
153
|
|
151
154
|
#
|
152
155
|
# Retrieve the dsc node identified by node id.
|
153
156
|
#
|
154
|
-
# @param resource_group_name [String]
|
155
|
-
# @param automation_account_name [String] The automation account
|
157
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
158
|
+
# @param automation_account_name [String] The name of the automation account.
|
156
159
|
# @param node_id [String] The node id.
|
157
160
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
158
161
|
# to the HTTP request.
|
159
162
|
#
|
160
163
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
161
164
|
#
|
162
|
-
def get_async(resource_group_name, automation_account_name, node_id, custom_headers
|
165
|
+
def get_async(resource_group_name, automation_account_name, node_id, custom_headers:nil)
|
163
166
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
167
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
168
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
164
169
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
165
170
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
166
171
|
fail ArgumentError, 'node_id is nil' if node_id.nil?
|
@@ -169,6 +174,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
169
174
|
|
170
175
|
|
171
176
|
request_headers = {}
|
177
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
172
178
|
|
173
179
|
# Set Headers
|
174
180
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -216,8 +222,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
216
222
|
#
|
217
223
|
# Update the dsc node.
|
218
224
|
#
|
219
|
-
# @param resource_group_name [String]
|
220
|
-
# @param automation_account_name [String] The automation account
|
225
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
226
|
+
# @param automation_account_name [String] The name of the automation account.
|
221
227
|
# @param node_id [String] Parameters supplied to the update dsc node.
|
222
228
|
# @param parameters [DscNodeUpdateParameters] Parameters supplied to the update
|
223
229
|
# dsc node.
|
@@ -226,16 +232,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
226
232
|
#
|
227
233
|
# @return [DscNode] operation results.
|
228
234
|
#
|
229
|
-
def update(resource_group_name, automation_account_name, node_id, parameters, custom_headers
|
230
|
-
response = update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers).value!
|
235
|
+
def update(resource_group_name, automation_account_name, node_id, parameters, custom_headers:nil)
|
236
|
+
response = update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers:custom_headers).value!
|
231
237
|
response.body unless response.nil?
|
232
238
|
end
|
233
239
|
|
234
240
|
#
|
235
241
|
# Update the dsc node.
|
236
242
|
#
|
237
|
-
# @param resource_group_name [String]
|
238
|
-
# @param automation_account_name [String] The automation account
|
243
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
244
|
+
# @param automation_account_name [String] The name of the automation account.
|
239
245
|
# @param node_id [String] Parameters supplied to the update dsc node.
|
240
246
|
# @param parameters [DscNodeUpdateParameters] Parameters supplied to the update
|
241
247
|
# dsc node.
|
@@ -244,15 +250,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
244
250
|
#
|
245
251
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
246
252
|
#
|
247
|
-
def update_with_http_info(resource_group_name, automation_account_name, node_id, parameters, custom_headers
|
248
|
-
update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers).value!
|
253
|
+
def update_with_http_info(resource_group_name, automation_account_name, node_id, parameters, custom_headers:nil)
|
254
|
+
update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers:custom_headers).value!
|
249
255
|
end
|
250
256
|
|
251
257
|
#
|
252
258
|
# Update the dsc node.
|
253
259
|
#
|
254
|
-
# @param resource_group_name [String]
|
255
|
-
# @param automation_account_name [String] The automation account
|
260
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
261
|
+
# @param automation_account_name [String] The name of the automation account.
|
256
262
|
# @param node_id [String] Parameters supplied to the update dsc node.
|
257
263
|
# @param parameters [DscNodeUpdateParameters] Parameters supplied to the update
|
258
264
|
# dsc node.
|
@@ -261,8 +267,10 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
261
267
|
#
|
262
268
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
263
269
|
#
|
264
|
-
def update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers
|
270
|
+
def update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers:nil)
|
265
271
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
272
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
273
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
266
274
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
267
275
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
268
276
|
fail ArgumentError, 'node_id is nil' if node_id.nil?
|
@@ -272,13 +280,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
272
280
|
|
273
281
|
|
274
282
|
request_headers = {}
|
283
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
275
284
|
|
276
285
|
# Set Headers
|
277
286
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
278
287
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
279
288
|
|
280
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
281
|
-
|
282
289
|
# Serialize Request
|
283
290
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeUpdateParameters.mapper()
|
284
291
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -328,47 +335,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
328
335
|
#
|
329
336
|
# Retrieve a list of dsc nodes.
|
330
337
|
#
|
331
|
-
# @param resource_group_name [String]
|
332
|
-
# @param automation_account_name [String] The automation account
|
338
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
339
|
+
# @param automation_account_name [String] The name of the automation account.
|
333
340
|
# @param filter [String] The filter to apply on the operation.
|
334
341
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
335
342
|
# will be added to the HTTP request.
|
336
343
|
#
|
337
344
|
# @return [Array<DscNode>] operation results.
|
338
345
|
#
|
339
|
-
def list_by_automation_account(resource_group_name, automation_account_name, filter
|
340
|
-
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers)
|
346
|
+
def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
347
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers)
|
341
348
|
first_page.get_all_items
|
342
349
|
end
|
343
350
|
|
344
351
|
#
|
345
352
|
# Retrieve a list of dsc nodes.
|
346
353
|
#
|
347
|
-
# @param resource_group_name [String]
|
348
|
-
# @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.
|
349
356
|
# @param filter [String] The filter to apply on the operation.
|
350
357
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
351
358
|
# will be added to the HTTP request.
|
352
359
|
#
|
353
360
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
354
361
|
#
|
355
|
-
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter
|
356
|
-
list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
|
362
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
363
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
357
364
|
end
|
358
365
|
|
359
366
|
#
|
360
367
|
# Retrieve a list of dsc nodes.
|
361
368
|
#
|
362
|
-
# @param resource_group_name [String]
|
363
|
-
# @param automation_account_name [String] The automation account
|
369
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
370
|
+
# @param automation_account_name [String] The name of the automation account.
|
364
371
|
# @param filter [String] The filter to apply on the operation.
|
365
372
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
366
373
|
# to the HTTP request.
|
367
374
|
#
|
368
375
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
369
376
|
#
|
370
|
-
def list_by_automation_account_async(resource_group_name, automation_account_name, filter
|
377
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
371
378
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
379
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
380
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
372
381
|
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
382
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
374
383
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -376,6 +385,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
376
385
|
|
377
386
|
|
378
387
|
request_headers = {}
|
388
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
379
389
|
|
380
390
|
# Set Headers
|
381
391
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -430,8 +440,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
430
440
|
#
|
431
441
|
# @return [DscNodeListResult] operation results.
|
432
442
|
#
|
433
|
-
def list_by_automation_account_next(next_page_link, custom_headers
|
434
|
-
response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
443
|
+
def list_by_automation_account_next(next_page_link, custom_headers:nil)
|
444
|
+
response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
435
445
|
response.body unless response.nil?
|
436
446
|
end
|
437
447
|
|
@@ -445,8 +455,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
445
455
|
#
|
446
456
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
447
457
|
#
|
448
|
-
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers
|
449
|
-
list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
458
|
+
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
|
459
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
450
460
|
end
|
451
461
|
|
452
462
|
#
|
@@ -459,11 +469,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
459
469
|
#
|
460
470
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
461
471
|
#
|
462
|
-
def list_by_automation_account_next_async(next_page_link, custom_headers
|
472
|
+
def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
|
463
473
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
464
474
|
|
465
475
|
|
466
476
|
request_headers = {}
|
477
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
467
478
|
|
468
479
|
# Set Headers
|
469
480
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -510,8 +521,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
510
521
|
#
|
511
522
|
# Retrieve a list of dsc nodes.
|
512
523
|
#
|
513
|
-
# @param resource_group_name [String]
|
514
|
-
# @param automation_account_name [String] The automation account
|
524
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
525
|
+
# @param automation_account_name [String] The name of the automation account.
|
515
526
|
# @param filter [String] The filter to apply on the operation.
|
516
527
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
517
528
|
# will be added to the HTTP request.
|
@@ -519,12 +530,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
519
530
|
# @return [DscNodeListResult] which provide lazy access to pages of the
|
520
531
|
# response.
|
521
532
|
#
|
522
|
-
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter
|
523
|
-
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
|
533
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
534
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
524
535
|
unless response.nil?
|
525
536
|
page = response.body
|
526
537
|
page.next_method = Proc.new do |next_page_link|
|
527
|
-
list_by_automation_account_next_async(next_page_link, custom_headers)
|
538
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
|
528
539
|
end
|
529
540
|
page
|
530
541
|
end
|