Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363313,7 +363313,11 @@
"/tpu:v2/AttachedDisk": attached_disk
"/tpu:v2/AttachedDisk/mode": mode
"/tpu:v2/AttachedDisk/sourceDisk": source_disk
"/tpu:v2/BootDiskConfig": boot_disk_config
"/tpu:v2/BootDiskConfig/customerEncryptionKey": customer_encryption_key
"/tpu:v2/CreatingData": creating_data
"/tpu:v2/CustomerEncryptionKey": customer_encryption_key
"/tpu:v2/CustomerEncryptionKey/kmsKeyName": kms_key_name
"/tpu:v2/DeletingData": deleting_data
"/tpu:v2/Empty": empty
"/tpu:v2/FailedData": failed_data
Expand Down Expand Up @@ -363400,6 +363404,7 @@
"/tpu:v2/Node/acceleratorConfig": accelerator_config
"/tpu:v2/Node/acceleratorType": accelerator_type
"/tpu:v2/Node/apiVersion": api_version
"/tpu:v2/Node/bootDiskConfig": boot_disk_config
"/tpu:v2/Node/cidrBlock": cidr_block
"/tpu:v2/Node/createTime": create_time
"/tpu:v2/Node/dataDisks": data_disks
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-tpu_v2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-tpu_v2

### v0.19.0 (2025-09-14)

* Regenerated from discovery document revision 20250903

### v0.18.0 (2025-08-24)

* Regenerated from discovery document revision 20250815
Expand Down
48 changes: 48 additions & 0 deletions generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,25 @@ def update!(**args)
end
end

# Sets the boot disk configuration for the TPU node.
class BootDiskConfig
include Google::Apis::Core::Hashable

# Defines the customer encryption key for disk encryption.
# Corresponds to the JSON property `customerEncryptionKey`
# @return [Google::Apis::TpuV2::CustomerEncryptionKey]
attr_accessor :customer_encryption_key

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

# Update properties of this object
def update!(**args)
@customer_encryption_key = args[:customer_encryption_key] if args.key?(:customer_encryption_key)
end
end

# Further data for the creating state.
class CreatingData
include Google::Apis::Core::Hashable
Expand All @@ -163,6 +182,29 @@ def update!(**args)
end
end

# Defines the customer encryption key for disk encryption.
class CustomerEncryptionKey
include Google::Apis::Core::Hashable

# The name of the encryption key that is stored in Google Cloud KMS. For example:
# "kmsKeyName": "projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/
# cryptoKeys/KEY The fully-qualifed key name may be returned for resource GET
# requests. For example: "kmsKeyName": "projects/KMS_PROJECT_ID/locations/REGION/
# keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1
# Corresponds to the JSON property `kmsKeyName`
# @return [String]
attr_accessor :kms_key_name

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

# Update properties of this object
def update!(**args)
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
end
end

# Further data for the deleting state.
class DeletingData
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -773,6 +815,11 @@ class Node
# @return [String]
attr_accessor :api_version

# Sets the boot disk configuration for the TPU node.
# Corresponds to the JSON property `bootDiskConfig`
# @return [Google::Apis::TpuV2::BootDiskConfig]
attr_accessor :boot_disk_config

# The CIDR block that the TPU node will use when selecting an IP address. This
# CIDR block must be a /29 block; the Compute Engine networks API forbids a
# smaller block, and using a larger block would be wasteful (a node can only
Expand Down Expand Up @@ -912,6 +959,7 @@ def update!(**args)
@accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
@accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
@api_version = args[:api_version] if args.key?(:api_version)
@boot_disk_config = args[:boot_disk_config] if args.key?(:boot_disk_config)
@cidr_block = args[:cidr_block] if args.key?(:cidr_block)
@create_time = args[:create_time] if args.key?(:create_time)
@data_disks = args[:data_disks] if args.key?(:data_disks)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module TpuV2
# Version of the google-apis-tpu_v2 gem
GEM_VERSION = "0.18.0"
GEM_VERSION = "0.19.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.18.0"

# Revision of the discovery document this client was generated from
REVISION = "20250815"
REVISION = "20250903"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class BootDiskConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class CreatingData
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class CustomerEncryptionKey
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class DeletingData
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -379,12 +391,27 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class BootDiskConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :customer_encryption_key, as: 'customerEncryptionKey', class: Google::Apis::TpuV2::CustomerEncryptionKey, decorator: Google::Apis::TpuV2::CustomerEncryptionKey::Representation

end
end

class CreatingData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end

class CustomerEncryptionKey
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kms_key_name, as: 'kmsKeyName'
end
end

class DeletingData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -581,6 +608,8 @@ class Representation < Google::Apis::Core::JsonRepresentation

property :accelerator_type, as: 'acceleratorType'
property :api_version, as: 'apiVersion'
property :boot_disk_config, as: 'bootDiskConfig', class: Google::Apis::TpuV2::BootDiskConfig, decorator: Google::Apis::TpuV2::BootDiskConfig::Representation

property :cidr_block, as: 'cidrBlock'
property :create_time, as: 'createTime'
collection :data_disks, as: 'dataDisks', class: Google::Apis::TpuV2::AttachedDisk, decorator: Google::Apis::TpuV2::AttachedDisk::Representation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
# @param [String] name
# The resource that owns the locations collection, if applicable.
# @param [Array<String>, String] extra_location_types
# Optional. Do not use this field. It is unsupported and is ignored unless
# explicitly documented otherwise. This is primarily for internal usage.
# Optional. Unless explicitly documented otherwise, don't use this unsupported
# field which is primarily intended for internal usage.
# @param [String] filter
# A filter to narrow down results to a preferred subset. The filtering language
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
Expand Down
Loading