Class ProjectServiceAccount
-
- All Implemented Interfaces:
public final class ProjectServiceAccountRepresents an individual service account in a project.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classProjectServiceAccount.BuilderA builder for ProjectServiceAccount.
public final classProjectServiceAccount.Roleownerormember
-
Method Summary
Modifier and Type Method Description final Stringid()The identifier, which can be referenced in API endpoints final LongcreatedAt()The Unix timestamp (in seconds) of when the service account was created final Stringname()The name of the service account final JsonValue_object_()The object type, which is always organization.project.service_accountExpected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("organization.project.service_account")final ProjectServiceAccount.Rolerole()ownerormemberfinal JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Long>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<ProjectServiceAccount.Role>_role()Returns the raw JSON value of role. final Map<String, JsonValue>_additionalProperties()final ProjectServiceAccount.BuildertoBuilder()final ProjectServiceAccountvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ProjectServiceAccount.Builderbuilder()Returns a mutable builder for constructing an instance of ProjectServiceAccount. -
-
Method Detail
-
createdAt
final Long createdAt()
The Unix timestamp (in seconds) of when the service account was created
-
_object_
final JsonValue _object_()
The object type, which is always
organization.project.service_accountExpected to always return the following:
JsonValue.from("organization.project.service_account")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
role
final ProjectServiceAccount.Role role()
ownerormember
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<Long> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_role
final JsonField<ProjectServiceAccount.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ProjectServiceAccount.Builder toBuilder()
-
validate
final ProjectServiceAccount validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ProjectServiceAccount.Builder builder()
Returns a mutable builder for constructing an instance of ProjectServiceAccount.
The following fields are required:
.id() .createdAt() .name() .role()
-
-
-
-