Class: Google::Apis::BlockchainnodeengineV1::BlockchainNode

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

A representation of a blockchain node.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeString

Immutable. The blockchain type of the node. Corresponds to the JSON property blockchainType

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 32

def blockchain_type
  @blockchain_type
end

#connection_infoGoogle::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_timeString

Output only. The timestamp at which the blockchain node was first created. Corresponds to the JSON property createTime

Returns:

  • (String)


42
43
44
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 42

def create_time
  @create_time
end

#ethereum_detailsGoogle::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

#labelsHash<String,String>

User-provided key-value pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


52
53
54
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 52

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


58
59
60
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 58

def name
  @name
end

#stateString

Output only. A status representing the state of the node. Corresponds to the JSON property state

Returns:

  • (String)


63
64
65
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 63

def state
  @state
end

#update_timeString

Output only. The timestamp at which the blockchain node was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


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