Skip to content

Commit

Permalink
feat(v1): promote block_project_ssh_keys support to batch v1 API
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 670424240
  • Loading branch information
Google APIs authored and copybara-github committed Sep 3, 2024
1 parent 6a474b3 commit 4bf146f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions google/cloud/batch/v1/job.proto
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,25 @@ message AllocationPolicy {
// Optional. Set this field true if you want Batch to install Ops Agent on
// your behalf. Default is false.
bool install_ops_agent = 4 [(google.api.field_behavior) = OPTIONAL];

// Optional. Set this field to `true` if you want Batch to block
// project-level SSH keys from accessing this job's VMs. Alternatively, you
// can configure the job to specify a VM instance template that blocks
// project-level SSH keys. In either case, Batch blocks project-level SSH
// keys while creating the VMs for this job.
//
// Batch allows project-level SSH keys for a job's VMs only if all
// the following are true:
//
// + This field is undefined or set to `false`.
// + The job's VM instance template (if any) doesn't block project-level
// SSH keys.
//
// Notably, you can override this behavior by manually updating a VM to
// block or allow project-level SSH keys. For more information about
// blocking project-level SSH keys, see the Compute Engine documentation:
// https://cloud.google.com/compute/docs/connect/restrict-ssh-keys#block-keys
bool block_project_ssh_keys = 5 [(google.api.field_behavior) = OPTIONAL];
}

// A network interface.
Expand Down

0 comments on commit 4bf146f

Please sign in to comment.