@@ -91,9 +91,20 @@ message Job {
9191// LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
9292// preserved.
9393message LogsPolicy {
94- // CloudLoggingOption contains additional settings for cloud logging generated
95- // by Batch job.
96- message CloudLoggingOption {}
94+ // `CloudLoggingOption` contains additional settings for Cloud Logging logs
95+ // generated by Batch job.
96+ message CloudLoggingOption {
97+ // Optional. Set this flag to true to change the [monitored resource
98+ // type](https://cloud.google.com/monitoring/api/resources) for
99+ // Cloud Logging logs generated by this Batch job from
100+ // the
101+ // [`batch.googleapis.com/Job`](https://cloud.google.com/monitoring/api/resources#tag_batch.googleapis.com/Job)
102+ // type to the formerly used
103+ // [`generic_task`](https://cloud.google.com/monitoring/api/resources#tag_generic_task)
104+ // type.
105+ bool use_generic_task_monitored_resource = 1
106+ [(google.api.field_behavior ) = OPTIONAL ];
107+ }
97108
98109 // The destination (if any) for logs.
99110 enum Destination {
@@ -116,7 +127,7 @@ message LogsPolicy {
116127 string logs_path = 2 ;
117128
118129 // Optional. Additional settings for Cloud Logging. It will only take effect
119- // when the destination of LogsPolicy is set to CLOUD_LOGGING.
130+ // when the destination of ` LogsPolicy` is set to ` CLOUD_LOGGING` .
120131 CloudLoggingOption cloud_logging_option = 3
121132 [(google.api.field_behavior ) = OPTIONAL ];
122133}
@@ -517,13 +528,20 @@ message AllocationPolicy {
517528
518529 // The network policy.
519530 //
520- // If you define an instance template in the InstancePolicyOrTemplate field,
531+ // If you define an instance template in the ` InstancePolicyOrTemplate` field,
521532 // Batch will use the network settings in the instance template instead of
522533 // this field.
523534 NetworkPolicy network = 7 ;
524535
525536 // The placement policy.
526537 PlacementPolicy placement = 10 ;
538+
539+ // Optional. Tags applied to the VM instances.
540+ //
541+ // The tags identify valid sources or targets for network firewalls.
542+ // Each tag must be 1-63 characters long, and comply with
543+ // [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
544+ repeated string tags = 11 [(google.api.field_behavior ) = OPTIONAL ];
527545}
528546
529547// A TaskGroup defines one or more Tasks that all share the same TaskSpec.
@@ -595,6 +613,12 @@ message TaskGroup {
595613 // When true, Batch will configure SSH to allow passwordless login between
596614 // VMs running the Batch tasks in the same TaskGroup.
597615 bool permissive_ssh = 12 ;
616+
617+ // Optional. If not set or set to false, Batch will use root user to execute
618+ // runnables. If set to true, Batch will make sure to run the runnables using
619+ // non-root user. Currently, the non-root user Batch used is generated by OS
620+ // login. Reference: https://cloud.google.com/compute/docs/oslogin
621+ bool run_as_non_root = 14 [(google.api.field_behavior ) = OPTIONAL ];
598622}
599623
600624// Carries information about a Google Cloud service account.
0 commit comments