Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Pinecone.Backups
Contents
Description
Backups
Synopsis
- newtype Collection = Collection {}
- data Collections = Collections {
- collections :: Vector CollectionModel
- data CreateCollection = CreateCollection {}
- _CreateCollection :: CreateCollection
- data CollectionModel = CollectionModel {
- name :: Collection
- status :: Status
- environment :: Text
- size :: Maybe Natural
- dimension :: Maybe Natural
- vector_count :: Maybe Natural
- data Status
- type API = "collections" :> (Get '[JSON] Collections :<|> ((ReqBody '[JSON] CreateCollection :> Post '[JSON] CollectionModel) :<|> ((Capture "collection_name" Collection :> Get '[JSON] CollectionModel) :<|> (Capture "collection_name" Collection :> DeleteAccepted '[JSON] NoContent))))
Main types
newtype Collection Source #
The name of the collection
Constructors
Collection | |
Instances
FromJSON Collection Source # | |
Defined in Pinecone.Backups | |
ToJSON Collection Source # | |
Defined in Pinecone.Backups Methods toJSON :: Collection -> Value # toEncoding :: Collection -> Encoding # toJSONList :: [Collection] -> Value # toEncodingList :: [Collection] -> Encoding # omitField :: Collection -> Bool # | |
IsString Collection Source # | |
Defined in Pinecone.Backups Methods fromString :: String -> Collection # | |
Show Collection Source # | |
Defined in Pinecone.Backups Methods showsPrec :: Int -> Collection -> ShowS # show :: Collection -> String # showList :: [Collection] -> ShowS # | |
Eq Collection Source # | |
Defined in Pinecone.Backups | |
ToHttpApiData Collection Source # | |
Defined in Pinecone.Backups Methods toUrlPiece :: Collection -> Text # toEncodedUrlPiece :: Collection -> Builder # toHeader :: Collection -> ByteString # toQueryParam :: Collection -> Text # |
data Collections Source #
The list of collections that exist in the project.
Constructors
Collections | |
Fields
|
Instances
FromJSON Collections Source # | |
Defined in Pinecone.Backups | |
ToJSON Collections Source # | |
Defined in Pinecone.Backups Methods toJSON :: Collections -> Value # toEncoding :: Collections -> Encoding # toJSONList :: [Collections] -> Value # toEncodingList :: [Collections] -> Encoding # omitField :: Collections -> Bool # | |
Generic Collections Source # | |
Defined in Pinecone.Backups Associated Types type Rep Collections :: Type -> Type # | |
Show Collections Source # | |
Defined in Pinecone.Backups Methods showsPrec :: Int -> Collections -> ShowS # show :: Collections -> String # showList :: [Collections] -> ShowS # | |
Eq Collections Source # | |
Defined in Pinecone.Backups | |
type Rep Collections Source # | |
Defined in Pinecone.Backups type Rep Collections = D1 ('MetaData "Collections" "Pinecone.Backups" "pinecone-1.0.0-Ex4c0YruToKASgnObHGBW7" 'False) (C1 ('MetaCons "Collections" 'PrefixI 'True) (S1 ('MetaSel ('Just "collections") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector CollectionModel)))) |
data CreateCollection Source #
The configuration needed to create a Pinecone collection.
Constructors
CreateCollection | |
Instances
_CreateCollection :: CreateCollection Source #
Default CreateCollection
data CollectionModel Source #
The CollectionModel describes the configuration and status of a Pinecone collection.
Constructors
CollectionModel | |
Fields
|
Instances
Other types
The status of the operation.
Constructors
Initializing | |
Ready | |
Terminating |
Instances
FromJSON Status Source # | |
Defined in Pinecone.Backups | |
ToJSON Status Source # | |
Generic Status Source # | |
Show Status Source # | |
Eq Status Source # | |
type Rep Status Source # | |
Defined in Pinecone.Backups type Rep Status = D1 ('MetaData "Status" "Pinecone.Backups" "pinecone-1.0.0-Ex4c0YruToKASgnObHGBW7" 'False) (C1 ('MetaCons "Initializing" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Ready" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Terminating" 'PrefixI 'False) (U1 :: Type -> Type))) |
Servant
type API = "collections" :> (Get '[JSON] Collections :<|> ((ReqBody '[JSON] CreateCollection :> Post '[JSON] CollectionModel) :<|> ((Capture "collection_name" Collection :> Get '[JSON] CollectionModel) :<|> (Capture "collection_name" Collection :> DeleteAccepted '[JSON] NoContent)))) Source #
Servant API