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,7 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Retrieve a list of fields of a given type identified by module 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 module_name [String] The name of module.
|
29
30
|
# @param type_name [String] The name of type.
|
30
31
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -32,15 +33,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
32
33
|
#
|
33
34
|
# @return [TypeFieldListResult] operation results.
|
34
35
|
#
|
35
|
-
def list_by_type(automation_account_name, module_name, type_name, custom_headers:nil)
|
36
|
-
response = list_by_type_async(automation_account_name, module_name, type_name, custom_headers:custom_headers).value!
|
36
|
+
def list_by_type(resource_group_name, automation_account_name, module_name, type_name, custom_headers:nil)
|
37
|
+
response = list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers:custom_headers).value!
|
37
38
|
response.body unless response.nil?
|
38
39
|
end
|
39
40
|
|
40
41
|
#
|
41
42
|
# Retrieve a list of fields of a given type identified by module name.
|
42
43
|
#
|
43
|
-
# @param
|
44
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
45
|
+
# @param automation_account_name [String] The name of the automation account.
|
44
46
|
# @param module_name [String] The name of module.
|
45
47
|
# @param type_name [String] The name of type.
|
46
48
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -48,14 +50,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
48
50
|
#
|
49
51
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
52
|
#
|
51
|
-
def list_by_type_with_http_info(automation_account_name, module_name, type_name, custom_headers:nil)
|
52
|
-
list_by_type_async(automation_account_name, module_name, type_name, custom_headers:custom_headers).value!
|
53
|
+
def list_by_type_with_http_info(resource_group_name, automation_account_name, module_name, type_name, custom_headers:nil)
|
54
|
+
list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers:custom_headers).value!
|
53
55
|
end
|
54
56
|
|
55
57
|
#
|
56
58
|
# Retrieve a list of fields of a given type identified by module name.
|
57
59
|
#
|
58
|
-
# @param
|
60
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
61
|
+
# @param automation_account_name [String] The name of the automation account.
|
59
62
|
# @param module_name [String] The name of module.
|
60
63
|
# @param type_name [String] The name of type.
|
61
64
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -63,9 +66,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
63
66
|
#
|
64
67
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
68
|
#
|
66
|
-
def list_by_type_async(automation_account_name, module_name, type_name, custom_headers:nil)
|
67
|
-
fail ArgumentError, '
|
68
|
-
fail ArgumentError, "'
|
69
|
+
def list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers:nil)
|
70
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
72
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
73
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
69
74
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
70
75
|
fail ArgumentError, 'module_name is nil' if module_name.nil?
|
71
76
|
fail ArgumentError, 'type_name is nil' if type_name.nil?
|
@@ -85,7 +90,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
85
90
|
|
86
91
|
options = {
|
87
92
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
88
|
-
path_params: {'resourceGroupName' =>
|
93
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id},
|
89
94
|
query_params: {'api-version' => @client.api_version},
|
90
95
|
headers: request_headers.merge(custom_headers || {}),
|
91
96
|
base_url: request_url
|
data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb
CHANGED
@@ -24,22 +24,24 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Delete a hybrid runbook worker group.
|
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 hybrid_runbook_worker_group_name [String] The hybrid runbook worker
|
29
30
|
# group name
|
30
31
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
32
|
# will be added to the HTTP request.
|
32
33
|
#
|
33
34
|
#
|
34
|
-
def delete(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
|
35
|
-
response = delete_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
|
35
|
+
def delete(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
|
36
|
+
response = delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
|
36
37
|
nil
|
37
38
|
end
|
38
39
|
|
39
40
|
#
|
40
41
|
# Delete a hybrid runbook worker group.
|
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 hybrid_runbook_worker_group_name [String] The hybrid runbook worker
|
44
46
|
# group name
|
45
47
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -47,14 +49,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
47
49
|
#
|
48
50
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
49
51
|
#
|
50
|
-
def delete_with_http_info(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
|
51
|
-
delete_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
|
52
|
+
def delete_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
|
53
|
+
delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
|
52
54
|
end
|
53
55
|
|
54
56
|
#
|
55
57
|
# Delete a hybrid runbook worker group.
|
56
58
|
#
|
57
|
-
# @param
|
59
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
60
|
+
# @param automation_account_name [String] The name of the automation account.
|
58
61
|
# @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
|
59
62
|
# group name
|
60
63
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -62,9 +65,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
62
65
|
#
|
63
66
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
64
67
|
#
|
65
|
-
def delete_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
|
66
|
-
fail ArgumentError, '
|
67
|
-
fail ArgumentError, "'
|
68
|
+
def delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
|
69
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
70
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
71
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
72
|
+
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
73
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
69
74
|
fail ArgumentError, 'hybrid_runbook_worker_group_name is nil' if hybrid_runbook_worker_group_name.nil?
|
70
75
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -83,7 +88,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
83
88
|
|
84
89
|
options = {
|
85
90
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
86
|
-
path_params: {'resourceGroupName' =>
|
91
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id},
|
87
92
|
query_params: {'api-version' => @client.api_version},
|
88
93
|
headers: request_headers.merge(custom_headers || {}),
|
89
94
|
base_url: request_url
|
@@ -110,7 +115,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
110
115
|
#
|
111
116
|
# Retrieve a hybrid runbook worker group.
|
112
117
|
#
|
113
|
-
# @param
|
118
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
119
|
+
# @param automation_account_name [String] The name of the automation account.
|
114
120
|
# @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
|
115
121
|
# group name
|
116
122
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -118,15 +124,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
118
124
|
#
|
119
125
|
# @return [HybridRunbookWorkerGroup] operation results.
|
120
126
|
#
|
121
|
-
def get(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
|
122
|
-
response = get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
|
127
|
+
def get(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
|
128
|
+
response = get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
|
123
129
|
response.body unless response.nil?
|
124
130
|
end
|
125
131
|
|
126
132
|
#
|
127
133
|
# Retrieve a hybrid runbook worker group.
|
128
134
|
#
|
129
|
-
# @param
|
135
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
136
|
+
# @param automation_account_name [String] The name of the automation account.
|
130
137
|
# @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
|
131
138
|
# group name
|
132
139
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -134,14 +141,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
134
141
|
#
|
135
142
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
136
143
|
#
|
137
|
-
def get_with_http_info(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
|
138
|
-
get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
|
144
|
+
def get_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
|
145
|
+
get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
|
139
146
|
end
|
140
147
|
|
141
148
|
#
|
142
149
|
# Retrieve a hybrid runbook worker group.
|
143
150
|
#
|
144
|
-
# @param
|
151
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
152
|
+
# @param automation_account_name [String] The name of the automation account.
|
145
153
|
# @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
|
146
154
|
# group name
|
147
155
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -149,9 +157,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
149
157
|
#
|
150
158
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
151
159
|
#
|
152
|
-
def get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
|
153
|
-
fail ArgumentError, '
|
154
|
-
fail ArgumentError, "'
|
160
|
+
def get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
|
161
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
162
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
163
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
164
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
155
165
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
156
166
|
fail ArgumentError, 'hybrid_runbook_worker_group_name is nil' if hybrid_runbook_worker_group_name.nil?
|
157
167
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -170,7 +180,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
170
180
|
|
171
181
|
options = {
|
172
182
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
173
|
-
path_params: {'resourceGroupName' =>
|
183
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id},
|
174
184
|
query_params: {'api-version' => @client.api_version},
|
175
185
|
headers: request_headers.merge(custom_headers || {}),
|
176
186
|
base_url: request_url
|
@@ -207,7 +217,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
207
217
|
#
|
208
218
|
# Update a hybrid runbook worker group.
|
209
219
|
#
|
210
|
-
# @param
|
220
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
221
|
+
# @param automation_account_name [String] The name of the automation account.
|
211
222
|
# @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
|
212
223
|
# group name
|
213
224
|
# @param parameters [HybridRunbookWorkerGroupUpdateParameters] The hybrid
|
@@ -217,15 +228,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
217
228
|
#
|
218
229
|
# @return [HybridRunbookWorkerGroup] operation results.
|
219
230
|
#
|
220
|
-
def update(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil)
|
221
|
-
response = update_async(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:custom_headers).value!
|
231
|
+
def update(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil)
|
232
|
+
response = update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:custom_headers).value!
|
222
233
|
response.body unless response.nil?
|
223
234
|
end
|
224
235
|
|
225
236
|
#
|
226
237
|
# Update a hybrid runbook worker group.
|
227
238
|
#
|
228
|
-
# @param
|
239
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
240
|
+
# @param automation_account_name [String] The name of the automation account.
|
229
241
|
# @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
|
230
242
|
# group name
|
231
243
|
# @param parameters [HybridRunbookWorkerGroupUpdateParameters] The hybrid
|
@@ -235,14 +247,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
235
247
|
#
|
236
248
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
237
249
|
#
|
238
|
-
def update_with_http_info(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil)
|
239
|
-
update_async(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:custom_headers).value!
|
250
|
+
def update_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil)
|
251
|
+
update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:custom_headers).value!
|
240
252
|
end
|
241
253
|
|
242
254
|
#
|
243
255
|
# Update a hybrid runbook worker group.
|
244
256
|
#
|
245
|
-
# @param
|
257
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
258
|
+
# @param automation_account_name [String] The name of the automation account.
|
246
259
|
# @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
|
247
260
|
# group name
|
248
261
|
# @param parameters [HybridRunbookWorkerGroupUpdateParameters] The hybrid
|
@@ -252,9 +265,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
252
265
|
#
|
253
266
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
254
267
|
#
|
255
|
-
def update_async(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil)
|
256
|
-
fail ArgumentError, '
|
257
|
-
fail ArgumentError, "'
|
268
|
+
def update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil)
|
269
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
270
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
271
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
272
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
258
273
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
259
274
|
fail ArgumentError, 'hybrid_runbook_worker_group_name is nil' if hybrid_runbook_worker_group_name.nil?
|
260
275
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -280,7 +295,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
280
295
|
|
281
296
|
options = {
|
282
297
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
283
|
-
path_params: {'resourceGroupName' =>
|
298
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id},
|
284
299
|
query_params: {'api-version' => @client.api_version},
|
285
300
|
body: request_content,
|
286
301
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -318,42 +333,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
318
333
|
#
|
319
334
|
# Retrieve a list of hybrid runbook worker groups.
|
320
335
|
#
|
321
|
-
# @param
|
336
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
337
|
+
# @param automation_account_name [String] The name of the automation account.
|
338
|
+
# @param filter [String] The filter to apply on the operation.
|
322
339
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
323
340
|
# will be added to the HTTP request.
|
324
341
|
#
|
325
342
|
# @return [Array<HybridRunbookWorkerGroup>] operation results.
|
326
343
|
#
|
327
|
-
def list_by_automation_account(automation_account_name, custom_headers:nil)
|
328
|
-
first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
|
344
|
+
def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
345
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers)
|
329
346
|
first_page.get_all_items
|
330
347
|
end
|
331
348
|
|
332
349
|
#
|
333
350
|
# Retrieve a list of hybrid runbook worker groups.
|
334
351
|
#
|
335
|
-
# @param
|
352
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
353
|
+
# @param automation_account_name [String] The name of the automation account.
|
354
|
+
# @param filter [String] The filter to apply on the operation.
|
336
355
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
337
356
|
# will be added to the HTTP request.
|
338
357
|
#
|
339
358
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
340
359
|
#
|
341
|
-
def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
|
342
|
-
list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
360
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
361
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
343
362
|
end
|
344
363
|
|
345
364
|
#
|
346
365
|
# Retrieve a list of hybrid runbook worker groups.
|
347
366
|
#
|
348
|
-
# @param
|
367
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
368
|
+
# @param automation_account_name [String] The name of the automation account.
|
369
|
+
# @param filter [String] The filter to apply on the operation.
|
349
370
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
350
371
|
# to the HTTP request.
|
351
372
|
#
|
352
373
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
353
374
|
#
|
354
|
-
def list_by_automation_account_async(automation_account_name, custom_headers:nil)
|
355
|
-
fail ArgumentError, '
|
356
|
-
fail ArgumentError, "'
|
375
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
376
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
377
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
378
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
379
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
357
380
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
358
381
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
359
382
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -371,8 +394,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
371
394
|
|
372
395
|
options = {
|
373
396
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
374
|
-
path_params: {'resourceGroupName' =>
|
375
|
-
query_params: {'api-version' => @client.api_version},
|
397
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
398
|
+
query_params: {'$filter' => filter,'api-version' => @client.api_version},
|
376
399
|
headers: request_headers.merge(custom_headers || {}),
|
377
400
|
base_url: request_url
|
378
401
|
}
|
@@ -496,15 +519,17 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
496
519
|
#
|
497
520
|
# Retrieve a list of hybrid runbook worker groups.
|
498
521
|
#
|
499
|
-
# @param
|
522
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
523
|
+
# @param automation_account_name [String] The name of the automation account.
|
524
|
+
# @param filter [String] The filter to apply on the operation.
|
500
525
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
501
526
|
# will be added to the HTTP request.
|
502
527
|
#
|
503
528
|
# @return [HybridRunbookWorkerGroupsListResult] which provide lazy access to
|
504
529
|
# pages of the response.
|
505
530
|
#
|
506
|
-
def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
|
507
|
-
response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
531
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
532
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
508
533
|
unless response.nil?
|
509
534
|
page = response.body
|
510
535
|
page.next_method = Proc.new do |next_page_link|
|
@@ -24,45 +24,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Retrieve the job output identified by job id.
|
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 job_id [String] The job id.
|
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_output(automation_account_name, job_id, custom_headers:nil)
|
35
|
-
response = get_output_async(automation_account_name, job_id, custom_headers:custom_headers).value!
|
35
|
+
def get_output(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
36
|
+
response = get_output_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
36
37
|
response.body unless response.nil?
|
37
38
|
end
|
38
39
|
|
39
40
|
#
|
40
41
|
# Retrieve the job output identified by job id.
|
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 job_id [String] The job id.
|
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_output_with_http_info(automation_account_name, job_id, custom_headers:nil)
|
50
|
-
get_output_async(automation_account_name, job_id, custom_headers:custom_headers).value!
|
51
|
+
def get_output_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
52
|
+
get_output_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
51
53
|
end
|
52
54
|
|
53
55
|
#
|
54
56
|
# Retrieve the job output identified by job id.
|
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 job_id [String] The job id.
|
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_output_async(automation_account_name, job_id, custom_headers:nil)
|
64
|
-
fail ArgumentError, '
|
65
|
-
fail ArgumentError, "'
|
66
|
+
def get_output_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
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
|
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?
|
66
71
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
67
72
|
fail ArgumentError, 'job_id is nil' if job_id.nil?
|
68
73
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -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: {'resourceGroupName' =>
|
89
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
|
85
90
|
query_params: {'api-version' => @client.api_version},
|
86
91
|
headers: request_headers.merge(custom_headers || {}),
|
87
92
|
base_url: request_url
|
@@ -125,45 +130,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
125
130
|
#
|
126
131
|
# Retrieve the runbook content of the job identified by job id.
|
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 job_id [String] The job id.
|
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 [NOT_IMPLEMENTED] operation results.
|
134
140
|
#
|
135
|
-
def get_runbook_content(automation_account_name, job_id, custom_headers:nil)
|
136
|
-
response = get_runbook_content_async(automation_account_name, job_id, custom_headers:custom_headers).value!
|
141
|
+
def get_runbook_content(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
142
|
+
response = get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
137
143
|
response.body unless response.nil?
|
138
144
|
end
|
139
145
|
|
140
146
|
#
|
141
147
|
# Retrieve the runbook content of the job identified by job id.
|
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 job_id [String] The job id.
|
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_runbook_content_with_http_info(automation_account_name, job_id, custom_headers:nil)
|
151
|
-
get_runbook_content_async(automation_account_name, job_id, custom_headers:custom_headers).value!
|
157
|
+
def get_runbook_content_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
158
|
+
get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
152
159
|
end
|
153
160
|
|
154
161
|
#
|
155
162
|
# Retrieve the runbook content of the job identified by job id.
|
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 job_id [String] The job id.
|
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_runbook_content_async(automation_account_name, job_id, custom_headers:nil)
|
165
|
-
fail ArgumentError, '
|
166
|
-
fail ArgumentError, "'
|
172
|
+
def get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
173
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
174
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
175
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
176
|
+
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
177
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
168
178
|
fail ArgumentError, 'job_id is nil' if job_id.nil?
|
169
179
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -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: {'resourceGroupName' =>
|
195
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
|
186
196
|
query_params: {'api-version' => @client.api_version},
|
187
197
|
headers: request_headers.merge(custom_headers || {}),
|
188
198
|
base_url: request_url
|
@@ -226,44 +236,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
226
236
|
#
|
227
237
|
# Suspend the job identified by jobId.
|
228
238
|
#
|
229
|
-
# @param
|
239
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
240
|
+
# @param automation_account_name [String] The name of the automation account.
|
230
241
|
# @param job_id The job id.
|
231
242
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
232
243
|
# will be added to the HTTP request.
|
233
244
|
#
|
234
245
|
#
|
235
|
-
def suspend(automation_account_name, job_id, custom_headers:nil)
|
236
|
-
response = suspend_async(automation_account_name, job_id, custom_headers:custom_headers).value!
|
246
|
+
def suspend(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
247
|
+
response = suspend_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
237
248
|
nil
|
238
249
|
end
|
239
250
|
|
240
251
|
#
|
241
252
|
# Suspend the job identified by jobId.
|
242
253
|
#
|
243
|
-
# @param
|
254
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
255
|
+
# @param automation_account_name [String] The name of the automation account.
|
244
256
|
# @param job_id The job id.
|
245
257
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
246
258
|
# will be added to the HTTP request.
|
247
259
|
#
|
248
260
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
249
261
|
#
|
250
|
-
def suspend_with_http_info(automation_account_name, job_id, custom_headers:nil)
|
251
|
-
suspend_async(automation_account_name, job_id, custom_headers:custom_headers).value!
|
262
|
+
def suspend_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
263
|
+
suspend_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
252
264
|
end
|
253
265
|
|
254
266
|
#
|
255
267
|
# Suspend the job identified by jobId.
|
256
268
|
#
|
257
|
-
# @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.
|
258
271
|
# @param job_id The job id.
|
259
272
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
260
273
|
# to the HTTP request.
|
261
274
|
#
|
262
275
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
263
276
|
#
|
264
|
-
def suspend_async(automation_account_name, job_id, custom_headers:nil)
|
265
|
-
fail ArgumentError, '
|
266
|
-
fail ArgumentError, "'
|
277
|
+
def suspend_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
278
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
279
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
280
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
281
|
+
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
282
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
268
283
|
fail ArgumentError, 'job_id is nil' if job_id.nil?
|
269
284
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -282,7 +297,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
282
297
|
|
283
298
|
options = {
|
284
299
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
285
|
-
path_params: {'resourceGroupName' =>
|
300
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
|
286
301
|
query_params: {'api-version' => @client.api_version},
|
287
302
|
headers: request_headers.merge(custom_headers || {}),
|
288
303
|
base_url: request_url
|
@@ -309,44 +324,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
309
324
|
#
|
310
325
|
# Stop the job identified by jobId.
|
311
326
|
#
|
312
|
-
# @param
|
327
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
328
|
+
# @param automation_account_name [String] The name of the automation account.
|
313
329
|
# @param job_id The job id.
|
314
330
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
315
331
|
# will be added to the HTTP request.
|
316
332
|
#
|
317
333
|
#
|
318
|
-
def stop(automation_account_name, job_id, custom_headers:nil)
|
319
|
-
response = stop_async(automation_account_name, job_id, custom_headers:custom_headers).value!
|
334
|
+
def stop(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
335
|
+
response = stop_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
320
336
|
nil
|
321
337
|
end
|
322
338
|
|
323
339
|
#
|
324
340
|
# Stop the job identified by jobId.
|
325
341
|
#
|
326
|
-
# @param
|
342
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
343
|
+
# @param automation_account_name [String] The name of the automation account.
|
327
344
|
# @param job_id The job id.
|
328
345
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
329
346
|
# will be added to the HTTP request.
|
330
347
|
#
|
331
348
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
332
349
|
#
|
333
|
-
def stop_with_http_info(automation_account_name, job_id, custom_headers:nil)
|
334
|
-
stop_async(automation_account_name, job_id, custom_headers:custom_headers).value!
|
350
|
+
def stop_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
351
|
+
stop_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
335
352
|
end
|
336
353
|
|
337
354
|
#
|
338
355
|
# Stop the job identified by jobId.
|
339
356
|
#
|
340
|
-
# @param
|
357
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
358
|
+
# @param automation_account_name [String] The name of the automation account.
|
341
359
|
# @param job_id The job id.
|
342
360
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
343
361
|
# to the HTTP request.
|
344
362
|
#
|
345
363
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
346
364
|
#
|
347
|
-
def stop_async(automation_account_name, job_id, custom_headers:nil)
|
348
|
-
fail ArgumentError, '
|
349
|
-
fail ArgumentError, "'
|
365
|
+
def stop_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
366
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
367
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
368
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
369
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
350
370
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
351
371
|
fail ArgumentError, 'job_id is nil' if job_id.nil?
|
352
372
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -365,7 +385,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
365
385
|
|
366
386
|
options = {
|
367
387
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
368
|
-
path_params: {'resourceGroupName' =>
|
388
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
|
369
389
|
query_params: {'api-version' => @client.api_version},
|
370
390
|
headers: request_headers.merge(custom_headers || {}),
|
371
391
|
base_url: request_url
|
@@ -392,45 +412,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
392
412
|
#
|
393
413
|
# Retrieve the job identified by job id.
|
394
414
|
#
|
395
|
-
# @param
|
415
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
416
|
+
# @param automation_account_name [String] The name of the automation account.
|
396
417
|
# @param job_id The job id.
|
397
418
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
398
419
|
# will be added to the HTTP request.
|
399
420
|
#
|
400
421
|
# @return [Job] operation results.
|
401
422
|
#
|
402
|
-
def get(automation_account_name, job_id, custom_headers:nil)
|
403
|
-
response = get_async(automation_account_name, job_id, custom_headers:custom_headers).value!
|
423
|
+
def get(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
424
|
+
response = get_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
404
425
|
response.body unless response.nil?
|
405
426
|
end
|
406
427
|
|
407
428
|
#
|
408
429
|
# Retrieve the job identified by job id.
|
409
430
|
#
|
410
|
-
# @param
|
431
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
432
|
+
# @param automation_account_name [String] The name of the automation account.
|
411
433
|
# @param job_id The job id.
|
412
434
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
413
435
|
# will be added to the HTTP request.
|
414
436
|
#
|
415
437
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
416
438
|
#
|
417
|
-
def get_with_http_info(automation_account_name, job_id, custom_headers:nil)
|
418
|
-
get_async(automation_account_name, job_id, custom_headers:custom_headers).value!
|
439
|
+
def get_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
440
|
+
get_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
419
441
|
end
|
420
442
|
|
421
443
|
#
|
422
444
|
# Retrieve the job identified by job id.
|
423
445
|
#
|
424
|
-
# @param
|
446
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
447
|
+
# @param automation_account_name [String] The name of the automation account.
|
425
448
|
# @param job_id The job id.
|
426
449
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
427
450
|
# to the HTTP request.
|
428
451
|
#
|
429
452
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
430
453
|
#
|
431
|
-
def get_async(automation_account_name, job_id, custom_headers:nil)
|
432
|
-
fail ArgumentError, '
|
433
|
-
fail ArgumentError, "'
|
454
|
+
def get_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
455
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
456
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
457
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
458
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
434
459
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
435
460
|
fail ArgumentError, 'job_id is nil' if job_id.nil?
|
436
461
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -449,7 +474,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
449
474
|
|
450
475
|
options = {
|
451
476
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
452
|
-
path_params: {'resourceGroupName' =>
|
477
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
|
453
478
|
query_params: {'api-version' => @client.api_version},
|
454
479
|
headers: request_headers.merge(custom_headers || {}),
|
455
480
|
base_url: request_url
|
@@ -486,7 +511,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
486
511
|
#
|
487
512
|
# Create a job of the runbook.
|
488
513
|
#
|
489
|
-
# @param
|
514
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
515
|
+
# @param automation_account_name [String] The name of the automation account.
|
490
516
|
# @param job_id The job id.
|
491
517
|
# @param parameters [JobCreateParameters] The parameters supplied to the create
|
492
518
|
# job operation.
|
@@ -495,15 +521,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
495
521
|
#
|
496
522
|
# @return [Job] operation results.
|
497
523
|
#
|
498
|
-
def create(automation_account_name, job_id, parameters, custom_headers:nil)
|
499
|
-
response = create_async(automation_account_name, job_id, parameters, custom_headers:custom_headers).value!
|
524
|
+
def create(resource_group_name, automation_account_name, job_id, parameters, custom_headers:nil)
|
525
|
+
response = create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers:custom_headers).value!
|
500
526
|
response.body unless response.nil?
|
501
527
|
end
|
502
528
|
|
503
529
|
#
|
504
530
|
# Create a job of the runbook.
|
505
531
|
#
|
506
|
-
# @param
|
532
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
533
|
+
# @param automation_account_name [String] The name of the automation account.
|
507
534
|
# @param job_id The job id.
|
508
535
|
# @param parameters [JobCreateParameters] The parameters supplied to the create
|
509
536
|
# job operation.
|
@@ -512,14 +539,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
512
539
|
#
|
513
540
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
514
541
|
#
|
515
|
-
def create_with_http_info(automation_account_name, job_id, parameters, custom_headers:nil)
|
516
|
-
create_async(automation_account_name, job_id, parameters, custom_headers:custom_headers).value!
|
542
|
+
def create_with_http_info(resource_group_name, automation_account_name, job_id, parameters, custom_headers:nil)
|
543
|
+
create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers:custom_headers).value!
|
517
544
|
end
|
518
545
|
|
519
546
|
#
|
520
547
|
# Create a job of the runbook.
|
521
548
|
#
|
522
|
-
# @param
|
549
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
550
|
+
# @param automation_account_name [String] The name of the automation account.
|
523
551
|
# @param job_id The job id.
|
524
552
|
# @param parameters [JobCreateParameters] The parameters supplied to the create
|
525
553
|
# job operation.
|
@@ -528,9 +556,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
528
556
|
#
|
529
557
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
530
558
|
#
|
531
|
-
def create_async(automation_account_name, job_id, parameters, custom_headers:nil)
|
532
|
-
fail ArgumentError, '
|
533
|
-
fail ArgumentError, "'
|
559
|
+
def create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers:nil)
|
560
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
561
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
562
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
563
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
534
564
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
535
565
|
fail ArgumentError, 'job_id is nil' if job_id.nil?
|
536
566
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -556,7 +586,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
556
586
|
|
557
587
|
options = {
|
558
588
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
559
|
-
path_params: {'resourceGroupName' =>
|
589
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
|
560
590
|
query_params: {'api-version' => @client.api_version},
|
561
591
|
body: request_content,
|
562
592
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -594,45 +624,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
594
624
|
#
|
595
625
|
# Retrieve a list of jobs.
|
596
626
|
#
|
597
|
-
# @param
|
627
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
628
|
+
# @param automation_account_name [String] The name of the automation account.
|
598
629
|
# @param filter [String] The filter to apply on the operation.
|
599
630
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
600
631
|
# will be added to the HTTP request.
|
601
632
|
#
|
602
633
|
# @return [Array<Job>] operation results.
|
603
634
|
#
|
604
|
-
def list_by_automation_account(automation_account_name, filter:nil, custom_headers:nil)
|
605
|
-
first_page = list_by_automation_account_as_lazy(automation_account_name, filter:filter, custom_headers:custom_headers)
|
635
|
+
def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
636
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers)
|
606
637
|
first_page.get_all_items
|
607
638
|
end
|
608
639
|
|
609
640
|
#
|
610
641
|
# Retrieve a list of jobs.
|
611
642
|
#
|
612
|
-
# @param
|
643
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
644
|
+
# @param automation_account_name [String] The name of the automation account.
|
613
645
|
# @param filter [String] The filter to apply on the operation.
|
614
646
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
615
647
|
# will be added to the HTTP request.
|
616
648
|
#
|
617
649
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
618
650
|
#
|
619
|
-
def list_by_automation_account_with_http_info(automation_account_name, filter:nil, custom_headers:nil)
|
620
|
-
list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
651
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
652
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
621
653
|
end
|
622
654
|
|
623
655
|
#
|
624
656
|
# Retrieve a list of jobs.
|
625
657
|
#
|
626
|
-
# @param
|
658
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
659
|
+
# @param automation_account_name [String] The name of the automation account.
|
627
660
|
# @param filter [String] The filter to apply on the operation.
|
628
661
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
629
662
|
# to the HTTP request.
|
630
663
|
#
|
631
664
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
632
665
|
#
|
633
|
-
def list_by_automation_account_async(automation_account_name, filter:nil, custom_headers:nil)
|
634
|
-
fail ArgumentError, '
|
635
|
-
fail ArgumentError, "'
|
666
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
667
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
668
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
669
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
670
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
636
671
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
637
672
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
638
673
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -650,7 +685,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
650
685
|
|
651
686
|
options = {
|
652
687
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
653
|
-
path_params: {'resourceGroupName' =>
|
688
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
654
689
|
query_params: {'$filter' => filter,'api-version' => @client.api_version},
|
655
690
|
headers: request_headers.merge(custom_headers || {}),
|
656
691
|
base_url: request_url
|
@@ -687,44 +722,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
687
722
|
#
|
688
723
|
# Resume the job identified by jobId.
|
689
724
|
#
|
690
|
-
# @param
|
725
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
726
|
+
# @param automation_account_name [String] The name of the automation account.
|
691
727
|
# @param job_id The job id.
|
692
728
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
693
729
|
# will be added to the HTTP request.
|
694
730
|
#
|
695
731
|
#
|
696
|
-
def resume(automation_account_name, job_id, custom_headers:nil)
|
697
|
-
response = resume_async(automation_account_name, job_id, custom_headers:custom_headers).value!
|
732
|
+
def resume(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
733
|
+
response = resume_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
698
734
|
nil
|
699
735
|
end
|
700
736
|
|
701
737
|
#
|
702
738
|
# Resume the job identified by jobId.
|
703
739
|
#
|
704
|
-
# @param
|
740
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
741
|
+
# @param automation_account_name [String] The name of the automation account.
|
705
742
|
# @param job_id The job id.
|
706
743
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
707
744
|
# will be added to the HTTP request.
|
708
745
|
#
|
709
746
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
710
747
|
#
|
711
|
-
def resume_with_http_info(automation_account_name, job_id, custom_headers:nil)
|
712
|
-
resume_async(automation_account_name, job_id, custom_headers:custom_headers).value!
|
748
|
+
def resume_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
749
|
+
resume_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
713
750
|
end
|
714
751
|
|
715
752
|
#
|
716
753
|
# Resume the job identified by jobId.
|
717
754
|
#
|
718
|
-
# @param
|
755
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
756
|
+
# @param automation_account_name [String] The name of the automation account.
|
719
757
|
# @param job_id The job id.
|
720
758
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
721
759
|
# to the HTTP request.
|
722
760
|
#
|
723
761
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
724
762
|
#
|
725
|
-
def resume_async(automation_account_name, job_id, custom_headers:nil)
|
726
|
-
fail ArgumentError, '
|
727
|
-
fail ArgumentError, "'
|
763
|
+
def resume_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
764
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
765
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
766
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
767
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
728
768
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
729
769
|
fail ArgumentError, 'job_id is nil' if job_id.nil?
|
730
770
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -743,7 +783,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
743
783
|
|
744
784
|
options = {
|
745
785
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
746
|
-
path_params: {'resourceGroupName' =>
|
786
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
|
747
787
|
query_params: {'api-version' => @client.api_version},
|
748
788
|
headers: request_headers.merge(custom_headers || {}),
|
749
789
|
base_url: request_url
|
@@ -858,15 +898,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
858
898
|
#
|
859
899
|
# Retrieve a list of jobs.
|
860
900
|
#
|
861
|
-
# @param
|
901
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
902
|
+
# @param automation_account_name [String] The name of the automation account.
|
862
903
|
# @param filter [String] The filter to apply on the operation.
|
863
904
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
864
905
|
# will be added to the HTTP request.
|
865
906
|
#
|
866
907
|
# @return [JobListResult] which provide lazy access to pages of the response.
|
867
908
|
#
|
868
|
-
def list_by_automation_account_as_lazy(automation_account_name, filter:nil, custom_headers:nil)
|
869
|
-
response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
909
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
|
910
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
|
870
911
|
unless response.nil?
|
871
912
|
page = response.body
|
872
913
|
page.next_method = Proc.new do |next_page_link|
|