Class: Cadenya::Models::APIKeySpec
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::APIKeySpec
- Defined in:
- lib/cadenya/models/api_key_spec.rb
Instance Attribute Summary collapse
-
#description ⇒ String?
Free-form description of what this API key is used for.
-
#permissions ⇒ Array<String>?
Permissions granted to this key.
Instance Method Summary collapse
-
#initialize(token: nil, description: nil, permissions: nil, system_: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see APIKeySpec for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(token: nil, description: nil, permissions: nil, system_: nil) ⇒ Object
Some parameter documentations has been truncated, see Cadenya::Models::APIKeySpec for more details.
Configuration for an API key.
|
|
# File 'lib/cadenya/models/api_key_spec.rb', line 36
|
Instance Attribute Details
#description ⇒ String?
Free-form description of what this API key is used for.
10 |
# File 'lib/cadenya/models/api_key_spec.rb', line 10 optional :description, String |
#permissions ⇒ Array<String>?
Permissions granted to this key. Each entry is a colon-separated verb:resource string (e.g. “manage:agents”). Currently has no enforced effect; reserved for future fine-grained authorization.
18 |
# File 'lib/cadenya/models/api_key_spec.rb', line 18 optional :permissions, Cadenya::Internal::Type::ArrayOf[String] |