Class: Anthropic::Models::UserProfileListParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::UserProfileListParams
- 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
Instance Attribute Summary collapse
-
#enforcement_status ⇒ Array<Symbol, Anthropic::Models::UserProfileEnforcementStatus>?
Return only the user profiles whose
enforcement_statusis one of these values:unrestricted,pending,restrictedorbanned. -
#limit ⇒ Integer?
The maximum number of user profiles to return, from 1 to 100.
-
#order ⇒ Symbol, ...
The sort direction, applied to the field that
order_byselects. -
#order_by ⇒ Symbol, ...
The field to sort user profiles by, in the direction that
ordersets. -
#page ⇒ String?
The cursor for the page to return, taken from
next_pagein a previous response. -
#workspace_id ⇒ String?
Optional header to select the Workspace for this request.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(enforcement_status: nil, limit: nil, order: nil, order_by: nil, page: nil, workspace_id: nil, request_options: {}) ⇒ UserProfileListParams
constructor
Some parameter documentations has been truncated, see UserProfileListParams for more 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 }
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(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.
|
|
# 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.
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.
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.
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.
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.
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.
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 }
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
}
|