Class: Google::Apis::BlockchainnodeengineV1::EthereumDetails

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

Ethereum-specific blockchain node details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EthereumDetails

Returns a new instance of EthereumDetails.



193
194
195
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 193

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#additional_endpointsGoogle::Apis::BlockchainnodeengineV1::EthereumEndpoints

Contains endpoint information specific to Ethereum nodes. Corresponds to the JSON property additionalEndpoints



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

def additional_endpoints
  @additional_endpoints
end

#api_enable_adminBoolean Also known as: api_enable_admin?

Immutable. Enables JSON-RPC access to functions in the admin namespace. Defaults to false. Corresponds to the JSON property apiEnableAdmin

Returns:

  • (Boolean)


157
158
159
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 157

def api_enable_admin
  @api_enable_admin
end

#api_enable_debugBoolean Also known as: api_enable_debug?

Immutable. Enables JSON-RPC access to functions in the debug namespace. Defaults to false. Corresponds to the JSON property apiEnableDebug

Returns:

  • (Boolean)


164
165
166
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 164

def api_enable_debug
  @api_enable_debug
end

#consensus_clientString

Immutable. The consensus client. Corresponds to the JSON property consensusClient

Returns:

  • (String)


170
171
172
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 170

def consensus_client
  @consensus_client
end

#execution_clientString

Immutable. The execution client Corresponds to the JSON property executionClient

Returns:

  • (String)


175
176
177
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 175

def execution_client
  @execution_client
end

#geth_detailsGoogle::Apis::BlockchainnodeengineV1::GethDetails

Options for the Geth execution client. See Command-line Options for more details. Corresponds to the JSON property gethDetails



181
182
183
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 181

def geth_details
  @geth_details
end

#networkString

Immutable. The Ethereum environment being accessed. Corresponds to the JSON property network

Returns:

  • (String)


186
187
188
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 186

def network
  @network
end

#node_typeString

Immutable. The type of Ethereum node. Corresponds to the JSON property nodeType

Returns:

  • (String)


191
192
193
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 191

def node_type
  @node_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



198
199
200
201
202
203
204
205
206
207
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 198

def update!(**args)
  @additional_endpoints = args[:additional_endpoints] if args.key?(:additional_endpoints)
  @api_enable_admin = args[:api_enable_admin] if args.key?(:api_enable_admin)
  @api_enable_debug = args[:api_enable_debug] if args.key?(:api_enable_debug)
  @consensus_client = args[:consensus_client] if args.key?(:consensus_client)
  @execution_client = args[:execution_client] if args.key?(:execution_client)
  @geth_details = args[:geth_details] if args.key?(:geth_details)
  @network = args[:network] if args.key?(:network)
  @node_type = args[:node_type] if args.key?(:node_type)
end