Class: Google::Apis::BlockchainnodeengineV1::EndpointInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/blockchainnodeengine_v1/classes.rb,
lib/google/apis/blockchainnodeengine_v1/representations.rb,
lib/google/apis/blockchainnodeengine_v1/representations.rb

Overview

Contains endpoint information through which to interact with a blockchain node.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EndpointInfo

Returns a new instance of EndpointInfo.



151
152
153
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 151

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#json_rpc_api_endpointString

Output only. The assigned URL for the node JSON-RPC API endpoint. Corresponds to the JSON property jsonRpcApiEndpoint

Returns:

  • (String)


144
145
146
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 144

def json_rpc_api_endpoint
  @json_rpc_api_endpoint
end

#websockets_api_endpointString

Output only. The assigned URL for the node WebSockets API endpoint. Corresponds to the JSON property websocketsApiEndpoint

Returns:

  • (String)


149
150
151
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 149

def websockets_api_endpoint
  @websockets_api_endpoint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



156
157
158
159
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 156

def update!(**args)
  @json_rpc_api_endpoint = args[:json_rpc_api_endpoint] if args.key?(:json_rpc_api_endpoint)
  @websockets_api_endpoint = args[:websockets_api_endpoint] if args.key?(:websockets_api_endpoint)
end