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,446 @@
|
|
|
1
|
+
# Zyphr::WaaSApplicationsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.zyphr.dev/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_waa_s_application**](WaaSApplicationsApi.md#create_waa_s_application) | **POST** /v1/waas/applications | Create a WaaS application |
|
|
8
|
+
| [**delete_waa_s_application**](WaaSApplicationsApi.md#delete_waa_s_application) | **DELETE** /v1/waas/applications/{appId} | Delete a WaaS application |
|
|
9
|
+
| [**get_waa_s_application**](WaaSApplicationsApi.md#get_waa_s_application) | **GET** /v1/waas/applications/{appId} | Get a WaaS application |
|
|
10
|
+
| [**get_waa_s_usage**](WaaSApplicationsApi.md#get_waa_s_usage) | **GET** /v1/waas/applications/{appId}/usage | Get WaaS usage |
|
|
11
|
+
| [**list_waa_s_applications**](WaaSApplicationsApi.md#list_waa_s_applications) | **GET** /v1/waas/applications | List WaaS applications |
|
|
12
|
+
| [**update_waa_s_application**](WaaSApplicationsApi.md#update_waa_s_application) | **PUT** /v1/waas/applications/{appId} | Update a WaaS application |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## create_waa_s_application
|
|
16
|
+
|
|
17
|
+
> <CreateWaaSApplication201Response> create_waa_s_application(create_waa_s_application_request)
|
|
18
|
+
|
|
19
|
+
Create a WaaS application
|
|
20
|
+
|
|
21
|
+
Create a new Webhooks-as-a-Service application.
|
|
22
|
+
|
|
23
|
+
### Examples
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'time'
|
|
27
|
+
require 'zyphr'
|
|
28
|
+
# setup authorization
|
|
29
|
+
Zyphr.configure do |config|
|
|
30
|
+
# Configure API key authorization: ApiKeyAuth
|
|
31
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
32
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
33
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
api_instance = Zyphr::WaaSApplicationsApi.new
|
|
37
|
+
create_waa_s_application_request = Zyphr::CreateWaaSApplicationRequest.new({name: 'My Platform', slug: 'my-platform'}) # CreateWaaSApplicationRequest |
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
# Create a WaaS application
|
|
41
|
+
result = api_instance.create_waa_s_application(create_waa_s_application_request)
|
|
42
|
+
p result
|
|
43
|
+
rescue Zyphr::ApiError => e
|
|
44
|
+
puts "Error when calling WaaSApplicationsApi->create_waa_s_application: #{e}"
|
|
45
|
+
end
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
#### Using the create_waa_s_application_with_http_info variant
|
|
49
|
+
|
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
|
51
|
+
|
|
52
|
+
> <Array(<CreateWaaSApplication201Response>, Integer, Hash)> create_waa_s_application_with_http_info(create_waa_s_application_request)
|
|
53
|
+
|
|
54
|
+
```ruby
|
|
55
|
+
begin
|
|
56
|
+
# Create a WaaS application
|
|
57
|
+
data, status_code, headers = api_instance.create_waa_s_application_with_http_info(create_waa_s_application_request)
|
|
58
|
+
p status_code # => 2xx
|
|
59
|
+
p headers # => { ... }
|
|
60
|
+
p data # => <CreateWaaSApplication201Response>
|
|
61
|
+
rescue Zyphr::ApiError => e
|
|
62
|
+
puts "Error when calling WaaSApplicationsApi->create_waa_s_application_with_http_info: #{e}"
|
|
63
|
+
end
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
| Name | Type | Description | Notes |
|
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
|
70
|
+
| **create_waa_s_application_request** | [**CreateWaaSApplicationRequest**](CreateWaaSApplicationRequest.md) | | |
|
|
71
|
+
|
|
72
|
+
### Return type
|
|
73
|
+
|
|
74
|
+
[**CreateWaaSApplication201Response**](CreateWaaSApplication201Response.md)
|
|
75
|
+
|
|
76
|
+
### Authorization
|
|
77
|
+
|
|
78
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
79
|
+
|
|
80
|
+
### HTTP request headers
|
|
81
|
+
|
|
82
|
+
- **Content-Type**: application/json
|
|
83
|
+
- **Accept**: application/json
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## delete_waa_s_application
|
|
87
|
+
|
|
88
|
+
> delete_waa_s_application(app_id)
|
|
89
|
+
|
|
90
|
+
Delete a WaaS application
|
|
91
|
+
|
|
92
|
+
Delete a WaaS application and all associated event types, endpoints, and delivery logs.
|
|
93
|
+
|
|
94
|
+
### Examples
|
|
95
|
+
|
|
96
|
+
```ruby
|
|
97
|
+
require 'time'
|
|
98
|
+
require 'zyphr'
|
|
99
|
+
# setup authorization
|
|
100
|
+
Zyphr.configure do |config|
|
|
101
|
+
# Configure API key authorization: ApiKeyAuth
|
|
102
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
103
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
104
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
api_instance = Zyphr::WaaSApplicationsApi.new
|
|
108
|
+
app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
109
|
+
|
|
110
|
+
begin
|
|
111
|
+
# Delete a WaaS application
|
|
112
|
+
api_instance.delete_waa_s_application(app_id)
|
|
113
|
+
rescue Zyphr::ApiError => e
|
|
114
|
+
puts "Error when calling WaaSApplicationsApi->delete_waa_s_application: #{e}"
|
|
115
|
+
end
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
#### Using the delete_waa_s_application_with_http_info variant
|
|
119
|
+
|
|
120
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
121
|
+
|
|
122
|
+
> <Array(nil, Integer, Hash)> delete_waa_s_application_with_http_info(app_id)
|
|
123
|
+
|
|
124
|
+
```ruby
|
|
125
|
+
begin
|
|
126
|
+
# Delete a WaaS application
|
|
127
|
+
data, status_code, headers = api_instance.delete_waa_s_application_with_http_info(app_id)
|
|
128
|
+
p status_code # => 2xx
|
|
129
|
+
p headers # => { ... }
|
|
130
|
+
p data # => nil
|
|
131
|
+
rescue Zyphr::ApiError => e
|
|
132
|
+
puts "Error when calling WaaSApplicationsApi->delete_waa_s_application_with_http_info: #{e}"
|
|
133
|
+
end
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Parameters
|
|
137
|
+
|
|
138
|
+
| Name | Type | Description | Notes |
|
|
139
|
+
| ---- | ---- | ----------- | ----- |
|
|
140
|
+
| **app_id** | **String** | | |
|
|
141
|
+
|
|
142
|
+
### Return type
|
|
143
|
+
|
|
144
|
+
nil (empty response body)
|
|
145
|
+
|
|
146
|
+
### Authorization
|
|
147
|
+
|
|
148
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
149
|
+
|
|
150
|
+
### HTTP request headers
|
|
151
|
+
|
|
152
|
+
- **Content-Type**: Not defined
|
|
153
|
+
- **Accept**: Not defined
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
## get_waa_s_application
|
|
157
|
+
|
|
158
|
+
> <CreateWaaSApplication201Response> get_waa_s_application(app_id)
|
|
159
|
+
|
|
160
|
+
Get a WaaS application
|
|
161
|
+
|
|
162
|
+
Get a specific Webhooks-as-a-Service application by ID.
|
|
163
|
+
|
|
164
|
+
### Examples
|
|
165
|
+
|
|
166
|
+
```ruby
|
|
167
|
+
require 'time'
|
|
168
|
+
require 'zyphr'
|
|
169
|
+
# setup authorization
|
|
170
|
+
Zyphr.configure do |config|
|
|
171
|
+
# Configure API key authorization: ApiKeyAuth
|
|
172
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
173
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
174
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
api_instance = Zyphr::WaaSApplicationsApi.new
|
|
178
|
+
app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
179
|
+
|
|
180
|
+
begin
|
|
181
|
+
# Get a WaaS application
|
|
182
|
+
result = api_instance.get_waa_s_application(app_id)
|
|
183
|
+
p result
|
|
184
|
+
rescue Zyphr::ApiError => e
|
|
185
|
+
puts "Error when calling WaaSApplicationsApi->get_waa_s_application: #{e}"
|
|
186
|
+
end
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
#### Using the get_waa_s_application_with_http_info variant
|
|
190
|
+
|
|
191
|
+
This returns an Array which contains the response data, status code and headers.
|
|
192
|
+
|
|
193
|
+
> <Array(<CreateWaaSApplication201Response>, Integer, Hash)> get_waa_s_application_with_http_info(app_id)
|
|
194
|
+
|
|
195
|
+
```ruby
|
|
196
|
+
begin
|
|
197
|
+
# Get a WaaS application
|
|
198
|
+
data, status_code, headers = api_instance.get_waa_s_application_with_http_info(app_id)
|
|
199
|
+
p status_code # => 2xx
|
|
200
|
+
p headers # => { ... }
|
|
201
|
+
p data # => <CreateWaaSApplication201Response>
|
|
202
|
+
rescue Zyphr::ApiError => e
|
|
203
|
+
puts "Error when calling WaaSApplicationsApi->get_waa_s_application_with_http_info: #{e}"
|
|
204
|
+
end
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Parameters
|
|
208
|
+
|
|
209
|
+
| Name | Type | Description | Notes |
|
|
210
|
+
| ---- | ---- | ----------- | ----- |
|
|
211
|
+
| **app_id** | **String** | | |
|
|
212
|
+
|
|
213
|
+
### Return type
|
|
214
|
+
|
|
215
|
+
[**CreateWaaSApplication201Response**](CreateWaaSApplication201Response.md)
|
|
216
|
+
|
|
217
|
+
### Authorization
|
|
218
|
+
|
|
219
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
220
|
+
|
|
221
|
+
### HTTP request headers
|
|
222
|
+
|
|
223
|
+
- **Content-Type**: Not defined
|
|
224
|
+
- **Accept**: application/json
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
## get_waa_s_usage
|
|
228
|
+
|
|
229
|
+
> <GetWaaSUsage200Response> get_waa_s_usage(app_id)
|
|
230
|
+
|
|
231
|
+
Get WaaS usage
|
|
232
|
+
|
|
233
|
+
Get current usage counts and plan limits for WaaS resources.
|
|
234
|
+
|
|
235
|
+
### Examples
|
|
236
|
+
|
|
237
|
+
```ruby
|
|
238
|
+
require 'time'
|
|
239
|
+
require 'zyphr'
|
|
240
|
+
# setup authorization
|
|
241
|
+
Zyphr.configure do |config|
|
|
242
|
+
# Configure API key authorization: ApiKeyAuth
|
|
243
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
244
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
245
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
api_instance = Zyphr::WaaSApplicationsApi.new
|
|
249
|
+
app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
250
|
+
|
|
251
|
+
begin
|
|
252
|
+
# Get WaaS usage
|
|
253
|
+
result = api_instance.get_waa_s_usage(app_id)
|
|
254
|
+
p result
|
|
255
|
+
rescue Zyphr::ApiError => e
|
|
256
|
+
puts "Error when calling WaaSApplicationsApi->get_waa_s_usage: #{e}"
|
|
257
|
+
end
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
#### Using the get_waa_s_usage_with_http_info variant
|
|
261
|
+
|
|
262
|
+
This returns an Array which contains the response data, status code and headers.
|
|
263
|
+
|
|
264
|
+
> <Array(<GetWaaSUsage200Response>, Integer, Hash)> get_waa_s_usage_with_http_info(app_id)
|
|
265
|
+
|
|
266
|
+
```ruby
|
|
267
|
+
begin
|
|
268
|
+
# Get WaaS usage
|
|
269
|
+
data, status_code, headers = api_instance.get_waa_s_usage_with_http_info(app_id)
|
|
270
|
+
p status_code # => 2xx
|
|
271
|
+
p headers # => { ... }
|
|
272
|
+
p data # => <GetWaaSUsage200Response>
|
|
273
|
+
rescue Zyphr::ApiError => e
|
|
274
|
+
puts "Error when calling WaaSApplicationsApi->get_waa_s_usage_with_http_info: #{e}"
|
|
275
|
+
end
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
### Parameters
|
|
279
|
+
|
|
280
|
+
| Name | Type | Description | Notes |
|
|
281
|
+
| ---- | ---- | ----------- | ----- |
|
|
282
|
+
| **app_id** | **String** | | |
|
|
283
|
+
|
|
284
|
+
### Return type
|
|
285
|
+
|
|
286
|
+
[**GetWaaSUsage200Response**](GetWaaSUsage200Response.md)
|
|
287
|
+
|
|
288
|
+
### Authorization
|
|
289
|
+
|
|
290
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
291
|
+
|
|
292
|
+
### HTTP request headers
|
|
293
|
+
|
|
294
|
+
- **Content-Type**: Not defined
|
|
295
|
+
- **Accept**: application/json
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
## list_waa_s_applications
|
|
299
|
+
|
|
300
|
+
> <ListWaaSApplications200Response> list_waa_s_applications(opts)
|
|
301
|
+
|
|
302
|
+
List WaaS applications
|
|
303
|
+
|
|
304
|
+
List all Webhooks-as-a-Service applications in the workspace.
|
|
305
|
+
|
|
306
|
+
### Examples
|
|
307
|
+
|
|
308
|
+
```ruby
|
|
309
|
+
require 'time'
|
|
310
|
+
require 'zyphr'
|
|
311
|
+
# setup authorization
|
|
312
|
+
Zyphr.configure do |config|
|
|
313
|
+
# Configure API key authorization: ApiKeyAuth
|
|
314
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
315
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
316
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
api_instance = Zyphr::WaaSApplicationsApi.new
|
|
320
|
+
opts = {
|
|
321
|
+
limit: 56, # Integer |
|
|
322
|
+
offset: 56, # Integer |
|
|
323
|
+
status: 'active' # String |
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
begin
|
|
327
|
+
# List WaaS applications
|
|
328
|
+
result = api_instance.list_waa_s_applications(opts)
|
|
329
|
+
p result
|
|
330
|
+
rescue Zyphr::ApiError => e
|
|
331
|
+
puts "Error when calling WaaSApplicationsApi->list_waa_s_applications: #{e}"
|
|
332
|
+
end
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
#### Using the list_waa_s_applications_with_http_info variant
|
|
336
|
+
|
|
337
|
+
This returns an Array which contains the response data, status code and headers.
|
|
338
|
+
|
|
339
|
+
> <Array(<ListWaaSApplications200Response>, Integer, Hash)> list_waa_s_applications_with_http_info(opts)
|
|
340
|
+
|
|
341
|
+
```ruby
|
|
342
|
+
begin
|
|
343
|
+
# List WaaS applications
|
|
344
|
+
data, status_code, headers = api_instance.list_waa_s_applications_with_http_info(opts)
|
|
345
|
+
p status_code # => 2xx
|
|
346
|
+
p headers # => { ... }
|
|
347
|
+
p data # => <ListWaaSApplications200Response>
|
|
348
|
+
rescue Zyphr::ApiError => e
|
|
349
|
+
puts "Error when calling WaaSApplicationsApi->list_waa_s_applications_with_http_info: #{e}"
|
|
350
|
+
end
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### Parameters
|
|
354
|
+
|
|
355
|
+
| Name | Type | Description | Notes |
|
|
356
|
+
| ---- | ---- | ----------- | ----- |
|
|
357
|
+
| **limit** | **Integer** | | [optional][default to 50] |
|
|
358
|
+
| **offset** | **Integer** | | [optional][default to 0] |
|
|
359
|
+
| **status** | **String** | | [optional] |
|
|
360
|
+
|
|
361
|
+
### Return type
|
|
362
|
+
|
|
363
|
+
[**ListWaaSApplications200Response**](ListWaaSApplications200Response.md)
|
|
364
|
+
|
|
365
|
+
### Authorization
|
|
366
|
+
|
|
367
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
368
|
+
|
|
369
|
+
### HTTP request headers
|
|
370
|
+
|
|
371
|
+
- **Content-Type**: Not defined
|
|
372
|
+
- **Accept**: application/json
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
## update_waa_s_application
|
|
376
|
+
|
|
377
|
+
> <CreateWaaSApplication201Response> update_waa_s_application(app_id, update_waa_s_application_request)
|
|
378
|
+
|
|
379
|
+
Update a WaaS application
|
|
380
|
+
|
|
381
|
+
Update the name, description, or status of a WaaS application.
|
|
382
|
+
|
|
383
|
+
### Examples
|
|
384
|
+
|
|
385
|
+
```ruby
|
|
386
|
+
require 'time'
|
|
387
|
+
require 'zyphr'
|
|
388
|
+
# setup authorization
|
|
389
|
+
Zyphr.configure do |config|
|
|
390
|
+
# Configure API key authorization: ApiKeyAuth
|
|
391
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
392
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
393
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
api_instance = Zyphr::WaaSApplicationsApi.new
|
|
397
|
+
app_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
398
|
+
update_waa_s_application_request = Zyphr::UpdateWaaSApplicationRequest.new # UpdateWaaSApplicationRequest |
|
|
399
|
+
|
|
400
|
+
begin
|
|
401
|
+
# Update a WaaS application
|
|
402
|
+
result = api_instance.update_waa_s_application(app_id, update_waa_s_application_request)
|
|
403
|
+
p result
|
|
404
|
+
rescue Zyphr::ApiError => e
|
|
405
|
+
puts "Error when calling WaaSApplicationsApi->update_waa_s_application: #{e}"
|
|
406
|
+
end
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
#### Using the update_waa_s_application_with_http_info variant
|
|
410
|
+
|
|
411
|
+
This returns an Array which contains the response data, status code and headers.
|
|
412
|
+
|
|
413
|
+
> <Array(<CreateWaaSApplication201Response>, Integer, Hash)> update_waa_s_application_with_http_info(app_id, update_waa_s_application_request)
|
|
414
|
+
|
|
415
|
+
```ruby
|
|
416
|
+
begin
|
|
417
|
+
# Update a WaaS application
|
|
418
|
+
data, status_code, headers = api_instance.update_waa_s_application_with_http_info(app_id, update_waa_s_application_request)
|
|
419
|
+
p status_code # => 2xx
|
|
420
|
+
p headers # => { ... }
|
|
421
|
+
p data # => <CreateWaaSApplication201Response>
|
|
422
|
+
rescue Zyphr::ApiError => e
|
|
423
|
+
puts "Error when calling WaaSApplicationsApi->update_waa_s_application_with_http_info: #{e}"
|
|
424
|
+
end
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### Parameters
|
|
428
|
+
|
|
429
|
+
| Name | Type | Description | Notes |
|
|
430
|
+
| ---- | ---- | ----------- | ----- |
|
|
431
|
+
| **app_id** | **String** | | |
|
|
432
|
+
| **update_waa_s_application_request** | [**UpdateWaaSApplicationRequest**](UpdateWaaSApplicationRequest.md) | | |
|
|
433
|
+
|
|
434
|
+
### Return type
|
|
435
|
+
|
|
436
|
+
[**CreateWaaSApplication201Response**](CreateWaaSApplication201Response.md)
|
|
437
|
+
|
|
438
|
+
### Authorization
|
|
439
|
+
|
|
440
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
441
|
+
|
|
442
|
+
### HTTP request headers
|
|
443
|
+
|
|
444
|
+
- **Content-Type**: application/json
|
|
445
|
+
- **Accept**: application/json
|
|
446
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Zyphr::WaaSBatchPublishRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **events** | [**Array<WaaSPublishEventRequest>**](WaaSPublishEventRequest.md) | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'zyphr'
|
|
13
|
+
|
|
14
|
+
instance = Zyphr::WaaSBatchPublishRequest.new(
|
|
15
|
+
events: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Zyphr::WaaSBatchPublishResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **published** | **Integer** | | [optional] |
|
|
8
|
+
| **failed** | **Integer** | | [optional] |
|
|
9
|
+
| **results** | **Array<Object>** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'zyphr'
|
|
15
|
+
|
|
16
|
+
instance = Zyphr::WaaSBatchPublishResponse.new(
|
|
17
|
+
published: null,
|
|
18
|
+
failed: null,
|
|
19
|
+
results: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|