hooksniff 0.3.0 → 1.1.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/Gemfile +7 -0
- data/Gemfile.lock +56 -0
- data/README.md +23 -199
- data/Rakefile +2 -0
- data/hooksniff.gemspec +48 -0
- data/lib/hooksniff/api/authentication.rb +36 -0
- data/lib/hooksniff/api/endpoint.rb +102 -0
- data/lib/hooksniff/api/event_type.rb +66 -0
- data/lib/hooksniff/api/health.rb +16 -0
- data/lib/hooksniff/api/integration.rb +42 -0
- data/lib/hooksniff/api/message.rb +48 -0
- data/lib/hooksniff/api/message_attempt.rb +38 -0
- data/lib/hooksniff/api/statistics.rb +37 -0
- data/lib/hooksniff/api/stream.rb +45 -0
- data/lib/{openapi_client → hooksniff}/api_error.rb +8 -18
- data/lib/hooksniff/background_task.rb +21 -0
- data/lib/hooksniff/connector.rb +33 -0
- data/lib/hooksniff/environment.rb +53 -0
- data/lib/hooksniff/errors.rb +129 -0
- data/lib/hooksniff/hooksniff.rb +52 -0
- data/lib/hooksniff/hooksniff_http_client.rb +128 -0
- data/lib/hooksniff/http_error_out.rb +18 -0
- data/lib/hooksniff/http_validation_error.rb +18 -0
- data/lib/hooksniff/inbound.rb +25 -0
- data/lib/hooksniff/internal.rb +7 -0
- data/lib/hooksniff/message_poller.rb +32 -0
- data/lib/hooksniff/models/endpoint_created_event.rb +50 -0
- data/lib/hooksniff/models/endpoint_created_event_data.rb +63 -0
- data/lib/hooksniff/models/endpoint_deleted_event.rb +50 -0
- data/lib/hooksniff/models/endpoint_deleted_event_data.rb +63 -0
- data/lib/hooksniff/models/endpoint_disabled_event.rb +53 -0
- data/lib/hooksniff/models/endpoint_disabled_event_data.rb +69 -0
- data/lib/hooksniff/models/endpoint_enabled_event.rb +50 -0
- data/lib/hooksniff/models/endpoint_enabled_event_data.rb +63 -0
- data/lib/hooksniff/models/endpoint_headers_in.rb +46 -0
- data/lib/hooksniff/models/endpoint_headers_out.rb +52 -0
- data/lib/hooksniff/models/endpoint_headers_patch_in.rb +53 -0
- data/lib/hooksniff/models/endpoint_in.rb +102 -0
- data/lib/hooksniff/models/endpoint_out.rb +104 -0
- data/lib/hooksniff/models/endpoint_patch.rb +97 -0
- data/lib/hooksniff/models/endpoint_secret_out.rb +50 -0
- data/lib/hooksniff/models/endpoint_secret_rotate_in.rb +53 -0
- data/lib/hooksniff/models/endpoint_update.rb +90 -0
- data/lib/hooksniff/models/endpoint_updated_event.rb +50 -0
- data/lib/hooksniff/models/endpoint_updated_event_data.rb +63 -0
- data/lib/hooksniff/models/event_in.rb +50 -0
- data/lib/hooksniff/models/event_out.rb +53 -0
- data/lib/hooksniff/models/event_type_in.rb +80 -0
- data/lib/hooksniff/models/event_type_out.rb +87 -0
- data/lib/hooksniff/models/event_type_patch.rb +66 -0
- data/lib/hooksniff/models/event_type_update.rb +67 -0
- data/lib/hooksniff/models/list_response_endpoint_out.rb +58 -0
- data/lib/hooksniff/models/list_response_event_type_out.rb +58 -0
- data/lib/hooksniff/models/list_response_message_attempt_out.rb +58 -0
- data/lib/hooksniff/models/list_response_message_out.rb +58 -0
- data/lib/hooksniff/models/message_attempt_exhausted_event.rb +53 -0
- data/lib/hooksniff/models/message_attempt_exhausted_event_data.rb +70 -0
- data/lib/hooksniff/models/message_attempt_failed_data.rb +56 -0
- data/lib/hooksniff/models/message_attempt_failing_event.rb +54 -0
- data/lib/hooksniff/models/message_attempt_failing_event_data.rb +70 -0
- data/lib/hooksniff/models/message_attempt_log.rb +112 -0
- data/lib/hooksniff/models/message_attempt_log_event.rb +53 -0
- data/lib/hooksniff/models/message_attempt_out.rb +96 -0
- data/lib/hooksniff/models/message_attempt_trigger_type.rb +33 -0
- data/lib/hooksniff/models/message_endpoint_out.rb +112 -0
- data/lib/hooksniff/models/message_in.rb +99 -0
- data/lib/hooksniff/models/message_out.rb +71 -0
- data/lib/hooksniff/models/message_status.rb +39 -0
- data/lib/hooksniff/models/message_status_text.rb +32 -0
- data/lib/hooksniff/models/ordering.rb +30 -0
- data/lib/hooksniff/models/status_code_class.rb +41 -0
- data/lib/hooksniff/operational_webhook.rb +12 -0
- data/lib/hooksniff/util.rb +69 -0
- data/lib/hooksniff/validation_error.rb +28 -0
- data/lib/hooksniff/version.rb +5 -0
- data/lib/hooksniff/webhook.rb +84 -0
- data/lib/hooksniff.rb +78 -0
- data/test/test_hooksniff.rb +86 -0
- metadata +131 -159
- data/lib/openapi_client/api/admin_api.rb +0 -452
- data/lib/openapi_client/api/alerts_api.rb +0 -322
- data/lib/openapi_client/api/analytics_api.rb +0 -208
- data/lib/openapi_client/api/api_keys_api.rb +0 -252
- data/lib/openapi_client/api/audit_log_api.rb +0 -140
- data/lib/openapi_client/api/auth_api.rb +0 -1080
- data/lib/openapi_client/api/billing_api.rb +0 -500
- data/lib/openapi_client/api/contact_api.rb +0 -88
- data/lib/openapi_client/api/custom_domains_api.rb +0 -253
- data/lib/openapi_client/api/customer_portal_api.rb +0 -700
- data/lib/openapi_client/api/delivery_details_api.rb +0 -146
- data/lib/openapi_client/api/devices_api.rb +0 -202
- data/lib/openapi_client/api/embed_api.rb +0 -128
- data/lib/openapi_client/api/endpoints_api.rb +0 -468
- data/lib/openapi_client/api/events_api.rb +0 -75
- data/lib/openapi_client/api/health_api.rb +0 -193
- data/lib/openapi_client/api/inbound_api.rb +0 -170
- data/lib/openapi_client/api/notifications_api.rb +0 -309
- data/lib/openapi_client/api/o_auth_api.rb +0 -181
- data/lib/openapi_client/api/outbound_ips_api.rb +0 -77
- data/lib/openapi_client/api/playground_api.rb +0 -143
- data/lib/openapi_client/api/rate_limits_api.rb +0 -252
- data/lib/openapi_client/api/routing_api.rb +0 -393
- data/lib/openapi_client/api/schemas_api.rb +0 -268
- data/lib/openapi_client/api/search_api.rb +0 -96
- data/lib/openapi_client/api/simulator_api.rb +0 -82
- data/lib/openapi_client/api/sso_api.rb +0 -241
- data/lib/openapi_client/api/stats_api.rb +0 -77
- data/lib/openapi_client/api/stream_api.rb +0 -88
- data/lib/openapi_client/api/teams_api.rb +0 -476
- data/lib/openapi_client/api/templates_api.rb +0 -213
- data/lib/openapi_client/api/transforms_api.rb +0 -368
- data/lib/openapi_client/api/webhooks_api.rb +0 -534
- data/lib/openapi_client/api_client.rb +0 -397
- data/lib/openapi_client/api_model_base.rb +0 -88
- data/lib/openapi_client/configuration.rb +0 -312
- data/lib/openapi_client/models/admin_revenue_get200_response_inner.rb +0 -165
- data/lib/openapi_client/models/admin_sdk_update_post_request.rb +0 -156
- data/lib/openapi_client/models/admin_users_id_plan_put_request.rb +0 -181
- data/lib/openapi_client/models/admin_users_id_status_put_request.rb +0 -147
- data/lib/openapi_client/models/alert_rule.rb +0 -237
- data/lib/openapi_client/models/api_key_info.rb +0 -185
- data/lib/openapi_client/models/apply_template_request.rb +0 -173
- data/lib/openapi_client/models/apply_template_response.rb +0 -156
- data/lib/openapi_client/models/auth2fa_enable_post200_response.rb +0 -156
- data/lib/openapi_client/models/auth_login_post200_response.rb +0 -104
- data/lib/openapi_client/models/auth_response.rb +0 -167
- data/lib/openapi_client/models/batch_replay_request.rb +0 -166
- data/lib/openapi_client/models/batch_response.rb +0 -160
- data/lib/openapi_client/models/batch_response_errors_inner.rb +0 -156
- data/lib/openapi_client/models/batch_webhook_request.rb +0 -166
- data/lib/openapi_client/models/billing_portal_post200_response.rb +0 -147
- data/lib/openapi_client/models/change_password_request.rb +0 -199
- data/lib/openapi_client/models/change_role_request.rb +0 -188
- data/lib/openapi_client/models/confirm2fa_request.rb +0 -182
- data/lib/openapi_client/models/contact_request.rb +0 -242
- data/lib/openapi_client/models/contact_response.rb +0 -156
- data/lib/openapi_client/models/create_alert_request.rb +0 -277
- data/lib/openapi_client/models/create_api_key_response.rb +0 -175
- data/lib/openapi_client/models/create_endpoint_request.rb +0 -288
- data/lib/openapi_client/models/create_team_request.rb +0 -164
- data/lib/openapi_client/models/create_transform_rule_request.rb +0 -216
- data/lib/openapi_client/models/create_webhook_request.rb +0 -201
- data/lib/openapi_client/models/custom_domains_post_request.rb +0 -147
- data/lib/openapi_client/models/customer_response.rb +0 -256
- data/lib/openapi_client/models/delivery.rb +0 -246
- data/lib/openapi_client/models/delivery_attempt.rb +0 -205
- data/lib/openapi_client/models/delivery_list_response.rb +0 -176
- data/lib/openapi_client/models/delivery_trend_response.rb +0 -158
- data/lib/openapi_client/models/delivery_trend_response_buckets_inner.rb +0 -174
- data/lib/openapi_client/models/device_token_response.rb +0 -174
- data/lib/openapi_client/models/disable2fa_request.rb +0 -164
- data/lib/openapi_client/models/enable2fa_request.rb +0 -164
- data/lib/openapi_client/models/endpoint.rb +0 -321
- data/lib/openapi_client/models/endpoint_health.rb +0 -183
- data/lib/openapi_client/models/endpoints_endpoint_id_transforms_test_post_request.rb +0 -156
- data/lib/openapi_client/models/endpoints_id_rotate_secret_post200_response.rb +0 -156
- data/lib/openapi_client/models/error.rb +0 -165
- data/lib/openapi_client/models/forgot_password_request.rb +0 -164
- data/lib/openapi_client/models/invite_request.rb +0 -207
- data/lib/openapi_client/models/invoice_response.rb +0 -183
- data/lib/openapi_client/models/latency_trend_response.rb +0 -167
- data/lib/openapi_client/models/latency_trend_response_buckets_inner.rb +0 -165
- data/lib/openapi_client/models/login_request.rb +0 -190
- data/lib/openapi_client/models/notification.rb +0 -193
- data/lib/openapi_client/models/notification_list_response.rb +0 -167
- data/lib/openapi_client/models/notification_preferences.rb +0 -201
- data/lib/openapi_client/models/notifications_unread_count_get200_response.rb +0 -147
- data/lib/openapi_client/models/outbound_ips_response.rb +0 -158
- data/lib/openapi_client/models/paginated_users.rb +0 -176
- data/lib/openapi_client/models/playground_get200_response.rb +0 -160
- data/lib/openapi_client/models/portal_notifications_put200_response.rb +0 -156
- data/lib/openapi_client/models/portal_profile.rb +0 -184
- data/lib/openapi_client/models/refresh_token_request.rb +0 -164
- data/lib/openapi_client/models/register_device_request.rb +0 -208
- data/lib/openapi_client/models/register_request.rb +0 -201
- data/lib/openapi_client/models/register_schema_request.rb +0 -191
- data/lib/openapi_client/models/resend_verification_request.rb +0 -164
- data/lib/openapi_client/models/reset_password_request.rb +0 -199
- data/lib/openapi_client/models/retry_policy.rb +0 -216
- data/lib/openapi_client/models/routing_info.rb +0 -193
- data/lib/openapi_client/models/search_result.rb +0 -158
- data/lib/openapi_client/models/simulator_post_request.rb +0 -165
- data/lib/openapi_client/models/sso_config_post_request.rb +0 -190
- data/lib/openapi_client/models/stats_response.rb +0 -210
- data/lib/openapi_client/models/stream_params.rb +0 -201
- data/lib/openapi_client/models/subscription_response.rb +0 -201
- data/lib/openapi_client/models/success_rate_response.rb +0 -183
- data/lib/openapi_client/models/system_stats.rb +0 -185
- data/lib/openapi_client/models/system_stats_plan_breakdown_inner.rb +0 -156
- data/lib/openapi_client/models/system_status.rb +0 -210
- data/lib/openapi_client/models/system_status_components_inner.rb +0 -184
- data/lib/openapi_client/models/team.rb +0 -165
- data/lib/openapi_client/models/team_detail_response.rb +0 -169
- data/lib/openapi_client/models/team_invite.rb +0 -174
- data/lib/openapi_client/models/team_member.rb +0 -193
- data/lib/openapi_client/models/test_webhook_request.rb +0 -199
- data/lib/openapi_client/models/test_webhook_response.rb +0 -174
- data/lib/openapi_client/models/transform_rule.rb +0 -201
- data/lib/openapi_client/models/two_factor_required_response.rb +0 -165
- data/lib/openapi_client/models/update_endpoint_request.rb +0 -278
- data/lib/openapi_client/models/update_notification_preferences.rb +0 -195
- data/lib/openapi_client/models/update_profile_request.rb +0 -190
- data/lib/openapi_client/models/update_routing_request.rb +0 -190
- data/lib/openapi_client/models/upgrade_request.rb +0 -209
- data/lib/openapi_client/models/upgrade_response.rb +0 -166
- data/lib/openapi_client/models/usage_response.rb +0 -201
- data/lib/openapi_client/models/user_summary.rb +0 -193
- data/lib/openapi_client/models/validate_event_request.rb +0 -164
- data/lib/openapi_client/models/verify2fa_request.rb +0 -208
- data/lib/openapi_client/models/verify_email_request.rb +0 -164
- data/lib/openapi_client/models/webhook_template.rb +0 -183
- data/lib/openapi_client/version.rb +0 -15
- data/lib/openapi_client.rb +0 -169
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module HookSniff
|
|
6
|
+
class EventOut
|
|
7
|
+
# The event type's name
|
|
8
|
+
attr_accessor :event_type
|
|
9
|
+
attr_accessor :payload
|
|
10
|
+
attr_accessor :timestamp
|
|
11
|
+
|
|
12
|
+
ALL_FIELD ||= ["event_type", "payload", "timestamp"].freeze
|
|
13
|
+
private_constant :ALL_FIELD
|
|
14
|
+
|
|
15
|
+
def initialize(attributes = {})
|
|
16
|
+
unless attributes.is_a?(Hash)
|
|
17
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `HookSniff::EventOut` new method")
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
attributes.each do |k, v|
|
|
21
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
22
|
+
fail(ArgumentError, "The field #{k} is not part of HookSniff::EventOut")
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
instance_variable_set("@#{k}", v)
|
|
26
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def self.deserialize(attributes = {})
|
|
31
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
32
|
+
attrs = Hash.new
|
|
33
|
+
attrs["event_type"] = attributes["eventType"]
|
|
34
|
+
attrs["payload"] = attributes["payload"]
|
|
35
|
+
attrs["timestamp"] = DateTime.rfc3339(attributes["timestamp"]).to_time
|
|
36
|
+
new(attrs)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def serialize
|
|
40
|
+
out = Hash.new
|
|
41
|
+
out["eventType"] = HookSniff::serialize_primitive(@event_type) if @event_type
|
|
42
|
+
out["payload"] = HookSniff::serialize_primitive(@payload) if @payload
|
|
43
|
+
out["timestamp"] = HookSniff::serialize_primitive(@timestamp) if @timestamp
|
|
44
|
+
out
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Serializes the object to a json string
|
|
48
|
+
# @return String
|
|
49
|
+
def to_json
|
|
50
|
+
JSON.dump(serialize)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module HookSniff
|
|
6
|
+
class EventTypeIn
|
|
7
|
+
attr_accessor :archived
|
|
8
|
+
attr_accessor :deprecated
|
|
9
|
+
attr_accessor :description
|
|
10
|
+
# Deprecated, use `featureFlags` instead.
|
|
11
|
+
attr_accessor :feature_flag
|
|
12
|
+
attr_accessor :feature_flags
|
|
13
|
+
# The event type group's name
|
|
14
|
+
attr_accessor :group_name
|
|
15
|
+
# The event type's name
|
|
16
|
+
attr_accessor :name
|
|
17
|
+
# The schema for the event type for a specific version as a JSON schema.
|
|
18
|
+
attr_accessor :schemas
|
|
19
|
+
|
|
20
|
+
ALL_FIELD ||= [
|
|
21
|
+
"archived",
|
|
22
|
+
"deprecated",
|
|
23
|
+
"description",
|
|
24
|
+
"feature_flag",
|
|
25
|
+
"feature_flags",
|
|
26
|
+
"group_name",
|
|
27
|
+
"name",
|
|
28
|
+
"schemas"
|
|
29
|
+
].freeze
|
|
30
|
+
private_constant :ALL_FIELD
|
|
31
|
+
|
|
32
|
+
def initialize(attributes = {})
|
|
33
|
+
unless attributes.is_a?(Hash)
|
|
34
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `HookSniff::EventTypeIn` new method")
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
attributes.each do |k, v|
|
|
38
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
39
|
+
fail(ArgumentError, "The field #{k} is not part of HookSniff::EventTypeIn")
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
instance_variable_set("@#{k}", v)
|
|
43
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def self.deserialize(attributes = {})
|
|
48
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
49
|
+
attrs = Hash.new
|
|
50
|
+
attrs["archived"] = attributes["archived"]
|
|
51
|
+
attrs["deprecated"] = attributes["deprecated"]
|
|
52
|
+
attrs["description"] = attributes["description"]
|
|
53
|
+
attrs["feature_flag"] = attributes["featureFlag"]
|
|
54
|
+
attrs["feature_flags"] = attributes["featureFlags"]
|
|
55
|
+
attrs["group_name"] = attributes["groupName"]
|
|
56
|
+
attrs["name"] = attributes["name"]
|
|
57
|
+
attrs["schemas"] = attributes["schemas"]
|
|
58
|
+
new(attrs)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def serialize
|
|
62
|
+
out = Hash.new
|
|
63
|
+
out["archived"] = HookSniff::serialize_primitive(@archived) if @archived
|
|
64
|
+
out["deprecated"] = HookSniff::serialize_primitive(@deprecated) if @deprecated
|
|
65
|
+
out["description"] = HookSniff::serialize_primitive(@description) if @description
|
|
66
|
+
out["featureFlag"] = HookSniff::serialize_primitive(@feature_flag) if @feature_flag
|
|
67
|
+
out["featureFlags"] = HookSniff::serialize_primitive(@feature_flags) if @feature_flags
|
|
68
|
+
out["groupName"] = HookSniff::serialize_primitive(@group_name) if @group_name
|
|
69
|
+
out["name"] = HookSniff::serialize_primitive(@name) if @name
|
|
70
|
+
out["schemas"] = HookSniff::serialize_primitive(@schemas) if @schemas
|
|
71
|
+
out
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Serializes the object to a json string
|
|
75
|
+
# @return String
|
|
76
|
+
def to_json
|
|
77
|
+
JSON.dump(serialize)
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module HookSniff
|
|
6
|
+
class EventTypeOut
|
|
7
|
+
attr_accessor :archived
|
|
8
|
+
attr_accessor :created_at
|
|
9
|
+
attr_accessor :deprecated
|
|
10
|
+
attr_accessor :description
|
|
11
|
+
attr_accessor :feature_flag
|
|
12
|
+
attr_accessor :feature_flags
|
|
13
|
+
# The event type group's name
|
|
14
|
+
attr_accessor :group_name
|
|
15
|
+
# The event type's name
|
|
16
|
+
attr_accessor :name
|
|
17
|
+
# The schema for the event type for a specific version as a JSON schema.
|
|
18
|
+
attr_accessor :schemas
|
|
19
|
+
attr_accessor :updated_at
|
|
20
|
+
|
|
21
|
+
ALL_FIELD ||= [
|
|
22
|
+
"archived",
|
|
23
|
+
"created_at",
|
|
24
|
+
"deprecated",
|
|
25
|
+
"description",
|
|
26
|
+
"feature_flag",
|
|
27
|
+
"feature_flags",
|
|
28
|
+
"group_name",
|
|
29
|
+
"name",
|
|
30
|
+
"schemas",
|
|
31
|
+
"updated_at"
|
|
32
|
+
].freeze
|
|
33
|
+
private_constant :ALL_FIELD
|
|
34
|
+
|
|
35
|
+
def initialize(attributes = {})
|
|
36
|
+
unless attributes.is_a?(Hash)
|
|
37
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `HookSniff::EventTypeOut` new method")
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
attributes.each do |k, v|
|
|
41
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
42
|
+
fail(ArgumentError, "The field #{k} is not part of HookSniff::EventTypeOut")
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
instance_variable_set("@#{k}", v)
|
|
46
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def self.deserialize(attributes = {})
|
|
51
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
52
|
+
attrs = Hash.new
|
|
53
|
+
attrs["archived"] = attributes["archived"]
|
|
54
|
+
attrs["created_at"] = DateTime.rfc3339(attributes["createdAt"]).to_time
|
|
55
|
+
attrs["deprecated"] = attributes["deprecated"]
|
|
56
|
+
attrs["description"] = attributes["description"]
|
|
57
|
+
attrs["feature_flag"] = attributes["featureFlag"]
|
|
58
|
+
attrs["feature_flags"] = attributes["featureFlags"]
|
|
59
|
+
attrs["group_name"] = attributes["groupName"]
|
|
60
|
+
attrs["name"] = attributes["name"]
|
|
61
|
+
attrs["schemas"] = attributes["schemas"]
|
|
62
|
+
attrs["updated_at"] = DateTime.rfc3339(attributes["updatedAt"]).to_time
|
|
63
|
+
new(attrs)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def serialize
|
|
67
|
+
out = Hash.new
|
|
68
|
+
out["archived"] = HookSniff::serialize_primitive(@archived) if @archived
|
|
69
|
+
out["createdAt"] = HookSniff::serialize_primitive(@created_at) if @created_at
|
|
70
|
+
out["deprecated"] = HookSniff::serialize_primitive(@deprecated) if @deprecated
|
|
71
|
+
out["description"] = HookSniff::serialize_primitive(@description) if @description
|
|
72
|
+
out["featureFlag"] = HookSniff::serialize_primitive(@feature_flag) if @feature_flag
|
|
73
|
+
out["featureFlags"] = HookSniff::serialize_primitive(@feature_flags) if @feature_flags
|
|
74
|
+
out["groupName"] = HookSniff::serialize_primitive(@group_name) if @group_name
|
|
75
|
+
out["name"] = HookSniff::serialize_primitive(@name) if @name
|
|
76
|
+
out["schemas"] = HookSniff::serialize_primitive(@schemas) if @schemas
|
|
77
|
+
out["updatedAt"] = HookSniff::serialize_primitive(@updated_at) if @updated_at
|
|
78
|
+
out
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Serializes the object to a json string
|
|
82
|
+
# @return String
|
|
83
|
+
def to_json
|
|
84
|
+
JSON.dump(serialize)
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module HookSniff
|
|
6
|
+
class EventTypePatch
|
|
7
|
+
attr_accessor :archived
|
|
8
|
+
attr_accessor :deprecated
|
|
9
|
+
attr_accessor :description
|
|
10
|
+
# Deprecated, use `featureFlags` instead.
|
|
11
|
+
attr_accessor :feature_flag
|
|
12
|
+
attr_accessor :feature_flags
|
|
13
|
+
# The event type group's name
|
|
14
|
+
attr_accessor :group_name
|
|
15
|
+
attr_accessor :schemas
|
|
16
|
+
|
|
17
|
+
ALL_FIELD ||= ["archived", "deprecated", "description", "feature_flag", "feature_flags", "group_name", "schemas"].freeze
|
|
18
|
+
private_constant :ALL_FIELD
|
|
19
|
+
|
|
20
|
+
def initialize(attributes = {})
|
|
21
|
+
unless attributes.is_a?(Hash)
|
|
22
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `HookSniff::EventTypePatch` new method")
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
attributes.each do |k, v|
|
|
26
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
27
|
+
fail(ArgumentError, "The field #{k} is not part of HookSniff::EventTypePatch")
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
instance_variable_set("@#{k}", v)
|
|
31
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def self.deserialize(attributes = {})
|
|
36
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
37
|
+
attrs = Hash.new
|
|
38
|
+
attrs["archived"] = attributes["archived"]
|
|
39
|
+
attrs["deprecated"] = attributes["deprecated"]
|
|
40
|
+
attrs["description"] = attributes["description"]
|
|
41
|
+
attrs["feature_flag"] = attributes["featureFlag"]
|
|
42
|
+
attrs["feature_flags"] = attributes["featureFlags"]
|
|
43
|
+
attrs["group_name"] = attributes["groupName"]
|
|
44
|
+
attrs["schemas"] = attributes["schemas"]
|
|
45
|
+
new(attrs)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def serialize
|
|
49
|
+
out = Hash.new
|
|
50
|
+
out["archived"] = HookSniff::serialize_primitive(@archived) if @archived
|
|
51
|
+
out["deprecated"] = HookSniff::serialize_primitive(@deprecated) if @deprecated
|
|
52
|
+
out["description"] = HookSniff::serialize_primitive(@description) if @description
|
|
53
|
+
out["featureFlag"] = HookSniff::serialize_primitive(@feature_flag) if @__feature_flag_is_defined
|
|
54
|
+
out["featureFlags"] = HookSniff::serialize_primitive(@feature_flags) if @__feature_flags_is_defined
|
|
55
|
+
out["groupName"] = HookSniff::serialize_primitive(@group_name) if @__group_name_is_defined
|
|
56
|
+
out["schemas"] = HookSniff::serialize_primitive(@schemas) if @__schemas_is_defined
|
|
57
|
+
out
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Serializes the object to a json string
|
|
61
|
+
# @return String
|
|
62
|
+
def to_json
|
|
63
|
+
JSON.dump(serialize)
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module HookSniff
|
|
6
|
+
class EventTypeUpdate
|
|
7
|
+
attr_accessor :archived
|
|
8
|
+
attr_accessor :deprecated
|
|
9
|
+
attr_accessor :description
|
|
10
|
+
# Deprecated, use `featureFlags` instead.
|
|
11
|
+
attr_accessor :feature_flag
|
|
12
|
+
attr_accessor :feature_flags
|
|
13
|
+
# The event type group's name
|
|
14
|
+
attr_accessor :group_name
|
|
15
|
+
# The schema for the event type for a specific version as a JSON schema.
|
|
16
|
+
attr_accessor :schemas
|
|
17
|
+
|
|
18
|
+
ALL_FIELD ||= ["archived", "deprecated", "description", "feature_flag", "feature_flags", "group_name", "schemas"].freeze
|
|
19
|
+
private_constant :ALL_FIELD
|
|
20
|
+
|
|
21
|
+
def initialize(attributes = {})
|
|
22
|
+
unless attributes.is_a?(Hash)
|
|
23
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `HookSniff::EventTypeUpdate` new method")
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
attributes.each do |k, v|
|
|
27
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
28
|
+
fail(ArgumentError, "The field #{k} is not part of HookSniff::EventTypeUpdate")
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
instance_variable_set("@#{k}", v)
|
|
32
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def self.deserialize(attributes = {})
|
|
37
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
38
|
+
attrs = Hash.new
|
|
39
|
+
attrs["archived"] = attributes["archived"]
|
|
40
|
+
attrs["deprecated"] = attributes["deprecated"]
|
|
41
|
+
attrs["description"] = attributes["description"]
|
|
42
|
+
attrs["feature_flag"] = attributes["featureFlag"]
|
|
43
|
+
attrs["feature_flags"] = attributes["featureFlags"]
|
|
44
|
+
attrs["group_name"] = attributes["groupName"]
|
|
45
|
+
attrs["schemas"] = attributes["schemas"]
|
|
46
|
+
new(attrs)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def serialize
|
|
50
|
+
out = Hash.new
|
|
51
|
+
out["archived"] = HookSniff::serialize_primitive(@archived) if @archived
|
|
52
|
+
out["deprecated"] = HookSniff::serialize_primitive(@deprecated) if @deprecated
|
|
53
|
+
out["description"] = HookSniff::serialize_primitive(@description) if @description
|
|
54
|
+
out["featureFlag"] = HookSniff::serialize_primitive(@feature_flag) if @feature_flag
|
|
55
|
+
out["featureFlags"] = HookSniff::serialize_primitive(@feature_flags) if @feature_flags
|
|
56
|
+
out["groupName"] = HookSniff::serialize_primitive(@group_name) if @group_name
|
|
57
|
+
out["schemas"] = HookSniff::serialize_primitive(@schemas) if @schemas
|
|
58
|
+
out
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Serializes the object to a json string
|
|
62
|
+
# @return String
|
|
63
|
+
def to_json
|
|
64
|
+
JSON.dump(serialize)
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module HookSniff
|
|
6
|
+
class ListResponseEndpointOut
|
|
7
|
+
attr_accessor :data
|
|
8
|
+
attr_accessor :done
|
|
9
|
+
attr_accessor :iterator
|
|
10
|
+
attr_accessor :prev_iterator
|
|
11
|
+
|
|
12
|
+
ALL_FIELD ||= ["data", "done", "iterator", "prev_iterator"].freeze
|
|
13
|
+
private_constant :ALL_FIELD
|
|
14
|
+
|
|
15
|
+
def initialize(attributes = {})
|
|
16
|
+
unless attributes.is_a?(Hash)
|
|
17
|
+
fail(
|
|
18
|
+
ArgumentError,
|
|
19
|
+
"The input argument (attributes) must be a hash in `HookSniff::ListResponseEndpointOut` new method"
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
attributes.each do |k, v|
|
|
24
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
25
|
+
fail(ArgumentError, "The field #{k} is not part of HookSniff::ListResponseEndpointOut")
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
instance_variable_set("@#{k}", v)
|
|
29
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def self.deserialize(attributes = {})
|
|
34
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
35
|
+
attrs = Hash.new
|
|
36
|
+
attrs["data"] = attributes["data"].map { |v| HookSniff::EndpointOut.deserialize(v) }
|
|
37
|
+
attrs["done"] = attributes["done"]
|
|
38
|
+
attrs["iterator"] = attributes["iterator"]
|
|
39
|
+
attrs["prev_iterator"] = attributes["prevIterator"]
|
|
40
|
+
new(attrs)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def serialize
|
|
44
|
+
out = Hash.new
|
|
45
|
+
out["data"] = @data.map { |v| v.serialize } if @data
|
|
46
|
+
out["done"] = HookSniff::serialize_primitive(@done) if @done
|
|
47
|
+
out["iterator"] = HookSniff::serialize_primitive(@iterator) if @iterator
|
|
48
|
+
out["prevIterator"] = HookSniff::serialize_primitive(@prev_iterator) if @prev_iterator
|
|
49
|
+
out
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Serializes the object to a json string
|
|
53
|
+
# @return String
|
|
54
|
+
def to_json
|
|
55
|
+
JSON.dump(serialize)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module HookSniff
|
|
6
|
+
class ListResponseEventTypeOut
|
|
7
|
+
attr_accessor :data
|
|
8
|
+
attr_accessor :done
|
|
9
|
+
attr_accessor :iterator
|
|
10
|
+
attr_accessor :prev_iterator
|
|
11
|
+
|
|
12
|
+
ALL_FIELD ||= ["data", "done", "iterator", "prev_iterator"].freeze
|
|
13
|
+
private_constant :ALL_FIELD
|
|
14
|
+
|
|
15
|
+
def initialize(attributes = {})
|
|
16
|
+
unless attributes.is_a?(Hash)
|
|
17
|
+
fail(
|
|
18
|
+
ArgumentError,
|
|
19
|
+
"The input argument (attributes) must be a hash in `HookSniff::ListResponseEventTypeOut` new method"
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
attributes.each do |k, v|
|
|
24
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
25
|
+
fail(ArgumentError, "The field #{k} is not part of HookSniff::ListResponseEventTypeOut")
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
instance_variable_set("@#{k}", v)
|
|
29
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def self.deserialize(attributes = {})
|
|
34
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
35
|
+
attrs = Hash.new
|
|
36
|
+
attrs["data"] = attributes["data"].map { |v| HookSniff::EventTypeOut.deserialize(v) }
|
|
37
|
+
attrs["done"] = attributes["done"]
|
|
38
|
+
attrs["iterator"] = attributes["iterator"]
|
|
39
|
+
attrs["prev_iterator"] = attributes["prevIterator"]
|
|
40
|
+
new(attrs)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def serialize
|
|
44
|
+
out = Hash.new
|
|
45
|
+
out["data"] = @data.map { |v| v.serialize } if @data
|
|
46
|
+
out["done"] = HookSniff::serialize_primitive(@done) if @done
|
|
47
|
+
out["iterator"] = HookSniff::serialize_primitive(@iterator) if @iterator
|
|
48
|
+
out["prevIterator"] = HookSniff::serialize_primitive(@prev_iterator) if @prev_iterator
|
|
49
|
+
out
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Serializes the object to a json string
|
|
53
|
+
# @return String
|
|
54
|
+
def to_json
|
|
55
|
+
JSON.dump(serialize)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module HookSniff
|
|
6
|
+
class ListResponseMessageAttemptOut
|
|
7
|
+
attr_accessor :data
|
|
8
|
+
attr_accessor :done
|
|
9
|
+
attr_accessor :iterator
|
|
10
|
+
attr_accessor :prev_iterator
|
|
11
|
+
|
|
12
|
+
ALL_FIELD ||= ["data", "done", "iterator", "prev_iterator"].freeze
|
|
13
|
+
private_constant :ALL_FIELD
|
|
14
|
+
|
|
15
|
+
def initialize(attributes = {})
|
|
16
|
+
unless attributes.is_a?(Hash)
|
|
17
|
+
fail(
|
|
18
|
+
ArgumentError,
|
|
19
|
+
"The input argument (attributes) must be a hash in `HookSniff::ListResponseMessageAttemptOut` new method"
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
attributes.each do |k, v|
|
|
24
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
25
|
+
fail(ArgumentError, "The field #{k} is not part of HookSniff::ListResponseMessageAttemptOut")
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
instance_variable_set("@#{k}", v)
|
|
29
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def self.deserialize(attributes = {})
|
|
34
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
35
|
+
attrs = Hash.new
|
|
36
|
+
attrs["data"] = attributes["data"].map { |v| HookSniff::MessageAttemptOut.deserialize(v) }
|
|
37
|
+
attrs["done"] = attributes["done"]
|
|
38
|
+
attrs["iterator"] = attributes["iterator"]
|
|
39
|
+
attrs["prev_iterator"] = attributes["prevIterator"]
|
|
40
|
+
new(attrs)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def serialize
|
|
44
|
+
out = Hash.new
|
|
45
|
+
out["data"] = @data.map { |v| v.serialize } if @data
|
|
46
|
+
out["done"] = HookSniff::serialize_primitive(@done) if @done
|
|
47
|
+
out["iterator"] = HookSniff::serialize_primitive(@iterator) if @iterator
|
|
48
|
+
out["prevIterator"] = HookSniff::serialize_primitive(@prev_iterator) if @prev_iterator
|
|
49
|
+
out
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Serializes the object to a json string
|
|
53
|
+
# @return String
|
|
54
|
+
def to_json
|
|
55
|
+
JSON.dump(serialize)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module HookSniff
|
|
6
|
+
class ListResponseMessageOut
|
|
7
|
+
attr_accessor :data
|
|
8
|
+
attr_accessor :done
|
|
9
|
+
attr_accessor :iterator
|
|
10
|
+
attr_accessor :prev_iterator
|
|
11
|
+
|
|
12
|
+
ALL_FIELD ||= ["data", "done", "iterator", "prev_iterator"].freeze
|
|
13
|
+
private_constant :ALL_FIELD
|
|
14
|
+
|
|
15
|
+
def initialize(attributes = {})
|
|
16
|
+
unless attributes.is_a?(Hash)
|
|
17
|
+
fail(
|
|
18
|
+
ArgumentError,
|
|
19
|
+
"The input argument (attributes) must be a hash in `HookSniff::ListResponseMessageOut` new method"
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
attributes.each do |k, v|
|
|
24
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
25
|
+
fail(ArgumentError, "The field #{k} is not part of HookSniff::ListResponseMessageOut")
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
instance_variable_set("@#{k}", v)
|
|
29
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def self.deserialize(attributes = {})
|
|
34
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
35
|
+
attrs = Hash.new
|
|
36
|
+
attrs["data"] = attributes["data"].map { |v| HookSniff::MessageOut.deserialize(v) }
|
|
37
|
+
attrs["done"] = attributes["done"]
|
|
38
|
+
attrs["iterator"] = attributes["iterator"]
|
|
39
|
+
attrs["prev_iterator"] = attributes["prevIterator"]
|
|
40
|
+
new(attrs)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def serialize
|
|
44
|
+
out = Hash.new
|
|
45
|
+
out["data"] = @data.map { |v| v.serialize } if @data
|
|
46
|
+
out["done"] = HookSniff::serialize_primitive(@done) if @done
|
|
47
|
+
out["iterator"] = HookSniff::serialize_primitive(@iterator) if @iterator
|
|
48
|
+
out["prevIterator"] = HookSniff::serialize_primitive(@prev_iterator) if @prev_iterator
|
|
49
|
+
out
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Serializes the object to a json string
|
|
53
|
+
# @return String
|
|
54
|
+
def to_json
|
|
55
|
+
JSON.dump(serialize)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module HookSniff
|
|
6
|
+
# Sent when a message delivery has failed (all of the retry attempts have been exhausted).
|
|
7
|
+
class MessageAttemptExhaustedEvent
|
|
8
|
+
attr_accessor :data
|
|
9
|
+
attr_accessor :type
|
|
10
|
+
|
|
11
|
+
ALL_FIELD ||= ["data", "type"].freeze
|
|
12
|
+
private_constant :ALL_FIELD
|
|
13
|
+
|
|
14
|
+
def initialize(attributes = {})
|
|
15
|
+
unless attributes.is_a?(Hash)
|
|
16
|
+
fail(
|
|
17
|
+
ArgumentError,
|
|
18
|
+
"The input argument (attributes) must be a hash in `HookSniff::MessageAttemptExhaustedEvent` new method"
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
attributes.each do |k, v|
|
|
23
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
24
|
+
fail(ArgumentError, "The field #{k} is not part of HookSniff::MessageAttemptExhaustedEvent")
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
instance_variable_set("@#{k}", v)
|
|
28
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def self.deserialize(attributes = {})
|
|
33
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
34
|
+
attrs = Hash.new
|
|
35
|
+
attrs["data"] = HookSniff::MessageAttemptExhaustedEventData.deserialize(attributes["data"])
|
|
36
|
+
attrs["type"] = attributes["type"]
|
|
37
|
+
new(attrs)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def serialize
|
|
41
|
+
out = Hash.new
|
|
42
|
+
out["data"] = HookSniff::serialize_schema_ref(@data) if @data
|
|
43
|
+
out["type"] = HookSniff::serialize_primitive(@type) if @type
|
|
44
|
+
out
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Serializes the object to a json string
|
|
48
|
+
# @return String
|
|
49
|
+
def to_json
|
|
50
|
+
JSON.dump(serialize)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|