Class: Inttegro::SecretKey::Generated

Inherits:
T::Struct
  • Object
show all
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

Instance Attribute Details

#id ⇒ String (readonly)

Secret key identifier.

Required in the API payload. Wire name: id.

Returns:

  • (String)


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.

Returns:

  • (Time)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (String)


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