|
31 | 31 | @SuppressWarnings("javadoc")
|
32 | 32 | public final class InstancePolicyOrTemplate extends com.google.api.client.json.GenericJson {
|
33 | 33 |
|
| 34 | + /** |
| 35 | + * Optional. Set this field to `true` if you want Batch to block project-level SSH keys from |
| 36 | + * accessing this job's VMs. Alternatively, you can configure the job to specify a VM instance |
| 37 | + * template that blocks project-level SSH keys. In either case, Batch blocks project-level SSH |
| 38 | + * keys while creating the VMs for this job. Batch allows project-level SSH keys for a job's VMs |
| 39 | + * only if all the following are true: + This field is undefined or set to `false`. + The job's VM |
| 40 | + * instance template (if any) doesn't block project-level SSH keys. Notably, you can override this |
| 41 | + * behavior by manually updating a VM to block or allow project-level SSH keys. For more |
| 42 | + * information about blocking project-level SSH keys, see the Compute Engine documentation: |
| 43 | + * https://cloud.google.com/compute/docs/connect/restrict-ssh-keys#block-keys |
| 44 | + * The value may be {@code null}. |
| 45 | + */ |
| 46 | + @com.google.api.client.util.Key |
| 47 | + private java.lang.Boolean blockProjectSshKeys; |
| 48 | + |
34 | 49 | /**
|
35 | 50 | * Set this field true if you want Batch to help fetch drivers from a third party location and
|
36 | 51 | * install them for GPUs specified in `policy.accelerators` or `instance_template` on your behalf.
|
@@ -67,6 +82,39 @@ public final class InstancePolicyOrTemplate extends com.google.api.client.json.G
|
67 | 82 | @com.google.api.client.util.Key
|
68 | 83 | private InstancePolicy policy;
|
69 | 84 |
|
| 85 | + /** |
| 86 | + * Optional. Set this field to `true` if you want Batch to block project-level SSH keys from |
| 87 | + * accessing this job's VMs. Alternatively, you can configure the job to specify a VM instance |
| 88 | + * template that blocks project-level SSH keys. In either case, Batch blocks project-level SSH |
| 89 | + * keys while creating the VMs for this job. Batch allows project-level SSH keys for a job's VMs |
| 90 | + * only if all the following are true: + This field is undefined or set to `false`. + The job's VM |
| 91 | + * instance template (if any) doesn't block project-level SSH keys. Notably, you can override this |
| 92 | + * behavior by manually updating a VM to block or allow project-level SSH keys. For more |
| 93 | + * information about blocking project-level SSH keys, see the Compute Engine documentation: |
| 94 | + * https://cloud.google.com/compute/docs/connect/restrict-ssh-keys#block-keys |
| 95 | + * @return value or {@code null} for none |
| 96 | + */ |
| 97 | + public java.lang.Boolean getBlockProjectSshKeys() { |
| 98 | + return blockProjectSshKeys; |
| 99 | + } |
| 100 | + |
| 101 | + /** |
| 102 | + * Optional. Set this field to `true` if you want Batch to block project-level SSH keys from |
| 103 | + * accessing this job's VMs. Alternatively, you can configure the job to specify a VM instance |
| 104 | + * template that blocks project-level SSH keys. In either case, Batch blocks project-level SSH |
| 105 | + * keys while creating the VMs for this job. Batch allows project-level SSH keys for a job's VMs |
| 106 | + * only if all the following are true: + This field is undefined or set to `false`. + The job's VM |
| 107 | + * instance template (if any) doesn't block project-level SSH keys. Notably, you can override this |
| 108 | + * behavior by manually updating a VM to block or allow project-level SSH keys. For more |
| 109 | + * information about blocking project-level SSH keys, see the Compute Engine documentation: |
| 110 | + * https://cloud.google.com/compute/docs/connect/restrict-ssh-keys#block-keys |
| 111 | + * @param blockProjectSshKeys blockProjectSshKeys or {@code null} for none |
| 112 | + */ |
| 113 | + public InstancePolicyOrTemplate setBlockProjectSshKeys(java.lang.Boolean blockProjectSshKeys) { |
| 114 | + this.blockProjectSshKeys = blockProjectSshKeys; |
| 115 | + return this; |
| 116 | + } |
| 117 | + |
70 | 118 | /**
|
71 | 119 | * Set this field true if you want Batch to help fetch drivers from a third party location and
|
72 | 120 | * install them for GPUs specified in `policy.accelerators` or `instance_template` on your behalf.
|
|
0 commit comments