Class: Google::Apis::BlockchainnodeengineV1::BlockchainNode
- Inherits:
-
Object
- Object
- Google::Apis::BlockchainnodeengineV1::BlockchainNode
- 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
A representation of a blockchain node.
Instance Attribute Summary collapse
-
#blockchain_type ⇒ String
Immutable.
-
#connection_info ⇒ Google::Apis::BlockchainnodeengineV1::ConnectionInfo
The connection information through which to interact with a blockchain node.
-
#create_time ⇒ String
Output only.
-
#ethereum_details ⇒ Google::Apis::BlockchainnodeengineV1::EthereumDetails
Ethereum-specific blockchain node details.
-
#labels ⇒ Hash<String,String>
User-provided key-value pairs.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BlockchainNode
constructor
A new instance of BlockchainNode.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BlockchainNode
Returns a new instance of BlockchainNode.
70 71 72 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 70 def initialize(**args) update!(**args) end |
Instance Attribute Details
#blockchain_type ⇒ String
Immutable. The blockchain type of the node.
Corresponds to the JSON property blockchainType
32 33 34 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 32 def blockchain_type @blockchain_type end |
#connection_info ⇒ Google::Apis::BlockchainnodeengineV1::ConnectionInfo
The connection information through which to interact with a blockchain node.
Corresponds to the JSON property connectionInfo
37 38 39 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 37 def connection_info @connection_info end |
#create_time ⇒ String
Output only. The timestamp at which the blockchain node was first created.
Corresponds to the JSON property createTime
42 43 44 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 42 def create_time @create_time end |
#ethereum_details ⇒ Google::Apis::BlockchainnodeengineV1::EthereumDetails
Ethereum-specific blockchain node details.
Corresponds to the JSON property ethereumDetails
47 48 49 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 47 def ethereum_details @ethereum_details end |
#labels ⇒ Hash<String,String>
User-provided key-value pairs.
Corresponds to the JSON property labels
52 53 54 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 52 def labels @labels end |
#name ⇒ String
Output only. The fully qualified name of the blockchain node. e.g. projects/
my-project/locations/us-central1/blockchainNodes/my-node.
Corresponds to the JSON property name
58 59 60 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 58 def name @name end |
#state ⇒ String
Output only. A status representing the state of the node.
Corresponds to the JSON property state
63 64 65 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 63 def state @state end |
#update_time ⇒ String
Output only. The timestamp at which the blockchain node was last updated.
Corresponds to the JSON property updateTime
68 69 70 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 68 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
75 76 77 78 79 80 81 82 83 84 |
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 75 def update!(**args) @blockchain_type = args[:blockchain_type] if args.key?(:blockchain_type) @connection_info = args[:connection_info] if args.key?(:connection_info) @create_time = args[:create_time] if args.key?(:create_time) @ethereum_details = args[:ethereum_details] if args.key?(:ethereum_details) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |