[−][src]Struct google_iam1::ServiceAccount
A service account in the Identity and Access Management API.
To create a service account, specify the project_id
and the account_id
for the account. The account_id
is unique within the project, and is used
to generate the service account email address and a stable
unique_id
.
If the account already exists, the account's resource name is returned in the format of projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}. The caller can use the name in other methods to access the account.
All other methods can identify the service account using the format
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
.
Using -
as a wildcard for the PROJECT_ID
will infer the project from
the account. The ACCOUNT
value can be the email
address or the
unique_id
of the service account.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- service accounts update projects (request|response)
- service accounts patch projects (response)
- service accounts get projects (response)
- service accounts create projects (response)
Fields
oauth2_client_id: Option<String>
@OutputOnly The OAuth2 client id for the service account. This is used in conjunction with the OAuth2 clientconfig API to make three legged OAuth2 (3LO) flows to access the data of Google users.
display_name: Option<String>
Optional. A user-specified name for the service account. Must be less than or equal to 100 UTF-8 bytes.
description: Option<String>
Optional. A user-specified opaque description of the service account. Must be less than or equal to 256 UTF-8 bytes.
project_id: Option<String>
@OutputOnly The id of the project that owns the service account.
disabled: Option<bool>
@OutputOnly A bool indicate if the service account is disabled. The field is currently in alpha phase.
etag: Option<String>
Optional. Note: etag
is an inoperable legacy field that is only returned
for backwards compatibility.
unique_id: Option<String>
@OutputOnly The unique and stable id of the service account.
email: Option<String>
@OutputOnly The email address of the service account.
name: Option<String>
The resource name of the service account in the following format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
.
Requests using -
as a wildcard for the PROJECT_ID
will infer the
project from the account
and the ACCOUNT
value can be the email
address or the unique_id
of the service account.
In responses the resource name will always be in the format
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}
.
Trait Implementations
impl Clone for ServiceAccount
[src]
fn clone(&self) -> ServiceAccount
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ServiceAccount
[src]
impl Default for ServiceAccount
[src]
fn default() -> ServiceAccount
[src]
impl<'de> Deserialize<'de> for ServiceAccount
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl RequestValue for ServiceAccount
[src]
impl ResponseResult for ServiceAccount
[src]
impl Serialize for ServiceAccount
[src]
Auto Trait Implementations
impl RefUnwindSafe for ServiceAccount
impl Send for ServiceAccount
impl Sync for ServiceAccount
impl Unpin for ServiceAccount
impl UnwindSafe for ServiceAccount
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,