Skip to content

Commit de5b8c0

Browse files
feat(v1): [batch] promote block_project_ssh_keys support to batch v1 API (#5653)
* feat(v1): promote block_project_ssh_keys support to batch v1 API PiperOrigin-RevId: 670424240 Source-Link: googleapis/googleapis@4bf146f Source-Link: googleapis/googleapis-gen@38ece34 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJhdGNoLy5Pd2xCb3QueWFtbCIsImgiOiIzOGVjZTM0MmJhM2NkZjA3ZGI2YjVlM2MzNzI1MmFlOGYzZjdhZGU2In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2d1df0f commit de5b8c0

4 files changed

Lines changed: 55 additions & 0 deletions

File tree

packages/google-cloud-batch/protos/google/cloud/batch/v1/job.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,25 @@ message AllocationPolicy {
442442
// Optional. Set this field true if you want Batch to install Ops Agent on
443443
// your behalf. Default is false.
444444
bool install_ops_agent = 4 [(google.api.field_behavior) = OPTIONAL];
445+
446+
// Optional. Set this field to `true` if you want Batch to block
447+
// project-level SSH keys from accessing this job's VMs. Alternatively, you
448+
// can configure the job to specify a VM instance template that blocks
449+
// project-level SSH keys. In either case, Batch blocks project-level SSH
450+
// keys while creating the VMs for this job.
451+
//
452+
// Batch allows project-level SSH keys for a job's VMs only if all
453+
// the following are true:
454+
//
455+
// + This field is undefined or set to `false`.
456+
// + The job's VM instance template (if any) doesn't block project-level
457+
// SSH keys.
458+
//
459+
// Notably, you can override this behavior by manually updating a VM to
460+
// block or allow project-level SSH keys. For more information about
461+
// blocking project-level SSH keys, see the Compute Engine documentation:
462+
// https://cloud.google.com/compute/docs/connect/restrict-ssh-keys#block-keys
463+
bool block_project_ssh_keys = 5 [(google.api.field_behavior) = OPTIONAL];
445464
}
446465

447466
// A network interface.

packages/google-cloud-batch/protos/protos.d.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-batch/protos/protos.js

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-batch/protos/protos.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)