From fa13b78db6723e8a751db3548e40ced630f493c2 Mon Sep 17 00:00:00 2001 From: Alex Ott Date: Mon, 23 Dec 2024 09:38:31 +0100 Subject: [PATCH 1/2] [Doc] apply `make fmt-docs` to all docs --- docs/data-sources/app.md | 2 +- .../mws_network_connectivity_configs.md | 2 +- docs/data-sources/serving_endpoints.md | 2 +- docs/resources/app.md | 34 +++++++++---------- docs/resources/custom_app_integration.md | 14 ++++---- docs/resources/grant.md | 4 +-- docs/resources/lakehouse_monitor.md | 4 +-- docs/resources/quality_monitor.md | 4 +-- 8 files changed, 33 insertions(+), 33 deletions(-) diff --git a/docs/data-sources/app.md b/docs/data-sources/app.md index b0b421c6a0..d9b2b44d39 100644 --- a/docs/data-sources/app.md +++ b/docs/data-sources/app.md @@ -13,7 +13,7 @@ This data source allows you to fetch information about a Databricks App. ```hcl data "databricks_app" "this" { - name = "my-custom-app" + name = "my-custom-app" } ``` diff --git a/docs/data-sources/mws_network_connectivity_configs.md b/docs/data-sources/mws_network_connectivity_configs.md index e8f6542714..71251c103b 100755 --- a/docs/data-sources/mws_network_connectivity_configs.md +++ b/docs/data-sources/mws_network_connectivity_configs.md @@ -33,7 +33,7 @@ provider "databricks" { } data "databricks_mws_network_connectivity_configs" "this" { - region = "us-east-1" + region = "us-east-1" } output "filtered" { diff --git a/docs/data-sources/serving_endpoints.md b/docs/data-sources/serving_endpoints.md index c1d314880a..404cc893df 100644 --- a/docs/data-sources/serving_endpoints.md +++ b/docs/data-sources/serving_endpoints.md @@ -14,7 +14,7 @@ data "databricks_serving_endpoints" "all" { } resource "databricks_permissions" "ml_serving_usage" { - for_each = databricks_serving_endpoints.all.endpoints + for_each = databricks_serving_endpoints.all.endpoints serving_endpoint_id = each.value.id access_control { diff --git a/docs/resources/app.md b/docs/resources/app.md index ab6ba214b9..54c9a68b72 100644 --- a/docs/resources/app.md +++ b/docs/resources/app.md @@ -11,28 +11,28 @@ subcategory: "Apps" ```hcl resource "databricks_app" "this" { - name = "my-custom-app" - description = "My app" + name = "my-custom-app" + description = "My app" resources = [{ name = "sql-warehouse" sql_warehouse = { - id = "e9ca293f79a74b5c" - permission = "CAN_MANAGE" - } - }, - { - name = "serving-endpoint" - serving_endpoint = { - name = "databricks-meta-llama-3-1-70b-instruct" - permission = "CAN_MANAGE" - } - }, - { - name = "job" - job = { - id = "1234" + id = "e9ca293f79a74b5c" permission = "CAN_MANAGE" } + }, + { + name = "serving-endpoint" + serving_endpoint = { + name = "databricks-meta-llama-3-1-70b-instruct" + permission = "CAN_MANAGE" + } + }, + { + name = "job" + job = { + id = "1234" + permission = "CAN_MANAGE" + } }] } ``` diff --git a/docs/resources/custom_app_integration.md b/docs/resources/custom_app_integration.md index 01b3c99ff4..47318aea73 100644 --- a/docs/resources/custom_app_integration.md +++ b/docs/resources/custom_app_integration.md @@ -11,13 +11,13 @@ This resource allows you to enable [custom OAuth applications](https://docs.data ```hcl resource "databricks_custom_app_integration" "this" { - name = "custom_integration_name" - redirect_urls = ["https://example.com"] - scopes = ["all-apis"] - token_access_policy { - access_token_ttl_in_minutes = 15 - refresh_token_ttl_in_minutes = 30 - } + name = "custom_integration_name" + redirect_urls = ["https://example.com"] + scopes = ["all-apis"] + token_access_policy { + access_token_ttl_in_minutes = 15 + refresh_token_ttl_in_minutes = 30 + } } ``` diff --git a/docs/resources/grant.md b/docs/resources/grant.md index e5f562f7db..cdfa97aa49 100644 --- a/docs/resources/grant.md +++ b/docs/resources/grant.md @@ -50,8 +50,8 @@ See [databricks_grants Catalog grants](grants.md#catalog-grants) for the list of ```hcl resource "databricks_catalog" "sandbox" { - name = "sandbox" - comment = "this catalog is managed by terraform" + name = "sandbox" + comment = "this catalog is managed by terraform" properties = { purpose = "testing" } diff --git a/docs/resources/lakehouse_monitor.md b/docs/resources/lakehouse_monitor.md index 635399dcc9..b55c90abdf 100644 --- a/docs/resources/lakehouse_monitor.md +++ b/docs/resources/lakehouse_monitor.md @@ -37,8 +37,8 @@ resource "databricks_sql_table" "myTestTable" { data_source_format = "DELTA" column { - name = "timestamp" - type = "int" + name = "timestamp" + type = "int" } } diff --git a/docs/resources/quality_monitor.md b/docs/resources/quality_monitor.md index 64e06f187a..7e5b8cfff0 100644 --- a/docs/resources/quality_monitor.md +++ b/docs/resources/quality_monitor.md @@ -38,8 +38,8 @@ resource "databricks_sql_table" "myTestTable" { data_source_format = "DELTA" column { - name = "timestamp" - type = "int" + name = "timestamp" + type = "int" } } From a8e95a875d70b85ee818b3415d9ecbf96dc00c6b Mon Sep 17 00:00:00 2001 From: Alex Ott Date: Mon, 23 Dec 2024 13:37:35 +0100 Subject: [PATCH 2/2] Add a new line for app resources --- docs/resources/app.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/resources/app.md b/docs/resources/app.md index 54c9a68b72..e568f3f9ac 100644 --- a/docs/resources/app.md +++ b/docs/resources/app.md @@ -13,6 +13,7 @@ subcategory: "Apps" resource "databricks_app" "this" { name = "my-custom-app" description = "My app" + resources = [{ name = "sql-warehouse" sql_warehouse = {