azure_mgmt_logic 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,530 @@
|
|
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 IntegrationAccountCertificates
|
11
|
+
include Azure::ARM::Logic::Models
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the IntegrationAccountCertificates 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 certificates.
|
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 custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [Array<IntegrationAccountCertificate>] operation results.
|
35
|
+
#
|
36
|
+
def list(resource_group_name, integration_account_name, top = nil, custom_headers = nil)
|
37
|
+
first_page = list_as_lazy(resource_group_name, integration_account_name, top, custom_headers)
|
38
|
+
first_page.get_all_items
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets a list of integration account certificates.
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The resource group name.
|
45
|
+
# @param integration_account_name [String] The integration account name.
|
46
|
+
# @param top [Integer] The number of items to be included in the result.
|
47
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
48
|
+
# will be added to the HTTP request.
|
49
|
+
#
|
50
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
51
|
+
#
|
52
|
+
def list_with_http_info(resource_group_name, integration_account_name, top = nil, custom_headers = nil)
|
53
|
+
list_async(resource_group_name, integration_account_name, top, custom_headers).value!
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Gets a list of integration account certificates.
|
58
|
+
#
|
59
|
+
# @param resource_group_name [String] The resource group name.
|
60
|
+
# @param integration_account_name [String] The integration account name.
|
61
|
+
# @param top [Integer] The number of items to be included in the result.
|
62
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
63
|
+
# to the HTTP request.
|
64
|
+
#
|
65
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
66
|
+
#
|
67
|
+
def list_async(resource_group_name, integration_account_name, top = nil, custom_headers = nil)
|
68
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
69
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
70
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
71
|
+
api_version = '2015-08-01-preview'
|
72
|
+
|
73
|
+
|
74
|
+
request_headers = {}
|
75
|
+
|
76
|
+
# Set Headers
|
77
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
78
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
79
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates'
|
80
|
+
|
81
|
+
request_url = @base_url || @client.base_url
|
82
|
+
|
83
|
+
options = {
|
84
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
85
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name},
|
86
|
+
query_params: {'api-version' => api_version,'$top' => top},
|
87
|
+
headers: request_headers.merge(custom_headers || {}),
|
88
|
+
base_url: request_url
|
89
|
+
}
|
90
|
+
promise = @client.make_request_async(:get, path_template, options)
|
91
|
+
|
92
|
+
promise = promise.then do |result|
|
93
|
+
http_response = result.response
|
94
|
+
status_code = http_response.status
|
95
|
+
response_content = http_response.body
|
96
|
+
unless status_code == 200
|
97
|
+
error_model = JSON.load(response_content)
|
98
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
99
|
+
end
|
100
|
+
|
101
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
102
|
+
# Deserialize Response
|
103
|
+
if status_code == 200
|
104
|
+
begin
|
105
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
106
|
+
result_mapper = IntegrationAccountCertificateListResult.mapper()
|
107
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
108
|
+
rescue Exception => e
|
109
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
result
|
114
|
+
end
|
115
|
+
|
116
|
+
promise.execute
|
117
|
+
end
|
118
|
+
|
119
|
+
#
|
120
|
+
# Gets an integration account certificate.
|
121
|
+
#
|
122
|
+
# @param resource_group_name [String] The resource group name.
|
123
|
+
# @param integration_account_name [String] The integration account name.
|
124
|
+
# @param certificate_name [String] The integration account certificate name.
|
125
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
126
|
+
# will be added to the HTTP request.
|
127
|
+
#
|
128
|
+
# @return [IntegrationAccountCertificate] operation results.
|
129
|
+
#
|
130
|
+
def get(resource_group_name, integration_account_name, certificate_name, custom_headers = nil)
|
131
|
+
response = get_async(resource_group_name, integration_account_name, certificate_name, custom_headers).value!
|
132
|
+
response.body unless response.nil?
|
133
|
+
end
|
134
|
+
|
135
|
+
#
|
136
|
+
# Gets an integration account certificate.
|
137
|
+
#
|
138
|
+
# @param resource_group_name [String] The resource group name.
|
139
|
+
# @param integration_account_name [String] The integration account name.
|
140
|
+
# @param certificate_name [String] The integration account certificate name.
|
141
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
142
|
+
# will be added to the HTTP request.
|
143
|
+
#
|
144
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
145
|
+
#
|
146
|
+
def get_with_http_info(resource_group_name, integration_account_name, certificate_name, custom_headers = nil)
|
147
|
+
get_async(resource_group_name, integration_account_name, certificate_name, custom_headers).value!
|
148
|
+
end
|
149
|
+
|
150
|
+
#
|
151
|
+
# Gets an integration account certificate.
|
152
|
+
#
|
153
|
+
# @param resource_group_name [String] The resource group name.
|
154
|
+
# @param integration_account_name [String] The integration account name.
|
155
|
+
# @param certificate_name [String] The integration account certificate name.
|
156
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
157
|
+
# to the HTTP request.
|
158
|
+
#
|
159
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
160
|
+
#
|
161
|
+
def get_async(resource_group_name, integration_account_name, certificate_name, custom_headers = nil)
|
162
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
163
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
164
|
+
fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
|
165
|
+
fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
|
166
|
+
api_version = '2015-08-01-preview'
|
167
|
+
|
168
|
+
|
169
|
+
request_headers = {}
|
170
|
+
|
171
|
+
# Set Headers
|
172
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
173
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
174
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates/{certificateName}'
|
175
|
+
|
176
|
+
request_url = @base_url || @client.base_url
|
177
|
+
|
178
|
+
options = {
|
179
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
180
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'certificateName' => certificate_name},
|
181
|
+
query_params: {'api-version' => api_version},
|
182
|
+
headers: request_headers.merge(custom_headers || {}),
|
183
|
+
base_url: request_url
|
184
|
+
}
|
185
|
+
promise = @client.make_request_async(:get, path_template, options)
|
186
|
+
|
187
|
+
promise = promise.then do |result|
|
188
|
+
http_response = result.response
|
189
|
+
status_code = http_response.status
|
190
|
+
response_content = http_response.body
|
191
|
+
unless status_code == 200
|
192
|
+
error_model = JSON.load(response_content)
|
193
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
194
|
+
end
|
195
|
+
|
196
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
197
|
+
# Deserialize Response
|
198
|
+
if status_code == 200
|
199
|
+
begin
|
200
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
201
|
+
result_mapper = IntegrationAccountCertificate.mapper()
|
202
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
203
|
+
rescue Exception => e
|
204
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
result
|
209
|
+
end
|
210
|
+
|
211
|
+
promise.execute
|
212
|
+
end
|
213
|
+
|
214
|
+
#
|
215
|
+
# Creates or updates an integration account certificate.
|
216
|
+
#
|
217
|
+
# @param resource_group_name [String] The resource group name.
|
218
|
+
# @param integration_account_name [String] The integration account name.
|
219
|
+
# @param certificate_name [String] The integration account certificate name.
|
220
|
+
# @param certificate [IntegrationAccountCertificate] The integration account
|
221
|
+
# certificate.
|
222
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
223
|
+
# will be added to the HTTP request.
|
224
|
+
#
|
225
|
+
# @return [IntegrationAccountCertificate] operation results.
|
226
|
+
#
|
227
|
+
def create_or_update(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers = nil)
|
228
|
+
response = create_or_update_async(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers).value!
|
229
|
+
response.body unless response.nil?
|
230
|
+
end
|
231
|
+
|
232
|
+
#
|
233
|
+
# Creates or updates an integration account certificate.
|
234
|
+
#
|
235
|
+
# @param resource_group_name [String] The resource group name.
|
236
|
+
# @param integration_account_name [String] The integration account name.
|
237
|
+
# @param certificate_name [String] The integration account certificate name.
|
238
|
+
# @param certificate [IntegrationAccountCertificate] The integration account
|
239
|
+
# certificate.
|
240
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
241
|
+
# will be added to the HTTP request.
|
242
|
+
#
|
243
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
244
|
+
#
|
245
|
+
def create_or_update_with_http_info(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers = nil)
|
246
|
+
create_or_update_async(resource_group_name, integration_account_name, certificate_name, certificate, custom_headers).value!
|
247
|
+
end
|
248
|
+
|
249
|
+
#
|
250
|
+
# Creates or updates an integration account certificate.
|
251
|
+
#
|
252
|
+
# @param resource_group_name [String] The resource group name.
|
253
|
+
# @param integration_account_name [String] The integration account name.
|
254
|
+
# @param certificate_name [String] The integration account certificate name.
|
255
|
+
# @param certificate [IntegrationAccountCertificate] The integration account
|
256
|
+
# certificate.
|
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, certificate_name, certificate, 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, 'certificate_name is nil' if certificate_name.nil?
|
267
|
+
api_version = '2015-08-01-preview'
|
268
|
+
fail ArgumentError, 'certificate is nil' if certificate.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 = IntegrationAccountCertificate.mapper()
|
281
|
+
request_content = @client.serialize(request_mapper, certificate, 'certificate')
|
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}/certificates/{certificateName}'
|
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,'certificateName' => certificate_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 = IntegrationAccountCertificate.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 = IntegrationAccountCertificate.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 certificate.
|
337
|
+
#
|
338
|
+
# @param resource_group_name [String] The resource group name.
|
339
|
+
# @param integration_account_name [String] The integration account name.
|
340
|
+
# @param certificate_name [String] The integration account certificate 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, certificate_name, custom_headers = nil)
|
346
|
+
response = delete_async(resource_group_name, integration_account_name, certificate_name, custom_headers).value!
|
347
|
+
nil
|
348
|
+
end
|
349
|
+
|
350
|
+
#
|
351
|
+
# Deletes an integration account certificate.
|
352
|
+
#
|
353
|
+
# @param resource_group_name [String] The resource group name.
|
354
|
+
# @param integration_account_name [String] The integration account name.
|
355
|
+
# @param certificate_name [String] The integration account certificate 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, certificate_name, custom_headers = nil)
|
362
|
+
delete_async(resource_group_name, integration_account_name, certificate_name, custom_headers).value!
|
363
|
+
end
|
364
|
+
|
365
|
+
#
|
366
|
+
# Deletes an integration account certificate.
|
367
|
+
#
|
368
|
+
# @param resource_group_name [String] The resource group name.
|
369
|
+
# @param integration_account_name [String] The integration account name.
|
370
|
+
# @param certificate_name [String] The integration account certificate 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, certificate_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, 'certificate_name is nil' if certificate_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}/certificates/{certificateName}'
|
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,'certificateName' => certificate_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 certificates.
|
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 [IntegrationAccountCertificateListResult] 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 certificates.
|
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 certificates.
|
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 = IntegrationAccountCertificateListResult.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 certificates.
|
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 custom_headers [Hash{String => String}] A hash of custom headers that
|
513
|
+
# will be added to the HTTP request.
|
514
|
+
#
|
515
|
+
# @return [IntegrationAccountCertificateListResult] which provide lazy access
|
516
|
+
# to pages of the response.
|
517
|
+
#
|
518
|
+
def list_as_lazy(resource_group_name, integration_account_name, top = nil, custom_headers = nil)
|
519
|
+
response = list_async(resource_group_name, integration_account_name, top, custom_headers).value!
|
520
|
+
unless response.nil?
|
521
|
+
page = response.body
|
522
|
+
page.next_method = Proc.new do |next_page_link|
|
523
|
+
list_next_async(next_page_link, custom_headers)
|
524
|
+
end
|
525
|
+
page
|
526
|
+
end
|
527
|
+
end
|
528
|
+
|
529
|
+
end
|
530
|
+
end
|