Class: Google::Apis::BlockchainnodeengineV1::ConnectionInfo

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

The connection information through which to interact with a blockchain node.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConnectionInfo

Returns a new instance of ConnectionInfo.



126
127
128
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 126

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

Instance Attribute Details

#endpoint_infoGoogle::Apis::BlockchainnodeengineV1::EndpointInfo

Contains endpoint information through which to interact with a blockchain node. Corresponds to the JSON property endpointInfo



117
118
119
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 117

def endpoint_info
  @endpoint_info
end

#service_attachmentString

Output only. A service attachment that exposes a node, and has the following format: projects/project/regions/region/serviceAttachments/ service_attachment_name Corresponds to the JSON property serviceAttachment

Returns:

  • (String)


124
125
126
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 124

def service_attachment
  @service_attachment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



131
132
133
134
# File 'lib/google/apis/blockchainnodeengine_v1/classes.rb', line 131

def update!(**args)
  @endpoint_info = args[:endpoint_info] if args.key?(:endpoint_info)
  @service_attachment = args[:service_attachment] if args.key?(:service_attachment)
end