Class: Anthropic::Models::Beta::Organization::BetaPluginContentScan
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::BetaPluginContentScan
- 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
-
#assessment ⇒ Symbol, ...
The scan's verdict; set only when
statusiscompleted. -
#reason ⇒ String?
The primary mechanism behind a
warnorfail, such ascredential-exposureorguardrail-tampering; a mechanism this API does not yet name reads asother. -
#status ⇒ Symbol, Anthropic::Models::Beta::Organization::BetaPluginContentScan::Status
processingwhile a scan runs,completedwhen it ran to completion,erroredwhen it could not run.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(assessment:, reason:, status:) ⇒ BetaPluginContentScan
constructor
Some parameter documentations has been truncated, see BetaPluginContentScan for more details.
- #to_hash ⇒ { assessment: Anthropic::Models::Beta::Organization::BetaPluginContentScan::assessment?, reason: String?, status: Anthropic::Models::Beta::Organization::BetaPluginContentScan::status }
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:) ⇒ BetaPluginContentScan
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 44
|
Instance Attribute Details
#assessment ⇒ Symbol, ...
The scan's verdict; set only when status is completed. A warn can mean a
fail that was allowed in claude.ai.
13 14 15 |
# File 'lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb', line 13 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. Read status first: on an errored scan it is not a finding but why
there is no verdict: scan-invalid-archive, the scan refused the version's
archive, or could not process it, before checking what its files say, and
running it again will not help, so change the files and store a new version;
scan-did-not-finish, the scan did not finish or its result is no longer
available, so retry the scan in claude.ai if it offers a retry;
scan-unavailable, the scan could not run or its result cannot be read right
now, so read the version again later, then retry the scan in claude.ai if it
offers a retry. If these steps do not help, contact support. Null on a pass,
while a scan runs, and when no mechanism is reported for the verdict. On an
errored scan, null means that a compliance configuration ruled out the scan.
33 |
# File 'lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb', line 33 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. Once a scan of the version has completed, content_scan
describes the newest completed scan, even while a later scan runs. While the
scan outcome cannot be read, status is errored instead.
42 |
# File 'lib/anthropic/models/beta/organization/beta_plugin_content_scan.rb', line 42 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 66
|
Instance Method Details
#to_hash ⇒ { assessment: Anthropic::Models::Beta::Organization::BetaPluginContentScan::assessment?, reason: String?, status: Anthropic::Models::Beta::Organization::BetaPluginContentScan::status }
25 26 27 28 29 |
# File 'sig/anthropic/models/beta/organization/beta_plugin_content_scan.rbs', line 25
def to_hash: -> {
assessment: Anthropic::Models::Beta::Organization::BetaPluginContentScan::assessment?,
reason: String?,
status: Anthropic::Models::Beta::Organization::BetaPluginContentScan::status
}
|