Skip to content

Commit e5f79bb

Browse files
authored
Clean up README (#146)
## Problem Clean up README ## Solution Fix grammar and add some imports for clarity ## Type of Change - [X] Non-code change (docs, etc) ## Test Plan NA
1 parent c50d9a6 commit e5f79bb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ serverless and regional availability, see [Understanding indexes](https://docs.p
9393
```java
9494
import io.pinecone.clients.Pinecone;
9595
import org.openapitools.client.model.IndexModel;
96+
import org.openapitools.control.client.model.DeletionProtection;
9697

9798
...
9899

@@ -114,6 +115,8 @@ The following is a minimal example of creating a pod-based index. For all the po
114115
```java
115116
import io.pinecone.clients.Pinecone;
116117
import org.openapitools.client.model.IndexModel;
118+
import org.openapitools.control.client.model.DeletionProtection;
119+
117120
...
118121

119122
Pinecone pinecone = new Pinecone.Builder("PINECONE_API_KEY").build();
@@ -134,6 +137,7 @@ configuration options, see `main/java/io/pinecone/clients/Pinecone.java`.
134137
```java
135138
import io.pinecone.clients.Pinecone;
136139
import org.openapitools.client.model.IndexModel;
140+
import org.openapitools.control.client.model.DeletionProtection;
137141
...
138142

139143
Pinecone pinecone = new Pinecone.Builder("PINECONE_API_KEY").build();
@@ -206,7 +210,7 @@ pinecone.configurePodsIndex(indexName, podType, newNumberOfReplicas);
206210

207211
## Enable deletion protection for pod index
208212

209-
The following example enables deletion protection of a pod-based index.
213+
The following example enables deletion protection for a pod-based index.
210214

211215
```java
212216
import io.pinecone.clients.Pinecone;
@@ -219,7 +223,7 @@ pinecone.configurePodsIndex(indexName, DeletionProtection.ENABLED);
219223

220224
## Enable deletion protection for serverless index
221225

222-
The following example enables deletion protection of a serverless index.
226+
The following example enables deletion protection for a serverless index.
223227

224228
```java
225229
import io.pinecone.clients.Pinecone;

0 commit comments

Comments
 (0)