Class: Google::Apis::TpuV2::NetworkEndpoint
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2::NetworkEndpoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tpu_v2/classes.rb,
lib/google/apis/tpu_v2/representations.rb,
lib/google/apis/tpu_v2/representations.rb
Overview
A network endpoint over which a TPU worker can be reached.
Instance Attribute Summary collapse
-
#access_config ⇒ Google::Apis::TpuV2::AccessConfig
An access config attached to the TPU worker.
-
#ip_address ⇒ String
The internal IP address of this network endpoint.
-
#port ⇒ Fixnum
The port of this network endpoint.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkEndpoint
constructor
A new instance of NetworkEndpoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkEndpoint
Returns a new instance of NetworkEndpoint.
796 797 798 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 796 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_config ⇒ Google::Apis::TpuV2::AccessConfig
An access config attached to the TPU worker.
Corresponds to the JSON property accessConfig
784 785 786 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 784 def access_config @access_config end |
#ip_address ⇒ String
The internal IP address of this network endpoint.
Corresponds to the JSON property ipAddress
789 790 791 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 789 def ip_address @ip_address end |
#port ⇒ Fixnum
The port of this network endpoint.
Corresponds to the JSON property port
794 795 796 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 794 def port @port end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
801 802 803 804 805 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 801 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 |