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.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/azure_mgmt_logic.gemspec +1 -1
  3. data/lib/generated/azure_mgmt_logic/logic_management_client.rb +20 -20
  4. data/lib/generated/azure_mgmt_logic/models/{integration_account_content_hash.rb → content_hash.rb} +6 -6
  5. data/lib/generated/azure_mgmt_logic/models/{integration_account_content_link.rb → content_link.rb} +6 -6
  6. data/lib/generated/azure_mgmt_logic/models/{x12message_identifier.rb → correlation.rb} +8 -8
  7. data/lib/generated/azure_mgmt_logic/models/{edifact_decimal_indicator.rb → day_of_week.rb} +9 -5
  8. data/lib/generated/azure_mgmt_logic/models/days_of_week.rb +21 -0
  9. data/lib/generated/azure_mgmt_logic/models/{edifact_message_identifier.rb → generate_upgraded_definition_parameters.rb} +8 -9
  10. data/lib/generated/azure_mgmt_logic/models/{schema_type.rb → key_type.rb} +4 -3
  11. data/lib/generated/azure_mgmt_logic/models/{hashing_algorithm.rb → parameter_type.rb} +10 -6
  12. data/lib/generated/azure_mgmt_logic/models/{encryption_algorithm.rb → recurrence_frequency.rb} +9 -8
  13. data/lib/generated/azure_mgmt_logic/models/recurrence_schedule.rb +121 -0
  14. data/lib/generated/azure_mgmt_logic/models/{as2error_settings.rb → recurrence_schedule_occurrence.rb} +17 -16
  15. data/lib/generated/azure_mgmt_logic/models/{key_vault_key_reference_key_vault.rb → resource_reference.rb} +7 -7
  16. data/lib/generated/azure_mgmt_logic/models/{business_identity.rb → sku.rb} +17 -14
  17. data/lib/generated/azure_mgmt_logic/models/{integration_account_schema.rb → workflow.rb} +77 -40
  18. data/lib/generated/azure_mgmt_logic/models/{integration_account_sku.rb → workflow_filter.rb} +11 -10
  19. data/lib/generated/azure_mgmt_logic/models/{integration_account_list_result.rb → workflow_list_result.rb} +9 -9
  20. data/lib/generated/azure_mgmt_logic/models/{x12schema_reference.rb → workflow_output_parameter.rb} +26 -26
  21. data/lib/generated/azure_mgmt_logic/models/workflow_parameter.rb +77 -0
  22. data/lib/generated/azure_mgmt_logic/models/workflow_provisioning_state.rb +32 -0
  23. data/lib/generated/azure_mgmt_logic/models/workflow_run.rb +199 -0
  24. data/lib/generated/azure_mgmt_logic/models/workflow_run_action.rb +179 -0
  25. data/lib/generated/azure_mgmt_logic/models/{integration_account_agreement_filter.rb → workflow_run_action_filter.rb} +12 -11
  26. data/lib/generated/azure_mgmt_logic/models/{integration_account_map_list_result.rb → workflow_run_action_list_result.rb} +9 -10
  27. data/lib/generated/azure_mgmt_logic/models/{x12message_filter.rb → workflow_run_filter.rb} +12 -10
  28. data/lib/generated/azure_mgmt_logic/models/{integration_account_schema_list_result.rb → workflow_run_list_result.rb} +9 -10
  29. data/lib/generated/azure_mgmt_logic/models/workflow_run_trigger.rb +183 -0
  30. data/lib/generated/azure_mgmt_logic/models/{agreement_type.rb → workflow_state.rb} +7 -5
  31. data/lib/generated/azure_mgmt_logic/models/workflow_status.rb +27 -0
  32. data/lib/generated/azure_mgmt_logic/models/workflow_trigger.rb +178 -0
  33. data/lib/generated/azure_mgmt_logic/models/{callback_url.rb → workflow_trigger_callback_url.rb} +6 -5
  34. data/lib/generated/azure_mgmt_logic/models/{integration_account_map_filter.rb → workflow_trigger_filter.rb} +11 -10
  35. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_history.rb +191 -0
  36. data/lib/generated/azure_mgmt_logic/models/{integration_account_partner_filter.rb → workflow_trigger_history_filter.rb} +12 -10
  37. data/lib/generated/azure_mgmt_logic/models/{integration_account_partner_list_result.rb → workflow_trigger_history_list_result.rb} +10 -10
  38. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb +93 -0
  39. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_provisioning_state.rb +32 -0
  40. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb +98 -0
  41. data/lib/generated/azure_mgmt_logic/models/{integration_account_agreement.rb → workflow_version.rb} +54 -44
  42. data/lib/generated/azure_mgmt_logic/models/workflow_version_list_result.rb +93 -0
  43. data/lib/generated/azure_mgmt_logic/version.rb +1 -1
  44. data/lib/generated/azure_mgmt_logic/workflow_run_actions.rb +347 -0
  45. data/lib/generated/azure_mgmt_logic/{integration_account_schemas.rb → workflow_runs.rb} +71 -192
  46. data/lib/generated/azure_mgmt_logic/workflow_trigger_histories.rb +347 -0
  47. data/lib/generated/azure_mgmt_logic/{integration_account_maps.rb → workflow_triggers.rb} +105 -127
  48. data/lib/generated/azure_mgmt_logic/workflow_versions.rb +334 -0
  49. data/lib/generated/azure_mgmt_logic/{integration_accounts.rb → workflows.rb} +418 -151
  50. data/lib/generated/azure_mgmt_logic.rb +45 -88
  51. metadata +49 -92
  52. data/lib/generated/azure_mgmt_logic/integration_account_agreements.rb +0 -549
  53. data/lib/generated/azure_mgmt_logic/integration_account_certificates.rb +0 -545
  54. data/lib/generated/azure_mgmt_logic/integration_account_partners.rb +0 -546
  55. data/lib/generated/azure_mgmt_logic/models/agreement_content.rb +0 -67
  56. data/lib/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb +0 -78
  57. data/lib/generated/azure_mgmt_logic/models/as2agreement_content.rb +0 -56
  58. data/lib/generated/azure_mgmt_logic/models/as2envelope_settings.rb +0 -87
  59. data/lib/generated/azure_mgmt_logic/models/as2mdn_settings.rb +0 -132
  60. data/lib/generated/azure_mgmt_logic/models/as2message_connection_settings.rb +0 -78
  61. data/lib/generated/azure_mgmt_logic/models/as2one_way_agreement.rb +0 -67
  62. data/lib/generated/azure_mgmt_logic/models/as2protocol_settings.rb +0 -112
  63. data/lib/generated/azure_mgmt_logic/models/as2security_settings.rb +0 -131
  64. data/lib/generated/azure_mgmt_logic/models/as2validation_settings.rb +0 -135
  65. data/lib/generated/azure_mgmt_logic/models/b2bpartner_content.rb +0 -53
  66. data/lib/generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb +0 -151
  67. data/lib/generated/azure_mgmt_logic/models/edifact_agreement_content.rb +0 -56
  68. data/lib/generated/azure_mgmt_logic/models/edifact_character_set.rb +0 -29
  69. data/lib/generated/azure_mgmt_logic/models/edifact_delimiter_override.rb +0 -159
  70. data/lib/generated/azure_mgmt_logic/models/edifact_envelope_override.rb +0 -188
  71. data/lib/generated/azure_mgmt_logic/models/edifact_envelope_settings.rb +0 -452
  72. data/lib/generated/azure_mgmt_logic/models/edifact_framing_settings.rb +0 -153
  73. data/lib/generated/azure_mgmt_logic/models/edifact_message_filter.rb +0 -46
  74. data/lib/generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb +0 -67
  75. data/lib/generated/azure_mgmt_logic/models/edifact_processing_settings.rb +0 -88
  76. data/lib/generated/azure_mgmt_logic/models/edifact_protocol_settings.rb +0 -195
  77. data/lib/generated/azure_mgmt_logic/models/edifact_schema_reference.rb +0 -104
  78. data/lib/generated/azure_mgmt_logic/models/edifact_validation_override.rb +0 -111
  79. data/lib/generated/azure_mgmt_logic/models/edifact_validation_settings.rb +0 -145
  80. data/lib/generated/azure_mgmt_logic/models/integration_account.rb +0 -97
  81. data/lib/generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb +0 -94
  82. data/lib/generated/azure_mgmt_logic/models/integration_account_certificate.rb +0 -129
  83. data/lib/generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb +0 -95
  84. data/lib/generated/azure_mgmt_logic/models/integration_account_map.rb +0 -152
  85. data/lib/generated/azure_mgmt_logic/models/integration_account_partner.rb +0 -131
  86. data/lib/generated/azure_mgmt_logic/models/integration_account_resource.rb +0 -91
  87. data/lib/generated/azure_mgmt_logic/models/integration_account_schema_filter.rb +0 -46
  88. data/lib/generated/azure_mgmt_logic/models/key_vault_key_reference.rb +0 -65
  89. data/lib/generated/azure_mgmt_logic/models/list_callback_url_parameters.rb +0 -44
  90. data/lib/generated/azure_mgmt_logic/models/map_type.rb +0 -16
  91. data/lib/generated/azure_mgmt_logic/models/message_filter_type.rb +0 -17
  92. data/lib/generated/azure_mgmt_logic/models/partner_content.rb +0 -45
  93. data/lib/generated/azure_mgmt_logic/models/partner_type.rb +0 -16
  94. data/lib/generated/azure_mgmt_logic/models/segment_terminator_suffix.rb +0 -19
  95. data/lib/generated/azure_mgmt_logic/models/trailing_separator_policy.rb +0 -18
  96. data/lib/generated/azure_mgmt_logic/models/usage_indicator.rb +0 -18
  97. data/lib/generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb +0 -193
  98. data/lib/generated/azure_mgmt_logic/models/x12agreement_content.rb +0 -56
  99. data/lib/generated/azure_mgmt_logic/models/x12character_set.rb +0 -18
  100. data/lib/generated/azure_mgmt_logic/models/x12date_format.rb +0 -17
  101. data/lib/generated/azure_mgmt_logic/models/x12delimiter_overrides.rb +0 -128
  102. data/lib/generated/azure_mgmt_logic/models/x12envelope_override.rb +0 -141
  103. data/lib/generated/azure_mgmt_logic/models/x12envelope_settings.rb +0 -286
  104. data/lib/generated/azure_mgmt_logic/models/x12framing_settings.rb +0 -109
  105. data/lib/generated/azure_mgmt_logic/models/x12one_way_agreement.rb +0 -67
  106. data/lib/generated/azure_mgmt_logic/models/x12processing_settings.rb +0 -99
  107. data/lib/generated/azure_mgmt_logic/models/x12protocol_settings.rb +0 -204
  108. data/lib/generated/azure_mgmt_logic/models/x12security_settings.rb +0 -74
  109. data/lib/generated/azure_mgmt_logic/models/x12time_format.rb +0 -19
  110. data/lib/generated/azure_mgmt_logic/models/x12validation_override.rb +0 -111
  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
