diff --git a/api_names_out.yaml b/api_names_out.yaml index 78e29ca76dc..f83ceac6a30 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 @@ -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 diff --git a/generated/google-apis-tpu_v2/CHANGELOG.md b/generated/google-apis-tpu_v2/CHANGELOG.md index e4079435994..736d800ac71 100644 --- a/generated/google-apis-tpu_v2/CHANGELOG.md +++ b/generated/google-apis-tpu_v2/CHANGELOG.md @@ -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 diff --git a/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/classes.rb b/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/classes.rb index e94d500125d..06923fa4777 100644 --- a/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/classes.rb +++ b/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/classes.rb @@ -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 @@ -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 @@ -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 @@ -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) diff --git a/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/gem_version.rb b/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/gem_version.rb index cae37177e38..209e851cdbd 100644 --- a/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/gem_version.rb +++ b/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/gem_version.rb @@ -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 diff --git a/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/representations.rb b/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/representations.rb index 24e6b1d251c..8cc6aaadbd2 100644 --- a/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/representations.rb +++ b/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/representations.rb @@ -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 @@ -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 @@ -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 diff --git a/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/service.rb b/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/service.rb index 46389f7e825..1f36c595090 100644 --- a/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/service.rb +++ b/generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/service.rb @@ -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] 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