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
@@ -0,0 +1,124 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Automation::Mgmt::V2015_10_31
|
7
|
+
#
|
8
|
+
# Automation Client
|
9
|
+
#
|
10
|
+
class DscCompilationJobStream
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the DscCompilationJobStream class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [AutomationClient] reference to the AutomationClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Retrieve all the job streams for the compilation Job.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
28
|
+
# @param automation_account_name [String] The name of the automation account.
|
29
|
+
# @param job_id The job id.
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [JobStreamListResult] operation results.
|
34
|
+
#
|
35
|
+
def list_by_job(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
36
|
+
response = list_by_job_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
37
|
+
response.body unless response.nil?
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Retrieve all the job streams for the compilation Job.
|
42
|
+
#
|
43
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
44
|
+
# @param automation_account_name [String] The name of the automation account.
|
45
|
+
# @param job_id The job id.
|
46
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
|
+
# will be added to the HTTP request.
|
48
|
+
#
|
49
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
|
+
#
|
51
|
+
def list_by_job_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
|
52
|
+
list_by_job_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Retrieve all the job streams for the compilation Job.
|
57
|
+
#
|
58
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
59
|
+
# @param automation_account_name [String] The name of the automation account.
|
60
|
+
# @param job_id The job id.
|
61
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
|
+
# to the HTTP request.
|
63
|
+
#
|
64
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
|
+
#
|
66
|
+
def list_by_job_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?
|
71
|
+
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
72
|
+
fail ArgumentError, 'job_id is nil' if job_id.nil?
|
73
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
74
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
75
|
+
|
76
|
+
|
77
|
+
request_headers = {}
|
78
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
79
|
+
|
80
|
+
# Set Headers
|
81
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
82
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
83
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/'
|
84
|
+
|
85
|
+
request_url = @base_url || @client.base_url
|
86
|
+
|
87
|
+
options = {
|
88
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
89
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
|
90
|
+
query_params: {'api-version' => @client.api_version},
|
91
|
+
headers: request_headers.merge(custom_headers || {}),
|
92
|
+
base_url: request_url
|
93
|
+
}
|
94
|
+
promise = @client.make_request_async(:get, path_template, options)
|
95
|
+
|
96
|
+
promise = promise.then do |result|
|
97
|
+
http_response = result.response
|
98
|
+
status_code = http_response.status
|
99
|
+
response_content = http_response.body
|
100
|
+
unless status_code == 200
|
101
|
+
error_model = JSON.load(response_content)
|
102
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
103
|
+
end
|
104
|
+
|
105
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
106
|
+
# Deserialize Response
|
107
|
+
if status_code == 200
|
108
|
+
begin
|
109
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
110
|
+
result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamListResult.mapper()
|
111
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
112
|
+
rescue Exception => e
|
113
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
result
|
118
|
+
end
|
119
|
+
|
120
|
+
promise.execute
|
121
|
+
end
|
122
|
+
|
123
|
+
end
|
124
|
+
end
|
@@ -24,44 +24,49 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
24
24
|
#
|
25
25
|
# Delete the dsc configuration identified by configuration 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 configuration_name [String] The configuration 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
|
#
|
33
|
-
def delete(automation_account_name, configuration_name, custom_headers:nil)
|
34
|
-
response = delete_async(automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
34
|
+
def delete(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
|
35
|
+
response = delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
35
36
|
nil
|
36
37
|
end
|
37
38
|
|
38
39
|
#
|
39
40
|
# Delete the dsc configuration identified by configuration name.
|
40
41
|
#
|
41
|
-
# @param
|
42
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
43
|
+
# @param automation_account_name [String] The name of the automation account.
|
42
44
|
# @param configuration_name [String] The configuration name.
|
43
45
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
44
46
|
# will be added to the HTTP request.
|
45
47
|
#
|
46
48
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
47
49
|
#
|
48
|
-
def delete_with_http_info(automation_account_name, configuration_name, custom_headers:nil)
|
49
|
-
delete_async(automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
50
|
+
def delete_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
|
51
|
+
delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
50
52
|
end
|
51
53
|
|
52
54
|
#
|
53
55
|
# Delete the dsc configuration identified by configuration name.
|
54
56
|
#
|
55
|
-
# @param
|
57
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
58
|
+
# @param automation_account_name [String] The name of the automation account.
|
56
59
|
# @param configuration_name [String] The configuration name.
|
57
60
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
58
61
|
# to the HTTP request.
|
59
62
|
#
|
60
63
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
61
64
|
#
|
62
|
-
def delete_async(automation_account_name, configuration_name, custom_headers:nil)
|
63
|
-
fail ArgumentError, '
|
64
|
-
fail ArgumentError, "'
|
65
|
+
def delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
|
66
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
67
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
68
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
69
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
65
70
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
66
71
|
fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
|
67
72
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -80,7 +85,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
80
85
|
|
81
86
|
options = {
|
82
87
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
83
|
-
path_params: {'resourceGroupName' =>
|
88
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
84
89
|
query_params: {'api-version' => @client.api_version},
|
85
90
|
headers: request_headers.merge(custom_headers || {}),
|
86
91
|
base_url: request_url
|
@@ -107,45 +112,50 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
107
112
|
#
|
108
113
|
# Retrieve the configuration identified by configuration name.
|
109
114
|
#
|
110
|
-
# @param
|
115
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
116
|
+
# @param automation_account_name [String] The name of the automation account.
|
111
117
|
# @param configuration_name [String] The configuration name.
|
112
118
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
113
119
|
# will be added to the HTTP request.
|
114
120
|
#
|
115
121
|
# @return [DscConfiguration] operation results.
|
116
122
|
#
|
117
|
-
def get(automation_account_name, configuration_name, custom_headers:nil)
|
118
|
-
response = get_async(automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
123
|
+
def get(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
|
124
|
+
response = get_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
119
125
|
response.body unless response.nil?
|
120
126
|
end
|
121
127
|
|
122
128
|
#
|
123
129
|
# Retrieve the configuration identified by configuration name.
|
124
130
|
#
|
125
|
-
# @param
|
131
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
132
|
+
# @param automation_account_name [String] The name of the automation account.
|
126
133
|
# @param configuration_name [String] The configuration name.
|
127
134
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
128
135
|
# will be added to the HTTP request.
|
129
136
|
#
|
130
137
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
131
138
|
#
|
132
|
-
def get_with_http_info(automation_account_name, configuration_name, custom_headers:nil)
|
133
|
-
get_async(automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
139
|
+
def get_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
|
140
|
+
get_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
134
141
|
end
|
135
142
|
|
136
143
|
#
|
137
144
|
# Retrieve the configuration identified by configuration name.
|
138
145
|
#
|
139
|
-
# @param
|
146
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
147
|
+
# @param automation_account_name [String] The name of the automation account.
|
140
148
|
# @param configuration_name [String] The configuration name.
|
141
149
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
142
150
|
# to the HTTP request.
|
143
151
|
#
|
144
152
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
145
153
|
#
|
146
|
-
def get_async(automation_account_name, configuration_name, custom_headers:nil)
|
147
|
-
fail ArgumentError, '
|
148
|
-
fail ArgumentError, "'
|
154
|
+
def get_async(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
|
155
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
156
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
157
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
158
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
149
159
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
150
160
|
fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
|
151
161
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -164,7 +174,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
164
174
|
|
165
175
|
options = {
|
166
176
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
167
|
-
path_params: {'resourceGroupName' =>
|
177
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
168
178
|
query_params: {'api-version' => @client.api_version},
|
169
179
|
headers: request_headers.merge(custom_headers || {}),
|
170
180
|
base_url: request_url
|
@@ -201,7 +211,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
201
211
|
#
|
202
212
|
# Create the configuration identified by configuration name.
|
203
213
|
#
|
204
|
-
# @param
|
214
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
215
|
+
# @param automation_account_name [String] The name of the automation account.
|
205
216
|
# @param configuration_name [String] The create or update parameters for
|
206
217
|
# configuration.
|
207
218
|
# @param parameters [DscConfigurationCreateOrUpdateParameters] The create or
|
@@ -211,15 +222,16 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
211
222
|
#
|
212
223
|
# @return [DscConfiguration] operation results.
|
213
224
|
#
|
214
|
-
def create_or_update(automation_account_name, configuration_name, parameters, custom_headers:nil)
|
215
|
-
response = create_or_update_async(automation_account_name, configuration_name, parameters, custom_headers:custom_headers).value!
|
225
|
+
def create_or_update(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:nil)
|
226
|
+
response = create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:custom_headers).value!
|
216
227
|
response.body unless response.nil?
|
217
228
|
end
|
218
229
|
|
219
230
|
#
|
220
231
|
# Create the configuration identified by configuration name.
|
221
232
|
#
|
222
|
-
# @param
|
233
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
234
|
+
# @param automation_account_name [String] The name of the automation account.
|
223
235
|
# @param configuration_name [String] The create or update parameters for
|
224
236
|
# configuration.
|
225
237
|
# @param parameters [DscConfigurationCreateOrUpdateParameters] The create or
|
@@ -229,14 +241,15 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
229
241
|
#
|
230
242
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
231
243
|
#
|
232
|
-
def create_or_update_with_http_info(automation_account_name, configuration_name, parameters, custom_headers:nil)
|
233
|
-
create_or_update_async(automation_account_name, configuration_name, parameters, custom_headers:custom_headers).value!
|
244
|
+
def create_or_update_with_http_info(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:nil)
|
245
|
+
create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:custom_headers).value!
|
234
246
|
end
|
235
247
|
|
236
248
|
#
|
237
249
|
# Create the configuration identified by configuration 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 configuration_name [String] The create or update parameters for
|
241
254
|
# configuration.
|
242
255
|
# @param parameters [DscConfigurationCreateOrUpdateParameters] The create or
|
@@ -246,9 +259,11 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
246
259
|
#
|
247
260
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
248
261
|
#
|
249
|
-
def create_or_update_async(automation_account_name, configuration_name, parameters, custom_headers:nil)
|
250
|
-
fail ArgumentError, '
|
251
|
-
fail ArgumentError, "'
|
262
|
+
def create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:nil)
|
263
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
264
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
265
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
266
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
252
267
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
253
268
|
fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
|
254
269
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -274,7 +289,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
274
289
|
|
275
290
|
options = {
|
276
291
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
277
|
-
path_params: {'resourceGroupName' =>
|
292
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
278
293
|
query_params: {'api-version' => @client.api_version},
|
279
294
|
body: request_content,
|
280
295
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -319,48 +334,168 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
319
334
|
promise.execute
|
320
335
|
end
|
321
336
|
|
337
|
+
#
|
338
|
+
# Create the configuration identified by configuration name.
|
339
|
+
#
|
340
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
341
|
+
# @param automation_account_name [String] The name of the automation account.
|
342
|
+
# @param configuration_name [String] The create or update parameters for
|
343
|
+
# configuration.
|
344
|
+
# @param parameters [DscConfigurationUpdateParameters] The create or update
|
345
|
+
# parameters for configuration.
|
346
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
347
|
+
# will be added to the HTTP request.
|
348
|
+
#
|
349
|
+
# @return [DscConfiguration] operation results.
|
350
|
+
#
|
351
|
+
def update(resource_group_name, automation_account_name, configuration_name, parameters:nil, custom_headers:nil)
|
352
|
+
response = update_async(resource_group_name, automation_account_name, configuration_name, parameters:parameters, custom_headers:custom_headers).value!
|
353
|
+
response.body unless response.nil?
|
354
|
+
end
|
355
|
+
|
356
|
+
#
|
357
|
+
# Create the configuration identified by configuration name.
|
358
|
+
#
|
359
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
360
|
+
# @param automation_account_name [String] The name of the automation account.
|
361
|
+
# @param configuration_name [String] The create or update parameters for
|
362
|
+
# configuration.
|
363
|
+
# @param parameters [DscConfigurationUpdateParameters] The create or update
|
364
|
+
# parameters for configuration.
|
365
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
366
|
+
# will be added to the HTTP request.
|
367
|
+
#
|
368
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
369
|
+
#
|
370
|
+
def update_with_http_info(resource_group_name, automation_account_name, configuration_name, parameters:nil, custom_headers:nil)
|
371
|
+
update_async(resource_group_name, automation_account_name, configuration_name, parameters:parameters, custom_headers:custom_headers).value!
|
372
|
+
end
|
373
|
+
|
374
|
+
#
|
375
|
+
# Create the configuration identified by configuration name.
|
376
|
+
#
|
377
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
378
|
+
# @param automation_account_name [String] The name of the automation account.
|
379
|
+
# @param configuration_name [String] The create or update parameters for
|
380
|
+
# configuration.
|
381
|
+
# @param parameters [DscConfigurationUpdateParameters] The create or update
|
382
|
+
# parameters for configuration.
|
383
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
384
|
+
# to the HTTP request.
|
385
|
+
#
|
386
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
387
|
+
#
|
388
|
+
def update_async(resource_group_name, automation_account_name, configuration_name, parameters:nil, custom_headers:nil)
|
389
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
390
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
391
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
392
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
393
|
+
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
394
|
+
fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
|
395
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
396
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
397
|
+
|
398
|
+
|
399
|
+
request_headers = {}
|
400
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
401
|
+
|
402
|
+
# Set Headers
|
403
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
404
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
405
|
+
|
406
|
+
# Serialize Request
|
407
|
+
request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationUpdateParameters.mapper()
|
408
|
+
request_content = @client.serialize(request_mapper, parameters)
|
409
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
410
|
+
|
411
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}'
|
412
|
+
|
413
|
+
request_url = @base_url || @client.base_url
|
414
|
+
|
415
|
+
options = {
|
416
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
417
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
418
|
+
query_params: {'api-version' => @client.api_version},
|
419
|
+
body: request_content,
|
420
|
+
headers: request_headers.merge(custom_headers || {}),
|
421
|
+
base_url: request_url
|
422
|
+
}
|
423
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
424
|
+
|
425
|
+
promise = promise.then do |result|
|
426
|
+
http_response = result.response
|
427
|
+
status_code = http_response.status
|
428
|
+
response_content = http_response.body
|
429
|
+
unless status_code == 200
|
430
|
+
error_model = JSON.load(response_content)
|
431
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
432
|
+
end
|
433
|
+
|
434
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
435
|
+
# Deserialize Response
|
436
|
+
if status_code == 200
|
437
|
+
begin
|
438
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
439
|
+
result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration.mapper()
|
440
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
441
|
+
rescue Exception => e
|
442
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
446
|
+
result
|
447
|
+
end
|
448
|
+
|
449
|
+
promise.execute
|
450
|
+
end
|
451
|
+
|
322
452
|
#
|
323
453
|
# Retrieve the configuration script identified by configuration name.
|
324
454
|
#
|
325
|
-
# @param
|
455
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
456
|
+
# @param automation_account_name [String] The name of the automation account.
|
326
457
|
# @param configuration_name [String] The configuration name.
|
327
458
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
328
459
|
# will be added to the HTTP request.
|
329
460
|
#
|
330
|
-
# @return [
|
461
|
+
# @return [String] operation results.
|
331
462
|
#
|
332
|
-
def get_content(automation_account_name, configuration_name, custom_headers:nil)
|
333
|
-
response = get_content_async(automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
463
|
+
def get_content(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
|
464
|
+
response = get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
334
465
|
response.body unless response.nil?
|
335
466
|
end
|
336
467
|
|
337
468
|
#
|
338
469
|
# Retrieve the configuration script identified by configuration name.
|
339
470
|
#
|
340
|
-
# @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.
|
341
473
|
# @param configuration_name [String] The configuration name.
|
342
474
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
343
475
|
# will be added to the HTTP request.
|
344
476
|
#
|
345
477
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
346
478
|
#
|
347
|
-
def get_content_with_http_info(automation_account_name, configuration_name, custom_headers:nil)
|
348
|
-
get_content_async(automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
479
|
+
def get_content_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
|
480
|
+
get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value!
|
349
481
|
end
|
350
482
|
|
351
483
|
#
|
352
484
|
# Retrieve the configuration script identified by configuration name.
|
353
485
|
#
|
354
|
-
# @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.
|
355
488
|
# @param configuration_name [String] The configuration name.
|
356
489
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
357
490
|
# to the HTTP request.
|
358
491
|
#
|
359
492
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
360
493
|
#
|
361
|
-
def get_content_async(automation_account_name, configuration_name, custom_headers:nil)
|
362
|
-
fail ArgumentError, '
|
363
|
-
fail ArgumentError, "'
|
494
|
+
def get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
|
495
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
496
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
497
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
498
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
364
499
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
365
500
|
fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
|
366
501
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -379,7 +514,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
379
514
|
|
380
515
|
options = {
|
381
516
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
382
|
-
path_params: {'resourceGroupName' =>
|
517
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
|
383
518
|
query_params: {'api-version' => @client.api_version},
|
384
519
|
headers: request_headers.merge(custom_headers || {}),
|
385
520
|
base_url: request_url
|
@@ -405,7 +540,7 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
405
540
|
required: false,
|
406
541
|
serialized_name: 'parsed_response',
|
407
542
|
type: {
|
408
|
-
name: '
|
543
|
+
name: 'String'
|
409
544
|
}
|
410
545
|
}
|
411
546
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
@@ -423,42 +558,59 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
423
558
|
#
|
424
559
|
# Retrieve a list of configurations.
|
425
560
|
#
|
426
|
-
# @param
|
561
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
562
|
+
# @param automation_account_name [String] The name of the automation account.
|
563
|
+
# @param filter [String] The filter to apply on the operation.
|
564
|
+
# @param skip [Integer] The number of rows to skip.
|
565
|
+
# @param top [Integer] The the number of rows to take.
|
566
|
+
# @param inlinecount [String] Return total rows.
|
427
567
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
428
568
|
# will be added to the HTTP request.
|
429
569
|
#
|
430
570
|
# @return [Array<DscConfiguration>] operation results.
|
431
571
|
#
|
432
|
-
def list_by_automation_account(automation_account_name, custom_headers:nil)
|
433
|
-
first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
|
572
|
+
def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, skip:nil, top:nil, inlinecount:nil, custom_headers:nil)
|
573
|
+
first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, skip:skip, top:top, inlinecount:inlinecount, custom_headers:custom_headers)
|
434
574
|
first_page.get_all_items
|
435
575
|
end
|
436
576
|
|
437
577
|
#
|
438
578
|
# Retrieve a list of configurations.
|
439
579
|
#
|
440
|
-
# @param
|
580
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
581
|
+
# @param automation_account_name [String] The name of the automation account.
|
582
|
+
# @param filter [String] The filter to apply on the operation.
|
583
|
+
# @param skip [Integer] The number of rows to skip.
|
584
|
+
# @param top [Integer] The the number of rows to take.
|
585
|
+
# @param inlinecount [String] Return total rows.
|
441
586
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
442
587
|
# will be added to the HTTP request.
|
443
588
|
#
|
444
589
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
445
590
|
#
|
446
|
-
def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
|
447
|
-
list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
591
|
+
def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, skip:nil, top:nil, inlinecount:nil, custom_headers:nil)
|
592
|
+
list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, skip:skip, top:top, inlinecount:inlinecount, custom_headers:custom_headers).value!
|
448
593
|
end
|
449
594
|
|
450
595
|
#
|
451
596
|
# Retrieve a list of configurations.
|
452
597
|
#
|
453
|
-
# @param
|
598
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
599
|
+
# @param automation_account_name [String] The name of the automation account.
|
600
|
+
# @param filter [String] The filter to apply on the operation.
|
601
|
+
# @param skip [Integer] The number of rows to skip.
|
602
|
+
# @param top [Integer] The the number of rows to take.
|
603
|
+
# @param inlinecount [String] Return total rows.
|
454
604
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
455
605
|
# to the HTTP request.
|
456
606
|
#
|
457
607
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
458
608
|
#
|
459
|
-
def list_by_automation_account_async(automation_account_name, custom_headers:nil)
|
460
|
-
fail ArgumentError, '
|
461
|
-
fail ArgumentError, "'
|
609
|
+
def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, skip:nil, top:nil, inlinecount:nil, custom_headers:nil)
|
610
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
611
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
612
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
613
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
|
462
614
|
fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
|
463
615
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
464
616
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -476,8 +628,8 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
476
628
|
|
477
629
|
options = {
|
478
630
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
479
|
-
path_params: {'resourceGroupName' =>
|
480
|
-
query_params: {'api-version' => @client.api_version},
|
631
|
+
path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
|
632
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$skip' => skip,'$top' => top,'$inlinecount' => inlinecount},
|
481
633
|
headers: request_headers.merge(custom_headers || {}),
|
482
634
|
base_url: request_url
|
483
635
|
}
|
@@ -601,15 +753,20 @@ module Azure::Automation::Mgmt::V2015_10_31
|
|
601
753
|
#
|
602
754
|
# Retrieve a list of configurations.
|
603
755
|
#
|
604
|
-
# @param
|
756
|
+
# @param resource_group_name [String] Name of an Azure Resource group.
|
757
|
+
# @param automation_account_name [String] The name of the automation account.
|
758
|
+
# @param filter [String] The filter to apply on the operation.
|
759
|
+
# @param skip [Integer] The number of rows to skip.
|
760
|
+
# @param top [Integer] The the number of rows to take.
|
761
|
+
# @param inlinecount [String] Return total rows.
|
605
762
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
606
763
|
# will be added to the HTTP request.
|
607
764
|
#
|
608
765
|
# @return [DscConfigurationListResult] which provide lazy access to pages of
|
609
766
|
# the response.
|
610
767
|
#
|
611
|
-
def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
|
612
|
-
response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
|
768
|
+
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, skip:nil, top:nil, inlinecount:nil, custom_headers:nil)
|
769
|
+
response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, skip:skip, top:top, inlinecount:inlinecount, custom_headers:custom_headers).value!
|
613
770
|
unless response.nil?
|
614
771
|
page = response.body
|
615
772
|
page.next_method = Proc.new do |next_page_link|
|