databay-cli 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- databay/__init__.py +5 -0
- databay/__main__.py +7 -0
- databay/agent_skill.py +184 -0
- databay/api.py +626 -0
- databay/cli/__init__.py +0 -0
- databay/cli/auth.py +377 -0
- databay/cli/build.py +89 -0
- databay/cli/commands/__init__.py +0 -0
- databay/cli/commands/alerting_webhook.py +19 -0
- databay/cli/commands/alerting_webhook_tag.py +14 -0
- databay/cli/commands/alerting_webhook_type.py +14 -0
- databay/cli/commands/alerting_webhook_undelivered.py +15 -0
- databay/cli/commands/announcement.py +17 -0
- databay/cli/commands/api_key.py +18 -0
- databay/cli/commands/api_key_project.py +16 -0
- databay/cli/commands/backfill_reason_code.py +14 -0
- databay/cli/commands/backfill_run.py +17 -0
- databay/cli/commands/canvas.py +16 -0
- databay/cli/commands/canvas_graph.py +15 -0
- databay/cli/commands/canvas_table_check.py +15 -0
- databay/cli/commands/dashboards.py +21 -0
- databay/cli/commands/dashboards_card.py +20 -0
- databay/cli/commands/dashboards_dataset.py +14 -0
- databay/cli/commands/dashboards_folder.py +16 -0
- databay/cli/commands/dashboards_home.py +17 -0
- databay/cli/commands/dashboards_placement.py +16 -0
- databay/cli/commands/db.py +19 -0
- databay/cli/commands/db_column.py +14 -0
- databay/cli/commands/docs_article.py +16 -0
- databay/cli/commands/dq_result.py +14 -0
- databay/cli/commands/dq_rule.py +16 -0
- databay/cli/commands/feature.py +14 -0
- databay/cli/commands/google_ads_source.py +14 -0
- databay/cli/commands/google_analytics_source.py +14 -0
- databay/cli/commands/instagram_account.py +14 -0
- databay/cli/commands/instagram_source.py +14 -0
- databay/cli/commands/linkedin_account.py +14 -0
- databay/cli/commands/linkedin_source.py +14 -0
- databay/cli/commands/me.py +14 -0
- databay/cli/commands/meta_ads_source.py +14 -0
- databay/cli/commands/metric_models.py +26 -0
- databay/cli/commands/metrics.py +14 -0
- databay/cli/commands/models.py +16 -0
- databay/cli/commands/nlq.py +15 -0
- databay/cli/commands/notebook_credential.py +16 -0
- databay/cli/commands/org.py +14 -0
- databay/cli/commands/org_member.py +17 -0
- databay/cli/commands/org_offboarding.py +14 -0
- databay/cli/commands/pipe.py +26 -0
- databay/cli/commands/pipe_backfill_run.py +14 -0
- databay/cli/commands/pipe_config_option.py +14 -0
- databay/cli/commands/pipe_destination.py +16 -0
- databay/cli/commands/pipe_leftover.py +16 -0
- databay/cli/commands/pipe_sink_type.py +14 -0
- databay/cli/commands/pipe_source_type.py +14 -0
- databay/cli/commands/pipe_status_bucket.py +14 -0
- databay/cli/commands/pipe_stuck_delete.py +14 -0
- databay/cli/commands/plan.py +14 -0
- databay/cli/commands/project.py +21 -0
- databay/cli/commands/project_budget.py +15 -0
- databay/cli/commands/project_member.py +18 -0
- databay/cli/commands/project_privilege.py +16 -0
- databay/cli/commands/project_share.py +16 -0
- databay/cli/commands/provision.py +14 -0
- databay/cli/commands/provisioning.py +14 -0
- databay/cli/commands/registry.py +14 -0
- databay/cli/commands/resource_home.py +14 -0
- databay/cli/commands/schema_change.py +18 -0
- databay/cli/commands/schema_history.py +17 -0
- databay/cli/commands/schema_version.py +16 -0
- databay/cli/commands/shopify_store.py +14 -0
- databay/cli/commands/sink_data_type.py +14 -0
- databay/cli/commands/source.py +24 -0
- databay/cli/commands/source_catalog.py +15 -0
- databay/cli/commands/source_check_run.py +17 -0
- databay/cli/commands/source_hidden_type.py +14 -0
- databay/cli/commands/source_name.py +14 -0
- databay/cli/commands/source_pipe.py +14 -0
- databay/cli/commands/source_publication.py +16 -0
- databay/cli/commands/source_readiness_override.py +15 -0
- databay/cli/commands/source_setup_choice.py +16 -0
- databay/cli/commands/source_stream.py +15 -0
- databay/cli/commands/source_table.py +14 -0
- databay/cli/commands/ssbi_job.py +18 -0
- databay/cli/commands/transform_type.py +14 -0
- databay/cli/commands/usage.py +14 -0
- databay/cli/commands/warehouse.py +21 -0
- databay/cli/commands/warehouse_access_assignment.py +16 -0
- databay/cli/commands/warehouse_access_role.py +22 -0
- databay/cli/commands/warehouse_access_settings.py +17 -0
- databay/cli/commands/warehouse_login.py +20 -0
- databay/cli/commands/warehouse_principal.py +17 -0
- databay/cli/commands/warehouse_service_account.py +17 -0
- databay/cli/commands/warehouse_service_account_credential.py +18 -0
- databay/cli/common.py +93 -0
- databay/cli/console.py +121 -0
- databay/cli/flags.py +183 -0
- databay/cli/handwritten.py +22 -0
- databay/cli/main.py +198 -0
- databay/cli/metrics.py +171 -0
- databay/cli/org.py +193 -0
- databay/cli/output.py +134 -0
- databay/cli/pipe_wait.py +357 -0
- databay/cli/profile.py +230 -0
- databay/cli/runner.py +432 -0
- databay/cli/skill.py +64 -0
- databay/cli/sql.py +84 -0
- databay/compat.py +161 -0
- databay/credentials.py +217 -0
- databay/error_catalog.py +226 -0
- databay/error_codes.py +3265 -0
- databay/errors.py +222 -0
- databay/feature_header.py +40 -0
- databay/invoke.py +225 -0
- databay/locks.py +41 -0
- databay/login_flow.py +245 -0
- databay/model_base.py +40 -0
- databay/models/__init__.py +0 -0
- databay/models/alerting_webhook.py +46 -0
- databay/models/alerting_webhook_tag.py +11 -0
- databay/models/alerting_webhook_type.py +11 -0
- databay/models/alerting_webhook_undelivered.py +23 -0
- databay/models/announcement.py +37 -0
- databay/models/api_key.py +81 -0
- databay/models/api_key_project.py +29 -0
- databay/models/backfill_reason_code.py +11 -0
- databay/models/backfill_run.py +41 -0
- databay/models/canvas.py +68 -0
- databay/models/canvas_graph.py +86 -0
- databay/models/canvas_table_check.py +181 -0
- databay/models/dashboards.py +79 -0
- databay/models/dashboards_card.py +37 -0
- databay/models/dashboards_dataset.py +27 -0
- databay/models/dashboards_folder.py +18 -0
- databay/models/dashboards_home.py +28 -0
- databay/models/db.py +34 -0
- databay/models/db_column.py +11 -0
- databay/models/docs_article.py +59 -0
- databay/models/dq_result.py +27 -0
- databay/models/dq_rule.py +43 -0
- databay/models/feature.py +15 -0
- databay/models/google_ads_source.py +11 -0
- databay/models/google_analytics_source.py +11 -0
- databay/models/instagram_source.py +11 -0
- databay/models/linkedin_source.py +11 -0
- databay/models/me.py +71 -0
- databay/models/meta_ads_source.py +11 -0
- databay/models/metric_models.py +274 -0
- databay/models/metrics.py +158 -0
- databay/models/models.py +73 -0
- databay/models/nlq.py +92 -0
- databay/models/notebook_credential.py +51 -0
- databay/models/org.py +44 -0
- databay/models/org_member.py +123 -0
- databay/models/org_offboarding.py +36 -0
- databay/models/pipe.py +340 -0
- databay/models/pipe_config_option.py +25 -0
- databay/models/pipe_destination.py +128 -0
- databay/models/pipe_leftover.py +51 -0
- databay/models/pipe_sink_type.py +11 -0
- databay/models/pipe_source_type.py +11 -0
- databay/models/pipe_status_bucket.py +13 -0
- databay/models/pipe_stuck_delete.py +25 -0
- databay/models/plan.py +37 -0
- databay/models/project.py +154 -0
- databay/models/project_budget.py +22 -0
- databay/models/project_member.py +67 -0
- databay/models/project_privilege.py +21 -0
- databay/models/project_share.py +76 -0
- databay/models/provision.py +12 -0
- databay/models/provisioning.py +20 -0
- databay/models/registry.py +18 -0
- databay/models/resource_home.py +35 -0
- databay/models/schema_change.py +96 -0
- databay/models/schema_history.py +32 -0
- databay/models/schema_version.py +23 -0
- databay/models/shared.py +875 -0
- databay/models/shopify_store.py +19 -0
- databay/models/sink_data_type.py +11 -0
- databay/models/source.py +263 -0
- databay/models/source_catalog.py +82 -0
- databay/models/source_check_run.py +63 -0
- databay/models/source_hidden_type.py +13 -0
- databay/models/source_name.py +18 -0
- databay/models/source_pipe.py +16 -0
- databay/models/source_publication.py +30 -0
- databay/models/source_readiness_override.py +13 -0
- databay/models/source_setup_choice.py +33 -0
- databay/models/source_stream.py +65 -0
- databay/models/source_table.py +27 -0
- databay/models/sql.py +31 -0
- databay/models/ssbi_job.py +97 -0
- databay/models/transform_type.py +40 -0
- databay/models/usage.py +112 -0
- databay/models/warehouse.py +38 -0
- databay/models/warehouse_access_assignment.py +70 -0
- databay/models/warehouse_access_role.py +148 -0
- databay/models/warehouse_access_settings.py +35 -0
- databay/models/warehouse_login.py +20 -0
- databay/models/warehouse_principal.py +49 -0
- databay/models/warehouse_service_account.py +35 -0
- databay/models/warehouse_service_account_credential.py +11 -0
- databay/oidc.py +205 -0
- databay/operation.py +191 -0
- databay/operations/__init__.py +0 -0
- databay/operations/alerting_webhook.py +317 -0
- databay/operations/alerting_webhook_tag.py +35 -0
- databay/operations/alerting_webhook_type.py +35 -0
- databay/operations/alerting_webhook_undelivered.py +74 -0
- databay/operations/announcement.py +135 -0
- databay/operations/api_key.py +198 -0
- databay/operations/api_key_project.py +130 -0
- databay/operations/backfill_reason_code.py +35 -0
- databay/operations/backfill_run.py +245 -0
- databay/operations/canvas.py +136 -0
- databay/operations/canvas_graph.py +102 -0
- databay/operations/canvas_table_check.py +101 -0
- databay/operations/dashboards.py +441 -0
- databay/operations/dashboards_card.py +406 -0
- databay/operations/dashboards_dataset.py +50 -0
- databay/operations/dashboards_folder.py +146 -0
- databay/operations/dashboards_home.py +176 -0
- databay/operations/dashboards_placement.py +152 -0
- databay/operations/db.py +337 -0
- databay/operations/db_column.py +57 -0
- databay/operations/docs_article.py +101 -0
- databay/operations/dq_result.py +43 -0
- databay/operations/dq_rule.py +155 -0
- databay/operations/feature.py +35 -0
- databay/operations/google_ads_source.py +40 -0
- databay/operations/google_analytics_source.py +40 -0
- databay/operations/instagram_account.py +47 -0
- databay/operations/instagram_source.py +40 -0
- databay/operations/linkedin_account.py +47 -0
- databay/operations/linkedin_source.py +40 -0
- databay/operations/me.py +57 -0
- databay/operations/meta_ads_source.py +40 -0
- databay/operations/metric_models.py +612 -0
- databay/operations/metrics.py +218 -0
- databay/operations/models.py +123 -0
- databay/operations/nlq.py +100 -0
- databay/operations/notebook_credential.py +95 -0
- databay/operations/org.py +79 -0
- databay/operations/org_member.py +192 -0
- databay/operations/org_offboarding.py +43 -0
- databay/operations/pipe.py +882 -0
- databay/operations/pipe_backfill_run.py +72 -0
- databay/operations/pipe_config_option.py +50 -0
- databay/operations/pipe_destination.py +178 -0
- databay/operations/pipe_leftover.py +110 -0
- databay/operations/pipe_sink_type.py +35 -0
- databay/operations/pipe_source_type.py +35 -0
- databay/operations/pipe_status_bucket.py +35 -0
- databay/operations/pipe_stuck_delete.py +52 -0
- databay/operations/plan.py +35 -0
- databay/operations/project.py +346 -0
- databay/operations/project_budget.py +135 -0
- databay/operations/project_member.py +226 -0
- databay/operations/project_privilege.py +143 -0
- databay/operations/project_share.py +160 -0
- databay/operations/provision.py +35 -0
- databay/operations/provisioning.py +35 -0
- databay/operations/registry.py +35 -0
- databay/operations/resource_home.py +80 -0
- databay/operations/schema_change.py +222 -0
- databay/operations/schema_history.py +136 -0
- databay/operations/schema_version.py +115 -0
- databay/operations/shopify_store.py +40 -0
- databay/operations/sink_data_type.py +43 -0
- databay/operations/source.py +1207 -0
- databay/operations/source_catalog.py +135 -0
- databay/operations/source_check_run.py +242 -0
- databay/operations/source_hidden_type.py +59 -0
- databay/operations/source_name.py +69 -0
- databay/operations/source_pipe.py +57 -0
- databay/operations/source_publication.py +139 -0
- databay/operations/source_readiness_override.py +96 -0
- databay/operations/source_setup_choice.py +161 -0
- databay/operations/source_stream.py +99 -0
- databay/operations/source_table.py +59 -0
- databay/operations/sql.py +54 -0
- databay/operations/ssbi_job.py +242 -0
- databay/operations/transform_type.py +35 -0
- databay/operations/usage.py +35 -0
- databay/operations/warehouse.py +343 -0
- databay/operations/warehouse_access_assignment.py +179 -0
- databay/operations/warehouse_access_role.py +473 -0
- databay/operations/warehouse_access_settings.py +172 -0
- databay/operations/warehouse_login.py +308 -0
- databay/operations/warehouse_principal.py +174 -0
- databay/operations/warehouse_service_account.py +206 -0
- databay/operations/warehouse_service_account_credential.py +285 -0
- databay/paths.py +32 -0
- databay/platform_check.py +20 -0
- databay/profiles.py +181 -0
- databay/redact.py +22 -0
- databay/reference.py +218 -0
- databay/resource.py +167 -0
- databay/resources/__init__.py +0 -0
- databay/resources/alerting_webhook.py +84 -0
- databay/resources/alerting_webhook_tag.py +21 -0
- databay/resources/alerting_webhook_type.py +21 -0
- databay/resources/alerting_webhook_undelivered.py +35 -0
- databay/resources/announcement.py +45 -0
- databay/resources/api_key.py +56 -0
- databay/resources/api_key_project.py +47 -0
- databay/resources/backfill_reason_code.py +21 -0
- databay/resources/backfill_run.py +78 -0
- databay/resources/canvas.py +43 -0
- databay/resources/canvas_graph.py +38 -0
- databay/resources/canvas_table_check.py +38 -0
- databay/resources/dashboards.py +105 -0
- databay/resources/dashboards_card.py +97 -0
- databay/resources/dashboards_dataset.py +27 -0
- databay/resources/dashboards_folder.py +47 -0
- databay/resources/dashboards_home.py +59 -0
- databay/resources/dashboards_placement.py +47 -0
- databay/resources/db.py +87 -0
- databay/resources/db_column.py +28 -0
- databay/resources/docs_article.py +37 -0
- databay/resources/dq_result.py +25 -0
- databay/resources/dq_rule.py +48 -0
- databay/resources/feature.py +21 -0
- databay/resources/google_ads_source.py +25 -0
- databay/resources/google_analytics_source.py +25 -0
- databay/resources/instagram_account.py +27 -0
- databay/resources/instagram_source.py +25 -0
- databay/resources/linkedin_account.py +27 -0
- databay/resources/linkedin_source.py +25 -0
- databay/resources/me.py +27 -0
- databay/resources/meta_ads_source.py +25 -0
- databay/resources/metric_models.py +154 -0
- databay/resources/metrics.py +57 -0
- databay/resources/models.py +42 -0
- databay/resources/nlq.py +34 -0
- databay/resources/notebook_credential.py +41 -0
- databay/resources/org.py +29 -0
- databay/resources/org_member.py +53 -0
- databay/resources/org_offboarding.py +25 -0
- databay/resources/pipe.py +208 -0
- databay/resources/pipe_backfill_run.py +28 -0
- databay/resources/pipe_config_option.py +26 -0
- databay/resources/pipe_destination.py +49 -0
- databay/resources/pipe_leftover.py +42 -0
- databay/resources/pipe_sink_type.py +21 -0
- databay/resources/pipe_source_type.py +21 -0
- databay/resources/pipe_status_bucket.py +21 -0
- databay/resources/pipe_stuck_delete.py +27 -0
- databay/resources/plan.py +21 -0
- databay/resources/project.py +92 -0
- databay/resources/project_budget.py +38 -0
- databay/resources/project_member.py +68 -0
- databay/resources/project_privilege.py +48 -0
- databay/resources/project_share.py +47 -0
- databay/resources/provision.py +21 -0
- databay/resources/provisioning.py +21 -0
- databay/resources/registry.py +21 -0
- databay/resources/resource_home.py +29 -0
- databay/resources/schema_change.py +62 -0
- databay/resources/schema_history.py +52 -0
- databay/resources/schema_version.py +43 -0
- databay/resources/shopify_store.py +25 -0
- databay/resources/sink_data_type.py +25 -0
- databay/resources/source.py +132 -0
- databay/resources/source_catalog.py +34 -0
- databay/resources/source_check_run.py +67 -0
- databay/resources/source_hidden_type.py +25 -0
- databay/resources/source_name.py +27 -0
- databay/resources/source_pipe.py +28 -0
- databay/resources/source_publication.py +47 -0
- databay/resources/source_readiness_override.py +37 -0
- databay/resources/source_setup_choice.py +50 -0
- databay/resources/source_stream.py +38 -0
- databay/resources/source_table.py +27 -0
- databay/resources/sql.py +27 -0
- databay/resources/ssbi_job.py +69 -0
- databay/resources/transform_type.py +21 -0
- databay/resources/usage.py +21 -0
- databay/resources/warehouse.py +136 -0
- databay/resources/warehouse_access_assignment.py +51 -0
- databay/resources/warehouse_access_role.py +118 -0
- databay/resources/warehouse_access_settings.py +56 -0
- databay/resources/warehouse_login.py +81 -0
- databay/resources/warehouse_principal.py +51 -0
- databay/resources/warehouse_service_account.py +61 -0
- databay/resources/warehouse_service_account_credential.py +78 -0
- databay/sdk.py +77 -0
- databay/settings.py +90 -0
- databay/skill/SKILL.md +357 -0
- databay/skill/references/commands.md +7025 -0
- databay/skill/references/errors.md +727 -0
- databay/spec.py +362 -0
- databay/stored_token.py +134 -0
- databay/tokens.py +108 -0
- databay/transport.py +357 -0
- databay/update_check.py +151 -0
- databay/version.py +6 -0
- databay/waits.py +330 -0
- databay_cli-0.1.0.dist-info/METADATA +42 -0
- databay_cli-0.1.0.dist-info/RECORD +403 -0
- databay_cli-0.1.0.dist-info/WHEEL +4 -0
- databay_cli-0.1.0.dist-info/entry_points.txt +2 -0
- databay_cli-0.1.0.dist-info/licenses/LICENSE +202 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"""The ``dashboards-home`` operations.
|
|
2
|
+
|
|
3
|
+
Generated by python/tools/gen_client.py from contract/core.json; do not edit.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from databay.operation import Body, Operation, Param, Response
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
DASHBOARDS_HOME_GET = Operation(
|
|
10
|
+
operation_id='dashboards_home_get',
|
|
11
|
+
noun='dashboards-home',
|
|
12
|
+
verb='get',
|
|
13
|
+
method='get',
|
|
14
|
+
path='/api/insights/projects/{project_id}/home',
|
|
15
|
+
summary="Read which dashboard is the project's Overview",
|
|
16
|
+
description="Answer the dashboard the project's Overview shows; ``dashboard_id`` is null until someone pins or sets one.",
|
|
17
|
+
project='path:project_id',
|
|
18
|
+
destructive=False,
|
|
19
|
+
idempotent=False,
|
|
20
|
+
since='1.0',
|
|
21
|
+
params=(
|
|
22
|
+
Param(
|
|
23
|
+
name='project_id',
|
|
24
|
+
location='path',
|
|
25
|
+
kind='string',
|
|
26
|
+
required=True,
|
|
27
|
+
description='Project Id',
|
|
28
|
+
),
|
|
29
|
+
),
|
|
30
|
+
body=None,
|
|
31
|
+
response=Response(
|
|
32
|
+
kind='json',
|
|
33
|
+
model='dashboards_home:ProjectHomeOut',
|
|
34
|
+
shape='object',
|
|
35
|
+
),
|
|
36
|
+
examples=(
|
|
37
|
+
'databay dashboards-home get',
|
|
38
|
+
),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
DASHBOARDS_HOME_PIN = Operation(
|
|
42
|
+
operation_id='dashboards_home_pin',
|
|
43
|
+
noun='dashboards-home',
|
|
44
|
+
verb='pin',
|
|
45
|
+
method='post',
|
|
46
|
+
path='/api/insights/projects/{project_id}/home/placements',
|
|
47
|
+
summary="Pin a card to the project's Overview",
|
|
48
|
+
description='Place a card of the project on its Overview dashboard and answer that dashboard.\n\nThe project\'s first pin creates an ordinary dashboard named "Overview" and makes it the Overview;\na card already there is 409 ``card_already_on_board``.',
|
|
49
|
+
project='path:project_id',
|
|
50
|
+
destructive=False,
|
|
51
|
+
idempotent=True,
|
|
52
|
+
since='1.0',
|
|
53
|
+
params=(
|
|
54
|
+
Param(
|
|
55
|
+
name='project_id',
|
|
56
|
+
location='path',
|
|
57
|
+
kind='string',
|
|
58
|
+
required=True,
|
|
59
|
+
description='Project Id',
|
|
60
|
+
),
|
|
61
|
+
),
|
|
62
|
+
body=Body(
|
|
63
|
+
schema='PlacementCreate',
|
|
64
|
+
fields=(
|
|
65
|
+
Param(
|
|
66
|
+
name='card_id',
|
|
67
|
+
location='body',
|
|
68
|
+
kind='string',
|
|
69
|
+
required=True,
|
|
70
|
+
description='Card Id',
|
|
71
|
+
),
|
|
72
|
+
),
|
|
73
|
+
),
|
|
74
|
+
response=Response(
|
|
75
|
+
kind='json',
|
|
76
|
+
model='shared:BoardOut',
|
|
77
|
+
shape='object',
|
|
78
|
+
),
|
|
79
|
+
examples=(
|
|
80
|
+
'databay dashboards-home pin --card-id <card_id>',
|
|
81
|
+
),
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
DASHBOARDS_HOME_PIN_MANY = Operation(
|
|
85
|
+
operation_id='dashboards_home_pin_many',
|
|
86
|
+
noun='dashboards-home',
|
|
87
|
+
verb='pin-many',
|
|
88
|
+
method='post',
|
|
89
|
+
path='/api/insights/projects/{project_id}/home/placements/batch',
|
|
90
|
+
summary="Pin several cards to the project's Overview",
|
|
91
|
+
description='Place 1 to 50 cards of the project on its Overview dashboard in one go, and answer that dashboard.\n\nThe first pin creates the Overview dashboard as a single pin does. A card already there is left as\nit is and listed in ``already_placed``. When any card cannot be placed (``card_not_found``,\n``filter_type_conflict``, ``invalid_layout`` at 100 cards) the whole batch is refused and nothing changes.',
|
|
92
|
+
project='path:project_id',
|
|
93
|
+
destructive=False,
|
|
94
|
+
idempotent=True,
|
|
95
|
+
since='1.0',
|
|
96
|
+
params=(
|
|
97
|
+
Param(
|
|
98
|
+
name='project_id',
|
|
99
|
+
location='path',
|
|
100
|
+
kind='string',
|
|
101
|
+
required=True,
|
|
102
|
+
description='Project Id',
|
|
103
|
+
),
|
|
104
|
+
),
|
|
105
|
+
body=Body(
|
|
106
|
+
schema='HomePinBatch',
|
|
107
|
+
fields=(
|
|
108
|
+
Param(
|
|
109
|
+
name='card_ids',
|
|
110
|
+
location='body',
|
|
111
|
+
kind='list',
|
|
112
|
+
required=True,
|
|
113
|
+
description='The cards to pin, 1 to 50, each named once.',
|
|
114
|
+
item_kind='string',
|
|
115
|
+
),
|
|
116
|
+
),
|
|
117
|
+
),
|
|
118
|
+
response=Response(
|
|
119
|
+
kind='json',
|
|
120
|
+
model='dashboards_home:HomePinBatchOut',
|
|
121
|
+
shape='object',
|
|
122
|
+
),
|
|
123
|
+
examples=(
|
|
124
|
+
'databay dashboards-home pin-many --file <card_ids_json_file>',
|
|
125
|
+
),
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
DASHBOARDS_HOME_SET = Operation(
|
|
129
|
+
operation_id='dashboards_home_set',
|
|
130
|
+
noun='dashboards-home',
|
|
131
|
+
verb='set',
|
|
132
|
+
method='put',
|
|
133
|
+
path='/api/insights/projects/{project_id}/home',
|
|
134
|
+
summary="Make a dashboard the project's Overview",
|
|
135
|
+
description='Make a dashboard of the project its Overview for everyone in it, replacing the one it showed.',
|
|
136
|
+
project='path:project_id',
|
|
137
|
+
destructive=True,
|
|
138
|
+
idempotent=False,
|
|
139
|
+
since='1.0',
|
|
140
|
+
params=(
|
|
141
|
+
Param(
|
|
142
|
+
name='project_id',
|
|
143
|
+
location='path',
|
|
144
|
+
kind='string',
|
|
145
|
+
required=True,
|
|
146
|
+
description='Project Id',
|
|
147
|
+
),
|
|
148
|
+
),
|
|
149
|
+
body=Body(
|
|
150
|
+
schema='ProjectHomeSet',
|
|
151
|
+
fields=(
|
|
152
|
+
Param(
|
|
153
|
+
name='dashboard_id',
|
|
154
|
+
location='body',
|
|
155
|
+
kind='string',
|
|
156
|
+
required=True,
|
|
157
|
+
description='Dashboard Id',
|
|
158
|
+
),
|
|
159
|
+
),
|
|
160
|
+
),
|
|
161
|
+
response=Response(
|
|
162
|
+
kind='json',
|
|
163
|
+
model='dashboards_home:ProjectHomeOut',
|
|
164
|
+
shape='object',
|
|
165
|
+
),
|
|
166
|
+
examples=(
|
|
167
|
+
'databay dashboards-home set --dashboard-id <board_id> --yes',
|
|
168
|
+
),
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
OPERATIONS = (
|
|
172
|
+
DASHBOARDS_HOME_GET,
|
|
173
|
+
DASHBOARDS_HOME_PIN,
|
|
174
|
+
DASHBOARDS_HOME_PIN_MANY,
|
|
175
|
+
DASHBOARDS_HOME_SET,
|
|
176
|
+
)
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"""The ``dashboards-placement`` operations.
|
|
2
|
+
|
|
3
|
+
Generated by python/tools/gen_client.py from contract/core.json; do not edit.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from databay.operation import Body, Operation, Param, Response
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
DASHBOARDS_PLACEMENT_CREATE = Operation(
|
|
10
|
+
operation_id='dashboards_placement_create',
|
|
11
|
+
noun='dashboards-placement',
|
|
12
|
+
verb='create',
|
|
13
|
+
method='post',
|
|
14
|
+
path='/api/insights/boards/{board_id}/placements',
|
|
15
|
+
summary='Place a card on a dashboard',
|
|
16
|
+
description="Place an existing card of the dashboard's project below its other cards; 409 when it is already there.",
|
|
17
|
+
project=None,
|
|
18
|
+
destructive=False,
|
|
19
|
+
idempotent=True,
|
|
20
|
+
since='1.0',
|
|
21
|
+
params=(
|
|
22
|
+
Param(
|
|
23
|
+
name='board_id',
|
|
24
|
+
location='path',
|
|
25
|
+
kind='string',
|
|
26
|
+
required=True,
|
|
27
|
+
description='Board Id',
|
|
28
|
+
),
|
|
29
|
+
),
|
|
30
|
+
body=Body(
|
|
31
|
+
schema='PlacementCreate',
|
|
32
|
+
fields=(
|
|
33
|
+
Param(
|
|
34
|
+
name='card_id',
|
|
35
|
+
location='body',
|
|
36
|
+
kind='string',
|
|
37
|
+
required=True,
|
|
38
|
+
description='Card Id',
|
|
39
|
+
),
|
|
40
|
+
),
|
|
41
|
+
),
|
|
42
|
+
response=Response(
|
|
43
|
+
kind='json',
|
|
44
|
+
model='shared:BoardOut',
|
|
45
|
+
shape='object',
|
|
46
|
+
),
|
|
47
|
+
examples=(
|
|
48
|
+
'databay dashboards-placement create <board_id> --card-id <card_id>',
|
|
49
|
+
),
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
DASHBOARDS_PLACEMENT_DELETE = Operation(
|
|
53
|
+
operation_id='dashboards_placement_delete',
|
|
54
|
+
noun='dashboards-placement',
|
|
55
|
+
verb='delete',
|
|
56
|
+
method='delete',
|
|
57
|
+
path='/api/insights/boards/{board_id}/placements/{card_id}',
|
|
58
|
+
summary='Take a card off a dashboard',
|
|
59
|
+
description='Take a card off the dashboard; the card stays in the project and on its other dashboards.',
|
|
60
|
+
project=None,
|
|
61
|
+
destructive=False,
|
|
62
|
+
idempotent=False,
|
|
63
|
+
since='1.0',
|
|
64
|
+
params=(
|
|
65
|
+
Param(
|
|
66
|
+
name='board_id',
|
|
67
|
+
location='path',
|
|
68
|
+
kind='string',
|
|
69
|
+
required=True,
|
|
70
|
+
description='Board Id',
|
|
71
|
+
),
|
|
72
|
+
Param(
|
|
73
|
+
name='card_id',
|
|
74
|
+
location='path',
|
|
75
|
+
kind='string',
|
|
76
|
+
required=True,
|
|
77
|
+
description='Card Id',
|
|
78
|
+
),
|
|
79
|
+
),
|
|
80
|
+
body=None,
|
|
81
|
+
response=Response(
|
|
82
|
+
kind='json',
|
|
83
|
+
model='shared:BoardOut',
|
|
84
|
+
shape='object',
|
|
85
|
+
),
|
|
86
|
+
examples=(
|
|
87
|
+
'databay dashboards-placement delete <board_id> <card_id>',
|
|
88
|
+
),
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
DASHBOARDS_PLACEMENT_RUN = Operation(
|
|
92
|
+
operation_id='dashboards_placement_run',
|
|
93
|
+
noun='dashboards-placement',
|
|
94
|
+
verb='run',
|
|
95
|
+
method='post',
|
|
96
|
+
path='/api/insights/boards/{board_id}/cards/{card_id}/run',
|
|
97
|
+
summary='Run one card of a dashboard',
|
|
98
|
+
description="Run one card that sits on the dashboard for the viewer, with the dashboard's filters.",
|
|
99
|
+
project=None,
|
|
100
|
+
destructive=False,
|
|
101
|
+
idempotent=False,
|
|
102
|
+
since='1.0',
|
|
103
|
+
params=(
|
|
104
|
+
Param(
|
|
105
|
+
name='board_id',
|
|
106
|
+
location='path',
|
|
107
|
+
kind='string',
|
|
108
|
+
required=True,
|
|
109
|
+
description='Board Id',
|
|
110
|
+
),
|
|
111
|
+
Param(
|
|
112
|
+
name='card_id',
|
|
113
|
+
location='path',
|
|
114
|
+
kind='string',
|
|
115
|
+
required=True,
|
|
116
|
+
description='Card Id',
|
|
117
|
+
),
|
|
118
|
+
),
|
|
119
|
+
body=Body(
|
|
120
|
+
schema='CardRunRequest',
|
|
121
|
+
fields=(
|
|
122
|
+
Param(
|
|
123
|
+
name='filters',
|
|
124
|
+
location='body',
|
|
125
|
+
kind='json',
|
|
126
|
+
required=False,
|
|
127
|
+
description='Filter values by filter key; absent filters take their defaults.',
|
|
128
|
+
),
|
|
129
|
+
Param(
|
|
130
|
+
name='refresh',
|
|
131
|
+
location='body',
|
|
132
|
+
kind='boolean',
|
|
133
|
+
required=False,
|
|
134
|
+
description='Skip the per-viewer result cache.',
|
|
135
|
+
),
|
|
136
|
+
),
|
|
137
|
+
),
|
|
138
|
+
response=Response(
|
|
139
|
+
kind='json',
|
|
140
|
+
model='shared:CardResult',
|
|
141
|
+
shape='object',
|
|
142
|
+
),
|
|
143
|
+
examples=(
|
|
144
|
+
'databay dashboards-placement run <board_id> <card_id>',
|
|
145
|
+
),
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
OPERATIONS = (
|
|
149
|
+
DASHBOARDS_PLACEMENT_CREATE,
|
|
150
|
+
DASHBOARDS_PLACEMENT_DELETE,
|
|
151
|
+
DASHBOARDS_PLACEMENT_RUN,
|
|
152
|
+
)
|
databay/operations/db.py
ADDED
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
"""The ``db`` operations.
|
|
2
|
+
|
|
3
|
+
Generated by python/tools/gen_client.py from contract/core.json; do not edit.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from databay.operation import Body, Operation, Param, Response, Verdict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
DB_CREATE = Operation(
|
|
10
|
+
operation_id='db_create',
|
|
11
|
+
noun='db',
|
|
12
|
+
verb='create',
|
|
13
|
+
method='post',
|
|
14
|
+
path='/api/configstore/db',
|
|
15
|
+
summary='Db Instance Create',
|
|
16
|
+
description='Register a database you run as a warehouse.',
|
|
17
|
+
project='header',
|
|
18
|
+
destructive=False,
|
|
19
|
+
idempotent=True,
|
|
20
|
+
since='1.0',
|
|
21
|
+
params=(),
|
|
22
|
+
body=Body(
|
|
23
|
+
schema='DBCreate',
|
|
24
|
+
fields=(
|
|
25
|
+
Param(
|
|
26
|
+
name='db_name',
|
|
27
|
+
location='body',
|
|
28
|
+
kind='string',
|
|
29
|
+
required=True,
|
|
30
|
+
description='actual database name in the server',
|
|
31
|
+
),
|
|
32
|
+
Param(
|
|
33
|
+
name='extra_config',
|
|
34
|
+
location='body',
|
|
35
|
+
kind='json',
|
|
36
|
+
required=False,
|
|
37
|
+
description='optional per-type settings; for ClickHouse this carries the single-node vs cluster topology',
|
|
38
|
+
nullable=True,
|
|
39
|
+
),
|
|
40
|
+
Param(
|
|
41
|
+
name='host',
|
|
42
|
+
location='body',
|
|
43
|
+
kind='string',
|
|
44
|
+
required=True,
|
|
45
|
+
description='host of the db',
|
|
46
|
+
),
|
|
47
|
+
Param(
|
|
48
|
+
name='name',
|
|
49
|
+
location='body',
|
|
50
|
+
kind='string',
|
|
51
|
+
required=True,
|
|
52
|
+
description='logical name for the database instance',
|
|
53
|
+
),
|
|
54
|
+
Param(
|
|
55
|
+
name='password',
|
|
56
|
+
location='body',
|
|
57
|
+
kind='string',
|
|
58
|
+
required=False,
|
|
59
|
+
description='password of the db instance created',
|
|
60
|
+
secret=True,
|
|
61
|
+
),
|
|
62
|
+
Param(
|
|
63
|
+
name='port',
|
|
64
|
+
location='body',
|
|
65
|
+
kind='integer',
|
|
66
|
+
required=True,
|
|
67
|
+
description='port number of the db',
|
|
68
|
+
),
|
|
69
|
+
Param(
|
|
70
|
+
name='type',
|
|
71
|
+
location='body',
|
|
72
|
+
kind='string',
|
|
73
|
+
required=True,
|
|
74
|
+
description='the db type',
|
|
75
|
+
choices=(
|
|
76
|
+
'mysql',
|
|
77
|
+
'postgres',
|
|
78
|
+
'clickhouse',
|
|
79
|
+
'mongodb',
|
|
80
|
+
'mssql',
|
|
81
|
+
),
|
|
82
|
+
),
|
|
83
|
+
Param(
|
|
84
|
+
name='username',
|
|
85
|
+
location='body',
|
|
86
|
+
kind='string',
|
|
87
|
+
required=True,
|
|
88
|
+
description='username for db to login',
|
|
89
|
+
),
|
|
90
|
+
),
|
|
91
|
+
),
|
|
92
|
+
response=Response(
|
|
93
|
+
kind='json',
|
|
94
|
+
model='db:WarehouseCreated',
|
|
95
|
+
shape='object',
|
|
96
|
+
),
|
|
97
|
+
examples=(
|
|
98
|
+
'databay db create --name <name> --type clickhouse --host <host> --port <port> --db-name <db_name> --username <username> --password-env <password_env>',
|
|
99
|
+
),
|
|
100
|
+
)
|
|
101
|
+
|
|
102
|
+
DB_DELETE = Operation(
|
|
103
|
+
operation_id='db_delete',
|
|
104
|
+
noun='db',
|
|
105
|
+
verb='delete',
|
|
106
|
+
method='delete',
|
|
107
|
+
path='/api/configstore/db/{db_uuid}',
|
|
108
|
+
summary='Delete Db',
|
|
109
|
+
description="Delete a sink DB that nothing writes into.\n\nIn an org that scopes resources only the home project's editors may delete it (403\n``not_home`` for a shared one; an organization-wide warehouse needs an org admin); one\nthe caller cannot see is a 404.\n\nRefused while pipes still write into it, so no pipe is left pointing at a missing sink.\nFails closed: if the pipeline service cannot be reached, nothing is deleted.",
|
|
110
|
+
project='header',
|
|
111
|
+
destructive=True,
|
|
112
|
+
idempotent=False,
|
|
113
|
+
since='1.0',
|
|
114
|
+
params=(
|
|
115
|
+
Param(
|
|
116
|
+
name='db_uuid',
|
|
117
|
+
location='path',
|
|
118
|
+
kind='string',
|
|
119
|
+
required=True,
|
|
120
|
+
description='uuid of the db instance',
|
|
121
|
+
),
|
|
122
|
+
),
|
|
123
|
+
body=None,
|
|
124
|
+
response=Response(
|
|
125
|
+
kind='json',
|
|
126
|
+
model='shared:WarehouseAcceptedResponse',
|
|
127
|
+
shape='object',
|
|
128
|
+
),
|
|
129
|
+
examples=(
|
|
130
|
+
'databay db delete <db_uuid> --yes',
|
|
131
|
+
),
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
DB_GET = Operation(
|
|
135
|
+
operation_id='db_get',
|
|
136
|
+
noun='db',
|
|
137
|
+
verb='get',
|
|
138
|
+
method='get',
|
|
139
|
+
path='/api/configstore/db/{db_uuid}',
|
|
140
|
+
summary='Get Db',
|
|
141
|
+
description='One warehouse, with ``relation`` and ``home_project_id`` in an org that scopes resources.',
|
|
142
|
+
project='header',
|
|
143
|
+
destructive=False,
|
|
144
|
+
idempotent=False,
|
|
145
|
+
since='1.0',
|
|
146
|
+
params=(
|
|
147
|
+
Param(
|
|
148
|
+
name='db_uuid',
|
|
149
|
+
location='path',
|
|
150
|
+
kind='string',
|
|
151
|
+
required=True,
|
|
152
|
+
description='uuid of the db instance',
|
|
153
|
+
),
|
|
154
|
+
),
|
|
155
|
+
body=None,
|
|
156
|
+
response=Response(
|
|
157
|
+
kind='json',
|
|
158
|
+
model='shared:PublicDBResponse',
|
|
159
|
+
shape='object',
|
|
160
|
+
),
|
|
161
|
+
examples=(
|
|
162
|
+
'databay db get <db_uuid>',
|
|
163
|
+
),
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
DB_GET_BY_NAME = Operation(
|
|
167
|
+
operation_id='db_get_by_name',
|
|
168
|
+
noun='db',
|
|
169
|
+
verb='get-by-name',
|
|
170
|
+
method='get',
|
|
171
|
+
path='/api/configstore/db/{db_name}/name',
|
|
172
|
+
summary='Get Db By Name',
|
|
173
|
+
description='',
|
|
174
|
+
project='header',
|
|
175
|
+
destructive=False,
|
|
176
|
+
idempotent=False,
|
|
177
|
+
since='1.0',
|
|
178
|
+
params=(
|
|
179
|
+
Param(
|
|
180
|
+
name='db_name',
|
|
181
|
+
location='path',
|
|
182
|
+
kind='string',
|
|
183
|
+
required=True,
|
|
184
|
+
description='name of the db instance',
|
|
185
|
+
),
|
|
186
|
+
),
|
|
187
|
+
body=None,
|
|
188
|
+
response=Response(
|
|
189
|
+
kind='json',
|
|
190
|
+
model='shared:PublicDBResponse',
|
|
191
|
+
shape='object',
|
|
192
|
+
),
|
|
193
|
+
examples=(
|
|
194
|
+
'databay db get-by-name analytics',
|
|
195
|
+
),
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
DB_LIST = Operation(
|
|
199
|
+
operation_id='db_list',
|
|
200
|
+
noun='db',
|
|
201
|
+
verb='list',
|
|
202
|
+
method='get',
|
|
203
|
+
path='/api/configstore/db',
|
|
204
|
+
summary='Get Dbs',
|
|
205
|
+
description='List the org\'s warehouses; in an org that scopes resources, those usable in the active project.\n\nHome, shared and organization-wide warehouses of ``X-Databay-Project-ID``\n(General with a ``Deprecation`` header when missing), plus ones still pending a home\nthere; quarantined ones ("Needs a home") for org admins only.',
|
|
206
|
+
project='header',
|
|
207
|
+
destructive=False,
|
|
208
|
+
idempotent=False,
|
|
209
|
+
since='1.0',
|
|
210
|
+
params=(),
|
|
211
|
+
body=None,
|
|
212
|
+
response=Response(
|
|
213
|
+
kind='json',
|
|
214
|
+
model='db:DbListResponse',
|
|
215
|
+
shape='array',
|
|
216
|
+
),
|
|
217
|
+
examples=(
|
|
218
|
+
'databay db list',
|
|
219
|
+
),
|
|
220
|
+
columns=(
|
|
221
|
+
'uuid',
|
|
222
|
+
'name',
|
|
223
|
+
'type',
|
|
224
|
+
'status',
|
|
225
|
+
),
|
|
226
|
+
)
|
|
227
|
+
|
|
228
|
+
DB_TEST = Operation(
|
|
229
|
+
operation_id='db_test',
|
|
230
|
+
noun='db',
|
|
231
|
+
verb='test',
|
|
232
|
+
method='post',
|
|
233
|
+
path='/api/configstore/db/test-connection',
|
|
234
|
+
summary='Db Test Connection',
|
|
235
|
+
description='Attempt to connect to a database using provided credentials.',
|
|
236
|
+
project=None,
|
|
237
|
+
destructive=False,
|
|
238
|
+
idempotent=False,
|
|
239
|
+
since='1.0',
|
|
240
|
+
params=(),
|
|
241
|
+
body=Body(
|
|
242
|
+
schema='DBCreate',
|
|
243
|
+
fields=(
|
|
244
|
+
Param(
|
|
245
|
+
name='db_name',
|
|
246
|
+
location='body',
|
|
247
|
+
kind='string',
|
|
248
|
+
required=True,
|
|
249
|
+
description='actual database name in the server',
|
|
250
|
+
),
|
|
251
|
+
Param(
|
|
252
|
+
name='extra_config',
|
|
253
|
+
location='body',
|
|
254
|
+
kind='json',
|
|
255
|
+
required=False,
|
|
256
|
+
description='optional per-type settings; for ClickHouse this carries the single-node vs cluster topology',
|
|
257
|
+
nullable=True,
|
|
258
|
+
),
|
|
259
|
+
Param(
|
|
260
|
+
name='host',
|
|
261
|
+
location='body',
|
|
262
|
+
kind='string',
|
|
263
|
+
required=True,
|
|
264
|
+
description='host of the db',
|
|
265
|
+
),
|
|
266
|
+
Param(
|
|
267
|
+
name='name',
|
|
268
|
+
location='body',
|
|
269
|
+
kind='string',
|
|
270
|
+
required=True,
|
|
271
|
+
description='logical name for the database instance',
|
|
272
|
+
),
|
|
273
|
+
Param(
|
|
274
|
+
name='password',
|
|
275
|
+
location='body',
|
|
276
|
+
kind='string',
|
|
277
|
+
required=False,
|
|
278
|
+
description='password of the db instance created',
|
|
279
|
+
secret=True,
|
|
280
|
+
),
|
|
281
|
+
Param(
|
|
282
|
+
name='port',
|
|
283
|
+
location='body',
|
|
284
|
+
kind='integer',
|
|
285
|
+
required=True,
|
|
286
|
+
description='port number of the db',
|
|
287
|
+
),
|
|
288
|
+
Param(
|
|
289
|
+
name='type',
|
|
290
|
+
location='body',
|
|
291
|
+
kind='string',
|
|
292
|
+
required=True,
|
|
293
|
+
description='the db type',
|
|
294
|
+
choices=(
|
|
295
|
+
'mysql',
|
|
296
|
+
'postgres',
|
|
297
|
+
'clickhouse',
|
|
298
|
+
'mongodb',
|
|
299
|
+
'mssql',
|
|
300
|
+
),
|
|
301
|
+
),
|
|
302
|
+
Param(
|
|
303
|
+
name='username',
|
|
304
|
+
location='body',
|
|
305
|
+
kind='string',
|
|
306
|
+
required=True,
|
|
307
|
+
description='username for db to login',
|
|
308
|
+
),
|
|
309
|
+
),
|
|
310
|
+
),
|
|
311
|
+
response=Response(
|
|
312
|
+
kind='json',
|
|
313
|
+
model='db:DBConnectionTestResponse',
|
|
314
|
+
shape='object',
|
|
315
|
+
),
|
|
316
|
+
examples=(
|
|
317
|
+
'databay db test --name analytics --type clickhouse --host ch.example.com --port 8123 --db-name analytics --username databay --password-env CH_PASSWORD',
|
|
318
|
+
),
|
|
319
|
+
verdict=Verdict(
|
|
320
|
+
field='/success',
|
|
321
|
+
ok=(
|
|
322
|
+
'true',
|
|
323
|
+
),
|
|
324
|
+
not_ready=(
|
|
325
|
+
'false',
|
|
326
|
+
),
|
|
327
|
+
),
|
|
328
|
+
)
|
|
329
|
+
|
|
330
|
+
OPERATIONS = (
|
|
331
|
+
DB_CREATE,
|
|
332
|
+
DB_DELETE,
|
|
333
|
+
DB_GET,
|
|
334
|
+
DB_GET_BY_NAME,
|
|
335
|
+
DB_LIST,
|
|
336
|
+
DB_TEST,
|
|
337
|
+
)
|