- # IntegrationAccountMaps
8
+ # WorkflowTriggers
9
9
  #
10
- class IntegrationAccountMaps
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 IntegrationAccountMaps class.
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 integration account maps.
26
+ # Gets a list of workflow triggers.
27
27
  #
28
28
  # @param resource_group_name [String] The resource group name.
29
- # @param integration_account_name [String] The integration account name.
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 [IntegrationAccountMapListResult] which provide lazy access to pages
36
- # of the response.
35
+ # @return [WorkflowTriggerListResult] which provide lazy access to pages of
36
+ # the response.
37
37
  #
38
- def list_as_lazy(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
39
- response = list_async(resource_group_name, integration_account_name, top, filter, custom_headers).value!
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 integration account maps.
50
+ # Gets a list of workflow triggers.
51
51
  #
52
52
  # @param resource_group_name [String] The resource group name.
53
- # @param integration_account_name [String] The integration account name.
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<IntegrationAccountMap>] operation results.
59
+ # @return [Array<WorkflowTrigger>] operation results.
60
60
  #
61
- def list(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
62
- first_page = list_as_lazy(resource_group_name, integration_account_name, top, filter, custom_headers)
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 integration account maps.
67
+ # Gets a list of workflow triggers.
68
68
  #
69
69
  # @param resource_group_name [String] The resource group name.
70
- # @param integration_account_name [String] The integration account name.
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, integration_account_name, top = nil, filter = nil, custom_headers = nil)
79
- list_async(resource_group_name, integration_account_name, top, filter, custom_headers).value!
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 integration account maps.
83
+ # Gets a list of workflow triggers.
84
84
  #
