Skip to content

Commit

Permalink
fix(v1alpha): [google-cloud-batch] remove deprecated field enableOslo…
Browse files Browse the repository at this point in the history
…gin (#12210)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 599921345

Source-Link:
googleapis/googleapis@7cdfb2d

Source-Link:
googleapis/googleapis-gen@170f3b7
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiIxNzBmM2I3ZDQzODAxNjEzZmIxZTE0MzFjNzdjODgyNTNlNWE5NmNlIn0=

---------

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 22, 2024
1 parent c25ed93 commit 527862b
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 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.7" # {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.7" # {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.7" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -1135,19 +1135,6 @@ class TaskGroup(proto.Message):
When true, Batch will configure SSH to allow
passwordless login between VMs running the Batch
tasks in the same TaskGroup.
enable_oslogin (bool):
Optional. Deprecated: When true, Batch will use the OS Login
generated POSIX account to exeucute the runnables instead of
the default root user.
| To control root or non-root privilege for runnable
execution, the project
| Admin user needs to configure IAM roles according to
https://cloud.google.com/compute/docs/oslogin/set-up-oslogin#configure_users.
Specifically, if a root execution is needed, the
roles/compute.osAdminLogin should be granted to the Batch
job submitter. Otherwise, roles/compute.osLogin should be
granted to the Batch job submitter.
run_as_non_root (bool):
Optional. If not set or set to false, Batch
will use root user to execute runnables. If set
Expand Down Expand Up @@ -1227,10 +1214,6 @@ class SchedulingPolicy(proto.Enum):
proto.BOOL,
number=12,
)
enable_oslogin: bool = proto.Field(
proto.BOOL,
number=13,
)
run_as_non_root: bool = proto.Field(
proto.BOOL,
number=14,
Expand Down
18 changes: 18 additions & 0 deletions packages/google-cloud-batch/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,15 @@ def docs(session):

session.install("-e", ".")
session.install(
# We need to pin to specific versions of the `sphinxcontrib-*` packages
# which still support sphinx 4.x.
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
"sphinxcontrib-applehelp==1.0.4",
"sphinxcontrib-devhelp==1.0.2",
"sphinxcontrib-htmlhelp==2.0.1",
"sphinxcontrib-qthelp==1.0.3",
"sphinxcontrib-serializinghtml==1.1.5",
"sphinx==4.5.0",
"alabaster",
"recommonmark",
Expand All @@ -308,6 +317,15 @@ def docfx(session):

session.install("-e", ".")
session.install(
# We need to pin to specific versions of the `sphinxcontrib-*` packages
# which still support sphinx 4.x.
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
"sphinxcontrib-applehelp==1.0.4",
"sphinxcontrib-devhelp==1.0.2",
"sphinxcontrib-htmlhelp==2.0.1",
"sphinxcontrib-qthelp==1.0.3",
"sphinxcontrib-serializinghtml==1.1.5",
"gcp-sphinx-docfx-yaml",
"alabaster",
"recommonmark",
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.7"
"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.7"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2688,7 +2688,6 @@ def test_create_job_rest(request_type):
"task_count_per_node": 2022,
"require_hosts_file": True,
"permissive_ssh": True,
"enable_oslogin": True,
"run_as_non_root": True,
}
],
Expand Down

0 comments on commit 527862b

Please sign in to comment.