Class: Google::Apis::ContainerV1beta1::TpuConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::TpuConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/representations.rb
Overview
Configuration for Cloud TPU.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether Cloud TPU integration is enabled or not.
-
#ipv4_cidr_block ⇒ String
IPv4 CIDR block reserved for Cloud TPU in the VPC.
-
#use_service_networking ⇒ Boolean
(also: #use_service_networking?)
Whether to use service networking for Cloud TPU or not.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TpuConfig
constructor
A new instance of TpuConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TpuConfig
Returns a new instance of TpuConfig.
4604 4605 4606 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4604 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Whether Cloud TPU integration is enabled or not.
Corresponds to the JSON property enabled
4590 4591 4592 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4590 def enabled @enabled end |
#ipv4_cidr_block ⇒ String
IPv4 CIDR block reserved for Cloud TPU in the VPC.
Corresponds to the JSON property ipv4CidrBlock
4596 4597 4598 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4596 def ipv4_cidr_block @ipv4_cidr_block end |
#use_service_networking ⇒ Boolean Also known as: use_service_networking?
Whether to use service networking for Cloud TPU or not.
Corresponds to the JSON property useServiceNetworking
4601 4602 4603 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4601 def use_service_networking @use_service_networking end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4609 4610 4611 4612 4613 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4609 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @ipv4_cidr_block = args[:ipv4_cidr_block] if args.key?(:ipv4_cidr_block) @use_service_networking = args[:use_service_networking] if args.key?(:use_service_networking) end |