Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::ServiceAccountSpec (v0.42.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::ServiceAccountSpec.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#enable_custom_service_account

def enable_custom_service_account() -> ::Boolean
Returns
  • (::Boolean) — 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.

#enable_custom_service_account=

def enable_custom_service_account=(value) -> ::Boolean
Parameter
  • value (::Boolean) — 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.
Returns
  • (::Boolean) — 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.

#service_account

def service_account() -> ::String
Returns
  • (::String) — 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.

#service_account=

def service_account=(value) -> ::String
Parameter
  • value (::String) — 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.

Returns
  • (::String) — 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.