Skip to content

Commit d23ec54

Browse files
docs: [google-cloud-batch] Polish the field descriptions for enableImageStreaming and CloudLoggingOptions (googleapis#12216)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 600746356 Source-Link: googleapis/googleapis@72a708b Source-Link: https://github.com/googleapis/googleapis-gen/commit/57fe15b5f52ff609d1ce3acaa6f2ef4b615bb841 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiI1N2ZlMTViNWY1MmZmNjA5ZDFjZTNhY2FhNmYyZWY0YjYxNWJiODQxIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2093cdb commit d23ec54

7 files changed

Lines changed: 40 additions & 21 deletions

File tree

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.8" # {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.8" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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.8" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ class LogsPolicy(proto.Message):
190190
path.
191191
cloud_logging_option (google.cloud.batch_v1alpha.types.LogsPolicy.CloudLoggingOption):
192192
Optional. Additional settings for Cloud Logging. It will
193-
only take effect when the destination of LogsPolicy is set
194-
to CLOUD_LOGGING.
193+
only take effect when the destination of ``LogsPolicy`` is
194+
set to ``CLOUD_LOGGING``.
195195
"""
196196

197197
class Destination(proto.Enum):
@@ -210,13 +210,19 @@ class Destination(proto.Enum):
210210
PATH = 2
211211

212212
class CloudLoggingOption(proto.Message):
213-
r"""CloudLoggingOption contains additional settings for cloud
214-
logging generated by Batch job.
213+
r"""``CloudLoggingOption`` contains additional settings for Cloud
214+
Logging logs generated by Batch job.
215215
216216
Attributes:
217217
use_generic_task_monitored_resource (bool):
218-
Optional. Set this flag to true to use generic_task as
219-
monitored resource for Batch job generated cloud logging.
218+
Optional. Set this flag to true to change the `monitored
219+
resource
220+
type <https://cloud.google.com/monitoring/api/resources>`__
221+
for Cloud Logging logs generated by this Batch job from the
222+
```batch.googleapis.com/Job`` <https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job>`__
223+
type to the formerly used
224+
```generic_task`` <https://cloud.google.com/monitoring/api/resources#tag_generic_task>`__
225+
type.
220226
"""
221227

222228
use_generic_task_monitored_resource: bool = proto.Field(
@@ -543,9 +549,9 @@ class AllocationPolicy(proto.Message):
543549
The network policy.
544550
545551
If you define an instance template in the
546-
InstancePolicyOrTemplate field, Batch will use
547-
the network settings in the instance template
548-
instead of this field.
552+
``InstancePolicyOrTemplate`` field, Batch will use the
553+
network settings in the instance template instead of this
554+
field.
549555
placement (google.cloud.batch_v1alpha.types.AllocationPolicy.PlacementPolicy):
550556
The placement policy.
551557
tags (MutableSequence[str]):

packages/google-cloud-batch/google/cloud/batch_v1alpha/types/task.py

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,26 @@ class Container(proto.Message):
366366
password matches ``projects/*/secrets/*/versions/*`` then
367367
Batch will read the password from the Secret Manager;
368368
enable_image_streaming (bool):
369-
Optional. If set to true, container will run with Image
370-
streaming. The container runtime will be changed to
371-
containerd instead of docker. Currently, only imageUri,
372-
commands, entrypoint and volumes are supported and any other
373-
fields will be ignored. Please refer
374-
`here <https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming>`__
375-
for the feature requirements and limitations.
369+
Optional. If set to true, this container runnable uses Image
370+
streaming.
371+
372+
Use Image streaming to allow the runnable to initialize
373+
without waiting for the entire container image to download,
374+
which can significantly reduce startup time for large
375+
container images.
376+
377+
When ``enableImageStreaming`` is set to true, the container
378+
runtime is `containerd <https://containerd.io/>`__ instead
379+
of Docker. Additionally, this container runnable only
380+
supports the following ``container`` subfields:
381+
``imageUri``, ``commands[]``, ``entrypoint``, and
382+
``volumes[]``; any other ``container`` subfields are
383+
ignored.
384+
385+
For more information about the requirements and limitations
386+
for using Image streaming with Batch, see the
387+
```image-streaming`` sample on
388+
GitHub <https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming>`__.
376389
"""
377390

378391
image_uri: str = proto.Field(

packages/google-cloud-batch/samples/generated_samples/snippet_metadata_google.cloud.batch.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-batch",
11-
"version": "0.17.8"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-batch/samples/generated_samples/snippet_metadata_google.cloud.batch.v1alpha.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-batch",
11-
"version": "0.17.8"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)