Class PluginCreateParams.Body
-
- All Implemented Interfaces:
public final class PluginCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPluginCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final List<InputStream>files()The version's files: one part per file, the part's filename being the file's path within the Plugin (for example skills/review-pr/SKILL.md), or a single.zipor.pluginarchive holding them all.final Optional<String>marketplaceId()ID of the organization-owned plugin marketplace to create the Plugin in (prefixed marketplace_).final Optional<String>releaseNotes()Release notes stored with the version and shown in its version history in claude.ai; up to 5,000 characters. final MultipartField<List<InputStream>>_files()Returns the raw multipart value of files. final MultipartField<String>_marketplaceId()Returns the raw multipart value of marketplaceId. final MultipartField<String>_releaseNotes()Returns the raw multipart value of releaseNotes. final Map<String, JsonValue>_additionalProperties()final PluginCreateParams.Body.BuildertoBuilder()final PluginCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static PluginCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. final static PluginCreateParams.Bodyof(List<InputStream> files)Returns an immutable instance of Body with the required files set to the given value. -
-
Method Detail
-
files
final List<InputStream> files()
The version's files: one part per file, the part's filename being the file's path within the Plugin (for example
skills/review-pr/SKILL.md), or a single.zipor.pluginarchive holding them all. On the wire each part is namedfiles[], and a part named plainfilesis not read; with cURL,-F 'files[]=@SKILL.md;filename=skills/review-pr/SKILL.md'. The files must include the manifest,.claude-plugin/plugin.json.
-
marketplaceId
final Optional<String> marketplaceId()
ID of the organization-owned plugin marketplace to create the Plugin in (prefixed
marketplace_). It must be amanualmarketplace, one whose Plugins are uploaded rather than synchronized from a repository. When omitted, the Plugin is created in the organization's library marketplace, an organization-ownedmanualmarketplace created on first use.
-
releaseNotes
final Optional<String> releaseNotes()
Release notes stored with the version and shown in its version history in claude.ai; up to 5,000 characters.
-
_files
final MultipartField<List<InputStream>> _files()
Returns the raw multipart value of files.
Unlike files, this method doesn't throw if the multipart field has an unexpected type.
-
_marketplaceId
final MultipartField<String> _marketplaceId()
Returns the raw multipart value of marketplaceId.
Unlike marketplaceId, this method doesn't throw if the multipart field has an unexpected type.
-
_releaseNotes
final MultipartField<String> _releaseNotes()
Returns the raw multipart value of releaseNotes.
Unlike releaseNotes, this method doesn't throw if the multipart field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final PluginCreateParams.Body.Builder toBuilder()
-
validate
final PluginCreateParams.Body 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 PluginCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.files()
-
of
final static PluginCreateParams.Body of(List<InputStream> files)
-
-
-
-