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,549 +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
- # 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