Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5482b4

Browse files
Google APIscopybara-github
authored andcommitted
docs: Update description on size_gb in disk field
PiperOrigin-RevId: 561181917
1 parent e853fcb commit a5482b4

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

google/cloud/batch/v1/job.proto

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,23 @@ message AllocationPolicy {
283283

284284
// Disk size in GB.
285285
//
286-
// For persistent disk, this field is ignored if `data_source` is `image` or
287-
// `snapshot`.
288-
// For local SSD, size_gb should be a multiple of 375GB,
289-
// otherwise, the final size will be the next greater multiple of 375 GB.
290-
// For boot disk, Batch will calculate the boot disk size based on source
286+
// **Non-Boot Disk**:
287+
// If the `type` specifies a persistent disk, this field
288+
// is ignored if `data_source` is set as `image` or `snapshot`.
289+
// If the `type` specifies a local SSD, this field should be a multiple of
290+
// 375 GB, otherwise, the final size will be the next greater multiple of
291+
// 375 GB.
292+
//
293+
// **Boot Disk**:
294+
// Batch will calculate the boot disk size based on source
291295
// image and task requirements if you do not speicify the size.
292-
// If both this field and the boot_disk_mib field in task spec's
293-
// compute_resource are defined, Batch will only honor this field.
296+
// If both this field and the `boot_disk_mib` field in task spec's
297+
// `compute_resource` are defined, Batch will only honor this field.
298+
// Also, this field should be no smaller than the source disk's
299+
// size when the `data_source` is set as `snapshot` or `image`.
300+
// For example, if you set an image as the `data_source` field and the
301+
// image's default disk size 30 GB, you can only use this field to make the
302+
// disk larger or equal to 30 GB.
294303
int64 size_gb = 2;
295304

296305
// Local SSDs are available through both "SCSI" and "NVMe" interfaces.

0 commit comments

Comments
 (0)