Skip to content

Commit ef5e670

Browse files
Google APIscopybara-github
authored andcommitted
docs: Update reservation field to include NO_RESERVATION
--- docs: clarify that user provided labels will also be applied to Cloud Logging PiperOrigin-RevId: 700592805
1 parent f4d1743 commit ef5e670

1 file changed

Lines changed: 25 additions & 17 deletions

File tree

google/cloud/batch/v1/job.proto

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,18 @@ message Job {
5858
// Compute resource allocation for all TaskGroups in the Job.
5959
AllocationPolicy allocation_policy = 7;
6060

61-
// Labels for the Job. Labels could be user provided or system generated.
62-
// For example,
63-
// "labels": {
64-
// "department": "finance",
65-
// "environment": "test"
66-
// }
67-
// You can assign up to 64 labels. [Google Compute Engine label
68-
// restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
69-
// apply.
70-
// Label names that start with "goog-" or "google-" are reserved.
61+
// Custom labels to apply to the job and any Cloud Logging
62+
// [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
63+
// that it generates.
64+
//
65+
// Use labels to group and describe the resources they are applied to. Batch
66+
// automatically applies predefined labels and supports multiple `labels`
67+
// fields for each job, which each let you apply custom labels to various
68+
// resources. Label names that start with "goog-" or "google-" are
69+
// reserved for predefined labels. For more information about labels with
70+
// Batch, see
71+
// [Organize resources using
72+
// labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
7173
map<string, string> labels = 8;
7274

7375
// Output only. Job status. It is read only for users.
@@ -409,6 +411,8 @@ message AllocationPolicy {
409411

410412
// Optional. If specified, VMs will consume only the specified reservation.
411413
// If not specified (default), VMs will consume any applicable reservation.
414+
// Additionally, VMs will not consume any reservation if "NO_RESERVATION"
415+
// is specified.
412416
string reservation = 7 [(google.api.field_behavior) = OPTIONAL];
413417
}
414418

@@ -561,13 +565,17 @@ message AllocationPolicy {
561565
// default cloud-platform scope. (list of strings)
562566
ServiceAccount service_account = 9;
563567

564-
// Labels applied to all VM instances and other resources
565-
// created by AllocationPolicy.
566-
// Labels could be user provided or system generated.
567-
// You can assign up to 64 labels. [Google Compute Engine label
568-
// restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
569-
// apply.
570-
// Label names that start with "goog-" or "google-" are reserved.
568+
// Custom labels to apply to the job and all the Compute Engine resources
569+
// that both are created by this allocation policy and support labels.
570+
//
571+
// Use labels to group and describe the resources they are applied to. Batch
572+
// automatically applies predefined labels and supports multiple `labels`
573+
// fields for each job, which each let you apply custom labels to various
574+
// resources. Label names that start with "goog-" or "google-" are
575+
// reserved for predefined labels. For more information about labels with
576+
// Batch, see
577+
// [Organize resources using
578+
// labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
571579
map<string, string> labels = 6;
572580

573581
// The network policy.

0 commit comments

Comments
 (0)