Class: Google::Apis::BlockchainnodeengineV1::EndpointInfo
- Inherits:
-
Object
- Object
- Google::Apis::BlockchainnodeengineV1::EndpointInfo
- 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
-
#json_rpc_api_endpoint ⇒ String
Output only.
-
#websockets_api_endpoint ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EndpointInfo
constructor
A new instance of EndpointInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_endpoint ⇒ String
Output only. The assigned URL for the node JSON-RPC API endpoint.
Corresponds to the JSON property jsonRpcApiEndpoint
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_endpoint ⇒ String
Output only. The assigned URL for the node WebSockets API endpoint.
Corresponds to the JSON property websocketsApiEndpoint
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 |