Skip to content

Commit 6c56661

Browse files
feat: Automated regeneration of tpu v2alpha1 client (googleapis#22325)
Auto-created at 2025-03-30 10:47:23 +0000 using the toys pull request generator.
1 parent 3f1b7c2 commit 6c56661

File tree

6 files changed

+71
-3
lines changed

6 files changed

+71
-3
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343954,8 +343954,10 @@
343954343954
"/tpu:v2alpha1/QueuedResource/createTime": create_time
343955343955
"/tpu:v2alpha1/QueuedResource/guaranteed": guaranteed
343956343956
"/tpu:v2alpha1/QueuedResource/name": name
343957+
"/tpu:v2alpha1/QueuedResource/provisioningModel": provisioning_model
343957343958
"/tpu:v2alpha1/QueuedResource/queueingPolicy": queueing_policy
343958343959
"/tpu:v2alpha1/QueuedResource/reservationName": reservation_name
343960+
"/tpu:v2alpha1/QueuedResource/runDuration": run_duration
343959343961
"/tpu:v2alpha1/QueuedResource/spot": spot
343960343962
"/tpu:v2alpha1/QueuedResource/state": state
343961343963
"/tpu:v2alpha1/QueuedResource/tpu": tpu
@@ -343981,6 +343983,9 @@
343981343983
"/tpu:v2alpha1/Reservation/standard": standard
343982343984
"/tpu:v2alpha1/Reservation/state": state
343983343985
"/tpu:v2alpha1/ResetQueuedResourceRequest": reset_queued_resource_request
343986+
"/tpu:v2alpha1/RunDuration": run_duration
343987+
"/tpu:v2alpha1/RunDuration/maxRunDuration": max_run_duration
343988+
"/tpu:v2alpha1/RunDuration/terminationTime": termination_time
343984343989
"/tpu:v2alpha1/RuntimeVersion": runtime_version
343985343990
"/tpu:v2alpha1/RuntimeVersion/name": name
343986343991
"/tpu:v2alpha1/RuntimeVersion/version": version
@@ -344050,6 +344055,7 @@
344050344055
"/tpu:v2alpha1/tpu.projects.locations.get": get_project_location
344051344056
"/tpu:v2alpha1/tpu.projects.locations.get/name": name
344052344057
"/tpu:v2alpha1/tpu.projects.locations.list": list_project_locations
344058+
"/tpu:v2alpha1/tpu.projects.locations.list/extraLocationTypes": extra_location_types
344053344059
"/tpu:v2alpha1/tpu.projects.locations.list/filter": filter
344054344060
"/tpu:v2alpha1/tpu.projects.locations.list/name": name
344055344061
"/tpu:v2alpha1/tpu.projects.locations.list/pageSize": page_size

generated/google-apis-tpu_v2alpha1/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_v2alpha1
22

3+
### v0.38.0 (2025-03-30)
4+
5+
* Regenerated from discovery document revision 20250320
6+
37
### v0.37.0 (2025-03-16)
48

59
* Regenerated from discovery document revision 20250306

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

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,6 +1291,11 @@ class QueuedResource
12911291
# @return [String]
12921292
attr_accessor :name
12931293

1294+
# Optional. The provisioning model for the resource.
1295+
# Corresponds to the JSON property `provisioningModel`
1296+
# @return [String]
1297+
attr_accessor :provisioning_model
1298+
12941299
# Defines the policy of the QueuedRequest.
12951300
# Corresponds to the JSON property `queueingPolicy`
12961301
# @return [Google::Apis::TpuV2alpha1::QueueingPolicy]
@@ -1302,6 +1307,11 @@ class QueuedResource
13021307
# @return [String]
13031308
attr_accessor :reservation_name
13041309

1310+
# Defines the maximum lifetime of the requested resource.
1311+
# Corresponds to the JSON property `runDuration`
1312+
# @return [Google::Apis::TpuV2alpha1::RunDuration]
1313+
attr_accessor :run_duration
1314+
13051315
# Spot tier definition.
13061316
# Corresponds to the JSON property `spot`
13071317
# @return [Google::Apis::TpuV2alpha1::Spot]
@@ -1327,8 +1337,10 @@ def update!(**args)
13271337
@create_time = args[:create_time] if args.key?(:create_time)
13281338
@guaranteed = args[:guaranteed] if args.key?(:guaranteed)
13291339
@name = args[:name] if args.key?(:name)
1340+
@provisioning_model = args[:provisioning_model] if args.key?(:provisioning_model)
13301341
@queueing_policy = args[:queueing_policy] if args.key?(:queueing_policy)
13311342
@reservation_name = args[:reservation_name] if args.key?(:reservation_name)
1343+
@run_duration = args[:run_duration] if args.key?(:run_duration)
13321344
@spot = args[:spot] if args.key?(:spot)
13331345
@state = args[:state] if args.key?(:state)
13341346
@tpu = args[:tpu] if args.key?(:tpu)
@@ -1504,6 +1516,31 @@ def update!(**args)
15041516
end
15051517
end
15061518

1519+
# Defines the maximum lifetime of the requested resource.
1520+
class RunDuration
1521+
include Google::Apis::Core::Hashable
1522+
1523+
# The maximum duration of the requested resource.
1524+
# Corresponds to the JSON property `maxRunDuration`
1525+
# @return [String]
1526+
attr_accessor :max_run_duration
1527+
1528+
# The time at which the requested resource will be terminated.
1529+
# Corresponds to the JSON property `terminationTime`
1530+
# @return [String]
1531+
attr_accessor :termination_time
1532+
1533+
def initialize(**args)
1534+
update!(**args)
1535+
end
1536+
1537+
# Update properties of this object
1538+
def update!(**args)
1539+
@max_run_duration = args[:max_run_duration] if args.key?(:max_run_duration)
1540+
@termination_time = args[:termination_time] if args.key?(:termination_time)
1541+
end
1542+
end
1543+
15071544
# A runtime version that a Node can be configured with.
15081545
class RuntimeVersion
15091546
include Google::Apis::Core::Hashable

generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/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 TpuV2alpha1
1818
# Version of the google-apis-tpu_v2alpha1 gem
19-
GEM_VERSION = "0.37.0"
19+
GEM_VERSION = "0.38.0"
2020

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

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

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
292292
include Google::Apis::Core::JsonObjectSupport
293293
end
294294

295+
class RunDuration
296+
class Representation < Google::Apis::Core::JsonRepresentation; end
297+
298+
include Google::Apis::Core::JsonObjectSupport
299+
end
300+
295301
class RuntimeVersion
296302
class Representation < Google::Apis::Core::JsonRepresentation; end
297303

@@ -778,9 +784,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
778784
property :guaranteed, as: 'guaranteed', class: Google::Apis::TpuV2alpha1::Guaranteed, decorator: Google::Apis::TpuV2alpha1::Guaranteed::Representation
779785

780786
property :name, as: 'name'
787+
property :provisioning_model, as: 'provisioningModel'
781788
property :queueing_policy, as: 'queueingPolicy', class: Google::Apis::TpuV2alpha1::QueueingPolicy, decorator: Google::Apis::TpuV2alpha1::QueueingPolicy::Representation
782789

783790
property :reservation_name, as: 'reservationName'
791+
property :run_duration, as: 'runDuration', class: Google::Apis::TpuV2alpha1::RunDuration, decorator: Google::Apis::TpuV2alpha1::RunDuration::Representation
792+
784793
property :spot, as: 'spot', class: Google::Apis::TpuV2alpha1::Spot, decorator: Google::Apis::TpuV2alpha1::Spot::Representation
785794

786795
property :state, as: 'state', class: Google::Apis::TpuV2alpha1::QueuedResourceState, decorator: Google::Apis::TpuV2alpha1::QueuedResourceState::Representation
@@ -842,6 +851,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
842851
end
843852
end
844853

854+
class RunDuration
855+
# @private
856+
class Representation < Google::Apis::Core::JsonRepresentation
857+
property :max_run_duration, as: 'maxRunDuration'
858+
property :termination_time, as: 'terminationTime'
859+
end
860+
end
861+
845862
class RuntimeVersion
846863
# @private
847864
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
117117
# Lists information about the supported locations for this service.
118118
# @param [String] name
119119
# The resource that owns the locations collection, if applicable.
120+
# @param [Array<String>, String] extra_location_types
121+
# Optional. A list of extra location types that should be used as conditions for
122+
# controlling the visibility of the locations.
120123
# @param [String] filter
121124
# A filter to narrow down results to a preferred subset. The filtering language
122125
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -144,11 +147,12 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
144147
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145148
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146149
# @raise [Google::Apis::AuthorizationError] Authorization is required
147-
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
150+
def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
148151
command = make_simple_command(:get, 'v2alpha1/{+name}/locations', options)
149152
command.response_representation = Google::Apis::TpuV2alpha1::ListLocationsResponse::Representation
150153
command.response_class = Google::Apis::TpuV2alpha1::ListLocationsResponse
151154
command.params['name'] = name unless name.nil?
155+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
152156
command.query['filter'] = filter unless filter.nil?
153157
command.query['pageSize'] = page_size unless page_size.nil?
154158
command.query['pageToken'] = page_token unless page_token.nil?

0 commit comments

Comments
 (0)