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.



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

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



828
829
830
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 828

def access_config
  @access_config
end

#ip_addressString

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

Returns:

  • (String)


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

def ip_address
  @ip_address
end

#portFixnum

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

Returns:

  • (Fixnum)


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

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



845
846
847
848
849
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 845

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