azure_mgmt_logic 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/azure_mgmt_logic.gemspec +1 -1
  3. data/lib/generated/azure_mgmt_logic/logic_management_client.rb +20 -20
  4. data/lib/generated/azure_mgmt_logic/models/{integration_account_content_hash.rb → content_hash.rb} +6 -6
  5. data/lib/generated/azure_mgmt_logic/models/{integration_account_content_link.rb → content_link.rb} +6 -6
  6. data/lib/generated/azure_mgmt_logic/models/{x12message_identifier.rb → correlation.rb} +8 -8
  7. data/lib/generated/azure_mgmt_logic/models/{edifact_decimal_indicator.rb → day_of_week.rb} +9 -5
  8. data/lib/generated/azure_mgmt_logic/models/days_of_week.rb +21 -0
  9. data/lib/generated/azure_mgmt_logic/models/{edifact_message_identifier.rb → generate_upgraded_definition_parameters.rb} +8 -9
  10. data/lib/generated/azure_mgmt_logic/models/{schema_type.rb → key_type.rb} +4 -3
  11. data/lib/generated/azure_mgmt_logic/models/{hashing_algorithm.rb → parameter_type.rb} +10 -6
  12. data/lib/generated/azure_mgmt_logic/models/{encryption_algorithm.rb → recurrence_frequency.rb} +9 -8
  13. data/lib/generated/azure_mgmt_logic/models/recurrence_schedule.rb +121 -0
  14. data/lib/generated/azure_mgmt_logic/models/{as2error_settings.rb → recurrence_schedule_occurrence.rb} +17 -16
  15. data/lib/generated/azure_mgmt_logic/models/{key_vault_key_reference_key_vault.rb → resource_reference.rb} +7 -7
  16. data/lib/generated/azure_mgmt_logic/models/{business_identity.rb → sku.rb} +17 -14
  17. data/lib/generated/azure_mgmt_logic/models/{integration_account_schema.rb → workflow.rb} +77 -40
  18. data/lib/generated/azure_mgmt_logic/models/{integration_account_sku.rb → workflow_filter.rb} +11 -10
  19. data/lib/generated/azure_mgmt_logic/models/{integration_account_list_result.rb → workflow_list_result.rb} +9 -9
  20. data/lib/generated/azure_mgmt_logic/models/{x12schema_reference.rb → workflow_output_parameter.rb} +26 -26
  21. data/lib/generated/azure_mgmt_logic/models/workflow_parameter.rb +77 -0
  22. data/lib/generated/azure_mgmt_logic/models/workflow_provisioning_state.rb +32 -0
  23. data/lib/generated/azure_mgmt_logic/models/workflow_run.rb +199 -0
  24. data/lib/generated/azure_mgmt_logic/models/workflow_run_action.rb +179 -0
  25. data/lib/generated/azure_mgmt_logic/models/{integration_account_agreement_filter.rb → workflow_run_action_filter.rb} +12 -11
  26. data/lib/generated/azure_mgmt_logic/models/{integration_account_map_list_result.rb → workflow_run_action_list_result.rb} +9 -10
  27. data/lib/generated/azure_mgmt_logic/models/{x12message_filter.rb → workflow_run_filter.rb} +12 -10
  28. data/lib/generated/azure_mgmt_logic/models/{integration_account_schema_list_result.rb → workflow_run_list_result.rb} +9 -10
  29. data/lib/generated/azure_mgmt_logic/models/workflow_run_trigger.rb +183 -0
  30. data/lib/generated/azure_mgmt_logic/models/{agreement_type.rb → workflow_state.rb} +7 -5
  31. data/lib/generated/azure_mgmt_logic/models/workflow_status.rb +27 -0
  32. data/lib/generated/azure_mgmt_logic/models/workflow_trigger.rb +178 -0
  33. data/lib/generated/azure_mgmt_logic/models/{callback_url.rb → workflow_trigger_callback_url.rb} +6 -5
  34. data/lib/generated/azure_mgmt_logic/models/{integration_account_map_filter.rb → workflow_trigger_filter.rb} +11 -10
  35. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_history.rb +191 -0
  36. data/lib/generated/azure_mgmt_logic/models/{integration_account_partner_filter.rb → workflow_trigger_history_filter.rb} +12 -10
  37. data/lib/generated/azure_mgmt_logic/models/{integration_account_partner_list_result.rb → workflow_trigger_history_list_result.rb} +10 -10
  38. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb +93 -0
  39. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_provisioning_state.rb +32 -0
  40. data/lib/generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb +98 -0
  41. data/lib/generated/azure_mgmt_logic/models/{integration_account_agreement.rb → workflow_version.rb} +54 -44
  42. data/lib/generated/azure_mgmt_logic/models/workflow_version_list_result.rb +93 -0
  43. data/lib/generated/azure_mgmt_logic/version.rb +1 -1
  44. data/lib/generated/azure_mgmt_logic/workflow_run_actions.rb +347 -0
  45. data/lib/generated/azure_mgmt_logic/{integration_account_schemas.rb → workflow_runs.rb} +71 -192
  46. data/lib/generated/azure_mgmt_logic/workflow_trigger_histories.rb +347 -0
  47. data/lib/generated/azure_mgmt_logic/{integration_account_maps.rb → workflow_triggers.rb} +105 -127
  48. data/lib/generated/azure_mgmt_logic/workflow_versions.rb +334 -0
  49. data/lib/generated/azure_mgmt_logic/{integration_accounts.rb → workflows.rb} +418 -151
  50. data/lib/generated/azure_mgmt_logic.rb +45 -88
  51. metadata +49 -92
  52. data/lib/generated/azure_mgmt_logic/integration_account_agreements.rb +0 -549
  53. data/lib/generated/azure_mgmt_logic/integration_account_certificates.rb +0 -545
  54. data/lib/generated/azure_mgmt_logic/integration_account_partners.rb +0 -546
  55. data/lib/generated/azure_mgmt_logic/models/agreement_content.rb +0 -67
  56. data/lib/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb +0 -78
  57. data/lib/generated/azure_mgmt_logic/models/as2agreement_content.rb +0 -56
  58. data/lib/generated/azure_mgmt_logic/models/as2envelope_settings.rb +0 -87
  59. data/lib/generated/azure_mgmt_logic/models/as2mdn_settings.rb +0 -132
  60. data/lib/generated/azure_mgmt_logic/models/as2message_connection_settings.rb +0 -78
  61. data/lib/generated/azure_mgmt_logic/models/as2one_way_agreement.rb +0 -67
  62. data/lib/generated/azure_mgmt_logic/models/as2protocol_settings.rb +0 -112
  63. data/lib/generated/azure_mgmt_logic/models/as2security_settings.rb +0 -131
  64. data/lib/generated/azure_mgmt_logic/models/as2validation_settings.rb +0 -135
  65. data/lib/generated/azure_mgmt_logic/models/b2bpartner_content.rb +0 -53
  66. data/lib/generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb +0 -151
  67. data/lib/generated/azure_mgmt_logic/models/edifact_agreement_content.rb +0 -56
  68. data/lib/generated/azure_mgmt_logic/models/edifact_character_set.rb +0 -29
  69. data/lib/generated/azure_mgmt_logic/models/edifact_delimiter_override.rb +0 -159
  70. data/lib/generated/azure_mgmt_logic/models/edifact_envelope_override.rb +0 -188
  71. data/lib/generated/azure_mgmt_logic/models/edifact_envelope_settings.rb +0 -452
  72. data/lib/generated/azure_mgmt_logic/models/edifact_framing_settings.rb +0 -153
  73. data/lib/generated/azure_mgmt_logic/models/edifact_message_filter.rb +0 -46
  74. data/lib/generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb +0 -67
  75. data/lib/generated/azure_mgmt_logic/models/edifact_processing_settings.rb +0 -88
  76. data/lib/generated/azure_mgmt_logic/models/edifact_protocol_settings.rb +0 -195
  77. data/lib/generated/azure_mgmt_logic/models/edifact_schema_reference.rb +0 -104
  78. data/lib/generated/azure_mgmt_logic/models/edifact_validation_override.rb +0 -111
  79. data/lib/generated/azure_mgmt_logic/models/edifact_validation_settings.rb +0 -145
  80. data/lib/generated/azure_mgmt_logic/models/integration_account.rb +0 -97
  81. data/lib/generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb +0 -94
  82. data/lib/generated/azure_mgmt_logic/models/integration_account_certificate.rb +0 -129
  83. data/lib/generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb +0 -95
  84. data/lib/generated/azure_mgmt_logic/models/integration_account_map.rb +0 -152
  85. data/lib/generated/azure_mgmt_logic/models/integration_account_partner.rb +0 -131
  86. data/lib/generated/azure_mgmt_logic/models/integration_account_resource.rb +0 -91
  87. data/lib/generated/azure_mgmt_logic/models/integration_account_schema_filter.rb +0 -46
  88. data/lib/generated/azure_mgmt_logic/models/key_vault_key_reference.rb +0 -65
  89. data/lib/generated/azure_mgmt_logic/models/list_callback_url_parameters.rb +0 -44
  90. data/lib/generated/azure_mgmt_logic/models/map_type.rb +0 -16
  91. data/lib/generated/azure_mgmt_logic/models/message_filter_type.rb +0 -17
  92. data/lib/generated/azure_mgmt_logic/models/partner_content.rb +0 -45
  93. data/lib/generated/azure_mgmt_logic/models/partner_type.rb +0 -16
  94. data/lib/generated/azure_mgmt_logic/models/segment_terminator_suffix.rb +0 -19
  95. data/lib/generated/azure_mgmt_logic/models/trailing_separator_policy.rb +0 -18
  96. data/lib/generated/azure_mgmt_logic/models/usage_indicator.rb +0 -18
  97. data/lib/generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb +0 -193
  98. data/lib/generated/azure_mgmt_logic/models/x12agreement_content.rb +0 -56
  99. data/lib/generated/azure_mgmt_logic/models/x12character_set.rb +0 -18
  100. data/lib/generated/azure_mgmt_logic/models/x12date_format.rb +0 -17
  101. data/lib/generated/azure_mgmt_logic/models/x12delimiter_overrides.rb +0 -128
  102. data/lib/generated/azure_mgmt_logic/models/x12envelope_override.rb +0 -141
  103. data/lib/generated/azure_mgmt_logic/models/x12envelope_settings.rb +0 -286
  104. data/lib/generated/azure_mgmt_logic/models/x12framing_settings.rb +0 -109
  105. data/lib/generated/azure_mgmt_logic/models/x12one_way_agreement.rb +0 -67
  106. data/lib/generated/azure_mgmt_logic/models/x12processing_settings.rb +0 -99
  107. data/lib/generated/azure_mgmt_logic/models/x12protocol_settings.rb +0 -204
  108. data/lib/generated/azure_mgmt_logic/models/x12security_settings.rb +0 -74
  109. data/lib/generated/azure_mgmt_logic/models/x12time_format.rb +0 -19
  110. data/lib/generated/azure_mgmt_logic/models/x12validation_override.rb +0 -111
  111. data/lib/generated/azure_mgmt_logic/models/x12validation_settings.rb +0 -145
