Class: Hivehook::Client
- Inherits:
-
Object
- Object
- Hivehook::Client
- Defined in:
- lib/hivehook.rb
Instance Attribute Summary collapse
-
#alert_rules ⇒ Object
readonly
Returns the value of attribute alert_rules.
-
#api_keys ⇒ Object
readonly
Returns the value of attribute api_keys.
-
#applications ⇒ Object
readonly
Returns the value of attribute applications.
-
#audit_logs ⇒ Object
readonly
Returns the value of attribute audit_logs.
-
#bookmarks ⇒ Object
readonly
Returns the value of attribute bookmarks.
-
#deliveries ⇒ Object
readonly
Returns the value of attribute deliveries.
-
#destinations ⇒ Object
readonly
Returns the value of attribute destinations.
-
#dlq ⇒ Object
readonly
Returns the value of attribute dlq.
-
#endpoints ⇒ Object
readonly
Returns the value of attribute endpoints.
-
#event_type_schemas ⇒ Object
readonly
Returns the value of attribute event_type_schemas.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#organizations ⇒ Object
readonly
Returns the value of attribute organizations.
-
#outbound_deliveries ⇒ Object
readonly
Returns the value of attribute outbound_deliveries.
-
#outbound_dlq ⇒ Object
readonly
Returns the value of attribute outbound_dlq.
-
#portal ⇒ Object
readonly
Returns the value of attribute portal.
-
#sources ⇒ Object
readonly
Returns the value of attribute sources.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#stream_consumers ⇒ Object
readonly
Returns the value of attribute stream_consumers.
-
#stream_sinks ⇒ Object
readonly
Returns the value of attribute stream_sinks.
-
#streams ⇒ Object
readonly
Returns the value of attribute streams.
-
#subscriptions ⇒ Object
readonly
Returns the value of attribute subscriptions.
-
#transformations ⇒ Object
readonly
Returns the value of attribute transformations.
-
#users ⇒ Object
readonly
Returns the value of attribute users.
Instance Method Summary collapse
-
#initialize(base_url: "http://localhost:8080", api_key: nil, open_timeout: GraphQLTransport::DEFAULT_OPEN_TIMEOUT, read_timeout: GraphQLTransport::DEFAULT_READ_TIMEOUT, max_retries: GraphQLTransport::DEFAULT_MAX_RETRIES) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(base_url: "http://localhost:8080", api_key: nil, open_timeout: GraphQLTransport::DEFAULT_OPEN_TIMEOUT, read_timeout: GraphQLTransport::DEFAULT_READ_TIMEOUT, max_retries: GraphQLTransport::DEFAULT_MAX_RETRIES) ⇒ Client
Returns a new instance of Client.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/hivehook.rb', line 42 def initialize(base_url: "http://localhost:8080", api_key: nil, open_timeout: GraphQLTransport::DEFAULT_OPEN_TIMEOUT, read_timeout: GraphQLTransport::DEFAULT_READ_TIMEOUT, max_retries: GraphQLTransport::DEFAULT_MAX_RETRIES) transport = GraphQLTransport.new(base_url, api_key, open_timeout: open_timeout, read_timeout: read_timeout, max_retries: max_retries) @sources = Resources::SourceService.new(transport) @destinations = Resources::DestinationService.new(transport) @subscriptions = Resources::SubscriptionService.new(transport) @events = Resources::EventService.new(transport) @deliveries = Resources::DeliveryService.new(transport) @dlq = Resources::DLQService.new(transport) @api_keys = Resources::APIKeyService.new(transport) @alert_rules = Resources::AlertRuleService.new(transport) @bookmarks = Resources::BookmarkService.new(transport) @event_type_schemas = Resources::EventTypeSchemaService.new(transport) @applications = Resources::ApplicationService.new(transport) @endpoints = Resources::EndpointService.new(transport) @messages = Resources::MessageService.new(transport) @outbound_deliveries = Resources::OutboundDeliveryService.new(transport) @outbound_dlq = Resources::OutboundDLQService.new(transport) @status = Resources::StatusService.new(transport) @transformations = Resources::TransformationService.new(transport) @portal = Resources::PortalService.new(transport) @streams = Resources::StreamService.new(transport) @stream_consumers = Resources::StreamConsumerService.new(transport) @stream_sinks = Resources::StreamSinkService.new(transport) @organizations = Resources::OrganizationService.new(transport) @users = Resources::UserService.new(transport) @audit_logs = Resources::AuditLogService.new(transport) end |
Instance Attribute Details
#alert_rules ⇒ Object (readonly)
Returns the value of attribute alert_rules.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def alert_rules @alert_rules end |
#api_keys ⇒ Object (readonly)
Returns the value of attribute api_keys.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def api_keys @api_keys end |
#applications ⇒ Object (readonly)
Returns the value of attribute applications.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def applications @applications end |
#audit_logs ⇒ Object (readonly)
Returns the value of attribute audit_logs.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def audit_logs @audit_logs end |
#bookmarks ⇒ Object (readonly)
Returns the value of attribute bookmarks.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def bookmarks @bookmarks end |
#deliveries ⇒ Object (readonly)
Returns the value of attribute deliveries.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def deliveries @deliveries end |
#destinations ⇒ Object (readonly)
Returns the value of attribute destinations.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def destinations @destinations end |
#dlq ⇒ Object (readonly)
Returns the value of attribute dlq.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def dlq @dlq end |
#endpoints ⇒ Object (readonly)
Returns the value of attribute endpoints.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def endpoints @endpoints end |
#event_type_schemas ⇒ Object (readonly)
Returns the value of attribute event_type_schemas.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def event_type_schemas @event_type_schemas end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def events @events end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def @messages end |
#organizations ⇒ Object (readonly)
Returns the value of attribute organizations.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def organizations @organizations end |
#outbound_deliveries ⇒ Object (readonly)
Returns the value of attribute outbound_deliveries.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def outbound_deliveries @outbound_deliveries end |
#outbound_dlq ⇒ Object (readonly)
Returns the value of attribute outbound_dlq.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def outbound_dlq @outbound_dlq end |
#portal ⇒ Object (readonly)
Returns the value of attribute portal.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def portal @portal end |
#sources ⇒ Object (readonly)
Returns the value of attribute sources.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def sources @sources end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def status @status end |
#stream_consumers ⇒ Object (readonly)
Returns the value of attribute stream_consumers.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def stream_consumers @stream_consumers end |
#stream_sinks ⇒ Object (readonly)
Returns the value of attribute stream_sinks.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def stream_sinks @stream_sinks end |
#streams ⇒ Object (readonly)
Returns the value of attribute streams.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def streams @streams end |
#subscriptions ⇒ Object (readonly)
Returns the value of attribute subscriptions.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def subscriptions @subscriptions end |
#transformations ⇒ Object (readonly)
Returns the value of attribute transformations.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def transformations @transformations end |
#users ⇒ Object (readonly)
Returns the value of attribute users.
35 36 37 |
# File 'lib/hivehook.rb', line 35 def users @users end |