Skip to content

Commit 095f153

Browse files
feat: Automated regeneration of batch v1 client (#15466)
Auto-created at 2023-07-16 10:31:14 +0000 using the toys pull request generator.
1 parent 98f5fc1 commit 095f153

File tree

6 files changed

+45
-19
lines changed

6 files changed

+45
-19
lines changed

api_names_out.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23248,6 +23248,7 @@
2324823248
"/baremetalsolution:v2/quotaUser": quota_user
2324923249
"/batch:v1/Accelerator": accelerator
2325023250
"/batch:v1/Accelerator/count": count
23251+
"/batch:v1/Accelerator/driverVersion": driver_version
2325123252
"/batch:v1/Accelerator/installGpuDrivers": install_gpu_drivers
2325223253
"/batch:v1/Accelerator/type": type
2325323254
"/batch:v1/ActionCondition": action_condition
@@ -23617,6 +23618,7 @@
2361723618
"/batch:v1/batch.projects.locations.jobs.getIamPolicy/resource": resource
2361823619
"/batch:v1/batch.projects.locations.jobs.list": list_project_location_jobs
2361923620
"/batch:v1/batch.projects.locations.jobs.list/filter": filter
23621+
"/batch:v1/batch.projects.locations.jobs.list/orderBy": order_by
2362023622
"/batch:v1/batch.projects.locations.jobs.list/pageSize": page_size
2362123623
"/batch:v1/batch.projects.locations.jobs.list/pageToken": page_token
2362223624
"/batch:v1/batch.projects.locations.jobs.list/parent": parent

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

3+
### v0.16.0 (2023-07-16)
4+
5+
* Regenerated from discovery document revision 20230705
6+
37
### v0.15.0 (2023-06-18)
48

59
* Regenerated from discovery document revision 20230607

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

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ class Accelerator
3131
# @return [Fixnum]
3232
attr_accessor :count
3333

34+
# Optional. The NVIDIA GPU driver version that should be installed for this type.
35+
# You can define the specific driver version such as "470.103.01", following
36+
# the driver version requirements in https://cloud.google.com/compute/docs/gpus/
37+
# install-drivers-gpu#minimum-driver. Batch will install the specific
38+
# accelerator driver if qualified.
39+
# Corresponds to the JSON property `driverVersion`
40+
# @return [String]
41+
attr_accessor :driver_version
42+
3443
# Deprecated: please use instances[0].install_gpu_drivers instead.
3544
# Corresponds to the JSON property `installGpuDrivers`
3645
# @return [Boolean]
@@ -50,6 +59,7 @@ def initialize(**args)
5059
# Update properties of this object
5160
def update!(**args)
5261
@count = args[:count] if args.key?(:count)
62+
@driver_version = args[:driver_version] if args.key?(:driver_version)
5363
@install_gpu_drivers = args[:install_gpu_drivers] if args.key?(:install_gpu_drivers)
5464
@type = args[:type] if args.key?(:type)
5565
end
@@ -162,7 +172,7 @@ def update!(**args)
162172
class AgentInfo
163173
include Google::Apis::Core::Hashable
164174

165-
# The assigned Job ID
175+
# Optional. The assigned Job ID
166176
# Corresponds to the JSON property `jobId`
167177
# @return [String]
168178
attr_accessor :job_id
@@ -796,14 +806,14 @@ class Disk
796806
# @return [String]
797807
attr_accessor :disk_interface
798808

799-
# Name of a public or custom image used as the data source. For example, the
800-
# following are all valid URLs: * Specify the image by its family name: projects/
801-
# `project`/global/images/family/`image_family` * Specify the image version:
802-
# projects/`project`/global/images/`image_version` You can also use Batch
803-
# customized image in short names. The following image values are supported for
804-
# a boot disk: * "batch-debian": use Batch Debian images. * "batch-centos": use
805-
# Batch CentOS images. * "batch-cos": use Batch Container-Optimized images. * "
806-
# batch-hpc-centos": use Batch HPC CentOS images.
809+
# Name of an image used as the data source. For example, the following are all
810+
# valid URLs: * Specify the image by its family name: projects/project/global/
811+
# images/family/image_family * Specify the image version: projects/project/
812+
# global/images/image_version You can also use Batch customized image in short
813+
# names. The following image values are supported for a boot disk: * `batch-
814+
# debian`: use Batch Debian images. * `batch-centos`: use Batch CentOS images. *
815+
# `batch-cos`: use Batch Container-Optimized images. * `batch-hpc-centos`: use
816+
# Batch HPC CentOS images.
807817
# Corresponds to the JSON property `image`
808818
# @return [String]
809819
attr_accessor :image
@@ -976,7 +986,12 @@ class InstancePolicyOrTemplate
976986

977987
# Set this field true if users want Batch to help fetch drivers from a third
978988
# party location and install them for GPUs specified in policy.accelerators or
979-
# instance_template on their behalf. Default is false.
989+
# instance_template on their behalf. Default is false. For Container-Optimized
990+
# Image cases, Batch will install the accelerator driver following milestones of
991+
# https://cloud.google.com/container-optimized-os/docs/release-notes. For non
992+
# Container-Optimized Image cases, following https://github.com/
993+
# GoogleCloudPlatform/compute-gpu-installation/blob/main/linux/
994+
# install_gpu_driver.py.
980995
# Corresponds to the JSON property `installGpuDrivers`
981996
# @return [Boolean]
982997
attr_accessor :install_gpu_drivers
@@ -1529,9 +1544,9 @@ class NetworkInterface
15291544
include Google::Apis::Core::Hashable
15301545

15311546
# The URL of an existing network resource. You can specify the network as a full
1532-
# or partial URL. For example, the following are all valid URLs: * https://www.
1533-
# googleapis.com/compute/v1/projects/`project`/global/networks/`network` *
1534-
# projects/`project`/global/networks/`network` * global/networks/`network`
1547+
# or partial URL. For example, the following are all valid URLs: https://www.
1548+
# googleapis.com/compute/v1/projects/project/global/networks/network projects/
1549+
# project/global/networks/network global/networks/network
15351550
# Corresponds to the JSON property `network`
15361551
# @return [String]
15371552
attr_accessor :network
@@ -1548,9 +1563,9 @@ class NetworkInterface
15481563

15491564
# The URL of an existing subnetwork resource in the network. You can specify the
15501565
# subnetwork as a full or partial URL. For example, the following are all valid
1551-
# URLs: * https://www.googleapis.com/compute/v1/projects/`project`/regions/`
1552-
# region`/subnetworks/`subnetwork` * projects/`project`/regions/`region`/
1553-
# subnetworks/`subnetwork` * regions/`region`/subnetworks/`subnetwork`
1566+
# URLs: https://www.googleapis.com/compute/v1/projects/project/regions/region/
1567+
# subnetworks/subnetwork projects/project/regions/region/subnetworks/subnetwork
1568+
# regions/region/subnetworks/subnetwork
15541569
# Corresponds to the JSON property `subnetwork`
15551570
# @return [String]
15561571
attr_accessor :subnetwork

generated/google-apis-batch_v1/lib/google/apis/batch_v1/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 BatchV1
1818
# Version of the google-apis-batch_v1 gem
19-
GEM_VERSION = "0.15.0"
19+
GEM_VERSION = "0.16.0"
2020

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

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ class Accelerator
380380
# @private
381381
class Representation < Google::Apis::Core::JsonRepresentation
382382
property :count, :numeric_string => true, as: 'count'
383+
property :driver_version, as: 'driverVersion'
383384
property :install_gpu_drivers, as: 'installGpuDrivers'
384385
property :type, as: 'type'
385386
end

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ def get_project_location_job(name, fields: nil, quota_user: nil, options: nil, &
256256
# Parent path.
257257
# @param [String] filter
258258
# List filter.
259+
# @param [String] order_by
260+
# Optional. Sort results. Supported are "name", "name desc", "create_time", and "
261+
# create_time desc".
259262
# @param [Fixnum] page_size
260263
# Page size.
261264
# @param [String] page_token
@@ -277,12 +280,13 @@ def get_project_location_job(name, fields: nil, quota_user: nil, options: nil, &
277280
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
278281
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
279282
# @raise [Google::Apis::AuthorizationError] Authorization is required
280-
def list_project_location_jobs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
283+
def list_project_location_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
281284
command = make_simple_command(:get, 'v1/{+parent}/jobs', options)
282285
command.response_representation = Google::Apis::BatchV1::ListJobsResponse::Representation
283286
command.response_class = Google::Apis::BatchV1::ListJobsResponse
284287
command.params['parent'] = parent unless parent.nil?
285288
command.query['filter'] = filter unless filter.nil?
289+
command.query['orderBy'] = order_by unless order_by.nil?
286290
command.query['pageSize'] = page_size unless page_size.nil?
287291
command.query['pageToken'] = page_token unless page_token.nil?
288292
command.query['fields'] = fields unless fields.nil?

0 commit comments

Comments
 (0)