Skip to content

Commit 45ff668

Browse files
authored
[Doc] Reformat code examples in documentation (#4081)
## Changes <!-- Summary of your changes that are easy to understand --> ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [ ] `make test` run locally - [x] relevant change in `docs/` folder - [ ] covered with integration tests in `internal/acceptance` - [ ] relevant acceptance tests are passing - [ ] using Go SDK
1 parent e46ad2b commit 45ff668

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

docs/data-sources/mlflow_models.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ data "databricks_mlflow_models" "this" {}
2222
2323
check "model_list_not_empty" {
2424
assert {
25-
condition = length(data.databricks_mlflow_models.this.names) != 0
25+
condition = length(data.databricks_mlflow_models.this.names) != 0
2626
error_message = "Model list is empty."
2727
}
2828
}
2929
3030
check "model_list_contains_model" {
3131
assert {
32-
condition = contains(data.databricks_mlflow_models.this.names, "model_1")
32+
condition = contains(data.databricks_mlflow_models.this.names, "model_1")
3333
error_message = "model_1 is missing in model list."
3434
}
3535
}
@@ -39,4 +39,4 @@ check "model_list_contains_model" {
3939

4040
This data source exports the following attributes:
4141

42-
* `names` - List of names of [databricks_mlflow_model](./mlflow_model.md)
42+
* `names` - List of names of [databricks_mlflow_model](./mlflow_model.md)

docs/guides/azure-authenticate-with-oidc.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ Finally, grant the service principal access to the workspace.
4545

4646
```hcl
4747
resource "azurerm_role_assignment" "example" {
48-
scope = "/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Databricks/workspaces/<workspace>"
49-
role_definition_name = "Contributor"
50-
principal_id = azuread_service_principal.example.id
48+
scope = "/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Databricks/workspaces/<workspace>"
49+
role_definition_name = "Contributor"
50+
principal_id = azuread_service_principal.example.id
5151
}
5252
```
5353

@@ -59,7 +59,7 @@ In your Terraform configuration, configure the Databricks provider to use the se
5959
provider "databricks" {
6060
azure_client_id = "<application-id>"
6161
azure_tenant_id = "<tenant-id>"
62-
host = "https://<workspace-url>"
62+
host = "https://<workspace-url>"
6363
}
6464
```
6565

@@ -140,9 +140,9 @@ Finally, grant the service principal access to the workspace.
140140

141141
```hcl
142142
resource "azurerm_role_assignment" "example" {
143-
scope = "/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Databricks/workspaces/<workspace>"
144-
role_definition_name = "Contributor"
145-
principal_id = azuread_service_principal.example.id
143+
scope = "/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Databricks/workspaces/<workspace>"
144+
role_definition_name = "Contributor"
145+
principal_id = azuread_service_principal.example.id
146146
}
147147
```
148148

@@ -156,7 +156,7 @@ In your Terraform configuration, configure the Databricks provider to use the se
156156
provider "databricks" {
157157
azure_client_id = "<application-id>"
158158
azure_tenant_id = "<tenant-id>"
159-
host = "https://<workspace-url>"
159+
host = "https://<workspace-url>"
160160
}
161161
```
162162

docs/resources/budget.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ resource "databricks_budget" "this" {
1616
display_name = "databricks-workspace-budget"
1717
1818
alert_configurations {
19-
time_period = "MONTH"
20-
trigger_type = "CUMULATIVE_SPENDING_EXCEEDED"
21-
quantity_type = "LIST_PRICE_DOLLARS_USD"
22-
quantity_threshold = "840"
19+
time_period = "MONTH"
20+
trigger_type = "CUMULATIVE_SPENDING_EXCEEDED"
21+
quantity_type = "LIST_PRICE_DOLLARS_USD"
22+
quantity_threshold = "840"
2323
2424
action_configurations {
2525
action_type = "EMAIL_NOTIFICATION"
@@ -30,24 +30,24 @@ resource "databricks_budget" "this" {
3030
filter {
3131
workspace_id {
3232
operator = "IN"
33-
values = [
33+
values = [
3434
1234567890098765
3535
]
3636
}
37-
37+
3838
tags {
39-
key = "Team"
39+
key = "Team"
4040
value {
4141
operator = "IN"
42-
values = ["Data Science"]
42+
values = ["Data Science"]
4343
}
4444
}
4545
4646
tags {
47-
key = "Environment"
47+
key = "Environment"
4848
value {
4949
operator = "IN"
50-
values = ["Development"]
50+
values = ["Development"]
5151
}
5252
}
5353
}

docs/resources/sql_table.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ resource "databricks_sql_table" "thing" {
136136
data_source_format = "DELTA"
137137
storage_location = ""
138138
column {
139-
name = "id"
140-
type = "bigint"
139+
name = "id"
140+
type = "bigint"
141141
identity = "default"
142142
}
143143
column {

0 commit comments

Comments
 (0)