azure_mgmt_logic 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -5,38 +5,38 @@
|
|
5
5
|
|
6
6
|
module Azure::ARM::Logic
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# WorkflowRuns
|
9
9
|
#
|
10
|
-
class
|
10
|
+
class WorkflowRuns
|
11
11
|
include Azure::ARM::Logic::Models
|
12
12
|
include MsRestAzure
|
13
13
|
|
14
14
|
#
|
15
|
-
# Creates and initializes a new instance of the
|
15
|
+
# Creates and initializes a new instance of the WorkflowRuns class.
|
16
16
|
# @param client service class for accessing basic functionality.
|
17
17
|
#
|
18
18
|
def initialize(client)
|
19
19
|
@client = client
|
20
20
|
end
|
21
21
|
|
22
|
-
# @return reference to the LogicManagementClient
|
22
|
+
# @return [LogicManagementClient] reference to the LogicManagementClient
|
23
23
|
attr_reader :client
|
24
24
|
|
25
25
|
#
|
26
|
-
# Gets a list of
|
26
|
+
# Gets a list of workflow runs.
|
27
27
|
#
|
28
28
|
# @param resource_group_name [String] The resource group name.
|
29
|
-
# @param
|
29
|
+
# @param workflow_name [String] The workflow name.
|
30
30
|
# @param top [Integer] The number of items to be included in the result.
|
31
31
|
# @param filter [String] The filter to apply on the operation.
|
32
32
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
33
|
# will be added to the HTTP request.
|
34
34
|
#
|
35
|
-
# @return [
|
36
|
-
#
|
35
|
+
# @return [WorkflowRunListResult] which provide lazy access to pages of the
|
36
|
+
# response.
|
37
37
|
#
|
38
|
-
def list_as_lazy(resource_group_name,
|
39
|
-
response = list_async(resource_group_name,
|
38
|
+
def list_as_lazy(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil)
|
39
|
+
response = list_async(resource_group_name, workflow_name, top, filter, custom_headers).value!
|
40
40
|
unless response.nil?
|
41
41
|
page = response.body
|
42
42
|
page.next_method = Proc.new do |next_link|
|
@@ -47,27 +47,27 @@ module Azure::ARM::Logic
|
|
47
47
|
end
|
48
48
|
|
49
49
|
#
|
50
|
-
# Gets a list of
|
50
|
+
# Gets a list of workflow runs.
|
51
51
|
#
|
52
52
|
# @param resource_group_name [String] The resource group name.
|
53
|
-
# @param
|
53
|
+
# @param workflow_name [String] The workflow name.
|
54
54
|
# @param top [Integer] The number of items to be included in the result.
|
55
55
|
# @param filter [String] The filter to apply on the operation.
|
56
56
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
57
57
|
# will be added to the HTTP request.
|
58
58
|
#
|
59
|
-
# @return [Array<
|
59
|
+
# @return [Array<WorkflowRun>] operation results.
|
60
60
|
#
|
61
|
-
def list(resource_group_name,
|
62
|
-
first_page = list_as_lazy(resource_group_name,
|
61
|
+
def list(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil)
|
62
|
+
first_page = list_as_lazy(resource_group_name, workflow_name, top, filter, custom_headers)
|
63
63
|
first_page.get_all_items
|
64
64
|
end
|
65
65
|
|
66
66
|
#
|
67
|
-
# Gets a list of
|
67
|
+
# Gets a list of workflow runs.
|
68
68
|
#
|
69
69
|
# @param resource_group_name [String] The resource group name.
|
70
|
-
# @param
|
70
|
+
# @param workflow_name [String] The workflow name.
|
71
71
|
# @param top [Integer] The number of items to be included in the result.
|
72
72
|
# @param filter [String] The filter to apply on the operation.
|
73
73
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -75,15 +75,15 @@ module Azure::ARM::Logic
|
|
75
75
|
#
|
76
76
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
77
77
|
#
|
78
|
-
def list_with_http_info(resource_group_name,
|
79
|
-
list_async(resource_group_name,
|
78
|
+
def list_with_http_info(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil)
|
79
|
+
list_async(resource_group_name, workflow_name, top, filter, custom_headers).value!
|
80
80
|
end
|
81
81
|
|
82
82
|
#
|
83
|
-
# Gets a list of
|
83
|
+
# Gets a list of workflow runs.
|
84
84
|
#
|
85
85
|
# @param resource_group_name [String] The resource group name.
|
86
|
-
# @param
|
86
|
+
# @param workflow_name [String] The workflow name.
|
87
87
|
# @param top [Integer] The number of items to be included in the result.
|
88
88
|
# @param filter [String] The filter to apply on the operation.
|
89
89
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -91,10 +91,10 @@ module Azure::ARM::Logic
|
|
91
91
|
#
|
92
92
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
93
93
|
#
|
94
|
-
def list_async(resource_group_name,
|
94
|
+
def list_async(resource_group_name, workflow_name, top = nil, filter = nil, custom_headers = nil)
|
95
95
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
96
96
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
97
|
-
fail ArgumentError, '
|
97
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
98
98
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
99
99
|
|
100
100
|
|
@@ -103,10 +103,10 @@ module Azure::ARM::Logic
|
|
103
103
|
# Set Headers
|
104
104
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
105
105
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
106
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/
|
106
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs'
|
107
107
|
options = {
|
108
108
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
109
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
109
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
|
110
110
|
query_params: {'api-version' => @client.api_version,'$top' => top,'$filter' => filter},
|
111
111
|
headers: request_headers.merge(custom_headers || {})
|
112
112
|
}
|
@@ -133,7 +133,7 @@ module Azure::ARM::Logic
|
|
133
133
|
if status_code == 200
|
134
134
|
begin
|
135
135
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
136
|
-
result_mapper =
|
136
|
+
result_mapper = WorkflowRunListResult.mapper()
|
137
137
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
138
138
|
rescue Exception => e
|
139
139
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -147,52 +147,52 @@ module Azure::ARM::Logic
|
|
147
147
|
end
|
148
148
|
|
149
149
|
#
|
150
|
-
# Gets
|
150
|
+
# Gets a workflow run.
|
151
151
|
#
|
152
152
|
# @param resource_group_name [String] The resource group name.
|
153
|
-
# @param
|
154
|
-
# @param
|
153
|
+
# @param workflow_name [String] The workflow name.
|
154
|
+
# @param run_name [String] The workflow run name.
|
155
155
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
156
156
|
# will be added to the HTTP request.
|
157
157
|
#
|
158
|
-
# @return [
|
158
|
+
# @return [WorkflowRun] operation results.
|
159
159
|
#
|
160
|
-
def get(resource_group_name,
|
161
|
-
response = get_async(resource_group_name,
|
160
|
+
def get(resource_group_name, workflow_name, run_name, custom_headers = nil)
|
161
|
+
response = get_async(resource_group_name, workflow_name, run_name, custom_headers).value!
|
162
162
|
response.body unless response.nil?
|
163
163
|
end
|
164
164
|
|
165
165
|
#
|
166
|
-
# Gets
|
166
|
+
# Gets a workflow run.
|
167
167
|
#
|
168
168
|
# @param resource_group_name [String] The resource group name.
|
169
|
-
# @param
|
170
|
-
# @param
|
169
|
+
# @param workflow_name [String] The workflow name.
|
170
|
+
# @param run_name [String] The workflow run name.
|
171
171
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
172
172
|
# will be added to the HTTP request.
|
173
173
|
#
|
174
174
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
175
175
|
#
|
176
|
-
def get_with_http_info(resource_group_name,
|
177
|
-
get_async(resource_group_name,
|
176
|
+
def get_with_http_info(resource_group_name, workflow_name, run_name, custom_headers = nil)
|
177
|
+
get_async(resource_group_name, workflow_name, run_name, custom_headers).value!
|
178
178
|
end
|
179
179
|
|
180
180
|
#
|
181
|
-
# Gets
|
181
|
+
# Gets a workflow run.
|
182
182
|
#
|
183
183
|
# @param resource_group_name [String] The resource group name.
|
184
|
-
# @param
|
185
|
-
# @param
|
184
|
+
# @param workflow_name [String] The workflow name.
|
185
|
+
# @param run_name [String] The workflow run name.
|
186
186
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
187
187
|
# to the HTTP request.
|
188
188
|
#
|
189
189
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
190
190
|
#
|
191
|
-
def get_async(resource_group_name,
|
191
|
+
def get_async(resource_group_name, workflow_name, run_name, custom_headers = nil)
|
192
192
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
193
193
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
194
|
-
fail ArgumentError, '
|
195
|
-
fail ArgumentError, '
|
194
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
195
|
+
fail ArgumentError, 'run_name is nil' if run_name.nil?
|
196
196
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
197
197
|
|
198
198
|
|
@@ -201,10 +201,10 @@ module Azure::ARM::Logic
|
|
201
201
|
# Set Headers
|
202
202
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
203
203
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
204
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/
|
204
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}'
|
205
205
|
options = {
|
206
206
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
207
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
207
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name,'runName' => run_name},
|
208
208
|
query_params: {'api-version' => @client.api_version},
|
209
209
|
headers: request_headers.merge(custom_headers || {})
|
210
210
|
}
|
@@ -231,7 +231,7 @@ module Azure::ARM::Logic
|
|
231
231
|
if status_code == 200
|
232
232
|
begin
|
233
233
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
234
|
-
result_mapper =
|
234
|
+
result_mapper = WorkflowRun.mapper()
|
235
235
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
236
236
|
rescue Exception => e
|
237
237
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -245,172 +245,51 @@ module Azure::ARM::Logic
|
|
245
245
|
end
|
246
246
|
|
247
247
|
#
|
248
|
-
#
|
248
|
+
# Cancels a workflow run.
|
249
249
|
#
|
250
250
|
# @param resource_group_name [String] The resource group name.
|
251
|
-
# @param
|
252
|
-
# @param
|
253
|
-
# @param schema [IntegrationAccountSchema] The integration account schema.
|
251
|
+
# @param workflow_name [String] The workflow name.
|
252
|
+
# @param run_name [String] The workflow run name.
|
254
253
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
255
254
|
# will be added to the HTTP request.
|
256
255
|
#
|
257
|
-
# @return [IntegrationAccountSchema] operation results.
|
258
256
|
#
|
259
|
-
def
|
260
|
-
response =
|
261
|
-
response.body unless response.nil?
|
262
|
-
end
|
263
|
-
|
264
|
-
#
|
265
|
-
# Creates or updates an integration account schema.
|
266
|
-
#
|
267
|
-
# @param resource_group_name [String] The resource group name.
|
268
|
-
# @param integration_account_name [String] The integration account name.
|
269
|
-
# @param schema_name [String] The integration account schema name.
|
270
|
-
# @param schema [IntegrationAccountSchema] The integration account schema.
|
271
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
272
|
-
# will be added to the HTTP request.
|
273
|
-
#
|
274
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
275
|
-
#
|
276
|
-
def create_or_update_with_http_info(resource_group_name, integration_account_name, schema_name, schema, custom_headers = nil)
|
277
|
-
create_or_update_async(resource_group_name, integration_account_name, schema_name, schema, custom_headers).value!
|
278
|
-
end
|
279
|
-
|
280
|
-
#
|
281
|
-
# Creates or updates an integration account schema.
|
282
|
-
#
|
283
|
-
# @param resource_group_name [String] The resource group name.
|
284
|
-
# @param integration_account_name [String] The integration account name.
|
285
|
-
# @param schema_name [String] The integration account schema name.
|
286
|
-
# @param schema [IntegrationAccountSchema] The integration account schema.
|
287
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
288
|
-
# to the HTTP request.
|
289
|
-
#
|
290
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
291
|
-
#
|
292
|
-
def create_or_update_async(resource_group_name, integration_account_name, schema_name, schema, custom_headers = nil)
|
293
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
294
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
295
|
-
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
296
|
-
fail ArgumentError, 'schema_name is nil' if schema_name.nil?
|
297
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
298
|
-
fail ArgumentError, 'schema is nil' if schema.nil?
|
299
|
-
|
300
|
-
|
301
|
-
request_headers = {}
|
302
|
-
|
303
|
-
# Set Headers
|
304
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
305
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
306
|
-
|
307
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
308
|
-
|
309
|
-
# Serialize Request
|
310
|
-
request_mapper = IntegrationAccountSchema.mapper()
|
311
|
-
request_content = @client.serialize(request_mapper, schema, 'schema')
|
312
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
313
|
-
|
314
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas/{schemaName}'
|
315
|
-
options = {
|
316
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
317
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'schemaName' => schema_name},
|
318
|
-
query_params: {'api-version' => @client.api_version},
|
319
|
-
body: request_content,
|
320
|
-
headers: request_headers.merge(custom_headers || {})
|
321
|
-
}
|
322
|
-
|
323
|
-
request_url = @base_url || @client.base_url
|
324
|
-
|
325
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
326
|
-
promise = request.run_promise do |req|
|
327
|
-
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
328
|
-
end
|
329
|
-
|
330
|
-
promise = promise.then do |http_response|
|
331
|
-
status_code = http_response.status
|
332
|
-
response_content = http_response.body
|
333
|
-
unless status_code == 200 || status_code == 201
|
334
|
-
error_model = JSON.load(response_content)
|
335
|
-
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
336
|
-
end
|
337
|
-
|
338
|
-
# Create Result
|
339
|
-
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
340
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
341
|
-
# Deserialize Response
|
342
|
-
if status_code == 200
|
343
|
-
begin
|
344
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
345
|
-
result_mapper = IntegrationAccountSchema.mapper()
|
346
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
347
|
-
rescue Exception => e
|
348
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
349
|
-
end
|
350
|
-
end
|
351
|
-
# Deserialize Response
|
352
|
-
if status_code == 201
|
353
|
-
begin
|
354
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
355
|
-
result_mapper = IntegrationAccountSchema.mapper()
|
356
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
357
|
-
rescue Exception => e
|
358
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
359
|
-
end
|
360
|
-
end
|
361
|
-
|
362
|
-
result
|
363
|
-
end
|
364
|
-
|
365
|
-
promise.execute
|
366
|
-
end
|
367
|
-
|
368
|
-
#
|
369
|
-
# Deletes an integration account schema.
|
370
|
-
#
|
371
|
-
# @param resource_group_name [String] The resource group name.
|
372
|
-
# @param integration_account_name [String] The integration account name.
|
373
|
-
# @param schema_name [String] The integration account schema name.
|
374
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
375
|
-
# will be added to the HTTP request.
|
376
|
-
#
|
377
|
-
#
|
378
|
-
def delete(resource_group_name, integration_account_name, schema_name, custom_headers = nil)
|
379
|
-
response = delete_async(resource_group_name, integration_account_name, schema_name, custom_headers).value!
|
257
|
+
def cancel(resource_group_name, workflow_name, run_name, custom_headers = nil)
|
258
|
+
response = cancel_async(resource_group_name, workflow_name, run_name, custom_headers).value!
|
380
259
|
nil
|
381
260
|
end
|
382
261
|
|
383
262
|
#
|
384
|
-
#
|
263
|
+
# Cancels a workflow run.
|
385
264
|
#
|
386
265
|
# @param resource_group_name [String] The resource group name.
|
387
|
-
# @param
|
388
|
-
# @param
|
266
|
+
# @param workflow_name [String] The workflow name.
|
267
|
+
# @param run_name [String] The workflow run name.
|
389
268
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
390
269
|
# will be added to the HTTP request.
|
391
270
|
#
|
392
271
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
393
272
|
#
|
394
|
-
def
|
395
|
-
|
273
|
+
def cancel_with_http_info(resource_group_name, workflow_name, run_name, custom_headers = nil)
|
274
|
+
cancel_async(resource_group_name, workflow_name, run_name, custom_headers).value!
|
396
275
|
end
|
397
276
|
|
398
277
|
#
|
399
|
-
#
|
278
|
+
# Cancels a workflow run.
|
400
279
|
#
|
401
280
|
# @param resource_group_name [String] The resource group name.
|
402
|
-
# @param
|
403
|
-
# @param
|
281
|
+
# @param workflow_name [String] The workflow name.
|
282
|
+
# @param run_name [String] The workflow run name.
|
404
283
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
405
284
|
# to the HTTP request.
|
406
285
|
#
|
407
286
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
408
287
|
#
|
409
|
-
def
|
288
|
+
def cancel_async(resource_group_name, workflow_name, run_name, custom_headers = nil)
|
410
289
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
411
290
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
412
|
-
fail ArgumentError, '
|
413
|
-
fail ArgumentError, '
|
291
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
292
|
+
fail ArgumentError, 'run_name is nil' if run_name.nil?
|
414
293
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
415
294
|
|
416
295
|
|
@@ -419,17 +298,17 @@ module Azure::ARM::Logic
|
|
419
298
|
# Set Headers
|
420
299
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
421
300
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
422
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/
|
301
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/cancel'
|
423
302
|
options = {
|
424
303
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
425
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
304
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name,'runName' => run_name},
|
426
305
|
query_params: {'api-version' => @client.api_version},
|
427
306
|
headers: request_headers.merge(custom_headers || {})
|
428
307
|
}
|
429
308
|
|
430
309
|
request_url = @base_url || @client.base_url
|
431
310
|
|
432
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :
|
311
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
433
312
|
promise = request.run_promise do |req|
|
434
313
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
435
314
|
end
|
@@ -437,7 +316,7 @@ module Azure::ARM::Logic
|
|
437
316
|
promise = promise.then do |http_response|
|
438
317
|
status_code = http_response.status
|
439
318
|
response_content = http_response.body
|
440
|
-
unless status_code == 200
|
319
|
+
unless status_code == 200
|
441
320
|
error_model = JSON.load(response_content)
|
442
321
|
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
443
322
|
end
|
@@ -453,14 +332,14 @@ module Azure::ARM::Logic
|
|
453
332
|
end
|
454
333
|
|
455
334
|
#
|
456
|
-
# Gets a list of
|
335
|
+
# Gets a list of workflow runs.
|
457
336
|
#
|
458
337
|
# @param next_page_link [String] The NextLink from the previous successful
|
459
338
|
# call to List operation.
|
460
339
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
461
340
|
# will be added to the HTTP request.
|
462
341
|
#
|
463
|
-
# @return [
|
342
|
+
# @return [WorkflowRunListResult] operation results.
|
464
343
|
#
|
465
344
|
def list_next(next_page_link, custom_headers = nil)
|
466
345
|
response = list_next_async(next_page_link, custom_headers).value!
|
@@ -468,7 +347,7 @@ module Azure::ARM::Logic
|
|
468
347
|
end
|
469
348
|
|
470
349
|
#
|
471
|
-
# Gets a list of
|
350
|
+
# Gets a list of workflow runs.
|
472
351
|
#
|
473
352
|
# @param next_page_link [String] The NextLink from the previous successful
|
474
353
|
# call to List operation.
|
@@ -482,7 +361,7 @@ module Azure::ARM::Logic
|
|
482
361
|
end
|
483
362
|
|
484
363
|
#
|
485
|
-
# Gets a list of
|
364
|
+
# Gets a list of workflow runs.
|
486
365
|
#
|
487
366
|
# @param next_page_link [String] The NextLink from the previous successful
|
488
367
|
# call to List operation.
|
@@ -529,7 +408,7 @@ module Azure::ARM::Logic
|
|
529
408
|
if status_code == 200
|
530
409
|
begin
|
531
410
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
532
|
-
result_mapper =
|
411
|
+
result_mapper = WorkflowRunListResult.mapper()
|
533
412
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
534
413
|
rescue Exception => e
|
535
414
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|