Skip to content

Commit

Permalink
docs: [google-cloud-batch] Polish the field descriptions for enableIm…
Browse files Browse the repository at this point in the history
…ageStreaming and CloudLoggingOptions (#12216)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 600746356

Source-Link:
googleapis/googleapis@72a708b

Source-Link:
googleapis/googleapis-gen@57fe15b
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiI1N2ZlMTViNWY1MmZmNjA5ZDFjZTNhY2FhNmYyZWY0YjYxNWJiODQxIn0=

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jan 23, 2024
1 parent 2093cdb commit d23ec54
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.17.8" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.17.8" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.17.8" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ class LogsPolicy(proto.Message):
path.
cloud_logging_option (google.cloud.batch_v1alpha.types.LogsPolicy.CloudLoggingOption):
Optional. Additional settings for Cloud Logging. It will
only take effect when the destination of LogsPolicy is set
to CLOUD_LOGGING.
only take effect when the destination of ``LogsPolicy`` is
set to ``CLOUD_LOGGING``.
"""

class Destination(proto.Enum):
Expand All @@ -210,13 +210,19 @@ class Destination(proto.Enum):
PATH = 2

class CloudLoggingOption(proto.Message):
r"""CloudLoggingOption contains additional settings for cloud
logging generated by Batch job.
r"""``CloudLoggingOption`` contains additional settings for Cloud
Logging logs generated by Batch job.
Attributes:
use_generic_task_monitored_resource (bool):
Optional. Set this flag to true to use generic_task as
monitored resource for Batch job generated cloud logging.
Optional. Set this flag to true to change the `monitored
resource
type <https://cloud.google.com/monitoring/api/resources>`__
for Cloud Logging logs generated by this Batch job from the
```batch.googleapis.com/Job`` <https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job>`__
type to the formerly used
```generic_task`` <https://cloud.google.com/monitoring/api/resources#tag_generic_task>`__
type.
"""

use_generic_task_monitored_resource: bool = proto.Field(
Expand Down Expand Up @@ -543,9 +549,9 @@ class AllocationPolicy(proto.Message):
The network policy.
If you define an instance template in the
InstancePolicyOrTemplate field, Batch will use
the network settings in the instance template
instead of this field.
``InstancePolicyOrTemplate`` field, Batch will use the
network settings in the instance template instead of this
field.
placement (google.cloud.batch_v1alpha.types.AllocationPolicy.PlacementPolicy):
The placement policy.
tags (MutableSequence[str]):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,13 +366,26 @@ class Container(proto.Message):
password matches ``projects/*/secrets/*/versions/*`` then
Batch will read the password from the Secret Manager;
enable_image_streaming (bool):
Optional. If set to true, container will run with Image
streaming. The container runtime will be changed to
containerd instead of docker. Currently, only imageUri,
commands, entrypoint and volumes are supported and any other
fields will be ignored. Please refer
`here <https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming>`__
for the feature requirements and limitations.
Optional. If set to true, this container runnable uses Image
streaming.
Use Image streaming to allow the runnable to initialize
without waiting for the entire container image to download,
which can significantly reduce startup time for large
container images.
When ``enableImageStreaming`` is set to true, the container
runtime is `containerd <https://containerd.io/>`__ instead
of Docker. Additionally, this container runnable only
supports the following ``container`` subfields:
``imageUri``, ``commands[]``, ``entrypoint``, and
``volumes[]``; any other ``container`` subfields are
ignored.
For more information about the requirements and limitations
for using Image streaming with Batch, see the
```image-streaming`` sample on
GitHub <https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples/image-streaming>`__.
"""

image_uri: str = proto.Field(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-batch",
"version": "0.17.8"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-batch",
"version": "0.17.8"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit d23ec54

Please sign in to comment.