Skip to content

Commit 527862b

Browse files
fix(v1alpha): [google-cloud-batch] remove deprecated field enableOslogin (googleapis#12210)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 599921345 Source-Link: googleapis/googleapis@7cdfb2d Source-Link: https://github.com/googleapis/googleapis-gen/commit/170f3b7d43801613fb1e1431c77c88253e5a96ce Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiIxNzBmM2I3ZDQzODAxNjEzZmIxZTE0MzFjNzdjODgyNTNlNWE5NmNlIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent c25ed93 commit 527862b

8 files changed

Lines changed: 23 additions & 23 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.7" # {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.7" # {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.7" # {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: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,19 +1135,6 @@ class TaskGroup(proto.Message):
11351135
When true, Batch will configure SSH to allow
11361136
passwordless login between VMs running the Batch
11371137
tasks in the same TaskGroup.
1138-
enable_oslogin (bool):
1139-
Optional. Deprecated: When true, Batch will use the OS Login
1140-
generated POSIX account to exeucute the runnables instead of
1141-
the default root user.
1142-
1143-
| To control root or non-root privilege for runnable
1144-
execution, the project
1145-
| Admin user needs to configure IAM roles according to
1146-
https://cloud.google.com/compute/docs/oslogin/set-up-oslogin#configure_users.
1147-
Specifically, if a root execution is needed, the
1148-
roles/compute.osAdminLogin should be granted to the Batch
1149-
job submitter. Otherwise, roles/compute.osLogin should be
1150-
granted to the Batch job submitter.
11511138
run_as_non_root (bool):
11521139
Optional. If not set or set to false, Batch
11531140
will use root user to execute runnables. If set
@@ -1227,10 +1214,6 @@ class SchedulingPolicy(proto.Enum):
12271214
proto.BOOL,
12281215
number=12,
12291216
)
1230-
enable_oslogin: bool = proto.Field(
1231-
proto.BOOL,
1232-
number=13,
1233-
)
12341217
run_as_non_root: bool = proto.Field(
12351218
proto.BOOL,
12361219
number=14,

packages/google-cloud-batch/noxfile.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,15 @@ def docs(session):
282282

283283
session.install("-e", ".")
284284
session.install(
285+
# We need to pin to specific versions of the `sphinxcontrib-*` packages
286+
# which still support sphinx 4.x.
287+
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
288+
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
289+
"sphinxcontrib-applehelp==1.0.4",
290+
"sphinxcontrib-devhelp==1.0.2",
291+
"sphinxcontrib-htmlhelp==2.0.1",
292+
"sphinxcontrib-qthelp==1.0.3",
293+
"sphinxcontrib-serializinghtml==1.1.5",
285294
"sphinx==4.5.0",
286295
"alabaster",
287296
"recommonmark",
@@ -308,6 +317,15 @@ def docfx(session):
308317

309318
session.install("-e", ".")
310319
session.install(
320+
# We need to pin to specific versions of the `sphinxcontrib-*` packages
321+
# which still support sphinx 4.x.
322+
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
323+
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
324+
"sphinxcontrib-applehelp==1.0.4",
325+
"sphinxcontrib-devhelp==1.0.2",
326+
"sphinxcontrib-htmlhelp==2.0.1",
327+
"sphinxcontrib-qthelp==1.0.3",
328+
"sphinxcontrib-serializinghtml==1.1.5",
311329
"gcp-sphinx-docfx-yaml",
312330
"alabaster",
313331
"recommonmark",

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.7"
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.7"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-batch/tests/unit/gapic/batch_v1alpha/test_batch_service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2688,7 +2688,6 @@ def test_create_job_rest(request_type):
26882688
"task_count_per_node": 2022,
26892689
"require_hosts_file": True,
26902690
"permissive_ssh": True,
2691-
"enable_oslogin": True,
26922691
"run_as_non_root": True,
26932692
}
26942693
],

0 commit comments

Comments
 (0)