@@ -93,6 +93,7 @@ serverless and regional availability, see [Understanding indexes](https://docs.p
93
93
``` java
94
94
import io.pinecone.clients.Pinecone ;
95
95
import org.openapitools.client.model.IndexModel ;
96
+ import org.openapitools.control.client.model.DeletionProtection ;
96
97
97
98
...
98
99
@@ -114,6 +115,8 @@ The following is a minimal example of creating a pod-based index. For all the po
114
115
``` java
115
116
import io.pinecone.clients.Pinecone ;
116
117
import org.openapitools.client.model.IndexModel ;
118
+ import org.openapitools.control.client.model.DeletionProtection ;
119
+
117
120
...
118
121
119
122
Pinecone pinecone = new Pinecone .Builder (" PINECONE_API_KEY" ). build();
@@ -134,6 +137,7 @@ configuration options, see `main/java/io/pinecone/clients/Pinecone.java`.
134
137
``` java
135
138
import io.pinecone.clients.Pinecone ;
136
139
import org.openapitools.client.model.IndexModel ;
140
+ import org.openapitools.control.client.model.DeletionProtection ;
137
141
...
138
142
139
143
Pinecone pinecone = new Pinecone .Builder (" PINECONE_API_KEY" ). build();
@@ -206,7 +210,7 @@ pinecone.configurePodsIndex(indexName, podType, newNumberOfReplicas);
206
210
207
211
## Enable deletion protection for pod index
208
212
209
- The following example enables deletion protection of a pod-based index.
213
+ The following example enables deletion protection for a pod-based index.
210
214
211
215
``` java
212
216
import io.pinecone.clients.Pinecone ;
@@ -219,7 +223,7 @@ pinecone.configurePodsIndex(indexName, DeletionProtection.ENABLED);
219
223
220
224
## Enable deletion protection for serverless index
221
225
222
- The following example enables deletion protection of a serverless index.
226
+ The following example enables deletion protection for a serverless index.
223
227
224
228
``` java
225
229
import io.pinecone.clients.Pinecone ;
0 commit comments