Class: Anthropic::Models::Beta::Organization::BetaPluginContentScan

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb,
sig/anthropic/models/beta/organization/beta_plugin_content_scan.rbs

Defined Under Namespace

Modules: Assessment, Status

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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(assessment:, reason:, status:) ⇒ void

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



# File 'lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb', line 32

Instance Attribute Details

#assessment ⇒ Symbol, ...

The scan's verdict; set only when status is completed.



12
13
14
# File 'lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb', line 12

required :assessment,
enum: -> { Anthropic::Beta::Organization::BetaPluginContentScan::Assessment },
nil?: true

#reason ⇒ String?

The primary mechanism behind a warn or fail, such as credential-exposure or guardrail-tampering; a mechanism this API does not yet name reads as other. Null on a pass, whenever assessment is null, and when no mechanism is reported for the verdict.



23
# File 'lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb', line 23

required :reason, String, nil?: true

#status ⇒ Symbol, Anthropic::Models::Beta::Organization::BetaPluginContentScan::Status

processing while a scan runs, completed when it ran to completion, errored when it could not run or its outcome cannot be read.



30
# File 'lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb', line 30

required :status, enum: -> { Anthropic::Beta::Organization::BetaPluginContentScan::Status }

Class Method Details

.values ⇒ Array<Symbol>



# File 'lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb', line 53

Instance Method Details

#to_hash ⇒ {



25
# File 'sig/anthropic/models/beta/organization/beta_plugin_content_scan.rbs', line 25

def to_hash: -> {