Skip to content

Commit 4fee9fd

Browse files
authored
Merge pull request #221 from stackql/feature/provider-docs
doc updates
2 parents fc99773 + 04d9f0e commit 4fee9fd

File tree

15 files changed

+78
-44
lines changed

15 files changed

+78
-44
lines changed

ci-scripts/get-providers-to-deploy.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,18 @@ module.exports = async ({ github, context, core, pathOutput }) => {
4949
if(!changedFiles){
5050
throw Error('No changed files found')
5151
}
52+
53+
// Check if any changed file is outside the docs/*-docs/** pattern
54+
// globalChange = changedFiles.some(file => !isMatchRegex(file));
5255

5356
const providers = changedFiles.map(diff => {
5457
if(isMatchRegex(diff)){
5558
return diff.split('/')[1].split('-docs')[0]
5659
}
57-
60+
return null;
5861
// if(!(diff.startsWith('.github')) || !(diff.startsWith('scripts'))) globalChange = true;
59-
6062
// globalChange = false;
61-
globalChange = true;
62-
63+
// globalChange = true;
6364

6465
}).filter(Boolean)
6566

docs/databricks_account-docs/providers/databricks_account/billing/budgets/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@ Replaces a <code>budgets</code> resource.
159159

160160
```sql
161161
/*+ update */
162+
-- replace field1, field2, etc. with the fields you want to update
162163
REPLACE databricks_account.billing.budgets
163-
SET { field = value }
164+
SET field1 = '{ value1 }',
165+
field2 = '{ value2 }', ...
164166
WHERE account_id = '{{ account_id }}' AND
165167
budget_id = '{{ budget_id }}';
166168
```

docs/databricks_account-docs/providers/databricks_account/iam/groups/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ Updates a <code>groups</code> resource.
155155

156156
```sql
157157
/*+ update */
158+
-- replace field1, field2, etc. with the fields you want to update
158159
UPDATE databricks_account.iam.groups
159-
SET { field = value }
160+
SET field1 = '{{ value1 }}',
161+
field2 = '{{ value2 }}', ...
160162
WHERE account_id = '{{ account_id }}' AND
161163
id = '{{ id }}';
162164
```
@@ -167,8 +169,10 @@ Replaces a <code>groups</code> resource.
167169

168170
```sql
169171
/*+ update */
172+
-- replace field1, field2, etc. with the fields you want to update
170173
REPLACE databricks_account.iam.groups
171-
SET { field = value }
174+
SET field1 = '{ value1 }',
175+
field2 = '{ value2 }', ...
172176
WHERE account_id = '{{ account_id }}' AND
173177
id = '{{ id }}';
174178
```

docs/databricks_account-docs/providers/databricks_account/iam/service_principals/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,10 @@ Updates a <code>service_principals</code> resource.
157157

158158
```sql
159159
/*+ update */
160+
-- replace field1, field2, etc. with the fields you want to update
160161
UPDATE databricks_account.iam.service_principals
161-
SET { field = value }
162+
SET field1 = '{{ value1 }}',
163+
field2 = '{{ value2 }}', ...
162164
WHERE account_id = '{{ account_id }}' AND
163165
id = '{{ id }}';
164166
```
@@ -169,8 +171,10 @@ Replaces a <code>service_principals</code> resource.
169171

170172
```sql
171173
/*+ update */
174+
-- replace field1, field2, etc. with the fields you want to update
172175
REPLACE databricks_account.iam.service_principals
173-
SET { field = value }
176+
SET field1 = '{ value1 }',
177+
field2 = '{ value2 }', ...
174178
WHERE account_id = '{{ account_id }}' AND
175179
id = '{{ id }}';
176180
```

docs/databricks_account-docs/providers/databricks_account/iam/users/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,10 @@ Updates a <code>users</code> resource.
178178

179179
```sql
180180
/*+ update */
181+
-- replace field1, field2, etc. with the fields you want to update
181182
UPDATE databricks_account.iam.users
182-
SET { field = value }
183+
SET field1 = '{{ value1 }}',
184+
field2 = '{{ value2 }}', ...
183185
WHERE account_id = '{{ account_id }}' AND
184186
id = '{{ id }}';
185187
```
@@ -190,8 +192,10 @@ Replaces a <code>users</code> resource.
190192

191193
```sql
192194
/*+ update */
195+
-- replace field1, field2, etc. with the fields you want to update
193196
REPLACE databricks_account.iam.users
194-
SET { field = value }
197+
SET field1 = '{ value1 }',
198+
field2 = '{ value2 }', ...
195199
WHERE account_id = '{{ account_id }}' AND
196200
id = '{{ id }}';
197201
```

docs/databricks_account-docs/providers/databricks_account/oauth/custom_app_integrations/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,10 @@ Updates a <code>custom_app_integrations</code> resource.
161161

162162
```sql
163163
/*+ update */
164+
-- replace field1, field2, etc. with the fields you want to update
164165
UPDATE databricks_account.oauth.custom_app_integrations
165-
SET { field = value }
166+
SET field1 = '{{ value1 }}',
167+
field2 = '{{ value2 }}', ...
166168
WHERE account_id = '{{ account_id }}' AND
167169
integration_id = '{{ integration_id }}';
168170
```

docs/databricks_account-docs/providers/databricks_account/oauth/published_app_integrations/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,10 @@ Updates a <code>published_app_integrations</code> resource.
145145

146146
```sql
147147
/*+ update */
148+
-- replace field1, field2, etc. with the fields you want to update
148149
UPDATE databricks_account.oauth.published_app_integrations
149-
SET { field = value }
150+
SET field1 = '{{ value1 }}',
151+
field2 = '{{ value2 }}', ...
150152
WHERE account_id = '{{ account_id }}' AND
151153
integration_id = '{{ integration_id }}';
152154
```

docs/databricks_account-docs/providers/databricks_account/provisioning/private_access/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ Replaces a <code>private_access</code> resource.
155155

156156
```sql
157157
/*+ update */
158+
-- replace field1, field2, etc. with the fields you want to update
158159
REPLACE databricks_account.provisioning.private_access
159-
SET { field = value }
160+
SET field1 = '{ value1 }',
161+
field2 = '{ value2 }', ...
160162
WHERE account_id = '{{ account_id }}' AND
161163
private_access_settings_id = '{{ private_access_settings_id }}';
162164
```

docs/databricks_account-docs/providers/databricks_account/provisioning/workspaces/index.md

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,29 @@ Operations on a <code>workspaces</code> resource.
3333
<Tabs
3434
defaultValue="view"
3535
values={[
36-
{ label: 'account_id', value: 'view', },
37-
{ label: 'account_id', value: 'resource', },
36+
{ label: 'vw_workspaces', value: 'view', },
37+
{ label: 'workspaces', value: 'resource', },
3838
]
3939
}>
4040
<TabItem value="view">
4141

4242
| Name | Datatype |
4343
|:-----|:---------|
44-
| <CopyableCode code="account_id" /> | `string` |
45-
| <CopyableCode code="aws_region" /> | `string` |
44+
| <CopyableCode code="account_id" /> | `text` |
45+
| <CopyableCode code="aws_region" /> | `text` |
46+
| <CopyableCode code="compliance_security_profile_enabled" /> | `unknown` |
4647
| <CopyableCode code="creation_time" /> | `integer` |
47-
| <CopyableCode code="credentials_id" /> | `string` |
48-
| <CopyableCode code="custom_tags" /> | `object` |
49-
| <CopyableCode code="deployment_name" /> | `string` |
48+
| <CopyableCode code="credentials_id" /> | `text` |
49+
| <CopyableCode code="deployment_name" /> | `text` |
50+
| <CopyableCode code="enhanced_security_monitoring_enabled" /> | `unknown` |
51+
| <CopyableCode code="identity_federation_enabled" /> | `unknown` |
5052
| <CopyableCode code="is_no_public_ip_enabled" /> | `boolean` |
51-
| <CopyableCode code="managed_services_customer_managed_key_id" /> | `string` |
52-
| <CopyableCode code="network_id" /> | `string` |
53-
| <CopyableCode code="pricing_tier" /> | `string` |
54-
| <CopyableCode code="private_access_settings_id" /> | `string` |
55-
| <CopyableCode code="storage_configuration_id" /> | `string` |
56-
| <CopyableCode code="storage_customer_managed_key_id" /> | `string` |
53+
| <CopyableCode code="pricing_tier" /> | `text` |
54+
| <CopyableCode code="storage_configuration_id" /> | `text` |
5755
| <CopyableCode code="workspace_id" /> | `integer` |
58-
| <CopyableCode code="workspace_name" /> | `string` |
59-
| <CopyableCode code="workspace_status" /> | `string` |
60-
| <CopyableCode code="workspace_status_message" /> | `string` |
56+
| <CopyableCode code="workspace_name" /> | `text` |
57+
| <CopyableCode code="workspace_status" /> | `text` |
58+
| <CopyableCode code="workspace_status_message" /> | `text` |
6159
</TabItem>
6260
<TabItem value="resource">
6361

@@ -108,22 +106,21 @@ Operations on a <code>workspaces</code> resource.
108106
SELECT
109107
account_id,
110108
aws_region,
109+
compliance_security_profile_enabled,
111110
creation_time,
112111
credentials_id,
113-
custom_tags,
114112
deployment_name,
113+
enhanced_security_monitoring_enabled,
114+
identity_federation_enabled,
115115
is_no_public_ip_enabled,
116-
managed_services_customer_managed_key_id,
117-
network_id,
118116
pricing_tier,
119-
private_access_settings_id,
120117
storage_configuration_id,
121-
storage_customer_managed_key_id,
122118
workspace_id,
123119
workspace_name,
124120
workspace_status,
125121
workspace_status_message
126-
FROM databricks_account.provisioning.vw_workspaces;
122+
FROM databricks_account.provisioning.vw_workspaces
123+
WHERE account_id = '{{ account_id }}';
127124
```
128125

129126
</TabItem>
@@ -269,8 +266,10 @@ Updates a <code>workspaces</code> resource.
269266

270267
```sql
271268
/*+ update */
269+
-- replace field1, field2, etc. with the fields you want to update
272270
UPDATE databricks_account.provisioning.workspaces
273-
SET { field = value }
271+
SET field1 = '{{ value1 }}',
272+
field2 = '{{ value2 }}', ...
274273
WHERE account_id = '{{ account_id }}' AND
275274
workspace_id = '{{ workspace_id }}';
276275
```

docs/databricks_account-docs/providers/databricks_account/settings/compliance_security_profile/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ Updates a <code>compliance_security_profile</code> resource.
5959

6060
```sql
6161
/*+ update */
62+
-- replace field1, field2, etc. with the fields you want to update
6263
UPDATE databricks_account.settings.compliance_security_profile
63-
SET { field = value }
64+
SET field1 = '{{ value1 }}',
65+
field2 = '{{ value2 }}', ...
6466
WHERE account_id = '{{ account_id }}';
6567
```

docs/databricks_account-docs/providers/databricks_account/settings/enhanced_security_monitoring/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ Updates a <code>enhanced_security_monitoring</code> resource.
5959

6060
```sql
6161
/*+ update */
62+
-- replace field1, field2, etc. with the fields you want to update
6263
UPDATE databricks_account.settings.enhanced_security_monitoring
63-
SET { field = value }
64+
SET field1 = '{{ value1 }}',
65+
field2 = '{{ value2 }}', ...
6466
WHERE account_id = '{{ account_id }}';
6567
```

docs/databricks_account-docs/providers/databricks_account/settings/ip_access_lists/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,10 @@ Updates a <code>ip_access_lists</code> resource.
157157

158158
```sql
159159
/*+ update */
160+
-- replace field1, field2, etc. with the fields you want to update
160161
UPDATE databricks_account.settings.ip_access_lists
161-
SET { field = value }
162+
SET field1 = '{{ value1 }}',
163+
field2 = '{{ value2 }}', ...
162164
WHERE account_id = '{{ account_id }}' AND
163165
ip_access_list_id = '{{ ip_access_list_id }}';
164166
```
@@ -169,8 +171,10 @@ Replaces a <code>ip_access_lists</code> resource.
169171

170172
```sql
171173
/*+ update */
174+
-- replace field1, field2, etc. with the fields you want to update
172175
REPLACE databricks_account.settings.ip_access_lists
173-
SET { field = value }
176+
SET field1 = '{ value1 }',
177+
field2 = '{ value2 }', ...
174178
WHERE account_id = '{{ account_id }}' AND
175179
ip_access_list_id = '{{ ip_access_list_id }}';
176180
```

docs/databricks_account-docs/providers/databricks_account/unity_catalog/metastore_assignments/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ Replaces a <code>metastore_assignments</code> resource.
107107

108108
```sql
109109
/*+ update */
110+
-- replace field1, field2, etc. with the fields you want to update
110111
REPLACE databricks_account.unity_catalog.metastore_assignments
111-
SET { field = value }
112+
SET field1 = '{ value1 }',
113+
field2 = '{ value2 }', ...
112114
WHERE account_id = '{{ account_id }}' AND
113115
metastore_id = '{{ metastore_id }}' AND
114116
workspace_id = '{{ workspace_id }}';

docs/databricks_account-docs/providers/databricks_account/unity_catalog/metastores/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,10 @@ Replaces a <code>metastores</code> resource.
177177

178178
```sql
179179
/*+ update */
180+
-- replace field1, field2, etc. with the fields you want to update
180181
REPLACE databricks_account.unity_catalog.metastores
181-
SET { field = value }
182+
SET field1 = '{ value1 }',
183+
field2 = '{ value2 }', ...
182184
WHERE account_id = '{{ account_id }}' AND
183185
metastore_id = '{{ metastore_id }}';
184186
```

docs/databricks_account-docs/providers/databricks_account/unity_catalog/storage_credentials/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,10 @@ Replaces a <code>storage_credentials</code> resource.
169169

170170
```sql
171171
/*+ update */
172+
-- replace field1, field2, etc. with the fields you want to update
172173
REPLACE databricks_account.unity_catalog.storage_credentials
173-
SET { field = value }
174+
SET field1 = '{ value1 }',
175+
field2 = '{ value2 }', ...
174176
WHERE account_id = '{{ account_id }}' AND
175177
metastore_id = '{{ metastore_id }}' AND
176178
storage_credential_name = '{{ storage_credential_name }}';

0 commit comments

Comments
 (0)