Class ServiceAccountCreateResponse
-
- All Implemented Interfaces:
public final class ServiceAccountCreateResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classServiceAccountCreateResponse.BuilderA builder for ServiceAccountCreateResponse.
public final classServiceAccountCreateResponse.ApiKey
-
Method Summary
Modifier and Type Method Description final Stringid()final Optional<ServiceAccountCreateResponse.ApiKey>apiKey()final LongcreatedAt()final Stringname()final JsonValue_object_()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("organization.project.service_account")final JsonValue_role()Service accounts can only have one role of type memberExpected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("member")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<ServiceAccountCreateResponse.ApiKey>_apiKey()Returns the raw JSON value of apiKey. final JsonField<Long>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalProperties()final ServiceAccountCreateResponse.BuildertoBuilder()final ServiceAccountCreateResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ServiceAccountCreateResponse.Builderbuilder()Returns a mutable builder for constructing an instance of ServiceAccountCreateResponse. -
-
Method Detail
-
apiKey
final Optional<ServiceAccountCreateResponse.ApiKey> apiKey()
-
_object_
final JsonValue _object_()
Expected 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 JsonValue _role()
Service accounts can only have one role of type
memberExpected to always return the following:
JsonValue.from("member")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.
-
_apiKey
final JsonField<ServiceAccountCreateResponse.ApiKey> _apiKey()
Returns the raw JSON value of apiKey.
Unlike apiKey, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ServiceAccountCreateResponse.Builder toBuilder()
-
validate
final ServiceAccountCreateResponse 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 ServiceAccountCreateResponse.Builder builder()
Returns a mutable builder for constructing an instance of ServiceAccountCreateResponse.
The following fields are required:
.id() .apiKey() .createdAt() .name()
-
-
-
-