azure_mgmt_logic 0.4.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 +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_logic.gemspec +34 -0
- data/lib/azure_mgmt_logic.rb +5 -0
- data/lib/generated/azure_mgmt_logic/integration_account_agreements.rb +549 -0
- data/lib/generated/azure_mgmt_logic/integration_account_certificates.rb +545 -0
- data/lib/generated/azure_mgmt_logic/integration_account_maps.rb +546 -0
- data/lib/generated/azure_mgmt_logic/integration_account_partners.rb +546 -0
- data/lib/generated/azure_mgmt_logic/integration_account_schemas.rb +546 -0
- data/lib/generated/azure_mgmt_logic/integration_accounts.rb +939 -0
- data/lib/generated/azure_mgmt_logic/logic_management_client.rb +86 -0
- data/lib/generated/azure_mgmt_logic/models/agreement_content.rb +67 -0
- data/lib/generated/azure_mgmt_logic/models/agreement_type.rb +18 -0
- data/lib/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb +78 -0
- data/lib/generated/azure_mgmt_logic/models/as2agreement_content.rb +56 -0
- data/lib/generated/azure_mgmt_logic/models/as2envelope_settings.rb +87 -0
- data/lib/generated/azure_mgmt_logic/models/as2error_settings.rb +56 -0
- data/lib/generated/azure_mgmt_logic/models/as2mdn_settings.rb +132 -0
- data/lib/generated/azure_mgmt_logic/models/as2message_connection_settings.rb +78 -0
- data/lib/generated/azure_mgmt_logic/models/as2one_way_agreement.rb +67 -0
- data/lib/generated/azure_mgmt_logic/models/as2protocol_settings.rb +112 -0
- data/lib/generated/azure_mgmt_logic/models/as2security_settings.rb +131 -0
- data/lib/generated/azure_mgmt_logic/models/as2validation_settings.rb +135 -0
- data/lib/generated/azure_mgmt_logic/models/b2bpartner_content.rb +53 -0
- data/lib/generated/azure_mgmt_logic/models/business_identity.rb +54 -0
- data/lib/generated/azure_mgmt_logic/models/callback_url.rb +44 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb +151 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_agreement_content.rb +56 -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 +159 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_envelope_override.rb +188 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_envelope_settings.rb +452 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_framing_settings.rb +153 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_message_filter.rb +46 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_message_identifier.rb +45 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb +67 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_processing_settings.rb +88 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_protocol_settings.rb +195 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_schema_reference.rb +104 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_validation_override.rb +111 -0
- data/lib/generated/azure_mgmt_logic/models/edifact_validation_settings.rb +145 -0
- data/lib/generated/azure_mgmt_logic/models/encryption_algorithm.rb +21 -0
- data/lib/generated/azure_mgmt_logic/models/hashing_algorithm.rb +19 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account.rb +97 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_agreement.rb +173 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_agreement_filter.rb +47 -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 +129 -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 +54 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_content_link.rb +85 -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 +152 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_map_filter.rb +46 -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 +131 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_partner_filter.rb +46 -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 +91 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_schema.rb +162 -0
- data/lib/generated/azure_mgmt_logic/models/integration_account_schema_filter.rb +46 -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 +46 -0
- data/lib/generated/azure_mgmt_logic/models/key_vault_key_reference.rb +65 -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 +44 -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/partner_content.rb +45 -0
- data/lib/generated/azure_mgmt_logic/models/partner_type.rb +16 -0
- 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_name.rb +20 -0
- 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/x12acknowledgement_settings.rb +193 -0
- data/lib/generated/azure_mgmt_logic/models/x12agreement_content.rb +56 -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 +128 -0
- data/lib/generated/azure_mgmt_logic/models/x12envelope_override.rb +141 -0
- data/lib/generated/azure_mgmt_logic/models/x12envelope_settings.rb +286 -0
- data/lib/generated/azure_mgmt_logic/models/x12framing_settings.rb +109 -0
- data/lib/generated/azure_mgmt_logic/models/x12message_filter.rb +46 -0
- data/lib/generated/azure_mgmt_logic/models/x12message_identifier.rb +44 -0
- data/lib/generated/azure_mgmt_logic/models/x12one_way_agreement.rb +67 -0
- data/lib/generated/azure_mgmt_logic/models/x12processing_settings.rb +99 -0
- data/lib/generated/azure_mgmt_logic/models/x12protocol_settings.rb +204 -0
- data/lib/generated/azure_mgmt_logic/models/x12schema_reference.rb +74 -0
- data/lib/generated/azure_mgmt_logic/models/x12security_settings.rb +74 -0
- data/lib/generated/azure_mgmt_logic/models/x12time_format.rb +19 -0
- data/lib/generated/azure_mgmt_logic/models/x12validation_override.rb +111 -0
- data/lib/generated/azure_mgmt_logic/models/x12validation_settings.rb +145 -0
- data/lib/generated/azure_mgmt_logic/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_logic/version.rb +8 -0
- data/lib/generated/azure_mgmt_logic.rb +116 -0
- metadata +212 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 9ec7a74058685bd07c1cd7c1f12061629b79b644
|
|
4
|
+
data.tar.gz: 9744519ae1f1cece5aa451fe7a574e263a540912
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 28f131af97f6e03ed55199daefbaeedb2d6946a98aaa01ae5c013ba7d09724f4b1b98c289b76d13118f4e63914daec901fe9831cabf42a79137d11160927b176
|
|
7
|
+
data.tar.gz: d01f26b97e68a071158cd13e4879da647e9a0865087a17812a20688910ec9fd03029dddff17898c61c87701044f1af0fadfa97f3abd44b3d4ed88488fb2b4afc
|
data/.rspec
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015 Microsoft Corporation
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
|
|
5
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
6
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
7
|
+
|
|
8
|
+
require 'generated/azure_mgmt_logic/module_definition'
|
|
9
|
+
require 'generated/azure_mgmt_logic/version'
|
|
10
|
+
|
|
11
|
+
Gem::Specification.new do |spec|
|
|
12
|
+
spec.name = 'azure_mgmt_logic'
|
|
13
|
+
spec.version = Azure::ARM::Logic::VERSION
|
|
14
|
+
spec.authors = 'Microsoft Corporation'
|
|
15
|
+
spec.email = 'azrubyteam@microsoft.com'
|
|
16
|
+
spec.description = 'Microsoft Azure Logic Management Client Library for Ruby'
|
|
17
|
+
spec.summary = 'Official Ruby client library to consume Microsoft Azure Logic Management services.'
|
|
18
|
+
spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
|
|
19
|
+
spec.license = 'MIT'
|
|
20
|
+
|
|
21
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
22
|
+
spec.bindir = 'bin'
|
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
24
|
+
spec.require_paths = ['lib']
|
|
25
|
+
|
|
26
|
+
spec.required_ruby_version = '>= 1.9.3'
|
|
27
|
+
|
|
28
|
+
spec.add_development_dependency 'bundler', '~> 1.9'
|
|
29
|
+
spec.add_development_dependency 'rake', '~> 10'
|
|
30
|
+
spec.add_development_dependency 'rspec', '~> 3'
|
|
31
|
+
spec.add_development_dependency 'dotenv', '~> 2'
|
|
32
|
+
|
|
33
|
+
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.3.0'
|
|
34
|
+
end
|
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.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
|
+
# IntegrationAccountAgreements
|
|
9
|
+
#
|
|
10
|
+
class IntegrationAccountAgreements
|
|
11
|
+
include Azure::ARM::Logic::Models
|
|
12
|
+
include MsRestAzure
|
|
13
|
+
|
|
14
|
+
#
|
|
15
|
+
# Creates and initializes a new instance of the IntegrationAccountAgreements class.
|
|
16
|
+
# @param client service class for accessing basic functionality.
|
|
17
|
+
#
|
|
18
|
+
def initialize(client)
|
|
19
|
+
@client = client
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# @return reference to the LogicManagementClient
|
|
23
|
+
attr_reader :client
|
|
24
|
+
|
|
25
|
+
#
|
|
26
|
+
# Gets a list of integration account agreements.
|
|
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 [IntegrationAccountAgreementListResult] which provide lazy access to
|
|
36
|
+
# pages of the response.
|
|
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!
|
|
40
|
+
unless response.nil?
|
|
41
|
+
page = response.body
|
|
42
|
+
page.next_method = Proc.new do |next_link|
|
|
43
|
+
list_next_async(next_link, custom_headers)
|
|
44
|
+
end
|
|
45
|
+
page
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
#
|
|
50
|
+
# Gets a list of integration account agreements.
|
|
51
|
+
#
|
|
52
|
+
# @param resource_group_name [String] The resource group name.
|
|
53
|
+
# @param integration_account_name [String] The integration account name.
|
|
54
|
+
# @param top [Integer] The number of items to be included in the result.
|
|
55
|
+
# @param filter [String] The filter to apply on the operation.
|
|
56
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
57
|
+
# will be added to the HTTP request.
|
|
58
|
+
#
|
|
59
|
+
# @return [Array<IntegrationAccountAgreement>] operation results.
|
|
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)
|
|
63
|
+
first_page.get_all_items
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
#
|
|
67
|
+
# Gets a list of integration account agreements.
|
|
68
|
+
#
|
|
69
|
+
# @param resource_group_name [String] The resource group name.
|
|
70
|
+
# @param integration_account_name [String] The integration account name.
|
|
71
|
+
# @param top [Integer] The number of items to be included in the result.
|
|
72
|
+
# @param filter [String] The filter to apply on the operation.
|
|
73
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
74
|
+
# will be added to the HTTP request.
|
|
75
|
+
#
|
|
76
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
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!
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
#
|
|
83
|
+
# Gets a list of integration account agreements.
|
|
84
|
+
#
|
|
85
|
+
# @param resource_group_name [String] The resource group name.
|
|
86
|
+
# @param integration_account_name [String] The integration account name.
|
|
87
|
+
# @param top [Integer] The number of items to be included in the result.
|
|
88
|
+
# @param filter [String] The filter to apply on the operation.
|
|
89
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
90
|
+
# to the HTTP request.
|
|
91
|
+
#
|
|
92
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
93
|
+
#
|
|
94
|
+
def list_async(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
|
|
95
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
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?
|
|
98
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
request_headers = {}
|
|
102
|
+
|
|
103
|
+
# Set Headers
|
|
104
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
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}/agreements'
|
|
107
|
+
options = {
|
|
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},
|
|
110
|
+
query_params: {'api-version' => @client.api_version,'$top' => top,'$filter' => filter},
|
|
111
|
+
headers: request_headers.merge(custom_headers || {})
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
request_url = @base_url || @client.base_url
|
|
115
|
+
|
|
116
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
|
117
|
+
promise = request.run_promise do |req|
|
|
118
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
promise = promise.then do |http_response|
|
|
122
|
+
status_code = http_response.status
|
|
123
|
+
response_content = http_response.body
|
|
124
|
+
unless status_code == 200
|
|
125
|
+
error_model = JSON.load(response_content)
|
|
126
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Create Result
|
|
130
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
|
131
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
132
|
+
# Deserialize Response
|
|
133
|
+
if status_code == 200
|
|
134
|
+
begin
|
|
135
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
136
|
+
result_mapper = IntegrationAccountAgreementListResult.mapper()
|
|
137
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
138
|
+
rescue Exception => e
|
|
139
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
result
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
promise.execute
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
#
|
|
150
|
+
# Gets an integration account agreement.
|
|
151
|
+
#
|
|
152
|
+
# @param resource_group_name [String] The resource group name.
|
|
153
|
+
# @param integration_account_name [String] The integration account name.
|
|
154
|
+
# @param agreement_name [String] The integration account agreement name.
|
|
155
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
156
|
+
# will be added to the HTTP request.
|
|
157
|
+
#
|
|
158
|
+
# @return [IntegrationAccountAgreement] operation results.
|
|
159
|
+
#
|
|
160
|
+
def get(resource_group_name, integration_account_name, agreement_name, custom_headers = nil)
|
|
161
|
+
response = get_async(resource_group_name, integration_account_name, agreement_name, custom_headers).value!
|
|
162
|
+
response.body unless response.nil?
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
#
|
|
166
|
+
# Gets an integration account agreement.
|
|
167
|
+
#
|
|
168
|
+
# @param resource_group_name [String] The resource group name.
|
|
169
|
+
# @param integration_account_name [String] The integration account name.
|
|
170
|
+
# @param agreement_name [String] The integration account agreement name.
|
|
171
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
172
|
+
# will be added to the HTTP request.
|
|
173
|
+
#
|
|
174
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
175
|
+
#
|
|
176
|
+
def get_with_http_info(resource_group_name, integration_account_name, agreement_name, custom_headers = nil)
|
|
177
|
+
get_async(resource_group_name, integration_account_name, agreement_name, custom_headers).value!
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
#
|
|
181
|
+
# Gets an integration account agreement.
|
|
182
|
+
#
|
|
183
|
+
# @param resource_group_name [String] The resource group name.
|
|
184
|
+
# @param integration_account_name [String] The integration account name.
|
|
185
|
+
# @param agreement_name [String] The integration account agreement name.
|
|
186
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
187
|
+
# to the HTTP request.
|
|
188
|
+
#
|
|
189
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
190
|
+
#
|
|
191
|
+
def get_async(resource_group_name, integration_account_name, agreement_name, custom_headers = nil)
|
|
192
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
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, 'agreement_name is nil' if agreement_name.nil?
|
|
196
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
request_headers = {}
|
|
200
|
+
|
|
201
|
+
# Set Headers
|
|
202
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
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}/agreements/{agreementName}'
|
|
205
|
+
options = {
|
|
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,'agreementName' => agreement_name},
|
|
208
|
+
query_params: {'api-version' => @client.api_version},
|
|
209
|
+
headers: request_headers.merge(custom_headers || {})
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
request_url = @base_url || @client.base_url
|
|
213
|
+
|
|
214
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
|
215
|
+
promise = request.run_promise do |req|
|
|
216
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
promise = promise.then do |http_response|
|
|
220
|
+
status_code = http_response.status
|
|
221
|
+
response_content = http_response.body
|
|
222
|
+
unless status_code == 200
|
|
223
|
+
error_model = JSON.load(response_content)
|
|
224
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Create Result
|
|
228
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
|
229
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
230
|
+
# Deserialize Response
|
|
231
|
+
if status_code == 200
|
|
232
|
+
begin
|
|
233
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
234
|
+
result_mapper = IntegrationAccountAgreement.mapper()
|
|
235
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
236
|
+
rescue Exception => e
|
|
237
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
result
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
promise.execute
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
#
|
|
248
|
+
# Creates or updates an integration account agreement.
|
|
249
|
+
#
|
|
250
|
+
# @param resource_group_name [String] The resource group name.
|
|
251
|
+
# @param integration_account_name [String] The integration account name.
|
|
252
|
+
# @param agreement_name [String] The integration account agreement name.
|
|
253
|
+
# @param agreement [IntegrationAccountAgreement] The integration account
|
|
254
|
+
# agreement.
|
|
255
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
256
|
+
# will be added to the HTTP request.
|
|
257
|
+
#
|
|
258
|
+
# @return [IntegrationAccountAgreement] operation results.
|
|
259
|
+
#
|
|
260
|
+
def create_or_update(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers = nil)
|
|
261
|
+
response = create_or_update_async(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers).value!
|
|
262
|
+
response.body unless response.nil?
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
#
|
|
266
|
+
# Creates or updates an integration account agreement.
|
|
267
|
+
#
|
|
268
|
+
# @param resource_group_name [String] The resource group name.
|
|
269
|
+
# @param integration_account_name [String] The integration account name.
|
|
270
|
+
# @param agreement_name [String] The integration account agreement name.
|
|
271
|
+
# @param agreement [IntegrationAccountAgreement] The integration account
|
|
272
|
+
# agreement.
|
|
273
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
274
|
+
# will be added to the HTTP request.
|
|
275
|
+
#
|
|
276
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
277
|
+
#
|
|
278
|
+
def create_or_update_with_http_info(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers = nil)
|
|
279
|
+
create_or_update_async(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers).value!
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
#
|
|
283
|
+
# Creates or updates an integration account agreement.
|
|
284
|
+
#
|
|
285
|
+
# @param resource_group_name [String] The resource group name.
|
|
286
|
+
# @param integration_account_name [String] The integration account name.
|
|
287
|
+
# @param agreement_name [String] The integration account agreement name.
|
|
288
|
+
# @param agreement [IntegrationAccountAgreement] The integration account
|
|
289
|
+
# agreement.
|
|
290
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
291
|
+
# to the HTTP request.
|
|
292
|
+
#
|
|
293
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
294
|
+
#
|
|
295
|
+
def create_or_update_async(resource_group_name, integration_account_name, agreement_name, agreement, custom_headers = nil)
|
|
296
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
297
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
298
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
|
299
|
+
fail ArgumentError, 'agreement_name is nil' if agreement_name.nil?
|
|
300
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
301
|
+
fail ArgumentError, 'agreement is nil' if agreement.nil?
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
request_headers = {}
|
|
305
|
+
|
|
306
|
+
# Set Headers
|
|
307
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
308
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
309
|
+
|
|
310
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
311
|
+
|
|
312
|
+
# Serialize Request
|
|
313
|
+
request_mapper = IntegrationAccountAgreement.mapper()
|
|
314
|
+
request_content = @client.serialize(request_mapper, agreement, 'agreement')
|
|
315
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
|
316
|
+
|
|
317
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}'
|
|
318
|
+
options = {
|
|
319
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
320
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'agreementName' => agreement_name},
|
|
321
|
+
query_params: {'api-version' => @client.api_version},
|
|
322
|
+
body: request_content,
|
|
323
|
+
headers: request_headers.merge(custom_headers || {})
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
request_url = @base_url || @client.base_url
|
|
327
|
+
|
|
328
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
|
329
|
+
promise = request.run_promise do |req|
|
|
330
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
promise = promise.then do |http_response|
|
|
334
|
+
status_code = http_response.status
|
|
335
|
+
response_content = http_response.body
|
|
336
|
+
unless status_code == 200 || status_code == 201
|
|
337
|
+
error_model = JSON.load(response_content)
|
|
338
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
# Create Result
|
|
342
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
|
343
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
344
|
+
# Deserialize Response
|
|
345
|
+
if status_code == 200
|
|
346
|
+
begin
|
|
347
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
348
|
+
result_mapper = IntegrationAccountAgreement.mapper()
|
|
349
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
350
|
+
rescue Exception => e
|
|
351
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
352
|
+
end
|
|
353
|
+
end
|
|
354
|
+
# Deserialize Response
|
|
355
|
+
if status_code == 201
|
|
356
|
+
begin
|
|
357
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
358
|
+
result_mapper = IntegrationAccountAgreement.mapper()
|
|
359
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
360
|
+
rescue Exception => e
|
|
361
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
result
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
promise.execute
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
#
|
|
372
|
+
# Deletes an integration account agreement.
|
|
373
|
+
#
|
|
374
|
+
# @param resource_group_name [String] The resource group name.
|
|
375
|
+
# @param integration_account_name [String] The integration account name.
|
|
376
|
+
# @param agreement_name [String] The integration account agreement name.
|
|
377
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
378
|
+
# will be added to the HTTP request.
|
|
379
|
+
#
|
|
380
|
+
#
|
|
381
|
+
def delete(resource_group_name, integration_account_name, agreement_name, custom_headers = nil)
|
|
382
|
+
response = delete_async(resource_group_name, integration_account_name, agreement_name, custom_headers).value!
|
|
383
|
+
nil
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
#
|
|
387
|
+
# Deletes an integration account agreement.
|
|
388
|
+
#
|
|
389
|
+
# @param resource_group_name [String] The resource group name.
|
|
390
|
+
# @param integration_account_name [String] The integration account name.
|
|
391
|
+
# @param agreement_name [String] The integration account agreement name.
|
|
392
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
393
|
+
# will be added to the HTTP request.
|
|
394
|
+
#
|
|
395
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
396
|
+
#
|
|
397
|
+
def delete_with_http_info(resource_group_name, integration_account_name, agreement_name, custom_headers = nil)
|
|
398
|
+
delete_async(resource_group_name, integration_account_name, agreement_name, custom_headers).value!
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
#
|
|
402
|
+
# Deletes an integration account agreement.
|
|
403
|
+
#
|
|
404
|
+
# @param resource_group_name [String] The resource group name.
|
|
405
|
+
# @param integration_account_name [String] The integration account name.
|
|
406
|
+
# @param agreement_name [String] The integration account agreement name.
|
|
407
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
408
|
+
# to the HTTP request.
|
|
409
|
+
#
|
|
410
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
411
|
+
#
|
|
412
|
+
def delete_async(resource_group_name, integration_account_name, agreement_name, custom_headers = nil)
|
|
413
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
414
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
415
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
|
416
|
+
fail ArgumentError, 'agreement_name is nil' if agreement_name.nil?
|
|
417
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
request_headers = {}
|
|
421
|
+
|
|
422
|
+
# Set Headers
|
|
423
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
424
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
425
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements/{agreementName}'
|
|
426
|
+
options = {
|
|
427
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
428
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'agreementName' => agreement_name},
|
|
429
|
+
query_params: {'api-version' => @client.api_version},
|
|
430
|
+
headers: request_headers.merge(custom_headers || {})
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
request_url = @base_url || @client.base_url
|
|
434
|
+
|
|
435
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
|
436
|
+
promise = request.run_promise do |req|
|
|
437
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
promise = promise.then do |http_response|
|
|
441
|
+
status_code = http_response.status
|
|
442
|
+
response_content = http_response.body
|
|
443
|
+
unless status_code == 200 || status_code == 204
|
|
444
|
+
error_model = JSON.load(response_content)
|
|
445
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
# Create Result
|
|
449
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
|
450
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
451
|
+
|
|
452
|
+
result
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
promise.execute
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
#
|
|
459
|
+
# Gets a list of integration account agreements.
|
|
460
|
+
#
|
|
461
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
|
462
|
+
# call to List operation.
|
|
463
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
464
|
+
# will be added to the HTTP request.
|
|
465
|
+
#
|
|
466
|
+
# @return [IntegrationAccountAgreementListResult] operation results.
|
|
467
|
+
#
|
|
468
|
+
def list_next(next_page_link, custom_headers = nil)
|
|
469
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
|
470
|
+
response.body unless response.nil?
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
#
|
|
474
|
+
# Gets a list of integration account agreements.
|
|
475
|
+
#
|
|
476
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
|
477
|
+
# call to List operation.
|
|
478
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
479
|
+
# will be added to the HTTP request.
|
|
480
|
+
#
|
|
481
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
482
|
+
#
|
|
483
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
|
484
|
+
list_next_async(next_page_link, custom_headers).value!
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
#
|
|
488
|
+
# Gets a list of integration account agreements.
|
|
489
|
+
#
|
|
490
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
|
491
|
+
# call to List operation.
|
|
492
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
493
|
+
# to the HTTP request.
|
|
494
|
+
#
|
|
495
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
496
|
+
#
|
|
497
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
|
498
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
request_headers = {}
|
|
502
|
+
|
|
503
|
+
# Set Headers
|
|
504
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
505
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
506
|
+
path_template = '{nextLink}'
|
|
507
|
+
options = {
|
|
508
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
509
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
510
|
+
headers: request_headers.merge(custom_headers || {})
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
request_url = @base_url || @client.base_url
|
|
514
|
+
|
|
515
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
|
516
|
+
promise = request.run_promise do |req|
|
|
517
|
+
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
promise = promise.then do |http_response|
|
|
521
|
+
status_code = http_response.status
|
|
522
|
+
response_content = http_response.body
|
|
523
|
+
unless status_code == 200
|
|
524
|
+
error_model = JSON.load(response_content)
|
|
525
|
+
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
# Create Result
|
|
529
|
+
result = MsRestAzure::AzureOperationResponse.new(request, http_response)
|
|
530
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
531
|
+
# Deserialize Response
|
|
532
|
+
if status_code == 200
|
|
533
|
+
begin
|
|
534
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
535
|
+
result_mapper = IntegrationAccountAgreementListResult.mapper()
|
|
536
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
537
|
+
rescue Exception => e
|
|
538
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
539
|
+
end
|
|
540
|
+
end
|
|
541
|
+
|
|
542
|
+
result
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
promise.execute
|
|
546
|
+
end
|
|
547
|
+
|
|
548
|
+
end
|
|
549
|
+
end
|