Class: Anthropic::Models::UserProfileListParams

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

Overview

See Also:

  • Anthropic::Resources::UserProfiles#list

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(enforcement_status: nil, limit: nil, order: nil, order_by: nil, page: nil, workspace_id: nil, request_options: {}) ⇒ UserProfileListParams

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

Parameters:

  • enforcement_status (Array<Symbol, Anthropic::Models::UserProfileEnforcementStatus>) (defaults to: nil) —

    Return only the user profiles whose enforcement_status is one of these values:

  • limit (Integer) (defaults to: nil) —

    The maximum number of user profiles to return, from 1 to 100. Defaults to 20.

  • order (Symbol, Anthropic::Models::UserProfileListOrder) (defaults to: nil) —

    The sort direction, applied to the field that order_by selects. Defaults to

  • order_by (Symbol, Anthropic::Models::UserProfileListOrderBy) (defaults to: nil) —

    The field to sort user profiles by, in the direction that order sets. Defaults

  • page (String) (defaults to: nil) —

    The cursor for the page to return, taken from next_page in a previous response

  • workspace_id (String) (defaults to: nil) —

    Optional header to select the Workspace for this request. The value is a Workspa

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • enforcement_status: (::Array[Anthropic::Models::user_profile_enforcement_status]) (defaults to: nil)
  • limit: (Integer) (defaults to: nil)
  • order: (Anthropic::Models::user_profile_list_order) (defaults to: nil)
  • order_by: (Anthropic::Models::user_profile_list_order_by) (defaults to: nil)
  • page: (String) (defaults to: nil)
  • workspace_id: (String) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/user_profile_list_params.rb', line 64

Instance Attribute Details

#enforcement_status ⇒ Array<Symbol, Anthropic::Models::UserProfileEnforcementStatus>?

Return only the user profiles whose enforcement_status is one of these values: unrestricted, pending, restricted or banned. Repeat the parameter to match any of several. With it set, a page may hold fewer than limit profiles, or none, and still carry a next_page: the service examines a bounded number of profiles per request, and only a null next_page means the listing is complete. Rejected with invalid_request_error under the user-profiles-2026-09-04 and earlier beta headers. Fails with overloaded_error when a profile's enforcement actions cannot be read for the moment.

Parameters:

  • (::Array[Anthropic::Models::user_profile_enforcement_status])

Returns:



21
22
# File 'lib/anthropic/models/user_profile_list_params.rb', line 21

optional :enforcement_status,
-> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::UserProfileEnforcementStatus] }

#limit ⇒ Integer?

The maximum number of user profiles to return, from 1 to 100. Defaults to 20.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


28
# File 'lib/anthropic/models/user_profile_list_params.rb', line 28

optional :limit, Integer

#order ⇒ Symbol, ...

The sort direction, applied to the field that order_by selects. Defaults to desc.

Parameters:

  • (Anthropic::Models::user_profile_list_order)

Returns:



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

optional :order, enum: -> { Anthropic::UserProfileListOrder }

#order_by ⇒ Symbol, ...

The field to sort user profiles by, in the direction that order sets. Defaults to created_at.

Parameters:

  • (Anthropic::Models::user_profile_list_order_by)

Returns:



42
# File 'lib/anthropic/models/user_profile_list_params.rb', line 42

optional :order_by, enum: -> { Anthropic::UserProfileListOrderBy }

#page ⇒ String?

The cursor for the page to return, taken from next_page in a previous response.

Leave it out to get the first page.

Parameters:

  • (String)

Returns:

  • (String, nil)


51
# File 'lib/anthropic/models/user_profile_list_params.rb', line 51

optional :page, String

#workspace_id ⇒ String?

Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

Parameters:

  • (String)

Returns:

  • (String, nil)


62
# File 'lib/anthropic/models/user_profile_list_params.rb', line 62

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status], limit: Integer, order: Anthropic::Models::user_profile_list_order, order_by: Anthropic::Models::user_profile_list_order_by, page: String, workspace_id: String, request_options: Anthropic::RequestOptions }

Returns:

  • ({ enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status], limit: Integer, order: Anthropic::Models::user_profile_list_order, order_by: Anthropic::Models::user_profile_list_order_by, page: String, workspace_id: String, request_options: Anthropic::RequestOptions })


58
59
60
61
62
63
64
65
66
# File 'sig/anthropic/models/user_profile_list_params.rbs', line 58

def to_hash: -> {
  enforcement_status: ::Array[Anthropic::Models::user_profile_enforcement_status],
  limit: Integer,
  order: Anthropic::Models::user_profile_list_order,
  order_by: Anthropic::Models::user_profile_list_order_by,
  page: String,
  workspace_id: String,
  request_options: Anthropic::RequestOptions
}