class Google::Apis::TpuV2alpha1::NetworkConfig

Network related configurations.

Attributes

can_ip_forward[RW]

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` @return [Boolean]

can_ip_forward?[RW]

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` @return [Boolean]

enable_external_ips[RW]

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` @return [Boolean]

enable_external_ips?[RW]

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` @return [Boolean]

network[RW]

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` @return [String]

subnetwork[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/tpu_v2alpha1/classes.rb, line 487
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/tpu_v2alpha1/classes.rb, line 492
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)
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
end