Class: Anthropic::Models::Organization::SpendLimits::IncreaseRequestListParams

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

Overview

See Also:

  • Anthropic::Resources::Organization::SpendLimits::IncreaseRequests#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(actor_ids: nil, limit: nil, page: nil, status: nil, request_options: {}) ⇒ IncreaseRequestListParams

Returns a new instance of IncreaseRequestListParams.

Parameters:

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

    Filter by requester, as user_... tagged IDs.

  • limit (Integer) (defaults to: nil)
  • page (String, nil) (defaults to: nil) —

    Opaque cursor from a previous response's next_page.

  • status (Array<Symbol, Anthropic::Models::Organization::SpendLimits::SpendLimitIncreaseRequestStatus>, nil) (defaults to: nil) —

    Filter by status. Omit to return all.

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • actor_ids: (::Array[String], nil) (defaults to: nil)
  • limit: (Integer) (defaults to: nil)
  • page: (String, nil) (defaults to: nil)
  • status: (::Array[Anthropic::Models::Organization::SpendLimits::spend_limit_increase_request_status], nil) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/organization/spend_limits/increase_request_list_params.rb', line 39

Instance Attribute Details

#actor_ids ⇒ Array<String>?

Filter by requester, as user_... tagged IDs.

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


16
# File 'lib/anthropic/models/organization/spend_limits/increase_request_list_params.rb', line 16

optional :actor_ids, Anthropic::Internal::Type::ArrayOf[String], nil?: true

#limit ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


21
# File 'lib/anthropic/models/organization/spend_limits/increase_request_list_params.rb', line 21

optional :limit, Integer

#page ⇒ String?

Opaque cursor from a previous response's next_page.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :page, String, nil?: true

#status ⇒ Array<Symbol, Anthropic::Models::Organization::SpendLimits::SpendLimitIncreaseRequestStatus>?

Filter by status. Omit to return all.

Parameters:

  • value (::Array[Anthropic::Models::Organization::SpendLimits::spend_limit_increase_request_status], nil)

Returns:



33
34
35
36
37
# File 'lib/anthropic/models/organization/spend_limits/increase_request_list_params.rb', line 33

optional :status,
-> {
  Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Organization::SpendLimits::SpendLimitIncreaseRequestStatus]
},
nil?: true

Instance Method Details

#to_hash ⇒ { actor_ids: ::Array[String]?, limit: Integer, page: String?, status: ::Array[Anthropic::Models::Organization::SpendLimits::spend_limit_increase_request_status]?, request_options: Anthropic::RequestOptions }

Returns:

  • ({ actor_ids: ::Array[String]?, limit: Integer, page: String?, status: ::Array[Anthropic::Models::Organization::SpendLimits::spend_limit_increase_request_status]?, request_options: Anthropic::RequestOptions })


36
37
38
39
40
41
42
# File 'sig/anthropic/models/organization/spend_limits/increase_request_list_params.rbs', line 36

def to_hash: -> {
  actor_ids: ::Array[String]?,
  limit: Integer,
  page: String?,
  status: ::Array[Anthropic::Models::Organization::SpendLimits::spend_limit_increase_request_status]?,
  request_options: Anthropic::RequestOptions
}