Skip to content

Commit

Permalink
Merge pull request #543 from hkad98/docu-fix
Browse files Browse the repository at this point in the history
Fix typo in docs

Reviewed-by: https://github.com/Mara3l
  • Loading branch information
gdgate authored Feb 15, 2024
2 parents 5132289 + f5e9d98 commit 54d8bb1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,12 @@ sdk.catalog_data_source.put_declarative_data_sources(
)
```

Example of the credential file:

```yaml
data_sources:
demo-test-ds: "demopass"
demo-bigquery-ds: "~/home/secrets.json"
```
The result is identical.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Either by one call:
```python
# Load and put on server the stored layout
sdk.catalog_workspace.load_and_put_declarative_workspace(
workspace_id="demo",
layout_root_path=Path.cwd()
)
```
Expand All @@ -42,10 +43,12 @@ Or by two separate calls:
```python
# Load a declarative workspace
declarative_workspaces = sdk.catalog_workspace.load_declarative_workspace(
workspace_id="demo",
layout_root_path=Path.cwd()
)
# Set the layout
sdk.catalog_workspace.put_declarative_workspace(
workspace_id="demo",
workspace=declarative_workspaces
)
```
Expand Down

0 comments on commit 54d8bb1

Please sign in to comment.