Class: OpenAI::Models::Admin::Organization::Users::RoleListResponse::AssignmentSource
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::Users::RoleListResponse::AssignmentSource
- Defined in:
- lib/openai/models/admin/organization/users/role_list_response.rb,
sig/openai/models/admin/organization/users/role_list_response.rbs
Instance Attribute Summary collapse
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(principal_id:, principal_type:) ⇒ AssignmentSource
constructor
A new instance of AssignmentSource.
- #to_hash ⇒ { principal_id: String, principal_type: String }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(principal_id:, principal_type:) ⇒ AssignmentSource
Returns a new instance of AssignmentSource.
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/openai/models/admin/organization/users/role_list_response.rb', line 133 class AssignmentSource < OpenAI::Internal::Type::BaseModel # @!attribute principal_id # # @return [String] required :principal_id, String # @!attribute principal_type # # @return [String] required :principal_type, String # @!method initialize(principal_id:, principal_type:) # @param principal_id [String] # @param principal_type [String] end |
Instance Attribute Details
#principal_id ⇒ String
137 |
# File 'lib/openai/models/admin/organization/users/role_list_response.rb', line 137 required :principal_id, String |
#principal_type ⇒ String
142 |
# File 'lib/openai/models/admin/organization/users/role_list_response.rb', line 142 required :principal_type, String |
Instance Method Details
#to_hash ⇒ { principal_id: String, principal_type: String }
126 |
# File 'sig/openai/models/admin/organization/users/role_list_response.rbs', line 126
def to_hash: -> { principal_id: String, principal_type: String }
|