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,8 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Create a schedule.
|
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 schedule_name [String] The schedule name.
|
30
30
|
# @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied
|
31
31
|
# to the create or update schedule operation.
|
@@ -34,16 +34,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
34
34
|
#
|
35
35
|
# @return [Schedule] operation results.
|
36
36
|
#
|
37
|
-
def create_or_update(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers
|
38
|
-
response = create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers).value!
|
37
|
+
def create_or_update(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil)
|
38
|
+
response = create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
|
39
39
|
response.body unless response.nil?
|
40
40
|
end
|
41
41
|
|
42
42
|
#
|
43
43
|
# Create a schedule.
|
44
44
|
#
|
45
|
-
# @param resource_group_name [String]
|
46
|
-
# @param automation_account_name [String] The automation account
|
45
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
46
|
+
# @param automation_account_name [String] The name of the automation account.
|
47
47
|
# @param schedule_name [String] The schedule name.
|
48
48
|
# @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied
|
49
49
|
# to the create or update schedule operation.
|
@@ -52,15 +52,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
52
52
|
#
|
53
53
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
54
|
#
|
55
|
-
def create_or_update_with_http_info(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers
|
56
|
-
create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers).value!
|
55
|
+
def create_or_update_with_http_info(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil)
|
56
|
+
create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
|
57
57
|
end
|
58
58
|
|
59
59
|
#
|
60
60
|
# Create a schedule.
|
61
61
|
#
|
62
|
-
# @param resource_group_name [String]
|
63
|
-
# @param automation_account_name [String] The automation account
|
62
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
63
|
+
# @param automation_account_name [String] The name of the automation account.
|
64
64
|
# @param schedule_name [String] The schedule name.
|
65
65
|
# @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied
|
66
66
|
# to the create or update schedule operation.
|
@@ -69,8 +69,10 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
69
69
|
#
|
70
70
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
71
|
#
|
72
|
-
def create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers
|
72
|
+
def create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil)
|
73
73
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
75
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
74
76
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
75
77
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
76
78
|
fail ArgumentError, 'schedule_name is nil' if schedule_name.nil?
|
@@ -80,13 +82,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
80
82
|
|
81
83
|
|
82
84
|
request_headers = {}
|
85
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
83
86
|
|
84
87
|
# Set Headers
|
85
88
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
86
89
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
87
90
|
|
88
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
89
|
-
|
90
91
|
# Serialize Request
|
91
92
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleCreateOrUpdateParameters.mapper()
|
92
93
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -110,7 +111,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
110
111
|
http_response = result.response
|
111
112
|
status_code = http_response.status
|
112
113
|
response_content = http_response.body
|
113
|
-
unless status_code == 201 || status_code == 409
|
114
|
+
unless status_code == 201 || status_code == 200 || status_code == 409
|
114
115
|
error_model = JSON.load(response_content)
|
115
116
|
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
116
117
|
end
|
@@ -126,6 +127,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
126
127
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
127
128
|
end
|
128
129
|
end
|
130
|
+
# Deserialize Response
|
131
|
+
if status_code == 200
|
132
|
+
begin
|
133
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
134
|
+
result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Schedule.mapper()
|
135
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
136
|
+
rescue Exception => e
|
137
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
138
|
+
end
|
139
|
+
end
|
129
140
|
|
130
141
|
result
|
131
142
|
end
|
@@ -136,8 +147,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
136
147
|
#
|
137
148
|
# Update the schedule identified by schedule name.
|
138
149
|
#
|
139
|
-
# @param resource_group_name [String]
|
140
|
-
# @param automation_account_name [String] The automation account
|
150
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
151
|
+
# @param automation_account_name [String] The name of the automation account.
|
141
152
|
# @param schedule_name [String] The schedule name.
|
142
153
|
# @param parameters [ScheduleUpdateParameters] The parameters supplied to the
|
143
154
|
# update schedule operation.
|
@@ -146,16 +157,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
146
157
|
#
|
147
158
|
# @return [Schedule] operation results.
|
148
159
|
#
|
149
|
-
def update(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers
|
150
|
-
response = update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers).value!
|
160
|
+
def update(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil)
|
161
|
+
response = update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
|
151
162
|
response.body unless response.nil?
|
152
163
|
end
|
153
164
|
|
154
165
|
#
|
155
166
|
# Update the schedule identified by schedule name.
|
156
167
|
#
|
157
|
-
# @param resource_group_name [String]
|
158
|
-
# @param automation_account_name [String] The automation account
|
168
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
169
|
+
# @param automation_account_name [String] The name of the automation account.
|
159
170
|
# @param schedule_name [String] The schedule name.
|
160
171
|
# @param parameters [ScheduleUpdateParameters] The parameters supplied to the
|
161
172
|
# update schedule operation.
|
@@ -164,15 +175,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
164
175
|
#
|
165
176
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
166
177
|
#
|
167
|
-
def update_with_http_info(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers
|
168
|
-
update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers).value!
|
178
|
+
def update_with_http_info(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil)
|
179
|
+
update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value!
|
169
180
|
end
|
170
181
|
|
171
182
|
#
|
172
183
|
# Update the schedule identified by schedule name.
|
173
184
|
#
|
174
|
-
# @param resource_group_name [String]
|
175
|
-
# @param automation_account_name [String] The automation account
|
185
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
186
|
+
# @param automation_account_name [String] The name of the automation account.
|
176
187
|
# @param schedule_name [String] The schedule name.
|
177
188
|
# @param parameters [ScheduleUpdateParameters] The parameters supplied to the
|
178
189
|
# update schedule operation.
|
@@ -181,8 +192,10 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
181
192
|
#
|
182
193
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
183
194
|
#
|
184
|
-
def update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers
|
195
|
+
def update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers:nil)
|
185
196
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
197
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
198
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
186
199
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
187
200
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
188
201
|
fail ArgumentError, 'schedule_name is nil' if schedule_name.nil?
|
@@ -192,13 +205,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
192
205
|
|
193
206
|
|
194
207
|
request_headers = {}
|
208
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
195
209
|
|
196
210
|
# Set Headers
|
197
211
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
198
212
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
199
213
|
|
200
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
201
|
-
|
202
214
|
# Serialize Request
|
203
215
|
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleUpdateParameters.mapper()
|
204
216
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -248,47 +260,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
248
260
|
#
|
249
261
|
# Retrieve the schedule identified by schedule name.
|
250
262
|
#
|
251
|
-
# @param resource_group_name [String]
|
252
|
-
# @param automation_account_name [String] The automation account
|
263
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
264
|
+
# @param automation_account_name [String] The name of the automation account.
|
253
265
|
# @param schedule_name [String] The schedule name.
|
254
266
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
255
267
|
# will be added to the HTTP request.
|
256
268
|
#
|
257
269
|
# @return [Schedule] operation results.
|
258
270
|
#
|
259
|
-
def get(resource_group_name, automation_account_name, schedule_name, custom_headers
|
260
|
-
response = get_async(resource_group_name, automation_account_name, schedule_name, custom_headers).value!
|
271
|
+
def get(resource_group_name, automation_account_name, schedule_name, custom_headers:nil)
|
272
|
+
response = get_async(resource_group_name, automation_account_name, schedule_name, custom_headers:custom_headers).value!
|
261
273
|
response.body unless response.nil?
|
262
274
|
end
|
263
275
|
|
264
276
|
#
|
265
277
|
# Retrieve the schedule identified by schedule name.
|
266
278
|
#
|
267
|
-
# @param resource_group_name [String]
|
268
|
-
# @param automation_account_name [String] The automation account
|
279
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
280
|
+
# @param automation_account_name [String] The name of the automation account.
|
269
281
|
# @param schedule_name [String] The schedule name.
|
270
282
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
271
283
|
# will be added to the HTTP request.
|
272
284
|
#
|
273
285
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
274
286
|
#
|
275
|
-
def get_with_http_info(resource_group_name, automation_account_name, schedule_name, custom_headers
|
276
|
-
get_async(resource_group_name, automation_account_name, schedule_name, custom_headers).value!
|
287
|
+
def get_with_http_info(resource_group_name, automation_account_name, schedule_name, custom_headers:nil)
|
288
|
+
get_async(resource_group_name, automation_account_name, schedule_name, custom_headers:custom_headers).value!
|
277
289
|
end
|
278
290
|
|
279
291
|
#
|
280
292
|
# Retrieve the schedule identified by schedule name.
|
281
293
|
#
|
282
|
-
# @param resource_group_name [String]
|
283
|
-
# @param automation_account_name [String] The automation account
|
294
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
295
|
+
# @param automation_account_name [String] The name of the automation account.
|
284
296
|
# @param schedule_name [String] The schedule name.
|
285
297
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
286
298
|
# to the HTTP request.
|
287
299
|
#
|
288
300
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
289
301
|
#
|
290
|
-
def get_async(resource_group_name, automation_account_name, schedule_name, custom_headers
|
302
|
+
def get_async(resource_group_name, automation_account_name, schedule_name, custom_headers:nil)
|
291
303
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
304
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
305
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
292
306
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
293
307
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
294
308
|
fail ArgumentError, 'schedule_name is nil' if schedule_name.nil?
|
@@ -297,6 +311,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
297
311
|
|
298
312
|
|
299
313
|
request_headers = {}
|
314
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
300
315
|
|
301
316
|
# Set Headers
|
302
317
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -344,46 +359,48 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
344
359
|
#
|
345
360
|
# Delete the schedule identified by schedule name.
|
346
361
|
#
|
347
|
-
# @param resource_group_name [String]
|
348
|
-
# @param automation_account_name [String] The automation account
|
362
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
363
|
+
# @param automation_account_name [String] The name of the automation account.
|
349
364
|
# @param schedule_name [String] The schedule name.
|
350
365
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
351
366
|
# will be added to the HTTP request.
|
352
367
|
#
|
353
368
|
#
|
354
|
-
def delete(resource_group_name, automation_account_name, schedule_name, custom_headers
|
355
|
-
response = delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers).value!
|
369
|
+
def delete(resource_group_name, automation_account_name, schedule_name, custom_headers:nil)
|
370
|
+
response = delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers:custom_headers).value!
|
356
371
|
nil
|
357
372
|
end
|
358
373
|
|
359
374
|
#
|
360
375
|
# Delete the schedule identified by schedule name.
|
361
376
|
#
|
362
|
-
# @param resource_group_name [String]
|
363
|
-
# @param automation_account_name [String] The automation account
|
377
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
378
|
+
# @param automation_account_name [String] The name of the automation account.
|
364
379
|
# @param schedule_name [String] The schedule name.
|
365
380
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
366
381
|
# will be added to the HTTP request.
|
367
382
|
#
|
368
383
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
369
384
|
#
|
370
|
-
def delete_with_http_info(resource_group_name, automation_account_name, schedule_name, custom_headers
|
371
|
-
delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers).value!
|
385
|
+
def delete_with_http_info(resource_group_name, automation_account_name, schedule_name, custom_headers:nil)
|
386
|
+
delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers:custom_headers).value!
|
372
387
|
end
|
373
388
|
|
374
389
|
#
|
375
390
|
# Delete the schedule identified by schedule name.
|
376
391
|
#
|
377
|
-
# @param resource_group_name [String]
|
378
|
-
# @param automation_account_name [String] The automation account
|
392
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
393
|
+
# @param automation_account_name [String] The name of the automation account.
|
379
394
|
# @param schedule_name [String] The schedule name.
|
380
395
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
381
396
|
# to the HTTP request.
|
382
397
|
#
|
383
398
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
384
399
|
#
|
385
|
-
def delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers
|
400
|
+
def delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers:nil)
|
386
401
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
402
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
403
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
387
404
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
388
405
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
389
406
|
fail ArgumentError, 'schedule_name is nil' if schedule_name.nil?
|
@@ -392,6 +409,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
392
409
|
|
393
410
|
|
394
411
|
request_headers = {}
|
412
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
395
413
|
|
396
414
|
# Set Headers
|
397
415
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -413,7 +431,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
413
431
|
http_response = result.response
|
414
432
|
status_code = http_response.status
|
415
433
|
response_content = http_response.body
|
416
|
-
unless status_code == 200
|
434
|
+
unless status_code == 200
|
417
435
|
error_model = JSON.load(response_content)
|
418
436
|
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
419
437
|
end
|
@@ -429,44 +447,46 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
429
447
|
#
|
430
448
|
# Retrieve a list of schedules.
|
431
449
|
#
|
432
|
-
# @param resource_group_name [String]
|
433
|
-
# @param automation_account_name [String] The automation account
|
450
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
451
|
+
# @param automation_account_name [String] The name of the automation account.
|
434
452
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
435
453
|
# will be added to the HTTP request.
|
436
454
|
#
|
437
455
|
# @return [Array<Schedule>] operation results.
|
438
456
|
#
|
439
|
-
def list_by_automation_account(resource_group_name, automation_account_name, custom_headers
|
440
|
-
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
|
457
|
+
def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
|
458
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
|
441
459
|
first_page.get_all_items
|
442
460
|
end
|
443
461
|
|
444
462
|
#
|
445
463
|
# Retrieve a list of schedules.
|
446
464
|
#
|
447
|
-
# @param resource_group_name [String]
|
448
|
-
# @param automation_account_name [String] The automation account
|
465
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
466
|
+
# @param automation_account_name [String] The name of the automation account.
|
449
467
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
450
468
|
# will be added to the HTTP request.
|
451
469
|
#
|
452
470
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
453
471
|
#
|
454
|
-
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers
|
455
|
-
list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
|
472
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
|
473
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
456
474
|
end
|
457
475
|
|
458
476
|
#
|
459
477
|
# Retrieve a list of schedules.
|
460
478
|
#
|
461
|
-
# @param resource_group_name [String]
|
462
|
-
# @param automation_account_name [String] The automation account
|
479
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
480
|
+
# @param automation_account_name [String] The name of the automation account.
|
463
481
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
464
482
|
# to the HTTP request.
|
465
483
|
#
|
466
484
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
467
485
|
#
|
468
|
-
def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers
|
486
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
|
469
487
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
488
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
489
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
470
490
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
471
491
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
472
492
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -474,6 +494,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
474
494
|
|
475
495
|
|
476
496
|
request_headers = {}
|
497
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
477
498
|
|
478
499
|
# Set Headers
|
479
500
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -528,8 +549,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
528
549
|
#
|
529
550
|
# @return [ScheduleListResult] operation results.
|
530
551
|
#
|
531
|
-
def list_by_automation_account_next(next_page_link, custom_headers
|
532
|
-
response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
552
|
+
def list_by_automation_account_next(next_page_link, custom_headers:nil)
|
553
|
+
response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
533
554
|
response.body unless response.nil?
|
534
555
|
end
|
535
556
|
|
@@ -543,8 +564,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
543
564
|
#
|
544
565
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
545
566
|
#
|
546
|
-
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers
|
547
|
-
list_by_automation_account_next_async(next_page_link, custom_headers).value!
|
567
|
+
def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
|
568
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
|
548
569
|
end
|
549
570
|
|
550
571
|
#
|
@@ -557,11 +578,12 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
557
578
|
#
|
558
579
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
559
580
|
#
|
560
|
-
def list_by_automation_account_next_async(next_page_link, custom_headers
|
581
|
+
def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
|
561
582
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
562
583
|
|
563
584
|
|
564
585
|
request_headers = {}
|
586
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
565
587
|
|
566
588
|
# Set Headers
|
567
589
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -608,20 +630,20 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
608
630
|
#
|
609
631
|
# Retrieve a list of schedules.
|
610
632
|
#
|
611
|
-
# @param resource_group_name [String]
|
612
|
-
# @param automation_account_name [String] The automation account
|
633
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
634
|
+
# @param automation_account_name [String] The name of the automation account.
|
613
635
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
614
636
|
# will be added to the HTTP request.
|
615
637
|
#
|
616
638
|
# @return [ScheduleListResult] which provide lazy access to pages of the
|
617
639
|
# response.
|
618
640
|
#
|
619
|
-
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers
|
620
|
-
response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
|
641
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
|
642
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
621
643
|
unless response.nil?
|
622
644
|
page = response.body
|
623
645
|
page.next_method = Proc.new do |next_page_link|
|
624
|
-
list_by_automation_account_next_async(next_page_link, custom_headers)
|
646
|
+
list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
|
625
647
|
end
|
626
648
|
page
|
627
649
|
end
|
@@ -24,47 +24,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Retrieve the statistics for the account.
|
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 filter [String] The filter to apply on the operation.
|
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 [StatisticsListResult] operation results.
|
34
34
|
#
|
35
|
-
def list_by_automation_account(resource_group_name, automation_account_name, filter
|
36
|
-
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
|
35
|
+
def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
36
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
37
37
|
response.body unless response.nil?
|
38
38
|
end
|
39
39
|
|
40
40
|
#
|
41
41
|
# Retrieve the statistics for the account.
|
42
42
|
#
|
43
|
-
# @param resource_group_name [String]
|
44
|
-
# @param automation_account_name [String] The automation account
|
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 filter [String] The filter to apply on the operation.
|
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 list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter
|
52
|
-
list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
|
51
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
52
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
53
53
|
end
|
54
54
|
|
55
55
|
#
|
56
56
|
# Retrieve the statistics for the account.
|
57
57
|
#
|
58
|
-
# @param resource_group_name [String]
|
59
|
-
# @param automation_account_name [String] The automation account
|
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 filter [String] The filter to apply on the operation.
|
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 list_by_automation_account_async(resource_group_name, automation_account_name, filter
|
66
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, 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, '@client.subscription_id is nil' if @client.subscription_id.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
|