zyphr 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +59 -0
- data/docs/BatchPublishWaaSEvents201Response.md +18 -0
- data/docs/CreateWaaSApplication201Response.md +18 -0
- data/docs/CreateWaaSApplicationRequest.md +22 -0
- data/docs/CreateWaaSEndpoint201Response.md +18 -0
- data/docs/CreateWaaSEndpointRequest.md +22 -0
- data/docs/CreateWaaSEndpointResponse.md +30 -0
- data/docs/CreateWaaSEventType201Response.md +18 -0
- data/docs/CreateWaaSEventTypeRequest.md +26 -0
- data/docs/GenerateWaaSPortalToken201Response.md +18 -0
- data/docs/GetWaaSEndpoint200Response.md +18 -0
- data/docs/GetWaaSUsage200Response.md +18 -0
- data/docs/ListWaaSApplications200Response.md +18 -0
- data/docs/ListWaaSEndpointDeliveries200Response.md +18 -0
- data/docs/ListWaaSEndpoints200Response.md +18 -0
- data/docs/ListWaaSEventTypes200Response.md +18 -0
- data/docs/PublishWaaSEvent201Response.md +18 -0
- data/docs/UpdateWaaSApplicationRequest.md +22 -0
- data/docs/UpdateWaaSEndpointRequest.md +22 -0
- data/docs/UpdateWaaSEventTypeRequest.md +24 -0
- data/docs/WaaSApplication.md +32 -0
- data/docs/WaaSApplicationsApi.md +446 -0
- data/docs/WaaSBatchPublishRequest.md +18 -0
- data/docs/WaaSBatchPublishResponse.md +22 -0
- data/docs/WaaSDeliveriesApi.md +319 -0
- data/docs/WaaSDelivery.md +38 -0
- data/docs/WaaSEndpoint.md +32 -0
- data/docs/WaaSEndpointsApi.md +673 -0
- data/docs/WaaSEventType.md +36 -0
- data/docs/WaaSEventTypesApi.md +454 -0
- data/docs/WaaSEventsApi.md +155 -0
- data/docs/WaaSPortalApi.md +81 -0
- data/docs/WaaSPortalTokenRequest.md +24 -0
- data/docs/WaaSPortalTokenRequestTheme.md +20 -0
- data/docs/WaaSPortalTokenResponse.md +20 -0
- data/docs/WaaSPublishEventRequest.md +24 -0
- data/docs/WaaSPublishEventResponse.md +26 -0
- data/docs/WaaSUsageResponse.md +28 -0
- data/lib/zyphr/api/waa_s_applications_api.rb +425 -0
- data/lib/zyphr/api/waa_s_deliveries_api.rb +316 -0
- data/lib/zyphr/api/waa_s_endpoints_api.rb +653 -0
- data/lib/zyphr/api/waa_s_event_types_api.rb +452 -0
- data/lib/zyphr/api/waa_s_events_api.rb +170 -0
- data/lib/zyphr/api/waa_s_portal_api.rb +96 -0
- data/lib/zyphr/models/batch_publish_waa_s_events201_response.rb +220 -0
- data/lib/zyphr/models/create_waa_s_application201_response.rb +220 -0
- data/lib/zyphr/models/create_waa_s_application_request.rb +275 -0
- data/lib/zyphr/models/create_waa_s_endpoint201_response.rb +220 -0
- data/lib/zyphr/models/create_waa_s_endpoint_request.rb +294 -0
- data/lib/zyphr/models/create_waa_s_endpoint_response.rb +277 -0
- data/lib/zyphr/models/create_waa_s_event_type201_response.rb +220 -0
- data/lib/zyphr/models/create_waa_s_event_type_request.rb +292 -0
- data/lib/zyphr/models/generate_waa_s_portal_token201_response.rb +220 -0
- data/lib/zyphr/models/get_waa_s_endpoint200_response.rb +220 -0
- data/lib/zyphr/models/get_waa_s_usage200_response.rb +220 -0
- data/lib/zyphr/models/list_waa_s_applications200_response.rb +222 -0
- data/lib/zyphr/models/list_waa_s_endpoint_deliveries200_response.rb +222 -0
- data/lib/zyphr/models/list_waa_s_endpoints200_response.rb +222 -0
- data/lib/zyphr/models/list_waa_s_event_types200_response.rb +222 -0
- data/lib/zyphr/models/publish_waa_s_event201_response.rb +220 -0
- data/lib/zyphr/models/update_waa_s_application_request.rb +272 -0
- data/lib/zyphr/models/update_waa_s_endpoint_request.rb +274 -0
- data/lib/zyphr/models/update_waa_s_event_type_request.rb +247 -0
- data/lib/zyphr/models/waa_s_application.rb +317 -0
- data/lib/zyphr/models/waa_s_batch_publish_request.rb +248 -0
- data/lib/zyphr/models/waa_s_batch_publish_response.rb +240 -0
- data/lib/zyphr/models/waa_s_delivery.rb +344 -0
- data/lib/zyphr/models/waa_s_endpoint.rb +319 -0
- data/lib/zyphr/models/waa_s_event_type.rb +335 -0
- data/lib/zyphr/models/waa_s_portal_token_request.rb +267 -0
- data/lib/zyphr/models/waa_s_portal_token_request_theme.rb +263 -0
- data/lib/zyphr/models/waa_s_portal_token_response.rb +229 -0
- data/lib/zyphr/models/waa_s_publish_event_request.rb +302 -0
- data/lib/zyphr/models/waa_s_publish_event_response.rb +256 -0
- data/lib/zyphr/models/waa_s_usage_response.rb +265 -0
- data/lib/zyphr.rb +37 -0
- data/spec/api/waa_s_applications_api_spec.rb +110 -0
- data/spec/api/waa_s_deliveries_api_spec.rb +94 -0
- data/spec/api/waa_s_endpoints_api_spec.rb +154 -0
- data/spec/api/waa_s_event_types_api_spec.rb +115 -0
- data/spec/api/waa_s_events_api_spec.rb +61 -0
- data/spec/api/waa_s_portal_api_spec.rb +48 -0
- data/spec/models/batch_publish_waa_s_events201_response_spec.rb +36 -0
- data/spec/models/create_waa_s_application201_response_spec.rb +36 -0
- data/spec/models/create_waa_s_application_request_spec.rb +48 -0
- data/spec/models/create_waa_s_endpoint201_response_spec.rb +36 -0
- data/spec/models/create_waa_s_endpoint_request_spec.rb +48 -0
- data/spec/models/create_waa_s_endpoint_response_spec.rb +72 -0
- data/spec/models/create_waa_s_event_type201_response_spec.rb +36 -0
- data/spec/models/create_waa_s_event_type_request_spec.rb +60 -0
- data/spec/models/generate_waa_s_portal_token201_response_spec.rb +36 -0
- data/spec/models/get_waa_s_endpoint200_response_spec.rb +36 -0
- data/spec/models/get_waa_s_usage200_response_spec.rb +36 -0
- data/spec/models/list_waa_s_applications200_response_spec.rb +36 -0
- data/spec/models/list_waa_s_endpoint_deliveries200_response_spec.rb +36 -0
- data/spec/models/list_waa_s_endpoints200_response_spec.rb +36 -0
- data/spec/models/list_waa_s_event_types200_response_spec.rb +36 -0
- data/spec/models/publish_waa_s_event201_response_spec.rb +36 -0
- data/spec/models/update_waa_s_application_request_spec.rb +52 -0
- data/spec/models/update_waa_s_endpoint_request_spec.rb +52 -0
- data/spec/models/update_waa_s_event_type_request_spec.rb +54 -0
- data/spec/models/waa_s_application_spec.rb +82 -0
- data/spec/models/waa_s_batch_publish_request_spec.rb +36 -0
- data/spec/models/waa_s_batch_publish_response_spec.rb +48 -0
- data/spec/models/waa_s_delivery_spec.rb +100 -0
- data/spec/models/waa_s_endpoint_spec.rb +82 -0
- data/spec/models/waa_s_event_type_spec.rb +94 -0
- data/spec/models/waa_s_portal_token_request_spec.rb +54 -0
- data/spec/models/waa_s_portal_token_request_theme_spec.rb +46 -0
- data/spec/models/waa_s_portal_token_response_spec.rb +42 -0
- data/spec/models/waa_s_publish_event_request_spec.rb +54 -0
- data/spec/models/waa_s_publish_event_response_spec.rb +60 -0
- data/spec/models/waa_s_usage_response_spec.rb +66 -0
- data/zyphr.gemspec +1 -1
- metadata +150 -2
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zyphr API
|
|
3
|
+
|
|
4
|
+
#Zyphr is a multi-channel notification platform that enables developers to send emails, push notifications, SMS, and in-app messages through a unified API. ## Authentication All API requests require authentication using an API key. Include your API key in the `X-API-Key` header: ``` X-API-Key: zy_live_xxxxxxxxxxxx ``` API keys can be created in the Zyphr Dashboard. Use `zy_test_*` keys for testing and `zy_live_*` keys for production. ## Rate Limiting The API implements rate limiting to ensure fair usage. Rate limit information is included in response headers: - `X-RateLimit-Limit`: Maximum requests per window - `X-RateLimit-Remaining`: Remaining requests in current window - `X-RateLimit-Reset`: Unix timestamp when the window resets ## Errors All errors follow a consistent format: ```json { \"error\": { \"code\": \"error_code\", \"message\": \"Human readable message\", \"details\": {} }, \"meta\": { \"request_id\": \"req_xxxx\" } } ```
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: support@zyphr.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.12.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Zyphr
|
|
16
|
+
class WaaSDeliveriesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get delivery detail
|
|
23
|
+
# Get full delivery details including request/response data.
|
|
24
|
+
# @param app_id [String]
|
|
25
|
+
# @param delivery_id [String]
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [nil]
|
|
28
|
+
def get_waa_s_delivery(app_id, delivery_id, opts = {})
|
|
29
|
+
get_waa_s_delivery_with_http_info(app_id, delivery_id, opts)
|
|
30
|
+
nil
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Get delivery detail
|
|
34
|
+
# Get full delivery details including request/response data.
|
|
35
|
+
# @param app_id [String]
|
|
36
|
+
# @param delivery_id [String]
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
39
|
+
def get_waa_s_delivery_with_http_info(app_id, delivery_id, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: WaaSDeliveriesApi.get_waa_s_delivery ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'app_id' is set
|
|
44
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling WaaSDeliveriesApi.get_waa_s_delivery"
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'delivery_id' is set
|
|
48
|
+
if @api_client.config.client_side_validation && delivery_id.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'delivery_id' when calling WaaSDeliveriesApi.get_waa_s_delivery"
|
|
50
|
+
end
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '/v1/waas/applications/{appId}/deliveries/{deliveryId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'deliveryId' + '}', CGI.escape(delivery_id.to_s))
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = opts[:query_params] || {}
|
|
56
|
+
|
|
57
|
+
# header parameters
|
|
58
|
+
header_params = opts[:header_params] || {}
|
|
59
|
+
|
|
60
|
+
# form parameters
|
|
61
|
+
form_params = opts[:form_params] || {}
|
|
62
|
+
|
|
63
|
+
# http body (model)
|
|
64
|
+
post_body = opts[:debug_body]
|
|
65
|
+
|
|
66
|
+
# return_type
|
|
67
|
+
return_type = opts[:debug_return_type]
|
|
68
|
+
|
|
69
|
+
# auth_names
|
|
70
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
71
|
+
|
|
72
|
+
new_options = opts.merge(
|
|
73
|
+
:operation => :"WaaSDeliveriesApi.get_waa_s_delivery",
|
|
74
|
+
:header_params => header_params,
|
|
75
|
+
:query_params => query_params,
|
|
76
|
+
:form_params => form_params,
|
|
77
|
+
:body => post_body,
|
|
78
|
+
:auth_names => auth_names,
|
|
79
|
+
:return_type => return_type
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
83
|
+
if @api_client.config.debugging
|
|
84
|
+
@api_client.config.logger.debug "API called: WaaSDeliveriesApi#get_waa_s_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
85
|
+
end
|
|
86
|
+
return data, status_code, headers
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# List deliveries
|
|
90
|
+
# List delivery records for a WaaS application. Filter by tenant, event type, or status.
|
|
91
|
+
# @param app_id [String]
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @option opts [Integer] :limit (default to 50)
|
|
94
|
+
# @option opts [Integer] :offset (default to 0)
|
|
95
|
+
# @option opts [String] :tenant_id
|
|
96
|
+
# @option opts [String] :event_type
|
|
97
|
+
# @option opts [String] :status
|
|
98
|
+
# @return [ListWaaSEndpointDeliveries200Response]
|
|
99
|
+
def list_waa_s_deliveries(app_id, opts = {})
|
|
100
|
+
data, _status_code, _headers = list_waa_s_deliveries_with_http_info(app_id, opts)
|
|
101
|
+
data
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# List deliveries
|
|
105
|
+
# List delivery records for a WaaS application. Filter by tenant, event type, or status.
|
|
106
|
+
# @param app_id [String]
|
|
107
|
+
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @option opts [Integer] :limit (default to 50)
|
|
109
|
+
# @option opts [Integer] :offset (default to 0)
|
|
110
|
+
# @option opts [String] :tenant_id
|
|
111
|
+
# @option opts [String] :event_type
|
|
112
|
+
# @option opts [String] :status
|
|
113
|
+
# @return [Array<(ListWaaSEndpointDeliveries200Response, Integer, Hash)>] ListWaaSEndpointDeliveries200Response data, response status code and response headers
|
|
114
|
+
def list_waa_s_deliveries_with_http_info(app_id, opts = {})
|
|
115
|
+
if @api_client.config.debugging
|
|
116
|
+
@api_client.config.logger.debug 'Calling API: WaaSDeliveriesApi.list_waa_s_deliveries ...'
|
|
117
|
+
end
|
|
118
|
+
# verify the required parameter 'app_id' is set
|
|
119
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
120
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling WaaSDeliveriesApi.list_waa_s_deliveries"
|
|
121
|
+
end
|
|
122
|
+
allowable_values = ["pending", "delivering", "delivered", "failed", "retrying", "exhausted"]
|
|
123
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
|
124
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
125
|
+
end
|
|
126
|
+
# resource path
|
|
127
|
+
local_var_path = '/v1/waas/applications/{appId}/deliveries'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
|
|
128
|
+
|
|
129
|
+
# query parameters
|
|
130
|
+
query_params = opts[:query_params] || {}
|
|
131
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
132
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
133
|
+
query_params[:'tenant_id'] = opts[:'tenant_id'] if !opts[:'tenant_id'].nil?
|
|
134
|
+
query_params[:'event_type'] = opts[:'event_type'] if !opts[:'event_type'].nil?
|
|
135
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
136
|
+
|
|
137
|
+
# header parameters
|
|
138
|
+
header_params = opts[:header_params] || {}
|
|
139
|
+
# HTTP header 'Accept' (if needed)
|
|
140
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
141
|
+
|
|
142
|
+
# form parameters
|
|
143
|
+
form_params = opts[:form_params] || {}
|
|
144
|
+
|
|
145
|
+
# http body (model)
|
|
146
|
+
post_body = opts[:debug_body]
|
|
147
|
+
|
|
148
|
+
# return_type
|
|
149
|
+
return_type = opts[:debug_return_type] || 'ListWaaSEndpointDeliveries200Response'
|
|
150
|
+
|
|
151
|
+
# auth_names
|
|
152
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
153
|
+
|
|
154
|
+
new_options = opts.merge(
|
|
155
|
+
:operation => :"WaaSDeliveriesApi.list_waa_s_deliveries",
|
|
156
|
+
:header_params => header_params,
|
|
157
|
+
:query_params => query_params,
|
|
158
|
+
:form_params => form_params,
|
|
159
|
+
:body => post_body,
|
|
160
|
+
:auth_names => auth_names,
|
|
161
|
+
:return_type => return_type
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
165
|
+
if @api_client.config.debugging
|
|
166
|
+
@api_client.config.logger.debug "API called: WaaSDeliveriesApi#list_waa_s_deliveries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
167
|
+
end
|
|
168
|
+
return data, status_code, headers
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# List endpoint deliveries
|
|
172
|
+
# List deliveries for a specific endpoint.
|
|
173
|
+
# @param app_id [String]
|
|
174
|
+
# @param endpoint_id [String]
|
|
175
|
+
# @param [Hash] opts the optional parameters
|
|
176
|
+
# @option opts [Integer] :limit (default to 50)
|
|
177
|
+
# @option opts [Integer] :offset (default to 0)
|
|
178
|
+
# @option opts [String] :status
|
|
179
|
+
# @return [ListWaaSEndpointDeliveries200Response]
|
|
180
|
+
def list_waa_s_endpoint_deliveries(app_id, endpoint_id, opts = {})
|
|
181
|
+
data, _status_code, _headers = list_waa_s_endpoint_deliveries_with_http_info(app_id, endpoint_id, opts)
|
|
182
|
+
data
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# List endpoint deliveries
|
|
186
|
+
# List deliveries for a specific endpoint.
|
|
187
|
+
# @param app_id [String]
|
|
188
|
+
# @param endpoint_id [String]
|
|
189
|
+
# @param [Hash] opts the optional parameters
|
|
190
|
+
# @option opts [Integer] :limit (default to 50)
|
|
191
|
+
# @option opts [Integer] :offset (default to 0)
|
|
192
|
+
# @option opts [String] :status
|
|
193
|
+
# @return [Array<(ListWaaSEndpointDeliveries200Response, Integer, Hash)>] ListWaaSEndpointDeliveries200Response data, response status code and response headers
|
|
194
|
+
def list_waa_s_endpoint_deliveries_with_http_info(app_id, endpoint_id, opts = {})
|
|
195
|
+
if @api_client.config.debugging
|
|
196
|
+
@api_client.config.logger.debug 'Calling API: WaaSDeliveriesApi.list_waa_s_endpoint_deliveries ...'
|
|
197
|
+
end
|
|
198
|
+
# verify the required parameter 'app_id' is set
|
|
199
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
200
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling WaaSDeliveriesApi.list_waa_s_endpoint_deliveries"
|
|
201
|
+
end
|
|
202
|
+
# verify the required parameter 'endpoint_id' is set
|
|
203
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
|
204
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling WaaSDeliveriesApi.list_waa_s_endpoint_deliveries"
|
|
205
|
+
end
|
|
206
|
+
# resource path
|
|
207
|
+
local_var_path = '/v1/waas/applications/{appId}/endpoints/{endpointId}/deliveries'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpointId' + '}', CGI.escape(endpoint_id.to_s))
|
|
208
|
+
|
|
209
|
+
# query parameters
|
|
210
|
+
query_params = opts[:query_params] || {}
|
|
211
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
212
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
213
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
214
|
+
|
|
215
|
+
# header parameters
|
|
216
|
+
header_params = opts[:header_params] || {}
|
|
217
|
+
# HTTP header 'Accept' (if needed)
|
|
218
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
219
|
+
|
|
220
|
+
# form parameters
|
|
221
|
+
form_params = opts[:form_params] || {}
|
|
222
|
+
|
|
223
|
+
# http body (model)
|
|
224
|
+
post_body = opts[:debug_body]
|
|
225
|
+
|
|
226
|
+
# return_type
|
|
227
|
+
return_type = opts[:debug_return_type] || 'ListWaaSEndpointDeliveries200Response'
|
|
228
|
+
|
|
229
|
+
# auth_names
|
|
230
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
231
|
+
|
|
232
|
+
new_options = opts.merge(
|
|
233
|
+
:operation => :"WaaSDeliveriesApi.list_waa_s_endpoint_deliveries",
|
|
234
|
+
:header_params => header_params,
|
|
235
|
+
:query_params => query_params,
|
|
236
|
+
:form_params => form_params,
|
|
237
|
+
:body => post_body,
|
|
238
|
+
:auth_names => auth_names,
|
|
239
|
+
:return_type => return_type
|
|
240
|
+
)
|
|
241
|
+
|
|
242
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
243
|
+
if @api_client.config.debugging
|
|
244
|
+
@api_client.config.logger.debug "API called: WaaSDeliveriesApi#list_waa_s_endpoint_deliveries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
245
|
+
end
|
|
246
|
+
return data, status_code, headers
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Retry a delivery
|
|
250
|
+
# Retry a failed or exhausted delivery. Resets the delivery status and re-queues it.
|
|
251
|
+
# @param app_id [String]
|
|
252
|
+
# @param delivery_id [String]
|
|
253
|
+
# @param [Hash] opts the optional parameters
|
|
254
|
+
# @return [nil]
|
|
255
|
+
def retry_waa_s_delivery(app_id, delivery_id, opts = {})
|
|
256
|
+
retry_waa_s_delivery_with_http_info(app_id, delivery_id, opts)
|
|
257
|
+
nil
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Retry a delivery
|
|
261
|
+
# Retry a failed or exhausted delivery. Resets the delivery status and re-queues it.
|
|
262
|
+
# @param app_id [String]
|
|
263
|
+
# @param delivery_id [String]
|
|
264
|
+
# @param [Hash] opts the optional parameters
|
|
265
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
266
|
+
def retry_waa_s_delivery_with_http_info(app_id, delivery_id, opts = {})
|
|
267
|
+
if @api_client.config.debugging
|
|
268
|
+
@api_client.config.logger.debug 'Calling API: WaaSDeliveriesApi.retry_waa_s_delivery ...'
|
|
269
|
+
end
|
|
270
|
+
# verify the required parameter 'app_id' is set
|
|
271
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
|
272
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling WaaSDeliveriesApi.retry_waa_s_delivery"
|
|
273
|
+
end
|
|
274
|
+
# verify the required parameter 'delivery_id' is set
|
|
275
|
+
if @api_client.config.client_side_validation && delivery_id.nil?
|
|
276
|
+
fail ArgumentError, "Missing the required parameter 'delivery_id' when calling WaaSDeliveriesApi.retry_waa_s_delivery"
|
|
277
|
+
end
|
|
278
|
+
# resource path
|
|
279
|
+
local_var_path = '/v1/waas/applications/{appId}/deliveries/{deliveryId}/retry'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'deliveryId' + '}', CGI.escape(delivery_id.to_s))
|
|
280
|
+
|
|
281
|
+
# query parameters
|
|
282
|
+
query_params = opts[:query_params] || {}
|
|
283
|
+
|
|
284
|
+
# header parameters
|
|
285
|
+
header_params = opts[:header_params] || {}
|
|
286
|
+
|
|
287
|
+
# form parameters
|
|
288
|
+
form_params = opts[:form_params] || {}
|
|
289
|
+
|
|
290
|
+
# http body (model)
|
|
291
|
+
post_body = opts[:debug_body]
|
|
292
|
+
|
|
293
|
+
# return_type
|
|
294
|
+
return_type = opts[:debug_return_type]
|
|
295
|
+
|
|
296
|
+
# auth_names
|
|
297
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
298
|
+
|
|
299
|
+
new_options = opts.merge(
|
|
300
|
+
:operation => :"WaaSDeliveriesApi.retry_waa_s_delivery",
|
|
301
|
+
:header_params => header_params,
|
|
302
|
+
:query_params => query_params,
|
|
303
|
+
:form_params => form_params,
|
|
304
|
+
:body => post_body,
|
|
305
|
+
:auth_names => auth_names,
|
|
306
|
+
:return_type => return_type
|
|
307
|
+
)
|
|
308
|
+
|
|
309
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
310
|
+
if @api_client.config.debugging
|
|
311
|
+
@api_client.config.logger.debug "API called: WaaSDeliveriesApi#retry_waa_s_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
312
|
+
end
|
|
313
|
+
return data, status_code, headers
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
end
|