85
85
  # @param resource_group_name [String] The resource group name.
86
- # @param integration_account_name [String] The integration account name.
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, integration_account_name, top = nil, filter = nil, custom_headers = nil)
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, 'integration_account_name is nil' if integration_account_name.nil?
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/integrationAccounts/{integrationAccountName}/maps'
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,'integrationAccountName' => integration_account_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 = IntegrationAccountMapListResult.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 an integration account map.
150
+ # Gets a workflow trigger.
151
151
  #
152
152
  # @param resource_group_name [String] The resource group name.
153
- # @param integration_account_name [String] The integration account name.
154
- # @param map_name [String] The integration account map name.
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 [IntegrationAccountMap] operation results.
158
+ # @return [WorkflowTrigger] operation results.
159
159
  #
160
- def get(resource_group_name, integration_account_name, map_name, custom_headers = nil)
161
- response = get_async(resource_group_name, integration_account_name, map_name, custom_headers).value!
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 an integration account map.
166
+ # Gets a workflow trigger.
167
167
  #
168
168
  # @param resource_group_name [String] The resource group name.
169
- # @param integration_account_name [String] The integration account name.
170
- # @param map_name [String] The integration account map name.
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, integration_account_name, map_name, custom_headers = nil)
177
- get_async(resource_group_name, integration_account_name, map_name, custom_headers).value!
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 an integration account map.
181
+ # Gets a workflow trigger.
182
182
  #
