docs: add examples and generate documentation for all new resources
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
resource "immich_memory" "example" {
|
||||
memory_at = "2023-06-01T00:00:00Z"
|
||||
is_saved = true
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
resource "immich_partner" "example" {
|
||||
partner_id = "other-user-uuid"
|
||||
in_timeline = true
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
resource "immich_person" "example" {
|
||||
id = "your-person-uuid"
|
||||
name = "John Doe"
|
||||
birth_date = "1990-01-01"
|
||||
is_hidden = false
|
||||
is_favorite = true
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
resource "immich_stack" "example" {
|
||||
asset_ids = [
|
||||
"asset-uuid-1",
|
||||
"asset-uuid-2"
|
||||
]
|
||||
primary_asset_id = "asset-uuid-1"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
resource "immich_tag" "example" {
|
||||
name = "Vacation"
|
||||
type = "OBJECT"
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
resource "immich_workflow" "example" {
|
||||
name = "Auto-Tag Video"
|
||||
enabled = true
|
||||
|
||||
triggers = jsonencode([
|
||||
{
|
||||
"type": "asset.upload",
|
||||
"options": {}
|
||||
}
|
||||
])
|
||||
|
||||
filters = jsonencode([
|
||||
{
|
||||
"type": "asset.type",
|
||||
"options": {
|
||||
"type": "video"
|
||||
}
|
||||
}
|
||||
])
|
||||
|
||||
actions = jsonencode([
|
||||
{
|
||||
"type": "asset.tag",
|
||||
"options": {
|
||||
"tagId": "your-tag-uuid"
|
||||
}
|
||||
}
|
||||
])
|
||||
}
|
||||
Reference in New Issue
Block a user