Class: Google::Apis::TpuV2alpha1::NetworkEndpoint

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/tpu_v2alpha1/classes.rb,
lib/google/apis/tpu_v2alpha1/representations.rb,
lib/google/apis/tpu_v2alpha1/representations.rb

Overview

A network endpoint over which a TPU worker can be reached.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkEndpoint

Returns a new instance of NetworkEndpoint.



833
834
835
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 833

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

Instance Attribute Details

#access_configGoogle::Apis::TpuV2alpha1::AccessConfig

An access config attached to the TPU worker. Corresponds to the JSON property accessConfig



821
822
823
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 821

def access_config
  @access_config
end

#ip_addressString

The internal IP address of this network endpoint. Corresponds to the JSON property ipAddress

Returns:

  • (String)


826
827
828
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 826

def ip_address
  @ip_address
end

#portFixnum

The port of this network endpoint. Corresponds to the JSON property port

Returns:

  • (Fixnum)


831
832
833
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 831

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



838
839
840
841
842
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 838

def update!(**args)
  @access_config = args[:access_config] if args.key?(:access_config)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @port = args[:port] if args.key?(:port)
end