-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(provider): update docs definition
- Loading branch information
1 parent
ac9e198
commit b45af00
Showing
4 changed files
with
140 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "pinecone_collection Data Source - terraform-provider-pinecone" | ||
subcategory: "" | ||
description: |- | ||
A Pinecone collection | ||
- See Understanding collections https://docs.pinecone.io/docs/collections | ||
- See API Docs https://docs.pinecone.io/reference/describe_collection | ||
--- | ||
|
||
# pinecone_collection (Data Source) | ||
|
||
A Pinecone collection | ||
- See [Understanding collections](https://docs.pinecone.io/docs/collections) | ||
- See [API Docs](https://docs.pinecone.io/reference/describe_collection) | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the collection | ||
|
||
### Read-Only | ||
|
||
- `dimension` (Number) The dimension of the collection | ||
- `id` (String) Example identifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "pinecone Provider" | ||
subcategory: "" | ||
description: |- | ||
A Terraform provider for managing your pinecone.io https://www.pinecone.io/ infrastructure as code. | ||
Example Usage | ||
```hcl | ||
provider "pinecone" {} | ||
data "pinecone_collection" "existing-collection" { | ||
name = "testindex" | ||
} | ||
resource "pinecone_index" "my-first-index" { | ||
name = "testidx" | ||
metric = "cosine" | ||
pods = 1 | ||
sourcecollection = data.pineconecollection.existing-collection.name | ||
dimension = data.pinecone_collection.existing-collection.dimension | ||
} | ||
``` | ||
--- | ||
|
||
# pinecone Provider | ||
|
||
A Terraform provider for managing your [pinecone.io](https://www.pinecone.io/) infrastructure as code. | ||
|
||
## Example Usage | ||
```hcl | ||
provider "pinecone" {} | ||
data "pinecone_collection" "existing-collection" { | ||
name = "testindex" | ||
} | ||
resource "pinecone_index" "my-first-index" { | ||
name = "testidx" | ||
metric = "cosine" | ||
pods = 1 | ||
source_collection = data.pinecone_collection.existing-collection.name | ||
dimension = data.pinecone_collection.existing-collection.dimension | ||
} | ||
``` | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `apikey` (String, Sensitive) Will use the `PINECONE_API_KEY` environment variable if not set. | ||
- `environment` (String) Will use the `PINECONE_ENVIRONMENT` environment variable if not set. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "pinecone_index Resource - terraform-provider-pinecone" | ||
subcategory: "" | ||
description: |- | ||
Manages an index. | ||
--- | ||
|
||
# pinecone_index (Resource) | ||
|
||
Manages an index. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `dimension` (Number) The dimensions of the vectors to be inserted in the index | ||
- `name` (String) The name of the index to be created. The maximum length is 45 characters. | ||
|
||
### Optional | ||
|
||
- `metric` (String) The distance metric to be used for similarity search. You can use 'euclidean', 'cosine', or 'dotproduct'. | ||
- `pods` (Number) The number of pods for the index to use,including replicas. | ||
- `replicas` (Number) The number of replicas. Replicas duplicate your index. They provide higher availability and throughput. | ||
- `source_collection` (String) The name of the collection to create an index from | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Service generated identifier. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters