Class: Cadenya::Models::TenantAssertion
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::TenantAssertion
- Defined in:
- lib/cadenya/models/tenant_assertion.rb,
sig/cadenya/models/tenant_assertion.rbs
Instance Attribute Summary collapse
-
#id ⇒ String
The tenant identifier in the customer's namespace (e.g. "acme-corp").
-
#name ⇒ String?
Optional human-readable name for the tenant.
Instance Method Summary collapse
-
#initialize(id:, name: nil) ⇒ TenantAssertion
constructor
Some parameter documentations has been truncated, see TenantAssertion for more details.
- #to_hash ⇒ { id: String, name: String }
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(id:, name: nil) ⇒ TenantAssertion
Some parameter documentations has been truncated, see Cadenya::Models::TenantAssertion for more details.
TenantAssertion identifies a tenant in the customer's own namespace — their org,
company, or team identifier for an end user. Asserting a tenant upserts the
tenant record in the workspace (keyed on id as the tenant's external_id) and
associates the created resource with it.
|
|
# File 'lib/cadenya/models/tenant_assertion.rb', line 20
|
Instance Attribute Details
#id ⇒ String
The tenant identifier in the customer's namespace (e.g. "acme-corp"). Stored as the tenant record's external_id; stable across requests.
11 |
# File 'lib/cadenya/models/tenant_assertion.rb', line 11 required :id, String |
#name ⇒ String?
Optional human-readable name for the tenant. Updates the tenant record's name on every assertion that provides it.
18 |
# File 'lib/cadenya/models/tenant_assertion.rb', line 18 optional :name, String |
Instance Method Details
#to_hash ⇒ { id: String, name: String }
14 |
# File 'sig/cadenya/models/tenant_assertion.rbs', line 14
def to_hash: -> { id: String, name: String }
|