Class: Hivehook::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/hivehook.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_rulesObject (readonly)

Returns the value of attribute alert_rules.



35
36
37
# File 'lib/hivehook.rb', line 35

def alert_rules
  @alert_rules
end

#api_keysObject (readonly)

Returns the value of attribute api_keys.



35
36
37
# File 'lib/hivehook.rb', line 35

def api_keys
  @api_keys
end

#applicationsObject (readonly)

Returns the value of attribute applications.



35
36
37
# File 'lib/hivehook.rb', line 35

def applications
  @applications
end

#audit_logsObject (readonly)

Returns the value of attribute audit_logs.



35
36
37
# File 'lib/hivehook.rb', line 35

def audit_logs
  @audit_logs
end

#bookmarksObject (readonly)

Returns the value of attribute bookmarks.



35
36
37
# File 'lib/hivehook.rb', line 35

def bookmarks
  @bookmarks
end

#deliveriesObject (readonly)

Returns the value of attribute deliveries.



35
36
37
# File 'lib/hivehook.rb', line 35

def deliveries
  @deliveries
end

#destinationsObject (readonly)

Returns the value of attribute destinations.



35
36
37
# File 'lib/hivehook.rb', line 35

def destinations
  @destinations
end

#dlqObject (readonly)

Returns the value of attribute dlq.



35
36
37
# File 'lib/hivehook.rb', line 35

def dlq
  @dlq
end

#endpointsObject (readonly)

Returns the value of attribute endpoints.



35
36
37
# File 'lib/hivehook.rb', line 35

def endpoints
  @endpoints
end

#event_type_schemasObject (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

#eventsObject (readonly)

Returns the value of attribute events.



35
36
37
# File 'lib/hivehook.rb', line 35

def events
  @events
end

#messagesObject (readonly)

Returns the value of attribute messages.



35
36
37
# File 'lib/hivehook.rb', line 35

def messages
  @messages
end

#organizationsObject (readonly)

Returns the value of attribute organizations.



35
36
37
# File 'lib/hivehook.rb', line 35

def organizations
  @organizations
end

#outbound_deliveriesObject (readonly)

Returns the value of attribute outbound_deliveries.



35
36
37
# File 'lib/hivehook.rb', line 35

def outbound_deliveries
  @outbound_deliveries
end

#outbound_dlqObject (readonly)

Returns the value of attribute outbound_dlq.



35
36
37
# File 'lib/hivehook.rb', line 35

def outbound_dlq
  @outbound_dlq
end

#portalObject (readonly)

Returns the value of attribute portal.



35
36
37
# File 'lib/hivehook.rb', line 35

def portal
  @portal
end

#sourcesObject (readonly)

Returns the value of attribute sources.



35
36
37
# File 'lib/hivehook.rb', line 35

def sources
  @sources
end

#statusObject (readonly)

Returns the value of attribute status.



35
36
37
# File 'lib/hivehook.rb', line 35

def status
  @status
end

#stream_consumersObject (readonly)

Returns the value of attribute stream_consumers.



35
36
37
# File 'lib/hivehook.rb', line 35

def stream_consumers
  @stream_consumers
end

#stream_sinksObject (readonly)

Returns the value of attribute stream_sinks.



35
36
37
# File 'lib/hivehook.rb', line 35

def stream_sinks
  @stream_sinks
end

#streamsObject (readonly)

Returns the value of attribute streams.



35
36
37
# File 'lib/hivehook.rb', line 35

def streams
  @streams
end

#subscriptionsObject (readonly)

Returns the value of attribute subscriptions.



35
36
37
# File 'lib/hivehook.rb', line 35

def subscriptions
  @subscriptions
end

#transformationsObject (readonly)

Returns the value of attribute transformations.



35
36
37
# File 'lib/hivehook.rb', line 35

def transformations
  @transformations
end

#usersObject (readonly)

Returns the value of attribute users.



35
36
37
# File 'lib/hivehook.rb', line 35

def users
  @users
end