@@ -253,17 +253,14 @@ message AllocationPolicy {
253
253
message Disk {
254
254
// A data source from which a PD will be created.
255
255
oneof data_source {
256
- // Name of an image used as the data source.
256
+ // URL for a VM image to use as the data source for this disk .
257
257
// For example, the following are all valid URLs:
258
258
//
259
259
// * Specify the image by its family name:
260
- // <pre><code>projects/<var
261
- // class="apiparam">project</var>/global/images/family/<var
262
- // class="apiparam">image_family</var></code></pre>
260
+ // projects/{project}/global/images/family/{image_family}
263
261
// * Specify the image version:
264
- // <pre>projects/<var
265
- // class="apiparam">project</var>/global/images/<var
266
- // class="apiparam">image_version</var></code></pre>
262
+ // projects/{project}/global/images/{image_version}
263
+ //
267
264
// You can also use Batch customized image in short names.
268
265
// The following image values are supported for a boot disk:
269
266
//
@@ -365,10 +362,16 @@ message AllocationPolicy {
365
362
366
363
// Non-boot disks to be attached for each VM created by this InstancePolicy.
367
364
// New disks will be deleted when the VM is deleted.
365
+ // A non-boot disk is a disk that can be of a device with a
366
+ // file system or a raw storage drive that is not ready for data
367
+ // storage and accessing.
368
368
repeated AttachedDisk disks = 6 ;
369
369
}
370
370
371
- // Either an InstancePolicy or an instance template.
371
+ // InstancePolicyOrTemplate lets you define the type of resources to use for
372
+ // this job either with an InstancePolicy or an instance template.
373
+ // If undefined, Batch picks the type of VM to use and doesn't include
374
+ // optional VM resources such as GPUs and extra disks.
372
375
message InstancePolicyOrTemplate {
373
376
oneof policy_template {
374
377
// InstancePolicy.
@@ -399,30 +402,20 @@ message AllocationPolicy {
399
402
// You can specify the network as a full or partial URL.
400
403
//
401
404
// For example, the following are all valid URLs:
402
- // <pre><code>https://www.googleapis.com/compute/v1/projects/<var
403
- // class="apiparam">project</var>/global/networks/<var
404
- // class="apiparam">network</var></code></pre>
405
- // <pre><code>projects/<var
406
- // class="apiparam">project</var>/global/networks/<var
407
- // class="apiparam">network</var></code></pre>
408
- // <pre><code>global/networks/<var
409
- // class="apiparam">network</var></code></pre>
405
+ //
406
+ // * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
407
+ // * projects/{project}/global/networks/{network}
408
+ // * global/networks/{network}
410
409
string network = 1 ;
411
410
412
411
// The URL of an existing subnetwork resource in the network.
413
412
// You can specify the subnetwork as a full or partial URL.
414
413
//
415
414
// For example, the following are all valid URLs:
416
- // <pre><code>https://www.googleapis.com/compute/v1/projects/<var
417
- // class="apiparam">project</var>/regions/<var
418
- // class="apiparam">region</var>/subnetworks/<var
419
- // class="apiparam">subnetwork</var></code></pre>
420
- // <pre><code>projects/<var class="apiparam">project</var>/regions/<var
421
- // class="apiparam">region</var>/subnetworks/<var
422
- // class="apiparam">subnetwork</var></code></pre>
423
- // <pre><code>regions/<var
424
- // class="apiparam">region</var>/subnetworks/<var
425
- // class="apiparam">subnetwork</var></code></pre>
415
+ //
416
+ // * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
417
+ // * projects/{project}/regions/{region}/subnetworks/{subnetwork}
418
+ // * regions/{region}/subnetworks/{subnetwork}
426
419
string subnetwork = 2 ;
427
420
428
421
// Default is false (with an external IP address). Required if
0 commit comments