lib/anthropic/models/beta/messages/batch_cancel_params.rb (12 lines of code) (raw):
# frozen_string_literal: true
module Anthropic
module Models
module Beta
module Messages
# @see Anthropic::Resources::Beta::Messages::Batches#cancel
class BatchCancelParams < Anthropic::Internal::Type::BaseModel
# @!parse
# extend Anthropic::Internal::Type::RequestParameters::Converter
include Anthropic::Internal::Type::RequestParameters
# @!attribute [r] betas
# Optional header to specify the beta version(s) you want to use.
#
# @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>, nil]
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Models::AnthropicBeta] }
# @!parse
# # @return [Array<String, Symbol, Anthropic::Models::AnthropicBeta>]
# attr_writer :betas
# @!parse
# # @param betas [Array<String, Symbol, Anthropic::Models::AnthropicBeta>]
# # @param request_options [Anthropic::RequestOptions, Hash{Symbol=>Object}]
# #
# def initialize(betas: nil, request_options: {}, **) = super
# def initialize: (Hash | Anthropic::Internal::Type::BaseModel) -> void
end
end
end
end
end