9 namespace pinecone::domain
39 vector_describe_index_stats,
68 case operation_type::actions_whoami:
69 case operation_type::index_create:
70 case operation_type::index_list:
71 case operation_type::index_configure:
72 case operation_type::index_describe:
73 case operation_type::index_delete:
74 case operation_type::collection_create:
75 case operation_type::collection_list:
76 case operation_type::collection_describe:
77 case operation_type::collection_delete:
78 return api_type::controller;
79 case operation_type::vector_upsert:
80 case operation_type::vector_update:
81 case operation_type::vector_query:
82 case operation_type::vector_fetch:
83 case operation_type::vector_describe_index_stats:
84 case operation_type::vector_delete:
85 return api_type::service;
98 case operation_type::actions_whoami:
99 return "/actions/whoami";
100 case operation_type::index_create:
101 case operation_type::index_list:
103 case operation_type::index_configure:
104 case operation_type::index_describe:
105 case operation_type::index_delete:
106 return "/databases/";
107 case operation_type::collection_create:
108 case operation_type::collection_list:
109 return "/collections";
110 case operation_type::collection_describe:
111 case operation_type::collection_delete:
112 return "/collections/";
113 case operation_type::vector_upsert:
114 return "/vectors/upsert";
115 case operation_type::vector_update:
116 return "/vectors/update";
117 case operation_type::vector_query:
119 case operation_type::vector_fetch:
120 return "/vectors/fetch";
121 case operation_type::vector_describe_index_stats:
122 return "/describe_index_stats";
123 case operation_type::vector_delete:
124 return "/vectors/delete";
137 case operation_type::index_create:
138 case operation_type::collection_create:
139 case operation_type::vector_upsert:
140 case operation_type::vector_update:
141 case operation_type::vector_query:
142 case operation_type::vector_describe_index_stats:
143 case operation_type::vector_delete:
145 case operation_type::actions_whoami:
146 case operation_type::index_list:
147 case operation_type::index_describe:
148 case operation_type::collection_list:
149 case operation_type::collection_describe:
150 case operation_type::vector_fetch:
152 case operation_type::index_configure:
153 return method::patch;
154 case operation_type::index_delete:
155 case operation_type::collection_delete:
method
The API methods supported by the Pinecone API.
constexpr auto op_url_fragment(operation_type op) -> char const *
Returns the URL specialization for an operation.
constexpr auto op_api_type(operation_type op) -> api_type
Returns the API type of an operation.
operation_type
All operation types exposed by the Pinecone REST API.
constexpr auto op_method(operation_type op) -> method
Returns the HTTP method for an operation.
api_type
The API types supported by the Pinecone REST API.