Cloud AI Platform v1 API - Class ServiceAccountSpec (3.7.0)

public sealed class ServiceAccountSpec : IMessage<ServiceAccountSpec>, IEquatable<ServiceAccountSpec>, IDeepCloneable<ServiceAccountSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1 API class ServiceAccountSpec.

Configuration for the use of custom service account to run the workloads.

Inheritance

object > ServiceAccountSpec

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

ServiceAccountSpec()

public ServiceAccountSpec()

ServiceAccountSpec(ServiceAccountSpec)

public ServiceAccountSpec(ServiceAccountSpec other)
Parameter
Name Description
other ServiceAccountSpec

Properties

EnableCustomServiceAccount

public bool EnableCustomServiceAccount { get; set; }

Required. If true, custom user-managed service account is enforced to run any workloads (for example, Vertex Jobs) on the resource. Otherwise, uses the Vertex AI Custom Code Service Agent.

Property Value
Type Description
bool

ServiceAccount

public string ServiceAccount { get; set; }

Optional. Required when all below conditions are met

  • enable_custom_service_account is true;
  • any runtime is specified via ResourceRuntimeSpec on creation time, for example, Ray

The users must have iam.serviceAccounts.actAs permission on this service account and then the specified runtime containers will run as it.

Do not set this field if you want to submit jobs using custom service account to this PersistentResource after creation, but only specify the service_account inside the job.

Property Value
Type Description
string