Class ServiceAccountSpec (1.29.0)

ServiceAccountSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

Name Description
enable_custom_service_account bool
Required. If true, custom user-managed service account is enforced to run any workloads (e.g. Vertex Jobs) on the resource; Otherwise, will always use `Vertex AI Custom Code Service Agent
service_account str
Optional. Default service account that this PersistentResource's workloads run as. The workloads include: - Any runtime specified via ResourceRuntimeSpec on creation time, e.g. Ray; - Jobs submitted to PersistentResource, if no other service account specified in the job specs. Only works when custom service account is enabled and users have the iam.serviceAccounts.actAs permission on this service account. Required if any containers specified in ResourceRuntimeSpec.