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.



154
155
156
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 154

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)


147
148
149
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 147

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)


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

def websockets_api_endpoint
  @websockets_api_endpoint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



159
160
161
162
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 159

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