Class: Google::Apis::TpuV2alpha1::NetworkEndpoint
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2alpha1::NetworkEndpoint
- 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
-
#access_config ⇒ Google::Apis::TpuV2alpha1::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.
840 841 842 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 840 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_config ⇒ Google::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_address ⇒ String
The internal IP address of this network endpoint.
Corresponds to the JSON property ipAddress
833 834 835 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 833 def ip_address @ip_address end |
#port ⇒ Fixnum
The port of this network endpoint.
Corresponds to the JSON property port
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 |