azure_mgmt_logic 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/azure_mgmt_logic.gemspec +1 -1
- data/lib/generated/azure_mgmt_logic/logic_management_client.rb +20 -20
- data/lib/generated/azure_mgmt_logic/models/{integration_account_content_hash.rb → content_hash.rb} +6 -6
- data/lib/generated/azure_mgmt_logic/models/{integration_account_content_link.rb → content_link.rb} +6 -6
- data/lib/generated/azure_mgmt_logic/models/{x12message_identifier.rb → correlation.rb} +8 -8
- data/lib/generated/azure_mgmt_logic/models/{edifact_decimal_indicator.rb → day_of_week.rb} +9 -5
- data/lib/generated/azure_mgmt_logic/models/days_of_week.rb +21 -0
- data/lib/generated/azure_mgmt_logic/models/{edifact_message_identifier.rb → generate_upgraded_definition_parameters.rb} +8 -9
- data/lib/generated/azure_mgmt_logic/models/{schema_type.rb → key_type.rb} +4 -3
- data/lib/generated/azure_mgmt_logic/models/{hashing_algorithm.rb → parameter_type.rb} +10 -6
- data/lib/generated/azure_mgmt_logic/models/{encryption_algorithm.rb → recurrence_frequency.rb} +9 -8
- data/lib/generated/azure_mgmt_logic/models/recurrence_schedule.rb +121 -0
- data/lib/generated/azure_mgmt_logic/models/{as2error_settings.rb → recurrence_schedule_occurrence.rb} +17 -16
- data/lib/generated/azure_mgmt_logic/models/{key_vault_key_reference_key_vault.rb → resource_reference.rb} +7 -7
- data/lib/generated/azure_mgmt_logic/models/{business_identity.rb → sku.rb} +17 -14
- data/lib/generated/azure_mgmt_logic/models/{integration_account_schema.rb → workflow.rb} +77 -40
- data/lib/generated/azure_mgmt_logic/models/{integration_account_sku.rb → workflow_filter.rb} +11 -10
- data/lib/generated/azure_mgmt_logic/models/{integration_account_list_result.rb → workflow_list_result.rb} +9 -9
- data/lib/generated/azure_mgmt_logic/models/{x12schema_reference.rb → workflow_output_parameter.rb} +26 -26
- data/lib/generated/azure_mgmt_logic/models/workflow_parameter.rb +77 -0
- data/lib/generated/azure_mgmt_logic/models/workflow_provisioning_state.rb +32 -0
- data/lib/generated/azure_mgmt_logic/models/workflow_run.rb +199 -0
- data/lib/generated/azure_mgmt_logic/models/workflow_run_action.rb +179 -0
- data/lib/generated/azure_mgmt_logic/models/{integration_account_agreement_filter.rb → workflow_run_action_filter.rb} +12 -11
- data/lib/generated/azure_mgmt_logic/models/{integration_account_map_list_result.rb → workflow_run_action_list_result.rb} +9 -10
- data/lib/generated/azure_mgmt_logic/models/{x12message_filter.rb → workflow_run_filter.rb} +12 -10
- data/lib/generated/azure_mgmt_logic/models/{integration_account_schema_list_result.rb → workflow_run_list_result.rb} +9 -10
- data/lib/generated/azure_mgmt_logic/models/workflow_run_trigger.rb +183 -0
- data/lib/generated/azure_mgmt_logic/models/{agreement_type.rb → workflow_state.rb} +7 -5
- data/lib/generated/azure_mgmt_logic/models/workflow_status.rb +27 -0
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger.rb +178 -0
- data/lib/generated/azure_mgmt_logic/models/{callback_url.rb → workflow_trigger_callback_url.rb} +6 -5
- data/lib/generated/azure_mgmt_logic/models/{integration_account_map_filter.rb → workflow_trigger_filter.rb} +11 -10
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger_history.rb +191 -0
- data/lib/generated/azure_mgmt_logic/models/{integration_account_partner_filter.rb → workflow_trigger_history_filter.rb} +12 -10
- data/lib/generated/azure_mgmt_logic/models/{integration_account_partner_list_result.rb → workflow_trigger_history_list_result.rb} +10 -10
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger_provisioning_state.rb +32 -0
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb +98 -0
- data/lib/generated/azure_mgmt_logic/models/{integration_account_agreement.rb → workflow_version.rb} +54 -44
- data/lib/generated/azure_mgmt_logic/models/workflow_version_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_logic/version.rb +1 -1
- data/lib/generated/azure_mgmt_logic/workflow_run_actions.rb +347 -0
- data/lib/generated/azure_mgmt_logic/{integration_account_schemas.rb → workflow_runs.rb} +71 -192
- data/lib/generated/azure_mgmt_logic/workflow_trigger_histories.rb +347 -0
- data/lib/generated/azure_mgmt_logic/{integration_account_maps.rb → workflow_triggers.rb} +105 -127
- data/lib/generated/azure_mgmt_logic/workflow_versions.rb +334 -0
- data/lib/generated/azure_mgmt_logic/{integration_accounts.rb → workflows.rb} +418 -151
- data/lib/generated/azure_mgmt_logic.rb +45 -88
- metadata +49 -92
- data/lib/generated/azure_mgmt_logic/integration_account_agreements.rb +0 -549
- data/lib/generated/azure_mgmt_logic/integration_account_certificates.rb +0 -545
- data/lib/generated/azure_mgmt_logic/integration_account_partners.rb +0 -546
- data/lib/generated/azure_mgmt_logic/models/agreement_content.rb +0 -67
- data/lib/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb +0 -78
- data/lib/generated/azure_mgmt_logic/models/as2agreement_content.rb +0 -56
- data/lib/generated/azure_mgmt_logic/models/as2envelope_settings.rb +0 -87
- data/lib/generated/azure_mgmt_logic/models/as2mdn_settings.rb +0 -132
- data/lib/generated/azure_mgmt_logic/models/as2message_connection_settings.rb +0 -78
- data/lib/generated/azure_mgmt_logic/models/as2one_way_agreement.rb +0 -67
- data/lib/generated/azure_mgmt_logic/models/as2protocol_settings.rb +0 -112
- data/lib/generated/azure_mgmt_logic/models/as2security_settings.rb +0 -131
- data/lib/generated/azure_mgmt_logic/models/as2validation_settings.rb +0 -135
- data/lib/generated/azure_mgmt_logic/models/b2bpartner_content.rb +0 -53
- data/lib/generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb +0 -151
- data/lib/generated/azure_mgmt_logic/models/edifact_agreement_content.rb +0 -56
- data/lib/generated/azure_mgmt_logic/models/edifact_character_set.rb +0 -29
- data/lib/generated/azure_mgmt_logic/models/edifact_delimiter_override.rb +0 -159
- data/lib/generated/azure_mgmt_logic/models/edifact_envelope_override.rb +0 -188
- data/lib/generated/azure_mgmt_logic/models/edifact_envelope_settings.rb +0 -452
- data/lib/generated/azure_mgmt_logic/models/edifact_framing_settings.rb +0 -153
- data/lib/generated/azure_mgmt_logic/models/edifact_message_filter.rb +0 -46
- data/lib/generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb +0 -67
- data/lib/generated/azure_mgmt_logic/models/edifact_processing_settings.rb +0 -88
- data/lib/generated/azure_mgmt_logic/models/edifact_protocol_settings.rb +0 -195
- data/lib/generated/azure_mgmt_logic/models/edifact_schema_reference.rb +0 -104
- data/lib/generated/azure_mgmt_logic/models/edifact_validation_override.rb +0 -111
- data/lib/generated/azure_mgmt_logic/models/edifact_validation_settings.rb +0 -145
- data/lib/generated/azure_mgmt_logic/models/integration_account.rb +0 -97
- data/lib/generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb +0 -94
- data/lib/generated/azure_mgmt_logic/models/integration_account_certificate.rb +0 -129
- data/lib/generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb +0 -95
- data/lib/generated/azure_mgmt_logic/models/integration_account_map.rb +0 -152
- data/lib/generated/azure_mgmt_logic/models/integration_account_partner.rb +0 -131
- data/lib/generated/azure_mgmt_logic/models/integration_account_resource.rb +0 -91
- data/lib/generated/azure_mgmt_logic/models/integration_account_schema_filter.rb +0 -46
- data/lib/generated/azure_mgmt_logic/models/key_vault_key_reference.rb +0 -65
- data/lib/generated/azure_mgmt_logic/models/list_callback_url_parameters.rb +0 -44
- data/lib/generated/azure_mgmt_logic/models/map_type.rb +0 -16
- data/lib/generated/azure_mgmt_logic/models/message_filter_type.rb +0 -17
- data/lib/generated/azure_mgmt_logic/models/partner_content.rb +0 -45
- data/lib/generated/azure_mgmt_logic/models/partner_type.rb +0 -16
- data/lib/generated/azure_mgmt_logic/models/segment_terminator_suffix.rb +0 -19
- data/lib/generated/azure_mgmt_logic/models/trailing_separator_policy.rb +0 -18
- data/lib/generated/azure_mgmt_logic/models/usage_indicator.rb +0 -18
- data/lib/generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb +0 -193
- data/lib/generated/azure_mgmt_logic/models/x12agreement_content.rb +0 -56
- data/lib/generated/azure_mgmt_logic/models/x12character_set.rb +0 -18
- data/lib/generated/azure_mgmt_logic/models/x12date_format.rb +0 -17
- data/lib/generated/azure_mgmt_logic/models/x12delimiter_overrides.rb +0 -128
- data/lib/generated/azure_mgmt_logic/models/x12envelope_override.rb +0 -141
- data/lib/generated/azure_mgmt_logic/models/x12envelope_settings.rb +0 -286
- data/lib/generated/azure_mgmt_logic/models/x12framing_settings.rb +0 -109
- data/lib/generated/azure_mgmt_logic/models/x12one_way_agreement.rb +0 -67
- data/lib/generated/azure_mgmt_logic/models/x12processing_settings.rb +0 -99
- data/lib/generated/azure_mgmt_logic/models/x12protocol_settings.rb +0 -204
- data/lib/generated/azure_mgmt_logic/models/x12security_settings.rb +0 -74
- data/lib/generated/azure_mgmt_logic/models/x12time_format.rb +0 -19
- data/lib/generated/azure_mgmt_logic/models/x12validation_override.rb +0 -111
- data/lib/generated/azure_mgmt_logic/models/x12validation_settings.rb +0 -145
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Logic
|
|
7
|
+
#
|
|
8
|
+
# WorkflowRunActions
|
|
9
|
+
#
|
|
10
|
+
class WorkflowRunActions
|
|
11
|
+
include Azure::ARM::Logic::Models
|
|
12
|
+
include MsRestAzure
|
|
13
|
+
|
|
14
|
+
#
|
|
15
|
+
# Creates and initializes a new instance of the WorkflowRunActions class.
|
|
16
|
+
# @param client service class for accessing basic functionality.
|
|
17
|
+
#
|
|
18
|
+
def initialize(client)
|
|
19
|
+
@client = client
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# @return [LogicManagementClient] reference to the LogicManagementClient
|
|
23
|
+
attr_reader :client
|
|
24
|
+
|
|
25
|
+
#
|
|
26
|
+
# Gets a list of workflow run actions.
|
|
27
|
+
#
|
|
28
|
+
# @param resource_group_name [String] The resource group name.
|
|
29
|
+
# @param workflow_name [String] The workflow name.
|
|
30
|
+
# @param run_name [String] The workflow run name.
|
|
31
|
+
# @param top [Integer] The number of items to be included in the result.
|
|
32
|
+
# @param filter [String] The filter to apply on the operation.
|
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
34
|
+
# will be added to the HTTP request.
|
|
35
|
+
#
|
|
36
|
+
# @return [WorkflowRunActionListResult] which provide lazy access to pages of
|
|
37
|
+
# the response.
|
|
38
|
+
#
|
|
39
|
+
def list_as_lazy(resource_group_name, workflow_name, run_name, top = nil, filter = nil, custom_headers = nil)
|
|
40
|
+
response = list_async(resource_group_name, workflow_name, run_name, top, filter, custom_headers).value!
|
|
41
|
+
unless response.nil?
|
|
42
|
+
page = response.body
|
|
43
|
+
page.next_method = Proc.new do |next_link|
|
|
44
|
+
list_next_async(next_link, custom_headers)
|
|
45
|
+
end
|
|
46
|
+
page
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
#
|
|
51
|
+
# Gets a list of workflow run actions.
|
|
52
|
+
#
|
|
53
|
+
# @param resource_group_name [String] The resource group name.
|
|
54
|
+
# @param workflow_name [String] The workflow name.
|
|
55
|
+
# @param run_name [String] The workflow run name.
|
|
56
|
+
# @param top [Integer] The number of items to be included in the result.
|
|
57
|
+
# @param filter [String] The filter to apply on the operation.
|
|
58
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
59
|
+
# will be added to the HTTP request.
|
|
60
|
+
#
|
|
61
|
+
# @return [Array<WorkflowRunAction>] operation results.
|
|
62
|
+
#
|
|
63
|
+
def list(resource_group_name, workflow_name, run_name, top = nil, filter = nil, custom_headers = nil)
|
|
64
|
+
first_page = list_as_lazy(resource_group_name, workflow_name, run_name, top, filter, custom_headers)
|
|
65
|
+
first_page.get_all_items
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
#
|
|
69
|
+
# Gets a list of workflow run actions.
|
|
70
|
+
#
|
|
71
|
+
# @param resource_group_name [String] The resource group name.
|
|
72
|
+
# @param workflow_name [String] The workflow name.
|
|
73
|
+
# @param run_name [String] The workflow run name.
|
|
74
|
+
# @param top [Integer] The number of items to be included in the result.
|
|
75
|
+
# @param filter [String] The filter to apply on the operation.
|
|
76
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
77
|
+
# will be added to the HTTP request.
|
|
78
|
+
#
|
|
79
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
80
|
+
#
|
|
81
|
+
def list_with_http_info(resource_group_name, workflow_name, run_name, top = nil, filter = nil, custom_headers = nil)
|
|
82
|
+
list_async(resource_group_name, workflow_name, run_name, top, filter, custom_headers).value!
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
#
|
|
86
|
+
# Gets a list of workflow run actions.
|
|
87
|
+
#
|
|
88
|
+
# @param resource_group_name [String] The resource group name.
|
|
89
|
+
# @param workflow_name [String] The workflow name.
|
|
90
|
+
# @param run_name [String] The workflow run name.
|
|
91
|
+
# @param top [Integer] The number of items to be included in the result.
|
|
92
|
+
# @param filter [String] The filter to apply on the operation.
|
|
93
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
94
|
+
# to the HTTP request.
|
|
95
|
+
#
|
|
96
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
97
|
+
#
|
|
98
|
+
def list_async(resource_group_name, workflow_name, run_name, top = nil, filter = nil, custom_headers = nil)
|
|
99
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
100
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
101
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
|
102
|
+
fail ArgumentError, 'run_name is nil' if run_name.nil?
|
|
103
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
request_headers = {}
|
|
107
|
+
|
|
108
|
+
# Set Headers
|
|
109
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
110
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
111
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions'
|
|
112
|
+
options = {
|
|
113
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
114
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name,'runName' => run_name},
|
|
115
|
+
query_params: {'api-version' => @client.api_version,'$top' => top,'$filter' => filter},
|
|
116
|
+
headers: request_headers.merge(custom_headers || {})
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
request_url = @base_url || @client.base_url
|
|
120
|
+
|
|
121
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
|
122
|
+
promise = request.run_promise do |req|
|
|
123
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
promise = promise.then do |http_response|
|
|
127
|
+
status_code = http_response.status
|
|
128
|
+
response_content = http_response.body
|
|
129
|
+
unless status_code == 200
|
|
130
|
+
error_model = JSON.load(response_content)
|
|
131
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Create Result
|
|
135
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
|
136
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
137
|
+
# Deserialize Response
|
|
138
|
+
if status_code == 200
|
|
139
|
+
begin
|
|
140
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
141
|
+
result_mapper = WorkflowRunActionListResult.mapper()
|
|
142
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
143
|
+
rescue Exception => e
|
|
144
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
result
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
promise.execute
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
#
|
|
155
|
+
# Gets a workflow run action.
|
|
156
|
+
#
|
|
157
|
+
# @param resource_group_name [String] The resource group name.
|
|
158
|
+
# @param workflow_name [String] The workflow name.
|
|
159
|
+
# @param run_name [String] The workflow run name.
|
|
160
|
+
# @param action_name [String] The workflow action name.
|
|
161
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
162
|
+
# will be added to the HTTP request.
|
|
163
|
+
#
|
|
164
|
+
# @return [WorkflowRunAction] operation results.
|
|
165
|
+
#
|
|
166
|
+
def get(resource_group_name, workflow_name, run_name, action_name, custom_headers = nil)
|
|
167
|
+
response = get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers).value!
|
|
168
|
+
response.body unless response.nil?
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
#
|
|
172
|
+
# Gets a workflow run action.
|
|
173
|
+
#
|
|
174
|
+
# @param resource_group_name [String] The resource group name.
|
|
175
|
+
# @param workflow_name [String] The workflow name.
|
|
176
|
+
# @param run_name [String] The workflow run name.
|
|
177
|
+
# @param action_name [String] The workflow action name.
|
|
178
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
179
|
+
# will be added to the HTTP request.
|
|
180
|
+
#
|
|
181
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
182
|
+
#
|
|
183
|
+
def get_with_http_info(resource_group_name, workflow_name, run_name, action_name, custom_headers = nil)
|
|
184
|
+
get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers).value!
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
#
|
|
188
|
+
# Gets a workflow run action.
|
|
189
|
+
#
|
|
190
|
+
# @param resource_group_name [String] The resource group name.
|
|
191
|
+
# @param workflow_name [String] The workflow name.
|
|
192
|
+
# @param run_name [String] The workflow run name.
|
|
193
|
+
# @param action_name [String] The workflow action name.
|
|
194
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
195
|
+
# to the HTTP request.
|
|
196
|
+
#
|
|
197
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
198
|
+
#
|
|
199
|
+
def get_async(resource_group_name, workflow_name, run_name, action_name, custom_headers = nil)
|
|
200
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
201
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
202
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
|
203
|
+
fail ArgumentError, 'run_name is nil' if run_name.nil?
|
|
204
|
+
fail ArgumentError, 'action_name is nil' if action_name.nil?
|
|
205
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
request_headers = {}
|
|
209
|
+
|
|
210
|
+
# Set Headers
|
|
211
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
212
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
213
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}'
|
|
214
|
+
options = {
|
|
215
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
216
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name,'runName' => run_name,'actionName' => action_name},
|
|
217
|
+
query_params: {'api-version' => @client.api_version},
|
|
218
|
+
headers: request_headers.merge(custom_headers || {})
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
request_url = @base_url || @client.base_url
|
|
222
|
+
|
|
223
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
|
224
|
+
promise = request.run_promise do |req|
|
|
225
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
promise = promise.then do |http_response|
|
|
229
|
+
status_code = http_response.status
|
|
230
|
+
response_content = http_response.body
|
|
231
|
+
unless status_code == 200
|
|
232
|
+
error_model = JSON.load(response_content)
|
|
233
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# Create Result
|
|
237
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
|
238
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
239
|
+
# Deserialize Response
|
|
240
|
+
if status_code == 200
|
|
241
|
+
begin
|
|
242
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
243
|
+
result_mapper = WorkflowRunAction.mapper()
|
|
244
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
245
|
+
rescue Exception => e
|
|
246
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
result
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
promise.execute
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
#
|
|
257
|
+
# Gets a list of workflow run actions.
|
|
258
|
+
#
|
|
259
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
|
260
|
+
# call to List operation.
|
|
261
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
262
|
+
# will be added to the HTTP request.
|
|
263
|
+
#
|
|
264
|
+
# @return [WorkflowRunActionListResult] operation results.
|
|
265
|
+
#
|
|
266
|
+
def list_next(next_page_link, custom_headers = nil)
|
|
267
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
|
268
|
+
response.body unless response.nil?
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
#
|
|
272
|
+
# Gets a list of workflow run actions.
|
|
273
|
+
#
|
|
274
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
|
275
|
+
# call to List operation.
|
|
276
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
277
|
+
# will be added to the HTTP request.
|
|
278
|
+
#
|
|
279
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
280
|
+
#
|
|
281
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
|
282
|
+
list_next_async(next_page_link, custom_headers).value!
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
#
|
|
286
|
+
# Gets a list of workflow run actions.
|
|
287
|
+
#
|
|
288
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
|
289
|
+
# call to List operation.
|
|
290
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
291
|
+
# to the HTTP request.
|
|
292
|
+
#
|
|
293
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
294
|
+
#
|
|
295
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
|
296
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
request_headers = {}
|
|
300
|
+
|
|
301
|
+
# Set Headers
|
|
302
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
303
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
304
|
+
path_template = '{nextLink}'
|
|
305
|
+
options = {
|
|
306
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
307
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
308
|
+
headers: request_headers.merge(custom_headers || {})
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
request_url = @base_url || @client.base_url
|
|
312
|
+
|
|
313
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
|
314
|
+
promise = request.run_promise do |req|
|
|
315
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
promise = promise.then do |http_response|
|
|
319
|
+
status_code = http_response.status
|
|
320
|
+
response_content = http_response.body
|
|
321
|
+
unless status_code == 200
|
|
322
|
+
error_model = JSON.load(response_content)
|
|
323
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
# Create Result
|
|
327
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
|
328
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
329
|
+
# Deserialize Response
|
|
330
|
+
if status_code == 200
|
|
331
|
+
begin
|
|
332
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
333
|
+
result_mapper = WorkflowRunActionListResult.mapper()
|
|
334
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
335
|
+
rescue Exception => e
|
|
336
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
result
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
promise.execute
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
end
|
|
347
|
+
end
|