Skip to content

Commit a300b07

Browse files
docs: update batch PD interface support (#11760)
BEGIN_COMMIT_OVERRIDE docs: update batch PD interface support END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 568443956 Source-Link: googleapis/googleapis@645178b Source-Link: googleapis/googleapis-gen@cd6b2a8 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiJjZDZiMmE4NDg1YTVlN2M4NTJkNGRiYmJjMDQzMDBkMGEwNmU4NDg4In0= BEGIN_NESTED_COMMIT docs: update batch PD interface support PiperOrigin-RevId: 568434456 Source-Link: googleapis/googleapis@298d5a5 Source-Link: googleapis/googleapis-gen@734d0ff Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiI3MzRkMGZmZTE0NWRlYmYxMTlhZmY5YTBiNmNmNTEzMjk2MmVjZmYxIn0= END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 4332e54 commit a300b07

File tree

20 files changed

+44
-45
lines changed

20 files changed

+44
-45
lines changed

packages/google-cloud-batch/CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ Running System Tests
143143
$ nox -s system
144144

145145
# Run a single system test
146-
$ nox -s system- -- -k <name of test>
146+
$ nox -s system-3.11 -- -k <name of test>
147147

148148

149149
.. note::
150150

151-
System tests are only configured to run under Python.
151+
System tests are only configured to run under Python 3.8, 3.9, 3.10 and 3.11.
152152
For expediency, we do not run them in older versions of Python 3.
153153

154154
This alone will not run the tests. You'll need to change some local

packages/google-cloud-batch/google/cloud/batch/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.17.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-batch/google/cloud/batch_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.17.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-batch/google/cloud/batch_v1/services/batch_service/async_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
from google.api_core import operation # type: ignore
4646
from google.api_core import operation_async # type: ignore
4747
from google.cloud.location import locations_pb2 # type: ignore
48-
from google.longrunning import operations_pb2
48+
from google.longrunning import operations_pb2 # type: ignore
4949
from google.protobuf import empty_pb2 # type: ignore
5050
from google.protobuf import timestamp_pb2 # type: ignore
5151

@@ -633,6 +633,7 @@ async def sample_list_jobs():
633633
Returns:
634634
google.cloud.batch_v1.services.batch_service.pagers.ListJobsAsyncPager:
635635
ListJob Response.
636+
636637
Iterating over this object will yield
637638
results and resolve additional pages
638639
automatically.
@@ -862,6 +863,7 @@ async def sample_list_tasks():
862863
Returns:
863864
google.cloud.batch_v1.services.batch_service.pagers.ListTasksAsyncPager:
864865
ListTasks Response.
866+
865867
Iterating over this object will yield
866868
results and resolve additional pages
867869
automatically.

packages/google-cloud-batch/google/cloud/batch_v1/services/batch_service/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
from google.api_core import operation # type: ignore
5050
from google.api_core import operation_async # type: ignore
5151
from google.cloud.location import locations_pb2 # type: ignore
52-
from google.longrunning import operations_pb2
52+
from google.longrunning import operations_pb2 # type: ignore
5353
from google.protobuf import empty_pb2 # type: ignore
5454
from google.protobuf import timestamp_pb2 # type: ignore
5555

@@ -901,6 +901,7 @@ def sample_list_jobs():
901901
Returns:
902902
google.cloud.batch_v1.services.batch_service.pagers.ListJobsPager:
903903
ListJob Response.
904+
904905
Iterating over this object will yield
905906
results and resolve additional pages
906907
automatically.
@@ -1112,6 +1113,7 @@ def sample_list_tasks():
11121113
Returns:
11131114
google.cloud.batch_v1.services.batch_service.pagers.ListTasksPager:
11141115
ListTasks Response.
1116+
11151117
Iterating over this object will yield
11161118
results and resolve additional pages
11171119
automatically.

packages/google-cloud-batch/google/cloud/batch_v1/services/batch_service/transports/rest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
from google.auth.transport.grpc import SslCredentials # type: ignore
3434
from google.auth.transport.requests import AuthorizedSession # type: ignore
3535
from google.cloud.location import locations_pb2 # type: ignore
36-
from google.longrunning import operations_pb2
3736
from google.protobuf import json_format
3837
import grpc # type: ignore
3938
from requests import __version__ as requests_version

packages/google-cloud-batch/google/cloud/batch_v1/types/batch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class CreateJobRequest(proto.Message):
6767
know to ignore the request if it has already
6868
been completed. The server will guarantee that
6969
for at least 60 minutes since the first request.
70+
7071
For example, consider a situation where you make
7172
an initial request and the request times out. If
7273
you make the request again with the same request
@@ -75,6 +76,7 @@ class CreateJobRequest(proto.Message):
7576
so, will ignore the second request. This
7677
prevents clients from accidentally creating
7778
duplicate commitments.
79+
7880
The request ID must be a valid UUID with the
7981
exception that zero UUID is not supported
8082
(00000000-0000-0000-0000-000000000000).
@@ -128,6 +130,7 @@ class DeleteJobRequest(proto.Message):
128130
know to ignore the request if it has already
129131
been completed. The server will guarantee that
130132
for at least 60 minutes after the first request.
133+
131134
For example, consider a situation where you make
132135
an initial request and the request times out. If
133136
you make the request again with the same request
@@ -136,6 +139,7 @@ class DeleteJobRequest(proto.Message):
136139
so, will ignore the second request. This
137140
prevents clients from accidentally creating
138141
duplicate commitments.
142+
139143
The request ID must be a valid UUID with the
140144
exception that zero UUID is not supported
141145
(00000000-0000-0000-0000-000000000000).

packages/google-cloud-batch/google/cloud/batch_v1/types/job.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ class ProvisioningModel(proto.Enum):
421421
SPOT VM.
422422
PREEMPTIBLE (3):
423423
Preemptible VM (PVM).
424+
424425
Above SPOT VM is the preferable model for
425426
preemptible VM instances: the old preemptible VM
426427
model (indicated by this field) is the older
@@ -522,10 +523,11 @@ class Disk(proto.Message):
522523
disk size 30 GB, you can only use this field to make the
523524
disk larger or equal to 30 GB.
524525
disk_interface (str):
525-
Local SSDs are available through both "SCSI"
526-
and "NVMe" interfaces. If not indicated, "NVMe"
527-
will be the default one for local ssds. We only
528-
support "SCSI" for persistent disks now.
526+
Local SSDs are available through both "SCSI" and "NVMe"
527+
interfaces. If not indicated, "NVMe" will be the default one
528+
for local ssds. This field is ignored for persistent disks
529+
as the interface is chosen automatically. See
530+
https://cloud.google.com/compute/docs/disks/persistent-disks#choose_an_interface.
529531
"""
530532

531533
image: str = proto.Field(

packages/google-cloud-batch/google/cloud/batch_v1alpha/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.17.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-batch/google/cloud/batch_v1alpha/services/batch_service/async_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
from google.api_core import operation # type: ignore
4646
from google.api_core import operation_async # type: ignore
4747
from google.cloud.location import locations_pb2 # type: ignore
48-
from google.longrunning import operations_pb2
48+
from google.longrunning import operations_pb2 # type: ignore
4949
from google.protobuf import empty_pb2 # type: ignore
5050
from google.protobuf import timestamp_pb2 # type: ignore
5151

@@ -633,6 +633,7 @@ async def sample_list_jobs():
633633
Returns:
634634
google.cloud.batch_v1alpha.services.batch_service.pagers.ListJobsAsyncPager:
635635
ListJob Response.
636+
636637
Iterating over this object will yield
637638
results and resolve additional pages
638639
automatically.
@@ -862,6 +863,7 @@ async def sample_list_tasks():
862863
Returns:
863864
google.cloud.batch_v1alpha.services.batch_service.pagers.ListTasksAsyncPager:
864865
ListTasks Response.
866+
865867
Iterating over this object will yield
866868
results and resolve additional pages
867869
automatically.

0 commit comments

Comments
 (0)