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
|
@@ -5,38 +5,38 @@
|
|
|
5
5
|
|
|
6
6
|
module Azure::ARM::Logic
|
|
7
7
|
#
|
|
8
|
-
#
|
|
8
|
+
# WorkflowTriggers
|
|
9
9
|
#
|
|
10
|
-
class
|
|
10
|
+
class WorkflowTriggers
|
|
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 WorkflowTriggers 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 triggers.
|
|
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 [WorkflowTriggerListResult] which provide lazy access to pages of
|
|
36
|
+
# the 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 triggers.
|
|
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<WorkflowTrigger>] 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 triggers.
|
|
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 triggers.
|
|
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}/triggers/'
|
|
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 = WorkflowTriggerListResult.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 trigger.
|
|
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 trigger_name [String] The workflow trigger 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 [WorkflowTrigger] 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, trigger_name, custom_headers = nil)
|
|
161
|
+
response = get_async(resource_group_name, workflow_name, trigger_name, custom_headers).value!
|
|
162
162
|
response.body unless response.nil?
|
|
163
163
|
end
|
|
164
164
|
|
|
165
165
|
#
|
|
166
|
-
# Gets
|
|
166
|
+
# Gets a workflow trigger.
|
|
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 trigger_name [String] The workflow trigger 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, trigger_name, custom_headers = nil)
|
|
177
|
+
get_async(resource_group_name, workflow_name, trigger_name, custom_headers).value!
|
|
178
178
|
end
|
|
179
179
|
|
|
180
180
|
#
|
|
181
|
-
# Gets
|
|
181
|
+
# Gets a workflow trigger.
|
|
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 trigger_name [String] The workflow trigger 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, trigger_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, 'trigger_name is nil' if trigger_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}/triggers/{triggerName}'
|
|
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,'triggerName' => trigger_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 = WorkflowTrigger.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,57 +245,53 @@ module Azure::ARM::Logic
|
|
|
245
245
|
end
|
|
246
246
|
|
|
247
247
|
#
|
|
248
|
-
#
|
|
248
|
+
# Runs a workflow trigger.
|
|
249
249
|
#
|
|
250
250
|
# @param resource_group_name [String] The resource group name.
|
|
251
|
-
# @param
|
|
252
|
-
# @param
|
|
253
|
-
# @param map [IntegrationAccountMap] The integration account map.
|
|
251
|
+
# @param workflow_name [String] The workflow name.
|
|
252
|
+
# @param trigger_name [String] The workflow trigger 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 [
|
|
256
|
+
# @return [Object] operation results.
|
|
258
257
|
#
|
|
259
|
-
def
|
|
260
|
-
response =
|
|
258
|
+
def run(resource_group_name, workflow_name, trigger_name, custom_headers = nil)
|
|
259
|
+
response = run_async(resource_group_name, workflow_name, trigger_name, custom_headers).value!
|
|
261
260
|
response.body unless response.nil?
|
|
262
261
|
end
|
|
263
262
|
|
|
264
263
|
#
|
|
265
|
-
#
|
|
264
|
+
# Runs a workflow trigger.
|
|
266
265
|
#
|
|
267
266
|
# @param resource_group_name [String] The resource group name.
|
|
268
|
-
# @param
|
|
269
|
-
# @param
|
|
270
|
-
# @param map [IntegrationAccountMap] The integration account map.
|
|
267
|
+
# @param workflow_name [String] The workflow name.
|
|
268
|
+
# @param trigger_name [String] The workflow trigger name.
|
|
271
269
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
272
270
|
# will be added to the HTTP request.
|
|
273
271
|
#
|
|
274
272
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
275
273
|
#
|
|
276
|
-
def
|
|
277
|
-
|
|
274
|
+
def run_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers = nil)
|
|
275
|
+
run_async(resource_group_name, workflow_name, trigger_name, custom_headers).value!
|
|
278
276
|
end
|
|
279
277
|
|
|
280
278
|
#
|
|
281
|
-
#
|
|
279
|
+
# Runs a workflow trigger.
|
|
282
280
|
#
|
|
283
281
|
# @param resource_group_name [String] The resource group name.
|
|
284
|
-
# @param
|
|
285
|
-
# @param
|
|
286
|
-
# @param map [IntegrationAccountMap] The integration account map.
|
|
282
|
+
# @param workflow_name [String] The workflow name.
|
|
283
|
+
# @param trigger_name [String] The workflow trigger name.
|
|
287
284
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
288
285
|
# to the HTTP request.
|
|
289
286
|
#
|
|
290
287
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
291
288
|
#
|
|
292
|
-
def
|
|
289
|
+
def run_async(resource_group_name, workflow_name, trigger_name, custom_headers = nil)
|
|
293
290
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
294
291
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
295
|
-
fail ArgumentError, '
|
|
296
|
-
fail ArgumentError, '
|
|
292
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
|
293
|
+
fail ArgumentError, 'trigger_name is nil' if trigger_name.nil?
|
|
297
294
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
298
|
-
fail ArgumentError, 'map is nil' if map.nil?
|
|
299
295
|
|
|
300
296
|
|
|
301
297
|
request_headers = {}
|
|
@@ -303,26 +299,17 @@ module Azure::ARM::Logic
|
|
|
303
299
|
# Set Headers
|
|
304
300
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
305
301
|
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 = IntegrationAccountMap.mapper()
|
|
311
|
-
request_content = @client.serialize(request_mapper, map, 'map')
|
|
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}/maps/{mapName}'
|
|
302
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/run'
|
|
315
303
|
options = {
|
|
316
304
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
317
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
|
305
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name,'triggerName' => trigger_name},
|
|
318
306
|
query_params: {'api-version' => @client.api_version},
|
|
319
|
-
body: request_content,
|
|
320
307
|
headers: request_headers.merge(custom_headers || {})
|
|
321
308
|
}
|
|
322
309
|
|
|
323
310
|
request_url = @base_url || @client.base_url
|
|
324
311
|
|
|
325
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :
|
|
312
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
|
326
313
|
promise = request.run_promise do |req|
|
|
327
314
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
|
328
315
|
end
|
|
@@ -330,34 +317,14 @@ module Azure::ARM::Logic
|
|
|
330
317
|
promise = promise.then do |http_response|
|
|
331
318
|
status_code = http_response.status
|
|
332
319
|
response_content = http_response.body
|
|
333
|
-
unless status_code
|
|
320
|
+
unless status_code >= 200 && status_code < 300
|
|
334
321
|
error_model = JSON.load(response_content)
|
|
335
|
-
fail
|
|
322
|
+
fail MsRest::HttpOperationError.new(request, http_response, error_model)
|
|
336
323
|
end
|
|
337
324
|
|
|
338
325
|
# Create Result
|
|
339
326
|
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
|
340
327
|
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 = IntegrationAccountMap.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 = IntegrationAccountMap.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
328
|
|
|
362
329
|
result
|
|
363
330
|
end
|
|
@@ -366,51 +333,52 @@ module Azure::ARM::Logic
|
|
|
366
333
|
end
|
|
367
334
|
|
|
368
335
|
#
|
|
369
|
-
#
|
|
336
|
+
# Gets the callback URL for a workflow trigger.
|
|
370
337
|
#
|
|
371
338
|
# @param resource_group_name [String] The resource group name.
|
|
372
|
-
# @param
|
|
373
|
-
# @param
|
|
339
|
+
# @param workflow_name [String] The workflow name.
|
|
340
|
+
# @param trigger_name [String] The workflow trigger name.
|
|
374
341
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
375
342
|
# will be added to the HTTP request.
|
|
376
343
|
#
|
|
344
|
+
# @return [WorkflowTriggerCallbackUrl] operation results.
|
|
377
345
|
#
|
|
378
|
-
def
|
|
379
|
-
response =
|
|
380
|
-
nil
|
|
346
|
+
def list_callback_url(resource_group_name, workflow_name, trigger_name, custom_headers = nil)
|
|
347
|
+
response = list_callback_url_async(resource_group_name, workflow_name, trigger_name, custom_headers).value!
|
|
348
|
+
response.body unless response.nil?
|
|
381
349
|
end
|
|
382
350
|
|
|
383
351
|
#
|
|
384
|
-
#
|
|
352
|
+
# Gets the callback URL for a workflow trigger.
|
|
385
353
|
#
|
|
386
354
|
# @param resource_group_name [String] The resource group name.
|
|
387
|
-
# @param
|
|
388
|
-
# @param
|
|
355
|
+
# @param workflow_name [String] The workflow name.
|
|
356
|
+
# @param trigger_name [String] The workflow trigger name.
|
|
389
357
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
390
358
|
# will be added to the HTTP request.
|
|
391
359
|
#
|
|
392
360
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
393
361
|
#
|
|
394
|
-
def
|
|
395
|
-
|
|
362
|
+
def list_callback_url_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers = nil)
|
|
363
|
+
list_callback_url_async(resource_group_name, workflow_name, trigger_name, custom_headers).value!
|
|
396
364
|
end
|
|
397
365
|
|
|
398
366
|
#
|
|
399
|
-
#
|
|
367
|
+
# Gets the callback URL for a workflow trigger.
|
|
400
368
|
#
|
|
401
369
|
# @param resource_group_name [String] The resource group name.
|
|
402
|
-
# @param
|
|
403
|
-
# @param
|
|
370
|
+
# @param workflow_name [String] The workflow name.
|
|
371
|
+
# @param trigger_name [String] The workflow trigger name.
|
|
404
372
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
405
373
|
# to the HTTP request.
|
|
406
374
|
#
|
|
407
375
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
408
376
|
#
|
|
409
|
-
def
|
|
377
|
+
def list_callback_url_async(resource_group_name, workflow_name, trigger_name, custom_headers = nil)
|
|
410
378
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
411
379
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
412
|
-
fail ArgumentError, '
|
|
413
|
-
fail ArgumentError, '
|
|
380
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
|
381
|
+
fail ArgumentError, 'trigger_name is nil' if trigger_name.nil?
|
|
414
382
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
415
383
|
|
|
416
384
|
|
|
@@ -419,17 +387,17 @@ module Azure::ARM::Logic
|
|
|
419
387
|
# Set Headers
|
|
420
388
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
421
389
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
422
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/
|
|
390
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/{triggerName}/listCallbackUrl'
|
|
423
391
|
options = {
|
|
424
392
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
425
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
|
393
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name,'triggerName' => trigger_name},
|
|
426
394
|
query_params: {'api-version' => @client.api_version},
|
|
427
395
|
headers: request_headers.merge(custom_headers || {})
|
|
428
396
|
}
|
|
429
397
|
|
|
430
398
|
request_url = @base_url || @client.base_url
|
|
431
399
|
|
|
432
|
-
request = MsRest::HttpOperationRequest.new(request_url, path_template, :
|
|
400
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
|
433
401
|
promise = request.run_promise do |req|
|
|
434
402
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
|
435
403
|
end
|
|
@@ -437,7 +405,7 @@ module Azure::ARM::Logic
|
|
|
437
405
|
promise = promise.then do |http_response|
|
|
438
406
|
status_code = http_response.status
|
|
439
407
|
response_content = http_response.body
|
|
440
|
-
unless status_code == 200
|
|
408
|
+
unless status_code == 200
|
|
441
409
|
error_model = JSON.load(response_content)
|
|
442
410
|
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
|
443
411
|
end
|
|
@@ -445,6 +413,16 @@ module Azure::ARM::Logic
|
|
|
445
413
|
# Create Result
|
|
446
414
|
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
|
447
415
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
416
|
+
# Deserialize Response
|
|
417
|
+
if status_code == 200
|
|
418
|
+
begin
|
|
419
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
420
|
+
result_mapper = WorkflowTriggerCallbackUrl.mapper()
|
|
421
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
422
|
+
rescue Exception => e
|
|
423
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
424
|
+
end
|
|
425
|
+
end
|
|
448
426
|
|
|
449
427
|
result
|
|
450
428
|
end
|
|
@@ -453,14 +431,14 @@ module Azure::ARM::Logic
|
|
|
453
431
|
end
|
|
454
432
|
|
|
455
433
|
#
|
|
456
|
-
# Gets a list of
|
|
434
|
+
# Gets a list of workflow triggers.
|
|
457
435
|
#
|
|
458
436
|
# @param next_page_link [String] The NextLink from the previous successful
|
|
459
437
|
# call to List operation.
|
|
460
438
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
461
439
|
# will be added to the HTTP request.
|
|
462
440
|
#
|
|
463
|
-
# @return [
|
|
441
|
+
# @return [WorkflowTriggerListResult] operation results.
|
|
464
442
|
#
|
|
465
443
|
def list_next(next_page_link, custom_headers = nil)
|
|
466
444
|
response = list_next_async(next_page_link, custom_headers).value!
|
|
@@ -468,7 +446,7 @@ module Azure::ARM::Logic
|
|
|
468
446
|
end
|
|
469
447
|
|
|
470
448
|
#
|
|
471
|
-
# Gets a list of
|
|
449
|
+
# Gets a list of workflow triggers.
|
|
472
450
|
#
|
|
473
451
|
# @param next_page_link [String] The NextLink from the previous successful
|
|
474
452
|
# call to List operation.
|
|
@@ -482,7 +460,7 @@ module Azure::ARM::Logic
|
|
|
482
460
|
end
|
|
483
461
|
|
|
484
462
|
#
|
|
485
|
-
# Gets a list of
|
|
463
|
+
# Gets a list of workflow triggers.
|
|
486
464
|
#
|
|
487
465
|
# @param next_page_link [String] The NextLink from the previous successful
|
|
488
466
|
# call to List operation.
|
|
@@ -529,7 +507,7 @@ module Azure::ARM::Logic
|
|
|
529
507
|
if status_code == 200
|
|
530
508
|
begin
|
|
531
509
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
532
|
-
result_mapper =
|
|
510
|
+
result_mapper = WorkflowTriggerListResult.mapper()
|
|
533
511
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
534
512
|
rescue Exception => e
|
|
535
513
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|