pub struct GoogleCloudAiplatformV1ServiceAccountSpec {
pub enable_custom_service_account: Option<bool>,
pub service_account: Option<String>,
}Expand description
Configuration for the use of custom service account to run the workloads.
This type is not used in any activity, and only used as part of another schema.
Fields§
§enable_custom_service_account: Option<bool>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: Option<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.
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1ServiceAccountSpec
impl Clone for GoogleCloudAiplatformV1ServiceAccountSpec
Source§fn clone(&self) -> GoogleCloudAiplatformV1ServiceAccountSpec
fn clone(&self) -> GoogleCloudAiplatformV1ServiceAccountSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudAiplatformV1ServiceAccountSpec
impl Default for GoogleCloudAiplatformV1ServiceAccountSpec
Source§fn default() -> GoogleCloudAiplatformV1ServiceAccountSpec
fn default() -> GoogleCloudAiplatformV1ServiceAccountSpec
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1ServiceAccountSpec
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1ServiceAccountSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudAiplatformV1ServiceAccountSpec
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1ServiceAccountSpec
impl RefUnwindSafe for GoogleCloudAiplatformV1ServiceAccountSpec
impl Send for GoogleCloudAiplatformV1ServiceAccountSpec
impl Sync for GoogleCloudAiplatformV1ServiceAccountSpec
impl Unpin for GoogleCloudAiplatformV1ServiceAccountSpec
impl UnwindSafe for GoogleCloudAiplatformV1ServiceAccountSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more