Skip to content

Commit

Permalink
[Doc] Reformat code examples in documentation (#4081)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
alexott authored Oct 12, 2024
1 parent e46ad2b commit 45ff668
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions docs/data-sources/mlflow_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ data "databricks_mlflow_models" "this" {}
check "model_list_not_empty" {
assert {
condition = length(data.databricks_mlflow_models.this.names) != 0
condition = length(data.databricks_mlflow_models.this.names) != 0
error_message = "Model list is empty."
}
}
check "model_list_contains_model" {
assert {
condition = contains(data.databricks_mlflow_models.this.names, "model_1")
condition = contains(data.databricks_mlflow_models.this.names, "model_1")
error_message = "model_1 is missing in model list."
}
}
Expand All @@ -39,4 +39,4 @@ check "model_list_contains_model" {

This data source exports the following attributes:

* `names` - List of names of [databricks_mlflow_model](./mlflow_model.md)
* `names` - List of names of [databricks_mlflow_model](./mlflow_model.md)
16 changes: 8 additions & 8 deletions docs/guides/azure-authenticate-with-oidc.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ Finally, grant the service principal access to the workspace.

```hcl
resource "azurerm_role_assignment" "example" {
scope = "/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Databricks/workspaces/<workspace>"
role_definition_name = "Contributor"
principal_id = azuread_service_principal.example.id
scope = "/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Databricks/workspaces/<workspace>"
role_definition_name = "Contributor"
principal_id = azuread_service_principal.example.id
}
```

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

Expand Down Expand Up @@ -140,9 +140,9 @@ Finally, grant the service principal access to the workspace.

```hcl
resource "azurerm_role_assignment" "example" {
scope = "/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Databricks/workspaces/<workspace>"
role_definition_name = "Contributor"
principal_id = azuread_service_principal.example.id
scope = "/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Databricks/workspaces/<workspace>"
role_definition_name = "Contributor"
principal_id = azuread_service_principal.example.id
}
```

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

Expand Down
20 changes: 10 additions & 10 deletions docs/resources/budget.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ resource "databricks_budget" "this" {
display_name = "databricks-workspace-budget"
alert_configurations {
time_period = "MONTH"
trigger_type = "CUMULATIVE_SPENDING_EXCEEDED"
quantity_type = "LIST_PRICE_DOLLARS_USD"
quantity_threshold = "840"
time_period = "MONTH"
trigger_type = "CUMULATIVE_SPENDING_EXCEEDED"
quantity_type = "LIST_PRICE_DOLLARS_USD"
quantity_threshold = "840"
action_configurations {
action_type = "EMAIL_NOTIFICATION"
Expand All @@ -30,24 +30,24 @@ resource "databricks_budget" "this" {
filter {
workspace_id {
operator = "IN"
values = [
values = [
1234567890098765
]
}
tags {
key = "Team"
key = "Team"
value {
operator = "IN"
values = ["Data Science"]
values = ["Data Science"]
}
}
tags {
key = "Environment"
key = "Environment"
value {
operator = "IN"
values = ["Development"]
values = ["Development"]
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/sql_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ resource "databricks_sql_table" "thing" {
data_source_format = "DELTA"
storage_location = ""
column {
name = "id"
type = "bigint"
name = "id"
type = "bigint"
identity = "default"
}
column {
Expand Down

0 comments on commit 45ff668

Please sign in to comment.