Class: Google::Apis::TpuV2alpha1::NetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2alpha1::NetworkConfig
- 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
Network related configurations.
Instance Attribute Summary collapse
-
#enable_external_ips ⇒ Boolean
(also: #enable_external_ips?)
Indicates that external IP addresses would be associated with the TPU workers.
-
#network ⇒ String
The name of the network for the TPU node.
-
#subnetwork ⇒ String
The name of the subnetwork for the TPU node.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkConfig
constructor
A new instance of NetworkConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkConfig
Returns a new instance of NetworkConfig.
480 481 482 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 480 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_external_ips ⇒ Boolean Also known as: enable_external_ips?
Indicates that external IP addresses would be associated with the TPU workers.
If set to false, the specified subnetwork or network should have Private
Google Access enabled.
Corresponds to the JSON property enableExternalIps
465 466 467 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 465 def enable_external_ips @enable_external_ips end |
#network ⇒ String
The name of the network for the TPU node. It must be a preexisting Google
Compute Engine network. If none is provided, "default" will be used.
Corresponds to the JSON property network
472 473 474 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 472 def network @network end |
#subnetwork ⇒ String
The name of the subnetwork for the TPU node. It must be a preexisting Google
Compute Engine subnetwork. If none is provided, "default" will be used.
Corresponds to the JSON property subnetwork
478 479 480 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 478 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
485 486 487 488 489 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 485 def update!(**args) @enable_external_ips = args[:enable_external_ips] if args.key?(:enable_external_ips) @network = args[:network] if args.key?(:network) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |