Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Pinecone.Imports
Contents
Description
Imports
Synopsis
- newtype Import = Import {}
- data StartImport = StartImport {}
- _StartImport :: StartImport
- data StartImportResponse = StartImportResponse {}
- data Imports = ListImport {
- data_ :: Vector ImportModel
- pagination :: Maybe Pagination
- data ImportModel = ImportModel {}
- data ErrorMode = ErrorMode {}
- data OnError
- data Status
- type API = "bulk" :> ("imports" :> ((ReqBody '[JSON] StartImport :> Post '[JSON] StartImportResponse) :<|> ((QueryParam "limit" Natural :> (QueryParam "paginationToken" Text :> Get '[JSON] Imports)) :<|> ((Capture "id" Import :> Get '[JSON] ImportModel) :<|> (Capture "id" Import :> Delete '[JSON] NoContent)))))
Main types
Unique identifier for the import operation
Instances
FromJSON Import Source # | |
Defined in Pinecone.Imports | |
ToJSON Import Source # | |
IsString Import Source # | |
Defined in Pinecone.Imports Methods fromString :: String -> Import # | |
Show Import Source # | |
Eq Import Source # | |
ToHttpApiData Import Source # | |
Defined in Pinecone.Imports Methods toUrlPiece :: Import -> Text # toEncodedUrlPiece :: Import -> Builder # toHeader :: Import -> ByteString # toQueryParam :: Import -> Text # toEncodedQueryParam :: Import -> Builder # |
data StartImport Source #
Request body for /bulk/imports
Constructors
StartImport | |
Instances
_StartImport :: StartImport Source #
Default StartImport
data StartImportResponse Source #
Response body for /bulk/imports
Constructors
StartImportResponse | |
Instances
A list of import operations
Constructors
ListImport | |
Fields
|
Instances
FromJSON Imports Source # | |
Defined in Pinecone.Imports | |
ToJSON Imports Source # | |
Generic Imports Source # | |
Show Imports Source # | |
Eq Imports Source # | |
type Rep Imports Source # | |
Defined in Pinecone.Imports type Rep Imports = D1 ('MetaData "Imports" "Pinecone.Imports" "pinecone-1.0.0-Ex4c0YruToKASgnObHGBW7" 'False) (C1 ('MetaCons "ListImport" 'PrefixI 'True) (S1 ('MetaSel ('Just "data_") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector ImportModel)) :*: S1 ('MetaSel ('Just "pagination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Pagination)))) |
data ImportModel Source #
The model for an import operation.
Constructors
ImportModel | |
Instances
Other types
Indicates how to respond to errors during the import process.
Indicates how to respond to errors during the import process.
The status of the operation.
Constructors
Pending | |
InProgress | |
Failed | |
Completed | |
Cancelled |
Instances
FromJSON Status Source # | |
Defined in Pinecone.Imports | |
ToJSON Status Source # | |
Generic Status Source # | |
Show Status Source # | |
Eq Status Source # | |
type Rep Status Source # | |
Defined in Pinecone.Imports type Rep Status = D1 ('MetaData "Status" "Pinecone.Imports" "pinecone-1.0.0-Ex4c0YruToKASgnObHGBW7" 'False) ((C1 ('MetaCons "Pending" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "InProgress" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Failed" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Completed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Cancelled" 'PrefixI 'False) (U1 :: Type -> Type)))) |
Servant
type API = "bulk" :> ("imports" :> ((ReqBody '[JSON] StartImport :> Post '[JSON] StartImportResponse) :<|> ((QueryParam "limit" Natural :> (QueryParam "paginationToken" Text :> Get '[JSON] Imports)) :<|> ((Capture "id" Import :> Get '[JSON] ImportModel) :<|> (Capture "id" Import :> Delete '[JSON] NoContent))))) Source #
Servant API