Class BetaPluginMarketplace
-
- All Implemented Interfaces:
public final class BetaPluginMarketplace
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaPluginMarketplace.BuilderA builder for BetaPluginMarketplace.
public final classBetaPluginMarketplace.DefaultInstallationPreferenceOrganization plugin marketplace: the organization-wide setting every Plugin in it with no setting of its own gets. Null for a member's personal plugin marketplace. One of
required,auto_install,available,not_available; a value this API does not yet name is returned as stored.public final classBetaPluginMarketplace.OwnerThe organization, or the member whose personal plugin marketplace it is.
public final classBetaPluginMarketplace.SourceWhere the plugin marketplace's Plugins come from:
manualwhen they are uploaded;github,gitlaborpublic_gitwhen they are synchronized from the Git repository the owner connected, into which nothing can be uploaded;directoryis Anthropic's own catalog, which this API does not list. A value this API does not yet name is returned as stored.public final classBetaPluginMarketplace.SyncStatusOutcome of the plugin marketplace's most recent synchronization: one of
success,in_progress,failed_content,failed_transient,failed_auth,failed_limits; a value this API does not yet name is returned as stored. Null until a synchronization is first attempted — so always for amanualplugin marketplace.
-
Method Summary
Modifier and Type Method Description final Stringid()The plugin marketplace's ID, prefixed marketplace_.final OffsetDateTimecreatedAt()RFC 3339. final Optional<BetaPluginMarketplace.DefaultInstallationPreference>defaultInstallationPreference()Organization plugin marketplace: the organization-wide setting every Plugin in it with no setting of its own gets. final Optional<OffsetDateTime>lastSyncEndedAt()RFC 3339. final Optional<String>lastSyncReadSha()The commit the last synchronization attempt that reached the repository read, whether or not its content was then accepted (see sync_status); an attempt that endsfailed_authorfailed_transientleaves it unchanged.final Stringname()Fixed for the plugin marketplace's lifetime. final BetaPluginMarketplace.Ownerowner()The organization, or the member whose personal plugin marketplace it is. final BetaPluginMarketplace.Sourcesource()Where the plugin marketplace's Plugins come from: manualwhen they are uploaded;github,gitlaborpublic_gitwhen they are synchronized from the Git repository the owner connected, into which nothing can be uploaded;directoryis Anthropic's own catalog, which this API does not list.final Optional<BetaPluginMarketplace.SyncStatus>syncStatus()Outcome of the plugin marketplace's most recent synchronization: one of success,in_progress,failed_content,failed_transient,failed_auth,failed_limits; a value this API does not yet name is returned as stored.final JsonValue_type()Always plugin_marketplace.final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<BetaPluginMarketplace.DefaultInstallationPreference>_defaultInstallationPreference()Returns the raw JSON value of defaultInstallationPreference. final JsonField<OffsetDateTime>_lastSyncEndedAt()Returns the raw JSON value of lastSyncEndedAt. final JsonField<String>_lastSyncReadSha()Returns the raw JSON value of lastSyncReadSha. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<BetaPluginMarketplace.Owner>_owner()Returns the raw JSON value of owner. final JsonField<BetaPluginMarketplace.Source>_source()Returns the raw JSON value of source. final JsonField<BetaPluginMarketplace.SyncStatus>_syncStatus()Returns the raw JSON value of syncStatus. final Map<String, JsonValue>_additionalProperties()final BetaPluginMarketplace.BuildertoBuilder()final BetaPluginMarketplacevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaPluginMarketplace.Builderbuilder()Returns a mutable builder for constructing an instance of BetaPluginMarketplace. -
-
Method Detail
-
createdAt
final OffsetDateTime createdAt()
RFC 3339.
-
defaultInstallationPreference
final Optional<BetaPluginMarketplace.DefaultInstallationPreference> defaultInstallationPreference()
Organization plugin marketplace: the organization-wide setting every Plugin in it with no setting of its own gets. Null for a member's personal plugin marketplace. One of
required,auto_install,available,not_available; a value this API does not yet name is returned as stored.
-
lastSyncEndedAt
final Optional<OffsetDateTime> lastSyncEndedAt()
RFC 3339. When the most recent synchronization attempt to finish did so, whatever its outcome; for a repository plugin marketplace no synchronization has run on yet, when it was created. Null for a plugin marketplace that is not synchronized from a repository.
-
lastSyncReadSha
final Optional<String> lastSyncReadSha()
The commit the last synchronization attempt that reached the repository read, whether or not its content was then accepted (see
sync_status); an attempt that endsfailed_authorfailed_transientleaves it unchanged. Null until an attempt has first read the repository, and for a plugin marketplace that is not synchronized from a repository.
-
owner
final BetaPluginMarketplace.Owner owner()
The organization, or the member whose personal plugin marketplace it is.
-
source
final BetaPluginMarketplace.Source source()
Where the plugin marketplace's Plugins come from:
manualwhen they are uploaded;github,gitlaborpublic_gitwhen they are synchronized from the Git repository the owner connected, into which nothing can be uploaded;directoryis Anthropic's own catalog, which this API does not list. A value this API does not yet name is returned as stored.
-
syncStatus
final Optional<BetaPluginMarketplace.SyncStatus> syncStatus()
Outcome of the plugin marketplace's most recent synchronization: one of
success,in_progress,failed_content,failed_transient,failed_auth,failed_limits; a value this API does not yet name is returned as stored. Null until a synchronization is first attempted — so always for amanualplugin marketplace.
-
_type
final JsonValue _type()
Always
plugin_marketplace.Expected to always return the following:
JsonValue.from("plugin_marketplace")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_defaultInstallationPreference
final JsonField<BetaPluginMarketplace.DefaultInstallationPreference> _defaultInstallationPreference()
Returns the raw JSON value of defaultInstallationPreference.
Unlike defaultInstallationPreference, this method doesn't throw if the JSON field has an unexpected type.
-
_lastSyncEndedAt
final JsonField<OffsetDateTime> _lastSyncEndedAt()
Returns the raw JSON value of lastSyncEndedAt.
Unlike lastSyncEndedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_lastSyncReadSha
final JsonField<String> _lastSyncReadSha()
Returns the raw JSON value of lastSyncReadSha.
Unlike lastSyncReadSha, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_owner
final JsonField<BetaPluginMarketplace.Owner> _owner()
Returns the raw JSON value of owner.
Unlike owner, this method doesn't throw if the JSON field has an unexpected type.
-
_source
final JsonField<BetaPluginMarketplace.Source> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_syncStatus
final JsonField<BetaPluginMarketplace.SyncStatus> _syncStatus()
Returns the raw JSON value of syncStatus.
Unlike syncStatus, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaPluginMarketplace.Builder toBuilder()
-
validate
final BetaPluginMarketplace 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 BetaPluginMarketplace.Builder builder()
Returns a mutable builder for constructing an instance of BetaPluginMarketplace.
The following fields are required:
.id() .createdAt() .defaultInstallationPreference() .lastSyncEndedAt() .lastSyncReadSha() .name() .owner() .source() .syncStatus()
-
-
-
-