azure_mgmt_logic 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2015-02-01-preview/generated/azure_mgmt_logic/logic_management_client.rb +7 -6
- data/lib/2016-06-01/generated/azure_mgmt_logic.rb +102 -61
- data/lib/2016-06-01/generated/azure_mgmt_logic/agreements.rb +115 -4
- data/lib/2016-06-01/generated/azure_mgmt_logic/integration_account_assemblies.rb +511 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/integration_account_batch_configurations.rb +415 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/integration_accounts.rb +304 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/logic_management_client.rb +29 -6
- data/lib/2016-06-01/generated/azure_mgmt_logic/maps.rb +115 -4
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/access_key_regenerate_action_definition.rb +49 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/access_key_type.rb +17 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/artifact_content_properties_definition.rb +93 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/artifact_properties.rb +68 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/as2one_way_agreement.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/assembly_collection.rb +55 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/assembly_definition.rb +98 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/assembly_properties.rb +128 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/azure_resource_error_info.rb +74 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/batch_configuration.rb +99 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/batch_configuration_collection.rb +55 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/batch_configuration_properties.rb +82 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/batch_release_criteria.rb +69 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/edifact_delimiter_override.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/edifact_envelope_override.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/error_info.rb +46 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/error_response.rb +2 -2
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/event_level.rb +20 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/expression.rb +90 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/expression_root.rb +89 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/expression_traces.rb +56 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/json_schema.rb +57 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/key_vault_key.rb +58 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/key_vault_key_attributes.rb +68 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/key_vault_key_collection.rb +66 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/key_vault_reference.rb +62 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/list_key_vault_keys_definition.rb +58 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/operation_result.rb +190 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/operation_result_properties.rb +106 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/recurrence_schedule_occurrence.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/repetition_index.rb +57 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/run_action_correlation.rb +70 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/run_correlation.rb +65 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/set_trigger_state_action_definition.rb +48 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/track_events_operation_options.rb +16 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/tracking_event.rb +92 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/tracking_event_error_info.rb +58 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/tracking_events_definition.rb +80 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/tracking_record_type.rb +30 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/workflow_run.rb +12 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/workflow_run_action_repetition_definition.rb +282 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/workflow_run_action_repetition_definition_collection.rb +56 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/workflow_run_trigger.rb +12 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/workflow_trigger_list_callback_url_queries.rb +11 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_logic/models/x12one_way_agreement.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_logic/partners.rb +115 -4
- data/lib/2016-06-01/generated/azure_mgmt_logic/schemas.rb +115 -4
- data/lib/2016-06-01/generated/azure_mgmt_logic/sessions.rb +8 -4
- data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_action_repetitions.rb +333 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_action_scoped_repetitions.rb +229 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_actions.rb +108 -4
- data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_operations.rb +125 -0
- data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_runs.rb +8 -4
- data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_trigger_histories.rb +8 -4
- data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_triggers.rb +283 -3
- data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_versions.rb +3 -3
- data/lib/2016-06-01/generated/azure_mgmt_logic/workflows.rb +306 -8
- data/lib/azure_mgmt_logic.rb +1 -1
- data/lib/profiles/latest/modules/logic_profile_module.rb +359 -205
- data/lib/version.rb +1 -1
- metadata +46 -5
@@ -0,0 +1,415 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Logic::Mgmt::V2016_06_01
|
7
|
+
#
|
8
|
+
# REST API for Azure Logic Apps.
|
9
|
+
#
|
10
|
+
class IntegrationAccountBatchConfigurations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the IntegrationAccountBatchConfigurations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [LogicManagementClient] reference to the LogicManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# List the batch configurations for an integration account.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The resource group name.
|
28
|
+
# @param integration_account_name [String] The integration account name.
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
# @return [BatchConfigurationCollection] operation results.
|
33
|
+
#
|
34
|
+
def list(resource_group_name, integration_account_name, custom_headers:nil)
|
35
|
+
response = list_async(resource_group_name, integration_account_name, custom_headers:custom_headers).value!
|
36
|
+
response.body unless response.nil?
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# List the batch configurations for an integration account.
|
41
|
+
#
|
42
|
+
# @param resource_group_name [String] The resource group name.
|
43
|
+
# @param integration_account_name [String] The integration account name.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
|
+
#
|
49
|
+
def list_with_http_info(resource_group_name, integration_account_name, custom_headers:nil)
|
50
|
+
list_async(resource_group_name, integration_account_name, custom_headers:custom_headers).value!
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# List the batch configurations for an integration account.
|
55
|
+
#
|
56
|
+
# @param resource_group_name [String] The resource group name.
|
57
|
+
# @param integration_account_name [String] The integration account name.
|
58
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
|
+
# to the HTTP request.
|
60
|
+
#
|
61
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
|
+
#
|
63
|
+
def list_async(resource_group_name, integration_account_name, custom_headers:nil)
|
64
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
65
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
66
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
67
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
68
|
+
|
69
|
+
|
70
|
+
request_headers = {}
|
71
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
72
|
+
|
73
|
+
# Set Headers
|
74
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
75
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
76
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/batchConfigurations'
|
77
|
+
|
78
|
+
request_url = @base_url || @client.base_url
|
79
|
+
|
80
|
+
options = {
|
81
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
82
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
|
83
|
+
query_params: {'api-version' => @client.api_version},
|
84
|
+
headers: request_headers.merge(custom_headers || {}),
|
85
|
+
base_url: request_url
|
86
|
+
}
|
87
|
+
promise = @client.make_request_async(:get, path_template, options)
|
88
|
+
|
89
|
+
promise = promise.then do |result|
|
90
|
+
http_response = result.response
|
91
|
+
status_code = http_response.status
|
92
|
+
response_content = http_response.body
|
93
|
+
unless status_code == 200
|
94
|
+
error_model = JSON.load(response_content)
|
95
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
96
|
+
end
|
97
|
+
|
98
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
99
|
+
# Deserialize Response
|
100
|
+
if status_code == 200
|
101
|
+
begin
|
102
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
103
|
+
result_mapper = Azure::Logic::Mgmt::V2016_06_01::Models::BatchConfigurationCollection.mapper()
|
104
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
105
|
+
rescue Exception => e
|
106
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
result
|
111
|
+
end
|
112
|
+
|
113
|
+
promise.execute
|
114
|
+
end
|
115
|
+
|
116
|
+
#
|
117
|
+
# Get a batch configuration for an integration account.
|
118
|
+
#
|
119
|
+
# @param resource_group_name [String] The resource group name.
|
120
|
+
# @param integration_account_name [String] The integration account name.
|
121
|
+
# @param batch_configuration_name [String] The batch configuration name.
|
122
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
123
|
+
# will be added to the HTTP request.
|
124
|
+
#
|
125
|
+
# @return [BatchConfiguration] operation results.
|
126
|
+
#
|
127
|
+
def get(resource_group_name, integration_account_name, batch_configuration_name, custom_headers:nil)
|
128
|
+
response = get_async(resource_group_name, integration_account_name, batch_configuration_name, custom_headers:custom_headers).value!
|
129
|
+
response.body unless response.nil?
|
130
|
+
end
|
131
|
+
|
132
|
+
#
|
133
|
+
# Get a batch configuration for an integration account.
|
134
|
+
#
|
135
|
+
# @param resource_group_name [String] The resource group name.
|
136
|
+
# @param integration_account_name [String] The integration account name.
|
137
|
+
# @param batch_configuration_name [String] The batch configuration name.
|
138
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
139
|
+
# will be added to the HTTP request.
|
140
|
+
#
|
141
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
142
|
+
#
|
143
|
+
def get_with_http_info(resource_group_name, integration_account_name, batch_configuration_name, custom_headers:nil)
|
144
|
+
get_async(resource_group_name, integration_account_name, batch_configuration_name, custom_headers:custom_headers).value!
|
145
|
+
end
|
146
|
+
|
147
|
+
#
|
148
|
+
# Get a batch configuration for an integration account.
|
149
|
+
#
|
150
|
+
# @param resource_group_name [String] The resource group name.
|
151
|
+
# @param integration_account_name [String] The integration account name.
|
152
|
+
# @param batch_configuration_name [String] The batch configuration name.
|
153
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
154
|
+
# to the HTTP request.
|
155
|
+
#
|
156
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
157
|
+
#
|
158
|
+
def get_async(resource_group_name, integration_account_name, batch_configuration_name, custom_headers:nil)
|
159
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
160
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
161
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
162
|
+
fail ArgumentError, 'batch_configuration_name is nil' if batch_configuration_name.nil?
|
163
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
164
|
+
|
165
|
+
|
166
|
+
request_headers = {}
|
167
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
168
|
+
|
169
|
+
# Set Headers
|
170
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
171
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
172
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/batchConfigurations/{batchConfigurationName}'
|
173
|
+
|
174
|
+
request_url = @base_url || @client.base_url
|
175
|
+
|
176
|
+
options = {
|
177
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
178
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'batchConfigurationName' => batch_configuration_name},
|
179
|
+
query_params: {'api-version' => @client.api_version},
|
180
|
+
headers: request_headers.merge(custom_headers || {}),
|
181
|
+
base_url: request_url
|
182
|
+
}
|
183
|
+
promise = @client.make_request_async(:get, path_template, options)
|
184
|
+
|
185
|
+
promise = promise.then do |result|
|
186
|
+
http_response = result.response
|
187
|
+
status_code = http_response.status
|
188
|
+
response_content = http_response.body
|
189
|
+
unless status_code == 200
|
190
|
+
error_model = JSON.load(response_content)
|
191
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
192
|
+
end
|
193
|
+
|
194
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
195
|
+
# Deserialize Response
|
196
|
+
if status_code == 200
|
197
|
+
begin
|
198
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
199
|
+
result_mapper = Azure::Logic::Mgmt::V2016_06_01::Models::BatchConfiguration.mapper()
|
200
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
201
|
+
rescue Exception => e
|
202
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
result
|
207
|
+
end
|
208
|
+
|
209
|
+
promise.execute
|
210
|
+
end
|
211
|
+
|
212
|
+
#
|
213
|
+
# Create or update a batch configuration for an integration account.
|
214
|
+
#
|
215
|
+
# @param resource_group_name [String] The resource group name.
|
216
|
+
# @param integration_account_name [String] The integration account name.
|
217
|
+
# @param batch_configuration_name [String] The batch configuration name.
|
218
|
+
# @param batch_configuration [BatchConfiguration] The batch configuration.
|
219
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
220
|
+
# will be added to the HTTP request.
|
221
|
+
#
|
222
|
+
# @return [BatchConfiguration] operation results.
|
223
|
+
#
|
224
|
+
def create_or_update(resource_group_name, integration_account_name, batch_configuration_name, batch_configuration, custom_headers:nil)
|
225
|
+
response = create_or_update_async(resource_group_name, integration_account_name, batch_configuration_name, batch_configuration, custom_headers:custom_headers).value!
|
226
|
+
response.body unless response.nil?
|
227
|
+
end
|
228
|
+
|
229
|
+
#
|
230
|
+
# Create or update a batch configuration for an integration account.
|
231
|
+
#
|
232
|
+
# @param resource_group_name [String] The resource group name.
|
233
|
+
# @param integration_account_name [String] The integration account name.
|
234
|
+
# @param batch_configuration_name [String] The batch configuration name.
|
235
|
+
# @param batch_configuration [BatchConfiguration] The batch configuration.
|
236
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
237
|
+
# will be added to the HTTP request.
|
238
|
+
#
|
239
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
240
|
+
#
|
241
|
+
def create_or_update_with_http_info(resource_group_name, integration_account_name, batch_configuration_name, batch_configuration, custom_headers:nil)
|
242
|
+
create_or_update_async(resource_group_name, integration_account_name, batch_configuration_name, batch_configuration, custom_headers:custom_headers).value!
|
243
|
+
end
|
244
|
+
|
245
|
+
#
|
246
|
+
# Create or update a batch configuration for an integration account.
|
247
|
+
#
|
248
|
+
# @param resource_group_name [String] The resource group name.
|
249
|
+
# @param integration_account_name [String] The integration account name.
|
250
|
+
# @param batch_configuration_name [String] The batch configuration name.
|
251
|
+
# @param batch_configuration [BatchConfiguration] The batch configuration.
|
252
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
253
|
+
# to the HTTP request.
|
254
|
+
#
|
255
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
256
|
+
#
|
257
|
+
def create_or_update_async(resource_group_name, integration_account_name, batch_configuration_name, batch_configuration, custom_headers:nil)
|
258
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
259
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
260
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
261
|
+
fail ArgumentError, 'batch_configuration_name is nil' if batch_configuration_name.nil?
|
262
|
+
fail ArgumentError, 'batch_configuration is nil' if batch_configuration.nil?
|
263
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
264
|
+
|
265
|
+
|
266
|
+
request_headers = {}
|
267
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
268
|
+
|
269
|
+
# Set Headers
|
270
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
271
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
272
|
+
|
273
|
+
# Serialize Request
|
274
|
+
request_mapper = Azure::Logic::Mgmt::V2016_06_01::Models::BatchConfiguration.mapper()
|
275
|
+
request_content = @client.serialize(request_mapper, batch_configuration)
|
276
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
277
|
+
|
278
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/batchConfigurations/{batchConfigurationName}'
|
279
|
+
|
280
|
+
request_url = @base_url || @client.base_url
|
281
|
+
|
282
|
+
options = {
|
283
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
284
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'batchConfigurationName' => batch_configuration_name},
|
285
|
+
query_params: {'api-version' => @client.api_version},
|
286
|
+
body: request_content,
|
287
|
+
headers: request_headers.merge(custom_headers || {}),
|
288
|
+
base_url: request_url
|
289
|
+
}
|
290
|
+
promise = @client.make_request_async(:put, path_template, options)
|
291
|
+
|
292
|
+
promise = promise.then do |result|
|
293
|
+
http_response = result.response
|
294
|
+
status_code = http_response.status
|
295
|
+
response_content = http_response.body
|
296
|
+
unless status_code == 200 || status_code == 201
|
297
|
+
error_model = JSON.load(response_content)
|
298
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
299
|
+
end
|
300
|
+
|
301
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
302
|
+
# Deserialize Response
|
303
|
+
if status_code == 200
|
304
|
+
begin
|
305
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
306
|
+
result_mapper = Azure::Logic::Mgmt::V2016_06_01::Models::BatchConfiguration.mapper()
|
307
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
308
|
+
rescue Exception => e
|
309
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
310
|
+
end
|
311
|
+
end
|
312
|
+
# Deserialize Response
|
313
|
+
if status_code == 201
|
314
|
+
begin
|
315
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
316
|
+
result_mapper = Azure::Logic::Mgmt::V2016_06_01::Models::BatchConfiguration.mapper()
|
317
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
318
|
+
rescue Exception => e
|
319
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
result
|
324
|
+
end
|
325
|
+
|
326
|
+
promise.execute
|
327
|
+
end
|
328
|
+
|
329
|
+
#
|
330
|
+
# Delete a batch configuration for an integration account.
|
331
|
+
#
|
332
|
+
# @param resource_group_name [String] The resource group name.
|
333
|
+
# @param integration_account_name [String] The integration account name.
|
334
|
+
# @param batch_configuration_name [String] The batch configuration name.
|
335
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
336
|
+
# will be added to the HTTP request.
|
337
|
+
#
|
338
|
+
#
|
339
|
+
def delete(resource_group_name, integration_account_name, batch_configuration_name, custom_headers:nil)
|
340
|
+
response = delete_async(resource_group_name, integration_account_name, batch_configuration_name, custom_headers:custom_headers).value!
|
341
|
+
nil
|
342
|
+
end
|
343
|
+
|
344
|
+
#
|
345
|
+
# Delete a batch configuration for an integration account.
|
346
|
+
#
|
347
|
+
# @param resource_group_name [String] The resource group name.
|
348
|
+
# @param integration_account_name [String] The integration account name.
|
349
|
+
# @param batch_configuration_name [String] The batch configuration name.
|
350
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
351
|
+
# will be added to the HTTP request.
|
352
|
+
#
|
353
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
354
|
+
#
|
355
|
+
def delete_with_http_info(resource_group_name, integration_account_name, batch_configuration_name, custom_headers:nil)
|
356
|
+
delete_async(resource_group_name, integration_account_name, batch_configuration_name, custom_headers:custom_headers).value!
|
357
|
+
end
|
358
|
+
|
359
|
+
#
|
360
|
+
# Delete a batch configuration for an integration account.
|
361
|
+
#
|
362
|
+
# @param resource_group_name [String] The resource group name.
|
363
|
+
# @param integration_account_name [String] The integration account name.
|
364
|
+
# @param batch_configuration_name [String] The batch configuration name.
|
365
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
366
|
+
# to the HTTP request.
|
367
|
+
#
|
368
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
369
|
+
#
|
370
|
+
def delete_async(resource_group_name, integration_account_name, batch_configuration_name, custom_headers:nil)
|
371
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
372
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
373
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
374
|
+
fail ArgumentError, 'batch_configuration_name is nil' if batch_configuration_name.nil?
|
375
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
376
|
+
|
377
|
+
|
378
|
+
request_headers = {}
|
379
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
380
|
+
|
381
|
+
# Set Headers
|
382
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
383
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
384
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/batchConfigurations/{batchConfigurationName}'
|
385
|
+
|
386
|
+
request_url = @base_url || @client.base_url
|
387
|
+
|
388
|
+
options = {
|
389
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
390
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'batchConfigurationName' => batch_configuration_name},
|
391
|
+
query_params: {'api-version' => @client.api_version},
|
392
|
+
headers: request_headers.merge(custom_headers || {}),
|
393
|
+
base_url: request_url
|
394
|
+
}
|
395
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
396
|
+
|
397
|
+
promise = promise.then do |result|
|
398
|
+
http_response = result.response
|
399
|
+
status_code = http_response.status
|
400
|
+
response_content = http_response.body
|
401
|
+
unless status_code == 200 || status_code == 204
|
402
|
+
error_model = JSON.load(response_content)
|
403
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
404
|
+
end
|
405
|
+
|
406
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
407
|
+
|
408
|
+
result
|
409
|
+
end
|
410
|
+
|
411
|
+
promise.execute
|
412
|
+
end
|
413
|
+
|
414
|
+
end
|
415
|
+
end
|
@@ -691,6 +691,310 @@ module Azure::Logic::Mgmt::V2016_06_01
|
|
691
691
|
promise.execute
|
692
692
|
end
|
693
693
|
|
694
|
+
#
|
695
|
+
# Gets the integration account's Key Vault keys.
|
696
|
+
#
|
697
|
+
# @param resource_group_name [String] The resource group name.
|
698
|
+
# @param integration_account_name [String] The integration account name.
|
699
|
+
# @param list_key_vault_keys [ListKeyVaultKeysDefinition] The key vault
|
700
|
+
# parameters.
|
701
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
702
|
+
# will be added to the HTTP request.
|
703
|
+
#
|
704
|
+
# @return [KeyVaultKeyCollection] operation results.
|
705
|
+
#
|
706
|
+
def list_key_vault_keys(resource_group_name, integration_account_name, list_key_vault_keys, custom_headers:nil)
|
707
|
+
response = list_key_vault_keys_async(resource_group_name, integration_account_name, list_key_vault_keys, custom_headers:custom_headers).value!
|
708
|
+
response.body unless response.nil?
|
709
|
+
end
|
710
|
+
|
711
|
+
#
|
712
|
+
# Gets the integration account's Key Vault keys.
|
713
|
+
#
|
714
|
+
# @param resource_group_name [String] The resource group name.
|
715
|
+
# @param integration_account_name [String] The integration account name.
|
716
|
+
# @param list_key_vault_keys [ListKeyVaultKeysDefinition] The key vault
|
717
|
+
# parameters.
|
718
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
719
|
+
# will be added to the HTTP request.
|
720
|
+
#
|
721
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
722
|
+
#
|
723
|
+
def list_key_vault_keys_with_http_info(resource_group_name, integration_account_name, list_key_vault_keys, custom_headers:nil)
|
724
|
+
list_key_vault_keys_async(resource_group_name, integration_account_name, list_key_vault_keys, custom_headers:custom_headers).value!
|
725
|
+
end
|
726
|
+
|
727
|
+
#
|
728
|
+
# Gets the integration account's Key Vault keys.
|
729
|
+
#
|
730
|
+
# @param resource_group_name [String] The resource group name.
|
731
|
+
# @param integration_account_name [String] The integration account name.
|
732
|
+
# @param list_key_vault_keys [ListKeyVaultKeysDefinition] The key vault
|
733
|
+
# parameters.
|
734
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
735
|
+
# to the HTTP request.
|
736
|
+
#
|
737
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
738
|
+
#
|
739
|
+
def list_key_vault_keys_async(resource_group_name, integration_account_name, list_key_vault_keys, custom_headers:nil)
|
740
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
741
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
742
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
743
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
744
|
+
fail ArgumentError, 'list_key_vault_keys is nil' if list_key_vault_keys.nil?
|
745
|
+
|
746
|
+
|
747
|
+
request_headers = {}
|
748
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
749
|
+
|
750
|
+
# Set Headers
|
751
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
752
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
753
|
+
|
754
|
+
# Serialize Request
|
755
|
+
request_mapper = Azure::Logic::Mgmt::V2016_06_01::Models::ListKeyVaultKeysDefinition.mapper()
|
756
|
+
request_content = @client.serialize(request_mapper, list_key_vault_keys)
|
757
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
758
|
+
|
759
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/listKeyVaultKeys'
|
760
|
+
|
761
|
+
request_url = @base_url || @client.base_url
|
762
|
+
|
763
|
+
options = {
|
764
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
765
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
|
766
|
+
query_params: {'api-version' => @client.api_version},
|
767
|
+
body: request_content,
|
768
|
+
headers: request_headers.merge(custom_headers || {}),
|
769
|
+
base_url: request_url
|
770
|
+
}
|
771
|
+
promise = @client.make_request_async(:post, path_template, options)
|
772
|
+
|
773
|
+
promise = promise.then do |result|
|
774
|
+
http_response = result.response
|
775
|
+
status_code = http_response.status
|
776
|
+
response_content = http_response.body
|
777
|
+
unless status_code == 200
|
778
|
+
error_model = JSON.load(response_content)
|
779
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
780
|
+
end
|
781
|
+
|
782
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
783
|
+
# Deserialize Response
|
784
|
+
if status_code == 200
|
785
|
+
begin
|
786
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
787
|
+
result_mapper = Azure::Logic::Mgmt::V2016_06_01::Models::KeyVaultKeyCollection.mapper()
|
788
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
789
|
+
rescue Exception => e
|
790
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
791
|
+
end
|
792
|
+
end
|
793
|
+
|
794
|
+
result
|
795
|
+
end
|
796
|
+
|
797
|
+
promise.execute
|
798
|
+
end
|
799
|
+
|
800
|
+
#
|
801
|
+
# Logs the integration account's tracking events.
|
802
|
+
#
|
803
|
+
# @param resource_group_name [String] The resource group name.
|
804
|
+
# @param integration_account_name [String] The integration account name.
|
805
|
+
# @param log_tracking_events [TrackingEventsDefinition] The callback URL
|
806
|
+
# parameters.
|
807
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
808
|
+
# will be added to the HTTP request.
|
809
|
+
#
|
810
|
+
#
|
811
|
+
def log_tracking_events(resource_group_name, integration_account_name, log_tracking_events, custom_headers:nil)
|
812
|
+
response = log_tracking_events_async(resource_group_name, integration_account_name, log_tracking_events, custom_headers:custom_headers).value!
|
813
|
+
nil
|
814
|
+
end
|
815
|
+
|
816
|
+
#
|
817
|
+
# Logs the integration account's tracking events.
|
818
|
+
#
|
819
|
+
# @param resource_group_name [String] The resource group name.
|
820
|
+
# @param integration_account_name [String] The integration account name.
|
821
|
+
# @param log_tracking_events [TrackingEventsDefinition] The callback URL
|
822
|
+
# parameters.
|
823
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
824
|
+
# will be added to the HTTP request.
|
825
|
+
#
|
826
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
827
|
+
#
|
828
|
+
def log_tracking_events_with_http_info(resource_group_name, integration_account_name, log_tracking_events, custom_headers:nil)
|
829
|
+
log_tracking_events_async(resource_group_name, integration_account_name, log_tracking_events, custom_headers:custom_headers).value!
|
830
|
+
end
|
831
|
+
|
832
|
+
#
|
833
|
+
# Logs the integration account's tracking events.
|
834
|
+
#
|
835
|
+
# @param resource_group_name [String] The resource group name.
|
836
|
+
# @param integration_account_name [String] The integration account name.
|
837
|
+
# @param log_tracking_events [TrackingEventsDefinition] The callback URL
|
838
|
+
# parameters.
|
839
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
840
|
+
# to the HTTP request.
|
841
|
+
#
|
842
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
843
|
+
#
|
844
|
+
def log_tracking_events_async(resource_group_name, integration_account_name, log_tracking_events, custom_headers:nil)
|
845
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
846
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
847
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
848
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
849
|
+
fail ArgumentError, 'log_tracking_events is nil' if log_tracking_events.nil?
|
850
|
+
|
851
|
+
|
852
|
+
request_headers = {}
|
853
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
854
|
+
|
855
|
+
# Set Headers
|
856
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
857
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
858
|
+
|
859
|
+
# Serialize Request
|
860
|
+
request_mapper = Azure::Logic::Mgmt::V2016_06_01::Models::TrackingEventsDefinition.mapper()
|
861
|
+
request_content = @client.serialize(request_mapper, log_tracking_events)
|
862
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
863
|
+
|
864
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/logTrackingEvents'
|
865
|
+
|
866
|
+
request_url = @base_url || @client.base_url
|
867
|
+
|
868
|
+
options = {
|
869
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
870
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
|
871
|
+
query_params: {'api-version' => @client.api_version},
|
872
|
+
body: request_content,
|
873
|
+
headers: request_headers.merge(custom_headers || {}),
|
874
|
+
base_url: request_url
|
875
|
+
}
|
876
|
+
promise = @client.make_request_async(:post, path_template, options)
|
877
|
+
|
878
|
+
promise = promise.then do |result|
|
879
|
+
http_response = result.response
|
880
|
+
status_code = http_response.status
|
881
|
+
response_content = http_response.body
|
882
|
+
unless status_code == 200
|
883
|
+
error_model = JSON.load(response_content)
|
884
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
885
|
+
end
|
886
|
+
|
887
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
888
|
+
|
889
|
+
result
|
890
|
+
end
|
891
|
+
|
892
|
+
promise.execute
|
893
|
+
end
|
894
|
+
|
895
|
+
#
|
896
|
+
# Regenerates the integration account access key.
|
897
|
+
#
|
898
|
+
# @param resource_group_name [String] The resource group name.
|
899
|
+
# @param integration_account_name [String] The integration account name.
|
900
|
+
# @param regenerate_access_key [RegenerateActionParameter] The access key type.
|
901
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
902
|
+
# will be added to the HTTP request.
|
903
|
+
#
|
904
|
+
# @return [IntegrationAccount] operation results.
|
905
|
+
#
|
906
|
+
def regenerate_access_key(resource_group_name, integration_account_name, regenerate_access_key, custom_headers:nil)
|
907
|
+
response = regenerate_access_key_async(resource_group_name, integration_account_name, regenerate_access_key, custom_headers:custom_headers).value!
|
908
|
+
response.body unless response.nil?
|
909
|
+
end
|
910
|
+
|
911
|
+
#
|
912
|
+
# Regenerates the integration account access key.
|
913
|
+
#
|
914
|
+
# @param resource_group_name [String] The resource group name.
|
915
|
+
# @param integration_account_name [String] The integration account name.
|
916
|
+
# @param regenerate_access_key [RegenerateActionParameter] The access key type.
|
917
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
918
|
+
# will be added to the HTTP request.
|
919
|
+
#
|
920
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
921
|
+
#
|
922
|
+
def regenerate_access_key_with_http_info(resource_group_name, integration_account_name, regenerate_access_key, custom_headers:nil)
|
923
|
+
regenerate_access_key_async(resource_group_name, integration_account_name, regenerate_access_key, custom_headers:custom_headers).value!
|
924
|
+
end
|
925
|
+
|
926
|
+
#
|
927
|
+
# Regenerates the integration account access key.
|
928
|
+
#
|
929
|
+
# @param resource_group_name [String] The resource group name.
|
930
|
+
# @param integration_account_name [String] The integration account name.
|
931
|
+
# @param regenerate_access_key [RegenerateActionParameter] The access key type.
|
932
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
933
|
+
# to the HTTP request.
|
934
|
+
#
|
935
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
936
|
+
#
|
937
|
+
def regenerate_access_key_async(resource_group_name, integration_account_name, regenerate_access_key, custom_headers:nil)
|
938
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
939
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
940
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
941
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
942
|
+
fail ArgumentError, 'regenerate_access_key is nil' if regenerate_access_key.nil?
|
943
|
+
|
944
|
+
|
945
|
+
request_headers = {}
|
946
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
947
|
+
|
948
|
+
# Set Headers
|
949
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
950
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
951
|
+
|
952
|
+
# Serialize Request
|
953
|
+
request_mapper = Azure::Logic::Mgmt::V2016_06_01::Models::RegenerateActionParameter.mapper()
|
954
|
+
request_content = @client.serialize(request_mapper, regenerate_access_key)
|
955
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
956
|
+
|
957
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/regenerateAccessKey'
|
958
|
+
|
959
|
+
request_url = @base_url || @client.base_url
|
960
|
+
|
961
|
+
options = {
|
962
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
963
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
|
964
|
+
query_params: {'api-version' => @client.api_version},
|
965
|
+
body: request_content,
|
966
|
+
headers: request_headers.merge(custom_headers || {}),
|
967
|
+
base_url: request_url
|
968
|
+
}
|
969
|
+
promise = @client.make_request_async(:post, path_template, options)
|
970
|
+
|
971
|
+
promise = promise.then do |result|
|
972
|
+
http_response = result.response
|
973
|
+
status_code = http_response.status
|
974
|
+
response_content = http_response.body
|
975
|
+
unless status_code == 200
|
976
|
+
error_model = JSON.load(response_content)
|
977
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
978
|
+
end
|
979
|
+
|
980
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
981
|
+
# Deserialize Response
|
982
|
+
if status_code == 200
|
983
|
+
begin
|
984
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
985
|
+
result_mapper = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccount.mapper()
|
986
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
987
|
+
rescue Exception => e
|
988
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
989
|
+
end
|
990
|
+
end
|
991
|
+
|
992
|
+
result
|
993
|
+
end
|
994
|
+
|
995
|
+
promise.execute
|
996
|
+
end
|
997
|
+
|
694
998
|
#
|
695
999
|
# Gets a list of integration accounts by subscription.
|
696
1000
|
#
|