Skip to content

Commit c4a842c

Browse files
feat: Automated regeneration of tpu v2 client (googleapis#24302)
Auto-created at 2025-09-14 10:49:50 +0000 using the toys pull request generator.
1 parent c215d3b commit c4a842c

File tree

6 files changed

+90
-4
lines changed

6 files changed

+90
-4
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364112,7 +364112,11 @@
364112364112
"/tpu:v2/AttachedDisk": attached_disk
364113364113
"/tpu:v2/AttachedDisk/mode": mode
364114364114
"/tpu:v2/AttachedDisk/sourceDisk": source_disk
364115+
"/tpu:v2/BootDiskConfig": boot_disk_config
364116+
"/tpu:v2/BootDiskConfig/customerEncryptionKey": customer_encryption_key
364115364117
"/tpu:v2/CreatingData": creating_data
364118+
"/tpu:v2/CustomerEncryptionKey": customer_encryption_key
364119+
"/tpu:v2/CustomerEncryptionKey/kmsKeyName": kms_key_name
364116364120
"/tpu:v2/DeletingData": deleting_data
364117364121
"/tpu:v2/Empty": empty
364118364122
"/tpu:v2/FailedData": failed_data
@@ -364199,6 +364203,7 @@
364199364203
"/tpu:v2/Node/acceleratorConfig": accelerator_config
364200364204
"/tpu:v2/Node/acceleratorType": accelerator_type
364201364205
"/tpu:v2/Node/apiVersion": api_version
364206+
"/tpu:v2/Node/bootDiskConfig": boot_disk_config
364202364207
"/tpu:v2/Node/cidrBlock": cidr_block
364203364208
"/tpu:v2/Node/createTime": create_time
364204364209
"/tpu:v2/Node/dataDisks": data_disks

generated/google-apis-tpu_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-tpu_v2
22

3+
### v0.19.0 (2025-09-14)
4+
5+
* Regenerated from discovery document revision 20250903
6+
37
### v0.18.0 (2025-08-24)
48

59
* Regenerated from discovery document revision 20250815

generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/classes.rb

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,25 @@ def update!(**args)
150150
end
151151
end
152152

153+
# Sets the boot disk configuration for the TPU node.
154+
class BootDiskConfig
155+
include Google::Apis::Core::Hashable
156+
157+
# Defines the customer encryption key for disk encryption.
158+
# Corresponds to the JSON property `customerEncryptionKey`
159+
# @return [Google::Apis::TpuV2::CustomerEncryptionKey]
160+
attr_accessor :customer_encryption_key
161+
162+
def initialize(**args)
163+
update!(**args)
164+
end
165+
166+
# Update properties of this object
167+
def update!(**args)
168+
@customer_encryption_key = args[:customer_encryption_key] if args.key?(:customer_encryption_key)
169+
end
170+
end
171+
153172
# Further data for the creating state.
154173
class CreatingData
155174
include Google::Apis::Core::Hashable
@@ -163,6 +182,29 @@ def update!(**args)
163182
end
164183
end
165184

185+
# Defines the customer encryption key for disk encryption.
186+
class CustomerEncryptionKey
187+
include Google::Apis::Core::Hashable
188+
189+
# The name of the encryption key that is stored in Google Cloud KMS. For example:
190+
# "kmsKeyName": "projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/
191+
# cryptoKeys/KEY The fully-qualifed key name may be returned for resource GET
192+
# requests. For example: "kmsKeyName": "projects/KMS_PROJECT_ID/locations/REGION/
193+
# keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1
194+
# Corresponds to the JSON property `kmsKeyName`
195+
# @return [String]
196+
attr_accessor :kms_key_name
197+
198+
def initialize(**args)
199+
update!(**args)
200+
end
201+
202+
# Update properties of this object
203+
def update!(**args)
204+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
205+
end
206+
end
207+
166208
# Further data for the deleting state.
167209
class DeletingData
168210
include Google::Apis::Core::Hashable
@@ -773,6 +815,11 @@ class Node
773815
# @return [String]
774816
attr_accessor :api_version
775817

818+
# Sets the boot disk configuration for the TPU node.
819+
# Corresponds to the JSON property `bootDiskConfig`
820+
# @return [Google::Apis::TpuV2::BootDiskConfig]
821+
attr_accessor :boot_disk_config
822+
776823
# The CIDR block that the TPU node will use when selecting an IP address. This
777824
# CIDR block must be a /29 block; the Compute Engine networks API forbids a
778825
# smaller block, and using a larger block would be wasteful (a node can only
@@ -912,6 +959,7 @@ def update!(**args)
912959
@accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
913960
@accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
914961
@api_version = args[:api_version] if args.key?(:api_version)
962+
@boot_disk_config = args[:boot_disk_config] if args.key?(:boot_disk_config)
915963
@cidr_block = args[:cidr_block] if args.key?(:cidr_block)
916964
@create_time = args[:create_time] if args.key?(:create_time)
917965
@data_disks = args[:data_disks] if args.key?(:data_disks)

generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module TpuV2
1818
# Version of the google-apis-tpu_v2 gem
19-
GEM_VERSION = "0.18.0"
19+
GEM_VERSION = "0.19.0"
2020

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

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250815"
25+
REVISION = "20250903"
2626
end
2727
end
2828
end

generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/representations.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
5858
include Google::Apis::Core::JsonObjectSupport
5959
end
6060

61+
class BootDiskConfig
62+
class Representation < Google::Apis::Core::JsonRepresentation; end
63+
64+
include Google::Apis::Core::JsonObjectSupport
65+
end
66+
6167
class CreatingData
6268
class Representation < Google::Apis::Core::JsonRepresentation; end
6369

6470
include Google::Apis::Core::JsonObjectSupport
6571
end
6672

73+
class CustomerEncryptionKey
74+
class Representation < Google::Apis::Core::JsonRepresentation; end
75+
76+
include Google::Apis::Core::JsonObjectSupport
77+
end
78+
6779
class DeletingData
6880
class Representation < Google::Apis::Core::JsonRepresentation; end
6981

@@ -379,12 +391,27 @@ class Representation < Google::Apis::Core::JsonRepresentation
379391
end
380392
end
381393

394+
class BootDiskConfig
395+
# @private
396+
class Representation < Google::Apis::Core::JsonRepresentation
397+
property :customer_encryption_key, as: 'customerEncryptionKey', class: Google::Apis::TpuV2::CustomerEncryptionKey, decorator: Google::Apis::TpuV2::CustomerEncryptionKey::Representation
398+
399+
end
400+
end
401+
382402
class CreatingData
383403
# @private
384404
class Representation < Google::Apis::Core::JsonRepresentation
385405
end
386406
end
387407

408+
class CustomerEncryptionKey
409+
# @private
410+
class Representation < Google::Apis::Core::JsonRepresentation
411+
property :kms_key_name, as: 'kmsKeyName'
412+
end
413+
end
414+
388415
class DeletingData
389416
# @private
390417
class Representation < Google::Apis::Core::JsonRepresentation
@@ -581,6 +608,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
581608

582609
property :accelerator_type, as: 'acceleratorType'
583610
property :api_version, as: 'apiVersion'
611+
property :boot_disk_config, as: 'bootDiskConfig', class: Google::Apis::TpuV2::BootDiskConfig, decorator: Google::Apis::TpuV2::BootDiskConfig::Representation
612+
584613
property :cidr_block, as: 'cidrBlock'
585614
property :create_time, as: 'createTime'
586615
collection :data_disks, as: 'dataDisks', class: Google::Apis::TpuV2::AttachedDisk, decorator: Google::Apis::TpuV2::AttachedDisk::Representation

generated/google-apis-tpu_v2/lib/google/apis/tpu_v2/service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
118118
# @param [String] name
119119
# The resource that owns the locations collection, if applicable.
120120
# @param [Array<String>, String] extra_location_types
121-
# Optional. Do not use this field. It is unsupported and is ignored unless
122-
# explicitly documented otherwise. This is primarily for internal usage.
121+
# Optional. Unless explicitly documented otherwise, don't use this unsupported
122+
# field which is primarily intended for internal usage.
123123
# @param [String] filter
124124
# A filter to narrow down results to a preferred subset. The filtering language
125125
# accepts strings like `"displayName=tokyo"`, and is documented in more detail

0 commit comments

Comments
 (0)