Class: Anthropic::Models::Organization::Workspaces::MemberUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/organization/workspaces/member_update_params.rb,
sig/anthropic/models/organization/workspaces/member_update_params.rbs

Overview

See Also:

  • Anthropic::Resources::Organization::Workspaces::Members#update

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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: {}) ⇒ MemberUpdateParams

Returns a new instance of MemberUpdateParams.

Parameters:

  • workspace_id (String) —

    ID of the Workspace.

  • user_id (String) —

    ID of the User.

  • workspace_role (Symbol, Anthropic::Models::Organization::WorkspaceRole) —

    New workspace role for the User.

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • workspace_id: (String)
  • user_id: (String)
  • workspace_role: (Anthropic::Models::Organization::workspace_role)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/organization/workspaces/member_update_params.rb', line 30

Instance Attribute Details

#user_id ⇒ String

ID of the User.

Parameters:

  • value (String)

Returns:

  • (String)


22
# File 'lib/anthropic/models/organization/workspaces/member_update_params.rb', line 22

required :user_id, String

#workspace_id ⇒ String

ID of the Workspace.

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/anthropic/models/organization/workspaces/member_update_params.rb', line 16

required :workspace_id, String

#workspace_role ⇒ Symbol, Anthropic::Models::Organization::WorkspaceRole

New workspace role for the User.

Parameters:

  • value (Anthropic::Models::Organization::workspace_role)

Returns:



28
# File 'lib/anthropic/models/organization/workspaces/member_update_params.rb', line 28

required :workspace_role, enum: -> { Anthropic::Organization::WorkspaceRole }

Instance Method Details

#to_hash ⇒ { workspace_id: String, user_id: String, workspace_role: Anthropic::Models::Organization::workspace_role, request_options: Anthropic::RequestOptions }

Returns:

  • ({ workspace_id: String, user_id: String, workspace_role: Anthropic::Models::Organization::workspace_role, request_options: Anthropic::RequestOptions })


30
31
32
33
34
35
# File 'sig/anthropic/models/organization/workspaces/member_update_params.rbs', line 30

def to_hash: -> {
  workspace_id: String,
  user_id: String,
  workspace_role: Anthropic::Models::Organization::workspace_role,
  request_options: Anthropic::RequestOptions
}