183
183
  # @param resource_group_name [String] The resource group name.
184
- # @param integration_account_name [String] The integration account name.
185
- # @param map_name [String] The integration account map name.
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, integration_account_name, map_name, custom_headers = nil)
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, 'integration_account_name is nil' if integration_account_name.nil?
195
- fail ArgumentError, 'map_name is nil' if map_name.nil?
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/integrationAccounts/{integrationAccountName}/maps/{mapName}'
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,'integrationAccountName' => integration_account_name,'mapName' => map_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 = IntegrationAccountMap.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
- # Creates or updates an integration account map.
248
+ # Runs a workflow trigger.
249
249
  #
250
250
  # @param resource_group_name [String] The resource group name.
251
- # @param integration_account_name [String] The integration account name.
252
- # @param map_name [String] The integration account map name.
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 [IntegrationAccountMap] operation results.
256
+ # @return [Object] operation results.
258
257
  #
259
- def create_or_update(resource_group_name, integration_account_name, map_name, map, custom_headers = nil)
260
- response = create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers).value!
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
- # Creates or updates an integration account map.
264
+ # Runs a workflow trigger.
266
265
  #
267
266
  # @param resource_group_name [String] The resource group name.
268
- # @param integration_account_name [String] The integration account name.
269
- # @param map_name [String] The integration account map name.
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 create_or_update_with_http_info(resource_group_name, integration_account_name, map_name, map, custom_headers = nil)
277
- create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers).value!
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
- # Creates or updates an integration account map.
279
+ # Runs a workflow trigger.
282
280
  #
283
281
  # @param resource_group_name [String] The resource group name.
284
- # @param integration_account_name [String] The integration account name.
285
- # @param map_name [String] The integration account map name.
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 create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers = nil)
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, 'integration_account_name is nil' if integration_account_name.nil?
296
- fail ArgumentError, 'map_name is nil' if map_name.nil?
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,'integrationAccountName' => integration_account_name,'mapName' => map_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, :put, options)
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 == 200 || status_code == 201
320
+ unless status_code >= 200 && status_code < 300
334
321
  error_model = JSON.load(response_content)
335
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
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
- # Deletes an integration account map.
336
+ # Gets the callback URL for a workflow trigger.
370
337
  #
371
338
  # @param resource_group_name [String] The resource group name.
372
- # @param integration_account_name [String] The integration account name.
373
- # @param map_name [String] The integration account map name.
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 delete(resource_group_name, integration_account_name, map_name, custom_headers = nil)
379
- response = delete_async(resource_group_name, integration_account_name, map_name, custom_headers).value!
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
- # Deletes an integration account map.
352
+ # Gets the callback URL for a workflow trigger.
385
353
  #
386
354
  # @param resource_group_name [String] The resource group name.
387
- # @param integration_account_name [String] The integration account name.
388
- # @param map_name [String] The integration account map name.
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 delete_with_http_info(resource_group_name, integration_account_name, map_name, custom_headers = nil)
395
- delete_async(resource_group_name, integration_account_name, map_name, custom_headers).value!
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
- # Deletes an integration account map.
367
+ # Gets the callback URL for a workflow trigger.
400
368
  #
401
369
  # @param resource_group_name [String] The resource group name.
402
- # @param integration_account_name [String] The integration account name.
403
- # @param map_name [String] The integration account map name.
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 delete_async(resource_group_name, integration_account_name, map_name, custom_headers = nil)
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, 'integration_account_name is nil' if integration_account_name.nil?
413
- fail ArgumentError, 'map_name is nil' if map_name.nil?
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/integrationAccounts/{integrationAccountName}/maps/{mapName}'
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,'integrationAccountName' => integration_account_name,'mapName' => map_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, :delete, options)
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 || status_code == 204
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 integration account maps.
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 [IntegrationAccountMapListResult] operation results.
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 integration account maps.
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 integration account maps.
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 = IntegrationAccountMapListResult.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)