Class: Inttegro::SecretKey::Generated
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::SecretKey::Generated
- Defined in:
- lib/inttegro/secret_key/generated.rb
Overview
Newly generated secret key. The token is returned once and cannot be retrieved later.
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Instance Attribute Summary collapse
-
#id ⇒ String
readonly
Secret key identifier.
-
#issued_at ⇒ Time
readonly
Value of the
issued_atfield in the Inttegro API payload. -
#label ⇒ String?
readonly
Optional human-readable label for the secret key.
-
#token ⇒ String
readonly
One-time bearer token for the generated key.
-
#token_type ⇒ Inttegro::SecretKey::TokenType
readonly
Value of the
token_typefield in the Inttegro API payload.
Instance Attribute Details
#id ⇒ String (readonly)
Secret key identifier.
Required in the API payload. Wire name: id.
48 49 50 51 52 53 54 |
# File 'lib/inttegro/secret_key/generated.rb', line 48 class Generated < T::Struct const :id, String const :label, T.nilable(String), default: nil const :token_type, Inttegro::SecretKey::TokenType const :issued_at, Time const :token, String end |
#issued_at ⇒ Time (readonly)
Value of the issued_at field in the Inttegro API payload.
Required in the API payload. Wire name: issued_at.
48 49 50 51 52 53 54 |
# File 'lib/inttegro/secret_key/generated.rb', line 48 class Generated < T::Struct const :id, String const :label, T.nilable(String), default: nil const :token_type, Inttegro::SecretKey::TokenType const :issued_at, Time const :token, String end |
#label ⇒ String? (readonly)
Optional human-readable label for the secret key.
Optional in the API payload; omitted values default to nil. Wire name: label.
48 49 50 51 52 53 54 |
# File 'lib/inttegro/secret_key/generated.rb', line 48 class Generated < T::Struct const :id, String const :label, T.nilable(String), default: nil const :token_type, Inttegro::SecretKey::TokenType const :issued_at, Time const :token, String end |
#token ⇒ String (readonly)
One-time bearer token for the generated key.
Required in the API payload. Wire name: token.
48 49 50 51 52 53 54 |
# File 'lib/inttegro/secret_key/generated.rb', line 48 class Generated < T::Struct const :id, String const :label, T.nilable(String), default: nil const :token_type, Inttegro::SecretKey::TokenType const :issued_at, Time const :token, String end |
#token_type ⇒ Inttegro::SecretKey::TokenType (readonly)
Value of the token_type field in the Inttegro API payload.
Required in the API payload. Wire name: token_type.
48 49 50 51 52 53 54 |
# File 'lib/inttegro/secret_key/generated.rb', line 48 class Generated < T::Struct const :id, String const :label, T.nilable(String), default: nil const :token_type, Inttegro::SecretKey::TokenType const :issued_at, Time const :token, String end |