Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ServiceAccountSpec
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ServiceAccountSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Configuration for the use of custom service account to run the workloads.
Instance Attribute Summary collapse
-
#enable_custom_service_account ⇒ Boolean
(also: #enable_custom_service_account?)
Required.
-
#service_account ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ServiceAccountSpec
constructor
A new instance of GoogleCloudAiplatformV1beta1ServiceAccountSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ServiceAccountSpec
Returns a new instance of GoogleCloudAiplatformV1beta1ServiceAccountSpec.
21667 21668 21669 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21667 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_custom_service_account ⇒ Boolean Also known as: enable_custom_service_account?
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
Corresponds to the JSON property enableCustomServiceAccount
21653 21654 21655 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21653 def enable_custom_service_account @enable_custom_service_account end |
#service_account ⇒ String
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.
Corresponds to the JSON property serviceAccount
21665 21666 21667 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21665 def service_account @service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21672 21673 21674 21675 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21672 def update!(**args) @enable_custom_service_account = args[:enable_custom_service_account] if args.key?(:enable_custom_service_account) @service_account = args[:service_account] if args.key?(:service_account) end |