azure_mgmt_automation 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation.rb +110 -97
- data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +36 -25
- data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +32 -22
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +38 -31
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +22 -12
- data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +68 -47
- data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +68 -47
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_stream.rb +124 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +218 -61
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +69 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +68 -47
- data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +16 -11
- data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +73 -48
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +132 -91
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +73 -48
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +36 -25
- data/lib/2015-10-31/generated/azure_mgmt_automation/keys.rb +120 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/linked_workspace_operations.rb +120 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb +35 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_validation_set.rb +47 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb +2 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +2 -2
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb +9 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_name.rb +16 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb +16 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +44 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +3 -3
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb +20 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_update_parameters.rb +132 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +1 -25
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +20 -15
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +4 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/group_type_enum.rb +16 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +11 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb +37 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb +0 -42
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state.rb +18 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/key.rb +73 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb +56 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/{sub_resource.rb → linked_workspace.rb} +7 -6
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb +20 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/proxy_resource.rb +62 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb +4 -34
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb +9 -9
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb +2 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb +11 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +0 -11
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/tracked_resource.rb +92 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +1 -10
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +23 -7
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +1 -1
- data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +53 -54
- data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +32 -22
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +150 -107
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +130 -78
- data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +96 -60
- data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +8 -6
- data/lib/2015-10-31/generated/azure_mgmt_automation/{test_jobs.rb → test_job_operations.rb} +87 -62
- data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +44 -30
- data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +8 -6
- data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +84 -58
- data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +100 -69
- data/lib/profiles/latest/modules/automation_profile_module.rb +364 -318
- data/lib/version.rb +1 -1
- metadata +19 -6
@@ -24,48 +24,53 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Retrieve the content of runbook identified by runbook name.
|
26
26
|
#
|
27
|
-
# @param
|
27
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
28
|
+
# @param automation_account_name [String] The name of the automation account.
|
28
29
|
# @param runbook_name [String] The runbook name.
|
29
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
31
|
# will be added to the HTTP request.
|
31
32
|
#
|
32
33
|
# @return [NOT_IMPLEMENTED] operation results.
|
33
34
|
#
|
34
|
-
def get_content(automation_account_name, runbook_name, custom_headers:nil)
|
35
|
-
response = get_content_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
35
|
+
def get_content(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
|
36
|
+
response = get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
36
37
|
response.body unless response.nil?
|
37
38
|
end
|
38
39
|
|
39
40
|
#
|
40
41
|
# Retrieve the content of runbook identified by runbook name.
|
41
42
|
#
|
42
|
-
# @param
|
43
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
44
|
+
# @param automation_account_name [String] The name of the automation account.
|
43
45
|
# @param runbook_name [String] The runbook name.
|
44
46
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
47
|
# will be added to the HTTP request.
|
46
48
|
#
|
47
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
50
|
#
|
49
|
-
def get_content_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
|
50
|
-
get_content_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
51
|
+
def get_content_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
|
52
|
+
get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
51
53
|
end
|
52
54
|
|
53
55
|
#
|
54
56
|
# Retrieve the content of runbook identified by runbook name.
|
55
57
|
#
|
56
|
-
# @param
|
58
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
59
|
+
# @param automation_account_name [String] The name of the automation account.
|
57
60
|
# @param runbook_name [String] The runbook name.
|
58
61
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
62
|
# to the HTTP request.
|
60
63
|
#
|
61
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
65
|
#
|
63
|
-
def get_content_async(automation_account_name, runbook_name, custom_headers:nil)
|
64
|
-
fail ArgumentError, '@client.
|
65
|
-
fail ArgumentError,
|
66
|
+
def get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
|
67
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
68
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
69
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
70
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
71
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
66
72
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
67
73
|
fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
|
68
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
69
74
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
70
75
|
|
71
76
|
|
@@ -81,7 +86,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
81
86
|
|
82
87
|
options = {
|
83
88
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
84
|
-
path_params: {'
|
89
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
|
85
90
|
query_params: {'api-version' => @client.api_version},
|
86
91
|
headers: request_headers.merge(custom_headers || {}),
|
87
92
|
base_url: request_url
|
@@ -94,7 +99,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
94
99
|
response_content = http_response.body
|
95
100
|
unless status_code == 200
|
96
101
|
error_model = JSON.load(response_content)
|
97
|
-
fail
|
102
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
98
103
|
end
|
99
104
|
|
100
105
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -125,48 +130,53 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
125
130
|
#
|
126
131
|
# Retrieve the runbook identified by runbook name.
|
127
132
|
#
|
128
|
-
# @param
|
133
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
134
|
+
# @param automation_account_name [String] The name of the automation account.
|
129
135
|
# @param runbook_name [String] The runbook name.
|
130
136
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
131
137
|
# will be added to the HTTP request.
|
132
138
|
#
|
133
139
|
# @return [Runbook] operation results.
|
134
140
|
#
|
135
|
-
def get(automation_account_name, runbook_name, custom_headers:nil)
|
136
|
-
response = get_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
141
|
+
def get(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
|
142
|
+
response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
137
143
|
response.body unless response.nil?
|
138
144
|
end
|
139
145
|
|
140
146
|
#
|
141
147
|
# Retrieve the runbook identified by runbook name.
|
142
148
|
#
|
143
|
-
# @param
|
149
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
150
|
+
# @param automation_account_name [String] The name of the automation account.
|
144
151
|
# @param runbook_name [String] The runbook name.
|
145
152
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
146
153
|
# will be added to the HTTP request.
|
147
154
|
#
|
148
155
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
149
156
|
#
|
150
|
-
def get_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
|
151
|
-
get_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
157
|
+
def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
|
158
|
+
get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
152
159
|
end
|
153
160
|
|
154
161
|
#
|
155
162
|
# Retrieve the runbook identified by runbook name.
|
156
163
|
#
|
157
|
-
# @param
|
164
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
165
|
+
# @param automation_account_name [String] The name of the automation account.
|
158
166
|
# @param runbook_name [String] The runbook name.
|
159
167
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
160
168
|
# to the HTTP request.
|
161
169
|
#
|
162
170
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
163
171
|
#
|
164
|
-
def get_async(automation_account_name, runbook_name, custom_headers:nil)
|
165
|
-
fail ArgumentError, '@client.
|
166
|
-
fail ArgumentError,
|
172
|
+
def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
|
173
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
174
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
175
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
176
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
177
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
167
178
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
168
179
|
fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
|
169
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
170
180
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
171
181
|
|
172
182
|
|
@@ -182,7 +192,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
182
192
|
|
183
193
|
options = {
|
184
194
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
185
|
-
path_params: {'
|
195
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
|
186
196
|
query_params: {'api-version' => @client.api_version},
|
187
197
|
headers: request_headers.merge(custom_headers || {}),
|
188
198
|
base_url: request_url
|
@@ -219,7 +229,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
219
229
|
#
|
220
230
|
# Create the runbook identified by runbook name.
|
221
231
|
#
|
222
|
-
# @param
|
232
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
233
|
+
# @param automation_account_name [String] The name of the automation account.
|
223
234
|
# @param runbook_name [String] The runbook name.
|
224
235
|
# @param parameters [RunbookCreateOrUpdateParameters] The create or update
|
225
236
|
# parameters for runbook. Provide either content link for a published runbook
|
@@ -227,16 +238,18 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
227
238
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
228
239
|
# will be added to the HTTP request.
|
229
240
|
#
|
241
|
+
# @return [Runbook] operation results.
|
230
242
|
#
|
231
|
-
def create_or_update(automation_account_name, runbook_name, parameters, custom_headers:nil)
|
232
|
-
response = create_or_update_async(automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
|
233
|
-
nil
|
243
|
+
def create_or_update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
|
244
|
+
response = create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
|
245
|
+
response.body unless response.nil?
|
234
246
|
end
|
235
247
|
|
236
248
|
#
|
237
249
|
# Create the runbook identified by runbook name.
|
238
250
|
#
|
239
|
-
# @param
|
251
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
252
|
+
# @param automation_account_name [String] The name of the automation account.
|
240
253
|
# @param runbook_name [String] The runbook name.
|
241
254
|
# @param parameters [RunbookCreateOrUpdateParameters] The create or update
|
242
255
|
# parameters for runbook. Provide either content link for a published runbook
|
@@ -246,14 +259,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
246
259
|
#
|
247
260
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
248
261
|
#
|
249
|
-
def create_or_update_with_http_info(automation_account_name, runbook_name, parameters, custom_headers:nil)
|
250
|
-
create_or_update_async(automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
|
262
|
+
def create_or_update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
|
263
|
+
create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
|
251
264
|
end
|
252
265
|
|
253
266
|
#
|
254
267
|
# Create the runbook identified by runbook name.
|
255
268
|
#
|
256
|
-
# @param
|
269
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
270
|
+
# @param automation_account_name [String] The name of the automation account.
|
257
271
|
# @param runbook_name [String] The runbook name.
|
258
272
|
# @param parameters [RunbookCreateOrUpdateParameters] The create or update
|
259
273
|
# parameters for runbook. Provide either content link for a published runbook
|
@@ -263,13 +277,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
263
277
|
#
|
264
278
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
265
279
|
#
|
266
|
-
def create_or_update_async(automation_account_name, runbook_name, parameters, custom_headers:nil)
|
267
|
-
fail ArgumentError, '@client.
|
268
|
-
fail ArgumentError,
|
280
|
+
def create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
|
281
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
282
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
283
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
284
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
285
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
269
286
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
270
287
|
fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
|
271
288
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
272
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
273
289
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
274
290
|
|
275
291
|
|
@@ -291,7 +307,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
291
307
|
|
292
308
|
options = {
|
293
309
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
294
|
-
path_params: {'
|
310
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
|
295
311
|
query_params: {'api-version' => @client.api_version},
|
296
312
|
body: request_content,
|
297
313
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -309,6 +325,26 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
309
325
|
end
|
310
326
|
|
311
327
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
328
|
+
# Deserialize Response
|
329
|
+
if status_code == 200
|
330
|
+
begin
|
331
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
332
|
+
result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook.mapper()
|
333
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
334
|
+
rescue Exception => e
|
335
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
336
|
+
end
|
337
|
+
end
|
338
|
+
# Deserialize Response
|
339
|
+
if status_code == 201
|
340
|
+
begin
|
341
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
342
|
+
result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook.mapper()
|
343
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
344
|
+
rescue Exception => e
|
345
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
346
|
+
end
|
347
|
+
end
|
312
348
|
|
313
349
|
result
|
314
350
|
end
|
@@ -319,7 +355,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
319
355
|
#
|
320
356
|
# Update the runbook identified by runbook name.
|
321
357
|
#
|
322
|
-
# @param
|
358
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
359
|
+
# @param automation_account_name [String] The name of the automation account.
|
323
360
|
# @param runbook_name [String] The runbook name.
|
324
361
|
# @param parameters [RunbookUpdateParameters] The update parameters for
|
325
362
|
# runbook.
|
@@ -328,15 +365,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
328
365
|
#
|
329
366
|
# @return [Runbook] operation results.
|
330
367
|
#
|
331
|
-
def update(automation_account_name, runbook_name, parameters, custom_headers:nil)
|
332
|
-
response = update_async(automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
|
368
|
+
def update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
|
369
|
+
response = update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
|
333
370
|
response.body unless response.nil?
|
334
371
|
end
|
335
372
|
|
336
373
|
#
|
337
374
|
# Update the runbook identified by runbook name.
|
338
375
|
#
|
339
|
-
# @param
|
376
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
377
|
+
# @param automation_account_name [String] The name of the automation account.
|
340
378
|
# @param runbook_name [String] The runbook name.
|
341
379
|
# @param parameters [RunbookUpdateParameters] The update parameters for
|
342
380
|
# runbook.
|
@@ -345,14 +383,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
345
383
|
#
|
346
384
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
347
385
|
#
|
348
|
-
def update_with_http_info(automation_account_name, runbook_name, parameters, custom_headers:nil)
|
349
|
-
update_async(automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
|
386
|
+
def update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
|
387
|
+
update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
|
350
388
|
end
|
351
389
|
|
352
390
|
#
|
353
391
|
# Update the runbook identified by runbook name.
|
354
392
|
#
|
355
|
-
# @param
|
393
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
394
|
+
# @param automation_account_name [String] The name of the automation account.
|
356
395
|
# @param runbook_name [String] The runbook name.
|
357
396
|
# @param parameters [RunbookUpdateParameters] The update parameters for
|
358
397
|
# runbook.
|
@@ -361,13 +400,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
361
400
|
#
|
362
401
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
363
402
|
#
|
364
|
-
def update_async(automation_account_name, runbook_name, parameters, custom_headers:nil)
|
365
|
-
fail ArgumentError, '@client.
|
366
|
-
fail ArgumentError,
|
403
|
+
def update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
|
404
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
405
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
406
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
407
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
408
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
367
409
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
368
410
|
fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
|
369
411
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
370
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
371
412
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
372
413
|
|
373
414
|
|
@@ -389,7 +430,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
389
430
|
|
390
431
|
options = {
|
391
432
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
392
|
-
path_params: {'
|
433
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
|
393
434
|
query_params: {'api-version' => @client.api_version},
|
394
435
|
body: request_content,
|
395
436
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -427,47 +468,52 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
427
468
|
#
|
428
469
|
# Delete the runbook by name.
|
429
470
|
#
|
430
|
-
# @param
|
471
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
472
|
+
# @param automation_account_name [String] The name of the automation account.
|
431
473
|
# @param runbook_name [String] The runbook name.
|
432
474
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
433
475
|
# will be added to the HTTP request.
|
434
476
|
#
|
435
477
|
#
|
436
|
-
def delete(automation_account_name, runbook_name, custom_headers:nil)
|
437
|
-
response = delete_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
478
|
+
def delete(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
|
479
|
+
response = delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
438
480
|
nil
|
439
481
|
end
|
440
482
|
|
441
483
|
#
|
442
484
|
# Delete the runbook by name.
|
443
485
|
#
|
444
|
-
# @param
|
486
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
487
|
+
# @param automation_account_name [String] The name of the automation account.
|
445
488
|
# @param runbook_name [String] The runbook name.
|
446
489
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
447
490
|
# will be added to the HTTP request.
|
448
491
|
#
|
449
492
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
450
493
|
#
|
451
|
-
def delete_with_http_info(automation_account_name, runbook_name, custom_headers:nil)
|
452
|
-
delete_async(automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
494
|
+
def delete_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
|
495
|
+
delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
|
453
496
|
end
|
454
497
|
|
455
498
|
#
|
456
499
|
# Delete the runbook by name.
|
457
500
|
#
|
458
|
-
# @param
|
501
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
502
|
+
# @param automation_account_name [String] The name of the automation account.
|
459
503
|
# @param runbook_name [String] The runbook name.
|
460
504
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
461
505
|
# to the HTTP request.
|
462
506
|
#
|
463
507
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
464
508
|
#
|
465
|
-
def delete_async(automation_account_name, runbook_name, custom_headers:nil)
|
466
|
-
fail ArgumentError, '@client.
|
467
|
-
fail ArgumentError,
|
509
|
+
def delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
|
510
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
511
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
512
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
513
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
514
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
468
515
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
469
516
|
fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
|
470
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
471
517
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
472
518
|
|
473
519
|
|
@@ -483,7 +529,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
483
529
|
|
484
530
|
options = {
|
485
531
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
486
|
-
path_params: {'
|
532
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
|
487
533
|
query_params: {'api-version' => @client.api_version},
|
488
534
|
headers: request_headers.merge(custom_headers || {}),
|
489
535
|
base_url: request_url
|
@@ -494,7 +540,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
494
540
|
http_response = result.response
|
495
541
|
status_code = http_response.status
|
496
542
|
response_content = http_response.body
|
497
|
-
unless status_code == 200
|
543
|
+
unless status_code == 200 || status_code == 204
|
498
544
|
error_model = JSON.load(response_content)
|
499
545
|
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
500
546
|
end
|
@@ -510,44 +556,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
510
556
|
#
|
511
557
|
# Retrieve a list of runbooks.
|
512
558
|
#
|
513
|
-
# @param
|
559
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
560
|
+
# @param automation_account_name [String] The name of the automation account.
|
514
561
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
515
562
|
# will be added to the HTTP request.
|
516
563
|
#
|
517
564
|
# @return [Array<Runbook>] operation results.
|
518
565
|
#
|
519
|
-
def list_by_automation_account(automation_account_name, custom_headers:nil)
|
520
|
-
first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
|
566
|
+
def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
|
567
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
|
521
568
|
first_page.get_all_items
|
522
569
|
end
|
523
570
|
|
524
571
|
#
|
525
572
|
# Retrieve a list of runbooks.
|
526
573
|
#
|
527
|
-
# @param
|
574
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
575
|
+
# @param automation_account_name [String] The name of the automation account.
|
528
576
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
529
577
|
# will be added to the HTTP request.
|
530
578
|
#
|
531
579
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
532
580
|
#
|
533
|
-
def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
|
534
|
-
list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
581
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
|
582
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
535
583
|
end
|
536
584
|
|
537
585
|
#
|
538
586
|
# Retrieve a list of runbooks.
|
539
587
|
#
|
540
|
-
# @param
|
588
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
589
|
+
# @param automation_account_name [String] The name of the automation account.
|
541
590
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
542
591
|
# to the HTTP request.
|
543
592
|
#
|
544
593
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
545
594
|
#
|
546
|
-
def list_by_automation_account_async(automation_account_name, custom_headers:nil)
|
547
|
-
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
548
|
-
fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
549
|
-
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
595
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
|
550
596
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
597
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
598
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
599
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
600
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
601
|
+
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
551
602
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
552
603
|
|
553
604
|
|
@@ -563,7 +614,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
563
614
|
|
564
615
|
options = {
|
565
616
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
566
|
-
path_params: {'
|
617
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name},
|
567
618
|
query_params: {'api-version' => @client.api_version},
|
568
619
|
headers: request_headers.merge(custom_headers || {}),
|
569
620
|
base_url: request_url
|
@@ -688,15 +739,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
688
739
|
#
|
689
740
|
# Retrieve a list of runbooks.
|
690
741
|
#
|
691
|
-
# @param
|
742
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
743
|
+
# @param automation_account_name [String] The name of the automation account.
|
692
744
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
693
745
|
# will be added to the HTTP request.
|
694
746
|
#
|
695
747
|
# @return [RunbookListResult] which provide lazy access to pages of the
|
696
748
|
# response.
|
697
749
|
#
|
698
|
-
def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
|
699
|
-
response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
750
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
|
751
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
|
700
752
|
unless response.nil?
|
701
753
|
page = response.body
|
702
754
|
page.next_method = Proc.new do |next_page_link|
|