azure_mgmt_logic 0.7.0 → 0.8.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/generated/azure_mgmt_logic.rb +100 -12
- data/lib/generated/azure_mgmt_logic/integration_account_agreements.rb +534 -0
- data/lib/generated/azure_mgmt_logic/integration_account_certificates.rb +530 -0
- data/lib/generated/azure_mgmt_logic/integration_account_maps.rb +531 -0
- data/lib/generated/azure_mgmt_logic/integration_account_partners.rb +531 -0
- data/lib/generated/azure_mgmt_logic/integration_account_schemas.rb +531 -0
- data/lib/generated/azure_mgmt_logic/integration_accounts.rb +912 -0
- data/lib/generated/azure_mgmt_logic/logic_management_client.rb +38 -5
- data/lib/generated/azure_mgmt_logic/models/agreement_content.rb +68 -0
- data/lib/generated/azure_mgmt_logic/models/agreement_type.rb +18 -0
- data/lib/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb +79 -0
- data/lib/generated/azure_mgmt_logic/models/as2agreement_content.rb +57 -0
- data/lib/generated/azure_mgmt_logic/models/as2envelope_settings.rb +88 -0
- data/lib/generated/azure_mgmt_logic/models/as2error_settings.rb +57 -0
- data/lib/generated/azure_mgmt_logic/models/as2mdn_settings.rb +132 -0
- data/lib/generated/azure_mgmt_logic/models/as2message_connection_settings.rb +79 -0
- data/lib/generated/azure_mgmt_logic/models/as2one_way_agreement.rb +68 -0
- data/lib/generated/azure_mgmt_logic/models/as2protocol_settings.rb +113 -0
- data/lib/generated/azure_mgmt_logic/models/as2security_settings.rb +132 -0
- data/lib/generated/azure_mgmt_logic/models/as2validation_settings.rb +136 -0
- data/lib/generated/azure_mgmt_logic/models/b2bpartner_content.rb +54 -0
- data/lib/generated/azure_mgmt_logic/models/business_identity.rb +55 -0
- data/lib/generated/azure_mgmt_logic/models/callback_url.rb +45 -0
- data/lib/generated/azure_mgmt_logic/models/content_hash.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/content_link.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/correlation.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/day_of_week.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/days_of_week.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb +152 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_agreement_content.rb +57 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_character_set.rb +29 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_decimal_indicator.rb +17 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_delimiter_override.rb +160 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_envelope_override.rb +189 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_envelope_settings.rb +453 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_framing_settings.rb +154 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_message_filter.rb +47 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_message_identifier.rb +46 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb +68 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_processing_settings.rb +89 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_protocol_settings.rb +196 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_schema_reference.rb +105 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_validation_override.rb +112 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_validation_settings.rb +146 -0
- data/lib/generated/azure_mgmt_logic/models/encryption_algorithm.rb +21 -0
- data/lib/generated/azure_mgmt_logic/models/generate_upgraded_definition_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/hashing_algorithm.rb +19 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account.rb +98 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_agreement.rb +174 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_agreement_filter.rb +48 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_certificate.rb +130 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_content_hash.rb +55 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_content_link.rb +86 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_map.rb +153 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_map_filter.rb +47 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_map_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_partner.rb +132 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_partner_filter.rb +47 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_partner_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_resource.rb +92 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_schema.rb +163 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_schema_filter.rb +47 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_schema_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_sku.rb +47 -0
- data/lib/generated/azure_mgmt_logic/models/key_type.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/key_vault_key_reference.rb +66 -0
- data/lib/generated/azure_mgmt_logic/models/key_vault_key_reference_key_vault.rb +66 -0
- data/lib/generated/azure_mgmt_logic/models/list_callback_url_parameters.rb +45 -0
- data/lib/generated/azure_mgmt_logic/models/map_type.rb +16 -0
- data/lib/generated/azure_mgmt_logic/models/message_filter_type.rb +17 -0
- data/lib/generated/azure_mgmt_logic/models/parameter_type.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/partner_content.rb +46 -0
- data/lib/generated/azure_mgmt_logic/models/partner_type.rb +16 -0
- data/lib/generated/azure_mgmt_logic/models/recurrence_frequency.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/recurrence_schedule.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/recurrence_schedule_occurrence.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/resource_reference.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/schema_type.rb +16 -0
- data/lib/generated/azure_mgmt_logic/models/segment_terminator_suffix.rb +19 -0
- data/lib/generated/azure_mgmt_logic/models/sku.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/sku_name.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/trailing_separator_policy.rb +18 -0
- data/lib/generated/azure_mgmt_logic/models/usage_indicator.rb +18 -0
- data/lib/generated/azure_mgmt_logic/models/workflow.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_filter.rb +4 -3
- data/lib/generated/azure_mgmt_logic/models/workflow_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_output_parameter.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_parameter.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_provisioning_state.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_run.rb +5 -4
- data/lib/generated/azure_mgmt_logic/models/workflow_run_action.rb +5 -4
- data/lib/generated/azure_mgmt_logic/models/workflow_run_action_filter.rb +4 -3
- data/lib/generated/azure_mgmt_logic/models/workflow_run_action_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_run_filter.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_run_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_run_trigger.rb +5 -4
- data/lib/generated/azure_mgmt_logic/models/workflow_state.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_status.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger.rb +10 -10
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger_callback_url.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger_filter.rb +4 -3
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger_history.rb +5 -4
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger_history_filter.rb +4 -3
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger_history_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger_provisioning_state.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_version.rb +2 -1
- data/lib/generated/azure_mgmt_logic/models/workflow_version_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb +194 -0
- data/lib/generated/azure_mgmt_logic/models/x12agreement_content.rb +57 -0
- data/lib/generated/azure_mgmt_logic/models/x12character_set.rb +18 -0
- data/lib/generated/azure_mgmt_logic/models/x12date_format.rb +17 -0
- data/lib/generated/azure_mgmt_logic/models/x12delimiter_overrides.rb +129 -0
- data/lib/generated/azure_mgmt_logic/models/x12envelope_override.rb +142 -0
- data/lib/generated/azure_mgmt_logic/models/x12envelope_settings.rb +287 -0
- data/lib/generated/azure_mgmt_logic/models/x12framing_settings.rb +110 -0
- data/lib/generated/azure_mgmt_logic/models/x12message_filter.rb +47 -0
- data/lib/generated/azure_mgmt_logic/models/x12message_identifier.rb +45 -0
- data/lib/generated/azure_mgmt_logic/models/x12one_way_agreement.rb +68 -0
- data/lib/generated/azure_mgmt_logic/models/x12processing_settings.rb +100 -0
- data/lib/generated/azure_mgmt_logic/models/x12protocol_settings.rb +205 -0
- data/lib/generated/azure_mgmt_logic/models/x12schema_reference.rb +75 -0
- data/lib/generated/azure_mgmt_logic/models/x12security_settings.rb +75 -0
- data/lib/generated/azure_mgmt_logic/models/x12time_format.rb +19 -0
- data/lib/generated/azure_mgmt_logic/models/x12validation_override.rb +112 -0
- data/lib/generated/azure_mgmt_logic/models/x12validation_settings.rb +146 -0
- data/lib/generated/azure_mgmt_logic/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_logic/version.rb +2 -2
- data/lib/generated/azure_mgmt_logic/workflow_run_actions.rb +37 -37
- data/lib/generated/azure_mgmt_logic/workflow_runs.rb +38 -38
- data/lib/generated/azure_mgmt_logic/workflow_trigger_histories.rb +37 -37
- data/lib/generated/azure_mgmt_logic/workflow_triggers.rb +40 -40
- data/lib/generated/azure_mgmt_logic/workflow_versions.rb +35 -35
- data/lib/generated/azure_mgmt_logic/workflows.rb +79 -79
- metadata +92 -4
@@ -0,0 +1,531 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Logic
|
7
|
+
#
|
8
|
+
# Composite Swagger for Logic Management Client
|
9
|
+
#
|
10
|
+
class IntegrationAccountPartners
|
11
|
+
include Azure::ARM::Logic::Models
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the IntegrationAccountPartners class.
|
16
|
+
# @param client service class for accessing basic functionality.
|
17
|
+
#
|
18
|
+
def initialize(client)
|
19
|
+
@client = client
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [LogicManagementClient] reference to the LogicManagementClient
|
23
|
+
attr_reader :client
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets a list of integration account partners.
|
27
|
+
#
|
28
|
+
# @param resource_group_name [String] The resource group name.
|
29
|
+
# @param integration_account_name [String] The integration account name.
|
30
|
+
# @param top [Integer] The number of items to be included in the result.
|
31
|
+
# @param filter [String] The filter to apply on the operation.
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [Array<IntegrationAccountPartner>] operation results.
|
36
|
+
#
|
37
|
+
def list(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
|
38
|
+
first_page = list_as_lazy(resource_group_name, integration_account_name, top, filter, custom_headers)
|
39
|
+
first_page.get_all_items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets a list of integration account partners.
|
44
|
+
#
|
45
|
+
# @param resource_group_name [String] The resource group name.
|
46
|
+
# @param integration_account_name [String] The integration account name.
|
47
|
+
# @param top [Integer] The number of items to be included in the result.
|
48
|
+
# @param filter [String] The filter to apply on the operation.
|
49
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
50
|
+
# will be added to the HTTP request.
|
51
|
+
#
|
52
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
53
|
+
#
|
54
|
+
def list_with_http_info(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
|
55
|
+
list_async(resource_group_name, integration_account_name, top, filter, custom_headers).value!
|
56
|
+
end
|
57
|
+
|
58
|
+
#
|
59
|
+
# Gets a list of integration account partners.
|
60
|
+
#
|
61
|
+
# @param resource_group_name [String] The resource group name.
|
62
|
+
# @param integration_account_name [String] The integration account name.
|
63
|
+
# @param top [Integer] The number of items to be included in the result.
|
64
|
+
# @param filter [String] The filter to apply on the operation.
|
65
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
66
|
+
# to the HTTP request.
|
67
|
+
#
|
68
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
69
|
+
#
|
70
|
+
def list_async(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
|
71
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
72
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
73
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
74
|
+
api_version = '2015-08-01-preview'
|
75
|
+
|
76
|
+
|
77
|
+
request_headers = {}
|
78
|
+
|
79
|
+
# Set Headers
|
80
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
81
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
82
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners'
|
83
|
+
|
84
|
+
request_url = @base_url || @client.base_url
|
85
|
+
|
86
|
+
options = {
|
87
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
88
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
|
89
|
+
query_params: {'api-version' => api_version,'$top' => top,'$filter' => filter},
|
90
|
+
headers: request_headers.merge(custom_headers || {}),
|
91
|
+
base_url: request_url
|
92
|
+
}
|
93
|
+
promise = @client.make_request_async(:get, path_template, options)
|
94
|
+
|
95
|
+
promise = promise.then do |result|
|
96
|
+
http_response = result.response
|
97
|
+
status_code = http_response.status
|
98
|
+
response_content = http_response.body
|
99
|
+
unless status_code == 200
|
100
|
+
error_model = JSON.load(response_content)
|
101
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
102
|
+
end
|
103
|
+
|
104
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
105
|
+
# Deserialize Response
|
106
|
+
if status_code == 200
|
107
|
+
begin
|
108
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
109
|
+
result_mapper = IntegrationAccountPartnerListResult.mapper()
|
110
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
111
|
+
rescue Exception => e
|
112
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
result
|
117
|
+
end
|
118
|
+
|
119
|
+
promise.execute
|
120
|
+
end
|
121
|
+
|
122
|
+
#
|
123
|
+
# Gets an integration account partner.
|
124
|
+
#
|
125
|
+
# @param resource_group_name [String] The resource group name.
|
126
|
+
# @param integration_account_name [String] The integration account name.
|
127
|
+
# @param partner_name [String] The integration account partner name.
|
128
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
129
|
+
# will be added to the HTTP request.
|
130
|
+
#
|
131
|
+
# @return [IntegrationAccountPartner] operation results.
|
132
|
+
#
|
133
|
+
def get(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
|
134
|
+
response = get_async(resource_group_name, integration_account_name, partner_name, custom_headers).value!
|
135
|
+
response.body unless response.nil?
|
136
|
+
end
|
137
|
+
|
138
|
+
#
|
139
|
+
# Gets an integration account partner.
|
140
|
+
#
|
141
|
+
# @param resource_group_name [String] The resource group name.
|
142
|
+
# @param integration_account_name [String] The integration account name.
|
143
|
+
# @param partner_name [String] The integration account partner name.
|
144
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
145
|
+
# will be added to the HTTP request.
|
146
|
+
#
|
147
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
148
|
+
#
|
149
|
+
def get_with_http_info(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
|
150
|
+
get_async(resource_group_name, integration_account_name, partner_name, custom_headers).value!
|
151
|
+
end
|
152
|
+
|
153
|
+
#
|
154
|
+
# Gets an integration account partner.
|
155
|
+
#
|
156
|
+
# @param resource_group_name [String] The resource group name.
|
157
|
+
# @param integration_account_name [String] The integration account name.
|
158
|
+
# @param partner_name [String] The integration account partner name.
|
159
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
160
|
+
# to the HTTP request.
|
161
|
+
#
|
162
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
163
|
+
#
|
164
|
+
def get_async(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
|
165
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
166
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
167
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
168
|
+
fail ArgumentError, 'partner_name is nil' if partner_name.nil?
|
169
|
+
api_version = '2015-08-01-preview'
|
170
|
+
|
171
|
+
|
172
|
+
request_headers = {}
|
173
|
+
|
174
|
+
# Set Headers
|
175
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
176
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
177
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}'
|
178
|
+
|
179
|
+
request_url = @base_url || @client.base_url
|
180
|
+
|
181
|
+
options = {
|
182
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
183
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'partnerName' => partner_name},
|
184
|
+
query_params: {'api-version' => api_version},
|
185
|
+
headers: request_headers.merge(custom_headers || {}),
|
186
|
+
base_url: request_url
|
187
|
+
}
|
188
|
+
promise = @client.make_request_async(:get, path_template, options)
|
189
|
+
|
190
|
+
promise = promise.then do |result|
|
191
|
+
http_response = result.response
|
192
|
+
status_code = http_response.status
|
193
|
+
response_content = http_response.body
|
194
|
+
unless status_code == 200
|
195
|
+
error_model = JSON.load(response_content)
|
196
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
197
|
+
end
|
198
|
+
|
199
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
200
|
+
# Deserialize Response
|
201
|
+
if status_code == 200
|
202
|
+
begin
|
203
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
204
|
+
result_mapper = IntegrationAccountPartner.mapper()
|
205
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
206
|
+
rescue Exception => e
|
207
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
result
|
212
|
+
end
|
213
|
+
|
214
|
+
promise.execute
|
215
|
+
end
|
216
|
+
|
217
|
+
#
|
218
|
+
# Creates or updates an integration account partner.
|
219
|
+
#
|
220
|
+
# @param resource_group_name [String] The resource group name.
|
221
|
+
# @param integration_account_name [String] The integration account name.
|
222
|
+
# @param partner_name [String] The integration account partner name.
|
223
|
+
# @param partner [IntegrationAccountPartner] The integration account partner.
|
224
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
225
|
+
# will be added to the HTTP request.
|
226
|
+
#
|
227
|
+
# @return [IntegrationAccountPartner] operation results.
|
228
|
+
#
|
229
|
+
def create_or_update(resource_group_name, integration_account_name, partner_name, partner, custom_headers = nil)
|
230
|
+
response = create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers).value!
|
231
|
+
response.body unless response.nil?
|
232
|
+
end
|
233
|
+
|
234
|
+
#
|
235
|
+
# Creates or updates an integration account partner.
|
236
|
+
#
|
237
|
+
# @param resource_group_name [String] The resource group name.
|
238
|
+
# @param integration_account_name [String] The integration account name.
|
239
|
+
# @param partner_name [String] The integration account partner name.
|
240
|
+
# @param partner [IntegrationAccountPartner] The integration account partner.
|
241
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
242
|
+
# will be added to the HTTP request.
|
243
|
+
#
|
244
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
245
|
+
#
|
246
|
+
def create_or_update_with_http_info(resource_group_name, integration_account_name, partner_name, partner, custom_headers = nil)
|
247
|
+
create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers).value!
|
248
|
+
end
|
249
|
+
|
250
|
+
#
|
251
|
+
# Creates or updates an integration account partner.
|
252
|
+
#
|
253
|
+
# @param resource_group_name [String] The resource group name.
|
254
|
+
# @param integration_account_name [String] The integration account name.
|
255
|
+
# @param partner_name [String] The integration account partner name.
|
256
|
+
# @param partner [IntegrationAccountPartner] The integration account partner.
|
257
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
258
|
+
# to the HTTP request.
|
259
|
+
#
|
260
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
261
|
+
#
|
262
|
+
def create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers = nil)
|
263
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
264
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
265
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
266
|
+
fail ArgumentError, 'partner_name is nil' if partner_name.nil?
|
267
|
+
api_version = '2015-08-01-preview'
|
268
|
+
fail ArgumentError, 'partner is nil' if partner.nil?
|
269
|
+
|
270
|
+
|
271
|
+
request_headers = {}
|
272
|
+
|
273
|
+
# Set Headers
|
274
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
275
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
276
|
+
|
277
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
278
|
+
|
279
|
+
# Serialize Request
|
280
|
+
request_mapper = IntegrationAccountPartner.mapper()
|
281
|
+
request_content = @client.serialize(request_mapper, partner, 'partner')
|
282
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
283
|
+
|
284
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}'
|
285
|
+
|
286
|
+
request_url = @base_url || @client.base_url
|
287
|
+
|
288
|
+
options = {
|
289
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
290
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'partnerName' => partner_name},
|
291
|
+
query_params: {'api-version' => api_version},
|
292
|
+
body: request_content,
|
293
|
+
headers: request_headers.merge(custom_headers || {}),
|
294
|
+
base_url: request_url
|
295
|
+
}
|
296
|
+
promise = @client.make_request_async(:put, path_template, options)
|
297
|
+
|
298
|
+
promise = promise.then do |result|
|
299
|
+
http_response = result.response
|
300
|
+
status_code = http_response.status
|
301
|
+
response_content = http_response.body
|
302
|
+
unless status_code == 200 || status_code == 201
|
303
|
+
error_model = JSON.load(response_content)
|
304
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
305
|
+
end
|
306
|
+
|
307
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
308
|
+
# Deserialize Response
|
309
|
+
if status_code == 200
|
310
|
+
begin
|
311
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
312
|
+
result_mapper = IntegrationAccountPartner.mapper()
|
313
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
314
|
+
rescue Exception => e
|
315
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
316
|
+
end
|
317
|
+
end
|
318
|
+
# Deserialize Response
|
319
|
+
if status_code == 201
|
320
|
+
begin
|
321
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
322
|
+
result_mapper = IntegrationAccountPartner.mapper()
|
323
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
324
|
+
rescue Exception => e
|
325
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
329
|
+
result
|
330
|
+
end
|
331
|
+
|
332
|
+
promise.execute
|
333
|
+
end
|
334
|
+
|
335
|
+
#
|
336
|
+
# Deletes an integration account partner.
|
337
|
+
#
|
338
|
+
# @param resource_group_name [String] The resource group name.
|
339
|
+
# @param integration_account_name [String] The integration account name.
|
340
|
+
# @param partner_name [String] The integration account partner name.
|
341
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
342
|
+
# will be added to the HTTP request.
|
343
|
+
#
|
344
|
+
#
|
345
|
+
def delete(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
|
346
|
+
response = delete_async(resource_group_name, integration_account_name, partner_name, custom_headers).value!
|
347
|
+
nil
|
348
|
+
end
|
349
|
+
|
350
|
+
#
|
351
|
+
# Deletes an integration account partner.
|
352
|
+
#
|
353
|
+
# @param resource_group_name [String] The resource group name.
|
354
|
+
# @param integration_account_name [String] The integration account name.
|
355
|
+
# @param partner_name [String] The integration account partner name.
|
356
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
357
|
+
# will be added to the HTTP request.
|
358
|
+
#
|
359
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
360
|
+
#
|
361
|
+
def delete_with_http_info(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
|
362
|
+
delete_async(resource_group_name, integration_account_name, partner_name, custom_headers).value!
|
363
|
+
end
|
364
|
+
|
365
|
+
#
|
366
|
+
# Deletes an integration account partner.
|
367
|
+
#
|
368
|
+
# @param resource_group_name [String] The resource group name.
|
369
|
+
# @param integration_account_name [String] The integration account name.
|
370
|
+
# @param partner_name [String] The integration account partner name.
|
371
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
372
|
+
# to the HTTP request.
|
373
|
+
#
|
374
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
375
|
+
#
|
376
|
+
def delete_async(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
|
377
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
378
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
379
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
380
|
+
fail ArgumentError, 'partner_name is nil' if partner_name.nil?
|
381
|
+
api_version = '2015-08-01-preview'
|
382
|
+
|
383
|
+
|
384
|
+
request_headers = {}
|
385
|
+
|
386
|
+
# Set Headers
|
387
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
388
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
389
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}'
|
390
|
+
|
391
|
+
request_url = @base_url || @client.base_url
|
392
|
+
|
393
|
+
options = {
|
394
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
395
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'partnerName' => partner_name},
|
396
|
+
query_params: {'api-version' => api_version},
|
397
|
+
headers: request_headers.merge(custom_headers || {}),
|
398
|
+
base_url: request_url
|
399
|
+
}
|
400
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
401
|
+
|
402
|
+
promise = promise.then do |result|
|
403
|
+
http_response = result.response
|
404
|
+
status_code = http_response.status
|
405
|
+
response_content = http_response.body
|
406
|
+
unless status_code == 200 || status_code == 204
|
407
|
+
error_model = JSON.load(response_content)
|
408
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
409
|
+
end
|
410
|
+
|
411
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
412
|
+
|
413
|
+
result
|
414
|
+
end
|
415
|
+
|
416
|
+
promise.execute
|
417
|
+
end
|
418
|
+
|
419
|
+
#
|
420
|
+
# Gets a list of integration account partners.
|
421
|
+
#
|
422
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
423
|
+
# to List operation.
|
424
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
425
|
+
# will be added to the HTTP request.
|
426
|
+
#
|
427
|
+
# @return [IntegrationAccountPartnerListResult] operation results.
|
428
|
+
#
|
429
|
+
def list_next(next_page_link, custom_headers = nil)
|
430
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
431
|
+
response.body unless response.nil?
|
432
|
+
end
|
433
|
+
|
434
|
+
#
|
435
|
+
# Gets a list of integration account partners.
|
436
|
+
#
|
437
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
438
|
+
# to List operation.
|
439
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
440
|
+
# will be added to the HTTP request.
|
441
|
+
#
|
442
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
443
|
+
#
|
444
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
445
|
+
list_next_async(next_page_link, custom_headers).value!
|
446
|
+
end
|
447
|
+
|
448
|
+
#
|
449
|
+
# Gets a list of integration account partners.
|
450
|
+
#
|
451
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
452
|
+
# to List operation.
|
453
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
454
|
+
# to the HTTP request.
|
455
|
+
#
|
456
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
457
|
+
#
|
458
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
459
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
460
|
+
|
461
|
+
|
462
|
+
request_headers = {}
|
463
|
+
|
464
|
+
# Set Headers
|
465
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
466
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
467
|
+
path_template = '{nextLink}'
|
468
|
+
|
469
|
+
request_url = @base_url || @client.base_url
|
470
|
+
|
471
|
+
options = {
|
472
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
473
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
474
|
+
headers: request_headers.merge(custom_headers || {}),
|
475
|
+
base_url: request_url
|
476
|
+
}
|
477
|
+
promise = @client.make_request_async(:get, path_template, options)
|
478
|
+
|
479
|
+
promise = promise.then do |result|
|
480
|
+
http_response = result.response
|
481
|
+
status_code = http_response.status
|
482
|
+
response_content = http_response.body
|
483
|
+
unless status_code == 200
|
484
|
+
error_model = JSON.load(response_content)
|
485
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
486
|
+
end
|
487
|
+
|
488
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
489
|
+
# Deserialize Response
|
490
|
+
if status_code == 200
|
491
|
+
begin
|
492
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
493
|
+
result_mapper = IntegrationAccountPartnerListResult.mapper()
|
494
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
495
|
+
rescue Exception => e
|
496
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
497
|
+
end
|
498
|
+
end
|
499
|
+
|
500
|
+
result
|
501
|
+
end
|
502
|
+
|
503
|
+
promise.execute
|
504
|
+
end
|
505
|
+
|
506
|
+
#
|
507
|
+
# Gets a list of integration account partners.
|
508
|
+
#
|
509
|
+
# @param resource_group_name [String] The resource group name.
|
510
|
+
# @param integration_account_name [String] The integration account name.
|
511
|
+
# @param top [Integer] The number of items to be included in the result.
|
512
|
+
# @param filter [String] The filter to apply on the operation.
|
513
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
514
|
+
# will be added to the HTTP request.
|
515
|
+
#
|
516
|
+
# @return [IntegrationAccountPartnerListResult] which provide lazy access to
|
517
|
+
# pages of the response.
|
518
|
+
#
|
519
|
+
def list_as_lazy(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
|
520
|
+
response = list_async(resource_group_name, integration_account_name, top, filter, custom_headers).value!
|
521
|
+
unless response.nil?
|
522
|
+
page = response.body
|
523
|
+
page.next_method = Proc.new do |next_page_link|
|
524
|
+
list_next_async(next_page_link, custom_headers)
|
525
|
+
end
|
526
|
+
page
|
527
|
+
end
|
528
|
+
end
|
529
|
+
|
530
|
+
end
|
531
|
+
end
|