Class: Anthropic::Models::Organization::Workspaces::MemberAddParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Organization::Workspaces::MemberAddParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/organization/workspaces/member_add_params.rb,
sig/anthropic/models/organization/workspaces/member_add_params.rbs
Overview
Instance Attribute Summary collapse
-
#user_id ⇒ String
ID of the User.
-
#workspace_id ⇒ String
ID of the Workspace.
-
#workspace_role ⇒ Symbol, Anthropic::Models::Organization::NoBillingWorkspaceRole
Role of the new Workspace Member.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(workspace_id:, user_id:, workspace_role:, request_options: {}) ⇒ MemberAddParams
constructor
A new instance of MemberAddParams.
- #to_hash ⇒ { workspace_id: String, user_id: String, workspace_role: Anthropic::Models::Organization::no_billing_workspace_role, request_options: Anthropic::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(workspace_id:, user_id:, workspace_role:, request_options: {}) ⇒ MemberAddParams
Returns a new instance of MemberAddParams.
|
|
# File 'lib/anthropic/models/organization/workspaces/member_add_params.rb', line 30
|
Instance Attribute Details
#user_id ⇒ String
ID of the User.
22 |
# File 'lib/anthropic/models/organization/workspaces/member_add_params.rb', line 22 required :user_id, String |
#workspace_id ⇒ String
ID of the Workspace.
16 |
# File 'lib/anthropic/models/organization/workspaces/member_add_params.rb', line 16 required :workspace_id, String |
#workspace_role ⇒ Symbol, Anthropic::Models::Organization::NoBillingWorkspaceRole
Role of the new Workspace Member. Cannot be workspace_billing.
28 |
# File 'lib/anthropic/models/organization/workspaces/member_add_params.rb', line 28 required :workspace_role, enum: -> { Anthropic::Organization::NoBillingWorkspaceRole } |
Instance Method Details
#to_hash ⇒ { workspace_id: String, user_id: String, workspace_role: Anthropic::Models::Organization::no_billing_workspace_role, request_options: Anthropic::RequestOptions }
30 31 32 33 34 35 |
# File 'sig/anthropic/models/organization/workspaces/member_add_params.rbs', line 30
def to_hash: -> {
workspace_id: String,
user_id: String,
workspace_role: Anthropic::Models::Organization::no_billing_workspace_role,
request_options: Anthropic::RequestOptions
}
|