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.



79
80
81
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 79

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

#private_service_connect_enabledBoolean Also known as: private_service_connect_enabled?

Optional. When true, the node is only accessible via Private Service Connect; no public endpoints are exposed. Otherwise, the node is only accessible via public endpoints. See https://cloud.google.com/vpc/docs/private-service- connect. Corresponds to the JSON property privateServiceConnectEnabled

Returns:

  • (Boolean)


66
67
68
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 66

def private_service_connect_enabled
  @private_service_connect_enabled
end

#stateString

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

Returns:

  • (String)


72
73
74
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 72

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)


77
78
79
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 77

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



84
85
86
87
88
89
90
91
92
93
94
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 84

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)
  @private_service_connect_enabled = args[:private_service_connect_enabled] if args.key?(:private_service_connect_enabled)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end