Class: Google::Apis::TpuV2::NetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2::NetworkConfig
- 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
Network related configurations.
Instance Attribute Summary collapse
-
#can_ip_forward ⇒ Boolean
(also: #can_ip_forward?)
Allows the TPU node to send and receive packets with non-matching destination or source IPs.
-
#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.
-
#queue_count ⇒ Fixnum
Optional.
-
#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.
712 713 714 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 712 def initialize(**args) update!(**args) end |
Instance Attribute Details
#can_ip_forward ⇒ Boolean Also known as: can_ip_forward?
Allows the TPU node to send and receive packets with non-matching destination
or source IPs. This is required if you plan to use the TPU workers to forward
routes.
Corresponds to the JSON property canIpForward
683 684 685 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 683 def can_ip_forward @can_ip_forward end |
#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
691 692 693 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 691 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
698 699 700 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 698 def network @network end |
#queue_count ⇒ Fixnum
Optional. Specifies networking queue count for TPU VM instance's network
interface.
Corresponds to the JSON property queueCount
704 705 706 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 704 def queue_count @queue_count 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
710 711 712 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 710 def subnetwork @subnetwork end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
717 718 719 720 721 722 723 |
# File 'lib/google/apis/tpu_v2/classes.rb', line 717 def update!(**args) @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) @enable_external_ips = args[:enable_external_ips] if args.key?(:enable_external_ips) @network = args[:network] if args.key?(:network) @queue_count = args[:queue_count] if args.key?(:queue_count) @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end |