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.



511
512
513
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 511

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



499
500
501
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 499

def access_config
  @access_config
end

#ip_addressString

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

Returns:

  • (String)


504
505
506
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 504

def ip_address
  @ip_address
end

#portFixnum

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

Returns:

  • (Fixnum)


509
510
511
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 509

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



516
517
518
519
520
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 516

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