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,252 @@
|
|
|
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 APIKeysApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# List API keys
|
|
23
|
+
# @param [Hash] opts the optional parameters
|
|
24
|
+
# @return [Array<ApiKeyInfo>]
|
|
25
|
+
def api_keys_get(opts = {})
|
|
26
|
+
data, _status_code, _headers = api_keys_get_with_http_info(opts)
|
|
27
|
+
data
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# List API keys
|
|
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 api_keys_get_with_http_info(opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.api_keys_get ...'
|
|
36
|
+
end
|
|
37
|
+
# resource path
|
|
38
|
+
local_var_path = '/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 => :"APIKeysApi.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: APIKeysApi#api_keys_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
73
|
+
end
|
|
74
|
+
return data, status_code, headers
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Delete (revoke) an API key
|
|
78
|
+
# @param id [String]
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [nil]
|
|
81
|
+
def api_keys_id_delete(id, opts = {})
|
|
82
|
+
api_keys_id_delete_with_http_info(id, opts)
|
|
83
|
+
nil
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Delete (revoke) an API key
|
|
87
|
+
# @param id [String]
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
90
|
+
def api_keys_id_delete_with_http_info(id, opts = {})
|
|
91
|
+
if @api_client.config.debugging
|
|
92
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.api_keys_id_delete ...'
|
|
93
|
+
end
|
|
94
|
+
# verify the required parameter 'id' is set
|
|
95
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
96
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling APIKeysApi.api_keys_id_delete"
|
|
97
|
+
end
|
|
98
|
+
# resource path
|
|
99
|
+
local_var_path = '/api-keys/{id}'.sub('{id}', CGI.escape(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 => :"APIKeysApi.api_keys_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: APIKeysApi#api_keys_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
+
end
|
|
133
|
+
return data, status_code, headers
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Rotate an API key
|
|
137
|
+
# @param id [String]
|
|
138
|
+
# @param [Hash] opts the optional parameters
|
|
139
|
+
# @return [CreateApiKeyResponse]
|
|
140
|
+
def api_keys_id_rotate_post(id, opts = {})
|
|
141
|
+
data, _status_code, _headers = api_keys_id_rotate_post_with_http_info(id, opts)
|
|
142
|
+
data
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Rotate an API key
|
|
146
|
+
# @param id [String]
|
|
147
|
+
# @param [Hash] opts the optional parameters
|
|
148
|
+
# @return [Array<(CreateApiKeyResponse, Integer, Hash)>] CreateApiKeyResponse data, response status code and response headers
|
|
149
|
+
def api_keys_id_rotate_post_with_http_info(id, opts = {})
|
|
150
|
+
if @api_client.config.debugging
|
|
151
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.api_keys_id_rotate_post ...'
|
|
152
|
+
end
|
|
153
|
+
# verify the required parameter 'id' is set
|
|
154
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
155
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling APIKeysApi.api_keys_id_rotate_post"
|
|
156
|
+
end
|
|
157
|
+
# resource path
|
|
158
|
+
local_var_path = '/api-keys/{id}/rotate'.sub('{id}', CGI.escape(id.to_s))
|
|
159
|
+
|
|
160
|
+
# query parameters
|
|
161
|
+
query_params = opts[:query_params] || {}
|
|
162
|
+
|
|
163
|
+
# header parameters
|
|
164
|
+
header_params = opts[:header_params] || {}
|
|
165
|
+
# HTTP header 'Accept' (if needed)
|
|
166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
167
|
+
|
|
168
|
+
# form parameters
|
|
169
|
+
form_params = opts[:form_params] || {}
|
|
170
|
+
|
|
171
|
+
# http body (model)
|
|
172
|
+
post_body = opts[:debug_body]
|
|
173
|
+
|
|
174
|
+
# return_type
|
|
175
|
+
return_type = opts[:debug_return_type] || 'CreateApiKeyResponse'
|
|
176
|
+
|
|
177
|
+
# auth_names
|
|
178
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
179
|
+
|
|
180
|
+
new_options = opts.merge(
|
|
181
|
+
:operation => :"APIKeysApi.api_keys_id_rotate_post",
|
|
182
|
+
:header_params => header_params,
|
|
183
|
+
:query_params => query_params,
|
|
184
|
+
:form_params => form_params,
|
|
185
|
+
:body => post_body,
|
|
186
|
+
:auth_names => auth_names,
|
|
187
|
+
:return_type => return_type
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
191
|
+
if @api_client.config.debugging
|
|
192
|
+
@api_client.config.logger.debug "API called: APIKeysApi#api_keys_id_rotate_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
193
|
+
end
|
|
194
|
+
return data, status_code, headers
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Create a new API key
|
|
198
|
+
# @param [Hash] opts the optional parameters
|
|
199
|
+
# @return [CreateApiKeyResponse]
|
|
200
|
+
def api_keys_post(opts = {})
|
|
201
|
+
data, _status_code, _headers = api_keys_post_with_http_info(opts)
|
|
202
|
+
data
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Create a new API key
|
|
206
|
+
# @param [Hash] opts the optional parameters
|
|
207
|
+
# @return [Array<(CreateApiKeyResponse, Integer, Hash)>] CreateApiKeyResponse data, response status code and response headers
|
|
208
|
+
def api_keys_post_with_http_info(opts = {})
|
|
209
|
+
if @api_client.config.debugging
|
|
210
|
+
@api_client.config.logger.debug 'Calling API: APIKeysApi.api_keys_post ...'
|
|
211
|
+
end
|
|
212
|
+
# resource path
|
|
213
|
+
local_var_path = '/api-keys'
|
|
214
|
+
|
|
215
|
+
# query parameters
|
|
216
|
+
query_params = opts[:query_params] || {}
|
|
217
|
+
|
|
218
|
+
# header parameters
|
|
219
|
+
header_params = opts[:header_params] || {}
|
|
220
|
+
# HTTP header 'Accept' (if needed)
|
|
221
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
222
|
+
|
|
223
|
+
# form parameters
|
|
224
|
+
form_params = opts[:form_params] || {}
|
|
225
|
+
|
|
226
|
+
# http body (model)
|
|
227
|
+
post_body = opts[:debug_body]
|
|
228
|
+
|
|
229
|
+
# return_type
|
|
230
|
+
return_type = opts[:debug_return_type] || 'CreateApiKeyResponse'
|
|
231
|
+
|
|
232
|
+
# auth_names
|
|
233
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
234
|
+
|
|
235
|
+
new_options = opts.merge(
|
|
236
|
+
:operation => :"APIKeysApi.api_keys_post",
|
|
237
|
+
:header_params => header_params,
|
|
238
|
+
:query_params => query_params,
|
|
239
|
+
:form_params => form_params,
|
|
240
|
+
:body => post_body,
|
|
241
|
+
:auth_names => auth_names,
|
|
242
|
+
:return_type => return_type
|
|
243
|
+
)
|
|
244
|
+
|
|
245
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
246
|
+
if @api_client.config.debugging
|
|
247
|
+
@api_client.config.logger.debug "API called: APIKeysApi#api_keys_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
248
|
+
end
|
|
249
|
+
return data, status_code, headers
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
end
|
|
@@ -0,0 +1,140 @@
|
|
|
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 AuditLogApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# List audit log entries
|
|
23
|
+
# @param [Hash] opts the optional parameters
|
|
24
|
+
# @option opts [Integer] :page (default to 1)
|
|
25
|
+
# @option opts [String] :action
|
|
26
|
+
# @return [nil]
|
|
27
|
+
def audit_log_get(opts = {})
|
|
28
|
+
audit_log_get_with_http_info(opts)
|
|
29
|
+
nil
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# List audit log entries
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @option opts [Integer] :page (default to 1)
|
|
35
|
+
# @option opts [String] :action
|
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
37
|
+
def audit_log_get_with_http_info(opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: AuditLogApi.audit_log_get ...'
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/audit-log'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
47
|
+
query_params[:'action'] = opts[:'action'] if !opts[:'action'].nil?
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
|
|
52
|
+
# form parameters
|
|
53
|
+
form_params = opts[:form_params] || {}
|
|
54
|
+
|
|
55
|
+
# http body (model)
|
|
56
|
+
post_body = opts[:debug_body]
|
|
57
|
+
|
|
58
|
+
# return_type
|
|
59
|
+
return_type = opts[:debug_return_type]
|
|
60
|
+
|
|
61
|
+
# auth_names
|
|
62
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
63
|
+
|
|
64
|
+
new_options = opts.merge(
|
|
65
|
+
:operation => :"AuditLogApi.audit_log_get",
|
|
66
|
+
:header_params => header_params,
|
|
67
|
+
:query_params => query_params,
|
|
68
|
+
:form_params => form_params,
|
|
69
|
+
:body => post_body,
|
|
70
|
+
:auth_names => auth_names,
|
|
71
|
+
:return_type => return_type
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
75
|
+
if @api_client.config.debugging
|
|
76
|
+
@api_client.config.logger.debug "API called: AuditLogApi#audit_log_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
77
|
+
end
|
|
78
|
+
return data, status_code, headers
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Get audit entry detail
|
|
82
|
+
# @param id [String]
|
|
83
|
+
# @param [Hash] opts the optional parameters
|
|
84
|
+
# @return [nil]
|
|
85
|
+
def audit_log_id_get(id, opts = {})
|
|
86
|
+
audit_log_id_get_with_http_info(id, opts)
|
|
87
|
+
nil
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Get audit entry detail
|
|
91
|
+
# @param id [String]
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
94
|
+
def audit_log_id_get_with_http_info(id, opts = {})
|
|
95
|
+
if @api_client.config.debugging
|
|
96
|
+
@api_client.config.logger.debug 'Calling API: AuditLogApi.audit_log_id_get ...'
|
|
97
|
+
end
|
|
98
|
+
# verify the required parameter 'id' is set
|
|
99
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
100
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AuditLogApi.audit_log_id_get"
|
|
101
|
+
end
|
|
102
|
+
# resource path
|
|
103
|
+
local_var_path = '/audit-log/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
104
|
+
|
|
105
|
+
# query parameters
|
|
106
|
+
query_params = opts[:query_params] || {}
|
|
107
|
+
|
|
108
|
+
# header parameters
|
|
109
|
+
header_params = opts[:header_params] || {}
|
|
110
|
+
|
|
111
|
+
# form parameters
|
|
112
|
+
form_params = opts[:form_params] || {}
|
|
113
|
+
|
|
114
|
+
# http body (model)
|
|
115
|
+
post_body = opts[:debug_body]
|
|
116
|
+
|
|
117
|
+
# return_type
|
|
118
|
+
return_type = opts[:debug_return_type]
|
|
119
|
+
|
|
120
|
+
# auth_names
|
|
121
|
+
auth_names = opts[:debug_auth_names] || ['BearerAuth']
|
|
122
|
+
|
|
123
|
+
new_options = opts.merge(
|
|
124
|
+
:operation => :"AuditLogApi.audit_log_id_get",
|
|
125
|
+
:header_params => header_params,
|
|
126
|
+
:query_params => query_params,
|
|
127
|
+
:form_params => form_params,
|
|
128
|
+
:body => post_body,
|
|
129
|
+
:auth_names => auth_names,
|
|
130
|
+
:return_type => return_type
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
134
|
+
if @api_client.config.debugging
|
|
135
|
+
@api_client.config.logger.debug "API called: AuditLogApi#audit_log_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
136
|
+
end
|
|
137
|
+
return data, status_code, headers
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|