From cdd2787c557264f47f83419b3c292cfd58f3ded8 Mon Sep 17 00:00:00 2001 From: Simon Dahlbacka Date: Fri, 17 May 2024 00:41:23 +0300 Subject: [PATCH] generate newer and better docs --- docs/data-sources/item.md | 14 +++++++++++++- docs/resources/item.md | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/data-sources/item.md b/docs/data-sources/item.md index 4ecb8c29..c9eebec9 100644 --- a/docs/data-sources/item.md +++ b/docs/data-sources/item.md @@ -34,8 +34,9 @@ data "onepassword_item" "example" { ### Read-Only -- `category` (String) The category of the item. One of ["login" "password" "database" "secure_note"] +- `category` (String) The category of the item. One of ["login" "password" "database" "secure_note" "document"] - `database` (String) (Only applies to the database category) The name of the database. +- `file` (Block List) A list of files attached to the item. (see [below for nested schema](#nestedblock--file)) - `hostname` (String) (Only applies to the database category) The address where the database can be found - `id` (String) The Terraform resource identifier for this item in the format `vaults//items/`. - `password` (String, Sensitive) Password for this item. @@ -46,6 +47,17 @@ data "onepassword_item" "example" { - `url` (String) The primary URL for the item. - `username` (String) Username for this item. + +### Nested Schema for `file` + +Read-Only: + +- `content` (String, Sensitive) The content of the file. +- `content_base64` (String, Sensitive) The content of the file in base64 encoding. (Use this for binary files.) +- `id` (String) A UUID for the file. +- `name` (String) The name of the file. + + ### Nested Schema for `section` diff --git a/docs/resources/item.md b/docs/resources/item.md index f1bc440e..5aafe451 100644 --- a/docs/resources/item.md +++ b/docs/resources/item.md @@ -66,7 +66,7 @@ resource "onepassword_item" "demo_db" { ### Optional -- `category` (String) The category of the item. One of ["login" "password" "database" "secure_note"] +- `category` (String) The category of the item. One of ["login" "password" "database" "secure_note" "document"] - `database` (String) (Only applies to the database category) The name of the database. - `hostname` (String) (Only applies to the database category) The address where the database can be found - `note_value` (String, Sensitive) Secure Note value.