hooksniff 0.1.0 → 0.3.0
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 +4 -1
- data/lib/openapi_client/api/admin_api.rb +452 -0
- data/lib/openapi_client/api/alerts_api.rb +322 -0
- data/lib/openapi_client/api/analytics_api.rb +208 -0
- data/lib/openapi_client/api/api_keys_api.rb +252 -0
- data/lib/openapi_client/api/audit_log_api.rb +140 -0
- data/lib/openapi_client/api/auth_api.rb +1080 -0
- data/lib/openapi_client/api/billing_api.rb +500 -0
- data/lib/openapi_client/api/contact_api.rb +88 -0
- data/lib/openapi_client/api/custom_domains_api.rb +253 -0
- data/lib/openapi_client/api/customer_portal_api.rb +700 -0
- data/lib/openapi_client/api/delivery_details_api.rb +146 -0
- data/lib/openapi_client/api/devices_api.rb +202 -0
- data/lib/openapi_client/api/embed_api.rb +128 -0
- data/lib/openapi_client/api/endpoints_api.rb +468 -0
- data/lib/openapi_client/api/events_api.rb +75 -0
- data/lib/openapi_client/api/health_api.rb +193 -0
- data/lib/openapi_client/api/inbound_api.rb +170 -0
- data/lib/openapi_client/api/notifications_api.rb +309 -0
- data/lib/openapi_client/api/o_auth_api.rb +181 -0
- data/lib/openapi_client/api/outbound_ips_api.rb +77 -0
- data/lib/openapi_client/api/playground_api.rb +143 -0
- data/lib/openapi_client/api/rate_limits_api.rb +252 -0
- data/lib/openapi_client/api/routing_api.rb +393 -0
- data/lib/openapi_client/api/schemas_api.rb +268 -0
- data/lib/openapi_client/api/search_api.rb +96 -0
- data/lib/openapi_client/api/simulator_api.rb +82 -0
- data/lib/openapi_client/api/sso_api.rb +241 -0
- data/lib/openapi_client/api/stats_api.rb +77 -0
- data/lib/openapi_client/api/stream_api.rb +88 -0
- data/lib/openapi_client/api/teams_api.rb +476 -0
- data/lib/openapi_client/api/templates_api.rb +213 -0
- data/lib/openapi_client/api/transforms_api.rb +368 -0
- data/lib/openapi_client/api/webhooks_api.rb +534 -0
- data/lib/openapi_client/api_client.rb +397 -0
- data/lib/openapi_client/api_error.rb +58 -0
- data/lib/openapi_client/api_model_base.rb +88 -0
- data/lib/openapi_client/configuration.rb +312 -0
- data/lib/openapi_client/models/admin_revenue_get200_response_inner.rb +165 -0
- data/lib/openapi_client/models/admin_sdk_update_post_request.rb +156 -0
- data/lib/openapi_client/models/admin_users_id_plan_put_request.rb +181 -0
- data/lib/openapi_client/models/admin_users_id_status_put_request.rb +147 -0
- data/lib/openapi_client/models/alert_rule.rb +237 -0
- data/lib/openapi_client/models/api_key_info.rb +185 -0
- data/lib/openapi_client/models/apply_template_request.rb +173 -0
- data/lib/openapi_client/models/apply_template_response.rb +156 -0
- data/lib/openapi_client/models/auth2fa_enable_post200_response.rb +156 -0
- data/lib/openapi_client/models/auth_login_post200_response.rb +104 -0
- data/lib/openapi_client/models/auth_response.rb +167 -0
- data/lib/openapi_client/models/batch_replay_request.rb +166 -0
- data/lib/openapi_client/models/batch_response.rb +160 -0
- data/lib/openapi_client/models/batch_response_errors_inner.rb +156 -0
- data/lib/openapi_client/models/batch_webhook_request.rb +166 -0
- data/lib/openapi_client/models/billing_portal_post200_response.rb +147 -0
- data/lib/openapi_client/models/change_password_request.rb +199 -0
- data/lib/openapi_client/models/change_role_request.rb +188 -0
- data/lib/openapi_client/models/confirm2fa_request.rb +182 -0
- data/lib/openapi_client/models/contact_request.rb +242 -0
- data/lib/openapi_client/models/contact_response.rb +156 -0
- data/lib/openapi_client/models/create_alert_request.rb +277 -0
- data/lib/openapi_client/models/create_api_key_response.rb +175 -0
- data/lib/openapi_client/models/create_endpoint_request.rb +288 -0
- data/lib/openapi_client/models/create_team_request.rb +164 -0
- data/lib/openapi_client/models/create_transform_rule_request.rb +216 -0
- data/lib/openapi_client/models/create_webhook_request.rb +201 -0
- data/lib/openapi_client/models/custom_domains_post_request.rb +147 -0
- data/lib/openapi_client/models/customer_response.rb +256 -0
- data/lib/openapi_client/models/delivery.rb +246 -0
- data/lib/openapi_client/models/delivery_attempt.rb +205 -0
- data/lib/openapi_client/models/delivery_list_response.rb +176 -0
- data/lib/openapi_client/models/delivery_trend_response.rb +158 -0
- data/lib/openapi_client/models/delivery_trend_response_buckets_inner.rb +174 -0
- data/lib/openapi_client/models/device_token_response.rb +174 -0
- data/lib/openapi_client/models/disable2fa_request.rb +164 -0
- data/lib/openapi_client/models/enable2fa_request.rb +164 -0
- data/lib/openapi_client/models/endpoint.rb +321 -0
- data/lib/openapi_client/models/endpoint_health.rb +183 -0
- data/lib/openapi_client/models/endpoints_endpoint_id_transforms_test_post_request.rb +156 -0
- data/lib/openapi_client/models/endpoints_id_rotate_secret_post200_response.rb +156 -0
- data/lib/openapi_client/models/error.rb +165 -0
- data/lib/openapi_client/models/forgot_password_request.rb +164 -0
- data/lib/openapi_client/models/invite_request.rb +207 -0
- data/lib/openapi_client/models/invoice_response.rb +183 -0
- data/lib/openapi_client/models/latency_trend_response.rb +167 -0
- data/lib/openapi_client/models/latency_trend_response_buckets_inner.rb +165 -0
- data/lib/openapi_client/models/login_request.rb +190 -0
- data/lib/openapi_client/models/notification.rb +193 -0
- data/lib/openapi_client/models/notification_list_response.rb +167 -0
- data/lib/openapi_client/models/notification_preferences.rb +201 -0
- data/lib/openapi_client/models/notifications_unread_count_get200_response.rb +147 -0
- data/lib/openapi_client/models/outbound_ips_response.rb +158 -0
- data/lib/openapi_client/models/paginated_users.rb +176 -0
- data/lib/openapi_client/models/playground_get200_response.rb +160 -0
- data/lib/openapi_client/models/portal_notifications_put200_response.rb +156 -0
- data/lib/openapi_client/models/portal_profile.rb +184 -0
- data/lib/openapi_client/models/refresh_token_request.rb +164 -0
- data/lib/openapi_client/models/register_device_request.rb +208 -0
- data/lib/openapi_client/models/register_request.rb +201 -0
- data/lib/openapi_client/models/register_schema_request.rb +191 -0
- data/lib/openapi_client/models/resend_verification_request.rb +164 -0
- data/lib/openapi_client/models/reset_password_request.rb +199 -0
- data/lib/openapi_client/models/retry_policy.rb +216 -0
- data/lib/openapi_client/models/routing_info.rb +193 -0
- data/lib/openapi_client/models/search_result.rb +158 -0
- data/lib/openapi_client/models/simulator_post_request.rb +165 -0
- data/lib/openapi_client/models/sso_config_post_request.rb +190 -0
- data/lib/openapi_client/models/stats_response.rb +210 -0
- data/lib/openapi_client/models/stream_params.rb +201 -0
- data/lib/openapi_client/models/subscription_response.rb +201 -0
- data/lib/openapi_client/models/success_rate_response.rb +183 -0
- data/lib/openapi_client/models/system_stats.rb +185 -0
- data/lib/openapi_client/models/system_stats_plan_breakdown_inner.rb +156 -0
- data/lib/openapi_client/models/system_status.rb +210 -0
- data/lib/openapi_client/models/system_status_components_inner.rb +184 -0
- data/lib/openapi_client/models/team.rb +165 -0
- data/lib/openapi_client/models/team_detail_response.rb +169 -0
- data/lib/openapi_client/models/team_invite.rb +174 -0
- data/lib/openapi_client/models/team_member.rb +193 -0
- data/lib/openapi_client/models/test_webhook_request.rb +199 -0
- data/lib/openapi_client/models/test_webhook_response.rb +174 -0
- data/lib/openapi_client/models/transform_rule.rb +201 -0
- data/lib/openapi_client/models/two_factor_required_response.rb +165 -0
- data/lib/openapi_client/models/update_endpoint_request.rb +278 -0
- data/lib/openapi_client/models/update_notification_preferences.rb +195 -0
- data/lib/openapi_client/models/update_profile_request.rb +190 -0
- data/lib/openapi_client/models/update_routing_request.rb +190 -0
- data/lib/openapi_client/models/upgrade_request.rb +209 -0
- data/lib/openapi_client/models/upgrade_response.rb +166 -0
- data/lib/openapi_client/models/usage_response.rb +201 -0
- data/lib/openapi_client/models/user_summary.rb +193 -0
- data/lib/openapi_client/models/validate_event_request.rb +164 -0
- data/lib/openapi_client/models/verify2fa_request.rb +208 -0
- data/lib/openapi_client/models/verify_email_request.rb +164 -0
- data/lib/openapi_client/models/webhook_template.rb +183 -0
- data/lib/openapi_client/version.rb +15 -0
- data/lib/openapi_client.rb +169 -0
- metadata +139 -10
- data/lib/hooksniff/client.rb +0 -213
- data/lib/hooksniff/errors.rb +0 -43
- data/lib/hooksniff/models.rb +0 -136
- data/lib/hooksniff/verification.rb +0 -134
- data/lib/hooksniff/version.rb +0 -5
- data/lib/hooksniff.rb +0 -19
|
@@ -0,0 +1,700 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#HookSniff API
|
|
3
|
+
|
|
4
|
+
#Webhook delivery, monitoring, and management API. All endpoints under `/v1` require authentication via `Authorization: Bearer <api_key>` header unless marked as **Public**.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: support@hooksniff.vercel.app
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module OpenapiClient
|
|
16
|
+
class CustomerPortalApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# List API keys (portal)
|
|
23
|
+
# @param [Hash] opts the optional parameters
|
|
24
|
+
# @return [Array<ApiKeyInfo>]
|
|
25
|
+
def portal_api_keys_get(opts = {})
|
|
26
|
+
data, _status_code, _headers = portal_api_keys_get_with_http_info(opts)
|
|
27
|
+
data
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# List API keys (portal)
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(Array<ApiKeyInfo>, Integer, Hash)>] Array<ApiKeyInfo> data, response status code and response headers
|
|
33
|
+
def portal_api_keys_get_with_http_info(opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: CustomerPortalApi.portal_api_keys_get ...'
|
|
36
|
+
end
|
|
37
|
+
# resource path
|
|
38
|
+
local_var_path = '/portal/api-keys'
|
|
39
|
+
|
|
40
|
+
# query parameters
|
|
41
|
+
query_params = opts[:query_params] || {}
|
|
42
|
+
|
|
43
|
+
# header parameters
|
|
44
|
+
header_params = opts[:header_params] || {}
|
|
45
|
+
# HTTP header 'Accept' (if needed)
|
|
46
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
47
|
+
|
|
48
|
+
# form parameters
|
|
49
|
+
form_params = opts[:form_params] || {}
|
|
50
|
+
|
|
51
|
+
# http body (model)
|
|
52
|
+
post_body = opts[:debug_body]
|
|
53
|
+
|
|
54
|
+
# return_type
|
|
55
|
+
return_type = opts[:debug_return_type] || 'Array<ApiKeyInfo>'
|
|
56
|
+
|
|
57
|
+
# auth_names
|
|
58
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
59
|
+
|
|
60
|
+
new_options = opts.merge(
|
|
61
|
+
:operation => :"CustomerPortalApi.portal_api_keys_get",
|
|
62
|
+
:header_params => header_params,
|
|
63
|
+
:query_params => query_params,
|
|
64
|
+
:form_params => form_params,
|
|
65
|
+
:body => post_body,
|
|
66
|
+
:auth_names => auth_names,
|
|
67
|
+
:return_type => return_type
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
71
|
+
if @api_client.config.debugging
|
|
72
|
+
@api_client.config.logger.debug "API called: CustomerPortalApi#portal_api_keys_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
73
|
+
end
|
|
74
|
+
return data, status_code, headers
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Revoke API key (portal)
|
|
78
|
+
# @param key_id [String]
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [nil]
|
|
81
|
+
def portal_api_keys_key_id_delete(key_id, opts = {})
|
|
82
|
+
portal_api_keys_key_id_delete_with_http_info(key_id, opts)
|
|
83
|
+
nil
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Revoke API key (portal)
|
|
87
|
+
# @param key_id [String]
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
90
|
+
def portal_api_keys_key_id_delete_with_http_info(key_id, opts = {})
|
|
91
|
+
if @api_client.config.debugging
|
|
92
|
+
@api_client.config.logger.debug 'Calling API: CustomerPortalApi.portal_api_keys_key_id_delete ...'
|
|
93
|
+
end
|
|
94
|
+
# verify the required parameter 'key_id' is set
|
|
95
|
+
if @api_client.config.client_side_validation && key_id.nil?
|
|
96
|
+
fail ArgumentError, "Missing the required parameter 'key_id' when calling CustomerPortalApi.portal_api_keys_key_id_delete"
|
|
97
|
+
end
|
|
98
|
+
# resource path
|
|
99
|
+
local_var_path = '/portal/api-keys/{key_id}'.sub('{key_id}', CGI.escape(key_id.to_s))
|
|
100
|
+
|
|
101
|
+
# query parameters
|
|
102
|
+
query_params = opts[:query_params] || {}
|
|
103
|
+
|
|
104
|
+
# header parameters
|
|
105
|
+
header_params = opts[:header_params] || {}
|
|
106
|
+
|
|
107
|
+
# form parameters
|
|
108
|
+
form_params = opts[:form_params] || {}
|
|
109
|
+
|
|
110
|
+
# http body (model)
|
|
111
|
+
post_body = opts[:debug_body]
|
|
112
|
+
|
|
113
|
+
# return_type
|
|
114
|
+
return_type = opts[:debug_return_type]
|
|
115
|
+
|
|
116
|
+
# auth_names
|
|
117
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
118
|
+
|
|
119
|
+
new_options = opts.merge(
|
|
120
|
+
:operation => :"CustomerPortalApi.portal_api_keys_key_id_delete",
|
|
121
|
+
:header_params => header_params,
|
|
122
|
+
:query_params => query_params,
|
|
123
|
+
:form_params => form_params,
|
|
124
|
+
:body => post_body,
|
|
125
|
+
:auth_names => auth_names,
|
|
126
|
+
:return_type => return_type
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
130
|
+
if @api_client.config.debugging
|
|
131
|
+
@api_client.config.logger.debug "API called: CustomerPortalApi#portal_api_keys_key_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
+
end
|
|
133
|
+
return data, status_code, headers
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Create API key (portal)
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @return [CreateApiKeyResponse]
|
|
139
|
+
def portal_api_keys_post(opts = {})
|
|
140
|
+
data, _status_code, _headers = portal_api_keys_post_with_http_info(opts)
|
|
141
|
+
data
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Create API key (portal)
|
|
145
|
+
# @param [Hash] opts the optional parameters
|
|
146
|
+
# @return [Array<(CreateApiKeyResponse, Integer, Hash)>] CreateApiKeyResponse data, response status code and response headers
|
|
147
|
+
def portal_api_keys_post_with_http_info(opts = {})
|
|
148
|
+
if @api_client.config.debugging
|
|
149
|
+
@api_client.config.logger.debug 'Calling API: CustomerPortalApi.portal_api_keys_post ...'
|
|
150
|
+
end
|
|
151
|
+
# resource path
|
|
152
|
+
local_var_path = '/portal/api-keys'
|
|
153
|
+
|
|
154
|
+
# query parameters
|
|
155
|
+
query_params = opts[:query_params] || {}
|
|
156
|
+
|
|
157
|
+
# header parameters
|
|
158
|
+
header_params = opts[:header_params] || {}
|
|
159
|
+
# HTTP header 'Accept' (if needed)
|
|
160
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
161
|
+
|
|
162
|
+
# form parameters
|
|
163
|
+
form_params = opts[:form_params] || {}
|
|
164
|
+
|
|
165
|
+
# http body (model)
|
|
166
|
+
post_body = opts[:debug_body]
|
|
167
|
+
|
|
168
|
+
# return_type
|
|
169
|
+
return_type = opts[:debug_return_type] || 'CreateApiKeyResponse'
|
|
170
|
+
|
|
171
|
+
# auth_names
|
|
172
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
173
|
+
|
|
174
|
+
new_options = opts.merge(
|
|
175
|
+
:operation => :"CustomerPortalApi.portal_api_keys_post",
|
|
176
|
+
:header_params => header_params,
|
|
177
|
+
:query_params => query_params,
|
|
178
|
+
:form_params => form_params,
|
|
179
|
+
:body => post_body,
|
|
180
|
+
:auth_names => auth_names,
|
|
181
|
+
:return_type => return_type
|
|
182
|
+
)
|
|
183
|
+
|
|
184
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
185
|
+
if @api_client.config.debugging
|
|
186
|
+
@api_client.config.logger.debug "API called: CustomerPortalApi#portal_api_keys_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
187
|
+
end
|
|
188
|
+
return data, status_code, headers
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Get portal configuration
|
|
192
|
+
# @param [Hash] opts the optional parameters
|
|
193
|
+
# @return [nil]
|
|
194
|
+
def portal_config_get(opts = {})
|
|
195
|
+
portal_config_get_with_http_info(opts)
|
|
196
|
+
nil
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Get portal configuration
|
|
200
|
+
# @param [Hash] opts the optional parameters
|
|
201
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
202
|
+
def portal_config_get_with_http_info(opts = {})
|
|
203
|
+
if @api_client.config.debugging
|
|
204
|
+
@api_client.config.logger.debug 'Calling API: CustomerPortalApi.portal_config_get ...'
|
|
205
|
+
end
|
|
206
|
+
# resource path
|
|
207
|
+
local_var_path = '/portal/config'
|
|
208
|
+
|
|
209
|
+
# query parameters
|
|
210
|
+
query_params = opts[:query_params] || {}
|
|
211
|
+
|
|
212
|
+
# header parameters
|
|
213
|
+
header_params = opts[:header_params] || {}
|
|
214
|
+
|
|
215
|
+
# form parameters
|
|
216
|
+
form_params = opts[:form_params] || {}
|
|
217
|
+
|
|
218
|
+
# http body (model)
|
|
219
|
+
post_body = opts[:debug_body]
|
|
220
|
+
|
|
221
|
+
# return_type
|
|
222
|
+
return_type = opts[:debug_return_type]
|
|
223
|
+
|
|
224
|
+
# auth_names
|
|
225
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
226
|
+
|
|
227
|
+
new_options = opts.merge(
|
|
228
|
+
:operation => :"CustomerPortalApi.portal_config_get",
|
|
229
|
+
:header_params => header_params,
|
|
230
|
+
:query_params => query_params,
|
|
231
|
+
:form_params => form_params,
|
|
232
|
+
:body => post_body,
|
|
233
|
+
:auth_names => auth_names,
|
|
234
|
+
:return_type => return_type
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
238
|
+
if @api_client.config.debugging
|
|
239
|
+
@api_client.config.logger.debug "API called: CustomerPortalApi#portal_config_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
240
|
+
end
|
|
241
|
+
return data, status_code, headers
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Update portal configuration
|
|
245
|
+
# @param [Hash] opts the optional parameters
|
|
246
|
+
# @return [nil]
|
|
247
|
+
def portal_config_post(opts = {})
|
|
248
|
+
portal_config_post_with_http_info(opts)
|
|
249
|
+
nil
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# Update portal configuration
|
|
253
|
+
# @param [Hash] opts the optional parameters
|
|
254
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
255
|
+
def portal_config_post_with_http_info(opts = {})
|
|
256
|
+
if @api_client.config.debugging
|
|
257
|
+
@api_client.config.logger.debug 'Calling API: CustomerPortalApi.portal_config_post ...'
|
|
258
|
+
end
|
|
259
|
+
# resource path
|
|
260
|
+
local_var_path = '/portal/config'
|
|
261
|
+
|
|
262
|
+
# query parameters
|
|
263
|
+
query_params = opts[:query_params] || {}
|
|
264
|
+
|
|
265
|
+
# header parameters
|
|
266
|
+
header_params = opts[:header_params] || {}
|
|
267
|
+
|
|
268
|
+
# form parameters
|
|
269
|
+
form_params = opts[:form_params] || {}
|
|
270
|
+
|
|
271
|
+
# http body (model)
|
|
272
|
+
post_body = opts[:debug_body]
|
|
273
|
+
|
|
274
|
+
# return_type
|
|
275
|
+
return_type = opts[:debug_return_type]
|
|
276
|
+
|
|
277
|
+
# auth_names
|
|
278
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
279
|
+
|
|
280
|
+
new_options = opts.merge(
|
|
281
|
+
:operation => :"CustomerPortalApi.portal_config_post",
|
|
282
|
+
:header_params => header_params,
|
|
283
|
+
:query_params => query_params,
|
|
284
|
+
:form_params => form_params,
|
|
285
|
+
:body => post_body,
|
|
286
|
+
:auth_names => auth_names,
|
|
287
|
+
:return_type => return_type
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
291
|
+
if @api_client.config.debugging
|
|
292
|
+
@api_client.config.logger.debug "API called: CustomerPortalApi#portal_config_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
293
|
+
end
|
|
294
|
+
return data, status_code, headers
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Get portal embed code
|
|
298
|
+
# @param [Hash] opts the optional parameters
|
|
299
|
+
# @return [nil]
|
|
300
|
+
def portal_embed_code_get(opts = {})
|
|
301
|
+
portal_embed_code_get_with_http_info(opts)
|
|
302
|
+
nil
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Get portal embed code
|
|
306
|
+
# @param [Hash] opts the optional parameters
|
|
307
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
308
|
+
def portal_embed_code_get_with_http_info(opts = {})
|
|
309
|
+
if @api_client.config.debugging
|
|
310
|
+
@api_client.config.logger.debug 'Calling API: CustomerPortalApi.portal_embed_code_get ...'
|
|
311
|
+
end
|
|
312
|
+
# resource path
|
|
313
|
+
local_var_path = '/portal/embed-code'
|
|
314
|
+
|
|
315
|
+
# query parameters
|
|
316
|
+
query_params = opts[:query_params] || {}
|
|
317
|
+
|
|
318
|
+
# header parameters
|
|
319
|
+
header_params = opts[:header_params] || {}
|
|
320
|
+
|
|
321
|
+
# form parameters
|
|
322
|
+
form_params = opts[:form_params] || {}
|
|
323
|
+
|
|
324
|
+
# http body (model)
|
|
325
|
+
post_body = opts[:debug_body]
|
|
326
|
+
|
|
327
|
+
# return_type
|
|
328
|
+
return_type = opts[:debug_return_type]
|
|
329
|
+
|
|
330
|
+
# auth_names
|
|
331
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
332
|
+
|
|
333
|
+
new_options = opts.merge(
|
|
334
|
+
:operation => :"CustomerPortalApi.portal_embed_code_get",
|
|
335
|
+
:header_params => header_params,
|
|
336
|
+
:query_params => query_params,
|
|
337
|
+
:form_params => form_params,
|
|
338
|
+
:body => post_body,
|
|
339
|
+
:auth_names => auth_names,
|
|
340
|
+
:return_type => return_type
|
|
341
|
+
)
|
|
342
|
+
|
|
343
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
344
|
+
if @api_client.config.debugging
|
|
345
|
+
@api_client.config.logger.debug "API called: CustomerPortalApi#portal_embed_code_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
346
|
+
end
|
|
347
|
+
return data, status_code, headers
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
# Get portal profile
|
|
351
|
+
# @param [Hash] opts the optional parameters
|
|
352
|
+
# @return [PortalProfile]
|
|
353
|
+
def portal_me_get(opts = {})
|
|
354
|
+
data, _status_code, _headers = portal_me_get_with_http_info(opts)
|
|
355
|
+
data
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
# Get portal profile
|
|
359
|
+
# @param [Hash] opts the optional parameters
|
|
360
|
+
# @return [Array<(PortalProfile, Integer, Hash)>] PortalProfile data, response status code and response headers
|
|
361
|
+
def portal_me_get_with_http_info(opts = {})
|
|
362
|
+
if @api_client.config.debugging
|
|
363
|
+
@api_client.config.logger.debug 'Calling API: CustomerPortalApi.portal_me_get ...'
|
|
364
|
+
end
|
|
365
|
+
# resource path
|
|
366
|
+
local_var_path = '/portal/me'
|
|
367
|
+
|
|
368
|
+
# query parameters
|
|
369
|
+
query_params = opts[:query_params] || {}
|
|
370
|
+
|
|
371
|
+
# header parameters
|
|
372
|
+
header_params = opts[:header_params] || {}
|
|
373
|
+
# HTTP header 'Accept' (if needed)
|
|
374
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
375
|
+
|
|
376
|
+
# form parameters
|
|
377
|
+
form_params = opts[:form_params] || {}
|
|
378
|
+
|
|
379
|
+
# http body (model)
|
|
380
|
+
post_body = opts[:debug_body]
|
|
381
|
+
|
|
382
|
+
# return_type
|
|
383
|
+
return_type = opts[:debug_return_type] || 'PortalProfile'
|
|
384
|
+
|
|
385
|
+
# auth_names
|
|
386
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
387
|
+
|
|
388
|
+
new_options = opts.merge(
|
|
389
|
+
:operation => :"CustomerPortalApi.portal_me_get",
|
|
390
|
+
:header_params => header_params,
|
|
391
|
+
:query_params => query_params,
|
|
392
|
+
:form_params => form_params,
|
|
393
|
+
:body => post_body,
|
|
394
|
+
:auth_names => auth_names,
|
|
395
|
+
:return_type => return_type
|
|
396
|
+
)
|
|
397
|
+
|
|
398
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
399
|
+
if @api_client.config.debugging
|
|
400
|
+
@api_client.config.logger.debug "API called: CustomerPortalApi#portal_me_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
401
|
+
end
|
|
402
|
+
return data, status_code, headers
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Update portal profile
|
|
406
|
+
# @param update_profile_request [UpdateProfileRequest]
|
|
407
|
+
# @param [Hash] opts the optional parameters
|
|
408
|
+
# @return [nil]
|
|
409
|
+
def portal_me_put(update_profile_request, opts = {})
|
|
410
|
+
portal_me_put_with_http_info(update_profile_request, opts)
|
|
411
|
+
nil
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# Update portal profile
|
|
415
|
+
# @param update_profile_request [UpdateProfileRequest]
|
|
416
|
+
# @param [Hash] opts the optional parameters
|
|
417
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
418
|
+
def portal_me_put_with_http_info(update_profile_request, opts = {})
|
|
419
|
+
if @api_client.config.debugging
|
|
420
|
+
@api_client.config.logger.debug 'Calling API: CustomerPortalApi.portal_me_put ...'
|
|
421
|
+
end
|
|
422
|
+
# verify the required parameter 'update_profile_request' is set
|
|
423
|
+
if @api_client.config.client_side_validation && update_profile_request.nil?
|
|
424
|
+
fail ArgumentError, "Missing the required parameter 'update_profile_request' when calling CustomerPortalApi.portal_me_put"
|
|
425
|
+
end
|
|
426
|
+
# resource path
|
|
427
|
+
local_var_path = '/portal/me'
|
|
428
|
+
|
|
429
|
+
# query parameters
|
|
430
|
+
query_params = opts[:query_params] || {}
|
|
431
|
+
|
|
432
|
+
# header parameters
|
|
433
|
+
header_params = opts[:header_params] || {}
|
|
434
|
+
# HTTP header 'Content-Type'
|
|
435
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
436
|
+
if !content_type.nil?
|
|
437
|
+
header_params['Content-Type'] = content_type
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
# form parameters
|
|
441
|
+
form_params = opts[:form_params] || {}
|
|
442
|
+
|
|
443
|
+
# http body (model)
|
|
444
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_profile_request)
|
|
445
|
+
|
|
446
|
+
# return_type
|
|
447
|
+
return_type = opts[:debug_return_type]
|
|
448
|
+
|
|
449
|
+
# auth_names
|
|
450
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
451
|
+
|
|
452
|
+
new_options = opts.merge(
|
|
453
|
+
:operation => :"CustomerPortalApi.portal_me_put",
|
|
454
|
+
:header_params => header_params,
|
|
455
|
+
:query_params => query_params,
|
|
456
|
+
:form_params => form_params,
|
|
457
|
+
:body => post_body,
|
|
458
|
+
:auth_names => auth_names,
|
|
459
|
+
:return_type => return_type
|
|
460
|
+
)
|
|
461
|
+
|
|
462
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
463
|
+
if @api_client.config.debugging
|
|
464
|
+
@api_client.config.logger.debug "API called: CustomerPortalApi#portal_me_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
465
|
+
end
|
|
466
|
+
return data, status_code, headers
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
# Get notification preferences (portal)
|
|
470
|
+
# @param [Hash] opts the optional parameters
|
|
471
|
+
# @return [NotificationPreferences]
|
|
472
|
+
def portal_notifications_get(opts = {})
|
|
473
|
+
data, _status_code, _headers = portal_notifications_get_with_http_info(opts)
|
|
474
|
+
data
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# Get notification preferences (portal)
|
|
478
|
+
# @param [Hash] opts the optional parameters
|
|
479
|
+
# @return [Array<(NotificationPreferences, Integer, Hash)>] NotificationPreferences data, response status code and response headers
|
|
480
|
+
def portal_notifications_get_with_http_info(opts = {})
|
|
481
|
+
if @api_client.config.debugging
|
|
482
|
+
@api_client.config.logger.debug 'Calling API: CustomerPortalApi.portal_notifications_get ...'
|
|
483
|
+
end
|
|
484
|
+
# resource path
|
|
485
|
+
local_var_path = '/portal/notifications'
|
|
486
|
+
|
|
487
|
+
# query parameters
|
|
488
|
+
query_params = opts[:query_params] || {}
|
|
489
|
+
|
|
490
|
+
# header parameters
|
|
491
|
+
header_params = opts[:header_params] || {}
|
|
492
|
+
# HTTP header 'Accept' (if needed)
|
|
493
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
494
|
+
|
|
495
|
+
# form parameters
|
|
496
|
+
form_params = opts[:form_params] || {}
|
|
497
|
+
|
|
498
|
+
# http body (model)
|
|
499
|
+
post_body = opts[:debug_body]
|
|
500
|
+
|
|
501
|
+
# return_type
|
|
502
|
+
return_type = opts[:debug_return_type] || 'NotificationPreferences'
|
|
503
|
+
|
|
504
|
+
# auth_names
|
|
505
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
506
|
+
|
|
507
|
+
new_options = opts.merge(
|
|
508
|
+
:operation => :"CustomerPortalApi.portal_notifications_get",
|
|
509
|
+
:header_params => header_params,
|
|
510
|
+
:query_params => query_params,
|
|
511
|
+
:form_params => form_params,
|
|
512
|
+
:body => post_body,
|
|
513
|
+
:auth_names => auth_names,
|
|
514
|
+
:return_type => return_type
|
|
515
|
+
)
|
|
516
|
+
|
|
517
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
518
|
+
if @api_client.config.debugging
|
|
519
|
+
@api_client.config.logger.debug "API called: CustomerPortalApi#portal_notifications_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
520
|
+
end
|
|
521
|
+
return data, status_code, headers
|
|
522
|
+
end
|
|
523
|
+
|
|
524
|
+
# Update notification preferences (portal)
|
|
525
|
+
# @param update_notification_preferences [UpdateNotificationPreferences]
|
|
526
|
+
# @param [Hash] opts the optional parameters
|
|
527
|
+
# @return [PortalNotificationsPut200Response]
|
|
528
|
+
def portal_notifications_put(update_notification_preferences, opts = {})
|
|
529
|
+
data, _status_code, _headers = portal_notifications_put_with_http_info(update_notification_preferences, opts)
|
|
530
|
+
data
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# Update notification preferences (portal)
|
|
534
|
+
# @param update_notification_preferences [UpdateNotificationPreferences]
|
|
535
|
+
# @param [Hash] opts the optional parameters
|
|
536
|
+
# @return [Array<(PortalNotificationsPut200Response, Integer, Hash)>] PortalNotificationsPut200Response data, response status code and response headers
|
|
537
|
+
def portal_notifications_put_with_http_info(update_notification_preferences, opts = {})
|
|
538
|
+
if @api_client.config.debugging
|
|
539
|
+
@api_client.config.logger.debug 'Calling API: CustomerPortalApi.portal_notifications_put ...'
|
|
540
|
+
end
|
|
541
|
+
# verify the required parameter 'update_notification_preferences' is set
|
|
542
|
+
if @api_client.config.client_side_validation && update_notification_preferences.nil?
|
|
543
|
+
fail ArgumentError, "Missing the required parameter 'update_notification_preferences' when calling CustomerPortalApi.portal_notifications_put"
|
|
544
|
+
end
|
|
545
|
+
# resource path
|
|
546
|
+
local_var_path = '/portal/notifications'
|
|
547
|
+
|
|
548
|
+
# query parameters
|
|
549
|
+
query_params = opts[:query_params] || {}
|
|
550
|
+
|
|
551
|
+
# header parameters
|
|
552
|
+
header_params = opts[:header_params] || {}
|
|
553
|
+
# HTTP header 'Accept' (if needed)
|
|
554
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
555
|
+
# HTTP header 'Content-Type'
|
|
556
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
557
|
+
if !content_type.nil?
|
|
558
|
+
header_params['Content-Type'] = content_type
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
# form parameters
|
|
562
|
+
form_params = opts[:form_params] || {}
|
|
563
|
+
|
|
564
|
+
# http body (model)
|
|
565
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_notification_preferences)
|
|
566
|
+
|
|
567
|
+
# return_type
|
|
568
|
+
return_type = opts[:debug_return_type] || 'PortalNotificationsPut200Response'
|
|
569
|
+
|
|
570
|
+
# auth_names
|
|
571
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
572
|
+
|
|
573
|
+
new_options = opts.merge(
|
|
574
|
+
:operation => :"CustomerPortalApi.portal_notifications_put",
|
|
575
|
+
:header_params => header_params,
|
|
576
|
+
:query_params => query_params,
|
|
577
|
+
:form_params => form_params,
|
|
578
|
+
:body => post_body,
|
|
579
|
+
:auth_names => auth_names,
|
|
580
|
+
:return_type => return_type
|
|
581
|
+
)
|
|
582
|
+
|
|
583
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
584
|
+
if @api_client.config.debugging
|
|
585
|
+
@api_client.config.logger.debug "API called: CustomerPortalApi#portal_notifications_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
586
|
+
end
|
|
587
|
+
return data, status_code, headers
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
# Get plan info (portal)
|
|
591
|
+
# @param [Hash] opts the optional parameters
|
|
592
|
+
# @return [SubscriptionResponse]
|
|
593
|
+
def portal_plan_get(opts = {})
|
|
594
|
+
data, _status_code, _headers = portal_plan_get_with_http_info(opts)
|
|
595
|
+
data
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
# Get plan info (portal)
|
|
599
|
+
# @param [Hash] opts the optional parameters
|
|
600
|
+
# @return [Array<(SubscriptionResponse, Integer, Hash)>] SubscriptionResponse data, response status code and response headers
|
|
601
|
+
def portal_plan_get_with_http_info(opts = {})
|
|
602
|
+
if @api_client.config.debugging
|
|
603
|
+
@api_client.config.logger.debug 'Calling API: CustomerPortalApi.portal_plan_get ...'
|
|
604
|
+
end
|
|
605
|
+
# resource path
|
|
606
|
+
local_var_path = '/portal/plan'
|
|
607
|
+
|
|
608
|
+
# query parameters
|
|
609
|
+
query_params = opts[:query_params] || {}
|
|
610
|
+
|
|
611
|
+
# header parameters
|
|
612
|
+
header_params = opts[:header_params] || {}
|
|
613
|
+
# HTTP header 'Accept' (if needed)
|
|
614
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
615
|
+
|
|
616
|
+
# form parameters
|
|
617
|
+
form_params = opts[:form_params] || {}
|
|
618
|
+
|
|
619
|
+
# http body (model)
|
|
620
|
+
post_body = opts[:debug_body]
|
|
621
|
+
|
|
622
|
+
# return_type
|
|
623
|
+
return_type = opts[:debug_return_type] || 'SubscriptionResponse'
|
|
624
|
+
|
|
625
|
+
# auth_names
|
|
626
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
627
|
+
|
|
628
|
+
new_options = opts.merge(
|
|
629
|
+
:operation => :"CustomerPortalApi.portal_plan_get",
|
|
630
|
+
:header_params => header_params,
|
|
631
|
+
:query_params => query_params,
|
|
632
|
+
:form_params => form_params,
|
|
633
|
+
:body => post_body,
|
|
634
|
+
:auth_names => auth_names,
|
|
635
|
+
:return_type => return_type
|
|
636
|
+
)
|
|
637
|
+
|
|
638
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
639
|
+
if @api_client.config.debugging
|
|
640
|
+
@api_client.config.logger.debug "API called: CustomerPortalApi#portal_plan_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
641
|
+
end
|
|
642
|
+
return data, status_code, headers
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
# Get usage (portal)
|
|
646
|
+
# @param [Hash] opts the optional parameters
|
|
647
|
+
# @return [UsageResponse]
|
|
648
|
+
def portal_usage_get(opts = {})
|
|
649
|
+
data, _status_code, _headers = portal_usage_get_with_http_info(opts)
|
|
650
|
+
data
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
# Get usage (portal)
|
|
654
|
+
# @param [Hash] opts the optional parameters
|
|
655
|
+
# @return [Array<(UsageResponse, Integer, Hash)>] UsageResponse data, response status code and response headers
|
|
656
|
+
def portal_usage_get_with_http_info(opts = {})
|
|
657
|
+
if @api_client.config.debugging
|
|
658
|
+
@api_client.config.logger.debug 'Calling API: CustomerPortalApi.portal_usage_get ...'
|
|
659
|
+
end
|
|
660
|
+
# resource path
|
|
661
|
+
local_var_path = '/portal/usage'
|
|
662
|
+
|
|
663
|
+
# query parameters
|
|
664
|
+
query_params = opts[:query_params] || {}
|
|
665
|
+
|
|
666
|
+
# header parameters
|
|
667
|
+
header_params = opts[:header_params] || {}
|
|
668
|
+
# HTTP header 'Accept' (if needed)
|
|
669
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
670
|
+
|
|
671
|
+
# form parameters
|
|
672
|
+
form_params = opts[:form_params] || {}
|
|
673
|
+
|
|
674
|
+
# http body (model)
|
|
675
|
+
post_body = opts[:debug_body]
|
|
676
|
+
|
|
677
|
+
# return_type
|
|
678
|
+
return_type = opts[:debug_return_type] || 'UsageResponse'
|
|
679
|
+
|
|
680
|
+
# auth_names
|
|
681
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
682
|
+
|
|
683
|
+
new_options = opts.merge(
|
|
684
|
+
:operation => :"CustomerPortalApi.portal_usage_get",
|
|
685
|
+
:header_params => header_params,
|
|
686
|
+
:query_params => query_params,
|
|
687
|
+
:form_params => form_params,
|
|
688
|
+
:body => post_body,
|
|
689
|
+
:auth_names => auth_names,
|
|
690
|
+
:return_type => return_type
|
|
691
|
+
)
|
|
692
|
+
|
|
693
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
694
|
+
if @api_client.config.debugging
|
|
695
|
+
@api_client.config.logger.debug "API called: CustomerPortalApi#portal_usage_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
696
|
+
end
|
|
697
|
+
return data, status_code, headers
|
|
698
|
+
end
|
|
699
|
+
end
|
|
700
|
+
end
|