public sealed class ServiceAccountSpec : IMessage<ServiceAccountSpec>, IEquatable<ServiceAccountSpec>, IDeepCloneable<ServiceAccountSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class ServiceAccountSpec.
Configuration for the use of custom service account to run the workloads.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eServiceAccountSpec\u003c/code\u003e class within the Vertex AI v1beta1 API, specifically for .NET developers.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceAccountSpec\u003c/code\u003e class is used to configure custom service accounts for running workloads in Vertex AI, allowing for tailored access control.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default constructor, and one that takes another \u003ccode\u003eServiceAccountSpec\u003c/code\u003e object to initialize properties.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEnableCustomServiceAccount\u003c/code\u003e property determines whether a custom service account is required, and the \u003ccode\u003eServiceAccount\u003c/code\u003e property is where the specific account is provided.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceAccountSpec\u003c/code\u003e is implemented with interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e which provides more functionality within the class.\u003c/p\u003e\n"]]],[],null,[]]