Class: Google::Apis::ContainerV1beta1::TpuConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TpuConfig

Returns a new instance of TpuConfig.



4361
4362
4363
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4361

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enabledBoolean Also known as: enabled?

Whether Cloud TPU integration is enabled or not. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


4347
4348
4349
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4347

def enabled
  @enabled
end

#ipv4_cidr_blockString

IPv4 CIDR block reserved for Cloud TPU in the VPC. Corresponds to the JSON property ipv4CidrBlock

Returns:

  • (String)


4353
4354
4355
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4353

def ipv4_cidr_block
  @ipv4_cidr_block
end

#use_service_networkingBoolean Also known as: use_service_networking?

Whether to use service networking for Cloud TPU or not. Corresponds to the JSON property useServiceNetworking

Returns:

  • (Boolean)


4358
4359
4360
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4358

def use_service_networking
  @use_service_networking
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4366
4367
4368
4369
4370
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4366

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