Class BetaServiceAccount
-
- All Implemented Interfaces:
public final class BetaServiceAccountNamed non-human identity within the caller's organization.
A service account is a pure identity: name + org. Authorization lives on whatever references it (federation rules).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaServiceAccount.BuilderA builder for BetaServiceAccount.
public final classBetaServiceAccount.OrganizationRoleOrg-level role. A federation rule may only be created or retargeted to grant
org:adminscope when this isadmin. A rule grantingorg:adminwhose target is later demoted todeveloperis rejected at token exchange. Rules grantingorg:adminare managed in the Console.
-
Method Summary
Modifier and Type Method Description final Stringid()Tagged ID of the service account. final Optional<OffsetDateTime>archivedAt()If set, this service account is archived. final Optional<String>archivedByActorId()Tagged ID ( user_/svac_) of the actor that archived this service account.final OffsetDateTimecreatedAt()When this service account was created. final Optional<String>createdByActorId()Tagged ID ( user_/svac_) of the actor that created this service account.final Optional<String>description()Optional free-text description. final Stringname()Admin-chosen slug identifier. final BetaServiceAccount.OrganizationRoleorganizationRole()Org-level role. final OffsetDateTimeupdatedAt()When this service account was last updated. final Optional<String>updatedByActorId()Tagged ID ( user_/svac_) of the actor that last updated this service account.final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("service_account")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_archivedAt()Returns the raw JSON value of archivedAt. final JsonField<String>_archivedByActorId()Returns the raw JSON value of archivedByActorId. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_createdByActorId()Returns the raw JSON value of createdByActorId. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<BetaServiceAccount.OrganizationRole>_organizationRole()Returns the raw JSON value of organizationRole. final JsonField<OffsetDateTime>_updatedAt()Returns the raw JSON value of updatedAt. final JsonField<String>_updatedByActorId()Returns the raw JSON value of updatedByActorId. final Map<String, JsonValue>_additionalProperties()final BetaServiceAccount.BuildertoBuilder()final BetaServiceAccountvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaServiceAccount.Builderbuilder()Returns a mutable builder for constructing an instance of BetaServiceAccount. -
-
Method Detail
-
archivedAt
final Optional<OffsetDateTime> archivedAt()
If set, this service account is archived.
-
archivedByActorId
final Optional<String> archivedByActorId()
Tagged ID (
user_/svac_) of the actor that archived this service account.
-
createdAt
final OffsetDateTime createdAt()
When this service account was created.
-
createdByActorId
final Optional<String> createdByActorId()
Tagged ID (
user_/svac_) of the actor that created this service account.
-
description
final Optional<String> description()
Optional free-text description.
-
organizationRole
final BetaServiceAccount.OrganizationRole organizationRole()
Org-level role. A federation rule may only be created or retargeted to grant
org:adminscope when this isadmin. A rule grantingorg:adminwhose target is later demoted todeveloperis rejected at token exchange. Rules grantingorg:adminare managed in the Console.
-
updatedAt
final OffsetDateTime updatedAt()
When this service account was last updated.
-
updatedByActorId
final Optional<String> updatedByActorId()
Tagged ID (
user_/svac_) of the actor that last updated this service account.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("service_account")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_archivedAt
final JsonField<OffsetDateTime> _archivedAt()
Returns the raw JSON value of archivedAt.
Unlike archivedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_archivedByActorId
final JsonField<String> _archivedByActorId()
Returns the raw JSON value of archivedByActorId.
Unlike archivedByActorId, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_createdByActorId
final JsonField<String> _createdByActorId()
Returns the raw JSON value of createdByActorId.
Unlike createdByActorId, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, 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.
-
_organizationRole
final JsonField<BetaServiceAccount.OrganizationRole> _organizationRole()
Returns the raw JSON value of organizationRole.
Unlike organizationRole, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<OffsetDateTime> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedByActorId
final JsonField<String> _updatedByActorId()
Returns the raw JSON value of updatedByActorId.
Unlike updatedByActorId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaServiceAccount.Builder toBuilder()
-
validate
final BetaServiceAccount 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 BetaServiceAccount.Builder builder()
Returns a mutable builder for constructing an instance of BetaServiceAccount.
The following fields are required:
.id() .archivedAt() .archivedByActorId() .createdAt() .createdByActorId() .description() .name() .organizationRole() .updatedAt() .updatedByActorId()
-
-
-
-