@@ -592,21 +592,32 @@ class Disk(proto.Message):
592592
593593 Attributes:
594594 image (str):
595- Name of a public or custom image used as the data source.
596- For example, the following are all valid URLs:
595+ Name of an image used as the data source. For example, the
596+ following are all valid URLs:
597597
598598 - Specify the image by its family name:
599- projects/{project}/global/images/family/{image_family}
599+
600+ .. raw:: html
601+
602+ <pre><code>projects/<var
603+ class="apiparam">project</var>/global/images/family/<var
604+ class="apiparam">image_family</var></code></pre>
605+
600606 - Specify the image version:
601- projects/{project}/global/images/{image_version}
607+
608+ .. raw:: html
609+
610+ <pre>projects/<var
611+ class="apiparam">project</var>/global/images/<var
612+ class="apiparam">image_version</var></code></pre>
602613
603614 You can also use Batch customized image in short names. The
604615 following image values are supported for a boot disk:
605616
606- - " batch-debian" : use Batch Debian images.
607- - " batch-centos" : use Batch CentOS images.
608- - " batch-cos" : use Batch Container-Optimized images.
609- - " batch-hpc-centos" : use Batch HPC CentOS images.
617+ - `` batch-debian`` : use Batch Debian images.
618+ - `` batch-centos`` : use Batch CentOS images.
619+ - `` batch-cos`` : use Batch Container-Optimized images.
620+ - `` batch-hpc-centos`` : use Batch HPC CentOS images.
610621
611622 This field is a member of `oneof`_ ``data_source``.
612623 snapshot (str):
@@ -717,9 +728,15 @@ class Accelerator(proto.Message):
717728 Deprecated: please use instances[0].install_gpu_drivers
718729 instead.
719730 driver_version (str):
720- The accelerator driver version that will be
721- installed for this type.
722- Not yet implemented.
731+ Optional. The NVIDIA GPU driver version that
732+ should be installed for this type.
733+
734+ You can define the specific driver version such
735+ as "470.103.01", following the driver version
736+ requirements in
737+ https://cloud.google.com/compute/docs/gpus/install-drivers-gpu#minimum-driver.
738+ Batch will install the specific accelerator
739+ driver if qualified.
723740 """
724741
725742 type_ : str = proto .Field (
@@ -838,6 +855,12 @@ class InstancePolicyOrTemplate(proto.Message):
838855 drivers from a third party location and install them for
839856 GPUs specified in policy.accelerators or instance_template
840857 on their behalf. Default is false.
858+
859+ For Container-Optimized Image cases, Batch will install the
860+ accelerator driver following milestones of
861+ https://cloud.google.com/container-optimized-os/docs/release-notes.
862+ For non Container-Optimized Image cases, following
863+ https://github.com/GoogleCloudPlatform/compute-gpu-installation/blob/main/linux/install_gpu_driver.py.
841864 """
842865
843866 policy : "AllocationPolicy.InstancePolicy" = proto .Field (
@@ -861,23 +884,36 @@ class NetworkInterface(proto.Message):
861884
862885 Attributes:
863886 network (str):
864- The URL of an existing network resource. You can specify the
865- network as a full or partial URL.
866-
887+ The URL of an existing network resource.
888+ You can specify the network as a full or partial
889+ URL.
867890 For example, the following are all valid URLs:
868891
869- - https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
870- - projects/{project}/global/networks/{network}
871- - global/networks/{network}
892+ <pre><code>https://www.googleapis.com/compute/v1/projects/<var
893+ class="apiparam">project</var>/global/networks/<var
894+ class="apiparam">network</var></code></pre>
895+ <pre><code>projects/<var
896+ class="apiparam">project</var>/global/networks/<var
897+ class="apiparam">network</var></code></pre>
898+ <pre><code>global/networks/<var
899+ class="apiparam">network</var></code></pre>
872900 subnetwork (str):
873- The URL of an existing subnetwork resource in the network.
874- You can specify the subnetwork as a full or partial URL.
875-
901+ The URL of an existing subnetwork resource in
902+ the network. You can specify the subnetwork as a
903+ full or partial URL.
876904 For example, the following are all valid URLs:
877905
878- - https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
879- - projects/{project}/regions/{region}/subnetworks/{subnetwork}
880- - regions/{region}/subnetworks/{subnetwork}
906+ <pre><code>https://www.googleapis.com/compute/v1/projects/<var
907+ class="apiparam">project</var>/regions/<var
908+ class="apiparam">region</var>/subnetworks/<var
909+ class="apiparam">subnetwork</var></code></pre>
910+ <pre><code>projects/<var
911+ class="apiparam">project</var>/regions/<var
912+ class="apiparam">region</var>/subnetworks/<var
913+ class="apiparam">subnetwork</var></code></pre>
914+ <pre><code>regions/<var
915+ class="apiparam">region</var>/subnetworks/<var
916+ class="apiparam">subnetwork</var></code></pre>
881917 no_external_ip_address (bool):
882918 Default is false (with an external IP
883919 address). Required if no external public IP
@@ -1009,6 +1045,7 @@ class TaskGroup(proto.Message):
10091045 Output only. TaskGroup name.
10101046 The system generates this field based on parent
10111047 Job name. For example:
1048+
10121049 "projects/123456/locations/us-west1/jobs/job01/taskGroups/group01".
10131050 task_spec (google.cloud.batch_v1alpha.types.TaskSpec):
10141051 Required. Tasks in the group share the same
0 commit comments