Class BetaPluginContentScan
-
- All Implemented Interfaces:
public final class BetaPluginContentScan
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaPluginContentScan.BuilderA builder for BetaPluginContentScan.
public final classBetaPluginContentScan.AssessmentThe scan's verdict; set only when
statusiscompleted. Awarncan mean afailthat was allowed in claude.ai.public final classBetaPluginContentScan.Statusprocessingwhile a scan runs,completedwhen it ran to completion,erroredwhen it could not run. Once a scan of the version has completed,content_scandescribes the newest completed scan, even while a later scan runs. While the scan outcome cannot be read,statusiserroredinstead.
-
Method Summary
Modifier and Type Method Description final Optional<BetaPluginContentScan.Assessment>assessment()The scan's verdict; set only when statusiscompleted.final Optional<String>reason()The primary mechanism behind a warnorfail, such ascredential-exposureorguardrail-tampering; a mechanism this API does not yet name reads asother.final BetaPluginContentScan.Statusstatus()processingwhile a scan runs,completedwhen it ran to completion,erroredwhen it could not run.final JsonField<BetaPluginContentScan.Assessment>_assessment()Returns the raw JSON value of assessment. final JsonField<String>_reason()Returns the raw JSON value of reason. final JsonField<BetaPluginContentScan.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final BetaPluginContentScan.BuildertoBuilder()final BetaPluginContentScanvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaPluginContentScan.Builderbuilder()Returns a mutable builder for constructing an instance of BetaPluginContentScan. -
-
Method Detail
-
assessment
final Optional<BetaPluginContentScan.Assessment> assessment()
The scan's verdict; set only when
statusiscompleted. Awarncan mean afailthat was allowed in claude.ai.
-
reason
final Optional<String> reason()
The primary mechanism behind a
warnorfail, such ascredential-exposureorguardrail-tampering; a mechanism this API does not yet name reads asother. Readstatusfirst: on anerroredscan 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 apass, 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.
-
status
final BetaPluginContentScan.Status status()
processingwhile a scan runs,completedwhen it ran to completion,erroredwhen it could not run. Once a scan of the version has completed,content_scandescribes the newest completed scan, even while a later scan runs. While the scan outcome cannot be read,statusiserroredinstead.
-
_assessment
final JsonField<BetaPluginContentScan.Assessment> _assessment()
Returns the raw JSON value of assessment.
Unlike assessment, this method doesn't throw if the JSON field has an unexpected type.
-
_reason
final JsonField<String> _reason()
Returns the raw JSON value of reason.
Unlike reason, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<BetaPluginContentScan.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaPluginContentScan.Builder toBuilder()
-
validate
final BetaPluginContentScan validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaPluginContentScan.Builder builder()
Returns a mutable builder for constructing an instance of BetaPluginContentScan.
The following fields are required:
.assessment() .reason() .status()
-
-
-
-