@@ -608,6 +608,13 @@ message AllocationPolicy {
608608
609609 // The placement policy.
610610 PlacementPolicy placement = 10 ;
611+
612+ // Optional. Tags applied to the VM instances.
613+ //
614+ // The tags identify valid sources or targets for network firewalls.
615+ // Each tag must be 1-63 characters long, and comply with
616+ // [RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
617+ repeated string tags = 11 [(google.api.field_behavior ) = OPTIONAL ];
611618}
612619
613620// A TaskGroup defines one or more Tasks that all share the same TaskSpec.
@@ -692,16 +699,23 @@ message TaskGroup {
692699 // VMs running the Batch tasks in the same TaskGroup.
693700 bool permissive_ssh = 12 ;
694701
695- // Optional. When true, Batch will use the OS Login generated POSIX account to
696- // exeucute the runnables instead of the default root user.
702+ // Optional. Deprecated: When true, Batch will use the OS Login generated
703+ // POSIX account to exeucute the runnables instead of the default root user.
697704 //
698705 // To control root or non-root privilege for runnable execution, the project \
699706 // Admin user needs to configure IAM roles according to
700707 // https://cloud.google.com/compute/docs/oslogin/set-up-oslogin#configure_users.
701708 // Specifically, if a root execution is needed, the roles/compute.osAdminLogin
702709 // should be granted to the Batch job submitter. Otherwise,
703710 // roles/compute.osLogin should be granted to the Batch job submitter.
704- bool enable_oslogin = 13 [(google.api.field_behavior ) = OPTIONAL ];
711+ bool enable_oslogin = 13
712+ [deprecated = true , (google.api.field_behavior ) = OPTIONAL ];
713+
714+ // Optional. If not set or set to false, Batch will use root user to execute
715+ // runnables. If set to true, Batch will make sure to run the runnables using
716+ // non-root user. Currently, the non-root user Batch used is generated by OS
717+ // login. Reference: https://cloud.google.com/compute/docs/oslogin
718+ bool run_as_non_root = 14 [(google.api.field_behavior ) = OPTIONAL ];
705719}
706720
707721// Carries information about a Google Cloud service account.
0 commit comments