Class: Anthropic::Models::Organization::InviteCreateParams

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

Overview

See Also:

  • Anthropic::Resources::Organization::Invites#create

Defined Under Namespace

Modules: Role

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(email:, role:, rbac_group_ids: nil, request_options: {}) ⇒ InviteCreateParams

Some parameter documentations has been truncated, see Anthropic::Models::Organization::InviteCreateParams for more details.

Parameters:

  • email (String) —

    Email of the User.

  • role (Symbol, Anthropic::Models::Organization::InviteCreateParams::Role) —

    Role for the invited User.

  • rbac_group_ids (Array<String>) (defaults to: nil) —

    RBAC group IDs to assign to the User when the Invite is accepted. A non-empty ar

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • email: (String)
  • role: (Anthropic::Models::Organization::InviteCreateParams::role)
  • rbac_group_ids: (::Array[String]) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/organization/invite_create_params.rb', line 37

Instance Attribute Details

#email ⇒ String

Email of the User.

Parameters:

  • value (String)

Returns:

  • (String)


15
# File 'lib/anthropic/models/organization/invite_create_params.rb', line 15

required :email, String

#rbac_group_ids ⇒ Array<String>?

RBAC group IDs to assign to the User when the Invite is accepted. A non-empty array is accepted only for a Claude Enterprise organization with RBAC groups, and requires the key to carry the write:rbac_groups scope.

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


35
# File 'lib/anthropic/models/organization/invite_create_params.rb', line 35

optional :rbac_group_ids, Anthropic::Internal::Type::ArrayOf[String]

#role ⇒ Symbol, Anthropic::Models::Organization::InviteCreateParams::Role

Role for the invited User.

The accepted values depend on the organization type. Console and API organizations accept user, developer, billing, and claude_code_user; admin cannot be assigned through the API. Claude Enterprise organizations accept user and managed; inviting with the managed role requires the write:rbac_groups scope in addition to write:members.

Parameters:

  • value (Anthropic::Models::Organization::InviteCreateParams::role)

Returns:



27
# File 'lib/anthropic/models/organization/invite_create_params.rb', line 27

required :role, enum: -> { Anthropic::Organization::InviteCreateParams::Role }

Instance Method Details

#to_hash ⇒ { email: String, role: Anthropic::Models::Organization::InviteCreateParams::role, rbac_group_ids: ::Array[String], request_options: Anthropic::RequestOptions }

Returns:

  • ({ email: String, role: Anthropic::Models::Organization::InviteCreateParams::role, rbac_group_ids: ::Array[String], request_options: Anthropic::RequestOptions })


31
32
33
34
35
36
# File 'sig/anthropic/models/organization/invite_create_params.rbs', line 31

def to_hash: -> {
  email: String,
  role: Anthropic::Models::Organization::InviteCreateParams::role,
  rbac_group_ids: ::Array[String],
  request_options: Anthropic::RequestOptions
}