Struct google_iam1::ServiceAccount [−][src]
pub struct ServiceAccount { pub oauth2_client_id: Option<String>, pub etag: Option<String>, pub display_name: Option<String>, pub name: Option<String>, pub unique_id: Option<String>, pub project_id: Option<String>, pub email: Option<String>, }
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 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.
etag: Option<String>
Used to perform a consistent read-modify-write.
display_name: Option<String>
Optional. A user-specified description of the service account. Must be fewer than 100 UTF-8 bytes.
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}
.
unique_id: Option<String>
@OutputOnly The unique and stable id of the service account.
project_id: Option<String>
@OutputOnly The id of the project that owns the service account.
email: Option<String>
@OutputOnly The email address of the service account.
Trait Implementations
impl Default for ServiceAccount
[src]
impl Default for ServiceAccount
fn default() -> ServiceAccount
[src]
fn default() -> ServiceAccount
Returns the "default value" for a type. Read more
impl Clone for ServiceAccount
[src]
impl Clone for ServiceAccount
fn clone(&self) -> ServiceAccount
[src]
fn clone(&self) -> ServiceAccount
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ServiceAccount
[src]
impl Debug for ServiceAccount
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl RequestValue for ServiceAccount
[src]
impl RequestValue for ServiceAccount
impl ResponseResult for ServiceAccount
[src]
impl ResponseResult for ServiceAccount
Auto Trait Implementations
impl Send for ServiceAccount
impl Send for ServiceAccount
impl Sync for ServiceAccount
impl Sync for ServiceAccount