@@ -1,546 +0,0 @@
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
- # IntegrationAccountPartners
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 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 [IntegrationAccountPartnerListResult] 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 partners.
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<IntegrationAccountPartner>] 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 partners.
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 partners.
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}/partners'
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 = IntegrationAccountPartnerListResult.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 partner.
151
- #
152
- # @param resource_group_name [String] The resource group name.
153
- # @param integration_account_name [String] The integration account name.
154
- # @param partner_name [String] The integration account partner 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 [IntegrationAccountPartner] operation results.
159
- #
160
- def get(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
161
- response = get_async(resource_group_name, integration_account_name, partner_name, custom_headers).value!
162
- response.body unless response.nil?
163
- end
164
-
165
- #
166
- # Gets an integration account partner.
167
- #
168
- # @param resource_group_name [String] The resource group name.
169
- # @param integration_account_name [String] The integration account name.
170
- # @param partner_name [String] The integration account partner 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, partner_name, custom_headers = nil)
177
- get_async(resource_group_name, integration_account_name, partner_name, custom_headers).value!
178
- end
179
-
180
- #
181
- # Gets an integration account partner.
182
- #
183
- # @param resource_group_name [String] The resource group name.
184
- # @param integration_account_name [String] The integration account name.
185
- # @param partner_name [String] The integration account partner 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, partner_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, 'partner_name is nil' if partner_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}/partners/{partnerName}'
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,'partnerName' => partner_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 = IntegrationAccountPartner.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 partner.
249
- #
250
- # @param resource_group_name [String] The resource group name.
251
- # @param integration_account_name [String] The integration account name.
252
- # @param partner_name [String] The integration account partner name.
253
- # @param partner [IntegrationAccountPartner] The integration account partner.
254
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
255
- # will be added to the HTTP request.
256
- #
257
- # @return [IntegrationAccountPartner] operation results.
258
- #
259
- def create_or_update(resource_group_name, integration_account_name, partner_name, partner, custom_headers = nil)
260
- response = create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers).value!
261
- response.body unless response.nil?
262
- end
263
-
264
- #
265
- # Creates or updates an integration account partner.
266
- #
267
- # @param resource_group_name [String] The resource group name.
268
- # @param integration_account_name [String] The integration account name.
269
- # @param partner_name [String] The integration account partner name.
270
- # @param partner [IntegrationAccountPartner] The integration account partner.
271
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
272
- # will be added to the HTTP request.
273
- #
274
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
275
- #
276
- def create_or_update_with_http_info(resource_group_name, integration_account_name, partner_name, partner, custom_headers = nil)
277
- create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers).value!
278
- end
279
-
280
- #
281
- # Creates or updates an integration account partner.
282
- #
283
- # @param resource_group_name [String] The resource group name.
284
- # @param integration_account_name [String] The integration account name.
285
- # @param partner_name [String] The integration account partner name.
286
- # @param partner [IntegrationAccountPartner] The integration account partner.
287
- # @param [Hash{String => String}] A hash of custom headers that will be added
288
- # to the HTTP request.
289
- #
290
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
291
- #
292
- def create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers = nil)
293
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
294
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
295
- fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
296
- fail ArgumentError, 'partner_name is nil' if partner_name.nil?
297
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
298
- fail ArgumentError, 'partner is nil' if partner.nil?
299
-
300
-
301
- request_headers = {}
302
-
303
- # Set Headers
304
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
305
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
306
-
307
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
308
-
309
- # Serialize Request
310
- request_mapper = IntegrationAccountPartner.mapper()
311
- request_content = @client.serialize(request_mapper, partner, 'partner')
312
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
313
-
314
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}'
315
- options = {
316
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
317
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'partnerName' => partner_name},
318
- query_params: {'api-version' => @client.api_version},
319
- body: request_content,
320
- headers: request_headers.merge(custom_headers || {})
321
- }
322
-
323
- request_url = @base_url || @client.base_url
324
-
325
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
326
- promise = request.run_promise do |req|
327
- @client.credentials.sign_request(req) unless @client.credentials.nil?
328
- end
329
-
330
- promise = promise.then do |http_response|
331
- status_code = http_response.status
332
- response_content = http_response.body
333
- unless status_code == 200 || status_code == 201
334
- error_model = JSON.load(response_content)
335
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
336
- end
337
-
338
- # Create Result
339
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
340
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
341
- # Deserialize Response
342
- if status_code == 200
343
- begin
344
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
345
- result_mapper = IntegrationAccountPartner.mapper()
346
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
347
- rescue Exception => e
348
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
349
- end
350
- end
351
- # Deserialize Response
352
- if status_code == 201
353
- begin
354
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
355
- result_mapper = IntegrationAccountPartner.mapper()
356
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
357
- rescue Exception => e
358
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
359
- end
360
- end
361
-
362
- result
363
- end
364
-
365
- promise.execute
366
- end
367
-
368
- #
369
- # Deletes an integration account partner.
370
- #
371
- # @param resource_group_name [String] The resource group name.
372
- # @param integration_account_name [String] The integration account name.
373
- # @param partner_name [String] The integration account partner name.
374
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
375
- # will be added to the HTTP request.
376
- #
377
- #
378
- def delete(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
379
- response = delete_async(resource_group_name, integration_account_name, partner_name, custom_headers).value!
380
- nil
381
- end
382
-
383
- #
384
- # Deletes an integration account partner.
385
- #
386
- # @param resource_group_name [String] The resource group name.
387
- # @param integration_account_name [String] The integration account name.
388
- # @param partner_name [String] The integration account partner name.
389
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
390
- # will be added to the HTTP request.
391
- #
392
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
393
- #
394
- def delete_with_http_info(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
395
- delete_async(resource_group_name, integration_account_name, partner_name, custom_headers).value!
396
- end
397
-
398
- #
399
- # Deletes an integration account partner.
400
- #
401
- # @param resource_group_name [String] The resource group name.
402
- # @param integration_account_name [String] The integration account name.
403
- # @param partner_name [String] The integration account partner name.
404
- # @param [Hash{String => String}] A hash of custom headers that will be added
405
- # to the HTTP request.
406
- #
407
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
408
- #
409
- def delete_async(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
410
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
411
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
412
- fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
413
- fail ArgumentError, 'partner_name is nil' if partner_name.nil?
414
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
415
-
416
-
417
- request_headers = {}
418
-
419
- # Set Headers
420
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
421
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
422
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners/{partnerName}'
423
- options = {
424
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
425
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'integrationAccountName' => integration_account_name,'partnerName' => partner_name},
426
- query_params: {'api-version' => @client.api_version},
427
- headers: request_headers.merge(custom_headers || {})
428
- }
429
-
430
- request_url = @base_url || @client.base_url
431
-
432
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
433
- promise = request.run_promise do |req|
434
- @client.credentials.sign_request(req) unless @client.credentials.nil?
435
- end
436
-
437
- promise = promise.then do |http_response|
438
- status_code = http_response.status
439
- response_content = http_response.body
440
- unless status_code == 200 || status_code == 204
441
- error_model = JSON.load(response_content)
442
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
443
- end
444
-
445
- # Create Result
446
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
447
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
448
-
449
- result
450
- end
451
-
452
- promise.execute
453
- end
454
-
455
- #
456
- # Gets a list of integration account partners.
457
- #
458
- # @param next_page_link [String] The NextLink from the previous successful
459
- # call to List operation.
460
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
461
- # will be added to the HTTP request.
462
- #
463
- # @return [IntegrationAccountPartnerListResult] operation results.
464
- #
465
- def list_next(next_page_link, custom_headers = nil)
466
- response = list_next_async(next_page_link, custom_headers).value!
467
- response.body unless response.nil?
468
- end
469
-
470
- #
471
- # Gets a list of integration account partners.
472
- #
473
- # @param next_page_link [String] The NextLink from the previous successful
474
- # call to List operation.
475
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
476
- # will be added to the HTTP request.
477
- #
478
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
479
- #
480
- def list_next_with_http_info(next_page_link, custom_headers = nil)
481
- list_next_async(next_page_link, custom_headers).value!
482
- end
483
-
484
- #
485
- # Gets a list of integration account partners.
486
- #
487
- # @param next_page_link [String] The NextLink from the previous successful
488
- # call to List operation.
489
- # @param [Hash{String => String}] A hash of custom headers that will be added
490
- # to the HTTP request.
491
- #
492
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
493
- #
494
- def list_next_async(next_page_link, custom_headers = nil)
495
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
496
-
497
-
498
- request_headers = {}
499
-
500
- # Set Headers
501
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
502
- request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
503
- path_template = '{nextLink}'
504
- options = {
505
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
506
- skip_encoding_path_params: {'nextLink' => next_page_link},
507
- headers: request_headers.merge(custom_headers || {})
508
- }
509
-
510
- request_url = @base_url || @client.base_url
511
-
512
- request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
513
- promise = request.run_promise do |req|
514
- @client.credentials.sign_request(req) unless @client.credentials.nil?
515
- end
516
-
517
- promise = promise.then do |http_response|
518
- status_code = http_response.status
519
- response_content = http_response.body
520
- unless status_code == 200
521
- error_model = JSON.load(response_content)
522
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
523
- end
524
-
525
- # Create Result
526
- result = MsRestAzure::AzureOperationResponse.new(request, http_response)
527
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
528
- # Deserialize Response
529
- if status_code == 200
530
- begin
531
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
532
- result_mapper = IntegrationAccountPartnerListResult.mapper()
533
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
534
- rescue Exception => e
535
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
536
- end
537
- end
538
-
539
- result
540
- end
541
-
542
- promise.execute
543
- end
544
-
545
- end
546
- end
@@ -1,67 +0,0 @@
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
- module Models
8
- #
9
- # Model object.
10
- #
11
- class AgreementContent
12
-
13
- include MsRestAzure
14
-
15
- # @return [AS2AgreementContent] The AS2 agreement content.
16
- attr_accessor :as2
17
-
18
- # @return [X12AgreementContent] The X12 agreement content.
19
- attr_accessor :x12
20
-
21
- # @return [EdifactAgreementContent] The EDIFACT agreement content.
22
- attr_accessor :edifact
23
-
24
-
25
- #
26
- # Mapper for AgreementContent class as Ruby Hash.
27
- # This will be used for serialization/deserialization.
28
- #
29
- def self.mapper()
30
- {
31
- required: false,
32
- serialized_name: 'AgreementContent',
33
- type: {
34
- name: 'Composite',
35
- class_name: 'AgreementContent',
36
- model_properties: {
37
- as2: {
38
- required: false,
39
- serialized_name: 'AS2',
40
- type: {
41
- name: 'Composite',
42
- class_name: 'AS2AgreementContent'
43
- }
44
- },
45
- x12: {
46
- required: false,
47
- serialized_name: 'X12',
48
- type: {
49
- name: 'Composite',
50
- class_name: 'X12AgreementContent'
51
- }
52
- },
53
- edifact: {
54
- required: false,
55
- serialized_name: 'Edifact',
56
- type: {
57
- name: 'Composite',
58
- class_name: 'EdifactAgreementContent'
59
- }
60
- }
61
- }
62
- }
63
- }
64
- end
65
- end
66
- end
67
- end
@@ -1,78 +0,0 @@
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
- module Models
8
- #
9
- # Model object.
10
- #
11
- class AS2AcknowledgementConnectionSettings
12
-
13
- include MsRestAzure
14
-
15
- # @return [Boolean] The value indicating whether to ignore mismatch in
16
- # certificate name.
17
- attr_accessor :ignore_certificate_name_mismatch
18
-
19
- # @return [Boolean] The value indicating whether to support HTTP status
20
- # code 'CONTINUE'.
21
- attr_accessor :support_http_status_code_continue
22
-
23
- # @return [Boolean] The value indicating whether to keep the connection
24
- # alive.
25
- attr_accessor :keep_http_connection_alive
26
-
27
- # @return [Boolean] The value indicating whether to unfold the HTTP
28
- # headers.
29
- attr_accessor :unfold_http_headers
30
-
31
-
32
- #
33
- # Mapper for AS2AcknowledgementConnectionSettings class as Ruby Hash.
34
- # This will be used for serialization/deserialization.
35
- #
36
- def self.mapper()
37
- {
38
- required: false,
39
- serialized_name: 'AS2AcknowledgementConnectionSettings',
40
- type: {
41
- name: 'Composite',
42
- class_name: 'AS2AcknowledgementConnectionSettings',
43
- model_properties: {
44
- ignore_certificate_name_mismatch: {
45
- required: false,
46
- serialized_name: 'ignoreCertificateNameMismatch',
47
- type: {
48
- name: 'Boolean'
49
- }
50
- },
51
- support_http_status_code_continue: {
52
- required: false,
53
- serialized_name: 'supportHttpStatusCodeContinue',
54
- type: {
55
- name: 'Boolean'
56
- }
57
- },
58
- keep_http_connection_alive: {
59
- required: false,
60
- serialized_name: 'keepHttpConnectionAlive',
61
- type: {
62
- name: 'Boolean'
63
- }
64
- },
65
- unfold_http_headers: {
66
- required: false,
67
- serialized_name: 'unfoldHttpHeaders',
68
- type: {
69
- name: 'Boolean'
70
- }
71
- }
72
- }
73
- }
74
- }
75
- end
76
- end
77
- end
78
- end