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,35 +5,36 @@
|
|
5
5
|
|
6
6
|
module Azure::ARM::Logic
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Workflows
|
9
9
|
#
|
10
|
-
class
|
10
|
+
class Workflows
|
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 Workflows 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 workflows by subscription.
|
27
27
|
#
|
28
28
|
# @param top [Integer] The number of items to be included in the result.
|
29
|
+
# @param filter [String] The filter to apply on the operation.
|
29
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
31
|
# will be added to the HTTP request.
|
31
32
|
#
|
32
|
-
# @return [
|
33
|
-
#
|
33
|
+
# @return [WorkflowListResult] which provide lazy access to pages of the
|
34
|
+
# response.
|
34
35
|
#
|
35
|
-
def list_by_subscription_as_lazy(top = nil, custom_headers = nil)
|
36
|
-
response = list_by_subscription_async(top, custom_headers).value!
|
36
|
+
def list_by_subscription_as_lazy(top = nil, filter = nil, custom_headers = nil)
|
37
|
+
response = list_by_subscription_async(top, filter, custom_headers).value!
|
37
38
|
unless response.nil?
|
38
39
|
page = response.body
|
39
40
|
page.next_method = Proc.new do |next_link|
|
@@ -44,42 +45,45 @@ module Azure::ARM::Logic
|
|
44
45
|
end
|
45
46
|
|
46
47
|
#
|
47
|
-
# Gets a list of
|
48
|
+
# Gets a list of workflows by subscription.
|
48
49
|
#
|
49
50
|
# @param top [Integer] The number of items to be included in the result.
|
51
|
+
# @param filter [String] The filter to apply on the operation.
|
50
52
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
53
|
# will be added to the HTTP request.
|
52
54
|
#
|
53
|
-
# @return [Array<
|
55
|
+
# @return [Array<Workflow>] operation results.
|
54
56
|
#
|
55
|
-
def list_by_subscription(top = nil, custom_headers = nil)
|
56
|
-
first_page = list_by_subscription_as_lazy(top, custom_headers)
|
57
|
+
def list_by_subscription(top = nil, filter = nil, custom_headers = nil)
|
58
|
+
first_page = list_by_subscription_as_lazy(top, filter, custom_headers)
|
57
59
|
first_page.get_all_items
|
58
60
|
end
|
59
61
|
|
60
62
|
#
|
61
|
-
# Gets a list of
|
63
|
+
# Gets a list of workflows by subscription.
|
62
64
|
#
|
63
65
|
# @param top [Integer] The number of items to be included in the result.
|
66
|
+
# @param filter [String] The filter to apply on the operation.
|
64
67
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
65
68
|
# will be added to the HTTP request.
|
66
69
|
#
|
67
70
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
68
71
|
#
|
69
|
-
def list_by_subscription_with_http_info(top = nil, custom_headers = nil)
|
70
|
-
list_by_subscription_async(top, custom_headers).value!
|
72
|
+
def list_by_subscription_with_http_info(top = nil, filter = nil, custom_headers = nil)
|
73
|
+
list_by_subscription_async(top, filter, custom_headers).value!
|
71
74
|
end
|
72
75
|
|
73
76
|
#
|
74
|
-
# Gets a list of
|
77
|
+
# Gets a list of workflows by subscription.
|
75
78
|
#
|
76
79
|
# @param top [Integer] The number of items to be included in the result.
|
80
|
+
# @param filter [String] The filter to apply on the operation.
|
77
81
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
78
82
|
# to the HTTP request.
|
79
83
|
#
|
80
84
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
81
85
|
#
|
82
|
-
def list_by_subscription_async(top = nil, custom_headers = nil)
|
86
|
+
def list_by_subscription_async(top = nil, filter = nil, custom_headers = nil)
|
83
87
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
84
88
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
85
89
|
|
@@ -89,11 +93,11 @@ module Azure::ARM::Logic
|
|
89
93
|
# Set Headers
|
90
94
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
91
95
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
92
|
-
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Logic/
|
96
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Logic/workflows'
|
93
97
|
options = {
|
94
98
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
95
99
|
path_params: {'subscriptionId' => @client.subscription_id},
|
96
|
-
query_params: {'api-version' => @client.api_version,'$top' => top},
|
100
|
+
query_params: {'api-version' => @client.api_version,'$top' => top,'$filter' => filter},
|
97
101
|
headers: request_headers.merge(custom_headers || {})
|
98
102
|
}
|
99
103
|
|
@@ -119,7 +123,7 @@ module Azure::ARM::Logic
|
|
119
123
|
if status_code == 200
|
120
124
|
begin
|
121
125
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
122
|
-
result_mapper =
|
126
|
+
result_mapper = WorkflowListResult.mapper()
|
123
127
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
124
128
|
rescue Exception => e
|
125
129
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -133,18 +137,19 @@ module Azure::ARM::Logic
|
|
133
137
|
end
|
134
138
|
|
135
139
|
#
|
136
|
-
# Gets a list of
|
140
|
+
# Gets a list of workflows by resource group.
|
137
141
|
#
|
138
142
|
# @param resource_group_name [String] The resource group name.
|
139
143
|
# @param top [Integer] The number of items to be included in the result.
|
144
|
+
# @param filter [String] The filter to apply on the operation.
|
140
145
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
141
146
|
# will be added to the HTTP request.
|
142
147
|
#
|
143
|
-
# @return [
|
144
|
-
#
|
148
|
+
# @return [WorkflowListResult] which provide lazy access to pages of the
|
149
|
+
# response.
|
145
150
|
#
|
146
|
-
def list_by_resource_group_as_lazy(resource_group_name, top = nil, custom_headers = nil)
|
147
|
-
response = list_by_resource_group_async(resource_group_name, top, custom_headers).value!
|
151
|
+
def list_by_resource_group_as_lazy(resource_group_name, top = nil, filter = nil, custom_headers = nil)
|
152
|
+
response = list_by_resource_group_async(resource_group_name, top, filter, custom_headers).value!
|
148
153
|
unless response.nil?
|
149
154
|
page = response.body
|
150
155
|
page.next_method = Proc.new do |next_link|
|
@@ -155,45 +160,48 @@ module Azure::ARM::Logic
|
|
155
160
|
end
|
156
161
|
|
157
162
|
#
|
158
|
-
# Gets a list of
|
163
|
+
# Gets a list of workflows by resource group.
|
159
164
|
#
|
160
165
|
# @param resource_group_name [String] The resource group name.
|
161
166
|
# @param top [Integer] The number of items to be included in the result.
|
167
|
+
# @param filter [String] The filter to apply on the operation.
|
162
168
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
163
169
|
# will be added to the HTTP request.
|
164
170
|
#
|
165
|
-
# @return [Array<
|
171
|
+
# @return [Array<Workflow>] operation results.
|
166
172
|
#
|
167
|
-
def list_by_resource_group(resource_group_name, top = nil, custom_headers = nil)
|
168
|
-
first_page = list_by_resource_group_as_lazy(resource_group_name, top, custom_headers)
|
173
|
+
def list_by_resource_group(resource_group_name, top = nil, filter = nil, custom_headers = nil)
|
174
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, top, filter, custom_headers)
|
169
175
|
first_page.get_all_items
|
170
176
|
end
|
171
177
|
|
172
178
|
#
|
173
|
-
# Gets a list of
|
179
|
+
# Gets a list of workflows by resource group.
|
174
180
|
#
|
175
181
|
# @param resource_group_name [String] The resource group name.
|
176
182
|
# @param top [Integer] The number of items to be included in the result.
|
183
|
+
# @param filter [String] The filter to apply on the operation.
|
177
184
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
178
185
|
# will be added to the HTTP request.
|
179
186
|
#
|
180
187
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
181
188
|
#
|
182
|
-
def list_by_resource_group_with_http_info(resource_group_name, top = nil, custom_headers = nil)
|
183
|
-
list_by_resource_group_async(resource_group_name, top, custom_headers).value!
|
189
|
+
def list_by_resource_group_with_http_info(resource_group_name, top = nil, filter = nil, custom_headers = nil)
|
190
|
+
list_by_resource_group_async(resource_group_name, top, filter, custom_headers).value!
|
184
191
|
end
|
185
192
|
|
186
193
|
#
|
187
|
-
# Gets a list of
|
194
|
+
# Gets a list of workflows by resource group.
|
188
195
|
#
|
189
196
|
# @param resource_group_name [String] The resource group name.
|
190
197
|
# @param top [Integer] The number of items to be included in the result.
|
198
|
+
# @param filter [String] The filter to apply on the operation.
|
191
199
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
192
200
|
# to the HTTP request.
|
193
201
|
#
|
194
202
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
195
203
|
#
|
196
|
-
def list_by_resource_group_async(resource_group_name, top = nil, custom_headers = nil)
|
204
|
+
def list_by_resource_group_async(resource_group_name, top = nil, filter = nil, custom_headers = nil)
|
197
205
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
198
206
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
199
207
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -204,11 +212,11 @@ module Azure::ARM::Logic
|
|
204
212
|
# Set Headers
|
205
213
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
206
214
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
207
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/
|
215
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows'
|
208
216
|
options = {
|
209
217
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
210
218
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
211
|
-
query_params: {'api-version' => @client.api_version,'$top' => top},
|
219
|
+
query_params: {'api-version' => @client.api_version,'$top' => top,'$filter' => filter},
|
212
220
|
headers: request_headers.merge(custom_headers || {})
|
213
221
|
}
|
214
222
|
|
@@ -234,7 +242,7 @@ module Azure::ARM::Logic
|
|
234
242
|
if status_code == 200
|
235
243
|
begin
|
236
244
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
237
|
-
result_mapper =
|
245
|
+
result_mapper = WorkflowListResult.mapper()
|
238
246
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
239
247
|
rescue Exception => e
|
240
248
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -248,48 +256,48 @@ module Azure::ARM::Logic
|
|
248
256
|
end
|
249
257
|
|
250
258
|
#
|
251
|
-
# Gets
|
259
|
+
# Gets a workflow.
|
252
260
|
#
|
253
261
|
# @param resource_group_name [String] The resource group name.
|
254
|
-
# @param
|
262
|
+
# @param workflow_name [String] The workflow name.
|
255
263
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
256
264
|
# will be added to the HTTP request.
|
257
265
|
#
|
258
|
-
# @return [
|
266
|
+
# @return [Workflow] operation results.
|
259
267
|
#
|
260
|
-
def get(resource_group_name,
|
261
|
-
response = get_async(resource_group_name,
|
268
|
+
def get(resource_group_name, workflow_name, custom_headers = nil)
|
269
|
+
response = get_async(resource_group_name, workflow_name, custom_headers).value!
|
262
270
|
response.body unless response.nil?
|
263
271
|
end
|
264
272
|
|
265
273
|
#
|
266
|
-
# Gets
|
274
|
+
# Gets a workflow.
|
267
275
|
#
|
268
276
|
# @param resource_group_name [String] The resource group name.
|
269
|
-
# @param
|
277
|
+
# @param workflow_name [String] The workflow name.
|
270
278
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
271
279
|
# will be added to the HTTP request.
|
272
280
|
#
|
273
281
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
274
282
|
#
|
275
|
-
def get_with_http_info(resource_group_name,
|
276
|
-
get_async(resource_group_name,
|
283
|
+
def get_with_http_info(resource_group_name, workflow_name, custom_headers = nil)
|
284
|
+
get_async(resource_group_name, workflow_name, custom_headers).value!
|
277
285
|
end
|
278
286
|
|
279
287
|
#
|
280
|
-
# Gets
|
288
|
+
# Gets a workflow.
|
281
289
|
#
|
282
290
|
# @param resource_group_name [String] The resource group name.
|
283
|
-
# @param
|
291
|
+
# @param workflow_name [String] The workflow name.
|
284
292
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
285
293
|
# to the HTTP request.
|
286
294
|
#
|
287
295
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
288
296
|
#
|
289
|
-
def get_async(resource_group_name,
|
297
|
+
def get_async(resource_group_name, workflow_name, custom_headers = nil)
|
290
298
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
291
299
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
292
|
-
fail ArgumentError, '
|
300
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
293
301
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
294
302
|
|
295
303
|
|
@@ -298,10 +306,10 @@ module Azure::ARM::Logic
|
|
298
306
|
# Set Headers
|
299
307
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
300
308
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
301
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/
|
309
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'
|
302
310
|
options = {
|
303
311
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
304
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
312
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
|
305
313
|
query_params: {'api-version' => @client.api_version},
|
306
314
|
headers: request_headers.merge(custom_headers || {})
|
307
315
|
}
|
@@ -328,7 +336,7 @@ module Azure::ARM::Logic
|
|
328
336
|
if status_code == 200
|
329
337
|
begin
|
330
338
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
331
|
-
result_mapper =
|
339
|
+
result_mapper = Workflow.mapper()
|
332
340
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
333
341
|
rescue Exception => e
|
334
342
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -342,53 +350,53 @@ module Azure::ARM::Logic
|
|
342
350
|
end
|
343
351
|
|
344
352
|
#
|
345
|
-
# Creates or updates
|
353
|
+
# Creates or updates a workflow.
|
346
354
|
#
|
347
355
|
# @param resource_group_name [String] The resource group name.
|
348
|
-
# @param
|
349
|
-
# @param
|
356
|
+
# @param workflow_name [String] The workflow name.
|
357
|
+
# @param workflow [Workflow] The workflow.
|
350
358
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
351
359
|
# will be added to the HTTP request.
|
352
360
|
#
|
353
|
-
# @return [
|
361
|
+
# @return [Workflow] operation results.
|
354
362
|
#
|
355
|
-
def create_or_update(resource_group_name,
|
356
|
-
response = create_or_update_async(resource_group_name,
|
363
|
+
def create_or_update(resource_group_name, workflow_name, workflow, custom_headers = nil)
|
364
|
+
response = create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers).value!
|
357
365
|
response.body unless response.nil?
|
358
366
|
end
|
359
367
|
|
360
368
|
#
|
361
|
-
# Creates or updates
|
369
|
+
# Creates or updates a workflow.
|
362
370
|
#
|
363
371
|
# @param resource_group_name [String] The resource group name.
|
364
|
-
# @param
|
365
|
-
# @param
|
372
|
+
# @param workflow_name [String] The workflow name.
|
373
|
+
# @param workflow [Workflow] The workflow.
|
366
374
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
367
375
|
# will be added to the HTTP request.
|
368
376
|
#
|
369
377
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
370
378
|
#
|
371
|
-
def create_or_update_with_http_info(resource_group_name,
|
372
|
-
create_or_update_async(resource_group_name,
|
379
|
+
def create_or_update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers = nil)
|
380
|
+
create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers).value!
|
373
381
|
end
|
374
382
|
|
375
383
|
#
|
376
|
-
# Creates or updates
|
384
|
+
# Creates or updates a workflow.
|
377
385
|
#
|
378
386
|
# @param resource_group_name [String] The resource group name.
|
379
|
-
# @param
|
380
|
-
# @param
|
387
|
+
# @param workflow_name [String] The workflow name.
|
388
|
+
# @param workflow [Workflow] The workflow.
|
381
389
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
382
390
|
# to the HTTP request.
|
383
391
|
#
|
384
392
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
385
393
|
#
|
386
|
-
def create_or_update_async(resource_group_name,
|
394
|
+
def create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers = nil)
|
387
395
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
388
396
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
389
|
-
fail ArgumentError, '
|
397
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
390
398
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
391
|
-
fail ArgumentError, '
|
399
|
+
fail ArgumentError, 'workflow is nil' if workflow.nil?
|
392
400
|
|
393
401
|
|
394
402
|
request_headers = {}
|
@@ -400,14 +408,14 @@ module Azure::ARM::Logic
|
|
400
408
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
401
409
|
|
402
410
|
# Serialize Request
|
403
|
-
request_mapper =
|
404
|
-
request_content = @client.serialize(request_mapper,
|
411
|
+
request_mapper = Workflow.mapper()
|
412
|
+
request_content = @client.serialize(request_mapper, workflow, 'workflow')
|
405
413
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
406
414
|
|
407
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/
|
415
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'
|
408
416
|
options = {
|
409
417
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
410
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
418
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
|
411
419
|
query_params: {'api-version' => @client.api_version},
|
412
420
|
body: request_content,
|
413
421
|
headers: request_headers.merge(custom_headers || {})
|
@@ -435,7 +443,7 @@ module Azure::ARM::Logic
|
|
435
443
|
if status_code == 200
|
436
444
|
begin
|
437
445
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
438
|
-
result_mapper =
|
446
|
+
result_mapper = Workflow.mapper()
|
439
447
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
440
448
|
rescue Exception => e
|
441
449
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -445,7 +453,7 @@ module Azure::ARM::Logic
|
|
445
453
|
if status_code == 201
|
446
454
|
begin
|
447
455
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
448
|
-
result_mapper =
|
456
|
+
result_mapper = Workflow.mapper()
|
449
457
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
450
458
|
rescue Exception => e
|
451
459
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -459,53 +467,53 @@ module Azure::ARM::Logic
|
|
459
467
|
end
|
460
468
|
|
461
469
|
#
|
462
|
-
# Updates
|
470
|
+
# Updates a workflow.
|
463
471
|
#
|
464
472
|
# @param resource_group_name [String] The resource group name.
|
465
|
-
# @param
|
466
|
-
# @param
|
473
|
+
# @param workflow_name [String] The workflow name.
|
474
|
+
# @param workflow [Workflow] The workflow.
|
467
475
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
468
476
|
# will be added to the HTTP request.
|
469
477
|
#
|
470
|
-
# @return [
|
478
|
+
# @return [Workflow] operation results.
|
471
479
|
#
|
472
|
-
def update(resource_group_name,
|
473
|
-
response = update_async(resource_group_name,
|
480
|
+
def update(resource_group_name, workflow_name, workflow, custom_headers = nil)
|
481
|
+
response = update_async(resource_group_name, workflow_name, workflow, custom_headers).value!
|
474
482
|
response.body unless response.nil?
|
475
483
|
end
|
476
484
|
|
477
485
|
#
|
478
|
-
# Updates
|
486
|
+
# Updates a workflow.
|
479
487
|
#
|
480
488
|
# @param resource_group_name [String] The resource group name.
|
481
|
-
# @param
|
482
|
-
# @param
|
489
|
+
# @param workflow_name [String] The workflow name.
|
490
|
+
# @param workflow [Workflow] The workflow.
|
483
491
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
484
492
|
# will be added to the HTTP request.
|
485
493
|
#
|
486
494
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
487
495
|
#
|
488
|
-
def update_with_http_info(resource_group_name,
|
489
|
-
update_async(resource_group_name,
|
496
|
+
def update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers = nil)
|
497
|
+
update_async(resource_group_name, workflow_name, workflow, custom_headers).value!
|
490
498
|
end
|
491
499
|
|
492
500
|
#
|
493
|
-
# Updates
|
501
|
+
# Updates a workflow.
|
494
502
|
#
|
495
503
|
# @param resource_group_name [String] The resource group name.
|
496
|
-
# @param
|
497
|
-
# @param
|
504
|
+
# @param workflow_name [String] The workflow name.
|
505
|
+
# @param workflow [Workflow] The workflow.
|
498
506
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
499
507
|
# to the HTTP request.
|
500
508
|
#
|
501
509
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
502
510
|
#
|
503
|
-
def update_async(resource_group_name,
|
511
|
+
def update_async(resource_group_name, workflow_name, workflow, custom_headers = nil)
|
504
512
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
505
513
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
506
|
-
fail ArgumentError, '
|
514
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
507
515
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
508
|
-
fail ArgumentError, '
|
516
|
+
fail ArgumentError, 'workflow is nil' if workflow.nil?
|
509
517
|
|
510
518
|
|
511
519
|
request_headers = {}
|
@@ -517,14 +525,14 @@ module Azure::ARM::Logic
|
|
517
525
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
518
526
|
|
519
527
|
# Serialize Request
|
520
|
-
request_mapper =
|
521
|
-
request_content = @client.serialize(request_mapper,
|
528
|
+
request_mapper = Workflow.mapper()
|
529
|
+
request_content = @client.serialize(request_mapper, workflow, 'workflow')
|
522
530
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
523
531
|
|
524
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/
|
532
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'
|
525
533
|
options = {
|
526
534
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
527
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
535
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
|
528
536
|
query_params: {'api-version' => @client.api_version},
|
529
537
|
body: request_content,
|
530
538
|
headers: request_headers.merge(custom_headers || {})
|
@@ -552,7 +560,7 @@ module Azure::ARM::Logic
|
|
552
560
|
if status_code == 200
|
553
561
|
begin
|
554
562
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
555
|
-
result_mapper =
|
563
|
+
result_mapper = Workflow.mapper()
|
556
564
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
557
565
|
rescue Exception => e
|
558
566
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -566,47 +574,47 @@ module Azure::ARM::Logic
|
|
566
574
|
end
|
567
575
|
|
568
576
|
#
|
569
|
-
# Deletes
|
577
|
+
# Deletes a workflow.
|
570
578
|
#
|
571
579
|
# @param resource_group_name [String] The resource group name.
|
572
|
-
# @param
|
580
|
+
# @param workflow_name [String] The workflow name.
|
573
581
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
574
582
|
# will be added to the HTTP request.
|
575
583
|
#
|
576
584
|
#
|
577
|
-
def delete(resource_group_name,
|
578
|
-
response = delete_async(resource_group_name,
|
585
|
+
def delete(resource_group_name, workflow_name, custom_headers = nil)
|
586
|
+
response = delete_async(resource_group_name, workflow_name, custom_headers).value!
|
579
587
|
nil
|
580
588
|
end
|
581
589
|
|
582
590
|
#
|
583
|
-
# Deletes
|
591
|
+
# Deletes a workflow.
|
584
592
|
#
|
585
593
|
# @param resource_group_name [String] The resource group name.
|
586
|
-
# @param
|
594
|
+
# @param workflow_name [String] The workflow name.
|
587
595
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
588
596
|
# will be added to the HTTP request.
|
589
597
|
#
|
590
598
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
591
599
|
#
|
592
|
-
def delete_with_http_info(resource_group_name,
|
593
|
-
delete_async(resource_group_name,
|
600
|
+
def delete_with_http_info(resource_group_name, workflow_name, custom_headers = nil)
|
601
|
+
delete_async(resource_group_name, workflow_name, custom_headers).value!
|
594
602
|
end
|
595
603
|
|
596
604
|
#
|
597
|
-
# Deletes
|
605
|
+
# Deletes a workflow.
|
598
606
|
#
|
599
607
|
# @param resource_group_name [String] The resource group name.
|
600
|
-
# @param
|
608
|
+
# @param workflow_name [String] The workflow name.
|
601
609
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
602
610
|
# to the HTTP request.
|
603
611
|
#
|
604
612
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
605
613
|
#
|
606
|
-
def delete_async(resource_group_name,
|
614
|
+
def delete_async(resource_group_name, workflow_name, custom_headers = nil)
|
607
615
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
608
616
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
609
|
-
fail ArgumentError, '
|
617
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
610
618
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
611
619
|
|
612
620
|
|
@@ -615,10 +623,10 @@ module Azure::ARM::Logic
|
|
615
623
|
# Set Headers
|
616
624
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
617
625
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
618
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/
|
626
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}'
|
619
627
|
options = {
|
620
628
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
621
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
629
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
|
622
630
|
query_params: {'api-version' => @client.api_version},
|
623
631
|
headers: request_headers.merge(custom_headers || {})
|
624
632
|
}
|
@@ -649,51 +657,220 @@ module Azure::ARM::Logic
|
|
649
657
|
end
|
650
658
|
|
651
659
|
#
|
652
|
-
#
|
660
|
+
# Disables a workflow.
|
653
661
|
#
|
654
662
|
# @param resource_group_name [String] The resource group name.
|
655
|
-
# @param
|
656
|
-
# @param parameters [ListCallbackUrlParameters] The callback URL parameters.
|
663
|
+
# @param workflow_name [String] The workflow name.
|
657
664
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
658
665
|
# will be added to the HTTP request.
|
659
666
|
#
|
660
|
-
# @return [CallbackUrl] operation results.
|
661
667
|
#
|
662
|
-
def
|
663
|
-
response =
|
668
|
+
def disable(resource_group_name, workflow_name, custom_headers = nil)
|
669
|
+
response = disable_async(resource_group_name, workflow_name, custom_headers).value!
|
670
|
+
nil
|
671
|
+
end
|
672
|
+
|
673
|
+
#
|
674
|
+
# Disables a workflow.
|
675
|
+
#
|
676
|
+
# @param resource_group_name [String] The resource group name.
|
677
|
+
# @param workflow_name [String] The workflow name.
|
678
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
679
|
+
# will be added to the HTTP request.
|
680
|
+
#
|
681
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
682
|
+
#
|
683
|
+
def disable_with_http_info(resource_group_name, workflow_name, custom_headers = nil)
|
684
|
+
disable_async(resource_group_name, workflow_name, custom_headers).value!
|
685
|
+
end
|
686
|
+
|
687
|
+
#
|
688
|
+
# Disables a workflow.
|
689
|
+
#
|
690
|
+
# @param resource_group_name [String] The resource group name.
|
691
|
+
# @param workflow_name [String] The workflow name.
|
692
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
693
|
+
# to the HTTP request.
|
694
|
+
#
|
695
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
696
|
+
#
|
697
|
+
def disable_async(resource_group_name, workflow_name, custom_headers = nil)
|
698
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
699
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
700
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
701
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
702
|
+
|
703
|
+
|
704
|
+
request_headers = {}
|
705
|
+
|
706
|
+
# Set Headers
|
707
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
708
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
709
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/disable'
|
710
|
+
options = {
|
711
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
712
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
|
713
|
+
query_params: {'api-version' => @client.api_version},
|
714
|
+
headers: request_headers.merge(custom_headers || {})
|
715
|
+
}
|
716
|
+
|
717
|
+
request_url = @base_url || @client.base_url
|
718
|
+
|
719
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
720
|
+
promise = request.run_promise do |req|
|
721
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
722
|
+
end
|
723
|
+
|
724
|
+
promise = promise.then do |http_response|
|
725
|
+
status_code = http_response.status
|
726
|
+
response_content = http_response.body
|
727
|
+
unless status_code == 200
|
728
|
+
error_model = JSON.load(response_content)
|
729
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
730
|
+
end
|
731
|
+
|
732
|
+
# Create Result
|
733
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
734
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
735
|
+
|
736
|
+
result
|
737
|
+
end
|
738
|
+
|
739
|
+
promise.execute
|
740
|
+
end
|
741
|
+
|
742
|
+
#
|
743
|
+
# Enables a workflow.
|
744
|
+
#
|
745
|
+
# @param resource_group_name [String] The resource group name.
|
746
|
+
# @param workflow_name [String] The workflow name.
|
747
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
748
|
+
# will be added to the HTTP request.
|
749
|
+
#
|
750
|
+
#
|
751
|
+
def enable(resource_group_name, workflow_name, custom_headers = nil)
|
752
|
+
response = enable_async(resource_group_name, workflow_name, custom_headers).value!
|
753
|
+
nil
|
754
|
+
end
|
755
|
+
|
756
|
+
#
|
757
|
+
# Enables a workflow.
|
758
|
+
#
|
759
|
+
# @param resource_group_name [String] The resource group name.
|
760
|
+
# @param workflow_name [String] The workflow name.
|
761
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
762
|
+
# will be added to the HTTP request.
|
763
|
+
#
|
764
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
765
|
+
#
|
766
|
+
def enable_with_http_info(resource_group_name, workflow_name, custom_headers = nil)
|
767
|
+
enable_async(resource_group_name, workflow_name, custom_headers).value!
|
768
|
+
end
|
769
|
+
|
770
|
+
#
|
771
|
+
# Enables a workflow.
|
772
|
+
#
|
773
|
+
# @param resource_group_name [String] The resource group name.
|
774
|
+
# @param workflow_name [String] The workflow name.
|
775
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
776
|
+
# to the HTTP request.
|
777
|
+
#
|
778
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
779
|
+
#
|
780
|
+
def enable_async(resource_group_name, workflow_name, custom_headers = nil)
|
781
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
782
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
783
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
784
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
785
|
+
|
786
|
+
|
787
|
+
request_headers = {}
|
788
|
+
|
789
|
+
# Set Headers
|
790
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
791
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
792
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/enable'
|
793
|
+
options = {
|
794
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
795
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
|
796
|
+
query_params: {'api-version' => @client.api_version},
|
797
|
+
headers: request_headers.merge(custom_headers || {})
|
798
|
+
}
|
799
|
+
|
800
|
+
request_url = @base_url || @client.base_url
|
801
|
+
|
802
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
803
|
+
promise = request.run_promise do |req|
|
804
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
805
|
+
end
|
806
|
+
|
807
|
+
promise = promise.then do |http_response|
|
808
|
+
status_code = http_response.status
|
809
|
+
response_content = http_response.body
|
810
|
+
unless status_code == 200
|
811
|
+
error_model = JSON.load(response_content)
|
812
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
813
|
+
end
|
814
|
+
|
815
|
+
# Create Result
|
816
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
817
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
818
|
+
|
819
|
+
result
|
820
|
+
end
|
821
|
+
|
822
|
+
promise.execute
|
823
|
+
end
|
824
|
+
|
825
|
+
#
|
826
|
+
# Generates the upgraded definition for a workflow.
|
827
|
+
#
|
828
|
+
# @param resource_group_name [String] The resource group name.
|
829
|
+
# @param workflow_name [String] The workflow name.
|
830
|
+
# @param parameters [GenerateUpgradedDefinitionParameters] Parameters for
|
831
|
+
# generating an upgraded definition.
|
832
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
833
|
+
# will be added to the HTTP request.
|
834
|
+
#
|
835
|
+
# @return [Object] operation results.
|
836
|
+
#
|
837
|
+
def generate_upgraded_definition(resource_group_name, workflow_name, parameters, custom_headers = nil)
|
838
|
+
response = generate_upgraded_definition_async(resource_group_name, workflow_name, parameters, custom_headers).value!
|
664
839
|
response.body unless response.nil?
|
665
840
|
end
|
666
841
|
|
667
842
|
#
|
668
|
-
#
|
843
|
+
# Generates the upgraded definition for a workflow.
|
669
844
|
#
|
670
845
|
# @param resource_group_name [String] The resource group name.
|
671
|
-
# @param
|
672
|
-
# @param parameters [
|
846
|
+
# @param workflow_name [String] The workflow name.
|
847
|
+
# @param parameters [GenerateUpgradedDefinitionParameters] Parameters for
|
848
|
+
# generating an upgraded definition.
|
673
849
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
674
850
|
# will be added to the HTTP request.
|
675
851
|
#
|
676
852
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
677
853
|
#
|
678
|
-
def
|
679
|
-
|
854
|
+
def generate_upgraded_definition_with_http_info(resource_group_name, workflow_name, parameters, custom_headers = nil)
|
855
|
+
generate_upgraded_definition_async(resource_group_name, workflow_name, parameters, custom_headers).value!
|
680
856
|
end
|
681
857
|
|
682
858
|
#
|
683
|
-
#
|
859
|
+
# Generates the upgraded definition for a workflow.
|
684
860
|
#
|
685
861
|
# @param resource_group_name [String] The resource group name.
|
686
|
-
# @param
|
687
|
-
# @param parameters [
|
862
|
+
# @param workflow_name [String] The workflow name.
|
863
|
+
# @param parameters [GenerateUpgradedDefinitionParameters] Parameters for
|
864
|
+
# generating an upgraded definition.
|
688
865
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
689
866
|
# to the HTTP request.
|
690
867
|
#
|
691
868
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
692
869
|
#
|
693
|
-
def
|
870
|
+
def generate_upgraded_definition_async(resource_group_name, workflow_name, parameters, custom_headers = nil)
|
694
871
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
695
872
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
696
|
-
fail ArgumentError, '
|
873
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
697
874
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
698
875
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
699
876
|
|
@@ -707,14 +884,14 @@ module Azure::ARM::Logic
|
|
707
884
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
708
885
|
|
709
886
|
# Serialize Request
|
710
|
-
request_mapper =
|
887
|
+
request_mapper = GenerateUpgradedDefinitionParameters.mapper()
|
711
888
|
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
712
889
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
713
890
|
|
714
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/
|
891
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/generateUpgradedDefinition'
|
715
892
|
options = {
|
716
893
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
717
|
-
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'
|
894
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workflowName' => workflow_name},
|
718
895
|
query_params: {'api-version' => @client.api_version},
|
719
896
|
body: request_content,
|
720
897
|
headers: request_headers.merge(custom_headers || {})
|
@@ -738,17 +915,107 @@ module Azure::ARM::Logic
|
|
738
915
|
# Create Result
|
739
916
|
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
740
917
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
918
|
+
|
919
|
+
result
|
920
|
+
end
|
921
|
+
|
922
|
+
promise.execute
|
923
|
+
end
|
924
|
+
|
925
|
+
#
|
926
|
+
# Validates the workflow definition.
|
927
|
+
#
|
928
|
+
# @param resource_group_name [String] The resource group name.
|
929
|
+
# @param location [String] The workflow location.
|
930
|
+
# @param workflow_name [String] The workflow name.
|
931
|
+
# @param workflow [Workflow] The workflow definition.
|
932
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
933
|
+
# will be added to the HTTP request.
|
934
|
+
#
|
935
|
+
#
|
936
|
+
def validate(resource_group_name, location, workflow_name, workflow, custom_headers = nil)
|
937
|
+
response = validate_async(resource_group_name, location, workflow_name, workflow, custom_headers).value!
|
938
|
+
nil
|
939
|
+
end
|
940
|
+
|
941
|
+
#
|
942
|
+
# Validates the workflow definition.
|
943
|
+
#
|
944
|
+
# @param resource_group_name [String] The resource group name.
|
945
|
+
# @param location [String] The workflow location.
|
946
|
+
# @param workflow_name [String] The workflow name.
|
947
|
+
# @param workflow [Workflow] The workflow definition.
|
948
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
949
|
+
# will be added to the HTTP request.
|
950
|
+
#
|
951
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
952
|
+
#
|
953
|
+
def validate_with_http_info(resource_group_name, location, workflow_name, workflow, custom_headers = nil)
|
954
|
+
validate_async(resource_group_name, location, workflow_name, workflow, custom_headers).value!
|
955
|
+
end
|
956
|
+
|
957
|
+
#
|
958
|
+
# Validates the workflow definition.
|
959
|
+
#
|
960
|
+
# @param resource_group_name [String] The resource group name.
|
961
|
+
# @param location [String] The workflow location.
|
962
|
+
# @param workflow_name [String] The workflow name.
|
963
|
+
# @param workflow [Workflow] The workflow definition.
|
964
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
965
|
+
# to the HTTP request.
|
966
|
+
#
|
967
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
968
|
+
#
|
969
|
+
def validate_async(resource_group_name, location, workflow_name, workflow, custom_headers = nil)
|
970
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
971
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
972
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
973
|
+
fail ArgumentError, 'workflow_name is nil' if workflow_name.nil?
|
974
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
975
|
+
fail ArgumentError, 'workflow is nil' if workflow.nil?
|
976
|
+
|
977
|
+
|
978
|
+
request_headers = {}
|
979
|
+
|
980
|
+
# Set Headers
|
981
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
982
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
983
|
+
|
984
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
985
|
+
|
986
|
+
# Serialize Request
|
987
|
+
request_mapper = Workflow.mapper()
|
988
|
+
request_content = @client.serialize(request_mapper, workflow, 'workflow')
|
989
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
990
|
+
|
991
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/locations/{location}/workflows/{workflowName}/validate'
|
992
|
+
options = {
|
993
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
994
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'location' => location,'workflowName' => workflow_name},
|
995
|
+
query_params: {'api-version' => @client.api_version},
|
996
|
+
body: request_content,
|
997
|
+
headers: request_headers.merge(custom_headers || {})
|
998
|
+
}
|
999
|
+
|
1000
|
+
request_url = @base_url || @client.base_url
|
1001
|
+
|
1002
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
|
1003
|
+
promise = request.run_promise do |req|
|
1004
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
promise = promise.then do |http_response|
|
1008
|
+
status_code = http_response.status
|
1009
|
+
response_content = http_response.body
|
1010
|
+
unless status_code == 200
|
1011
|
+
error_model = JSON.load(response_content)
|
1012
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
750
1013
|
end
|
751
1014
|
|
1015
|
+
# Create Result
|
1016
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
1017
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1018
|
+
|
752
1019
|
result
|
753
1020
|
end
|
754
1021
|
|
@@ -756,14 +1023,14 @@ module Azure::ARM::Logic
|
|
756
1023
|
end
|
757
1024
|
|
758
1025
|
#
|
759
|
-
# Gets a list of
|
1026
|
+
# Gets a list of workflows by subscription.
|
760
1027
|
#
|
761
1028
|
# @param next_page_link [String] The NextLink from the previous successful
|
762
1029
|
# call to List operation.
|
763
1030
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
764
1031
|
# will be added to the HTTP request.
|
765
1032
|
#
|
766
|
-
# @return [
|
1033
|
+
# @return [WorkflowListResult] operation results.
|
767
1034
|
#
|
768
1035
|
def list_by_subscription_next(next_page_link, custom_headers = nil)
|
769
1036
|
response = list_by_subscription_next_async(next_page_link, custom_headers).value!
|
@@ -771,7 +1038,7 @@ module Azure::ARM::Logic
|
|
771
1038
|
end
|
772
1039
|
|
773
1040
|
#
|
774
|
-
# Gets a list of
|
1041
|
+
# Gets a list of workflows by subscription.
|
775
1042
|
#
|
776
1043
|
# @param next_page_link [String] The NextLink from the previous successful
|
777
1044
|
# call to List operation.
|
@@ -785,7 +1052,7 @@ module Azure::ARM::Logic
|
|
785
1052
|
end
|
786
1053
|
|
787
1054
|
#
|
788
|
-
# Gets a list of
|
1055
|
+
# Gets a list of workflows by subscription.
|
789
1056
|
#
|
790
1057
|
# @param next_page_link [String] The NextLink from the previous successful
|
791
1058
|
# call to List operation.
|
@@ -832,7 +1099,7 @@ module Azure::ARM::Logic
|
|
832
1099
|
if status_code == 200
|
833
1100
|
begin
|
834
1101
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
835
|
-
result_mapper =
|
1102
|
+
result_mapper = WorkflowListResult.mapper()
|
836
1103
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
837
1104
|
rescue Exception => e
|
838
1105
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -846,14 +1113,14 @@ module Azure::ARM::Logic
|
|
846
1113
|
end
|
847
1114
|
|
848
1115
|
#
|
849
|
-
# Gets a list of
|
1116
|
+
# Gets a list of workflows by resource group.
|
850
1117
|
#
|
851
1118
|
# @param next_page_link [String] The NextLink from the previous successful
|
852
1119
|
# call to List operation.
|
853
1120
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
854
1121
|
# will be added to the HTTP request.
|
855
1122
|
#
|
856
|
-
# @return [
|
1123
|
+
# @return [WorkflowListResult] operation results.
|
857
1124
|
#
|
858
1125
|
def list_by_resource_group_next(next_page_link, custom_headers = nil)
|
859
1126
|
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
@@ -861,7 +1128,7 @@ module Azure::ARM::Logic
|
|
861
1128
|
end
|
862
1129
|
|
863
1130
|
#
|
864
|
-
# Gets a list of
|
1131
|
+
# Gets a list of workflows by resource group.
|
865
1132
|
#
|
866
1133
|
# @param next_page_link [String] The NextLink from the previous successful
|
867
1134
|
# call to List operation.
|
@@ -875,7 +1142,7 @@ module Azure::ARM::Logic
|
|
875
1142
|
end
|
876
1143
|
|
877
1144
|
#
|
878
|
-
# Gets a list of
|
1145
|
+
# Gets a list of workflows by resource group.
|
879
1146
|
#
|
880
1147
|
# @param next_page_link [String] The NextLink from the previous successful
|
881
1148
|
# call to List operation.
|
@@ -922,7 +1189,7 @@ module Azure::ARM::Logic
|
|
922
1189
|
if status_code == 200
|
923
1190
|
begin
|
924
1191
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
925
|
-
result_mapper =
|
1192
|
+
result_mapper = WorkflowListResult.mapper()
|
926
1193
|
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
927
1194
|
rescue Exception => e
|
928
1195
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|