-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade all commands except all
job
, all run
and account get
co…
…mmands to use dbt Cloud API V3 endpoints (#99) * Change default api version to v3 * Add DbtCloudProjectCommand class * Fix connection commands * Fix a test * Update README * Revert job commands back to API version v2 * Add --limit arg to 'dbt-cloud job list' * Revert run commands back to API version v2 * Add new integration tests to test_cli * Add test_cli_run_list_and_get integration test * Add test_cli_job_run_no_wait_and_cancel integration test * Add --limit and --offset arguments to 'dbt-cloud project list' * Add test_cli_project_list_and_get integration test * Consolidate test_cli_environment_list_and_get * Add test_cli_run_cancel_all and test_cli_run_list_and_get_artifacts integration tests * Revert 'dbt-cloud account get' back to API v2 * Add test_cli_account_list_and_get integration test * Update CircleCI config * Add test_cli_job_export_and_import integration test * Add test_cli_job_delete_all integration test * Upgrade 'dbt-cloud environment get' to API v3 * Update README --------- Co-authored-by: Simo Tumelius <[email protected]>
- Loading branch information
1 parent
3996268
commit 26df2cc
Showing
22 changed files
with
672 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import requests | ||
from pydantic import PrivateAttr | ||
from dbt_cloud.command.command import DbtCloudAccountCommand | ||
|
||
|
||
class DbtCloudAccountGetCommand(DbtCloudAccountCommand): | ||
"""Retrieves dbt Cloud account information.""" | ||
|
||
_api_version: str = PrivateAttr("v2") | ||
|
||
def execute(self) -> requests.Response: | ||
response = requests.get(url=self.api_url, headers=self.request_headers) | ||
return response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.