@@ -92,7 +92,7 @@ message Job {
9292 // Output only. Job status. It is read only for users.
9393 JobStatus status = 9 [(google.api.field_behavior ) = OUTPUT_ONLY ];
9494
95- // Job notification .
95+ // Deprecated: please use notifications instead .
9696 JobNotification notification = 10 [deprecated = true ];
9797
9898 // Output only. When the Job was created.
@@ -329,7 +329,9 @@ message AllocationPolicy {
329329 }
330330
331331 // Device name that the guest operating system will see.
332- // If not specified, this is default to the disk name.
332+ // It is used by Runnable.volumes field to mount disks. So please specify
333+ // the device_name if you want Batch to help mount the disk, and it should
334+ // match the device_name field in volumes.
333335 string device_name = 3 ;
334336 }
335337
@@ -342,12 +344,14 @@ message AllocationPolicy {
342344 // The number of accelerators of this type.
343345 int64 count = 2 ;
344346
347+ // Deprecated: please use instances[0].install_gpu_drivers instead.
345348 bool install_gpu_drivers = 3 [deprecated = true ];
346349 }
347350
348351 // InstancePolicy describes an instance type and resources attached to each VM
349352 // created by this InstancePolicy.
350353 message InstancePolicy {
354+ // Deprecated: please use machine_type instead.
351355 repeated string allowed_machine_types = 1 [deprecated = true ];
352356
353357 // The Compute Engine machine type.
@@ -383,6 +387,10 @@ message AllocationPolicy {
383387 string instance_template = 2 ;
384388 }
385389
390+ // Set this field true if users want Batch to help fetch drivers from a
391+ // third party location and install them for GPUs specified in
392+ // policy.accelerators or instance_template on their behalf. Default is
393+ // false.
386394 bool install_gpu_drivers = 3 ;
387395 }
388396
@@ -433,29 +441,23 @@ message AllocationPolicy {
433441 // Location where compute resources should be allocated for the Job.
434442 LocationPolicy location = 1 ;
435443
436- // Create only instances allowed by this policy.
444+ // Deprecated: please use instances[0]. policy instead .
437445 InstancePolicy instance = 2 [deprecated = true ];
438446
439447 // Describe instances that can be created by this AllocationPolicy.
440448 // Only instances[0] is supported now.
441449 repeated InstancePolicyOrTemplate instances = 8 ;
442450
443- // Instance templates that are used to VMs.
444- // If specified, only instance_templates[0] is used.
451+ // Deprecated: please use instances[0].template instead.
445452 repeated string instance_templates = 3 [deprecated = true ];
446453
447- // Create only instances in the listed provisiong models.
448- // Default to allow all.
449- //
450- // Currently only the first model of the provisioning_models list will be
451- // considered; specifying additional models (e.g., 2nd, 3rd, etc.) is a no-op.
454+ // Deprecated: please use instances[i].policy.provisioning_model instead.
452455 repeated ProvisioningModel provisioning_models = 4 [deprecated = true ];
453456
454- // Email of the service account that VMs will run as .
457+ // Deprecated: please use service_account instead .
455458 string service_account_email = 5 [deprecated = true ];
456459
457460 // Service account that VMs will run as.
458- // Not yet implemented.
459461 ServiceAccount service_account = 9 ;
460462
461463 // Labels applied to all VM instances and other resources
@@ -551,10 +553,12 @@ message TaskGroup {
551553// Carries information about a Google Cloud service account.
552554message ServiceAccount {
553555 // Email address of the service account. If not specified, the default
554- // Compute Engine service account for the project will be used.
556+ // Compute Engine service account for the project will be used. If instance
557+ // template is being used, the service account has to be specified in the
558+ // instance template and it has to match the email field here.
555559 string email = 1 ;
556560
557561 // List of scopes to be enabled for this service account on the VM, in
558562 // addition to the cloud-platform API scope that will be added by default.
559- repeated string scopes = 2 ;
563+ repeated string scopes = 2 [ deprecated = true ] ;
560564}
0 commit comments