Skip to content

Commit 28a9433

Browse files
docs(google-cloud-batch): refine proto comment for run_as_non_root (googleapis#24837)
1 parent bdc3e4b commit 28a9433

4 files changed

Lines changed: 41 additions & 15 deletions

File tree

google-cloud-batch-v1/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ruby Client for the Batch V1 API
22

3-
An API to manage the running of batch jobs on Google Cloud Platform.
3+
An API to manage the running of batch resources on Google Cloud Platform.
44

55
Google Cloud Batch is a fully managed service used by scientists, VFX artists, developers to easily and efficiently run batch workloads on Google Cloud. This service manages provisioning of resources to satisfy the requirements of the batch jobs for a variety of workloads including ML, HPC, VFX rendering, transcoding, genomics and others.
66

google-cloud-batch-v1/google-cloud-batch-v1.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
1010
gem.authors = ["Google LLC"]
1111
gem.email = "googleapis-packages@google.com"
1212
gem.description = "Google Cloud Batch is a fully managed service used by scientists, VFX artists, developers to easily and efficiently run batch workloads on Google Cloud. This service manages provisioning of resources to satisfy the requirements of the batch jobs for a variety of workloads including ML, HPC, VFX rendering, transcoding, genomics and others. Note that google-cloud-batch-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-batch instead. See the readme for more details."
13-
gem.summary = "An API to manage the running of batch jobs on Google Cloud Platform."
13+
gem.summary = "An API to manage the running of batch resources on Google Cloud Platform."
1414
gem.homepage = "https://github.com/googleapis/google-cloud-ruby"
1515
gem.license = "Apache-2.0"
1616

google-cloud-batch-v1/proto_docs/google/cloud/batch/v1/job.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -653,17 +653,18 @@ module ProvisioningModel
653653
# @return [::Boolean]
654654
# When true, Batch will populate a file with a list of all VMs assigned to
655655
# the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path
656-
# of that file. Defaults to false.
656+
# of that file. Defaults to false. The host file supports up to 1000 VMs.
657657
# @!attribute [rw] permissive_ssh
658658
# @return [::Boolean]
659659
# When true, Batch will configure SSH to allow passwordless login between
660660
# VMs running the Batch tasks in the same TaskGroup.
661661
# @!attribute [rw] run_as_non_root
662662
# @return [::Boolean]
663-
# Optional. If not set or set to false, Batch will use root user to execute
664-
# runnables. If set to true, Batch will make sure to run the runnables using
665-
# non-root user. Currently, the non-root user Batch used is generated by OS
666-
# login. Reference: https://cloud.google.com/compute/docs/oslogin
663+
# Optional. If not set or set to false, Batch uses the root user to execute
664+
# runnables. If set to true, Batch runs the runnables using a non-root user.
665+
# Currently, the non-root user Batch used is generated by OS Login. For more
666+
# information, see [About OS
667+
# Login](https://cloud.google.com/compute/docs/oslogin).
667668
class TaskGroup
668669
include ::Google::Protobuf::MessageExts
669670
extend ::Google::Protobuf::MessageExts::ClassMethods

google-cloud-batch-v1/proto_docs/google/cloud/batch/v1/task.rb

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,39 @@ class Runnable
229229
# `container.options` field.
230230
# @!attribute [rw] username
231231
# @return [::String]
232-
# Optional username for logging in to a docker registry. If username
233-
# matches `projects/*/secrets/*/versions/*` then Batch will read the
234-
# username from the Secret Manager.
232+
# Required if the container image is from a private Docker registry. The
233+
# username to login to the Docker registry that contains the image.
234+
#
235+
# You can either specify the username directly by using plain text or
236+
# specify an encrypted username by using a Secret Manager secret:
237+
# `projects/*/secrets/*/versions/*`. However, using a secret is
238+
# recommended for enhanced security.
239+
#
240+
# Caution: If you specify the username using plain text, you risk the
241+
# username being exposed to any users who can view the job or its logs.
242+
# To avoid this risk, specify a secret that contains the username instead.
243+
#
244+
# Learn more about [Secret
245+
# Manager](https://cloud.google.com/secret-manager/docs/) and [using
246+
# Secret Manager with
247+
# Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
235248
# @!attribute [rw] password
236249
# @return [::String]
237-
# Optional password for logging in to a docker registry. If password
238-
# matches `projects/*/secrets/*/versions/*` then Batch will read the
239-
# password from the Secret Manager;
250+
# Required if the container image is from a private Docker registry. The
251+
# password to login to the Docker registry that contains the image.
252+
#
253+
# For security, it is strongly recommended to specify an
254+
# encrypted password by using a Secret Manager secret:
255+
# `projects/*/secrets/*/versions/*`.
256+
#
257+
# Warning: If you specify the password using plain text, you risk the
258+
# password being exposed to any users who can view the job or its logs.
259+
# To avoid this risk, specify a secret that contains the password instead.
260+
#
261+
# Learn more about [Secret
262+
# Manager](https://cloud.google.com/secret-manager/docs/) and [using
263+
# Secret Manager with
264+
# Batch](https://cloud.google.com/batch/docs/create-run-job-secret-manager).
240265
# @!attribute [rw] enable_image_streaming
241266
# @return [::Boolean]
242267
# Optional. If set to true, this container runnable uses Image streaming.
@@ -271,7 +296,7 @@ class Container
271296
# first line of the file.(For example, to execute the script using bash,
272297
# `#!/bin/bash` should be the first line of the file. To execute the
273298
# script using`Python3`, `#!/usr/bin/env python3` should be the first
274-
# line of the file.) Otherwise, the file will by default be excuted by
299+
# line of the file.) Otherwise, the file will by default be executed by
275300
# `/bin/sh`.
276301
# @!attribute [rw] text
277302
# @return [::String]
@@ -281,7 +306,7 @@ class Container
281306
# beginning of the text.(For example, to execute the script using bash,
282307
# `#!/bin/bash\n` should be added. To execute the script using`Python3`,
283308
# `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
284-
# by default be excuted by `/bin/sh`.
309+
# by default be executed by `/bin/sh`.
285310
class Script
286311
include ::Google::Protobuf::MessageExts
287312
extend ::Google::Protobuf::MessageExts::ClassMethods

0 commit comments

Comments
 (0)