From ab9f28e4552084acfd5da87959fe1fa48dfe6e21 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 11 May 2026 21:04:26 +0200 Subject: [PATCH 1/2] deps: bump databricks-sdk-go to v0.132.0 Regenerates CLI command stubs, schemas, validation, and Python bindings against the new SDK and its companion OpenAPI spec (a499dda0f7802e37868d3f3076f62639165475d8). Breaking SDK changes addressed: - vectorsearch.{CreateEndpoint,PatchEndpointRequest}.MinQps renamed to TargetQps. - vectorsearch.EndpointScalingInfo.RequestedMinQps renamed to RequestedTargetQps. Updated dresources and testserver; renamed bundle acceptance tests from min_qps to target_qps to match the new field name. - apps.App.thumbnail_url added (server-managed); marked output_only in resources.yml so it stays out of the App Update mask. - postgres adds ReplaceExisting (Create{Branch,Endpoint}Request), Purge (DeleteProjectRequest), and DeleteTime/PurgeTime (Project). - compute.ConfidentialComputeType added; refreshed annotations_openapi.yml. - credentials/u2m removed the host-key fallback in PersistentAuth.loadToken (per v0.130). Dropped the cmd/auth/token_test case that relied on it. Co-authored-by: Isaac --- .codegen/_openapi_sha | 2 +- .gitattributes | 4 + .github/workflows/tagging.yml | 33 +- NEXT_CHANGELOG.md | 3 + .../auth/credentials/basic/out.requests.txt | 2 +- .../auth/credentials/oauth/out.requests.txt | 2 +- .../auth/credentials/pat/out.requests.txt | 2 +- acceptance/bundle/migrate/basic/output.txt | 8 +- .../bundle/migrate/permissions/output.txt | 8 +- acceptance/bundle/refschema/out.fields.txt | 98 +- .../databricks.yml.tmpl | 4 +- .../out.plan.direct.json | 2 +- .../{min_qps => target_qps}/out.test.toml | 0 .../drift/{min_qps => target_qps}/output.txt | 16 +- .../drift/{min_qps => target_qps}/script | 6 +- .../drift/{min_qps => target_qps}/test.toml | 0 .../databricks.yml.tmpl | 4 +- .../out.requests.create.direct.json | 4 +- .../out.requests.update.direct.json | 2 +- .../{min_qps => target_qps}/out.test.toml | 0 .../update/{min_qps => target_qps}/output.txt | 10 +- .../update/{min_qps => target_qps}/script | 4 +- .../update/{min_qps => target_qps}/test.toml | 0 .../bundle/state/state_present/output.txt | 6 +- .../custom-template/out.requests.txt | 2 +- .../telemetry/dbt-sql/out.requests.txt | 6 +- .../telemetry/default-python/out.requests.txt | 6 +- .../telemetry/default-sql/out.requests.txt | 4 +- acceptance/bundle/user_agent/output.txt | 102 +- .../simple/out.requests.deploy.direct.json | 38 +- .../simple/out.requests.deploy.terraform.json | 36 +- .../simple/out.requests.destroy.direct.json | 24 +- .../out.requests.destroy.terraform.json | 20 +- .../simple/out.requests.plan.direct.json | 8 +- .../simple/out.requests.plan.terraform.json | 8 +- .../simple/out.requests.plan2.direct.json | 14 +- .../simple/out.requests.plan2.terraform.json | 12 +- .../simple/out.requests.run.direct.json | 8 +- .../simple/out.requests.run.terraform.json | 8 +- .../simple/out.requests.summary.direct.json | 15 +- .../out.requests.summary.terraform.json | 15 +- .../simple/out.requests.validate.direct.json | 8 +- .../out.requests.validate.terraform.json | 8 +- .../cmd/account/account-help/output.txt | 14 +- acceptance/cmd/api/account-flag/output.txt | 2 +- acceptance/cmd/api/account-path/output.txt | 2 +- .../cmd/api/workspace-id-flag/output.txt | 2 +- .../api/workspace-id-from-query/output.txt | 2 +- .../cmd/api/workspace-id-none/output.txt | 2 +- acceptance/cmd/api/workspace-path/output.txt | 2 +- .../api/workspace-proxy-regression/output.txt | 2 +- acceptance/help/output.txt | 77 +- .../pipelines/databricks-cli-help/output.txt | 2 +- acceptance/telemetry/success/out.requests.txt | 2 +- .../workspace/jobs/create/out.requests.txt | 2 +- .../capture_uc_dependencies_test.go | 1 + bundle/direct/dresources/all_test.go | 1 + .../dresources/model_serving_endpoint.go | 5 + bundle/direct/dresources/postgres_branch.go | 2 + bundle/direct/dresources/postgres_endpoint.go | 2 + bundle/direct/dresources/postgres_project.go | 8 +- .../direct/dresources/resources.generated.yml | 2 + bundle/direct/dresources/resources.yml | 2 + bundle/direct/dresources/type_test.go | 2 +- .../dresources/vector_search_endpoint.go | 12 +- bundle/docsgen/output/reference.md | 26 +- bundle/docsgen/output/resources.md | 34 +- bundle/internal/schema/annotations.yml | 9 +- .../internal/schema/annotations_openapi.yml | 471 ++++- .../schema/annotations_openapi_overrides.yml | 4 + .../validation/generated/enum_fields.go | 153 +- bundle/schema/jsonschema.json | 485 ++++- bundle/schema/jsonschema_for_docs.json | 530 +++++- cmd/account/access-control/access-control.go | 34 +- cmd/account/billable-usage/billable-usage.go | 6 + cmd/account/budget-policy/budget-policy.go | 52 +- cmd/account/budgets/budgets.go | 50 +- cmd/account/cmd.go | 2 + cmd/account/credentials/credentials.go | 12 + .../csp-enablement-account.go | 26 +- .../custom-app-integration.go | 14 + .../disable-legacy-features.go | 10 + .../disaster-recovery/disaster-recovery.go | 865 +++++++++ .../enable-ip-access-lists.go | 10 + .../encryption-keys/encryption-keys.go | 25 +- cmd/account/endpoints/endpoints.go | 44 +- .../esm-enablement-account.go | 26 +- .../federation-policy/federation-policy.go | 14 + cmd/account/groups-v2/groups-v2.go | 16 + cmd/account/groups.go | 4 + cmd/account/iam-v2/iam-v2.go | 42 +- .../ip-access-lists/ip-access-lists.go | 16 + .../llm-proxy-partner-powered-account.go | 8 + .../llm-proxy-partner-powered-enforce.go | 8 + cmd/account/log-delivery/log-delivery.go | 12 + .../metastore-assignments.go | 14 + cmd/account/metastores/metastores.go | 14 + .../network-connectivity.go | 26 +- .../network-policies/network-policies.go | 14 + cmd/account/networks/networks.go | 12 + .../o-auth-published-apps.go | 6 + .../personal-compute/personal-compute.go | 10 + cmd/account/private-access/private-access.go | 14 + .../published-app-integration.go | 14 + .../service-principal-federation-policy.go | 14 + .../service-principal-secrets.go | 10 + .../service-principals-v2.go | 16 + cmd/account/settings-v2/settings-v2.go | 60 +- cmd/account/settings/settings.go | 4 + .../storage-credentials.go | 14 + cmd/account/storage/storage.go | 12 + .../usage-dashboards/usage-dashboards.go | 26 +- cmd/account/users-v2/users-v2.go | 16 + cmd/account/vpc-endpoints/vpc-endpoints.go | 12 + .../workspace-assignment.go | 12 + .../workspace-network-configuration.go | 8 + cmd/account/workspaces/workspaces.go | 14 + cmd/auth/token_test.go | 19 - .../access-control/access-control.go | 6 + cmd/workspace/agent-bricks/agent-bricks.go | 16 + .../aibi-dashboard-embedding-access-policy.go | 34 +- ...bi-dashboard-embedding-approved-domains.go | 34 +- cmd/workspace/alerts-legacy/alerts-legacy.go | 50 +- cmd/workspace/alerts-v2/alerts-v2.go | 52 +- cmd/workspace/alerts/alerts.go | 14 + cmd/workspace/apps-settings/apps-settings.go | 14 + cmd/workspace/apps/apps.go | 52 + .../artifact-allowlists.go | 8 + .../automatic-cluster-update.go | 26 +- cmd/workspace/catalogs/catalogs.go | 14 + .../clean-room-asset-revisions.go | 26 +- .../clean-room-assets/clean-room-assets.go | 22 +- .../clean-room-auto-approval-rules.go | 50 +- .../clean-room-task-runs.go | 6 + cmd/workspace/clean-rooms/clean-rooms.go | 16 + .../cluster-policies/cluster-policies.go | 22 + cmd/workspace/clusters/clusters.go | 46 + cmd/workspace/cmd.go | 6 + .../compliance-security-profile.go | 26 +- cmd/workspace/connections/connections.go | 14 + .../consumer-fulfillments.go | 28 +- .../consumer-installations.go | 50 +- .../consumer-listings/consumer-listings.go | 42 +- .../consumer-personalization-requests.go | 34 +- .../consumer-providers/consumer-providers.go | 36 +- .../credentials-manager.go | 19 +- cmd/workspace/credentials/credentials.go | 18 + cmd/workspace/current-user/current-user.go | 18 +- .../dashboard-email-subscriptions.go | 34 +- .../dashboard-widgets/dashboard-widgets.go | 10 + cmd/workspace/dashboards/dashboards.go | 14 + .../data-classification.go | 42 +- cmd/workspace/data-quality/data-quality.go | 98 +- cmd/workspace/data-sources/data-sources.go | 6 + cmd/workspace/database/database.go | 156 +- .../default-namespace/default-namespace.go | 34 +- .../default-warehouse-id.go | 10 + .../disable-legacy-access.go | 10 + .../disable-legacy-dbfs.go | 10 + .../enable-export-notebook.go | 26 +- .../enable-notebook-table-clipboard.go | 26 +- .../enable-results-downloading.go | 26 +- .../enhanced-security-monitoring.go | 26 +- .../entity-tag-assignments.go | 14 + cmd/workspace/environments/environments.go | 22 + cmd/workspace/experiments/experiments.go | 82 + .../external-lineage/external-lineage.go | 42 +- .../external-locations/external-locations.go | 14 + .../external-metadata/external-metadata.go | 50 +- .../feature-engineering.go | 34 + cmd/workspace/feature-store/feature-store.go | 18 + cmd/workspace/forecasting/forecasting.go | 8 + cmd/workspace/functions/functions.go | 14 + cmd/workspace/genie/genie.go | 109 +- .../git-credentials/git-credentials.go | 30 +- .../global-init-scripts.go | 14 + cmd/workspace/grants/grants.go | 10 + cmd/workspace/groups-v2/groups-v2.go | 58 +- .../instance-pools/instance-pools.go | 22 + .../instance-profiles/instance-profiles.go | 12 + .../ip-access-lists/ip-access-lists.go | 16 + cmd/workspace/jobs/jobs.go | 44 + .../knowledge-assistants.go | 782 ++++++++- .../lakeview-embedded/lakeview-embedded.go | 12 +- cmd/workspace/lakeview/lakeview.go | 40 + cmd/workspace/libraries/libraries.go | 12 + .../llm-proxy-partner-powered-workspace.go | 10 + .../materialized-features.go | 16 + cmd/workspace/metastores/metastores.go | 24 + .../model-registry/model-registry.go | 76 + .../model-versions/model-versions.go | 14 + .../notification-destinations.go | 14 + cmd/workspace/online-tables/online-tables.go | 34 +- .../permission-migration.go | 6 + cmd/workspace/permissions/permissions.go | 36 +- cmd/workspace/pipelines/pipelines.go | 44 +- cmd/workspace/policies/policies.go | 50 +- .../policy-compliance-for-clusters.go | 12 +- .../policy-compliance-for-jobs.go | 10 + .../policy-families/policy-families.go | 8 + cmd/workspace/postgres/postgres.go | 360 +++- .../provider-exchange-filters.go | 44 +- .../provider-exchanges/provider-exchanges.go | 82 +- .../provider-files/provider-files.go | 42 +- .../provider-listings/provider-listings.go | 50 +- .../provider-personalization-requests.go | 26 +- .../provider-provider-analytics-dashboards.go | 44 +- .../provider-providers/provider-providers.go | 52 +- cmd/workspace/providers/providers.go | 18 + .../quality-monitor-v2/quality-monitor-v2.go | 50 +- .../quality-monitors/quality-monitors.go | 22 + .../queries-legacy/queries-legacy.go | 16 + cmd/workspace/queries/queries.go | 16 + cmd/workspace/query-history/query-history.go | 6 + .../query-visualizations-legacy.go | 10 + .../query-visualizations.go | 10 + .../recipient-activation.go | 8 + .../recipient-federation-policies.go | 42 +- cmd/workspace/recipients/recipients.go | 18 + cmd/workspace/redash-config/redash-config.go | 6 + .../registered-models/registered-models.go | 18 + cmd/workspace/repos/repos.go | 30 +- .../resource-quotas/resource-quotas.go | 8 + .../restrict-workspace-admins.go | 34 +- cmd/workspace/rfa/rfa.go | 34 +- cmd/workspace/schemas/schemas.go | 14 + cmd/workspace/secrets-uc/secrets-uc.go | 523 ++++++ cmd/workspace/secrets/secrets.go | 24 + .../service-principal-secrets-proxy.go | 10 + .../service-principals-v2.go | 58 +- .../serving-endpoints/serving-endpoints.go | 70 +- cmd/workspace/settings/settings.go | 4 + cmd/workspace/shares/shares.go | 18 + .../sql-results-download.go | 34 +- .../storage-credentials.go | 16 + .../supervisor-agents/supervisor-agents.go | 1553 +++++++++++++++++ .../system-schemas/system-schemas.go | 34 +- .../table-constraints/table-constraints.go | 8 + cmd/workspace/tables/tables.go | 24 +- cmd/workspace/tag-policies/tag-policies.go | 14 + .../temporary-path-credentials.go | 22 +- .../temporary-table-credentials.go | 22 +- .../temporary-volume-credentials.go | 137 ++ .../token-management/token-management.go | 20 + cmd/workspace/tokens/tokens.go | 90 + cmd/workspace/users-v2/users-v2.go | 90 +- .../vector-search-endpoints.go | 314 +++- .../vector-search-indexes.go | 24 + cmd/workspace/volumes/volumes.go | 14 + cmd/workspace/warehouses/warehouses.go | 70 +- .../workspace-bindings/workspace-bindings.go | 12 + .../workspace-conf/workspace-conf.go | 8 + .../workspace-entity-tag-assignments.go | 52 +- .../workspace-iam-v2/workspace-iam-v2.go | 42 +- .../workspace-settings-v2.go | 36 +- cmd/workspace/workspace/workspace.go | 49 +- go.mod | 2 +- go.sum | 4 +- internal/genkit/tagging.py | 558 +++++- libs/testserver/serving_endpoints.go | 4 + libs/testserver/vector_search_endpoints.go | 4 +- .../_models/azure_encryption_settings.py | 4 +- .../bundles/catalogs/_models/catalog.py | 4 - .../catalogs/_models/encryption_settings.py | 2 - .../bundles/catalogs/_models/privilege.py | 24 + python/databricks/bundles/jobs/__init__.py | 6 + .../jobs/_models/confidential_compute_type.py | 21 + .../bundles/jobs/_models/environment.py | 2 +- .../bundles/jobs/_models/gcp_attributes.py | 22 + .../jobs/_models/hardware_accelerator_type.py | 3 +- .../bundles/jobs/_models/pipeline_params.py | 4 +- .../bundles/jobs/_models/pipeline_task.py | 4 +- .../databricks/bundles/pipelines/__init__.py | 74 + .../_models/confidential_compute_type.py | 21 + .../_models/confluence_connector_options.py | 42 + .../pipelines/_models/connector_options.py | 98 +- .../_models/file_ingestion_options.py | 5 +- .../pipelines/_models/gcp_attributes.py | 22 + .../pipelines/_models/google_ads_config.py | 48 + .../pipelines/_models/ingestion_config.py | 10 +- .../_models/ingestion_pipeline_definition.py | 4 - ...fic_config_query_based_connector_config.py | 14 - .../_models/jira_connector_options.py | 40 + .../_models/meta_marketing_options.py | 114 ++ .../_models/outlook_attachment_mode.py | 20 + .../pipelines/_models/outlook_body_format.py | 16 + .../pipelines/_models/outlook_options.py | 176 ++ .../bundles/pipelines/_models/pipeline.py | 4 +- .../_models/pipelines_environment.py | 2 +- .../bundles/pipelines/_models/schema_spec.py | 4 - .../pipelines/_models/smartsheet_options.py | 50 + .../pipelines/_models/source_config.py | 14 + .../bundles/pipelines/_models/table_spec.py | 4 - .../_models/table_specific_config.py | 12 - .../_models/table_specific_config_scd_type.py | 2 - .../_models/zendesk_support_options.py | 44 + .../bundles/schemas/_models/privilege.py | 24 + .../bundles/volumes/_models/privilege.py | 24 + 298 files changed, 11744 insertions(+), 1483 deletions(-) rename acceptance/bundle/resources/vector_search_endpoints/drift/{min_qps => target_qps}/databricks.yml.tmpl (68%) rename acceptance/bundle/resources/vector_search_endpoints/drift/{min_qps => target_qps}/out.plan.direct.json (90%) rename acceptance/bundle/resources/vector_search_endpoints/drift/{min_qps => target_qps}/out.test.toml (100%) rename acceptance/bundle/resources/vector_search_endpoints/drift/{min_qps => target_qps}/output.txt (78%) rename acceptance/bundle/resources/vector_search_endpoints/drift/{min_qps => target_qps}/script (85%) rename acceptance/bundle/resources/vector_search_endpoints/drift/{min_qps => target_qps}/test.toml (100%) rename acceptance/bundle/resources/vector_search_endpoints/update/{min_qps => target_qps}/databricks.yml.tmpl (75%) rename acceptance/bundle/resources/vector_search_endpoints/update/{min_qps => target_qps}/out.requests.create.direct.json (87%) rename acceptance/bundle/resources/vector_search_endpoints/update/{min_qps => target_qps}/out.requests.update.direct.json (95%) rename acceptance/bundle/resources/vector_search_endpoints/update/{min_qps => target_qps}/out.test.toml (100%) rename acceptance/bundle/resources/vector_search_endpoints/update/{min_qps => target_qps}/output.txt (80%) rename acceptance/bundle/resources/vector_search_endpoints/update/{min_qps => target_qps}/script (88%) rename acceptance/bundle/resources/vector_search_endpoints/update/{min_qps => target_qps}/test.toml (100%) create mode 100755 cmd/account/disaster-recovery/disaster-recovery.go create mode 100755 cmd/workspace/secrets-uc/secrets-uc.go create mode 100755 cmd/workspace/supervisor-agents/supervisor-agents.go create mode 100755 cmd/workspace/temporary-volume-credentials/temporary-volume-credentials.go create mode 100644 python/databricks/bundles/jobs/_models/confidential_compute_type.py create mode 100644 python/databricks/bundles/pipelines/_models/confidential_compute_type.py create mode 100644 python/databricks/bundles/pipelines/_models/confluence_connector_options.py create mode 100644 python/databricks/bundles/pipelines/_models/google_ads_config.py create mode 100644 python/databricks/bundles/pipelines/_models/jira_connector_options.py create mode 100644 python/databricks/bundles/pipelines/_models/meta_marketing_options.py create mode 100644 python/databricks/bundles/pipelines/_models/outlook_attachment_mode.py create mode 100644 python/databricks/bundles/pipelines/_models/outlook_body_format.py create mode 100644 python/databricks/bundles/pipelines/_models/outlook_options.py create mode 100644 python/databricks/bundles/pipelines/_models/smartsheet_options.py create mode 100644 python/databricks/bundles/pipelines/_models/zendesk_support_options.py diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index 15378345074..6e816b0ebb8 100644 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -11ae6f9d98f0d0838a5e53c27032f178fecc4ee0 \ No newline at end of file +a499dda0f7802e37868d3f3076f62639165475d8 \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index ffe19eb43c4..44638c51278 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,6 +8,7 @@ cmd/account/credentials/credentials.go linguist-generated=true cmd/account/csp-enablement-account/csp-enablement-account.go linguist-generated=true cmd/account/custom-app-integration/custom-app-integration.go linguist-generated=true cmd/account/disable-legacy-features/disable-legacy-features.go linguist-generated=true +cmd/account/disaster-recovery/disaster-recovery.go linguist-generated=true cmd/account/enable-ip-access-lists/enable-ip-access-lists.go linguist-generated=true cmd/account/encryption-keys/encryption-keys.go linguist-generated=true cmd/account/endpoints/endpoints.go linguist-generated=true @@ -151,6 +152,7 @@ cmd/workspace/resource-quotas/resource-quotas.go linguist-generated=true cmd/workspace/restrict-workspace-admins/restrict-workspace-admins.go linguist-generated=true cmd/workspace/rfa/rfa.go linguist-generated=true cmd/workspace/schemas/schemas.go linguist-generated=true +cmd/workspace/secrets-uc/secrets-uc.go linguist-generated=true cmd/workspace/secrets/secrets.go linguist-generated=true cmd/workspace/service-principal-secrets-proxy/service-principal-secrets-proxy.go linguist-generated=true cmd/workspace/service-principals-v2/service-principals-v2.go linguist-generated=true @@ -159,12 +161,14 @@ cmd/workspace/settings/settings.go linguist-generated=true cmd/workspace/shares/shares.go linguist-generated=true cmd/workspace/sql-results-download/sql-results-download.go linguist-generated=true cmd/workspace/storage-credentials/storage-credentials.go linguist-generated=true +cmd/workspace/supervisor-agents/supervisor-agents.go linguist-generated=true cmd/workspace/system-schemas/system-schemas.go linguist-generated=true cmd/workspace/table-constraints/table-constraints.go linguist-generated=true cmd/workspace/tables/tables.go linguist-generated=true cmd/workspace/tag-policies/tag-policies.go linguist-generated=true cmd/workspace/temporary-path-credentials/temporary-path-credentials.go linguist-generated=true cmd/workspace/temporary-table-credentials/temporary-table-credentials.go linguist-generated=true +cmd/workspace/temporary-volume-credentials/temporary-volume-credentials.go linguist-generated=true cmd/workspace/token-management/token-management.go linguist-generated=true cmd/workspace/tokens/tokens.go linguist-generated=true cmd/workspace/users-v2/users-v2.go linguist-generated=true diff --git a/.github/workflows/tagging.yml b/.github/workflows/tagging.yml index cbb9cfb591c..b1a2e3f93ed 100644 --- a/.github/workflows/tagging.yml +++ b/.github/workflows/tagging.yml @@ -4,7 +4,12 @@ name: tagging on: # Manual dispatch. workflow_dispatch: - # No inputs are required for the manual dispatch. + inputs: + packages: + description: 'Comma-separated list of packages to tag (e.g. "pkg1,pkg2"). Leave empty to tag all packages with pending releases.' + required: false + type: string + default: '' # NOTE: Temporarily disable automated releases. # @@ -31,8 +36,8 @@ jobs: github.repository == 'databricks/databricks-sdk-java' environment: "release-is" runs-on: - group: databricks-deco-testing-runner-group - labels: ubuntu-latest-deco + group: databricks-protected-runner-group + labels: linux-ubuntu-latest steps: - name: Generate GitHub App Token id: generate-token @@ -44,6 +49,12 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + # Force re-resolution of ``main`` at step time. Without + # ``ref:``, checkout pins to ``github.sha`` — the SHA frozen + # at workflow_dispatch time — which means re-running a stale + # dispatch checks out an older main even when newer commits + # exist. + ref: main fetch-depth: 0 token: ${{ steps.generate-token.outputs.token }} @@ -60,4 +71,18 @@ jobs: env: GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} GITHUB_REPOSITORY: ${{ github.repository }} - run: uv run --locked internal/genkit/tagging.py + PACKAGES: ${{ inputs.packages }} + run: | + if [ -n "$PACKAGES" ]; then + uv run --locked internal/genkit/tagging.py --package "$PACKAGES" + else + uv run --locked internal/genkit/tagging.py + fi + + - name: Upload created tags artifact + if: always() + uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 + with: + name: created-tags + path: created_tags.json + if-no-files-found: ignore diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index b6bdb4d965b..45f0c2ea113 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -17,3 +17,6 @@ ### Dependency updates * Bump Go toolchain to 1.25.10 ([#5213](https://github.com/databricks/cli/pull/5213)). +* Bump `github.com/databricks/databricks-sdk-go` from v0.128.0 to v0.132.0. + +### API Changes diff --git a/acceptance/auth/credentials/basic/out.requests.txt b/acceptance/auth/credentials/basic/out.requests.txt index 689113dd08c..2c21cbefbea 100644 --- a/acceptance/auth/credentials/basic/out.requests.txt +++ b/acceptance/auth/credentials/basic/out.requests.txt @@ -13,7 +13,7 @@ "Basic [ENCODED_AUTH]" ], "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/current-user_me cmd-exec-id/[UUID] interactive/none auth/basic" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/current-user_me cmd-exec-id/[UUID] interactive/none auth/basic agent/multiple" ] }, "method": "GET", diff --git a/acceptance/auth/credentials/oauth/out.requests.txt b/acceptance/auth/credentials/oauth/out.requests.txt index c3b7b53a7f4..38b8fd81e51 100644 --- a/acceptance/auth/credentials/oauth/out.requests.txt +++ b/acceptance/auth/credentials/oauth/out.requests.txt @@ -35,7 +35,7 @@ "Bearer oauth-token" ], "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/current-user_me cmd-exec-id/[UUID] interactive/none auth/oauth-m2m" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/current-user_me cmd-exec-id/[UUID] interactive/none auth/oauth-m2m agent/multiple" ] }, "method": "GET", diff --git a/acceptance/auth/credentials/pat/out.requests.txt b/acceptance/auth/credentials/pat/out.requests.txt index c01b146d530..6e411785678 100644 --- a/acceptance/auth/credentials/pat/out.requests.txt +++ b/acceptance/auth/credentials/pat/out.requests.txt @@ -13,7 +13,7 @@ "Bearer dapi1234" ], "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/current-user_me cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/current-user_me cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", diff --git a/acceptance/bundle/migrate/basic/output.txt b/acceptance/bundle/migrate/basic/output.txt index 0d31bbd682f..ef5c4cccbf7 100644 --- a/acceptance/bundle/migrate/basic/output.txt +++ b/acceptance/bundle/migrate/basic/output.txt @@ -51,7 +51,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 3 unchanged { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -63,7 +63,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 3 unchanged { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -80,8 +80,8 @@ Updating deployment state... Deployment complete! >>> print_requests.py --get //jobs/get -"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" -"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" +"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" +"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" === Should show that it's already migrated >>> musterr [CLI] bundle deployment migrate diff --git a/acceptance/bundle/migrate/permissions/output.txt b/acceptance/bundle/migrate/permissions/output.txt index 953a4bae979..0ecf4e39e58 100644 --- a/acceptance/bundle/migrate/permissions/output.txt +++ b/acceptance/bundle/migrate/permissions/output.txt @@ -27,7 +27,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 4 unchanged { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -39,7 +39,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 4 unchanged { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -56,8 +56,8 @@ Updating deployment state... Deployment complete! >>> print_requests.py --get //jobs/get -"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" -"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" +"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" +"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" === Should show that it's already migrated >>> musterr [CLI] bundle deployment migrate diff --git a/acceptance/bundle/refschema/out.fields.txt b/acceptance/bundle/refschema/out.fields.txt index c79b0d3533c..999296b2139 100644 --- a/acceptance/bundle/refschema/out.fields.txt +++ b/acceptance/bundle/refschema/out.fields.txt @@ -210,6 +210,7 @@ resources.apps.*.telemetry_export_destinations[*].unity_catalog *apps.UnityCatal resources.apps.*.telemetry_export_destinations[*].unity_catalog.logs_table string ALL resources.apps.*.telemetry_export_destinations[*].unity_catalog.metrics_table string ALL resources.apps.*.telemetry_export_destinations[*].unity_catalog.traces_table string ALL +resources.apps.*.thumbnail_url string ALL resources.apps.*.update_time string ALL resources.apps.*.updater string ALL resources.apps.*.url string ALL @@ -353,6 +354,7 @@ resources.clusters.*.executors[*].start_timestamp int64 REMOTE resources.clusters.*.gcp_attributes *compute.GcpAttributes ALL resources.clusters.*.gcp_attributes.availability compute.GcpAvailability ALL resources.clusters.*.gcp_attributes.boot_disk_size int ALL +resources.clusters.*.gcp_attributes.confidential_compute_type compute.ConfidentialComputeType ALL resources.clusters.*.gcp_attributes.first_on_demand int ALL resources.clusters.*.gcp_attributes.google_service_account string ALL resources.clusters.*.gcp_attributes.local_ssd_count int ALL @@ -458,6 +460,7 @@ resources.clusters.*.spec.enable_local_disk_encryption bool REMOTE resources.clusters.*.spec.gcp_attributes *compute.GcpAttributes REMOTE resources.clusters.*.spec.gcp_attributes.availability compute.GcpAvailability REMOTE resources.clusters.*.spec.gcp_attributes.boot_disk_size int REMOTE +resources.clusters.*.spec.gcp_attributes.confidential_compute_type compute.ConfidentialComputeType REMOTE resources.clusters.*.spec.gcp_attributes.first_on_demand int REMOTE resources.clusters.*.spec.gcp_attributes.google_service_account string REMOTE resources.clusters.*.spec.gcp_attributes.local_ssd_count int REMOTE @@ -844,6 +847,7 @@ resources.jobs.*.job_clusters[*].new_cluster.enable_local_disk_encryption bool A resources.jobs.*.job_clusters[*].new_cluster.gcp_attributes *compute.GcpAttributes ALL resources.jobs.*.job_clusters[*].new_cluster.gcp_attributes.availability compute.GcpAvailability ALL resources.jobs.*.job_clusters[*].new_cluster.gcp_attributes.boot_disk_size int ALL +resources.jobs.*.job_clusters[*].new_cluster.gcp_attributes.confidential_compute_type compute.ConfidentialComputeType ALL resources.jobs.*.job_clusters[*].new_cluster.gcp_attributes.first_on_demand int ALL resources.jobs.*.job_clusters[*].new_cluster.gcp_attributes.google_service_account string ALL resources.jobs.*.job_clusters[*].new_cluster.gcp_attributes.local_ssd_count int ALL @@ -1163,6 +1167,7 @@ resources.jobs.*.tasks[*].for_each_task.task.new_cluster.enable_local_disk_encry resources.jobs.*.tasks[*].for_each_task.task.new_cluster.gcp_attributes *compute.GcpAttributes ALL resources.jobs.*.tasks[*].for_each_task.task.new_cluster.gcp_attributes.availability compute.GcpAvailability ALL resources.jobs.*.tasks[*].for_each_task.task.new_cluster.gcp_attributes.boot_disk_size int ALL +resources.jobs.*.tasks[*].for_each_task.task.new_cluster.gcp_attributes.confidential_compute_type compute.ConfidentialComputeType ALL resources.jobs.*.tasks[*].for_each_task.task.new_cluster.gcp_attributes.first_on_demand int ALL resources.jobs.*.tasks[*].for_each_task.task.new_cluster.gcp_attributes.google_service_account string ALL resources.jobs.*.tasks[*].for_each_task.task.new_cluster.gcp_attributes.local_ssd_count int ALL @@ -1423,6 +1428,7 @@ resources.jobs.*.tasks[*].new_cluster.enable_local_disk_encryption bool ALL resources.jobs.*.tasks[*].new_cluster.gcp_attributes *compute.GcpAttributes ALL resources.jobs.*.tasks[*].new_cluster.gcp_attributes.availability compute.GcpAvailability ALL resources.jobs.*.tasks[*].new_cluster.gcp_attributes.boot_disk_size int ALL +resources.jobs.*.tasks[*].new_cluster.gcp_attributes.confidential_compute_type compute.ConfidentialComputeType ALL resources.jobs.*.tasks[*].new_cluster.gcp_attributes.first_on_demand int ALL resources.jobs.*.tasks[*].new_cluster.gcp_attributes.google_service_account string ALL resources.jobs.*.tasks[*].new_cluster.gcp_attributes.local_ssd_count int ALL @@ -2205,6 +2211,7 @@ resources.pipelines.*.clusters[*].enable_local_disk_encryption bool ALL resources.pipelines.*.clusters[*].gcp_attributes *compute.GcpAttributes ALL resources.pipelines.*.clusters[*].gcp_attributes.availability compute.GcpAvailability ALL resources.pipelines.*.clusters[*].gcp_attributes.boot_disk_size int ALL +resources.pipelines.*.clusters[*].gcp_attributes.confidential_compute_type compute.ConfidentialComputeType ALL resources.pipelines.*.clusters[*].gcp_attributes.first_on_demand int ALL resources.pipelines.*.clusters[*].gcp_attributes.google_service_account string ALL resources.pipelines.*.clusters[*].gcp_attributes.local_ssd_count int ALL @@ -2330,6 +2337,9 @@ resources.pipelines.*.ingestion_definition.objects[*].report.table_configuration resources.pipelines.*.ingestion_definition.objects[*].report.table_configuration.workday_report_parameters.report_parameters[*].value string ALL resources.pipelines.*.ingestion_definition.objects[*].schema *pipelines.SchemaSpec ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options *pipelines.ConnectorOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.confluence_options *pipelines.ConfluenceConnectorOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.confluence_options.include_confluence_spaces []string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.confluence_options.include_confluence_spaces[*] string ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.gdrive_options *pipelines.GoogleDriveOptions ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.gdrive_options.entity_type pipelines.GoogleDriveOptionsGoogleDriveEntityType ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.gdrive_options.file_ingestion_options *pipelines.FileIngestionOptions ALL @@ -2354,6 +2364,39 @@ resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.g resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.google_ads_options.lookback_window_days int ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.google_ads_options.manager_account_id string ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.google_ads_options.sync_start_date string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.jira_options *pipelines.JiraConnectorOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.jira_options.include_jira_spaces []string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.jira_options.include_jira_spaces[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options *pipelines.MetaMarketingOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.action_attribution_windows []string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.action_attribution_windows[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.action_breakdowns []string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.action_breakdowns[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.action_report_time string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.breakdowns []string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.breakdowns[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.custom_insights_lookback_window int ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.level string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.start_date string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.meta_ads_options.time_increment string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options *pipelines.OutlookOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.attachment_mode pipelines.OutlookAttachmentMode ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.body_format pipelines.OutlookBodyFormat ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.folder_filter []string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.folder_filter[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.include_folders []string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.include_folders[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.include_mailboxes []string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.include_mailboxes[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.include_senders []string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.include_senders[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.include_subjects []string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.include_subjects[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.sender_filter []string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.sender_filter[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.start_date string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.subject_filter []string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.subject_filter[*] string ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.sharepoint_options *pipelines.SharepointOptions ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.sharepoint_options.entity_type pipelines.SharepointOptionsSharepointEntityType ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.sharepoint_options.file_ingestion_options *pipelines.FileIngestionOptions ALL @@ -2374,6 +2417,8 @@ resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.s resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.sharepoint_options.file_ingestion_options.schema_hints string ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.sharepoint_options.file_ingestion_options.single_variant_column string ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.sharepoint_options.url string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.smartsheet_options *pipelines.SmartsheetOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.smartsheet_options.enforce_schema bool ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.tiktok_ads_options *pipelines.TikTokAdsOptions ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.tiktok_ads_options.data_level pipelines.TikTokAdsOptionsTikTokDataLevel ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.tiktok_ads_options.dimensions []string ALL @@ -2384,6 +2429,8 @@ resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.t resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.tiktok_ads_options.query_lifetime bool ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.tiktok_ads_options.report_type pipelines.TikTokAdsOptionsTikTokReportType ALL resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.tiktok_ads_options.sync_start_date string ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.zendesk_support_options *pipelines.ZendeskSupportOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.zendesk_support_options.start_date string ALL resources.pipelines.*.ingestion_definition.objects[*].schema.destination_catalog string ALL resources.pipelines.*.ingestion_definition.objects[*].schema.destination_schema string ALL resources.pipelines.*.ingestion_definition.objects[*].schema.source_catalog string ALL @@ -2418,6 +2465,9 @@ resources.pipelines.*.ingestion_definition.objects[*].schema.table_configuration resources.pipelines.*.ingestion_definition.objects[*].schema.table_configuration.workday_report_parameters.report_parameters[*].value string ALL resources.pipelines.*.ingestion_definition.objects[*].table *pipelines.TableSpec ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options *pipelines.ConnectorOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.confluence_options *pipelines.ConfluenceConnectorOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.confluence_options.include_confluence_spaces []string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.confluence_options.include_confluence_spaces[*] string ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.gdrive_options *pipelines.GoogleDriveOptions ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.gdrive_options.entity_type pipelines.GoogleDriveOptionsGoogleDriveEntityType ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.gdrive_options.file_ingestion_options *pipelines.FileIngestionOptions ALL @@ -2442,6 +2492,39 @@ resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.go resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.google_ads_options.lookback_window_days int ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.google_ads_options.manager_account_id string ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.google_ads_options.sync_start_date string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.jira_options *pipelines.JiraConnectorOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.jira_options.include_jira_spaces []string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.jira_options.include_jira_spaces[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options *pipelines.MetaMarketingOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.action_attribution_windows []string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.action_attribution_windows[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.action_breakdowns []string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.action_breakdowns[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.action_report_time string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.breakdowns []string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.breakdowns[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.custom_insights_lookback_window int ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.level string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.start_date string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.meta_ads_options.time_increment string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options *pipelines.OutlookOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.attachment_mode pipelines.OutlookAttachmentMode ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.body_format pipelines.OutlookBodyFormat ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.folder_filter []string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.folder_filter[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.include_folders []string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.include_folders[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.include_mailboxes []string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.include_mailboxes[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.include_senders []string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.include_senders[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.include_subjects []string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.include_subjects[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.sender_filter []string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.sender_filter[*] string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.start_date string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.subject_filter []string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.subject_filter[*] string ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.sharepoint_options *pipelines.SharepointOptions ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.sharepoint_options.entity_type pipelines.SharepointOptionsSharepointEntityType ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.sharepoint_options.file_ingestion_options *pipelines.FileIngestionOptions ALL @@ -2462,6 +2545,8 @@ resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.sh resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.sharepoint_options.file_ingestion_options.schema_hints string ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.sharepoint_options.file_ingestion_options.single_variant_column string ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.sharepoint_options.url string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.smartsheet_options *pipelines.SmartsheetOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.smartsheet_options.enforce_schema bool ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.tiktok_ads_options *pipelines.TikTokAdsOptions ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.tiktok_ads_options.data_level pipelines.TikTokAdsOptionsTikTokDataLevel ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.tiktok_ads_options.dimensions []string ALL @@ -2472,6 +2557,8 @@ resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.ti resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.tiktok_ads_options.query_lifetime bool ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.tiktok_ads_options.report_type pipelines.TikTokAdsOptionsTikTokReportType ALL resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.tiktok_ads_options.sync_start_date string ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.zendesk_support_options *pipelines.ZendeskSupportOptions ALL +resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.zendesk_support_options.start_date string ALL resources.pipelines.*.ingestion_definition.objects[*].table.destination_catalog string ALL resources.pipelines.*.ingestion_definition.objects[*].table.destination_schema string ALL resources.pipelines.*.ingestion_definition.objects[*].table.destination_table string ALL @@ -2514,6 +2601,8 @@ resources.pipelines.*.ingestion_definition.source_configurations[*].catalog.post resources.pipelines.*.ingestion_definition.source_configurations[*].catalog.postgres.slot_config.publication_name string ALL resources.pipelines.*.ingestion_definition.source_configurations[*].catalog.postgres.slot_config.slot_name string ALL resources.pipelines.*.ingestion_definition.source_configurations[*].catalog.source_catalog string ALL +resources.pipelines.*.ingestion_definition.source_configurations[*].google_ads_config *pipelines.GoogleAdsConfig ALL +resources.pipelines.*.ingestion_definition.source_configurations[*].google_ads_config.manager_account_id string ALL resources.pipelines.*.ingestion_definition.source_type pipelines.IngestionSourceType ALL resources.pipelines.*.ingestion_definition.table_configuration *pipelines.TableSpecificConfig ALL resources.pipelines.*.ingestion_definition.table_configuration.auto_full_refresh_policy *pipelines.AutoFullRefreshPolicy ALL @@ -2629,6 +2718,7 @@ resources.postgres_branches.*.spec.source_branch_lsn string REMOTE resources.postgres_branches.*.spec.source_branch_time *time.Time REMOTE resources.postgres_branches.*.spec.ttl *duration.Duration REMOTE resources.postgres_branches.*.status *postgres.BranchStatus REMOTE +resources.postgres_branches.*.status.branch_id string REMOTE resources.postgres_branches.*.status.current_state postgres.BranchStatusState REMOTE resources.postgres_branches.*.status.default bool REMOTE resources.postgres_branches.*.status.expire_time *time.Time REMOTE @@ -2682,6 +2772,7 @@ resources.postgres_endpoints.*.status.autoscaling_limit_max_cu float64 REMOTE resources.postgres_endpoints.*.status.autoscaling_limit_min_cu float64 REMOTE resources.postgres_endpoints.*.status.current_state postgres.EndpointStatusState REMOTE resources.postgres_endpoints.*.status.disabled bool REMOTE +resources.postgres_endpoints.*.status.endpoint_id string REMOTE resources.postgres_endpoints.*.status.endpoint_type postgres.EndpointType REMOTE resources.postgres_endpoints.*.status.group *postgres.EndpointGroupStatus REMOTE resources.postgres_endpoints.*.status.group.enable_readable_secondaries bool REMOTE @@ -2713,6 +2804,7 @@ resources.postgres_projects.*.default_endpoint_settings.no_suspension bool INPUT resources.postgres_projects.*.default_endpoint_settings.pg_settings map[string]string INPUT STATE resources.postgres_projects.*.default_endpoint_settings.pg_settings.* string INPUT STATE resources.postgres_projects.*.default_endpoint_settings.suspend_timeout_duration *duration.Duration INPUT STATE +resources.postgres_projects.*.delete_time *time.Time REMOTE resources.postgres_projects.*.display_name string INPUT STATE resources.postgres_projects.*.enable_pg_native_login bool INPUT STATE resources.postgres_projects.*.history_retention_duration *duration.Duration INPUT STATE @@ -2728,6 +2820,7 @@ resources.postgres_projects.*.modified_status string INPUT resources.postgres_projects.*.name string REMOTE resources.postgres_projects.*.pg_version int INPUT STATE resources.postgres_projects.*.project_id string INPUT STATE +resources.postgres_projects.*.purge_time *time.Time REMOTE resources.postgres_projects.*.spec *postgres.ProjectSpec REMOTE resources.postgres_projects.*.spec.budget_policy_id string REMOTE resources.postgres_projects.*.spec.custom_tags []postgres.ProjectCustomTag REMOTE @@ -2766,6 +2859,7 @@ resources.postgres_projects.*.status.enable_pg_native_login bool REMOTE resources.postgres_projects.*.status.history_retention_duration *duration.Duration REMOTE resources.postgres_projects.*.status.owner string REMOTE resources.postgres_projects.*.status.pg_version int REMOTE +resources.postgres_projects.*.status.project_id string REMOTE resources.postgres_projects.*.status.synthetic_storage_size_bytes int64 REMOTE resources.postgres_projects.*.uid string REMOTE resources.postgres_projects.*.update_time *time.Time REMOTE @@ -3048,13 +3142,13 @@ resources.vector_search_endpoints.*.last_updated_timestamp int64 REMOTE resources.vector_search_endpoints.*.last_updated_user string REMOTE resources.vector_search_endpoints.*.lifecycle resources.Lifecycle INPUT resources.vector_search_endpoints.*.lifecycle.prevent_destroy bool INPUT -resources.vector_search_endpoints.*.min_qps int64 INPUT STATE resources.vector_search_endpoints.*.modified_status string INPUT resources.vector_search_endpoints.*.name string ALL resources.vector_search_endpoints.*.num_indexes int REMOTE resources.vector_search_endpoints.*.scaling_info *vectorsearch.EndpointScalingInfo REMOTE -resources.vector_search_endpoints.*.scaling_info.requested_min_qps int64 REMOTE +resources.vector_search_endpoints.*.scaling_info.requested_target_qps int64 REMOTE resources.vector_search_endpoints.*.scaling_info.state vectorsearch.ScalingChangeState REMOTE +resources.vector_search_endpoints.*.target_qps int64 INPUT STATE resources.vector_search_endpoints.*.url string INPUT resources.vector_search_endpoints.*.usage_policy_id string INPUT STATE resources.vector_search_endpoints.*.permissions.object_id string ALL diff --git a/acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/databricks.yml.tmpl b/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/databricks.yml.tmpl similarity index 68% rename from acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/databricks.yml.tmpl rename to acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/databricks.yml.tmpl index 7936e98b23d..3999d01fe3b 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/databricks.yml.tmpl +++ b/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/databricks.yml.tmpl @@ -1,5 +1,5 @@ bundle: - name: drift-vs-endpoint-min-qps-$UNIQUE_NAME + name: drift-vs-endpoint-target-qps-$UNIQUE_NAME sync: paths: [] @@ -9,4 +9,4 @@ resources: my_endpoint: name: vs-endpoint-$UNIQUE_NAME endpoint_type: STANDARD - min_qps: 1 + target_qps: 1 diff --git a/acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/out.plan.direct.json b/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/out.plan.direct.json similarity index 90% rename from acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/out.plan.direct.json rename to acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/out.plan.direct.json index 93aa4f1a24d..0d942ffd26d 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/out.plan.direct.json +++ b/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/out.plan.direct.json @@ -3,7 +3,7 @@ "resources.vector_search_endpoints.my_endpoint": { "action": "update", "changes": { - "min_qps": { + "target_qps": { "action": "update", "old": 1, "new": 1, diff --git a/acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/out.test.toml b/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/out.test.toml similarity index 100% rename from acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/out.test.toml rename to acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/out.test.toml diff --git a/acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/output.txt b/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/output.txt similarity index 78% rename from acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/output.txt rename to acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/output.txt index 5a5f6d22f0c..61502f2d894 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/output.txt +++ b/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/output.txt @@ -1,13 +1,13 @@ === Initial deployment >>> [CLI] bundle deploy -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-min-qps-[UNIQUE_NAME]/default/files... +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-target-qps-[UNIQUE_NAME]/default/files... Deploying resources... Updating deployment state... Deployment complete! -=== Simulate remote drift: change min_qps to 5 outside the bundle ->>> [CLI] vector-search-endpoints patch-endpoint vs-endpoint-[UNIQUE_NAME] --min-qps 5 +=== Simulate remote drift: change target_qps to 5 outside the bundle +>>> [CLI] vector-search-endpoints patch-endpoint vs-endpoint-[UNIQUE_NAME] --target-qps 5 { "creation_timestamp": [UNIX_TIME_MILLIS][0], "creator": "[USERNAME]", @@ -20,7 +20,7 @@ Deployment complete! "last_updated_user": "[USERNAME]", "name": "vs-endpoint-[UNIQUE_NAME]", "scaling_info": { - "requested_min_qps": 5 + "requested_target_qps": 5 } } @@ -30,9 +30,9 @@ update vector_search_endpoints.my_endpoint Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged -=== Deploy restores min_qps to 1 +=== Deploy restores target_qps to 1 >>> [CLI] bundle deploy -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-min-qps-[UNIQUE_NAME]/default/files... +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-target-qps-[UNIQUE_NAME]/default/files... Deploying resources... Updating deployment state... Deployment complete! @@ -42,7 +42,7 @@ Deployment complete! "method": "PATCH", "path": "/api/2.0/vector-search/endpoints/vs-endpoint-[UNIQUE_NAME]", "body": { - "min_qps": 1 + "target_qps": 1 } } @@ -56,7 +56,7 @@ Deployment complete! The following resources will be deleted: delete resources.vector_search_endpoints.my_endpoint -All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-min-qps-[UNIQUE_NAME]/default +All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/drift-vs-endpoint-target-qps-[UNIQUE_NAME]/default Deleting files... Destroy complete! diff --git a/acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/script b/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/script similarity index 85% rename from acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/script rename to acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/script index 81e86fefcb2..58ce3a2f5ad 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/script +++ b/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/script @@ -11,14 +11,14 @@ trace $CLI bundle deploy endpoint_name="vs-endpoint-${UNIQUE_NAME}" -title "Simulate remote drift: change min_qps to 5 outside the bundle" -trace $CLI vector-search-endpoints patch-endpoint "${endpoint_name}" --min-qps 5 +title "Simulate remote drift: change target_qps to 5 outside the bundle" +trace $CLI vector-search-endpoints patch-endpoint "${endpoint_name}" --target-qps 5 title "Plan detects drift and proposes update" trace $CLI bundle plan | contains.py "Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged" $CLI bundle plan --output json | jq '{plan: .plan | map_values({action, changes})}' > out.plan.$DATABRICKS_BUNDLE_ENGINE.json -title "Deploy restores min_qps to 1" +title "Deploy restores target_qps to 1" rm -f out.requests.txt trace $CLI bundle deploy trace print_requests.py '//vector-search/endpoints' diff --git a/acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/test.toml b/acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/test.toml similarity index 100% rename from acceptance/bundle/resources/vector_search_endpoints/drift/min_qps/test.toml rename to acceptance/bundle/resources/vector_search_endpoints/drift/target_qps/test.toml diff --git a/acceptance/bundle/resources/vector_search_endpoints/update/min_qps/databricks.yml.tmpl b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/databricks.yml.tmpl similarity index 75% rename from acceptance/bundle/resources/vector_search_endpoints/update/min_qps/databricks.yml.tmpl rename to acceptance/bundle/resources/vector_search_endpoints/update/target_qps/databricks.yml.tmpl index 7c326b69d51..71272f0325a 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/update/min_qps/databricks.yml.tmpl +++ b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/databricks.yml.tmpl @@ -1,5 +1,5 @@ bundle: - name: update-vs-endpoint-min-qps-$UNIQUE_NAME + name: update-vs-endpoint-target-qps-$UNIQUE_NAME sync: paths: [] @@ -9,7 +9,7 @@ resources: my_endpoint: name: vs-endpoint-$UNIQUE_NAME endpoint_type: STANDARD - min_qps: 1 + target_qps: 1 permissions: - level: CAN_USE group_name: admins diff --git a/acceptance/bundle/resources/vector_search_endpoints/update/min_qps/out.requests.create.direct.json b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/out.requests.create.direct.json similarity index 87% rename from acceptance/bundle/resources/vector_search_endpoints/update/min_qps/out.requests.create.direct.json rename to acceptance/bundle/resources/vector_search_endpoints/update/target_qps/out.requests.create.direct.json index 0a1d51a3512..7e7209e51e5 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/update/min_qps/out.requests.create.direct.json +++ b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/out.requests.create.direct.json @@ -3,8 +3,8 @@ "path": "/api/2.0/vector-search/endpoints", "body": { "endpoint_type": "STANDARD", - "min_qps": 1, - "name": "vs-endpoint-[UNIQUE_NAME]" + "name": "vs-endpoint-[UNIQUE_NAME]", + "target_qps": 1 } } { diff --git a/acceptance/bundle/resources/vector_search_endpoints/update/min_qps/out.requests.update.direct.json b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/out.requests.update.direct.json similarity index 95% rename from acceptance/bundle/resources/vector_search_endpoints/update/min_qps/out.requests.update.direct.json rename to acceptance/bundle/resources/vector_search_endpoints/update/target_qps/out.requests.update.direct.json index 24876c67bed..b361b6e4357 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/update/min_qps/out.requests.update.direct.json +++ b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/out.requests.update.direct.json @@ -2,7 +2,7 @@ "method": "PATCH", "path": "/api/2.0/vector-search/endpoints/vs-endpoint-[UNIQUE_NAME]", "body": { - "min_qps": 2 + "target_qps": 2 } } { diff --git a/acceptance/bundle/resources/vector_search_endpoints/update/min_qps/out.test.toml b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/out.test.toml similarity index 100% rename from acceptance/bundle/resources/vector_search_endpoints/update/min_qps/out.test.toml rename to acceptance/bundle/resources/vector_search_endpoints/update/target_qps/out.test.toml diff --git a/acceptance/bundle/resources/vector_search_endpoints/update/min_qps/output.txt b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/output.txt similarity index 80% rename from acceptance/bundle/resources/vector_search_endpoints/update/min_qps/output.txt rename to acceptance/bundle/resources/vector_search_endpoints/update/target_qps/output.txt index 8dec120bc4a..5402cefc3af 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/update/min_qps/output.txt +++ b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/output.txt @@ -1,7 +1,7 @@ === Initial deployment >>> [CLI] bundle deploy -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-vs-endpoint-min-qps-[UNIQUE_NAME]/default/files... +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-vs-endpoint-target-qps-[UNIQUE_NAME]/default/files... Deploying resources... Updating deployment state... Deployment complete! @@ -14,8 +14,8 @@ Deployment complete! "endpoint_type": "STANDARD" } -=== Update min_qps ->>> update_file.py databricks.yml min_qps: 1 min_qps: 2 +=== Update target_qps +>>> update_file.py databricks.yml target_qps: 1 target_qps: 2 >>> [CLI] bundle plan update vector_search_endpoints.my_endpoint @@ -24,7 +24,7 @@ update vector_search_endpoints.my_endpoint.permissions Plan: 0 to add, 2 to change, 0 to delete, 0 unchanged >>> [CLI] bundle deploy -Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-vs-endpoint-min-qps-[UNIQUE_NAME]/default/files... +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/update-vs-endpoint-target-qps-[UNIQUE_NAME]/default/files... Deploying resources... Updating deployment state... Deployment complete! @@ -41,7 +41,7 @@ Deployment complete! The following resources will be deleted: delete resources.vector_search_endpoints.my_endpoint -All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-vs-endpoint-min-qps-[UNIQUE_NAME]/default +All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/update-vs-endpoint-target-qps-[UNIQUE_NAME]/default Deleting files... Destroy complete! diff --git a/acceptance/bundle/resources/vector_search_endpoints/update/min_qps/script b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/script similarity index 88% rename from acceptance/bundle/resources/vector_search_endpoints/update/min_qps/script rename to acceptance/bundle/resources/vector_search_endpoints/update/target_qps/script index c21d64b9d97..c17c8adfedc 100644 --- a/acceptance/bundle/resources/vector_search_endpoints/update/min_qps/script +++ b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/script @@ -20,8 +20,8 @@ print_requests create endpoint_name="vs-endpoint-${UNIQUE_NAME}" trace $CLI vector-search-endpoints get-endpoint "${endpoint_name}" | jq '{name, endpoint_type}' -title "Update min_qps" -trace update_file.py databricks.yml "min_qps: 1" "min_qps: 2" +title "Update target_qps" +trace update_file.py databricks.yml "target_qps: 1" "target_qps: 2" trace $CLI bundle plan rm -f out.requests.txt diff --git a/acceptance/bundle/resources/vector_search_endpoints/update/min_qps/test.toml b/acceptance/bundle/resources/vector_search_endpoints/update/target_qps/test.toml similarity index 100% rename from acceptance/bundle/resources/vector_search_endpoints/update/min_qps/test.toml rename to acceptance/bundle/resources/vector_search_endpoints/update/target_qps/test.toml diff --git a/acceptance/bundle/state/state_present/output.txt b/acceptance/bundle/state/state_present/output.txt index 706b54a67a0..cc458c4842c 100644 --- a/acceptance/bundle/state/state_present/output.txt +++ b/acceptance/bundle/state/state_present/output.txt @@ -66,7 +66,7 @@ Updating deployment state... Deployment complete! >>> print_requests.py //api/2.1/unity-catalog/schemas -"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" +"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" >>> print_state.py 3 @@ -86,8 +86,8 @@ Updating deployment state... Deployment complete! >>> print_requests.py --get //api/2.1/unity-catalog/schemas -"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" -"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" +"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" +"cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" >>> print_state.py 3 diff --git a/acceptance/bundle/templates/telemetry/custom-template/out.requests.txt b/acceptance/bundle/templates/telemetry/custom-template/out.requests.txt index 321ab066c57..8bc697feef4 100644 --- a/acceptance/bundle/templates/telemetry/custom-template/out.requests.txt +++ b/acceptance/bundle/templates/telemetry/custom-template/out.requests.txt @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat agent/multiple" ] }, "method": "POST", diff --git a/acceptance/bundle/templates/telemetry/dbt-sql/out.requests.txt b/acceptance/bundle/templates/telemetry/dbt-sql/out.requests.txt index 34ccec28997..53cb09afaa7 100644 --- a/acceptance/bundle/templates/telemetry/dbt-sql/out.requests.txt +++ b/acceptance/bundle/templates/telemetry/dbt-sql/out.requests.txt @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -19,7 +19,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -28,7 +28,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat agent/multiple" ] }, "method": "POST", diff --git a/acceptance/bundle/templates/telemetry/default-python/out.requests.txt b/acceptance/bundle/templates/telemetry/default-python/out.requests.txt index 932cb465bcc..08216cc973f 100644 --- a/acceptance/bundle/templates/telemetry/default-python/out.requests.txt +++ b/acceptance/bundle/templates/telemetry/default-python/out.requests.txt @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -19,7 +19,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -28,7 +28,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat agent/multiple" ] }, "method": "POST", diff --git a/acceptance/bundle/templates/telemetry/default-sql/out.requests.txt b/acceptance/bundle/templates/telemetry/default-sql/out.requests.txt index 459bbc63e66..c5a44933799 100644 --- a/acceptance/bundle/templates/telemetry/default-sql/out.requests.txt +++ b/acceptance/bundle/templates/telemetry/default-sql/out.requests.txt @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -19,7 +19,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_init cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat agent/multiple" ] }, "method": "POST", diff --git a/acceptance/bundle/user_agent/output.txt b/acceptance/bundle/user_agent/output.txt index bf128624271..7eca86ecbe1 100644 --- a/acceptance/bundle/user_agent/output.txt +++ b/acceptance/bundle/user_agent/output.txt @@ -1,6 +1,6 @@ -MISS deploy.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat' -MISS deploy.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat' -MISS deploy.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat' +MISS deploy.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS deploy.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS deploy.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' OK deploy.direct /api/2.0/workspace/export engine/direct OK deploy.direct /api/2.0/workspace/export engine/direct OK deploy.direct /api/2.0/workspace/get-status engine/direct @@ -18,9 +18,9 @@ OK deploy.direct /api/2.0/workspace/delete engine/direct OK deploy.direct /api/2.0/workspace/mkdirs engine/direct OK deploy.direct /api/2.1/unity-catalog/schemas engine/direct MISS deploy.direct /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]' -MISS deploy.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat' -MISS deploy.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat' -MISS deploy.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat' +MISS deploy.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS deploy.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS deploy.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' OK deploy.terraform /api/2.0/workspace/export engine/terraform OK deploy.terraform /api/2.0/workspace/export engine/terraform OK deploy.terraform /api/2.0/workspace/get-status engine/terraform @@ -43,10 +43,10 @@ MISS deploy.terraform /.well-known/databricks-config 'databricks-tf-provider/1.1 MISS deploy.terraform /.well-known/databricks-config 'databricks-tf-provider/1.113.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5' MISS deploy.terraform /.well-known/databricks-config 'databricks-tf-provider/1.113.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5' MISS deploy.terraform /.well-known/databricks-config 'databricks-tf-provider/1.113.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5' -MISS destroy.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat' -MISS destroy.direct /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat' -MISS destroy.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat' -MISS destroy.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat' +MISS destroy.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS destroy.direct /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS destroy.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS destroy.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' OK destroy.direct /api/2.1/unity-catalog/schemas/mycatalog.myschema engine/direct OK destroy.direct /api/2.0/workspace/export engine/direct OK destroy.direct /api/2.0/workspace/get-status engine/direct @@ -56,10 +56,10 @@ OK destroy.direct /api/2.1/unity-catalog/schemas/mycatalog.myschema engine/dir OK destroy.direct /api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock engine/direct OK destroy.direct /api/2.0/workspace/delete engine/direct MISS destroy.direct /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]' -MISS destroy.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat' -MISS destroy.terraform /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat' -MISS destroy.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat' -MISS destroy.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat' +MISS destroy.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS destroy.terraform /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS destroy.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS destroy.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' OK destroy.terraform /api/2.0/workspace/export engine/terraform OK destroy.terraform /api/2.0/workspace/get-status engine/terraform OK destroy.terraform /api/2.0/workspace/get-status engine/terraform @@ -76,61 +76,63 @@ MISS destroy.terraform /.well-known/databricks-config 'databricks-tf-provider/1. MISS destroy.terraform /.well-known/databricks-config 'databricks-tf-provider/1.113.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5' MISS destroy.terraform /.well-known/databricks-config 'databricks-tf-provider/1.113.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5' MISS destroy.terraform /.well-known/databricks-config 'databricks-tf-provider/1.113.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5' -MISS plan.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' -MISS plan.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' -MISS plan.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' +MISS plan.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS plan.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS plan.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' OK plan.direct /api/2.0/workspace/get-status engine/direct MISS plan.direct /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]' -MISS plan.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' -MISS plan.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' -MISS plan.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' +MISS plan.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS plan.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS plan.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' OK plan.terraform /api/2.0/workspace/get-status engine/terraform MISS plan.terraform /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]' MISS plan.terraform /.well-known/databricks-config 'databricks-tf-provider/1.113.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5' MISS plan.terraform /.well-known/databricks-config 'databricks-tf-provider/1.113.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5' -MISS plan2.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' -MISS plan2.direct /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' -MISS plan2.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' -MISS plan2.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' +MISS plan2.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS plan2.direct /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS plan2.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS plan2.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' OK plan2.direct /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json engine/direct OK plan2.direct /api/2.0/workspace/get-status engine/direct OK plan2.direct /api/2.1/unity-catalog/schemas/mycatalog.myschema engine/direct MISS plan2.direct /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]' -MISS plan2.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' -MISS plan2.terraform /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' -MISS plan2.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' -MISS plan2.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat' +MISS plan2.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS plan2.terraform /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS plan2.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS plan2.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' OK plan2.terraform /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json engine/terraform OK plan2.terraform /api/2.0/workspace/get-status engine/terraform MISS plan2.terraform /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]' MISS plan2.terraform /api/2.1/unity-catalog/schemas/mycatalog.myschema 'databricks-tf-provider/1.113.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5 sdk/sdkv2 resource/schema auth/pat' MISS plan2.terraform /.well-known/databricks-config 'databricks-tf-provider/1.113.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5' MISS plan2.terraform /.well-known/databricks-config 'databricks-tf-provider/1.113.0 databricks-sdk-go/[SDK_VERSION] go/1.24.0 os/[OS] cli/[DEV_VERSION] terraform/1.5.5' -MISS run.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat' -MISS run.direct /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat' -MISS run.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat' -MISS run.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat' +MISS run.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS run.direct /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/resources.json 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS run.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS run.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' MISS run.direct /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]' -MISS run.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat' -MISS run.terraform /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat' -MISS run.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat' -MISS run.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat' +MISS run.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS run.terraform /api/2.0/workspace-files/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS run.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS run.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' MISS run.terraform /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]' -MISS summary.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat' -MISS summary.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat' -MISS summary.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat' +MISS summary.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS summary.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS summary.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +OK summary.direct /api/2.0/preview/scim/v2/Me engine/direct MISS summary.direct /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]' -MISS summary.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat' -MISS summary.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat' -MISS summary.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat' +MISS summary.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS summary.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS summary.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +OK summary.terraform /api/2.0/preview/scim/v2/Me engine/terraform MISS summary.terraform /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]' -MISS validate.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat' -MISS validate.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat' -MISS validate.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat' -MISS validate.direct /api/2.0/workspace/mkdirs 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat' +MISS validate.direct /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS validate.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS validate.direct /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS validate.direct /api/2.0/workspace/mkdirs 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' MISS validate.direct /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]' -MISS validate.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat' -MISS validate.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat' -MISS validate.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat' -MISS validate.terraform /api/2.0/workspace/mkdirs 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat' +MISS validate.terraform /api/2.0/preview/scim/v2/Me 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS validate.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS validate.terraform /api/2.0/workspace/get-status 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' +MISS validate.terraform /api/2.0/workspace/mkdirs 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple' MISS validate.terraform /.well-known/databricks-config 'cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS]' diff --git a/acceptance/bundle/user_agent/simple/out.requests.deploy.direct.json b/acceptance/bundle/user_agent/simple/out.requests.deploy.direct.json index cc39aad6e9b..52490a24315 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.deploy.direct.json +++ b/acceptance/bundle/user_agent/simple/out.requests.deploy.direct.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -23,7 +23,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -36,7 +36,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -49,7 +49,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -62,7 +62,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -74,7 +74,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -87,7 +87,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -100,7 +100,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -113,7 +113,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -126,7 +126,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "POST", @@ -138,7 +138,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "POST", @@ -156,7 +156,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "POST", @@ -181,7 +181,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "POST", @@ -213,7 +213,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "POST", @@ -240,7 +240,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "POST", @@ -253,7 +253,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "POST", @@ -265,7 +265,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "POST", @@ -277,7 +277,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "POST", diff --git a/acceptance/bundle/user_agent/simple/out.requests.deploy.terraform.json b/acceptance/bundle/user_agent/simple/out.requests.deploy.terraform.json index 435b188af3b..233ac8f72e5 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.deploy.terraform.json +++ b/acceptance/bundle/user_agent/simple/out.requests.deploy.terraform.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -23,7 +23,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -36,7 +36,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", @@ -49,7 +49,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", @@ -62,7 +62,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", @@ -74,7 +74,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", @@ -87,7 +87,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", @@ -100,7 +100,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", @@ -113,7 +113,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", @@ -126,7 +126,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "POST", @@ -138,7 +138,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "POST", @@ -156,7 +156,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "POST", @@ -181,7 +181,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "POST", @@ -213,7 +213,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "POST", @@ -262,7 +262,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "POST", @@ -275,7 +275,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "POST", @@ -287,7 +287,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_deploy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "POST", diff --git a/acceptance/bundle/user_agent/simple/out.requests.destroy.direct.json b/acceptance/bundle/user_agent/simple/out.requests.destroy.direct.json index 24f3c5bf136..6234cd6dbef 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.destroy.direct.json +++ b/acceptance/bundle/user_agent/simple/out.requests.destroy.direct.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -19,7 +19,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -32,7 +32,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -45,7 +45,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "DELETE", @@ -57,7 +57,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -70,7 +70,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -82,7 +82,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -95,7 +95,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -108,7 +108,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -117,7 +117,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "POST", @@ -135,7 +135,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "POST", diff --git a/acceptance/bundle/user_agent/simple/out.requests.destroy.terraform.json b/acceptance/bundle/user_agent/simple/out.requests.destroy.terraform.json index f8ab210ec72..1fd0c436701 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.destroy.terraform.json +++ b/acceptance/bundle/user_agent/simple/out.requests.destroy.terraform.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -19,7 +19,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -32,7 +32,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -45,7 +45,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", @@ -58,7 +58,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", @@ -70,7 +70,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", @@ -83,7 +83,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", @@ -96,7 +96,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "POST", @@ -114,7 +114,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_destroy cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "POST", diff --git a/acceptance/bundle/user_agent/simple/out.requests.plan.direct.json b/acceptance/bundle/user_agent/simple/out.requests.plan.direct.json index 614f55e04a5..790fadee590 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.plan.direct.json +++ b/acceptance/bundle/user_agent/simple/out.requests.plan.direct.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -23,7 +23,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -36,7 +36,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", diff --git a/acceptance/bundle/user_agent/simple/out.requests.plan.terraform.json b/acceptance/bundle/user_agent/simple/out.requests.plan.terraform.json index 11daf62e9ed..ba78dbac2e4 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.plan.terraform.json +++ b/acceptance/bundle/user_agent/simple/out.requests.plan.terraform.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -23,7 +23,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -36,7 +36,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", diff --git a/acceptance/bundle/user_agent/simple/out.requests.plan2.direct.json b/acceptance/bundle/user_agent/simple/out.requests.plan2.direct.json index 42543acc23d..cc24ebcbb50 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.plan2.direct.json +++ b/acceptance/bundle/user_agent/simple/out.requests.plan2.direct.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -19,7 +19,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -32,7 +32,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -45,7 +45,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -54,7 +54,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", @@ -67,7 +67,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" ] }, "method": "GET", diff --git a/acceptance/bundle/user_agent/simple/out.requests.plan2.terraform.json b/acceptance/bundle/user_agent/simple/out.requests.plan2.terraform.json index 75f4620ef48..bad11f65ec4 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.plan2.terraform.json +++ b/acceptance/bundle/user_agent/simple/out.requests.plan2.terraform.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -19,7 +19,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -32,7 +32,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -45,7 +45,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", @@ -54,7 +54,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_plan cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" ] }, "method": "GET", diff --git a/acceptance/bundle/user_agent/simple/out.requests.run.direct.json b/acceptance/bundle/user_agent/simple/out.requests.run.direct.json index 86f7e607a2d..c21298d884a 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.run.direct.json +++ b/acceptance/bundle/user_agent/simple/out.requests.run.direct.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -19,7 +19,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -32,7 +32,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", diff --git a/acceptance/bundle/user_agent/simple/out.requests.run.terraform.json b/acceptance/bundle/user_agent/simple/out.requests.run.terraform.json index 62c5a994a1a..bb5da242d6f 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.run.terraform.json +++ b/acceptance/bundle/user_agent/simple/out.requests.run.terraform.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -19,7 +19,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -32,7 +32,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_run cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", diff --git a/acceptance/bundle/user_agent/simple/out.requests.summary.direct.json b/acceptance/bundle/user_agent/simple/out.requests.summary.direct.json index 3a3e2db9e9a..2c94b24174a 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.summary.direct.json +++ b/acceptance/bundle/user_agent/simple/out.requests.summary.direct.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -23,7 +23,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -33,6 +33,15 @@ "return_export_info": "true" } } +{ + "headers": { + "User-Agent": [ + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none engine/direct auth/pat agent/multiple" + ] + }, + "method": "GET", + "path": "/api/2.0/preview/scim/v2/Me" +} { "headers": { "User-Agent": [ diff --git a/acceptance/bundle/user_agent/simple/out.requests.summary.terraform.json b/acceptance/bundle/user_agent/simple/out.requests.summary.terraform.json index 3a3e2db9e9a..350faf901b1 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.summary.terraform.json +++ b/acceptance/bundle/user_agent/simple/out.requests.summary.terraform.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -23,7 +23,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -33,6 +33,15 @@ "return_export_info": "true" } } +{ + "headers": { + "User-Agent": [ + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_summary cmd-exec-id/[UUID] interactive/none engine/terraform auth/pat agent/multiple" + ] + }, + "method": "GET", + "path": "/api/2.0/preview/scim/v2/Me" +} { "headers": { "User-Agent": [ diff --git a/acceptance/bundle/user_agent/simple/out.requests.validate.direct.json b/acceptance/bundle/user_agent/simple/out.requests.validate.direct.json index 8c64d6f74a5..4fab9bda4e6 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.validate.direct.json +++ b/acceptance/bundle/user_agent/simple/out.requests.validate.direct.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -22,7 +22,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -34,7 +34,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "POST", diff --git a/acceptance/bundle/user_agent/simple/out.requests.validate.terraform.json b/acceptance/bundle/user_agent/simple/out.requests.validate.terraform.json index 8c64d6f74a5..4fab9bda4e6 100644 --- a/acceptance/bundle/user_agent/simple/out.requests.validate.terraform.json +++ b/acceptance/bundle/user_agent/simple/out.requests.validate.terraform.json @@ -1,7 +1,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -10,7 +10,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -22,7 +22,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", @@ -34,7 +34,7 @@ { "headers": { "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/bundle_validate cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "POST", diff --git a/acceptance/cmd/account/account-help/output.txt b/acceptance/cmd/account/account-help/output.txt index b39d4395521..f3e883750f6 100644 --- a/acceptance/cmd/account/account-help/output.txt +++ b/acceptance/cmd/account/account-help/output.txt @@ -6,10 +6,10 @@ Usage: databricks account [command] Identity and Access Management - access-control These APIs manage access rules on resources in an account. + access-control *Public Preview* These APIs manage access rules on resources in an account. groups Groups simplify identity management, making it easier to assign access to Databricks account, data, and other securable objects. groups-v2 Groups simplify identity management, making it easier to assign access to Databricks account, data, and other securable objects. - iam-v2 These APIs are used to manage identities and the workspace access of these identities in . + iam-v2 *Beta* These APIs are used to manage identities and the workspace access of these identities in . service-principals Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms. service-principals-v2 Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms. users User identities recognized by Databricks and represented by email addresses. @@ -26,13 +26,13 @@ Settings network-connectivity These APIs provide configurations for the network connectivity of your workspaces for serverless compute resources. network-policies These APIs manage network policies for this account. settings Accounts Settings API allows users to manage settings at the account level. - settings-v2 APIs to manage account level settings. + settings-v2 *Public Preview* APIs to manage account level settings. workspace-network-configuration These APIs allow configuration of network settings for Databricks workspaces by selecting which network policy to associate with the workspace. Provisioning credentials These APIs manage credential configurations for this workspace. encryption-keys These APIs manage encryption key configurations for this workspace (optional). - endpoints These APIs manage endpoint configurations for this account. + endpoints *Beta* These APIs manage endpoint configurations for this account. networks These APIs manage network configurations for customer-managed VPCs (optional). private-access These APIs manage private access settings for this account. storage These APIs manage storage configurations for this workspace. @@ -41,10 +41,10 @@ Provisioning Billing billable-usage This API allows you to download billable usage logs for the specified account and date range. - budget-policy A service serves REST API about Budget policies. - budgets These APIs manage budget configurations for this account. + budget-policy *Public Preview* A service serves REST API about Budget policies. + budgets *Public Preview* These APIs manage budget configurations for this account. log-delivery These APIs manage log delivery configurations for this account. - usage-dashboards These APIs manage usage dashboards for this account. + usage-dashboards *Public Preview* These APIs manage usage dashboards for this account. OAuth custom-app-integration These APIs enable administrators to manage custom OAuth app integrations, which is required for adding/using Custom OAuth App Integration like Tableau Cloud for Databricks in AWS cloud. diff --git a/acceptance/cmd/api/account-flag/output.txt b/acceptance/cmd/api/account-flag/output.txt index c165bf2af88..0b2482e7cdf 100644 --- a/acceptance/cmd/api/account-flag/output.txt +++ b/acceptance/cmd/api/account-flag/output.txt @@ -7,7 +7,7 @@ "Bearer [DATABRICKS_TOKEN]" ], "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", diff --git a/acceptance/cmd/api/account-path/output.txt b/acceptance/cmd/api/account-path/output.txt index 1afd36c01d3..9ab42b47774 100644 --- a/acceptance/cmd/api/account-path/output.txt +++ b/acceptance/cmd/api/account-path/output.txt @@ -7,7 +7,7 @@ "Bearer [DATABRICKS_TOKEN]" ], "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", diff --git a/acceptance/cmd/api/workspace-id-flag/output.txt b/acceptance/cmd/api/workspace-id-flag/output.txt index 5ff264fa554..1f18e22a6c0 100644 --- a/acceptance/cmd/api/workspace-id-flag/output.txt +++ b/acceptance/cmd/api/workspace-id-flag/output.txt @@ -7,7 +7,7 @@ "Bearer [DATABRICKS_TOKEN]" ], "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ], "X-Databricks-Org-Id": [ "999" diff --git a/acceptance/cmd/api/workspace-id-from-query/output.txt b/acceptance/cmd/api/workspace-id-from-query/output.txt index 7a72f8de473..1d949dfe7ca 100644 --- a/acceptance/cmd/api/workspace-id-from-query/output.txt +++ b/acceptance/cmd/api/workspace-id-from-query/output.txt @@ -7,7 +7,7 @@ "Bearer [DATABRICKS_TOKEN]" ], "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ], "X-Databricks-Org-Id": [ "999" diff --git a/acceptance/cmd/api/workspace-id-none/output.txt b/acceptance/cmd/api/workspace-id-none/output.txt index c165bf2af88..0b2482e7cdf 100644 --- a/acceptance/cmd/api/workspace-id-none/output.txt +++ b/acceptance/cmd/api/workspace-id-none/output.txt @@ -7,7 +7,7 @@ "Bearer [DATABRICKS_TOKEN]" ], "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "GET", diff --git a/acceptance/cmd/api/workspace-path/output.txt b/acceptance/cmd/api/workspace-path/output.txt index 9d17f66284f..0c833ddb3b4 100644 --- a/acceptance/cmd/api/workspace-path/output.txt +++ b/acceptance/cmd/api/workspace-path/output.txt @@ -7,7 +7,7 @@ "Bearer [DATABRICKS_TOKEN]" ], "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ], "X-Databricks-Org-Id": [ "[NUMID]" diff --git a/acceptance/cmd/api/workspace-proxy-regression/output.txt b/acceptance/cmd/api/workspace-proxy-regression/output.txt index c98486a15e1..63b3f8564a3 100644 --- a/acceptance/cmd/api/workspace-proxy-regression/output.txt +++ b/acceptance/cmd/api/workspace-proxy-regression/output.txt @@ -7,7 +7,7 @@ "Bearer [DATABRICKS_TOKEN]" ], "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/api_get cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ], "X-Databricks-Org-Id": [ "[NUMID]" diff --git a/acceptance/help/output.txt b/acceptance/help/output.txt index d9f379f5bbf..6be3d28d0b3 100644 --- a/acceptance/help/output.txt +++ b/acceptance/help/output.txt @@ -40,20 +40,20 @@ Vector Search vector-search-indexes **Index**: An efficient representation of your embedding vectors that supports real-time and efficient approximate nearest neighbor (ANN) search queries. Identity and Access Management - current-user This API allows retrieving information about currently authenticated user or service principal. + current-user *Public Preview* This API allows retrieving information about currently authenticated user or service principal. groups Groups simplify identity management, making it easier to assign access to Databricks workspace, data, and other securable objects. - groups-v2 Groups simplify identity management, making it easier to assign access to Databricks workspace, data, and other securable objects. + groups-v2 *Public Preview* Groups simplify identity management, making it easier to assign access to Databricks workspace, data, and other securable objects. permissions Permissions API are used to create read, write, edit, update and manage access for various users on different objects and endpoints. service-principals Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms. - service-principals-v2 Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms. + service-principals-v2 *Public Preview* Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms. users User identities recognized by Databricks and represented by email addresses. - users-v2 User identities recognized by Databricks and represented by email addresses. - workspace-iam-v2 These APIs are used to manage identities and the workspace access of these identities in . + users-v2 *Public Preview* User identities recognized by Databricks and represented by email addresses. + workspace-iam-v2 *Beta* These APIs are used to manage identities and the workspace access of these identities in . Databricks SQL alerts The alerts API can be used to perform CRUD operations on alerts. - alerts-legacy The alerts API can be used to perform CRUD operations on alerts. - alerts-v2 New version of SQL Alerts. + alerts-legacy *Public Preview* The alerts API can be used to perform CRUD operations on alerts. + alerts-v2 *Public Preview* New version of SQL Alerts. dashboards In general, there is little need to modify dashboards using the API. data-sources This API is provided to assist you in making new query objects. queries The queries API can be used to perform CRUD operations on queries. @@ -72,33 +72,33 @@ Unity Catalog connections Connections allow for creating a connection to an external data source. credentials A credential represents an authentication and authorization mechanism for accessing services on your cloud tenant. entity-tag-assignments Tags are attributes that include keys and optional values that you can use to organize and categorize entities in Unity Catalog. - external-lineage External Lineage APIs enable defining and managing lineage relationships between Databricks objects and external systems. + external-lineage *Public Preview* External Lineage APIs enable defining and managing lineage relationships between Databricks objects and external systems. external-locations An external location is an object that combines a cloud storage path with a storage credential that authorizes access to the cloud storage path. - external-metadata External Metadata objects enable customers to register and manage metadata about external systems within Unity Catalog. + external-metadata *Public Preview* External Metadata objects enable customers to register and manage metadata about external systems within Unity Catalog. functions Functions implement User-Defined Functions (UDFs) in Unity Catalog. grants In Unity Catalog, data is secure by default. metastores A metastore is the top-level container of objects in Unity Catalog. model-versions Databricks provides a hosted version of MLflow Model Registry in Unity Catalog. - online-tables Online tables provide lower latency and higher QPS access to data from Delta tables. - policies Attribute-Based Access Control (ABAC) provides high leverage governance for enforcing compliance policies in Unity Catalog. + online-tables *Public Preview* Online tables provide lower latency and higher QPS access to data from Delta tables. + policies *Public Preview* Attribute-Based Access Control (ABAC) provides high leverage governance for enforcing compliance policies in Unity Catalog. quality-monitors Deprecated: Please use the Data Quality Monitors API instead (REST: /api/data-quality/v1/monitors), which manages both Data Profiling and Anomaly Detection. registered-models Databricks provides a hosted version of MLflow Model Registry in Unity Catalog. resource-quotas Unity Catalog enforces resource quotas on all securable objects, which limits the number of resources that can be created. - rfa Request for Access enables users to request access for Unity Catalog securables. + rfa *Public Preview* Request for Access enables users to request access for Unity Catalog securables. schemas A schema (also called a database) is the second layer of Unity Catalog’s three-level namespace. storage-credentials A storage credential represents an authentication and authorization mechanism for accessing data stored on your cloud tenant. - system-schemas A system schema is a schema that lives within the system catalog. + system-schemas *Public Preview* A system schema is a schema that lives within the system catalog. table-constraints Primary key and foreign key constraints encode relationships between fields in tables. tables A table resides in the third layer of Unity Catalog’s three-level namespace. - temporary-path-credentials Temporary Path Credentials refer to short-lived, downscoped credentials used to access external cloud storage locations registered in Databricks. - temporary-table-credentials Temporary Table Credentials refer to short-lived, downscoped credentials used to access cloud storage locations where table data is stored in Databricks. + temporary-path-credentials *Public Preview* Temporary Path Credentials refer to short-lived, downscoped credentials used to access external cloud storage locations registered in Databricks. + temporary-table-credentials *Public Preview* Temporary Table Credentials refer to short-lived, downscoped credentials used to access cloud storage locations where table data is stored in Databricks. volumes Volumes are a Unity Catalog (UC) capability for accessing, storing, governing, organizing and processing files. workspace-bindings A securable in Databricks can be configured as __OPEN__ or __ISOLATED__. Delta Sharing providers A data provider is an object representing the organization in the real world who shares the data. recipient-activation The Recipient Activation API is only applicable in the open sharing model where the recipient object has the authentication type of TOKEN. - recipient-federation-policies The Recipient Federation Policies APIs are only applicable in the open sharing model where the recipient object has the authentication type of OIDC_RECIPIENT, enabling data sharing from Databricks to non-Databricks recipients. + recipient-federation-policies *Public Preview* The Recipient Federation Policies APIs are only applicable in the open sharing model where the recipient object has the authentication type of OIDC_RECIPIENT, enabling data sharing from Databricks to non-Databricks recipients. recipients A recipient is an object you create using :method:recipients/create to represent an organization which you want to allow access shares. shares A share is a container instantiated with :method:shares/create. @@ -109,54 +109,55 @@ Settings token-management Enables administrators to get all tokens and delete tokens for other users. tokens The Token API allows you to create, list, and revoke tokens that can be used to authenticate and access Databricks REST APIs. workspace-conf This API allows updating known workspace settings for advanced users. - workspace-settings-v2 APIs to manage workspace level settings. + workspace-settings-v2 *Public Preview* APIs to manage workspace level settings. OAuth service-principal-secrets-proxy These APIs enable administrators to manage service principal secrets at the workspace level. Marketplace - consumer-fulfillments Fulfillments are entities that allow consumers to preview installations. - consumer-installations Installations are entities that allow consumers to interact with Databricks Marketplace listings. - consumer-listings Listings are the core entities in the Marketplace. - consumer-personalization-requests Personalization Requests allow customers to interact with the individualized Marketplace listing flow. - consumer-providers Providers are the entities that publish listings to the Marketplace. - provider-exchange-filters Marketplace exchanges filters curate which groups can access an exchange. - provider-exchanges Marketplace exchanges allow providers to share their listings with a curated set of customers. - provider-files Marketplace offers a set of file APIs for various purposes such as preview notebooks and provider icons. - provider-listings Listings are the core entities in the Marketplace. - provider-personalization-requests Personalization requests are an alternate to instantly available listings. - provider-provider-analytics-dashboards Manage templated analytics solution for providers. - provider-providers Providers are entities that manage assets in Marketplace. + consumer-fulfillments *Public Preview* Fulfillments are entities that allow consumers to preview installations. + consumer-installations *Public Preview* Installations are entities that allow consumers to interact with Databricks Marketplace listings. + consumer-listings *Public Preview* Listings are the core entities in the Marketplace. + consumer-personalization-requests *Public Preview* Personalization Requests allow customers to interact with the individualized Marketplace listing flow. + consumer-providers *Public Preview* Providers are the entities that publish listings to the Marketplace. + provider-exchange-filters *Public Preview* Marketplace exchanges filters curate which groups can access an exchange. + provider-exchanges *Public Preview* Marketplace exchanges allow providers to share their listings with a curated set of customers. + provider-files *Public Preview* Marketplace offers a set of file APIs for various purposes such as preview notebooks and provider icons. + provider-listings *Public Preview* Listings are the core entities in the Marketplace. + provider-personalization-requests *Public Preview* Personalization requests are an alternate to instantly available listings. + provider-provider-analytics-dashboards *Public Preview* Manage templated analytics solution for providers. + provider-providers *Public Preview* Providers are entities that manage assets in Marketplace. Clean Rooms - clean-room-asset-revisions Clean Room Asset Revisions denote new versions of uploaded assets (e.g. + clean-room-asset-revisions *Beta* Clean Room Asset Revisions denote new versions of uploaded assets (e.g. clean-room-assets Clean room assets are data and code objects — Tables, volumes, and notebooks that are shared with the clean room. - clean-room-auto-approval-rules Clean room auto-approval rules automatically create an approval on your behalf when an asset (e.g. + clean-room-auto-approval-rules *Beta* Clean room auto-approval rules automatically create an approval on your behalf when an asset (e.g. clean-room-task-runs Clean room task runs are the executions of notebooks in a clean room. clean-rooms A clean room uses Delta Sharing and serverless compute to provide a secure and privacy-protecting environment where multiple parties can work together on sensitive enterprise data without direct access to each other's data. Quality Monitor - quality-monitor-v2 Deprecated: Please use the Data Quality Monitoring API instead (REST: /api/data-quality/v1/monitors). + quality-monitor-v2 *Beta* Deprecated: Please use the Data Quality Monitoring API instead (REST: /api/data-quality/v1/monitors). Data Classification - data-classification Manage data classification for Unity Catalog catalogs. + data-classification *Beta* Manage data classification for Unity Catalog catalogs. Data Quality Monitoring - data-quality Manage the data quality of Unity Catalog objects (currently support schema and table). + data-quality *Public Preview* Manage the data quality of Unity Catalog objects (currently support schema and table). Database Instances - database Database Instances provide access to a database via REST API or direct SQL. + database *Public Preview* Database Instances provide access to a database via REST API or direct SQL. psql Connect to a Lakebase Postgres database Agent Bricks - knowledge-assistants Manage Knowledge Assistants and related resources. + knowledge-assistants *Beta* Manage Knowledge Assistants and related resources. + supervisor-agents *Beta* Manage Supervisor Agents and related resources. Tags tag-policies The Tag Policy API allows you to manage policies for governed tags in Databricks. - workspace-entity-tag-assignments Manage tag assignments on workspace-scoped objects. + workspace-entity-tag-assignments *Beta* Manage tag assignments on workspace-scoped objects. Postgres - postgres Use the Postgres API to create and manage Lakebase Autoscaling Postgres infrastructure, including projects, branches, compute endpoints, and roles. + postgres *Beta* Use the Postgres API to create and manage Lakebase Autoscaling Postgres infrastructure, including projects, branches, compute endpoints, and roles. Environments environments APIs to manage environment resources. diff --git a/acceptance/pipelines/databricks-cli-help/output.txt b/acceptance/pipelines/databricks-cli-help/output.txt index 9043af0f127..f558ed25192 100644 --- a/acceptance/pipelines/databricks-cli-help/output.txt +++ b/acceptance/pipelines/databricks-cli-help/output.txt @@ -31,7 +31,7 @@ Available Commands stop Stop a pipeline Management Commands - apply-environment Apply the latest environment to the pipeline. + apply-environment *Public Preview* Apply the latest environment to the pipeline. clone Clone a pipeline. create Create a pipeline. delete Delete a pipeline. diff --git a/acceptance/telemetry/success/out.requests.txt b/acceptance/telemetry/success/out.requests.txt index f73cd0a891e..b6617a056a6 100644 --- a/acceptance/telemetry/success/out.requests.txt +++ b/acceptance/telemetry/success/out.requests.txt @@ -13,7 +13,7 @@ "Bearer [DATABRICKS_TOKEN]" ], "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/selftest_send-telemetry cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/selftest_send-telemetry cmd-exec-id/[CMD-EXEC-ID] interactive/none auth/pat agent/multiple" ], "X-Databricks-Org-Id": [ "[NUMID]" diff --git a/acceptance/workspace/jobs/create/out.requests.txt b/acceptance/workspace/jobs/create/out.requests.txt index 8cde6c5f5fc..3c4462b9f67 100644 --- a/acceptance/workspace/jobs/create/out.requests.txt +++ b/acceptance/workspace/jobs/create/out.requests.txt @@ -13,7 +13,7 @@ "Bearer [DATABRICKS_TOKEN]" ], "User-Agent": [ - "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/jobs_create cmd-exec-id/[UUID] interactive/none auth/pat" + "cli/[DEV_VERSION] databricks-sdk-go/[SDK_VERSION] go/[GO_VERSION] os/[OS] cmd/jobs_create cmd-exec-id/[UUID] interactive/none auth/pat agent/multiple" ] }, "method": "POST", diff --git a/bundle/config/mutator/resourcemutator/capture_uc_dependencies_test.go b/bundle/config/mutator/resourcemutator/capture_uc_dependencies_test.go index 12aac0c472e..a9a3a626268 100644 --- a/bundle/config/mutator/resourcemutator/capture_uc_dependencies_test.go +++ b/bundle/config/mutator/resourcemutator/capture_uc_dependencies_test.go @@ -239,6 +239,7 @@ func TestCaptureUCDependenciesModelServingEndpointEdgeCases(t *testing.T) { // AutoCaptureConfig path. "auto_capture": {CreateServingEndpoint: serving.CreateServingEndpoint{ Config: &serving.EndpointCoreConfigInput{ + //nolint:staticcheck // SA1019: deprecated AutoCaptureConfigInput kept for bundle config compatibility AutoCaptureConfig: &serving.AutoCaptureConfigInput{ CatalogName: "mycatalog", SchemaName: "myschema", }, diff --git a/bundle/direct/dresources/all_test.go b/bundle/direct/dresources/all_test.go index 9f0dc07e90b..0b0e273c1c8 100644 --- a/bundle/direct/dresources/all_test.go +++ b/bundle/direct/dresources/all_test.go @@ -141,6 +141,7 @@ var testConfig map[string]any = map[string]any{ Name: "my-endpoint", Config: &serving.EndpointCoreConfigInput{ Name: "my-endpoint", + //nolint:staticcheck // SA1019: deprecated AutoCaptureConfigInput kept for bundle config compatibility AutoCaptureConfig: &serving.AutoCaptureConfigInput{ CatalogName: "main", SchemaName: "myschema", diff --git a/bundle/direct/dresources/model_serving_endpoint.go b/bundle/direct/dresources/model_serving_endpoint.go index 06a8dbda40f..4d384edab1f 100644 --- a/bundle/direct/dresources/model_serving_endpoint.go +++ b/bundle/direct/dresources/model_serving_endpoint.go @@ -34,6 +34,11 @@ func (*ResourceModelServingEndpoint) PrepareState(input *resources.ModelServingE return &input.CreateServingEndpoint } +// AutoCaptureConfig is the legacy inference-table API; the recommended replacement +// is AI Gateway inference tables. Bundles still expose it, so the conversion has to +// keep working until users have migrated. +// +//nolint:staticcheck // SA1019: deprecated AutoCaptureConfig{Input,Output} kept for bundle config compatibility func autoCaptureConfigOutputToInput(output *serving.AutoCaptureConfigOutput) *serving.AutoCaptureConfigInput { if output == nil { return nil diff --git a/bundle/direct/dresources/postgres_branch.go b/bundle/direct/dresources/postgres_branch.go index cb042699dec..19aa77ce7f1 100644 --- a/bundle/direct/dresources/postgres_branch.go +++ b/bundle/direct/dresources/postgres_branch.go @@ -72,6 +72,8 @@ func (r *ResourcePostgresBranch) DoCreate(ctx context.Context, config *PostgresB UpdateTime: nil, ForceSendFields: nil, }, + ReplaceExisting: false, + ForceSendFields: nil, }) if err != nil { return "", nil, err diff --git a/bundle/direct/dresources/postgres_endpoint.go b/bundle/direct/dresources/postgres_endpoint.go index 63f0eb0f2db..9ccec27f327 100644 --- a/bundle/direct/dresources/postgres_endpoint.go +++ b/bundle/direct/dresources/postgres_endpoint.go @@ -112,6 +112,8 @@ func (r *ResourcePostgresEndpoint) DoCreate(ctx context.Context, config *Postgre UpdateTime: nil, ForceSendFields: nil, }, + ReplaceExisting: false, + ForceSendFields: nil, }) if err != nil { return "", nil, err diff --git a/bundle/direct/dresources/postgres_project.go b/bundle/direct/dresources/postgres_project.go index e1e802b2678..86c40d35255 100644 --- a/bundle/direct/dresources/postgres_project.go +++ b/bundle/direct/dresources/postgres_project.go @@ -64,7 +64,9 @@ func (r *ResourcePostgresProject) DoCreate(ctx context.Context, config *Postgres // Output-only fields. CreateTime: nil, + DeleteTime: nil, Name: "", + PurgeTime: nil, Status: nil, Uid: "", UpdateTime: nil, @@ -98,7 +100,9 @@ func (r *ResourcePostgresProject) DoUpdate(ctx context.Context, id string, confi // Output-only fields. CreateTime: nil, + DeleteTime: nil, Name: "", + PurgeTime: nil, Status: nil, Uid: "", UpdateTime: nil, @@ -120,7 +124,9 @@ func (r *ResourcePostgresProject) DoUpdate(ctx context.Context, id string, confi func (r *ResourcePostgresProject) DoDelete(ctx context.Context, id string) error { waiter, err := r.client.Postgres.DeleteProject(ctx, postgres.DeleteProjectRequest{ - Name: id, + Name: id, + Purge: false, + ForceSendFields: nil, }) if err != nil { return err diff --git a/bundle/direct/dresources/resources.generated.yml b/bundle/direct/dresources/resources.generated.yml index 6c3778d3494..85c15d6f343 100644 --- a/bundle/direct/dresources/resources.generated.yml +++ b/bundle/direct/dresources/resources.generated.yml @@ -59,6 +59,8 @@ resources: reason: spec:output_only - field: service_principal_name reason: spec:output_only + - field: thumbnail_url + reason: spec:output_only - field: update_time reason: spec:output_only - field: updater diff --git a/bundle/direct/dresources/resources.yml b/bundle/direct/dresources/resources.yml index 569fca9ee82..a3e289aed8e 100644 --- a/bundle/direct/dresources/resources.yml +++ b/bundle/direct/dresources/resources.yml @@ -388,6 +388,8 @@ resources: ignore_remote_changes: - field: space # This field is not yet supported by Update APIs but exposed in the API spec. TODO: fix when update APIs supports it. reason: managed + - field: thumbnail_url # Set server-side via the SetAppThumbnail API, not through the App Update API. + reason: output_only secret_scopes: backend_defaults: diff --git a/bundle/direct/dresources/type_test.go b/bundle/direct/dresources/type_test.go index 8e711c9bf03..88f246723bf 100644 --- a/bundle/direct/dresources/type_test.go +++ b/bundle/direct/dresources/type_test.go @@ -76,7 +76,7 @@ var knownMissingInRemoteType = map[string][]string{ "project_id", }, "vector_search_endpoints": { - "min_qps", + "target_qps", "usage_policy_id", }, } diff --git a/bundle/direct/dresources/vector_search_endpoint.go b/bundle/direct/dresources/vector_search_endpoint.go index 24bbd1a6e74..0d904f6807b 100644 --- a/bundle/direct/dresources/vector_search_endpoint.go +++ b/bundle/direct/dresources/vector_search_endpoint.go @@ -13,7 +13,7 @@ import ( var ( pathBudgetPolicyId = structpath.MustParsePath("budget_policy_id") - pathMinQps = structpath.MustParsePath("min_qps") + pathTargetQps = structpath.MustParsePath("target_qps") ) // VectorSearchEndpointRemote is remote state for a vector search endpoint. It embeds API response @@ -46,16 +46,16 @@ func (*ResourceVectorSearchEndpoint) PrepareState(input *resources.VectorSearchE } func (*ResourceVectorSearchEndpoint) RemapState(remote *VectorSearchEndpointRemote) *vectorsearch.CreateEndpoint { - var minQps int64 + var targetQps int64 if remote.ScalingInfo != nil { - minQps = remote.ScalingInfo.RequestedMinQps + targetQps = remote.ScalingInfo.RequestedTargetQps } return &vectorsearch.CreateEndpoint{ Name: remote.Name, EndpointType: remote.EndpointType, BudgetPolicyId: remote.BudgetPolicyId, UsagePolicyId: "", // Missing in remote - MinQps: minQps, + TargetQps: targetQps, ForceSendFields: utils.FilterFields[vectorsearch.CreateEndpoint](remote.ForceSendFields, "UsagePolicyId"), } } @@ -96,10 +96,10 @@ func (r *ResourceVectorSearchEndpoint) DoUpdate(ctx context.Context, id string, } } - if entry.Changes.HasChange(pathMinQps) { + if entry.Changes.HasChange(pathTargetQps) { _, err := r.client.VectorSearchEndpoints.PatchEndpoint(ctx, vectorsearch.PatchEndpointRequest{ EndpointName: id, - MinQps: config.MinQps, + TargetQps: config.TargetQps, ForceSendFields: nil, }) if err != nil { diff --git a/bundle/docsgen/output/reference.md b/bundle/docsgen/output/reference.md index ea8f922575e..9d41a86792d 100644 --- a/bundle/docsgen/output/reference.md +++ b/bundle/docsgen/output/reference.md @@ -1,7 +1,7 @@ --- description: 'Configuration reference for databricks.yml' last_update: - date: 2026-04-23 + date: 2026-05-11 --- @@ -825,6 +825,10 @@ apps: - Sequence - See [\_](#resourcesappsnametelemetry_export_destinations). +- - `thumbnail_url` + - String + - + - - `update_time` - String - @@ -1970,10 +1974,6 @@ vector_search_endpoints: - Map - See [\_](#resourcesvector_search_endpointsnamelifecycle). -- - `min_qps` - - Integer - - - - - `name` - String - @@ -1982,6 +1982,10 @@ vector_search_endpoints: - Sequence - See [\_](#resourcesvector_search_endpointsnamepermissions). +- - `target_qps` + - Integer + - + - - `usage_policy_id` - String - @@ -2899,6 +2903,10 @@ apps: - Sequence - See [\_](#targetsnameresourcesappsnametelemetry_export_destinations). +- - `thumbnail_url` + - String + - + - - `update_time` - String - @@ -4044,10 +4052,6 @@ vector_search_endpoints: - Map - See [\_](#targetsnameresourcesvector_search_endpointsnamelifecycle). -- - `min_qps` - - Integer - - - - - `name` - String - @@ -4056,6 +4060,10 @@ vector_search_endpoints: - Sequence - See [\_](#targetsnameresourcesvector_search_endpointsnamepermissions). +- - `target_qps` + - Integer + - + - - `usage_policy_id` - String - diff --git a/bundle/docsgen/output/resources.md b/bundle/docsgen/output/resources.md index e262f4620b6..392e574dcd3 100644 --- a/bundle/docsgen/output/resources.md +++ b/bundle/docsgen/output/resources.md @@ -1,7 +1,7 @@ --- description: 'Learn about resources supported by Declarative Automation Bundles and how to configure them.' last_update: - date: 2026-04-23 + date: 2026-05-11 --- @@ -572,6 +572,10 @@ apps: - Sequence - See [\_](#appsnametelemetry_export_destinations). +- - `thumbnail_url` + - String + - + - - `usage_policy_id` - String - @@ -1786,6 +1790,10 @@ If not specified at cluster creation, a set of default values will be used. - Integer - Boot disk size in GB +- - `confidential_compute_type` + - String + - + - - `first_on_demand` - Integer - The first `first_on_demand` nodes of the cluster will be placed on on-demand instances. This value should be greater than 0, to make sure the cluster driver node is placed on an on-demand instance. If this value is greater than or equal to the current cluster size, all nodes will be placed on on-demand instances. If this value is less than the current cluster size, `first_on_demand` nodes will be placed on on-demand instances and the remainder will be placed on `availability` instances. Note that this value does not affect cluster size and cannot currently be mutated over the lifetime of a cluster. @@ -4005,6 +4013,10 @@ If not specified at cluster creation, a set of default values will be used. - Integer - Boot disk size in GB +- - `confidential_compute_type` + - String + - + - - `first_on_demand` - Integer - The first `first_on_demand` nodes of the cluster will be placed on on-demand instances. This value should be greater than 0, to make sure the cluster driver node is placed on an on-demand instance. If this value is greater than or equal to the current cluster size, all nodes will be placed on on-demand instances. If this value is less than the current cluster size, `first_on_demand` nodes will be placed on on-demand instances and the remainder will be placed on `availability` instances. Note that this value does not affect cluster size and cannot currently be mutated over the lifetime of a cluster. @@ -5696,6 +5708,10 @@ If not specified at cluster creation, a set of default values will be used. - Integer - Boot disk size in GB +- - `confidential_compute_type` + - String + - + - - `first_on_demand` - Integer - The first `first_on_demand` nodes of the cluster will be placed on on-demand instances. This value should be greater than 0, to make sure the cluster driver node is placed on an on-demand instance. If this value is greater than or equal to the current cluster size, all nodes will be placed on on-demand instances. If this value is less than the current cluster size, `first_on_demand` nodes will be placed on on-demand instances and the remainder will be placed on `availability` instances. Note that this value does not affect cluster size and cannot currently be mutated over the lifetime of a cluster. @@ -8781,6 +8797,10 @@ If not specified at cluster creation, a set of default values will be used. - Integer - Boot disk size in GB +- - `confidential_compute_type` + - String + - + - - `first_on_demand` - Integer - The first `first_on_demand` nodes of the cluster will be placed on on-demand instances. This value should be greater than 0, to make sure the cluster driver node is placed on an on-demand instance. If this value is greater than or equal to the current cluster size, all nodes will be placed on on-demand instances. If this value is less than the current cluster size, `first_on_demand` nodes will be placed on on-demand instances and the remainder will be placed on `availability` instances. Note that this value does not affect cluster size and cannot currently be mutated over the lifetime of a cluster. @@ -9566,6 +9586,10 @@ Top-level source configurations - Map - Catalog-level source configuration parameters. See [\_](#pipelinesnameingestion_definitionsource_configurationscatalog). +- - `google_ads_config` + - Map + - See [\_](#pipelinesnameingestion_definitionsource_configurationsgoogle_ads_config). + ::: @@ -11480,10 +11504,6 @@ vector_search_endpoints: - Map - See [\_](#vector_search_endpointsnamelifecycle). -- - `min_qps` - - Integer - - - - - `name` - String - @@ -11492,6 +11512,10 @@ vector_search_endpoints: - Sequence - See [\_](#vector_search_endpointsnamepermissions). +- - `target_qps` + - Integer + - + ::: diff --git a/bundle/internal/schema/annotations.yml b/bundle/internal/schema/annotations.yml index 2f28ca27596..f6ac5c45d4d 100644 --- a/bundle/internal/schema/annotations.yml +++ b/bundle/internal/schema/annotations.yml @@ -531,6 +531,9 @@ github.com/databricks/cli/bundle/config/resources.App: Git source configuration for app deployments. Specifies which git reference (branch, tag, or commit) to use when deploying the app. Used in conjunction with git_repository to deploy code directly from git. The source_code_path within git_source specifies the relative path to the app code within the repository. + "thumbnail_url": + "description": |- + PLACEHOLDER github.com/databricks/cli/bundle/config/resources.AppConfig: "command": "description": |- @@ -971,15 +974,15 @@ github.com/databricks/cli/bundle/config/resources.VectorSearchEndpoint: "lifecycle": "description": |- PLACEHOLDER - "min_qps": - "description": |- - PLACEHOLDER "name": "description": |- PLACEHOLDER "permissions": "description": |- PLACEHOLDER + "target_qps": + "description": |- + PLACEHOLDER "usage_policy_id": "description": |- PLACEHOLDER diff --git a/bundle/internal/schema/annotations_openapi.yml b/bundle/internal/schema/annotations_openapi.yml index 84a4b01b545..23c5770dcc0 100644 --- a/bundle/internal/schema/annotations_openapi.yml +++ b/bundle/internal/schema/annotations_openapi.yml @@ -115,8 +115,6 @@ github.com/databricks/cli/bundle/config/resources.App: "description": |- Git repository configuration for app deployments. When specified, deployments can reference code from this repository by providing only the git reference (branch, tag, or commit). - "x-databricks-preview": |- - PRIVATE "id": "description": |- The unique identifier of the app. @@ -156,6 +154,11 @@ github.com/databricks/cli/bundle/config/resources.App: "x-databricks-preview": |- PRIVATE "telemetry_export_destinations": {} + "thumbnail_url": + "description": |- + The URL of the thumbnail image for the app. + "x-databricks-field-behaviors_output_only": |- + true "update_time": "description": |- The update time of the app. Formatted timestamp in ISO 6801. @@ -183,8 +186,6 @@ github.com/databricks/cli/bundle/config/resources.Catalog: "managed_encryption_settings": "description": |- Control CMK encryption for managed catalog data - "x-databricks-preview": |- - PRIVATE "name": "description": |- Name of catalog. @@ -775,7 +776,7 @@ github.com/databricks/cli/bundle/config/resources.Pipeline: A catalog in Unity Catalog to publish data from this pipeline to. If `target` is specified, tables in this pipeline are published to a `target` schema inside `catalog` (for example, `catalog`.`target`.`table`). If `target` is not specified, no data is published to Unity Catalog. "channel": "description": |- - DLT Release Channel that specifies which version to use. + SDP Release Channel that specifies which version to use. "clusters": "description": |- Cluster settings for this pipeline deployment. @@ -1136,13 +1137,14 @@ github.com/databricks/cli/bundle/config/resources.VectorSearchEndpoint: "endpoint_type": "description": |- Type of endpoint - "min_qps": - "description": |- - Min QPS for the endpoint. Mutually exclusive with num_replicas. - The actual replica count is calculated at index creation/sync time based on this value. "name": "description": |- Name of the vector search endpoint + "target_qps": + "description": |- + Target QPS for the endpoint. Mutually exclusive with num_replicas. + The actual replica count is calculated at index creation/sync time based on this value. + Best-effort target; the system does not guarantee this QPS will be achieved. "usage_policy_id": "description": |- The usage policy id to be applied once we've migrated to usage policies @@ -1197,8 +1199,6 @@ github.com/databricks/databricks-sdk-go/service/apps.AppDeployment: "git_source": "description": |- Git repository to use as the source for the app deployment. - "x-databricks-preview": |- - PRIVATE "mode": "description": |- The mode of which the deployment will manage the source code. @@ -1466,6 +1466,8 @@ github.com/databricks/databricks-sdk-go/service/apps.ComputeSize: MEDIUM - |- LARGE + - |- + LIQUID github.com/databricks/databricks-sdk-go/service/apps.ComputeState: "_": "enum": @@ -1547,8 +1549,6 @@ github.com/databricks/databricks-sdk-go/service/apps.GitSource: commit SHA that the branch or tag pointed to at deployment time. "x-databricks-field-behaviors_output_only": |- true - "x-databricks-preview": |- - PRIVATE "source_code_path": "description": |- Relative path to the app source code within the Git repository. If not specified, the root @@ -1881,6 +1881,30 @@ github.com/databricks/databricks-sdk-go/service/catalog.Privilege: EXECUTE_CLEAN_ROOM_TASK - |- EXTERNAL_USE_SCHEMA + - |- + VIEW_OBJECT + - |- + MANAGE_GRANTS + - |- + INSERT + - |- + UPDATE + - |- + DELETE + - |- + VIEW_ADMIN_METADATA + - |- + VIEW_METADATA + - |- + USE_VOLUME + - |- + READ_METADATA + - |- + MANAGE_ACCESS + - |- + MANAGE_ACCESS_CONTROL + - |- + CREATE_SERVICE github.com/databricks/databricks-sdk-go/service/catalog.PrivilegeAssignment: "principal": "description": |- @@ -2316,6 +2340,18 @@ github.com/databricks/databricks-sdk-go/service/compute.ClusterSpec: "workload_type": "description": |- Cluster Attributes showing for clusters workload types. +github.com/databricks/databricks-sdk-go/service/compute.ConfidentialComputeType: + "_": + "description": |- + Confidential computing technology for GCP instances. + Aligns with gcloud's --confidential-compute-type flag and the REST API's + confidentialInstanceConfig.confidentialInstanceType field. + See: https://cloud.google.com/confidential-computing/confidential-vm/docs/create-a-confidential-vm-instance + "enum": + - |- + CONFIDENTIAL_COMPUTE_TYPE_NONE + - |- + SEV_SNP github.com/databricks/databricks-sdk-go/service/compute.DataSecurityMode: "_": "description": |- @@ -2394,7 +2430,7 @@ github.com/databricks/databricks-sdk-go/service/compute.EbsVolumeType: github.com/databricks/databricks-sdk-go/service/compute.Environment: "_": "description": |- - The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and DLT's environment for classic and serverless pipelines. + The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and SDP's environment for classic and serverless pipelines. In this minimal environment spec, only pip and java dependencies are supported. "base_environment": "description": |- @@ -2433,6 +2469,13 @@ github.com/databricks/databricks-sdk-go/service/compute.GcpAttributes: "boot_disk_size": "description": |- Boot disk size in GB + "confidential_compute_type": + "description": |- + The confidential computing technology for this cluster's instances. + Currently only SEV_SNP is supported, and only on N2D instance types. + When not set, no confidential computing is applied. + "x-databricks-preview": |- + PRIVATE "first_on_demand": "description": |- The first `first_on_demand` nodes of the cluster will be placed on on-demand instances. @@ -2499,6 +2542,8 @@ github.com/databricks/databricks-sdk-go/service/compute.HardwareAcceleratorType: GPU_1xA10 - |- GPU_8xH100 + - |- + GPU_1xH100 github.com/databricks/databricks-sdk-go/service/compute.InitScriptInfo: "_": "description": |- @@ -2755,6 +2800,8 @@ github.com/databricks/databricks-sdk-go/service/database.DatabaseInstanceState: UPDATING - |- FAILING_OVER + - |- + MIGRATING github.com/databricks/databricks-sdk-go/service/database.DeltaTableSyncInfo: "delta_commit_timestamp": "description": |- @@ -3102,6 +3149,8 @@ github.com/databricks/databricks-sdk-go/service/iam.PermissionLevel: CAN_MONITOR_ONLY - |- CAN_CREATE_APP + - |- + UNSPECIFIED github.com/databricks/databricks-sdk-go/service/jobs.AlertTask: "alert_id": "description": |- @@ -3483,7 +3532,7 @@ github.com/databricks/databricks-sdk-go/service/jobs.JobEnvironment: The key of an environment. It has to be unique within a job. "spec": "description": |- - The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and DLT's environment for classic and serverless pipelines. + The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and SDP's environment for classic and serverless pipelines. In this minimal environment spec, only pip and java dependencies are supported. github.com/databricks/databricks-sdk-go/service/jobs.JobNotificationSettings: "no_alert_for_canceled_runs": @@ -3705,11 +3754,11 @@ github.com/databricks/databricks-sdk-go/service/jobs.PeriodicTriggerConfiguratio github.com/databricks/databricks-sdk-go/service/jobs.PipelineParams: "full_refresh": "description": |- - If true, triggers a full refresh on the delta live table. + If true, triggers a full refresh on the spark declarative pipeline. github.com/databricks/databricks-sdk-go/service/jobs.PipelineTask: "full_refresh": "description": |- - If true, triggers a full refresh on the delta live table. + If true, triggers a full refresh on the spark declarative pipeline. "pipeline_id": "description": |- The full name of the pipeline task to execute. @@ -4355,6 +4404,13 @@ github.com/databricks/databricks-sdk-go/service/pipelines.AutoFullRefreshPolicy: (Optional, Mutable) Specify the minimum interval in hours between the timestamp at which a table was last full refreshed and the current timestamp for triggering auto full If unspecified and autoFullRefresh is enabled then by default min_interval_hours is 24 hours. +github.com/databricks/databricks-sdk-go/service/pipelines.ConfluenceConnectorOptions: + "_": + "description": |- + Confluence specific options for ingestion + "include_confluence_spaces": + "description": |- + (Optional) Spaces to filter Confluence data on github.com/databricks/databricks-sdk-go/service/pipelines.ConnectionParameters: "source_catalog": "description": |- @@ -4368,6 +4424,9 @@ github.com/databricks/databricks-sdk-go/service/pipelines.ConnectorOptions: "_": "description": |- Wrapper message for source-specific options to support multiple connector types + "confluence_options": + "description": |- + Confluence specific options for ingestion "gdrive_options": "x-databricks-preview": |- PRIVATE @@ -4378,14 +4437,35 @@ github.com/databricks/databricks-sdk-go/service/pipelines.ConnectorOptions: (source_configurations). "x-databricks-preview": |- PRIVATE + "jira_options": + "description": |- + Jira specific options for ingestion + "meta_ads_options": + "description": |- + Meta Marketing (Meta Ads) specific options for ingestion + "outlook_options": + "description": |- + Outlook specific options for ingestion + "x-databricks-preview": |- + PRIVATE "sharepoint_options": "x-databricks-preview": |- PRIVATE + "smartsheet_options": + "description": |- + Smartsheet specific options for ingestion + "x-databricks-preview": |- + PRIVATE "tiktok_ads_options": "description": |- TikTok Ads specific options for ingestion "x-databricks-preview": |- PRIVATE + "zendesk_support_options": + "description": |- + Zendesk Support specific options for ingestion + "x-databricks-preview": |- + PRIVATE github.com/databricks/databricks-sdk-go/service/pipelines.ConnectorType: "_": "description": |- @@ -4545,6 +4625,14 @@ github.com/databricks/databricks-sdk-go/service/pipelines.Filters: "include": "description": |- Paths to include. +github.com/databricks/databricks-sdk-go/service/pipelines.GoogleAdsConfig: + "manager_account_id": + "description": |- + (Required) Manager Account ID (also called MCC Account ID) used to list and access + customer accounts under this manager account. This is required for fetching the list + of customer accounts during source selection. + If the same field is also set in the object-level GoogleAdsOptions (connector_options), + the object-level value takes precedence over this top-level config. github.com/databricks/databricks-sdk-go/service/pipelines.GoogleAdsOptions: "_": "description": |- @@ -4648,8 +4736,6 @@ github.com/databricks/databricks-sdk-go/service/pipelines.IngestionPipelineDefin UC foreign catalogs directly without the need to specify a UC connection or ingestion gateway. The `source_catalog` fields in objects of IngestionConfig are interpreted as the UC foreign catalogs to ingest from. - "x-databricks-preview": |- - PRIVATE "ingestion_gateway_id": "description": |- Identifier for the gateway that is used by this ingestion pipeline to communicate with the source database. @@ -4691,8 +4777,6 @@ github.com/databricks/databricks-sdk-go/service/pipelines.IngestionPipelineDefin If the source data is merged into the destination (e.g., using SCD Type 1 or Type 2), these columns will implicitly define the `sequence_by` behavior. You can still explicitly set `sequence_by` to override this default. - "x-databricks-preview": |- - PRIVATE "deletion_condition": "description": |- Specifies a SQL WHERE condition that specifies that the source row has been deleted. @@ -4702,8 +4786,6 @@ github.com/databricks/databricks-sdk-go/service/pipelines.IngestionPipelineDefin one for soft-deletes and the other for hard-deletes. See also the hard_deletion_sync_min_interval_in_seconds field for handling of "hard deletes" where the source rows are physically removed from the table. - "x-databricks-preview": |- - PRIVATE "hard_deletion_sync_min_interval_in_seconds": "description": |- Specifies the minimum interval (in seconds) between snapshots on primary keys @@ -4714,8 +4796,6 @@ github.com/databricks/databricks-sdk-go/service/pipelines.IngestionPipelineDefin frequency instead of happening more often. If not set, hard deletion synchronization via snapshots is disabled. This field is mutable and can be updated without triggering a full snapshot. - "x-databricks-preview": |- - PRIVATE github.com/databricks/databricks-sdk-go/service/pipelines.IngestionPipelineDefinitionWorkdayReportParameters: "incremental": "description": |- @@ -4757,6 +4837,10 @@ github.com/databricks/databricks-sdk-go/service/pipelines.IngestionSourceType: MYSQL - |- POSTGRESQL + - |- + REDSHIFT + - |- + SQLDW - |- SQLSERVER - |- @@ -4783,9 +4867,212 @@ github.com/databricks/databricks-sdk-go/service/pipelines.IngestionSourceType: DYNAMICS365 - |- GOOGLE_DRIVE + - |- + JIRA + - |- + CONFLUENCE + - |- + META_MARKETING + - |- + GOOGLE_ADS + - |- + TIKTOK_ADS + - |- + SALESFORCE_MARKETING_CLOUD + - |- + HUBSPOT + - |- + WORKDAY_HCM + - |- + GUIDEWIRE + - |- + ZENDESK + - |- + COMMUNITY + - |- + SLACK_AUDIT_LOGS + - |- + KAFKA + - |- + CROWDSTRIKE_EVENT_STREAM + - |- + WORKDAY_ACTIVITY_LOGGING + - |- + AKAMAI_WAF + - |- + VEEVA + - |- + VEEVA_VAULT + - |- + M365_AUDIT_LOGS + - |- + OKTA_SYSTEM_LOGS + - |- + ONE_PASSWORD_EVENT_LOGS + - |- + PROOFPOINT_SIEM + - |- + WIZ_AUDIT_LOGS + - |- + GITHUB + - |- + OUTLOOK + - |- + SMARTSHEET + - |- + MICROSOFT_TEAMS + - |- + ADOBE_CAMPAIGNS + - |- + LINKEDIN_ADS + - |- + X_ADS + - |- + BING_ADS + - |- + GOOGLE_SEARCH_CONSOLE + - |- + PINTEREST_ADS + - |- + REDDIT_ADS + - |- + PENDO + - |- + API_SOURCE + - |- + SLACK_ACCESS_AND_INTEGRATION_LOGS + - |- + ORACLE_FUSION_CLOUD + - |- + RABBITMQ + - |- + GOOGLE_ANALYTICS + - |- + AMPLITUDE + - |- + NOTION + - |- + ADP_WORKFORCE_NOW + - |- + SAS + - |- + GONG + - |- + SALESLOFT + - |- + GOOGLE_WORKSPACE + - |- + SHOPIFY + - |- + ORACLE_ELOQUA + - |- + EPIC_CLARITY + - |- + LINEAR + - |- + APPLE_APP_STORE + - |- + SPLUNK + - |- + GITLAB + - |- + ZOOM_LOGS + - |- + MONDAY_COM + - |- + AIRTABLE + - |- + MICROSOFT_ENTRA_ID + - |- + PAGERDUTY + - |- + APPFIGURES + - |- + ADOBE_COMMERCE + - |- + QUICKBOOKS + - |- + SQUARE + - |- + ZOHO_BOOKS + - |- + SNAPCHAT_ADS + - |- + GENESYS + - |- + SAP_SUCCESSFACTORS + - |- + YOUTUBE_ANALYTICS + - |- + CERIDIAN_DAYFORCE + - |- + FRESHSERVICE + - |- + SENDGRID + - |- + AZURE_MONITOR_LOGS + - |- + ATLASSIAN_ORGANIZATION + - |- + HIBOB + - |- + APPLE_SEARCH_ADS + - |- + AWIN + - |- + DELIGHTED + - |- + FRONT + - |- + GURU + - |- + PARTNERSTACK + - |- + MARKETO + - |- + AHA + - |- + NETSKOPE_LOGS - |- FOREIGN_CATALOG +github.com/databricks/databricks-sdk-go/service/pipelines.JiraConnectorOptions: + "_": + "description": |- + Jira specific options for ingestion + "include_jira_spaces": + "description": |- + (Optional) Projects to filter Jira data on github.com/databricks/databricks-sdk-go/service/pipelines.ManualTrigger: {} +github.com/databricks/databricks-sdk-go/service/pipelines.MetaMarketingOptions: + "_": + "description": |- + Meta Marketing (Meta Ads) specific options for ingestion + "action_attribution_windows": + "description": |- + (Optional) Action attribution windows for insights reporting (e.g. "28d_click", "1d_view") + "action_breakdowns": + "description": |- + (Optional) Action breakdowns to configure for data aggregation + "action_report_time": + "description": |- + (Optional) Timing used to report action statistics (impression, conversion, mixed, or lifetime) + "breakdowns": + "description": |- + (Optional) Breakdowns to configure for data aggregation + "custom_insights_lookback_window": + "description": |- + (Optional) Window in days to revisit data during sync to capture + updated conversion data from the API. + "level": + "description": |- + (Optional) Granularity of data to pull (account, ad, adset, campaign) + "start_date": + "description": |- + (Optional) Start date in yyyy-MM-dd format (e.g. 2025-01-15). Data added + after this date will be ingested + "time_increment": + "description": |- + (Optional) Value in string by which to aggregate statistics (can take all_days, monthly or number of days) github.com/databricks/databricks-sdk-go/service/pipelines.NotebookLibrary: "path": "description": |- @@ -4818,6 +5105,86 @@ github.com/databricks/databricks-sdk-go/service/pipelines.OperationTimeWindow: "description": |- Time zone id of window. See https://docs.databricks.com/sql/language-manual/sql-ref-syntax-aux-conf-mgmt-set-timezone.html for details. If not specified, UTC will be used. +github.com/databricks/databricks-sdk-go/service/pipelines.OutlookAttachmentMode: + "_": + "description": |- + Attachment behavior mode for Outlook ingestion + "enum": + - |- + ALL + - |- + NON_INLINE_ONLY + - |- + INLINE_ONLY + - |- + NONE +github.com/databricks/databricks-sdk-go/service/pipelines.OutlookBodyFormat: + "_": + "description": |- + Body format for Outlook email content + "enum": + - |- + TEXT_HTML + - |- + TEXT_PLAIN +github.com/databricks/databricks-sdk-go/service/pipelines.OutlookOptions: + "_": + "description": |- + Outlook specific options for ingestion + "attachment_mode": + "description": |- + (Optional) Controls which attachments to ingest. + If not specified, defaults to ALL. + "body_format": + "description": |- + (Optional) Defines how the body_content column is populated. + TEXT_HTML: Preserves full formatting, links, and styling. + TEXT_PLAIN: Converts body to plain text. Recommended for AI/RAG pipelines to reduce token usage and noise. + "folder_filter": + "description": |- + Deprecated. Use include_folders instead. + "deprecation_message": |- + This field is deprecated + "include_folders": + "description": |- + (Optional) Filter mail folders to include in the sync. + If not specified, all folders will be synced. + Examples: Inbox, Sent Items, Custom_Folder + Filter semantics: OR between different folders. + "include_mailboxes": + "description": |- + (Optional) List of mailboxes to sync (e.g. mailbox email addresses or identifiers). + If not specified, all accessible mailboxes are ingested. + Filter semantics: OR between different mailboxes. + "include_senders": + "description": |- + (Optional) Filter emails by sender address. Uses exact email match. + Examples: user@vendor.com, alerts@system.io, noreply@company.com + If not specified, emails from all senders will be synced. + Filter semantics: OR between different senders. + "include_subjects": + "description": |- + (Optional) Filter emails by subject line. Values ending with "*" use prefix match (subject starts with + the part before "*"); otherwise substring match (subject contains the value). + Examples: "Invoice" (substring), "Re:*" (prefix), "Support Ticket", "URGENT*" + If not specified, emails with all subjects will be synced. + Filter semantics: OR between different subjects. + "sender_filter": + "description": |- + Deprecated. Use include_senders instead. + "deprecation_message": |- + This field is deprecated + "start_date": + "description": |- + (Optional) Start date for the initial sync in YYYY-MM-DD format. + Format: YYYY-MM-DD (e.g., 2024-01-01) + This determines the earliest date from which to sync historical data. + If not specified, complete history is ingested. + "subject_filter": + "description": |- + Deprecated. Use include_subjects instead. + "deprecation_message": |- + This field is deprecated github.com/databricks/databricks-sdk-go/service/pipelines.PathPattern: "include": "description": |- @@ -5001,7 +5368,7 @@ github.com/databricks/databricks-sdk-go/service/pipelines.PipelineTrigger: github.com/databricks/databricks-sdk-go/service/pipelines.PipelinesEnvironment: "_": "description": |- - The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and DLT's environment for classic and serverless pipelines. + The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and SDP's environment for classic and serverless pipelines. In this minimal environment spec, only pip dependencies are supported. "dependencies": "description": |- @@ -5084,8 +5451,6 @@ github.com/databricks/databricks-sdk-go/service/pipelines.SchemaSpec: "connector_options": "description": |- (Optional) Source Specific Connector Options - "x-databricks-preview": |- - PRIVATE "destination_catalog": "description": |- Required. Destination catalog to store tables. @@ -5123,6 +5488,17 @@ github.com/databricks/databricks-sdk-go/service/pipelines.SharepointOptionsShare PERMISSION - |- LIST +github.com/databricks/databricks-sdk-go/service/pipelines.SmartsheetOptions: + "_": + "description": |- + Smartsheet specific options for ingestion + "enforce_schema": + "description": |- + (Optional) When true, maps each column to its Smartsheet-declared type (Text/Number/Date/ + Checkbox/etc.). Cells that do not conform to the declared type are set to NULL. + When false, all columns land as STRING. Use false for sheets with irregular data or columns + that frequently violate their own declared type. + If not specified, defaults to true. github.com/databricks/databricks-sdk-go/service/pipelines.SourceCatalogConfig: "_": "description": |- @@ -5137,12 +5513,13 @@ github.com/databricks/databricks-sdk-go/service/pipelines.SourceConfig: "catalog": "description": |- Catalog-level source configuration parameters + "google_ads_config": + "x-databricks-preview": |- + PRIVATE github.com/databricks/databricks-sdk-go/service/pipelines.TableSpec: "connector_options": "description": |- (Optional) Source Specific Connector Options - "x-databricks-preview": |- - PRIVATE "destination_catalog": "description": |- Required. Destination catalog to store table. @@ -5197,15 +5574,11 @@ github.com/databricks/databricks-sdk-go/service/pipelines.TableSpecificConfig: "query_based_connector_config": "description": |- Configurations that are only applicable for query-based ingestion connectors. - "x-databricks-preview": |- - PRIVATE "row_filter": "description": |- (Optional, Immutable) The row filter condition to be applied to the table. It must not contain the WHERE keyword, only the actual filter condition. It must be in DBSQL format. - "x-databricks-preview": |- - PRIVATE "salesforce_include_formula_fields": "description": |- If true, formula fields defined in the table are included in the ingestion. This setting is only valid for the Salesforce connector @@ -5214,8 +5587,6 @@ github.com/databricks/databricks-sdk-go/service/pipelines.TableSpecificConfig: "scd_type": "description": |- The SCD type to use to ingest the table. - "x-databricks-preview": |- - PRIVATE "sequence_by": "description": |- The column names specifying the logical order of events in the source data. Spark Declarative Pipelines uses this sequencing to handle change events that arrive out of order. @@ -5303,6 +5674,14 @@ github.com/databricks/databricks-sdk-go/service/pipelines.TikTokAdsOptionsTikTok BUSINESS_CENTER - |- GMV_MAX +github.com/databricks/databricks-sdk-go/service/pipelines.ZendeskSupportOptions: + "_": + "description": |- + Zendesk Support specific options for ingestion + "start_date": + "description": |- + (Optional) Start date in YYYY-MM-DD format for the initial sync. + This determines the earliest date from which to sync historical data. github.com/databricks/databricks-sdk-go/service/postgres.EndpointGroupSpec: "enable_readable_secondaries": "description": |- @@ -5354,6 +5733,7 @@ github.com/databricks/databricks-sdk-go/service/postgres.ProjectDefaultEndpointS "description": |- When set to true, explicitly disables automatic suspension (never suspend). Should be set to true when provided. + Mutually exclusive with `suspend_timeout_duration`. When updating, use `spec.project_default_settings.suspension` in the update_mask. "pg_settings": "description": |- A raw representation of Postgres settings. @@ -5361,6 +5741,7 @@ github.com/databricks/databricks-sdk-go/service/postgres.ProjectDefaultEndpointS "description": |- Duration of inactivity after which the compute endpoint is automatically suspended. If specified should be between 60s and 604800s (1 minute to 1 week). + Mutually exclusive with `no_suspension`. When updating, use `spec.project_default_settings.suspension` in the update_mask. github.com/databricks/databricks-sdk-go/service/serving.Ai21LabsConfig: "ai21labs_api_key": "description": |- @@ -5566,6 +5947,10 @@ github.com/databricks/databricks-sdk-go/service/serving.ApiKeyAuth: The API Key provided as a plaintext string. If you prefer to reference your token using Databricks Secrets, see `value`. github.com/databricks/databricks-sdk-go/service/serving.AutoCaptureConfigInput: + "_": + "description": |- + Deprecated: legacy inference table configuration. Please use AI Gateway inference tables instead. + See https://docs.databricks.com/aws/en/ai-gateway/inference-tables. "catalog_name": "description": |- The name of the catalog in Unity Catalog. NOTE: On update, you cannot change the catalog name if the inference table is already enabled. @@ -5650,10 +6035,12 @@ github.com/databricks/databricks-sdk-go/service/serving.EmailNotifications: github.com/databricks/databricks-sdk-go/service/serving.EndpointCoreConfigInput: "auto_capture_config": "description": |- - Configuration for Inference Tables which automatically logs requests and responses to Unity Catalog. - Note: this field is deprecated for creating new provisioned throughput endpoints, - or updating existing provisioned throughput endpoints that never have inference table configured; - in these cases please use AI Gateway to manage inference tables. + Configuration for legacy Inference Tables which automatically log requests and responses to Unity + Catalog. + Deprecated: please use AI Gateway inference tables instead. See + https://docs.databricks.com/aws/en/ai-gateway/inference-tables. + "deprecation_message": |- + This field is deprecated "served_entities": "description": |- The list of served entities under the serving endpoint config. @@ -6155,6 +6542,8 @@ github.com/databricks/databricks-sdk-go/service/sql.CreateWarehouseRequestWareho CLASSIC - |- PRO + - |- + REYDEN github.com/databricks/databricks-sdk-go/service/sql.CronSchedule: "pause_status": "description": |- @@ -6232,6 +6621,8 @@ github.com/databricks/databricks-sdk-go/service/vectorsearch.EndpointType: STORAGE_OPTIMIZED - |- STANDARD + - |- + STANDARD_ON_ORION github.com/databricks/databricks-sdk-go/service/workspace.AzureKeyVaultSecretScopeMetadata: "_": "description": |- diff --git a/bundle/internal/schema/annotations_openapi_overrides.yml b/bundle/internal/schema/annotations_openapi_overrides.yml index 690e0c852ee..ff08304f533 100644 --- a/bundle/internal/schema/annotations_openapi_overrides.yml +++ b/bundle/internal/schema/annotations_openapi_overrides.yml @@ -1023,6 +1023,10 @@ github.com/databricks/databricks-sdk-go/service/pipelines.PipelineTrigger: "manual": "description": |- PLACEHOLDER +github.com/databricks/databricks-sdk-go/service/pipelines.SourceConfig: + "google_ads_config": + "description": |- + PLACEHOLDER github.com/databricks/databricks-sdk-go/service/pipelines.TableSpecificConfig: "workday_report_parameters": "description": |- diff --git a/bundle/internal/validation/generated/enum_fields.go b/bundle/internal/validation/generated/enum_fields.go index 33632c268f8..2f1593a890e 100644 --- a/bundle/internal/validation/generated/enum_fields.go +++ b/bundle/internal/validation/generated/enum_fields.go @@ -41,14 +41,15 @@ var EnumFields = map[string][]string{ "resources.catalogs.*.grants[*].privileges[*]": {"ACCESS", "ALL_PRIVILEGES", "APPLY_TAG", "BROWSE", "CREATE", "CREATE_CATALOG", "CREATE_CLEAN_ROOM", "CREATE_CONNECTION", "CREATE_EXTERNAL_LOCATION", "CREATE_EXTERNAL_TABLE", "CREATE_EXTERNAL_VOLUME", "CREATE_FOREIGN_CATALOG", "CREATE_FOREIGN_SECURABLE", "CREATE_FUNCTION", "CREATE_MANAGED_STORAGE", "CREATE_MATERIALIZED_VIEW", "CREATE_MODEL", "CREATE_PROVIDER", "CREATE_RECIPIENT", "CREATE_SCHEMA", "CREATE_SERVICE_CREDENTIAL", "CREATE_SHARE", "CREATE_STORAGE_CREDENTIAL", "CREATE_TABLE", "CREATE_VIEW", "CREATE_VOLUME", "EXECUTE", "EXECUTE_CLEAN_ROOM_TASK", "EXTERNAL_USE_SCHEMA", "MANAGE", "MANAGE_ALLOWLIST", "MODIFY", "MODIFY_CLEAN_ROOM", "READ_FILES", "READ_PRIVATE_FILES", "READ_VOLUME", "REFRESH", "SELECT", "SET_SHARE_PERMISSION", "USAGE", "USE_CATALOG", "USE_CONNECTION", "USE_MARKETPLACE_ASSETS", "USE_PROVIDER", "USE_RECIPIENT", "USE_SCHEMA", "USE_SHARE", "WRITE_FILES", "WRITE_PRIVATE_FILES", "WRITE_VOLUME"}, - "resources.clusters.*.aws_attributes.availability": {"ON_DEMAND", "SPOT", "SPOT_WITH_FALLBACK"}, - "resources.clusters.*.aws_attributes.ebs_volume_type": {"GENERAL_PURPOSE_SSD", "THROUGHPUT_OPTIMIZED_HDD"}, - "resources.clusters.*.azure_attributes.availability": {"ON_DEMAND_AZURE", "SPOT_AZURE", "SPOT_WITH_FALLBACK_AZURE"}, - "resources.clusters.*.data_security_mode": {"DATA_SECURITY_MODE_AUTO", "DATA_SECURITY_MODE_DEDICATED", "DATA_SECURITY_MODE_STANDARD", "LEGACY_PASSTHROUGH", "LEGACY_SINGLE_USER", "LEGACY_SINGLE_USER_STANDARD", "LEGACY_TABLE_ACL", "NONE", "SINGLE_USER", "USER_ISOLATION"}, - "resources.clusters.*.gcp_attributes.availability": {"ON_DEMAND_GCP", "PREEMPTIBLE_GCP", "PREEMPTIBLE_WITH_FALLBACK_GCP"}, - "resources.clusters.*.kind": {"CLASSIC_PREVIEW"}, - "resources.clusters.*.permissions[*].level": {"CAN_ATTACH_TO", "CAN_MANAGE", "CAN_RESTART"}, - "resources.clusters.*.runtime_engine": {"NULL", "PHOTON", "STANDARD"}, + "resources.clusters.*.aws_attributes.availability": {"ON_DEMAND", "SPOT", "SPOT_WITH_FALLBACK"}, + "resources.clusters.*.aws_attributes.ebs_volume_type": {"GENERAL_PURPOSE_SSD", "THROUGHPUT_OPTIMIZED_HDD"}, + "resources.clusters.*.azure_attributes.availability": {"ON_DEMAND_AZURE", "SPOT_AZURE", "SPOT_WITH_FALLBACK_AZURE"}, + "resources.clusters.*.data_security_mode": {"DATA_SECURITY_MODE_AUTO", "DATA_SECURITY_MODE_DEDICATED", "DATA_SECURITY_MODE_STANDARD", "LEGACY_PASSTHROUGH", "LEGACY_SINGLE_USER", "LEGACY_SINGLE_USER_STANDARD", "LEGACY_TABLE_ACL", "NONE", "SINGLE_USER", "USER_ISOLATION"}, + "resources.clusters.*.gcp_attributes.availability": {"ON_DEMAND_GCP", "PREEMPTIBLE_GCP", "PREEMPTIBLE_WITH_FALLBACK_GCP"}, + "resources.clusters.*.gcp_attributes.confidential_compute_type": {"CONFIDENTIAL_COMPUTE_TYPE_NONE", "SEV_SNP"}, + "resources.clusters.*.kind": {"CLASSIC_PREVIEW"}, + "resources.clusters.*.permissions[*].level": {"CAN_ATTACH_TO", "CAN_MANAGE", "CAN_RESTART"}, + "resources.clusters.*.runtime_engine": {"NULL", "PHOTON", "STANDARD"}, "resources.dashboards.*.lifecycle_state": {"ACTIVE", "TRASHED"}, "resources.dashboards.*.permissions[*].level": {"CAN_ATTACH_TO", "CAN_BIND", "CAN_CREATE", "CAN_CREATE_APP", "CAN_EDIT", "CAN_EDIT_METADATA", "CAN_MANAGE", "CAN_MANAGE_PRODUCTION_VERSIONS", "CAN_MANAGE_RUN", "CAN_MANAGE_STAGING_VERSIONS", "CAN_MONITOR", "CAN_MONITOR_ONLY", "CAN_QUERY", "CAN_READ", "CAN_RESTART", "CAN_RUN", "CAN_USE", "CAN_VIEW", "CAN_VIEW_METADATA", "IS_OWNER"}, @@ -61,69 +62,72 @@ var EnumFields = map[string][]string{ "resources.external_locations.*.encryption_details.sse_encryption_details.algorithm": {"AWS_SSE_KMS", "AWS_SSE_S3"}, "resources.external_locations.*.grants[*].privileges[*]": {"ACCESS", "ALL_PRIVILEGES", "APPLY_TAG", "BROWSE", "CREATE", "CREATE_CATALOG", "CREATE_CLEAN_ROOM", "CREATE_CONNECTION", "CREATE_EXTERNAL_LOCATION", "CREATE_EXTERNAL_TABLE", "CREATE_EXTERNAL_VOLUME", "CREATE_FOREIGN_CATALOG", "CREATE_FOREIGN_SECURABLE", "CREATE_FUNCTION", "CREATE_MANAGED_STORAGE", "CREATE_MATERIALIZED_VIEW", "CREATE_MODEL", "CREATE_PROVIDER", "CREATE_RECIPIENT", "CREATE_SCHEMA", "CREATE_SERVICE_CREDENTIAL", "CREATE_SHARE", "CREATE_STORAGE_CREDENTIAL", "CREATE_TABLE", "CREATE_VIEW", "CREATE_VOLUME", "EXECUTE", "EXECUTE_CLEAN_ROOM_TASK", "EXTERNAL_USE_SCHEMA", "MANAGE", "MANAGE_ALLOWLIST", "MODIFY", "MODIFY_CLEAN_ROOM", "READ_FILES", "READ_PRIVATE_FILES", "READ_VOLUME", "REFRESH", "SELECT", "SET_SHARE_PERMISSION", "USAGE", "USE_CATALOG", "USE_CONNECTION", "USE_MARKETPLACE_ASSETS", "USE_PROVIDER", "USE_RECIPIENT", "USE_SCHEMA", "USE_SHARE", "WRITE_FILES", "WRITE_PRIVATE_FILES", "WRITE_VOLUME"}, - "resources.jobs.*.continuous.pause_status": {"PAUSED", "UNPAUSED"}, - "resources.jobs.*.continuous.task_retry_mode": {"NEVER", "ON_FAILURE"}, - "resources.jobs.*.deployment.kind": {"BUNDLE", "SYSTEM_MANAGED"}, - "resources.jobs.*.edit_mode": {"EDITABLE", "UI_LOCKED"}, - "resources.jobs.*.format": {"MULTI_TASK", "SINGLE_TASK"}, - "resources.jobs.*.git_source.git_provider": {"awsCodeCommit", "azureDevOpsServices", "bitbucketCloud", "bitbucketServer", "gitHub", "gitHubEnterprise", "gitLab", "gitLabEnterpriseEdition"}, - "resources.jobs.*.git_source.job_source.dirty_state": {"DISCONNECTED", "NOT_SYNCED"}, - "resources.jobs.*.health.rules[*].metric": {"RUN_DURATION_SECONDS", "STREAMING_BACKLOG_BYTES", "STREAMING_BACKLOG_FILES", "STREAMING_BACKLOG_RECORDS", "STREAMING_BACKLOG_SECONDS"}, - "resources.jobs.*.health.rules[*].op": {"GREATER_THAN"}, - "resources.jobs.*.job_clusters[*].new_cluster.aws_attributes.availability": {"ON_DEMAND", "SPOT", "SPOT_WITH_FALLBACK"}, - "resources.jobs.*.job_clusters[*].new_cluster.aws_attributes.ebs_volume_type": {"GENERAL_PURPOSE_SSD", "THROUGHPUT_OPTIMIZED_HDD"}, - "resources.jobs.*.job_clusters[*].new_cluster.azure_attributes.availability": {"ON_DEMAND_AZURE", "SPOT_AZURE", "SPOT_WITH_FALLBACK_AZURE"}, - "resources.jobs.*.job_clusters[*].new_cluster.data_security_mode": {"DATA_SECURITY_MODE_AUTO", "DATA_SECURITY_MODE_DEDICATED", "DATA_SECURITY_MODE_STANDARD", "LEGACY_PASSTHROUGH", "LEGACY_SINGLE_USER", "LEGACY_SINGLE_USER_STANDARD", "LEGACY_TABLE_ACL", "NONE", "SINGLE_USER", "USER_ISOLATION"}, - "resources.jobs.*.job_clusters[*].new_cluster.gcp_attributes.availability": {"ON_DEMAND_GCP", "PREEMPTIBLE_GCP", "PREEMPTIBLE_WITH_FALLBACK_GCP"}, - "resources.jobs.*.job_clusters[*].new_cluster.kind": {"CLASSIC_PREVIEW"}, - "resources.jobs.*.job_clusters[*].new_cluster.runtime_engine": {"NULL", "PHOTON", "STANDARD"}, - "resources.jobs.*.performance_target": {"PERFORMANCE_OPTIMIZED", "STANDARD"}, - "resources.jobs.*.permissions[*].level": {"CAN_MANAGE", "CAN_MANAGE_RUN", "CAN_VIEW", "IS_OWNER"}, - "resources.jobs.*.schedule.pause_status": {"PAUSED", "UNPAUSED"}, - "resources.jobs.*.tasks[*].compute.hardware_accelerator": {"GPU_1xA10", "GPU_8xH100"}, - "resources.jobs.*.tasks[*].condition_task.op": {"EQUAL_TO", "GREATER_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN", "LESS_THAN_OR_EQUAL", "NOT_EQUAL"}, - "resources.jobs.*.tasks[*].dbt_task.source": {"GIT", "WORKSPACE"}, - "resources.jobs.*.tasks[*].for_each_task.task.compute.hardware_accelerator": {"GPU_1xA10", "GPU_8xH100"}, - "resources.jobs.*.tasks[*].for_each_task.task.condition_task.op": {"EQUAL_TO", "GREATER_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN", "LESS_THAN_OR_EQUAL", "NOT_EQUAL"}, - "resources.jobs.*.tasks[*].for_each_task.task.dbt_task.source": {"GIT", "WORKSPACE"}, - "resources.jobs.*.tasks[*].for_each_task.task.gen_ai_compute_task.source": {"GIT", "WORKSPACE"}, - "resources.jobs.*.tasks[*].for_each_task.task.health.rules[*].metric": {"RUN_DURATION_SECONDS", "STREAMING_BACKLOG_BYTES", "STREAMING_BACKLOG_FILES", "STREAMING_BACKLOG_RECORDS", "STREAMING_BACKLOG_SECONDS"}, - "resources.jobs.*.tasks[*].for_each_task.task.health.rules[*].op": {"GREATER_THAN"}, - "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.aws_attributes.availability": {"ON_DEMAND", "SPOT", "SPOT_WITH_FALLBACK"}, - "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.aws_attributes.ebs_volume_type": {"GENERAL_PURPOSE_SSD", "THROUGHPUT_OPTIMIZED_HDD"}, - "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.azure_attributes.availability": {"ON_DEMAND_AZURE", "SPOT_AZURE", "SPOT_WITH_FALLBACK_AZURE"}, - "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.data_security_mode": {"DATA_SECURITY_MODE_AUTO", "DATA_SECURITY_MODE_DEDICATED", "DATA_SECURITY_MODE_STANDARD", "LEGACY_PASSTHROUGH", "LEGACY_SINGLE_USER", "LEGACY_SINGLE_USER_STANDARD", "LEGACY_TABLE_ACL", "NONE", "SINGLE_USER", "USER_ISOLATION"}, - "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.gcp_attributes.availability": {"ON_DEMAND_GCP", "PREEMPTIBLE_GCP", "PREEMPTIBLE_WITH_FALLBACK_GCP"}, - "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.kind": {"CLASSIC_PREVIEW"}, - "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.runtime_engine": {"NULL", "PHOTON", "STANDARD"}, - "resources.jobs.*.tasks[*].for_each_task.task.notebook_task.source": {"GIT", "WORKSPACE"}, - "resources.jobs.*.tasks[*].for_each_task.task.power_bi_task.power_bi_model.authentication_method": {"OAUTH", "PAT"}, - "resources.jobs.*.tasks[*].for_each_task.task.power_bi_task.power_bi_model.storage_mode": {"DIRECT_QUERY", "DUAL", "IMPORT"}, - "resources.jobs.*.tasks[*].for_each_task.task.power_bi_task.tables[*].storage_mode": {"DIRECT_QUERY", "DUAL", "IMPORT"}, - "resources.jobs.*.tasks[*].for_each_task.task.run_if": {"ALL_DONE", "ALL_FAILED", "ALL_SUCCESS", "AT_LEAST_ONE_FAILED", "AT_LEAST_ONE_SUCCESS", "NONE_FAILED"}, - "resources.jobs.*.tasks[*].for_each_task.task.spark_python_task.source": {"GIT", "WORKSPACE"}, - "resources.jobs.*.tasks[*].for_each_task.task.sql_task.file.source": {"GIT", "WORKSPACE"}, - "resources.jobs.*.tasks[*].gen_ai_compute_task.source": {"GIT", "WORKSPACE"}, - "resources.jobs.*.tasks[*].health.rules[*].metric": {"RUN_DURATION_SECONDS", "STREAMING_BACKLOG_BYTES", "STREAMING_BACKLOG_FILES", "STREAMING_BACKLOG_RECORDS", "STREAMING_BACKLOG_SECONDS"}, - "resources.jobs.*.tasks[*].health.rules[*].op": {"GREATER_THAN"}, - "resources.jobs.*.tasks[*].new_cluster.aws_attributes.availability": {"ON_DEMAND", "SPOT", "SPOT_WITH_FALLBACK"}, - "resources.jobs.*.tasks[*].new_cluster.aws_attributes.ebs_volume_type": {"GENERAL_PURPOSE_SSD", "THROUGHPUT_OPTIMIZED_HDD"}, - "resources.jobs.*.tasks[*].new_cluster.azure_attributes.availability": {"ON_DEMAND_AZURE", "SPOT_AZURE", "SPOT_WITH_FALLBACK_AZURE"}, - "resources.jobs.*.tasks[*].new_cluster.data_security_mode": {"DATA_SECURITY_MODE_AUTO", "DATA_SECURITY_MODE_DEDICATED", "DATA_SECURITY_MODE_STANDARD", "LEGACY_PASSTHROUGH", "LEGACY_SINGLE_USER", "LEGACY_SINGLE_USER_STANDARD", "LEGACY_TABLE_ACL", "NONE", "SINGLE_USER", "USER_ISOLATION"}, - "resources.jobs.*.tasks[*].new_cluster.gcp_attributes.availability": {"ON_DEMAND_GCP", "PREEMPTIBLE_GCP", "PREEMPTIBLE_WITH_FALLBACK_GCP"}, - "resources.jobs.*.tasks[*].new_cluster.kind": {"CLASSIC_PREVIEW"}, - "resources.jobs.*.tasks[*].new_cluster.runtime_engine": {"NULL", "PHOTON", "STANDARD"}, - "resources.jobs.*.tasks[*].notebook_task.source": {"GIT", "WORKSPACE"}, - "resources.jobs.*.tasks[*].power_bi_task.power_bi_model.authentication_method": {"OAUTH", "PAT"}, - "resources.jobs.*.tasks[*].power_bi_task.power_bi_model.storage_mode": {"DIRECT_QUERY", "DUAL", "IMPORT"}, - "resources.jobs.*.tasks[*].power_bi_task.tables[*].storage_mode": {"DIRECT_QUERY", "DUAL", "IMPORT"}, - "resources.jobs.*.tasks[*].run_if": {"ALL_DONE", "ALL_FAILED", "ALL_SUCCESS", "AT_LEAST_ONE_FAILED", "AT_LEAST_ONE_SUCCESS", "NONE_FAILED"}, - "resources.jobs.*.tasks[*].spark_python_task.source": {"GIT", "WORKSPACE"}, - "resources.jobs.*.tasks[*].sql_task.file.source": {"GIT", "WORKSPACE"}, - "resources.jobs.*.trigger.model.condition": {"MODEL_ALIAS_SET", "MODEL_CREATED", "MODEL_VERSION_READY"}, - "resources.jobs.*.trigger.pause_status": {"PAUSED", "UNPAUSED"}, - "resources.jobs.*.trigger.periodic.unit": {"DAYS", "HOURS", "WEEKS"}, - "resources.jobs.*.trigger.table_update.condition": {"ALL_UPDATED", "ANY_UPDATED"}, + "resources.jobs.*.continuous.pause_status": {"PAUSED", "UNPAUSED"}, + "resources.jobs.*.continuous.task_retry_mode": {"NEVER", "ON_FAILURE"}, + "resources.jobs.*.deployment.kind": {"BUNDLE", "SYSTEM_MANAGED"}, + "resources.jobs.*.edit_mode": {"EDITABLE", "UI_LOCKED"}, + "resources.jobs.*.format": {"MULTI_TASK", "SINGLE_TASK"}, + "resources.jobs.*.git_source.git_provider": {"awsCodeCommit", "azureDevOpsServices", "bitbucketCloud", "bitbucketServer", "gitHub", "gitHubEnterprise", "gitLab", "gitLabEnterpriseEdition"}, + "resources.jobs.*.git_source.job_source.dirty_state": {"DISCONNECTED", "NOT_SYNCED"}, + "resources.jobs.*.health.rules[*].metric": {"RUN_DURATION_SECONDS", "STREAMING_BACKLOG_BYTES", "STREAMING_BACKLOG_FILES", "STREAMING_BACKLOG_RECORDS", "STREAMING_BACKLOG_SECONDS"}, + "resources.jobs.*.health.rules[*].op": {"GREATER_THAN"}, + "resources.jobs.*.job_clusters[*].new_cluster.aws_attributes.availability": {"ON_DEMAND", "SPOT", "SPOT_WITH_FALLBACK"}, + "resources.jobs.*.job_clusters[*].new_cluster.aws_attributes.ebs_volume_type": {"GENERAL_PURPOSE_SSD", "THROUGHPUT_OPTIMIZED_HDD"}, + "resources.jobs.*.job_clusters[*].new_cluster.azure_attributes.availability": {"ON_DEMAND_AZURE", "SPOT_AZURE", "SPOT_WITH_FALLBACK_AZURE"}, + "resources.jobs.*.job_clusters[*].new_cluster.data_security_mode": {"DATA_SECURITY_MODE_AUTO", "DATA_SECURITY_MODE_DEDICATED", "DATA_SECURITY_MODE_STANDARD", "LEGACY_PASSTHROUGH", "LEGACY_SINGLE_USER", "LEGACY_SINGLE_USER_STANDARD", "LEGACY_TABLE_ACL", "NONE", "SINGLE_USER", "USER_ISOLATION"}, + "resources.jobs.*.job_clusters[*].new_cluster.gcp_attributes.availability": {"ON_DEMAND_GCP", "PREEMPTIBLE_GCP", "PREEMPTIBLE_WITH_FALLBACK_GCP"}, + "resources.jobs.*.job_clusters[*].new_cluster.gcp_attributes.confidential_compute_type": {"CONFIDENTIAL_COMPUTE_TYPE_NONE", "SEV_SNP"}, + "resources.jobs.*.job_clusters[*].new_cluster.kind": {"CLASSIC_PREVIEW"}, + "resources.jobs.*.job_clusters[*].new_cluster.runtime_engine": {"NULL", "PHOTON", "STANDARD"}, + "resources.jobs.*.performance_target": {"PERFORMANCE_OPTIMIZED", "STANDARD"}, + "resources.jobs.*.permissions[*].level": {"CAN_MANAGE", "CAN_MANAGE_RUN", "CAN_VIEW", "IS_OWNER"}, + "resources.jobs.*.schedule.pause_status": {"PAUSED", "UNPAUSED"}, + "resources.jobs.*.tasks[*].compute.hardware_accelerator": {"GPU_1xA10", "GPU_8xH100"}, + "resources.jobs.*.tasks[*].condition_task.op": {"EQUAL_TO", "GREATER_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN", "LESS_THAN_OR_EQUAL", "NOT_EQUAL"}, + "resources.jobs.*.tasks[*].dbt_task.source": {"GIT", "WORKSPACE"}, + "resources.jobs.*.tasks[*].for_each_task.task.compute.hardware_accelerator": {"GPU_1xA10", "GPU_8xH100"}, + "resources.jobs.*.tasks[*].for_each_task.task.condition_task.op": {"EQUAL_TO", "GREATER_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN", "LESS_THAN_OR_EQUAL", "NOT_EQUAL"}, + "resources.jobs.*.tasks[*].for_each_task.task.dbt_task.source": {"GIT", "WORKSPACE"}, + "resources.jobs.*.tasks[*].for_each_task.task.gen_ai_compute_task.source": {"GIT", "WORKSPACE"}, + "resources.jobs.*.tasks[*].for_each_task.task.health.rules[*].metric": {"RUN_DURATION_SECONDS", "STREAMING_BACKLOG_BYTES", "STREAMING_BACKLOG_FILES", "STREAMING_BACKLOG_RECORDS", "STREAMING_BACKLOG_SECONDS"}, + "resources.jobs.*.tasks[*].for_each_task.task.health.rules[*].op": {"GREATER_THAN"}, + "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.aws_attributes.availability": {"ON_DEMAND", "SPOT", "SPOT_WITH_FALLBACK"}, + "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.aws_attributes.ebs_volume_type": {"GENERAL_PURPOSE_SSD", "THROUGHPUT_OPTIMIZED_HDD"}, + "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.azure_attributes.availability": {"ON_DEMAND_AZURE", "SPOT_AZURE", "SPOT_WITH_FALLBACK_AZURE"}, + "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.data_security_mode": {"DATA_SECURITY_MODE_AUTO", "DATA_SECURITY_MODE_DEDICATED", "DATA_SECURITY_MODE_STANDARD", "LEGACY_PASSTHROUGH", "LEGACY_SINGLE_USER", "LEGACY_SINGLE_USER_STANDARD", "LEGACY_TABLE_ACL", "NONE", "SINGLE_USER", "USER_ISOLATION"}, + "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.gcp_attributes.availability": {"ON_DEMAND_GCP", "PREEMPTIBLE_GCP", "PREEMPTIBLE_WITH_FALLBACK_GCP"}, + "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.gcp_attributes.confidential_compute_type": {"CONFIDENTIAL_COMPUTE_TYPE_NONE", "SEV_SNP"}, + "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.kind": {"CLASSIC_PREVIEW"}, + "resources.jobs.*.tasks[*].for_each_task.task.new_cluster.runtime_engine": {"NULL", "PHOTON", "STANDARD"}, + "resources.jobs.*.tasks[*].for_each_task.task.notebook_task.source": {"GIT", "WORKSPACE"}, + "resources.jobs.*.tasks[*].for_each_task.task.power_bi_task.power_bi_model.authentication_method": {"OAUTH", "PAT"}, + "resources.jobs.*.tasks[*].for_each_task.task.power_bi_task.power_bi_model.storage_mode": {"DIRECT_QUERY", "DUAL", "IMPORT"}, + "resources.jobs.*.tasks[*].for_each_task.task.power_bi_task.tables[*].storage_mode": {"DIRECT_QUERY", "DUAL", "IMPORT"}, + "resources.jobs.*.tasks[*].for_each_task.task.run_if": {"ALL_DONE", "ALL_FAILED", "ALL_SUCCESS", "AT_LEAST_ONE_FAILED", "AT_LEAST_ONE_SUCCESS", "NONE_FAILED"}, + "resources.jobs.*.tasks[*].for_each_task.task.spark_python_task.source": {"GIT", "WORKSPACE"}, + "resources.jobs.*.tasks[*].for_each_task.task.sql_task.file.source": {"GIT", "WORKSPACE"}, + "resources.jobs.*.tasks[*].gen_ai_compute_task.source": {"GIT", "WORKSPACE"}, + "resources.jobs.*.tasks[*].health.rules[*].metric": {"RUN_DURATION_SECONDS", "STREAMING_BACKLOG_BYTES", "STREAMING_BACKLOG_FILES", "STREAMING_BACKLOG_RECORDS", "STREAMING_BACKLOG_SECONDS"}, + "resources.jobs.*.tasks[*].health.rules[*].op": {"GREATER_THAN"}, + "resources.jobs.*.tasks[*].new_cluster.aws_attributes.availability": {"ON_DEMAND", "SPOT", "SPOT_WITH_FALLBACK"}, + "resources.jobs.*.tasks[*].new_cluster.aws_attributes.ebs_volume_type": {"GENERAL_PURPOSE_SSD", "THROUGHPUT_OPTIMIZED_HDD"}, + "resources.jobs.*.tasks[*].new_cluster.azure_attributes.availability": {"ON_DEMAND_AZURE", "SPOT_AZURE", "SPOT_WITH_FALLBACK_AZURE"}, + "resources.jobs.*.tasks[*].new_cluster.data_security_mode": {"DATA_SECURITY_MODE_AUTO", "DATA_SECURITY_MODE_DEDICATED", "DATA_SECURITY_MODE_STANDARD", "LEGACY_PASSTHROUGH", "LEGACY_SINGLE_USER", "LEGACY_SINGLE_USER_STANDARD", "LEGACY_TABLE_ACL", "NONE", "SINGLE_USER", "USER_ISOLATION"}, + "resources.jobs.*.tasks[*].new_cluster.gcp_attributes.availability": {"ON_DEMAND_GCP", "PREEMPTIBLE_GCP", "PREEMPTIBLE_WITH_FALLBACK_GCP"}, + "resources.jobs.*.tasks[*].new_cluster.gcp_attributes.confidential_compute_type": {"CONFIDENTIAL_COMPUTE_TYPE_NONE", "SEV_SNP"}, + "resources.jobs.*.tasks[*].new_cluster.kind": {"CLASSIC_PREVIEW"}, + "resources.jobs.*.tasks[*].new_cluster.runtime_engine": {"NULL", "PHOTON", "STANDARD"}, + "resources.jobs.*.tasks[*].notebook_task.source": {"GIT", "WORKSPACE"}, + "resources.jobs.*.tasks[*].power_bi_task.power_bi_model.authentication_method": {"OAUTH", "PAT"}, + "resources.jobs.*.tasks[*].power_bi_task.power_bi_model.storage_mode": {"DIRECT_QUERY", "DUAL", "IMPORT"}, + "resources.jobs.*.tasks[*].power_bi_task.tables[*].storage_mode": {"DIRECT_QUERY", "DUAL", "IMPORT"}, + "resources.jobs.*.tasks[*].run_if": {"ALL_DONE", "ALL_FAILED", "ALL_SUCCESS", "AT_LEAST_ONE_FAILED", "AT_LEAST_ONE_SUCCESS", "NONE_FAILED"}, + "resources.jobs.*.tasks[*].spark_python_task.source": {"GIT", "WORKSPACE"}, + "resources.jobs.*.tasks[*].sql_task.file.source": {"GIT", "WORKSPACE"}, + "resources.jobs.*.trigger.model.condition": {"MODEL_ALIAS_SET", "MODEL_CREATED", "MODEL_VERSION_READY"}, + "resources.jobs.*.trigger.pause_status": {"PAUSED", "UNPAUSED"}, + "resources.jobs.*.trigger.periodic.unit": {"DAYS", "HOURS", "WEEKS"}, + "resources.jobs.*.trigger.table_update.condition": {"ALL_UPDATED", "ANY_UPDATED"}, "resources.model_serving_endpoints.*.ai_gateway.guardrails.input.pii.behavior": {"BLOCK", "MASK", "NONE"}, "resources.model_serving_endpoints.*.ai_gateway.guardrails.output.pii.behavior": {"BLOCK", "MASK", "NONE"}, @@ -144,6 +148,7 @@ var EnumFields = map[string][]string{ "resources.pipelines.*.clusters[*].aws_attributes.ebs_volume_type": {"GENERAL_PURPOSE_SSD", "THROUGHPUT_OPTIMIZED_HDD"}, "resources.pipelines.*.clusters[*].azure_attributes.availability": {"ON_DEMAND_AZURE", "SPOT_AZURE", "SPOT_WITH_FALLBACK_AZURE"}, "resources.pipelines.*.clusters[*].gcp_attributes.availability": {"ON_DEMAND_GCP", "PREEMPTIBLE_GCP", "PREEMPTIBLE_WITH_FALLBACK_GCP"}, + "resources.pipelines.*.clusters[*].gcp_attributes.confidential_compute_type": {"CONFIDENTIAL_COMPUTE_TYPE_NONE", "SEV_SNP"}, "resources.pipelines.*.deployment.kind": {"BUNDLE"}, "resources.pipelines.*.ingestion_definition.connector_type": {"CDC", "QUERY_BASED"}, "resources.pipelines.*.ingestion_definition.full_refresh_window.days_of_week[*]": {"FRIDAY", "MONDAY", "SATURDAY", "SUNDAY", "THURSDAY", "TUESDAY", "WEDNESDAY"}, @@ -151,6 +156,8 @@ var EnumFields = map[string][]string{ "resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.gdrive_options.entity_type": {"FILE", "FILE_METADATA", "PERMISSION"}, "resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.gdrive_options.file_ingestion_options.format": {"AVRO", "BINARYFILE", "CSV", "EXCEL", "JSON", "ORC", "PARQUET", "XML"}, "resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.gdrive_options.file_ingestion_options.schema_evolution_mode": {"ADD_NEW_COLUMNS", "ADD_NEW_COLUMNS_WITH_TYPE_WIDENING", "FAIL_ON_NEW_COLUMNS", "NONE", "RESCUE"}, + "resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.attachment_mode": {"ALL", "INLINE_ONLY", "NONE", "NON_INLINE_ONLY"}, + "resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.outlook_options.body_format": {"TEXT_HTML", "TEXT_PLAIN"}, "resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.sharepoint_options.entity_type": {"FILE", "FILE_METADATA", "LIST", "PERMISSION"}, "resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.sharepoint_options.file_ingestion_options.format": {"AVRO", "BINARYFILE", "CSV", "EXCEL", "JSON", "ORC", "PARQUET", "XML"}, "resources.pipelines.*.ingestion_definition.objects[*].schema.connector_options.sharepoint_options.file_ingestion_options.schema_evolution_mode": {"ADD_NEW_COLUMNS", "ADD_NEW_COLUMNS_WITH_TYPE_WIDENING", "FAIL_ON_NEW_COLUMNS", "NONE", "RESCUE"}, @@ -160,13 +167,15 @@ var EnumFields = map[string][]string{ "resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.gdrive_options.entity_type": {"FILE", "FILE_METADATA", "PERMISSION"}, "resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.gdrive_options.file_ingestion_options.format": {"AVRO", "BINARYFILE", "CSV", "EXCEL", "JSON", "ORC", "PARQUET", "XML"}, "resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.gdrive_options.file_ingestion_options.schema_evolution_mode": {"ADD_NEW_COLUMNS", "ADD_NEW_COLUMNS_WITH_TYPE_WIDENING", "FAIL_ON_NEW_COLUMNS", "NONE", "RESCUE"}, + "resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.attachment_mode": {"ALL", "INLINE_ONLY", "NONE", "NON_INLINE_ONLY"}, + "resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.outlook_options.body_format": {"TEXT_HTML", "TEXT_PLAIN"}, "resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.sharepoint_options.entity_type": {"FILE", "FILE_METADATA", "LIST", "PERMISSION"}, "resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.sharepoint_options.file_ingestion_options.format": {"AVRO", "BINARYFILE", "CSV", "EXCEL", "JSON", "ORC", "PARQUET", "XML"}, "resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.sharepoint_options.file_ingestion_options.schema_evolution_mode": {"ADD_NEW_COLUMNS", "ADD_NEW_COLUMNS_WITH_TYPE_WIDENING", "FAIL_ON_NEW_COLUMNS", "NONE", "RESCUE"}, "resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.tiktok_ads_options.data_level": {"AUCTION_AD", "AUCTION_ADGROUP", "AUCTION_ADVERTISER", "AUCTION_CAMPAIGN"}, "resources.pipelines.*.ingestion_definition.objects[*].table.connector_options.tiktok_ads_options.report_type": {"AUDIENCE", "BASIC", "BUSINESS_CENTER", "DSA", "GMV_MAX", "PLAYABLE_AD"}, "resources.pipelines.*.ingestion_definition.objects[*].table.table_configuration.scd_type": {"APPEND_ONLY", "SCD_TYPE_1", "SCD_TYPE_2"}, - "resources.pipelines.*.ingestion_definition.source_type": {"BIGQUERY", "DYNAMICS365", "FOREIGN_CATALOG", "GA4_RAW_DATA", "GOOGLE_DRIVE", "MANAGED_POSTGRESQL", "MYSQL", "NETSUITE", "ORACLE", "POSTGRESQL", "SALESFORCE", "SERVICENOW", "SHAREPOINT", "SQLSERVER", "TERADATA", "WORKDAY_RAAS"}, + "resources.pipelines.*.ingestion_definition.source_type": {"BIGQUERY", "CONFLUENCE", "DYNAMICS365", "FOREIGN_CATALOG", "GA4_RAW_DATA", "GOOGLE_DRIVE", "JIRA", "MANAGED_POSTGRESQL", "META_MARKETING", "MYSQL", "NETSUITE", "ORACLE", "POSTGRESQL", "SALESFORCE", "SERVICENOW", "SHAREPOINT", "SQLSERVER", "TERADATA", "WORKDAY_RAAS", "ZENDESK"}, "resources.pipelines.*.ingestion_definition.table_configuration.scd_type": {"APPEND_ONLY", "SCD_TYPE_1", "SCD_TYPE_2"}, "resources.pipelines.*.permissions[*].level": {"CAN_MANAGE", "CAN_RUN", "CAN_VIEW", "IS_OWNER"}, "resources.pipelines.*.restart_window.days_of_week[*]": {"FRIDAY", "MONDAY", "SATURDAY", "SUNDAY", "THURSDAY", "TUESDAY", "WEDNESDAY"}, diff --git a/bundle/schema/jsonschema.json b/bundle/schema/jsonschema.json index ee105a6f821..26e773f64a4 100644 --- a/bundle/schema/jsonschema.json +++ b/bundle/schema/jsonschema.json @@ -156,9 +156,7 @@ }, "git_repository": { "description": "Git repository configuration for app deployments. When specified, deployments can\nreference code from this repository by providing only the git reference (branch, tag, or commit).", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/apps.GitRepository", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/apps.GitRepository" }, "git_source": { "description": "Git source configuration for app deployments. Specifies which git reference (branch, tag, or commit)\nto use when deploying the app. Used in conjunction with git_repository to deploy code directly from git.\nThe source_code_path within git_source specifies the relative path to the app code within the repository.", @@ -303,9 +301,7 @@ }, "managed_encryption_settings": { "description": "Control CMK encryption for managed catalog data", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/catalog.EncryptionSettings", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/catalog.EncryptionSettings" }, "name": { "$ref": "#/$defs/string" @@ -1207,7 +1203,7 @@ "$ref": "#/$defs/string" }, "channel": { - "description": "DLT Release Channel that specifies which version to use.", + "description": "SDP Release Channel that specifies which version to use.", "$ref": "#/$defs/string" }, "clusters": { @@ -1948,15 +1944,15 @@ "lifecycle": { "$ref": "#/$defs/github.com/databricks/cli/bundle/config/resources.Lifecycle" }, - "min_qps": { - "$ref": "#/$defs/int64" - }, "name": { "$ref": "#/$defs/string" }, "permissions": { "$ref": "#/$defs/slice/github.com/databricks/cli/bundle/config/resources.Permission" }, + "target_qps": { + "$ref": "#/$defs/int64" + }, "usage_policy_id": { "$ref": "#/$defs/string", "x-databricks-preview": "PRIVATE", @@ -2833,9 +2829,7 @@ }, "git_source": { "description": "Git repository to use as the source for the app deployment.", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/apps.GitSource", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/apps.GitSource" }, "mode": { "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/apps.AppDeploymentMode" @@ -3447,7 +3441,8 @@ "type": "string", "enum": [ "MEDIUM", - "LARGE" + "LARGE", + "LIQUID" ] }, { @@ -4108,7 +4103,19 @@ "CREATE_CLEAN_ROOM", "MODIFY_CLEAN_ROOM", "EXECUTE_CLEAN_ROOM_TASK", - "EXTERNAL_USE_SCHEMA" + "EXTERNAL_USE_SCHEMA", + "VIEW_OBJECT", + "MANAGE_GRANTS", + "INSERT", + "UPDATE", + "DELETE", + "VIEW_ADMIN_METADATA", + "VIEW_METADATA", + "USE_VOLUME", + "READ_METADATA", + "MANAGE_ACCESS", + "MANAGE_ACCESS_CONTROL", + "CREATE_SERVICE" ] }, { @@ -4600,6 +4607,22 @@ } ] }, + "compute.ConfidentialComputeType": { + "oneOf": [ + { + "type": "string", + "description": "Confidential computing technology for GCP instances.\nAligns with gcloud's --confidential-compute-type flag and the REST API's\nconfidentialInstanceConfig.confidentialInstanceType field.\nSee: https://cloud.google.com/confidential-computing/confidential-vm/docs/create-a-confidential-vm-instance", + "enum": [ + "CONFIDENTIAL_COMPUTE_TYPE_NONE", + "SEV_SNP" + ] + }, + { + "type": "string", + "pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)+)\\}" + } + ] + }, "compute.DataSecurityMode": { "oneOf": [ { @@ -4709,7 +4732,7 @@ "oneOf": [ { "type": "object", - "description": "The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and DLT's environment for classic and serverless pipelines.\nIn this minimal environment spec, only pip and java dependencies are supported.", + "description": "The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and SDP's environment for classic and serverless pipelines.\nIn this minimal environment spec, only pip and java dependencies are supported.", "properties": { "base_environment": { "description": "The base environment this environment is built on top of. A base environment defines the environment version and a\nlist of dependencies for serverless compute. The value can be a file path to a custom `env.yaml` file\n(e.g., `/Workspace/path/to/env.yaml`). Support for a Databricks-provided base environment ID\n(e.g., `workspace-base-environments/databricks_ai_v4`) and workspace base environment ID\n(e.g., `workspace-base-environments/dbe_b849b66e-b31a-4cb5-b161-1f2b10877fb7`) is in Beta.\nEither `environment_version` or `base_environment` can be provided. For more information, see", @@ -4754,6 +4777,12 @@ "description": "Boot disk size in GB", "$ref": "#/$defs/int" }, + "confidential_compute_type": { + "description": "The confidential computing technology for this cluster's instances.\nCurrently only SEV_SNP is supported, and only on N2D instance types.\nWhen not set, no confidential computing is applied.", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/compute.ConfidentialComputeType", + "x-databricks-preview": "PRIVATE", + "doNotSuggest": true + }, "first_on_demand": { "description": "The first `first_on_demand` nodes of the cluster will be placed on on-demand instances.\nThis value should be greater than 0, to make sure the cluster driver node is placed on an\non-demand instance. If this value is greater than or equal to the current cluster size, all\nnodes will be placed on on-demand instances. If this value is less than the current cluster\nsize, `first_on_demand` nodes will be placed on on-demand instances and the remainder will\nbe placed on `availability` instances. Note that this value does not affect\ncluster size and cannot currently be mutated over the lifetime of a cluster.", "$ref": "#/$defs/int" @@ -4831,7 +4860,8 @@ "description": "HardwareAcceleratorType: The type of hardware accelerator to use for compute workloads.\nNOTE: This enum is referenced and is intended to be used by other Databricks services\nthat need to specify hardware accelerator requirements for AI compute workloads.", "enum": [ "GPU_1xA10", - "GPU_8xH100" + "GPU_8xH100", + "GPU_1xH100" ] }, { @@ -5286,7 +5316,8 @@ "DELETING", "STOPPED", "UPDATING", - "FAILING_OVER" + "FAILING_OVER", + "MIGRATING" ] }, { @@ -5586,7 +5617,8 @@ "CAN_MONITOR", "CAN_CREATE", "CAN_MONITOR_ONLY", - "CAN_CREATE_APP" + "CAN_CREATE_APP", + "UNSPECIFIED" ] }, { @@ -6722,7 +6754,7 @@ "type": "object", "properties": { "full_refresh": { - "description": "If true, triggers a full refresh on the delta live table.", + "description": "If true, triggers a full refresh on the spark declarative pipeline.", "$ref": "#/$defs/bool" } }, @@ -6740,7 +6772,7 @@ "type": "object", "properties": { "full_refresh": { - "description": "If true, triggers a full refresh on the delta live table.", + "description": "If true, triggers a full refresh on the spark declarative pipeline.", "$ref": "#/$defs/bool" }, "pipeline_id": { @@ -7877,6 +7909,25 @@ } ] }, + "pipelines.ConfluenceConnectorOptions": { + "oneOf": [ + { + "type": "object", + "description": "Confluence specific options for ingestion", + "properties": { + "include_confluence_spaces": { + "description": "(Optional) Spaces to filter Confluence data on", + "$ref": "#/$defs/slice/string" + } + }, + "additionalProperties": false + }, + { + "type": "string", + "pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)+)\\}" + } + ] + }, "pipelines.ConnectionParameters": { "oneOf": [ { @@ -7903,6 +7954,10 @@ "type": "object", "description": "Wrapper message for source-specific options to support multiple connector types", "properties": { + "confluence_options": { + "description": "Confluence specific options for ingestion", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.ConfluenceConnectorOptions" + }, "gdrive_options": { "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.GoogleDriveOptions", "x-databricks-preview": "PRIVATE", @@ -7914,16 +7969,42 @@ "x-databricks-preview": "PRIVATE", "doNotSuggest": true }, + "jira_options": { + "description": "Jira specific options for ingestion", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.JiraConnectorOptions" + }, + "meta_ads_options": { + "description": "Meta Marketing (Meta Ads) specific options for ingestion", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.MetaMarketingOptions" + }, + "outlook_options": { + "description": "Outlook specific options for ingestion", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.OutlookOptions", + "x-databricks-preview": "PRIVATE", + "doNotSuggest": true + }, "sharepoint_options": { "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.SharepointOptions", "x-databricks-preview": "PRIVATE", "doNotSuggest": true }, + "smartsheet_options": { + "description": "Smartsheet specific options for ingestion", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.SmartsheetOptions", + "x-databricks-preview": "PRIVATE", + "doNotSuggest": true + }, "tiktok_ads_options": { "description": "TikTok Ads specific options for ingestion", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.TikTokAdsOptions", "x-databricks-preview": "PRIVATE", "doNotSuggest": true + }, + "zendesk_support_options": { + "description": "Zendesk Support specific options for ingestion", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.ZendeskSupportOptions", + "x-databricks-preview": "PRIVATE", + "doNotSuggest": true } }, "additionalProperties": false @@ -8223,6 +8304,24 @@ } ] }, + "pipelines.GoogleAdsConfig": { + "oneOf": [ + { + "type": "object", + "properties": { + "manager_account_id": { + "description": "(Required) Manager Account ID (also called MCC Account ID) used to list and access\ncustomer accounts under this manager account. This is required for fetching the list\nof customer accounts during source selection.\nIf the same field is also set in the object-level GoogleAdsOptions (connector_options),\nthe object-level value takes precedence over this top-level config.", + "$ref": "#/$defs/string" + } + }, + "additionalProperties": false + }, + { + "type": "string", + "pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)+)\\}" + } + ] + }, "pipelines.GoogleAdsOptions": { "oneOf": [ { @@ -8393,9 +8492,7 @@ }, "ingest_from_uc_foreign_catalog": { "description": "Immutable. If set to true, the pipeline will ingest tables from the\nUC foreign catalogs directly without the need to specify a UC connection or ingestion gateway.\nThe `source_catalog` fields in objects of IngestionConfig are interpreted as\nthe UC foreign catalogs to ingest from.", - "$ref": "#/$defs/bool", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "$ref": "#/$defs/bool" }, "ingestion_gateway_id": { "description": "Identifier for the gateway that is used by this ingestion pipeline to communicate with the source database.\nThis is used with CDC connectors to databases like SQL Server using a gateway pipeline (connector_type = CDC).\nUnder certain conditions, this can be replaced with connection_name to change the connector to Combined Cdc\nManaged Ingestion Pipeline.", @@ -8435,21 +8532,15 @@ "properties": { "cursor_columns": { "description": "The names of the monotonically increasing columns in the source table that are used to enable\nthe table to be read and ingested incrementally through structured streaming.\nThe columns are allowed to have repeated values but have to be non-decreasing.\nIf the source data is merged into the destination (e.g., using SCD Type 1 or Type 2), these\ncolumns will implicitly define the `sequence_by` behavior. You can still explicitly set\n`sequence_by` to override this default.", - "$ref": "#/$defs/slice/string", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "$ref": "#/$defs/slice/string" }, "deletion_condition": { "description": "Specifies a SQL WHERE condition that specifies that the source row has been deleted.\nThis is sometimes referred to as \"soft-deletes\".\nFor example: \"Operation = 'DELETE'\" or \"is_deleted = true\".\nThis field is orthogonal to `hard_deletion_sync_interval_in_seconds`,\none for soft-deletes and the other for hard-deletes.\nSee also the hard_deletion_sync_min_interval_in_seconds field for\nhandling of \"hard deletes\" where the source rows are physically removed from the table.", - "$ref": "#/$defs/string", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "$ref": "#/$defs/string" }, "hard_deletion_sync_min_interval_in_seconds": { "description": "Specifies the minimum interval (in seconds) between snapshots on primary keys\nfor detecting and synchronizing hard deletions—i.e., rows that have been\nphysically removed from the source table.\nThis interval acts as a lower bound. If ingestion runs less frequently than\nthis value, hard deletion synchronization will align with the actual ingestion\nfrequency instead of happening more often.\nIf not set, hard deletion synchronization via snapshots is disabled.\nThis field is mutable and can be updated without triggering a full snapshot.", - "$ref": "#/$defs/int64", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "$ref": "#/$defs/int64" } }, "additionalProperties": false @@ -8519,6 +8610,8 @@ "enum": [ "MYSQL", "POSTGRESQL", + "REDSHIFT", + "SQLDW", "SQLSERVER", "SALESFORCE", "BIGQUERY", @@ -8532,6 +8625,89 @@ "SHAREPOINT", "DYNAMICS365", "GOOGLE_DRIVE", + "JIRA", + "CONFLUENCE", + "META_MARKETING", + "GOOGLE_ADS", + "TIKTOK_ADS", + "SALESFORCE_MARKETING_CLOUD", + "HUBSPOT", + "WORKDAY_HCM", + "GUIDEWIRE", + "ZENDESK", + "COMMUNITY", + "SLACK_AUDIT_LOGS", + "KAFKA", + "CROWDSTRIKE_EVENT_STREAM", + "WORKDAY_ACTIVITY_LOGGING", + "AKAMAI_WAF", + "VEEVA", + "VEEVA_VAULT", + "M365_AUDIT_LOGS", + "OKTA_SYSTEM_LOGS", + "ONE_PASSWORD_EVENT_LOGS", + "PROOFPOINT_SIEM", + "WIZ_AUDIT_LOGS", + "GITHUB", + "OUTLOOK", + "SMARTSHEET", + "MICROSOFT_TEAMS", + "ADOBE_CAMPAIGNS", + "LINKEDIN_ADS", + "X_ADS", + "BING_ADS", + "GOOGLE_SEARCH_CONSOLE", + "PINTEREST_ADS", + "REDDIT_ADS", + "PENDO", + "API_SOURCE", + "SLACK_ACCESS_AND_INTEGRATION_LOGS", + "ORACLE_FUSION_CLOUD", + "RABBITMQ", + "GOOGLE_ANALYTICS", + "AMPLITUDE", + "NOTION", + "ADP_WORKFORCE_NOW", + "SAS", + "GONG", + "SALESLOFT", + "GOOGLE_WORKSPACE", + "SHOPIFY", + "ORACLE_ELOQUA", + "EPIC_CLARITY", + "LINEAR", + "APPLE_APP_STORE", + "SPLUNK", + "GITLAB", + "ZOOM_LOGS", + "MONDAY_COM", + "AIRTABLE", + "MICROSOFT_ENTRA_ID", + "PAGERDUTY", + "APPFIGURES", + "ADOBE_COMMERCE", + "QUICKBOOKS", + "SQUARE", + "ZOHO_BOOKS", + "SNAPCHAT_ADS", + "GENESYS", + "SAP_SUCCESSFACTORS", + "YOUTUBE_ANALYTICS", + "CERIDIAN_DAYFORCE", + "FRESHSERVICE", + "SENDGRID", + "AZURE_MONITOR_LOGS", + "ATLASSIAN_ORGANIZATION", + "HIBOB", + "APPLE_SEARCH_ADS", + "AWIN", + "DELIGHTED", + "FRONT", + "GURU", + "PARTNERSTACK", + "MARKETO", + "AHA", + "NETSKOPE_LOGS", "FOREIGN_CATALOG" ] }, @@ -8541,6 +8717,25 @@ } ] }, + "pipelines.JiraConnectorOptions": { + "oneOf": [ + { + "type": "object", + "description": "Jira specific options for ingestion", + "properties": { + "include_jira_spaces": { + "description": "(Optional) Projects to filter Jira data on", + "$ref": "#/$defs/slice/string" + } + }, + "additionalProperties": false + }, + { + "type": "string", + "pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)+)\\}" + } + ] + }, "pipelines.ManualTrigger": { "oneOf": [ { @@ -8553,6 +8748,53 @@ } ] }, + "pipelines.MetaMarketingOptions": { + "oneOf": [ + { + "type": "object", + "description": "Meta Marketing (Meta Ads) specific options for ingestion", + "properties": { + "action_attribution_windows": { + "description": "(Optional) Action attribution windows for insights reporting (e.g. \"28d_click\", \"1d_view\")", + "$ref": "#/$defs/slice/string" + }, + "action_breakdowns": { + "description": "(Optional) Action breakdowns to configure for data aggregation", + "$ref": "#/$defs/slice/string" + }, + "action_report_time": { + "description": "(Optional) Timing used to report action statistics (impression, conversion, mixed, or lifetime)", + "$ref": "#/$defs/string" + }, + "breakdowns": { + "description": "(Optional) Breakdowns to configure for data aggregation", + "$ref": "#/$defs/slice/string" + }, + "custom_insights_lookback_window": { + "description": "(Optional) Window in days to revisit data during sync to capture\nupdated conversion data from the API.", + "$ref": "#/$defs/int" + }, + "level": { + "description": "(Optional) Granularity of data to pull (account, ad, adset, campaign)", + "$ref": "#/$defs/string" + }, + "start_date": { + "description": "(Optional) Start date in yyyy-MM-dd format (e.g. 2025-01-15). Data added\nafter this date will be ingested", + "$ref": "#/$defs/string" + }, + "time_increment": { + "description": "(Optional) Value in string by which to aggregate statistics (can take all_days, monthly or number of days)", + "$ref": "#/$defs/string" + } + }, + "additionalProperties": false + }, + { + "type": "string", + "pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)+)\\}" + } + ] + }, "pipelines.NotebookLibrary": { "oneOf": [ { @@ -8623,6 +8865,101 @@ } ] }, + "pipelines.OutlookAttachmentMode": { + "oneOf": [ + { + "type": "string", + "description": "Attachment behavior mode for Outlook ingestion", + "enum": [ + "ALL", + "NON_INLINE_ONLY", + "INLINE_ONLY", + "NONE" + ] + }, + { + "type": "string", + "pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)+)\\}" + } + ] + }, + "pipelines.OutlookBodyFormat": { + "oneOf": [ + { + "type": "string", + "description": "Body format for Outlook email content", + "enum": [ + "TEXT_HTML", + "TEXT_PLAIN" + ] + }, + { + "type": "string", + "pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)+)\\}" + } + ] + }, + "pipelines.OutlookOptions": { + "oneOf": [ + { + "type": "object", + "description": "Outlook specific options for ingestion", + "properties": { + "attachment_mode": { + "description": "(Optional) Controls which attachments to ingest.\nIf not specified, defaults to ALL.", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.OutlookAttachmentMode" + }, + "body_format": { + "description": "(Optional) Defines how the body_content column is populated.\nTEXT_HTML: Preserves full formatting, links, and styling.\nTEXT_PLAIN: Converts body to plain text. Recommended for AI/RAG pipelines to reduce token usage and noise.", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.OutlookBodyFormat" + }, + "folder_filter": { + "description": "Deprecated. Use include_folders instead.", + "$ref": "#/$defs/slice/string", + "deprecationMessage": "This field is deprecated", + "deprecated": true + }, + "include_folders": { + "description": "(Optional) Filter mail folders to include in the sync.\nIf not specified, all folders will be synced.\nExamples: Inbox, Sent Items, Custom_Folder\nFilter semantics: OR between different folders.", + "$ref": "#/$defs/slice/string" + }, + "include_mailboxes": { + "description": "(Optional) List of mailboxes to sync (e.g. mailbox email addresses or identifiers).\nIf not specified, all accessible mailboxes are ingested.\nFilter semantics: OR between different mailboxes.", + "$ref": "#/$defs/slice/string" + }, + "include_senders": { + "description": "(Optional) Filter emails by sender address. Uses exact email match.\nExamples: user@vendor.com, alerts@system.io, noreply@company.com\nIf not specified, emails from all senders will be synced.\nFilter semantics: OR between different senders.", + "$ref": "#/$defs/slice/string" + }, + "include_subjects": { + "description": "(Optional) Filter emails by subject line. Values ending with \"*\" use prefix match (subject starts with\nthe part before \"*\"); otherwise substring match (subject contains the value).\nExamples: \"Invoice\" (substring), \"Re:*\" (prefix), \"Support Ticket\", \"URGENT*\"\nIf not specified, emails with all subjects will be synced.\nFilter semantics: OR between different subjects.", + "$ref": "#/$defs/slice/string" + }, + "sender_filter": { + "description": "Deprecated. Use include_senders instead.", + "$ref": "#/$defs/slice/string", + "deprecationMessage": "This field is deprecated", + "deprecated": true + }, + "start_date": { + "description": "(Optional) Start date for the initial sync in YYYY-MM-DD format.\nFormat: YYYY-MM-DD (e.g., 2024-01-01)\nThis determines the earliest date from which to sync historical data.\nIf not specified, complete history is ingested.", + "$ref": "#/$defs/string" + }, + "subject_filter": { + "description": "Deprecated. Use include_subjects instead.", + "$ref": "#/$defs/slice/string", + "deprecationMessage": "This field is deprecated", + "deprecated": true + } + }, + "additionalProperties": false + }, + { + "type": "string", + "pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)+)\\}" + } + ] + }, "pipelines.PathPattern": { "oneOf": [ { @@ -8888,7 +9225,7 @@ "oneOf": [ { "type": "object", - "description": "The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and DLT's environment for classic and serverless pipelines.\nIn this minimal environment spec, only pip dependencies are supported.", + "description": "The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and SDP's environment for classic and serverless pipelines.\nIn this minimal environment spec, only pip dependencies are supported.", "properties": { "dependencies": { "description": "List of pip dependencies, as supported by the version of pip in this environment.\nEach dependency is a pip requirement file line https://pip.pypa.io/en/stable/reference/requirements-file-format/\nAllowed dependency could be \u003crequirement specifier\u003e, \u003carchive url/path\u003e, \u003clocal project path\u003e(WSFS or Volumes in Databricks), \u003cvcs project url\u003e", @@ -9049,9 +9386,7 @@ "properties": { "connector_options": { "description": "(Optional) Source Specific Connector Options", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.ConnectorOptions", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.ConnectorOptions" }, "destination_catalog": { "description": "Required. Destination catalog to store tables.", @@ -9130,6 +9465,25 @@ } ] }, + "pipelines.SmartsheetOptions": { + "oneOf": [ + { + "type": "object", + "description": "Smartsheet specific options for ingestion", + "properties": { + "enforce_schema": { + "description": "(Optional) When true, maps each column to its Smartsheet-declared type (Text/Number/Date/\nCheckbox/etc.). Cells that do not conform to the declared type are set to NULL.\nWhen false, all columns land as STRING. Use false for sheets with irregular data or columns\nthat frequently violate their own declared type.\nIf not specified, defaults to true.", + "$ref": "#/$defs/bool" + } + }, + "additionalProperties": false + }, + { + "type": "string", + "pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)+)\\}" + } + ] + }, "pipelines.SourceCatalogConfig": { "oneOf": [ { @@ -9161,6 +9515,11 @@ "catalog": { "description": "Catalog-level source configuration parameters", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.SourceCatalogConfig" + }, + "google_ads_config": { + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.GoogleAdsConfig", + "x-databricks-preview": "PRIVATE", + "doNotSuggest": true } }, "additionalProperties": false @@ -9178,9 +9537,7 @@ "properties": { "connector_options": { "description": "(Optional) Source Specific Connector Options", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.ConnectorOptions", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.ConnectorOptions" }, "destination_catalog": { "description": "Required. Destination catalog to store table.", @@ -9247,15 +9604,11 @@ }, "query_based_connector_config": { "description": "Configurations that are only applicable for query-based ingestion connectors.", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.IngestionPipelineDefinitionTableSpecificConfigQueryBasedConnectorConfig", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.IngestionPipelineDefinitionTableSpecificConfigQueryBasedConnectorConfig" }, "row_filter": { "description": "(Optional, Immutable) The row filter condition to be applied to the table.\nIt must not contain the WHERE keyword, only the actual filter condition.\nIt must be in DBSQL format.", - "$ref": "#/$defs/string", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "$ref": "#/$defs/string" }, "salesforce_include_formula_fields": { "description": "If true, formula fields defined in the table are included in the ingestion. This setting is only valid for the Salesforce connector", @@ -9265,9 +9618,7 @@ }, "scd_type": { "description": "The SCD type to use to ingest the table.", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.TableSpecificConfigScdType", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.TableSpecificConfigScdType" }, "sequence_by": { "description": "The column names specifying the logical order of events in the source data. Spark Declarative Pipelines uses this sequencing to handle change events that arrive out of order.", @@ -9385,6 +9736,25 @@ } ] }, + "pipelines.ZendeskSupportOptions": { + "oneOf": [ + { + "type": "object", + "description": "Zendesk Support specific options for ingestion", + "properties": { + "start_date": { + "description": "(Optional) Start date in YYYY-MM-DD format for the initial sync.\nThis determines the earliest date from which to sync historical data.", + "$ref": "#/$defs/string" + } + }, + "additionalProperties": false + }, + { + "type": "string", + "pattern": "\\$\\{(var(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)+)\\}" + } + ] + }, "postgres.EndpointGroupSpec": { "oneOf": [ { @@ -9487,7 +9857,7 @@ "$ref": "#/$defs/float64" }, "no_suspension": { - "description": "When set to true, explicitly disables automatic suspension (never suspend).\nShould be set to true when provided.", + "description": "When set to true, explicitly disables automatic suspension (never suspend).\nShould be set to true when provided.\nMutually exclusive with `suspend_timeout_duration`. When updating, use `spec.project_default_settings.suspension` in the update_mask.", "$ref": "#/$defs/bool" }, "pg_settings": { @@ -9495,7 +9865,7 @@ "$ref": "#/$defs/map/string" }, "suspend_timeout_duration": { - "description": "Duration of inactivity after which the compute endpoint is automatically suspended.\nIf specified should be between 60s and 604800s (1 minute to 1 week).", + "description": "Duration of inactivity after which the compute endpoint is automatically suspended.\nIf specified should be between 60s and 604800s (1 minute to 1 week).\nMutually exclusive with `no_suspension`. When updating, use `spec.project_default_settings.suspension` in the update_mask.", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/common/types/duration.Duration" } }, @@ -9887,6 +10257,7 @@ "oneOf": [ { "type": "object", + "description": "Deprecated: legacy inference table configuration. Please use AI Gateway inference tables instead.\nSee https://docs.databricks.com/aws/en/ai-gateway/inference-tables.", "properties": { "catalog_name": { "description": "The name of the catalog in Unity Catalog. NOTE: On update, you cannot change the catalog name if the inference table is already enabled.", @@ -10048,8 +10419,10 @@ "type": "object", "properties": { "auto_capture_config": { - "description": "Configuration for Inference Tables which automatically logs requests and responses to Unity Catalog.\nNote: this field is deprecated for creating new provisioned throughput endpoints,\nor updating existing provisioned throughput endpoints that never have inference table configured;\nin these cases please use AI Gateway to manage inference tables.", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/serving.AutoCaptureConfigInput" + "description": "Configuration for legacy Inference Tables which automatically log requests and responses to Unity\nCatalog.\nDeprecated: please use AI Gateway inference tables instead. See\nhttps://docs.databricks.com/aws/en/ai-gateway/inference-tables.", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/serving.AutoCaptureConfigInput", + "deprecationMessage": "This field is deprecated", + "deprecated": true }, "served_entities": { "description": "The list of served entities under the serving endpoint config.", @@ -10922,7 +11295,8 @@ "enum": [ "TYPE_UNSPECIFIED", "CLASSIC", - "PRO" + "PRO", + "REYDEN" ] }, { @@ -11056,7 +11430,8 @@ "description": "Type of endpoint.", "enum": [ "STORAGE_OPTIMIZED", - "STANDARD" + "STANDARD", + "STANDARD_ON_ORION" ] }, { diff --git a/bundle/schema/jsonschema_for_docs.json b/bundle/schema/jsonschema_for_docs.json index 3c13ff8c134..0748cf84e47 100644 --- a/bundle/schema/jsonschema_for_docs.json +++ b/bundle/schema/jsonschema_for_docs.json @@ -108,8 +108,6 @@ "git_repository": { "description": "Git repository configuration for app deployments. When specified, deployments can\nreference code from this repository by providing only the git reference (branch, tag, or commit).", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/apps.GitRepository", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true, "x-since-version": "v0.283.0" }, "git_source": { @@ -247,8 +245,7 @@ "managed_encryption_settings": { "description": "Control CMK encryption for managed catalog data", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/catalog.EncryptionSettings", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "x-since-version": "v0.298.0" }, "name": { "$ref": "#/$defs/string", @@ -1168,7 +1165,7 @@ "x-since-version": "v0.229.0" }, "channel": { - "description": "DLT Release Channel that specifies which version to use.", + "description": "SDP Release Channel that specifies which version to use.", "$ref": "#/$defs/string", "x-since-version": "v0.229.0" }, @@ -1461,7 +1458,8 @@ "x-since-version": "v0.290.0" }, "default_branch": { - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "default_endpoint_settings": { "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/postgres.ProjectDefaultEndpointSettings", @@ -1924,27 +1922,33 @@ "type": "object", "properties": { "budget_policy_id": { - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "endpoint_type": { - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/vectorsearch.EndpointType" + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/vectorsearch.EndpointType", + "x-since-version": "v0.298.0" }, "lifecycle": { - "$ref": "#/$defs/github.com/databricks/cli/bundle/config/resources.Lifecycle" - }, - "min_qps": { - "$ref": "#/$defs/int64" + "$ref": "#/$defs/github.com/databricks/cli/bundle/config/resources.Lifecycle", + "x-since-version": "v0.298.0" }, "name": { - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "permissions": { - "$ref": "#/$defs/slice/github.com/databricks/cli/bundle/config/resources.Permission" + "$ref": "#/$defs/slice/github.com/databricks/cli/bundle/config/resources.Permission", + "x-since-version": "v0.298.0" + }, + "target_qps": { + "$ref": "#/$defs/int64" }, "usage_policy_id": { "$ref": "#/$defs/string", "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "doNotSuggest": true, + "x-since-version": "v0.298.0" } }, "additionalProperties": false, @@ -2525,7 +2529,8 @@ "x-since-version": "v0.266.0" }, "vector_search_endpoints": { - "$ref": "#/$defs/map/github.com/databricks/cli/bundle/config/resources.VectorSearchEndpoint" + "$ref": "#/$defs/map/github.com/databricks/cli/bundle/config/resources.VectorSearchEndpoint", + "x-since-version": "v0.298.0" }, "volumes": { "description": "The volume definitions for the bundle, where each key is the name of the volume.", @@ -2704,7 +2709,7 @@ "x-since-version": "v0.229.0" }, "experimental_is_unified_host": { - "description": "Experimental feature flag to indicate if the host is a unified host", + "description": "Deprecated: no-op. Unified hosts are now detected automatically from /.well-known/databricks-config. Retained for schema compatibility with existing databricks.yml files.", "$ref": "#/$defs/bool", "x-since-version": "v0.285.0" }, @@ -2791,8 +2796,6 @@ "git_source": { "description": "Git repository to use as the source for the app deployment.", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/apps.GitSource", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true, "x-since-version": "v0.283.0" }, "mode": { @@ -2907,10 +2910,12 @@ "type": "object", "properties": { "name": { - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "permission": { - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/apps.AppResourceAppAppPermission" + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/apps.AppResourceAppAppPermission", + "x-since-version": "v0.298.0" } }, "additionalProperties": false @@ -3203,7 +3208,8 @@ "type": "string", "enum": [ "MEDIUM", - "LARGE" + "LARGE", + "LIQUID" ] }, "apps.ComputeState": { @@ -3344,13 +3350,16 @@ "type": "object", "properties": { "azure_cmk_access_connector_id": { - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "azure_cmk_managed_identity_id": { - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "azure_tenant_id": { - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" } }, "additionalProperties": false, @@ -3393,15 +3402,18 @@ "properties": { "azure_encryption_settings": { "description": "optional Azure settings - only required if an Azure CMK is used.", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/catalog.AzureEncryptionSettings" + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/catalog.AzureEncryptionSettings", + "x-since-version": "v0.298.0" }, "azure_key_vault_key_id": { "description": "the AKV URL in Azure, null otherwise.", - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "customer_managed_key_id": { "description": "the CMK uuid in AWS and GCP, null otherwise.", - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" } }, "additionalProperties": false @@ -3702,7 +3714,19 @@ "CREATE_CLEAN_ROOM", "MODIFY_CLEAN_ROOM", "EXECUTE_CLEAN_ROOM_TASK", - "EXTERNAL_USE_SCHEMA" + "EXTERNAL_USE_SCHEMA", + "VIEW_OBJECT", + "MANAGE_GRANTS", + "INSERT", + "UPDATE", + "DELETE", + "VIEW_ADMIN_METADATA", + "VIEW_METADATA", + "USE_VOLUME", + "READ_METADATA", + "MANAGE_ACCESS", + "MANAGE_ACCESS_CONTROL", + "CREATE_SERVICE" ] }, "catalog.PrivilegeAssignment": { @@ -4134,6 +4158,14 @@ }, "additionalProperties": false }, + "compute.ConfidentialComputeType": { + "type": "string", + "description": "Confidential computing technology for GCP instances.\nAligns with gcloud's --confidential-compute-type flag and the REST API's\nconfidentialInstanceConfig.confidentialInstanceType field.\nSee: https://cloud.google.com/confidential-computing/confidential-vm/docs/create-a-confidential-vm-instance", + "enum": [ + "CONFIDENTIAL_COMPUTE_TYPE_NONE", + "SEV_SNP" + ] + }, "compute.DataSecurityMode": { "type": "string", "description": "Data security mode decides what data governance model to use when accessing data\nfrom a cluster.\n\nThe following modes can only be used when `kind = CLASSIC_PREVIEW`.\n* `DATA_SECURITY_MODE_AUTO`: Databricks will choose the most appropriate access mode depending on your compute configuration.\n* `DATA_SECURITY_MODE_STANDARD`: Alias for `USER_ISOLATION`.\n* `DATA_SECURITY_MODE_DEDICATED`: Alias for `SINGLE_USER`.\n\nThe following modes can be used regardless of `kind`.\n* `NONE`: No security isolation for multiple users sharing the cluster. Data governance features are not available in this mode.\n* `SINGLE_USER`: A secure cluster that can only be exclusively used by a single user specified in `single_user_name`. Most programming languages, cluster features and data governance features are available in this mode.\n* `USER_ISOLATION`: A secure cluster that can be shared by multiple users. Cluster users are fully isolated so that they cannot see each other's data and credentials. Most data governance features are supported in this mode. But programming languages and cluster features might be limited.\n\nThe following modes are deprecated starting with Databricks Runtime 15.0 and\nwill be removed for future Databricks Runtime versions:\n\n* `LEGACY_TABLE_ACL`: This mode is for users migrating from legacy Table ACL clusters.\n* `LEGACY_PASSTHROUGH`: This mode is for users migrating from legacy Passthrough on high concurrency clusters.\n* `LEGACY_SINGLE_USER`: This mode is for users migrating from legacy Passthrough on standard clusters.\n* `LEGACY_SINGLE_USER_STANDARD`: This mode provides a way that doesn’t have UC nor passthrough enabled.", @@ -4206,7 +4238,7 @@ }, "compute.Environment": { "type": "object", - "description": "The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and DLT's environment for classic and serverless pipelines.\nIn this minimal environment spec, only pip and java dependencies are supported.", + "description": "The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and SDP's environment for classic and serverless pipelines.\nIn this minimal environment spec, only pip and java dependencies are supported.", "properties": { "base_environment": { "description": "The base environment this environment is built on top of. A base environment defines the environment version and a\nlist of dependencies for serverless compute. The value can be a file path to a custom `env.yaml` file\n(e.g., `/Workspace/path/to/env.yaml`). Support for a Databricks-provided base environment ID\n(e.g., `workspace-base-environments/databricks_ai_v4`) and workspace base environment ID\n(e.g., `workspace-base-environments/dbe_b849b66e-b31a-4cb5-b161-1f2b10877fb7`) is in Beta.\nEither `environment_version` or `base_environment` can be provided. For more information, see", @@ -4250,6 +4282,12 @@ "$ref": "#/$defs/int", "x-since-version": "v0.229.0" }, + "confidential_compute_type": { + "description": "The confidential computing technology for this cluster's instances.\nCurrently only SEV_SNP is supported, and only on N2D instance types.\nWhen not set, no confidential computing is applied.", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/compute.ConfidentialComputeType", + "x-databricks-preview": "PRIVATE", + "doNotSuggest": true + }, "first_on_demand": { "description": "The first `first_on_demand` nodes of the cluster will be placed on on-demand instances.\nThis value should be greater than 0, to make sure the cluster driver node is placed on an\non-demand instance. If this value is greater than or equal to the current cluster size, all\nnodes will be placed on on-demand instances. If this value is less than the current cluster\nsize, `first_on_demand` nodes will be placed on on-demand instances and the remainder will\nbe placed on `availability` instances. Note that this value does not affect\ncluster size and cannot currently be mutated over the lifetime of a cluster.", "$ref": "#/$defs/int", @@ -4309,7 +4347,8 @@ "description": "HardwareAcceleratorType: The type of hardware accelerator to use for compute workloads.\nNOTE: This enum is referenced and is intended to be used by other Databricks services\nthat need to specify hardware accelerator requirements for AI compute workloads.", "enum": [ "GPU_1xA10", - "GPU_8xH100" + "GPU_8xH100", + "GPU_1xH100" ] }, "compute.InitScriptInfo": { @@ -4660,7 +4699,8 @@ "DELETING", "STOPPED", "UPDATING", - "FAILING_OVER" + "FAILING_OVER", + "MIGRATING" ] }, "database.DeltaTableSyncInfo": { @@ -4854,7 +4894,8 @@ "CAN_MONITOR", "CAN_CREATE", "CAN_MONITOR_ONLY", - "CAN_CREATE_APP" + "CAN_CREATE_APP", + "UNSPECIFIED" ] }, "jobs.AlertTask": { @@ -5717,7 +5758,7 @@ "type": "object", "properties": { "full_refresh": { - "description": "If true, triggers a full refresh on the delta live table.", + "description": "If true, triggers a full refresh on the spark declarative pipeline.", "$ref": "#/$defs/bool", "x-since-version": "v0.229.0" } @@ -5728,7 +5769,7 @@ "type": "object", "properties": { "full_refresh": { - "description": "If true, triggers a full refresh on the delta live table.", + "description": "If true, triggers a full refresh on the spark declarative pipeline.", "$ref": "#/$defs/bool", "x-since-version": "v0.229.0" }, @@ -6712,6 +6753,17 @@ "enabled" ] }, + "pipelines.ConfluenceConnectorOptions": { + "type": "object", + "description": "Confluence specific options for ingestion", + "properties": { + "include_confluence_spaces": { + "description": "(Optional) Spaces to filter Confluence data on", + "$ref": "#/$defs/slice/string" + } + }, + "additionalProperties": false + }, "pipelines.ConnectionParameters": { "type": "object", "properties": { @@ -6729,26 +6781,60 @@ "type": "object", "description": "Wrapper message for source-specific options to support multiple connector types", "properties": { + "confluence_options": { + "description": "Confluence specific options for ingestion", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.ConfluenceConnectorOptions" + }, "gdrive_options": { "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.GoogleDriveOptions", "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "doNotSuggest": true, + "x-since-version": "v0.298.0" }, "google_ads_options": { "description": "Google Ads specific options for ingestion (object-level).\nWhen set, these values override the corresponding fields in GoogleAdsConfig\n(source_configurations).", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.GoogleAdsOptions", "x-databricks-preview": "PRIVATE", + "doNotSuggest": true, + "x-since-version": "v0.298.0" + }, + "jira_options": { + "description": "Jira specific options for ingestion", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.JiraConnectorOptions" + }, + "meta_ads_options": { + "description": "Meta Marketing (Meta Ads) specific options for ingestion", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.MetaMarketingOptions" + }, + "outlook_options": { + "description": "Outlook specific options for ingestion", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.OutlookOptions", + "x-databricks-preview": "PRIVATE", "doNotSuggest": true }, "sharepoint_options": { "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.SharepointOptions", "x-databricks-preview": "PRIVATE", + "doNotSuggest": true, + "x-since-version": "v0.298.0" + }, + "smartsheet_options": { + "description": "Smartsheet specific options for ingestion", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.SmartsheetOptions", + "x-databricks-preview": "PRIVATE", "doNotSuggest": true }, "tiktok_ads_options": { "description": "TikTok Ads specific options for ingestion", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.TikTokAdsOptions", "x-databricks-preview": "PRIVATE", + "doNotSuggest": true, + "x-since-version": "v0.298.0" + }, + "zendesk_support_options": { + "description": "Zendesk Support specific options for ingestion", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.ZendeskSupportOptions", + "x-databricks-preview": "PRIVATE", "doNotSuggest": true } }, @@ -6849,15 +6935,18 @@ "properties": { "modified_after": { "description": "Include files with modification times occurring after the specified time.\nTimestamp format: YYYY-MM-DDTHH:mm:ss (e.g. 2020-06-01T13:00:00)\nBased on https://spark.apache.org/docs/latest/sql-data-sources-generic-options.html#modification-time-path-filters", - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "modified_before": { "description": "Include files with modification times occurring before the specified time.\nTimestamp format: YYYY-MM-DDTHH:mm:ss (e.g. 2020-06-01T13:00:00)\nBased on https://spark.apache.org/docs/latest/sql-data-sources-generic-options.html#modification-time-path-filters", - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "path_filter": { "description": "Include files with file names matching the pattern\nBased on https://spark.apache.org/docs/latest/sql-data-sources-generic-options.html#path-glob-filter", - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" } }, "additionalProperties": false @@ -6866,43 +6955,54 @@ "type": "object", "properties": { "corrupt_record_column": { - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "file_filters": { "description": "Generic options", - "$ref": "#/$defs/slice/github.com/databricks/databricks-sdk-go/service/pipelines.FileFilter" + "$ref": "#/$defs/slice/github.com/databricks/databricks-sdk-go/service/pipelines.FileFilter", + "x-since-version": "v0.298.0" }, "format": { "description": "required for TableSpec", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.FileIngestionOptionsFileFormat" + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.FileIngestionOptionsFileFormat", + "x-since-version": "v0.298.0" }, "format_options": { "description": "Format-specific options\nBased on https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/options#file-format-options", - "$ref": "#/$defs/map/string" + "$ref": "#/$defs/map/string", + "x-since-version": "v0.298.0" }, "ignore_corrupt_files": { - "$ref": "#/$defs/bool" + "$ref": "#/$defs/bool", + "x-since-version": "v0.298.0" }, "infer_column_types": { - "$ref": "#/$defs/bool" + "$ref": "#/$defs/bool", + "x-since-version": "v0.298.0" }, "reader_case_sensitive": { "description": "Column name case sensitivity\nhttps://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/schema#change-case-sensitive-behavior", - "$ref": "#/$defs/bool" + "$ref": "#/$defs/bool", + "x-since-version": "v0.298.0" }, "rescued_data_column": { - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "schema_evolution_mode": { "description": "Based on https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/schema#how-does-auto-loader-schema-evolution-work", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.FileIngestionOptionsSchemaEvolutionMode" + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.FileIngestionOptionsSchemaEvolutionMode", + "x-since-version": "v0.298.0" }, "schema_hints": { "description": "Override inferred schema of specific columns\nBased on https://docs.databricks.com/aws/en/ingestion/cloud-object-storage/auto-loader/schema#override-schema-inference-with-schema-hints", - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "single_variant_column": { - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" } }, "additionalProperties": false @@ -6958,21 +7058,34 @@ }, "additionalProperties": false }, + "pipelines.GoogleAdsConfig": { + "type": "object", + "properties": { + "manager_account_id": { + "description": "(Required) Manager Account ID (also called MCC Account ID) used to list and access\ncustomer accounts under this manager account. This is required for fetching the list\nof customer accounts during source selection.\nIf the same field is also set in the object-level GoogleAdsOptions (connector_options),\nthe object-level value takes precedence over this top-level config.", + "$ref": "#/$defs/string" + } + }, + "additionalProperties": false + }, "pipelines.GoogleAdsOptions": { "type": "object", "description": "Google Ads specific options for ingestion (object-level).\nWhen set, these values override the corresponding fields in GoogleAdsConfig\n(source_configurations).", "properties": { "lookback_window_days": { "description": "(Optional) Number of days to look back for report tables to capture late-arriving data.\nIf not specified, defaults to 30 days.", - "$ref": "#/$defs/int" + "$ref": "#/$defs/int", + "x-since-version": "v0.298.0" }, "manager_account_id": { "description": "(Optional at this level) Manager Account ID (also called MCC Account ID) used to list\nand access customer accounts under this manager account.\nOverrides GoogleAdsConfig.manager_account_id from source_configurations when set.", - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" }, "sync_start_date": { "description": "(Optional) Start date for the initial sync of report tables in YYYY-MM-DD format.\nThis determines the earliest date from which to sync historical data.\nIf not specified, defaults to 2 years of historical data.", - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" } }, "additionalProperties": false, @@ -6984,14 +7097,17 @@ "type": "object", "properties": { "entity_type": { - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.GoogleDriveOptionsGoogleDriveEntityType" + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.GoogleDriveOptionsGoogleDriveEntityType", + "x-since-version": "v0.298.0" }, "file_ingestion_options": { - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.FileIngestionOptions" + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.FileIngestionOptions", + "x-since-version": "v0.298.0" }, "url": { "description": "Google Drive URL.", - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" } }, "additionalProperties": false @@ -7100,8 +7216,6 @@ "ingest_from_uc_foreign_catalog": { "description": "Immutable. If set to true, the pipeline will ingest tables from the\nUC foreign catalogs directly without the need to specify a UC connection or ingestion gateway.\nThe `source_catalog` fields in objects of IngestionConfig are interpreted as\nthe UC foreign catalogs to ingest from.", "$ref": "#/$defs/bool", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true, "x-since-version": "v0.279.0" }, "ingestion_gateway_id": { @@ -7140,22 +7254,16 @@ "cursor_columns": { "description": "The names of the monotonically increasing columns in the source table that are used to enable\nthe table to be read and ingested incrementally through structured streaming.\nThe columns are allowed to have repeated values but have to be non-decreasing.\nIf the source data is merged into the destination (e.g., using SCD Type 1 or Type 2), these\ncolumns will implicitly define the `sequence_by` behavior. You can still explicitly set\n`sequence_by` to override this default.", "$ref": "#/$defs/slice/string", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true, "x-since-version": "v0.264.0" }, "deletion_condition": { "description": "Specifies a SQL WHERE condition that specifies that the source row has been deleted.\nThis is sometimes referred to as \"soft-deletes\".\nFor example: \"Operation = 'DELETE'\" or \"is_deleted = true\".\nThis field is orthogonal to `hard_deletion_sync_interval_in_seconds`,\none for soft-deletes and the other for hard-deletes.\nSee also the hard_deletion_sync_min_interval_in_seconds field for\nhandling of \"hard deletes\" where the source rows are physically removed from the table.", "$ref": "#/$defs/string", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true, "x-since-version": "v0.264.0" }, "hard_deletion_sync_min_interval_in_seconds": { "description": "Specifies the minimum interval (in seconds) between snapshots on primary keys\nfor detecting and synchronizing hard deletions—i.e., rows that have been\nphysically removed from the source table.\nThis interval acts as a lower bound. If ingestion runs less frequently than\nthis value, hard deletion synchronization will align with the actual ingestion\nfrequency instead of happening more often.\nIf not set, hard deletion synchronization via snapshots is disabled.\nThis field is mutable and can be updated without triggering a full snapshot.", "$ref": "#/$defs/int64", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true, "x-since-version": "v0.264.0" } }, @@ -7207,6 +7315,8 @@ "enum": [ "MYSQL", "POSTGRESQL", + "REDSHIFT", + "SQLDW", "SQLSERVER", "SALESFORCE", "BIGQUERY", @@ -7220,13 +7330,146 @@ "SHAREPOINT", "DYNAMICS365", "GOOGLE_DRIVE", + "JIRA", + "CONFLUENCE", + "META_MARKETING", + "GOOGLE_ADS", + "TIKTOK_ADS", + "SALESFORCE_MARKETING_CLOUD", + "HUBSPOT", + "WORKDAY_HCM", + "GUIDEWIRE", + "ZENDESK", + "COMMUNITY", + "SLACK_AUDIT_LOGS", + "KAFKA", + "CROWDSTRIKE_EVENT_STREAM", + "WORKDAY_ACTIVITY_LOGGING", + "AKAMAI_WAF", + "VEEVA", + "VEEVA_VAULT", + "M365_AUDIT_LOGS", + "OKTA_SYSTEM_LOGS", + "ONE_PASSWORD_EVENT_LOGS", + "PROOFPOINT_SIEM", + "WIZ_AUDIT_LOGS", + "GITHUB", + "OUTLOOK", + "SMARTSHEET", + "MICROSOFT_TEAMS", + "ADOBE_CAMPAIGNS", + "LINKEDIN_ADS", + "X_ADS", + "BING_ADS", + "GOOGLE_SEARCH_CONSOLE", + "PINTEREST_ADS", + "REDDIT_ADS", + "PENDO", + "API_SOURCE", + "SLACK_ACCESS_AND_INTEGRATION_LOGS", + "ORACLE_FUSION_CLOUD", + "RABBITMQ", + "GOOGLE_ANALYTICS", + "AMPLITUDE", + "NOTION", + "ADP_WORKFORCE_NOW", + "SAS", + "GONG", + "SALESLOFT", + "GOOGLE_WORKSPACE", + "SHOPIFY", + "ORACLE_ELOQUA", + "EPIC_CLARITY", + "LINEAR", + "APPLE_APP_STORE", + "SPLUNK", + "GITLAB", + "ZOOM_LOGS", + "MONDAY_COM", + "AIRTABLE", + "MICROSOFT_ENTRA_ID", + "PAGERDUTY", + "APPFIGURES", + "ADOBE_COMMERCE", + "QUICKBOOKS", + "SQUARE", + "ZOHO_BOOKS", + "SNAPCHAT_ADS", + "GENESYS", + "SAP_SUCCESSFACTORS", + "YOUTUBE_ANALYTICS", + "CERIDIAN_DAYFORCE", + "FRESHSERVICE", + "SENDGRID", + "AZURE_MONITOR_LOGS", + "ATLASSIAN_ORGANIZATION", + "HIBOB", + "APPLE_SEARCH_ADS", + "AWIN", + "DELIGHTED", + "FRONT", + "GURU", + "PARTNERSTACK", + "MARKETO", + "AHA", + "NETSKOPE_LOGS", "FOREIGN_CATALOG" ] }, + "pipelines.JiraConnectorOptions": { + "type": "object", + "description": "Jira specific options for ingestion", + "properties": { + "include_jira_spaces": { + "description": "(Optional) Projects to filter Jira data on", + "$ref": "#/$defs/slice/string" + } + }, + "additionalProperties": false + }, "pipelines.ManualTrigger": { "type": "object", "additionalProperties": false }, + "pipelines.MetaMarketingOptions": { + "type": "object", + "description": "Meta Marketing (Meta Ads) specific options for ingestion", + "properties": { + "action_attribution_windows": { + "description": "(Optional) Action attribution windows for insights reporting (e.g. \"28d_click\", \"1d_view\")", + "$ref": "#/$defs/slice/string" + }, + "action_breakdowns": { + "description": "(Optional) Action breakdowns to configure for data aggregation", + "$ref": "#/$defs/slice/string" + }, + "action_report_time": { + "description": "(Optional) Timing used to report action statistics (impression, conversion, mixed, or lifetime)", + "$ref": "#/$defs/string" + }, + "breakdowns": { + "description": "(Optional) Breakdowns to configure for data aggregation", + "$ref": "#/$defs/slice/string" + }, + "custom_insights_lookback_window": { + "description": "(Optional) Window in days to revisit data during sync to capture\nupdated conversion data from the API.", + "$ref": "#/$defs/int" + }, + "level": { + "description": "(Optional) Granularity of data to pull (account, ad, adset, campaign)", + "$ref": "#/$defs/string" + }, + "start_date": { + "description": "(Optional) Start date in yyyy-MM-dd format (e.g. 2025-01-15). Data added\nafter this date will be ingested", + "$ref": "#/$defs/string" + }, + "time_increment": { + "description": "(Optional) Value in string by which to aggregate statistics (can take all_days, monthly or number of days)", + "$ref": "#/$defs/string" + } + }, + "additionalProperties": false + }, "pipelines.NotebookLibrary": { "type": "object", "properties": { @@ -7279,6 +7522,77 @@ "start_hour" ] }, + "pipelines.OutlookAttachmentMode": { + "type": "string", + "description": "Attachment behavior mode for Outlook ingestion", + "enum": [ + "ALL", + "NON_INLINE_ONLY", + "INLINE_ONLY", + "NONE" + ] + }, + "pipelines.OutlookBodyFormat": { + "type": "string", + "description": "Body format for Outlook email content", + "enum": [ + "TEXT_HTML", + "TEXT_PLAIN" + ] + }, + "pipelines.OutlookOptions": { + "type": "object", + "description": "Outlook specific options for ingestion", + "properties": { + "attachment_mode": { + "description": "(Optional) Controls which attachments to ingest.\nIf not specified, defaults to ALL.", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.OutlookAttachmentMode" + }, + "body_format": { + "description": "(Optional) Defines how the body_content column is populated.\nTEXT_HTML: Preserves full formatting, links, and styling.\nTEXT_PLAIN: Converts body to plain text. Recommended for AI/RAG pipelines to reduce token usage and noise.", + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.OutlookBodyFormat" + }, + "folder_filter": { + "description": "Deprecated. Use include_folders instead.", + "$ref": "#/$defs/slice/string", + "deprecationMessage": "This field is deprecated", + "deprecated": true + }, + "include_folders": { + "description": "(Optional) Filter mail folders to include in the sync.\nIf not specified, all folders will be synced.\nExamples: Inbox, Sent Items, Custom_Folder\nFilter semantics: OR between different folders.", + "$ref": "#/$defs/slice/string" + }, + "include_mailboxes": { + "description": "(Optional) List of mailboxes to sync (e.g. mailbox email addresses or identifiers).\nIf not specified, all accessible mailboxes are ingested.\nFilter semantics: OR between different mailboxes.", + "$ref": "#/$defs/slice/string" + }, + "include_senders": { + "description": "(Optional) Filter emails by sender address. Uses exact email match.\nExamples: user@vendor.com, alerts@system.io, noreply@company.com\nIf not specified, emails from all senders will be synced.\nFilter semantics: OR between different senders.", + "$ref": "#/$defs/slice/string" + }, + "include_subjects": { + "description": "(Optional) Filter emails by subject line. Values ending with \"*\" use prefix match (subject starts with\nthe part before \"*\"); otherwise substring match (subject contains the value).\nExamples: \"Invoice\" (substring), \"Re:*\" (prefix), \"Support Ticket\", \"URGENT*\"\nIf not specified, emails with all subjects will be synced.\nFilter semantics: OR between different subjects.", + "$ref": "#/$defs/slice/string" + }, + "sender_filter": { + "description": "Deprecated. Use include_senders instead.", + "$ref": "#/$defs/slice/string", + "deprecationMessage": "This field is deprecated", + "deprecated": true + }, + "start_date": { + "description": "(Optional) Start date for the initial sync in YYYY-MM-DD format.\nFormat: YYYY-MM-DD (e.g., 2024-01-01)\nThis determines the earliest date from which to sync historical data.\nIf not specified, complete history is ingested.", + "$ref": "#/$defs/string" + }, + "subject_filter": { + "description": "Deprecated. Use include_subjects instead.", + "$ref": "#/$defs/slice/string", + "deprecationMessage": "This field is deprecated", + "deprecated": true + } + }, + "additionalProperties": false + }, "pipelines.PathPattern": { "type": "object", "properties": { @@ -7511,7 +7825,7 @@ }, "pipelines.PipelinesEnvironment": { "type": "object", - "description": "The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and DLT's environment for classic and serverless pipelines.\nIn this minimal environment spec, only pip dependencies are supported.", + "description": "The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and SDP's environment for classic and serverless pipelines.\nIn this minimal environment spec, only pip dependencies are supported.", "properties": { "dependencies": { "description": "List of pip dependencies, as supported by the version of pip in this environment.\nEach dependency is a pip requirement file line https://pip.pypa.io/en/stable/reference/requirements-file-format/\nAllowed dependency could be \u003crequirement specifier\u003e, \u003carchive url/path\u003e, \u003clocal project path\u003e(WSFS or Volumes in Databricks), \u003cvcs project url\u003e", @@ -7640,8 +7954,7 @@ "connector_options": { "description": "(Optional) Source Specific Connector Options", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.ConnectorOptions", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "x-since-version": "v0.298.0" }, "destination_catalog": { "description": "Required. Destination catalog to store tables.", @@ -7681,15 +7994,18 @@ "properties": { "entity_type": { "description": "(Optional) The type of SharePoint entity to ingest.\nIf not specified, defaults to FILE.", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.SharepointOptionsSharepointEntityType" + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.SharepointOptionsSharepointEntityType", + "x-since-version": "v0.298.0" }, "file_ingestion_options": { "description": "(Optional) File ingestion options for processing files.", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.FileIngestionOptions" + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.FileIngestionOptions", + "x-since-version": "v0.298.0" }, "url": { "description": "Required. The SharePoint URL.", - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" } }, "additionalProperties": false @@ -7703,6 +8019,17 @@ "LIST" ] }, + "pipelines.SmartsheetOptions": { + "type": "object", + "description": "Smartsheet specific options for ingestion", + "properties": { + "enforce_schema": { + "description": "(Optional) When true, maps each column to its Smartsheet-declared type (Text/Number/Date/\nCheckbox/etc.). Cells that do not conform to the declared type are set to NULL.\nWhen false, all columns land as STRING. Use false for sheets with irregular data or columns\nthat frequently violate their own declared type.\nIf not specified, defaults to true.", + "$ref": "#/$defs/bool" + } + }, + "additionalProperties": false + }, "pipelines.SourceCatalogConfig": { "type": "object", "description": "SourceCatalogConfig contains catalog-level custom configuration parameters for each source", @@ -7727,6 +8054,11 @@ "description": "Catalog-level source configuration parameters", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.SourceCatalogConfig", "x-since-version": "v0.267.0" + }, + "google_ads_config": { + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.GoogleAdsConfig", + "x-databricks-preview": "PRIVATE", + "doNotSuggest": true } }, "additionalProperties": false @@ -7737,8 +8069,7 @@ "connector_options": { "description": "(Optional) Source Specific Connector Options", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.ConnectorOptions", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true + "x-since-version": "v0.298.0" }, "destination_catalog": { "description": "Required. Destination catalog to store table.", @@ -7809,15 +8140,11 @@ "query_based_connector_config": { "description": "Configurations that are only applicable for query-based ingestion connectors.", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.IngestionPipelineDefinitionTableSpecificConfigQueryBasedConnectorConfig", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true, "x-since-version": "v0.264.0" }, "row_filter": { "description": "(Optional, Immutable) The row filter condition to be applied to the table.\nIt must not contain the WHERE keyword, only the actual filter condition.\nIt must be in DBSQL format.", "$ref": "#/$defs/string", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true, "x-since-version": "v0.283.0" }, "salesforce_include_formula_fields": { @@ -7830,8 +8157,6 @@ "scd_type": { "description": "The SCD type to use to ingest the table.", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.TableSpecificConfigScdType", - "x-databricks-preview": "PRIVATE", - "doNotSuggest": true, "x-since-version": "v0.229.0" }, "sequence_by": { @@ -7863,31 +8188,38 @@ "properties": { "data_level": { "description": "(Optional) Data level for the report.\nIf not specified, defaults to AUCTION_CAMPAIGN.", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.TikTokAdsOptionsTikTokDataLevel" + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.TikTokAdsOptionsTikTokDataLevel", + "x-since-version": "v0.298.0" }, "dimensions": { "description": "(Optional) Dimensions to include in the report.\nExamples: \"campaign_id\", \"adgroup_id\", \"ad_id\", \"stat_time_day\", \"stat_time_hour\"\nIf not specified, defaults to campaign_id.", - "$ref": "#/$defs/slice/string" + "$ref": "#/$defs/slice/string", + "x-since-version": "v0.298.0" }, "lookback_window_days": { "description": "(Optional) Number of days to look back for report tables during incremental sync\nto capture late-arriving conversions and attribution data.\nIf not specified, defaults to 7 days.", - "$ref": "#/$defs/int" + "$ref": "#/$defs/int", + "x-since-version": "v0.298.0" }, "metrics": { "description": "(Optional) Metrics to include in the report.\nExamples: \"spend\", \"impressions\", \"clicks\", \"conversion\", \"cpc\"\nIf not specified, defaults to basic metrics (spend, impressions, clicks, etc.)", - "$ref": "#/$defs/slice/string" + "$ref": "#/$defs/slice/string", + "x-since-version": "v0.298.0" }, "query_lifetime": { "description": "(Optional) Whether to request lifetime metrics (all-time aggregated data).\nWhen true, the report returns all-time data.\nIf not specified, defaults to false.", - "$ref": "#/$defs/bool" + "$ref": "#/$defs/bool", + "x-since-version": "v0.298.0" }, "report_type": { "description": "(Optional) Report type for the TikTok Ads API.\nIf not specified, defaults to BASIC.", - "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.TikTokAdsOptionsTikTokReportType" + "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/pipelines.TikTokAdsOptionsTikTokReportType", + "x-since-version": "v0.298.0" }, "sync_start_date": { "description": "(Optional) Start date for the initial sync of report tables in YYYY-MM-DD format.\nThis determines the earliest date from which to sync historical data.\nIf not specified, defaults to 1 year of historical data for daily reports\nand 30 days for hourly reports.", - "$ref": "#/$defs/string" + "$ref": "#/$defs/string", + "x-since-version": "v0.298.0" } }, "additionalProperties": false @@ -7914,6 +8246,17 @@ "GMV_MAX" ] }, + "pipelines.ZendeskSupportOptions": { + "type": "object", + "description": "Zendesk Support specific options for ingestion", + "properties": { + "start_date": { + "description": "(Optional) Start date in YYYY-MM-DD format for the initial sync.\nThis determines the earliest date from which to sync historical data.", + "$ref": "#/$defs/string" + } + }, + "additionalProperties": false + }, "postgres.EndpointGroupSpec": { "type": "object", "properties": { @@ -7990,7 +8333,7 @@ "x-since-version": "v0.287.0" }, "no_suspension": { - "description": "When set to true, explicitly disables automatic suspension (never suspend).\nShould be set to true when provided.", + "description": "When set to true, explicitly disables automatic suspension (never suspend).\nShould be set to true when provided.\nMutually exclusive with `suspend_timeout_duration`. When updating, use `spec.project_default_settings.suspension` in the update_mask.", "$ref": "#/$defs/bool", "x-since-version": "v0.287.0" }, @@ -8000,7 +8343,7 @@ "x-since-version": "v0.287.0" }, "suspend_timeout_duration": { - "description": "Duration of inactivity after which the compute endpoint is automatically suspended.\nIf specified should be between 60s and 604800s (1 minute to 1 week).", + "description": "Duration of inactivity after which the compute endpoint is automatically suspended.\nIf specified should be between 60s and 604800s (1 minute to 1 week).\nMutually exclusive with `no_suspension`. When updating, use `spec.project_default_settings.suspension` in the update_mask.", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/common/types/duration.Duration", "x-since-version": "v0.287.0" } @@ -8301,6 +8644,7 @@ }, "serving.AutoCaptureConfigInput": { "type": "object", + "description": "Deprecated: legacy inference table configuration. Please use AI Gateway inference tables instead.\nSee https://docs.databricks.com/aws/en/ai-gateway/inference-tables.", "properties": { "catalog_name": { "description": "The name of the catalog in Unity Catalog. NOTE: On update, you cannot change the catalog name if the inference table is already enabled.", @@ -8431,9 +8775,11 @@ "type": "object", "properties": { "auto_capture_config": { - "description": "Configuration for Inference Tables which automatically logs requests and responses to Unity Catalog.\nNote: this field is deprecated for creating new provisioned throughput endpoints,\nor updating existing provisioned throughput endpoints that never have inference table configured;\nin these cases please use AI Gateway to manage inference tables.", + "description": "Configuration for legacy Inference Tables which automatically log requests and responses to Unity\nCatalog.\nDeprecated: please use AI Gateway inference tables instead. See\nhttps://docs.databricks.com/aws/en/ai-gateway/inference-tables.", "$ref": "#/$defs/github.com/databricks/databricks-sdk-go/service/serving.AutoCaptureConfigInput", - "x-since-version": "v0.229.0" + "deprecationMessage": "This field is deprecated", + "x-since-version": "v0.229.0", + "deprecated": true }, "served_entities": { "description": "The list of served entities under the serving endpoint config.", @@ -9151,7 +9497,8 @@ "enum": [ "TYPE_UNSPECIFIED", "CLASSIC", - "PRO" + "PRO", + "REYDEN" ] }, "sql.CronSchedule": { @@ -9235,7 +9582,8 @@ "description": "Type of endpoint.", "enum": [ "STORAGE_OPTIMIZED", - "STANDARD" + "STANDARD", + "STANDARD_ON_ORION" ] }, "workspace.AzureKeyVaultSecretScopeMetadata": { diff --git a/cmd/account/access-control/access-control.go b/cmd/account/access-control/access-control.go index 2dab1d83a99..3f601a89330 100755 --- a/cmd/account/access-control/access-control.go +++ b/cmd/account/access-control/access-control.go @@ -20,14 +20,20 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "access-control", - Short: `These APIs manage access rules on resources in an account.`, - Long: `These APIs manage access rules on resources in an account. Currently, only + Short: `*Public Preview* These APIs manage access rules on resources in an account.`, + Long: `This command is in Public Preview and may change without notice. + +These APIs manage access rules on resources in an account. Currently, only grant rules are supported. A grant rule specifies a role assigned to a set of principals. A list of rules attached to a resource is called a rule set.`, GroupID: "iam", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGetAssignableRolesForResource()) cmd.AddCommand(newGetRuleSet()) @@ -56,8 +62,10 @@ func newGetAssignableRolesForResource() *cobra.Command { var getAssignableRolesForResourceReq iam.GetAssignableRolesForResourceRequest cmd.Use = "get-assignable-roles-for-resource RESOURCE" - cmd.Short = `Get assignable roles for a resource.` - cmd.Long = `Get assignable roles for a resource. + cmd.Short = `*Public Preview* Get assignable roles for a resource.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get assignable roles for a resource. Gets all the roles that can be granted on an account level resource. A role is grantable if the rule set on the resource can contain an access rule of the @@ -75,6 +83,8 @@ func newGetAssignableRolesForResource() *cobra.Command { name for the tag policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -123,8 +133,10 @@ func newGetRuleSet() *cobra.Command { var getRuleSetReq iam.GetRuleSetRequest cmd.Use = "get-rule-set NAME ETAG" - cmd.Short = `Get a rule set.` - cmd.Long = `Get a rule set. + cmd.Short = `*Public Preview* Get a rule set.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get a rule set. Get a rule set by its name. A rule set is always attached to a resource and contains a list of access rules on the said resource. Currently only a default @@ -157,6 +169,8 @@ func newGetRuleSet() *cobra.Command { etag encoded a specific version of the rule set to get or to be updated.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -209,14 +223,18 @@ func newUpdateRuleSet() *cobra.Command { cmd.Flags().Var(&updateRuleSetJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update-rule-set" - cmd.Short = `Update a rule set.` - cmd.Long = `Update a rule set. + cmd.Short = `*Public Preview* Update a rule set.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update a rule set. Replace the rules of a rule set. First, use get to read the current version of the rule set before modifying it. This pattern helps prevent conflicts between concurrent updates.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/billable-usage/billable-usage.go b/cmd/account/billable-usage/billable-usage.go index d89b87e4440..6c0fa785fed 100755 --- a/cmd/account/billable-usage/billable-usage.go +++ b/cmd/account/billable-usage/billable-usage.go @@ -24,6 +24,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newDownload()) @@ -77,6 +81,8 @@ func newDownload() *cobra.Command { field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/account/budget-policy/budget-policy.go b/cmd/account/budget-policy/budget-policy.go index 419168fd9ee..917f23548dc 100755 --- a/cmd/account/budget-policy/budget-policy.go +++ b/cmd/account/budget-policy/budget-policy.go @@ -19,13 +19,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "budget-policy", - Short: `A service serves REST API about Budget policies.`, - Long: `A service serves REST API about Budget policies`, + Use: "budget-policy", + Short: `*Public Preview* A service serves REST API about Budget policies.`, + Long: `This command is in Public Preview and may change without notice. + +A service serves REST API about Budget policies`, GroupID: "billing", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -62,12 +68,16 @@ func newCreate() *cobra.Command { cmd.Flags().StringVar(&createReq.RequestId, "request-id", createReq.RequestId, `A unique identifier for this request.`) cmd.Use = "create" - cmd.Short = `Create a budget policy.` - cmd.Long = `Create a budget policy. + cmd.Short = `*Public Preview* Create a budget policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a budget policy. Creates a new policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -127,8 +137,10 @@ func newDelete() *cobra.Command { var deleteReq billing.DeleteBudgetPolicyRequest cmd.Use = "delete POLICY_ID" - cmd.Short = `Delete a budget policy.` - cmd.Long = `Delete a budget policy. + cmd.Short = `*Public Preview* Delete a budget policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete a budget policy. Deletes a policy @@ -136,6 +148,8 @@ func newDelete() *cobra.Command { POLICY_ID: The Id of the policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -183,8 +197,10 @@ func newGet() *cobra.Command { var getReq billing.GetBudgetPolicyRequest cmd.Use = "get POLICY_ID" - cmd.Short = `Get a budget policy.` - cmd.Long = `Get a budget policy. + cmd.Short = `*Public Preview* Get a budget policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get a budget policy. Retrieves a policy by it's ID. @@ -192,6 +208,8 @@ func newGet() *cobra.Command { POLICY_ID: The Id of the policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -255,13 +273,17 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list" - cmd.Short = `List policies.` - cmd.Long = `List policies. + cmd.Short = `*Public Preview* List policies.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List policies. Lists all policies. Policies are returned in the alphabetically ascending order of their names.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -320,8 +342,10 @@ func newUpdate() *cobra.Command { cmd.Flags().StringVar(&updateReq.Policy.PolicyName, "policy-name", updateReq.Policy.PolicyName, `The name of the policy.`) cmd.Use = "update POLICY_ID" - cmd.Short = `Update a budget policy.` - cmd.Long = `Update a budget policy. + cmd.Short = `*Public Preview* Update a budget policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update a budget policy. Updates a policy @@ -330,6 +354,8 @@ func newUpdate() *cobra.Command { unique.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/budgets/budgets.go b/cmd/account/budgets/budgets.go index b6dfed84376..94557e3f3b2 100755 --- a/cmd/account/budgets/budgets.go +++ b/cmd/account/budgets/budgets.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "budgets", - Short: `These APIs manage budget configurations for this account.`, - Long: `These APIs manage budget configurations for this account. Budgets enable you + Short: `*Public Preview* These APIs manage budget configurations for this account.`, + Long: `This command is in Public Preview and may change without notice. + +These APIs manage budget configurations for this account. Budgets enable you to monitor usage across your account. You can set up budgets to either track account-wide spending, or apply filters to track the spending of specific teams, projects, or workspaces.`, @@ -29,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -62,13 +68,17 @@ func newCreate() *cobra.Command { cmd.Flags().Var(&createJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "create" - cmd.Short = `Create new budget.` - cmd.Long = `Create new budget. + cmd.Short = `*Public Preview* Create new budget.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create new budget. Create a new budget configuration for an account. For full details, see https://docs.databricks.com/en/admin/account-settings/budgets.html.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -125,8 +135,10 @@ func newDelete() *cobra.Command { var deleteReq billing.DeleteBudgetConfigurationRequest cmd.Use = "delete BUDGET_ID" - cmd.Short = `Delete budget.` - cmd.Long = `Delete budget. + cmd.Short = `*Public Preview* Delete budget.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete budget. Deletes a budget configuration for an account. Both account and budget configuration are specified by ID. This cannot be undone. @@ -135,6 +147,8 @@ func newDelete() *cobra.Command { BUDGET_ID: The Databricks budget configuration ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -182,8 +196,10 @@ func newGet() *cobra.Command { var getReq billing.GetBudgetConfigurationRequest cmd.Use = "get BUDGET_ID" - cmd.Short = `Get budget.` - cmd.Long = `Get budget. + cmd.Short = `*Public Preview* Get budget.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get budget. Gets a budget configuration for an account. Both account and budget configuration are specified by ID. @@ -192,6 +208,8 @@ func newGet() *cobra.Command { BUDGET_ID: The budget configuration ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -251,12 +269,16 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list" - cmd.Short = `Get all budgets.` - cmd.Long = `Get all budgets. + cmd.Short = `*Public Preview* Get all budgets.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get all budgets. Gets all budgets associated with this account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -309,8 +331,10 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update BUDGET_ID" - cmd.Short = `Modify budget.` - cmd.Long = `Modify budget. + cmd.Short = `*Public Preview* Modify budget.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Modify budget. Updates a budget configuration for an account. Both account and budget configuration are specified by ID. @@ -319,6 +343,8 @@ func newUpdate() *cobra.Command { BUDGET_ID: The Databricks budget configuration ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/cmd.go b/cmd/account/cmd.go index 22f8ba8c407..41213f5cc8b 100644 --- a/cmd/account/cmd.go +++ b/cmd/account/cmd.go @@ -11,6 +11,7 @@ import ( budgets "github.com/databricks/cli/cmd/account/budgets" credentials "github.com/databricks/cli/cmd/account/credentials" custom_app_integration "github.com/databricks/cli/cmd/account/custom-app-integration" + disaster_recovery "github.com/databricks/cli/cmd/account/disaster-recovery" encryption_keys "github.com/databricks/cli/cmd/account/encryption-keys" endpoints "github.com/databricks/cli/cmd/account/endpoints" account_federation_policy "github.com/databricks/cli/cmd/account/federation-policy" @@ -57,6 +58,7 @@ func New() *cobra.Command { cmd.AddCommand(budgets.New()) cmd.AddCommand(credentials.New()) cmd.AddCommand(custom_app_integration.New()) + cmd.AddCommand(disaster_recovery.New()) cmd.AddCommand(encryption_keys.New()) cmd.AddCommand(endpoints.New()) cmd.AddCommand(account_federation_policy.New()) diff --git a/cmd/account/credentials/credentials.go b/cmd/account/credentials/credentials.go index a940bf547d7..e4461fac52e 100755 --- a/cmd/account/credentials/credentials.go +++ b/cmd/account/credentials/credentials.go @@ -30,6 +30,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -81,6 +85,8 @@ func newCreate() *cobra.Command { [Create a new workspace using the Account API]: http://docs.databricks.com/administration-guide/account-api/new-workspace.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -148,6 +154,8 @@ func newDelete() *cobra.Command { CREDENTIALS_ID: Databricks Account API credential configuration ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -206,6 +214,8 @@ func newGet() *cobra.Command { CREDENTIALS_ID: Credential configuration ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -258,6 +268,8 @@ func newList() *cobra.Command { ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/csp-enablement-account/csp-enablement-account.go b/cmd/account/csp-enablement-account/csp-enablement-account.go index f4d5388981f..07d9981a23d 100755 --- a/cmd/account/csp-enablement-account/csp-enablement-account.go +++ b/cmd/account/csp-enablement-account/csp-enablement-account.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "csp-enablement-account", - Short: `The compliance security profile settings at the account level control whether to enable it for new workspaces.`, - Long: `The compliance security profile settings at the account level control whether + Short: `*Public Preview* The compliance security profile settings at the account level control whether to enable it for new workspaces.`, + Long: `This command is in Public Preview and may change without notice. + +The compliance security profile settings at the account level control whether to enable it for new workspaces. By default, this account-level setting is disabled for new workspaces. After workspace creation, account admins can enable the compliance security profile individually for each workspace. @@ -31,6 +33,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newUpdate()) @@ -60,12 +66,16 @@ func newGet() *cobra.Command { cmd.Flags().StringVar(&getReq.Etag, "etag", getReq.Etag, `etag used for versioning.`) cmd.Use = "get" - cmd.Short = `Get the compliance security profile setting for new workspaces.` - cmd.Long = `Get the compliance security profile setting for new workspaces. + cmd.Short = `*Public Preview* Get the compliance security profile setting for new workspaces.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the compliance security profile setting for new workspaces. Gets the compliance security profile setting for new workspaces.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -115,13 +125,17 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update" - cmd.Short = `Update the compliance security profile setting for new workspaces.` - cmd.Long = `Update the compliance security profile setting for new workspaces. + cmd.Short = `*Public Preview* Update the compliance security profile setting for new workspaces.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the compliance security profile setting for new workspaces. Updates the value of the compliance security profile setting for new workspaces.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/custom-app-integration/custom-app-integration.go b/cmd/account/custom-app-integration/custom-app-integration.go index 7e1f79bcef8..f0c2ffd9539 100755 --- a/cmd/account/custom-app-integration/custom-app-integration.go +++ b/cmd/account/custom-app-integration/custom-app-integration.go @@ -28,6 +28,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -77,6 +81,8 @@ func newCreate() *cobra.Command { :method:CustomAppIntegration/get.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -143,6 +149,8 @@ func newDelete() *cobra.Command { OAuth app integration via :method:CustomAppIntegration/get.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -199,6 +207,8 @@ func newGet() *cobra.Command { INTEGRATION_ID: The OAuth app integration ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -268,6 +278,8 @@ func newList() *cobra.Command { account` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -332,6 +344,8 @@ func newUpdate() *cobra.Command { OAuth app integration via :method:CustomAppIntegration/get.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/disable-legacy-features/disable-legacy-features.go b/cmd/account/disable-legacy-features/disable-legacy-features.go index 32d554869d2..8289e28f92e 100755 --- a/cmd/account/disable-legacy-features/disable-legacy-features.go +++ b/cmd/account/disable-legacy-features/disable-legacy-features.go @@ -29,6 +29,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -65,6 +69,8 @@ func newDelete() *cobra.Command { Deletes the disable legacy features setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -119,6 +125,8 @@ func newGet() *cobra.Command { Gets the value of the disable legacy features setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -174,6 +182,8 @@ func newUpdate() *cobra.Command { Updates the value of the disable legacy features setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/disaster-recovery/disaster-recovery.go b/cmd/account/disaster-recovery/disaster-recovery.go new file mode 100755 index 00000000000..9e61bfe3078 --- /dev/null +++ b/cmd/account/disaster-recovery/disaster-recovery.go @@ -0,0 +1,865 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package disaster_recovery + +import ( + "fmt" + "strings" + + "github.com/databricks/cli/cmd/root" + "github.com/databricks/cli/libs/cmdctx" + "github.com/databricks/cli/libs/cmdio" + "github.com/databricks/cli/libs/flags" + "github.com/databricks/databricks-sdk-go/common/types/fieldmask" + "github.com/databricks/databricks-sdk-go/service/disasterrecovery" + "github.com/spf13/cobra" +) + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var cmdOverrides []func(*cobra.Command) + +func New() *cobra.Command { + cmd := &cobra.Command{ + Use: "disaster-recovery", + Short: `Manage disaster recovery configurations and execute failover operations.`, + Long: `Manage disaster recovery configurations and execute failover operations.`, + GroupID: "disasterrecovery", + + // This service is being previewed; hide from help output. + Hidden: true, + RunE: root.ReportUnknownSubcommand, + } + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + // Add methods + cmd.AddCommand(newCreateFailoverGroup()) + cmd.AddCommand(newCreateStableUrl()) + cmd.AddCommand(newDeleteFailoverGroup()) + cmd.AddCommand(newDeleteStableUrl()) + cmd.AddCommand(newFailoverFailoverGroup()) + cmd.AddCommand(newGetFailoverGroup()) + cmd.AddCommand(newGetStableUrl()) + cmd.AddCommand(newListFailoverGroups()) + cmd.AddCommand(newListStableUrls()) + cmd.AddCommand(newUpdateFailoverGroup()) + + // Apply optional overrides to this command. + for _, fn := range cmdOverrides { + fn(cmd) + } + + return cmd +} + +// start create-failover-group command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var createFailoverGroupOverrides []func( + *cobra.Command, + *disasterrecovery.CreateFailoverGroupRequest, +) + +func newCreateFailoverGroup() *cobra.Command { + cmd := &cobra.Command{} + + var createFailoverGroupReq disasterrecovery.CreateFailoverGroupRequest + createFailoverGroupReq.FailoverGroup = disasterrecovery.FailoverGroup{} + var createFailoverGroupJson flags.JsonFlag + + cmd.Flags().Var(&createFailoverGroupJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + cmd.Flags().BoolVar(&createFailoverGroupReq.ValidateOnly, "validate-only", createFailoverGroupReq.ValidateOnly, `When true, validates the request without creating the failover group.`) + cmd.Flags().StringVar(&createFailoverGroupReq.FailoverGroup.Etag, "etag", createFailoverGroupReq.FailoverGroup.Etag, `Opaque version string for optimistic locking.`) + cmd.Flags().StringVar(&createFailoverGroupReq.FailoverGroup.Name, "name", createFailoverGroupReq.FailoverGroup.Name, `Fully qualified resource name in the format accounts/{account_id}/failover-groups/{failover_group_id}.`) + // TODO: complex arg: unity_catalog_assets + + cmd.Use = "create-failover-group PARENT FAILOVER_GROUP_ID REGIONS WORKSPACE_SETS INITIAL_PRIMARY_REGION" + cmd.Short = `Create a Failover Group.` + cmd.Long = `Create a Failover Group. + + Create a new failover group. + + Arguments: + PARENT: The parent resource. Format: accounts/{account_id}. + FAILOVER_GROUP_ID: Client-provided identifier for the failover group. Used to construct the + resource name as {parent}/failover-groups/{failover_group_id}. + REGIONS: List of all regions participating in this failover group. + WORKSPACE_SETS: Workspace sets, each containing workspaces that replicate to each other. + INITIAL_PRIMARY_REGION: Initial primary region. Used only in Create requests to set the starting + primary region. Not returned in responses.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(2)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, provide only PARENT, FAILOVER_GROUP_ID as positional arguments. Provide 'regions', 'workspace_sets', 'initial_primary_region' in your JSON input") + } + return nil + } + check := root.ExactArgs(5) + return check(cmd, args) + } + + cmd.PreRunE = root.MustAccountClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + a := cmdctx.AccountClient(ctx) + + if cmd.Flags().Changed("json") { + diags := createFailoverGroupJson.Unmarshal(&createFailoverGroupReq.FailoverGroup) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + createFailoverGroupReq.Parent = args[0] + createFailoverGroupReq.FailoverGroupId = args[1] + if !cmd.Flags().Changed("json") { + _, err = fmt.Sscan(args[2], &createFailoverGroupReq.FailoverGroup.Regions) + if err != nil { + return fmt.Errorf("invalid REGIONS: %s", args[2]) + } + + } + if !cmd.Flags().Changed("json") { + _, err = fmt.Sscan(args[3], &createFailoverGroupReq.FailoverGroup.WorkspaceSets) + if err != nil { + return fmt.Errorf("invalid WORKSPACE_SETS: %s", args[3]) + } + + } + if !cmd.Flags().Changed("json") { + createFailoverGroupReq.FailoverGroup.InitialPrimaryRegion = args[4] + } + + response, err := a.DisasterRecovery.CreateFailoverGroup(ctx, createFailoverGroupReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range createFailoverGroupOverrides { + fn(cmd, &createFailoverGroupReq) + } + + return cmd +} + +// start create-stable-url command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var createStableUrlOverrides []func( + *cobra.Command, + *disasterrecovery.CreateStableUrlRequest, +) + +func newCreateStableUrl() *cobra.Command { + cmd := &cobra.Command{} + + var createStableUrlReq disasterrecovery.CreateStableUrlRequest + createStableUrlReq.StableUrl = disasterrecovery.StableUrl{} + var createStableUrlJson flags.JsonFlag + + cmd.Flags().Var(&createStableUrlJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + cmd.Flags().BoolVar(&createStableUrlReq.ValidateOnly, "validate-only", createStableUrlReq.ValidateOnly, `When true, validates the request without creating the stable URL.`) + cmd.Flags().StringVar(&createStableUrlReq.StableUrl.Name, "name", createStableUrlReq.StableUrl.Name, `Fully qualified resource name.`) + + cmd.Use = "create-stable-url PARENT STABLE_URL_ID INITIAL_WORKSPACE_ID" + cmd.Short = `Create a Stable URL.` + cmd.Long = `Create a Stable URL. + + Create a new stable URL. + + Arguments: + PARENT: The parent resource. Format: accounts/{account_id}. + STABLE_URL_ID: Client-provided identifier for the stable URL. Used to construct the + resource name as {parent}/stable-urls/{stable_url_id}. + INITIAL_WORKSPACE_ID: The workspace this stable URL is initially bound to. Used only in Create + requests to associate the stable URL with a workspace. Not returned in + responses. Mirrors FailoverGroup.initial_primary_region semantics.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(2)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, provide only PARENT, STABLE_URL_ID as positional arguments. Provide 'initial_workspace_id' in your JSON input") + } + return nil + } + check := root.ExactArgs(3) + return check(cmd, args) + } + + cmd.PreRunE = root.MustAccountClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + a := cmdctx.AccountClient(ctx) + + if cmd.Flags().Changed("json") { + diags := createStableUrlJson.Unmarshal(&createStableUrlReq.StableUrl) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + createStableUrlReq.Parent = args[0] + createStableUrlReq.StableUrlId = args[1] + if !cmd.Flags().Changed("json") { + createStableUrlReq.StableUrl.InitialWorkspaceId = args[2] + } + + response, err := a.DisasterRecovery.CreateStableUrl(ctx, createStableUrlReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range createStableUrlOverrides { + fn(cmd, &createStableUrlReq) + } + + return cmd +} + +// start delete-failover-group command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var deleteFailoverGroupOverrides []func( + *cobra.Command, + *disasterrecovery.DeleteFailoverGroupRequest, +) + +func newDeleteFailoverGroup() *cobra.Command { + cmd := &cobra.Command{} + + var deleteFailoverGroupReq disasterrecovery.DeleteFailoverGroupRequest + + cmd.Flags().StringVar(&deleteFailoverGroupReq.Etag, "etag", deleteFailoverGroupReq.Etag, `Opaque version string for optimistic locking.`) + + cmd.Use = "delete-failover-group NAME" + cmd.Short = `Delete a Failover Group.` + cmd.Long = `Delete a Failover Group. + + Delete a failover group. + + Arguments: + NAME: The fully qualified resource name of the failover group to delete. Format: + accounts/{account_id}/failover-groups/{failover_group_id}.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustAccountClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + a := cmdctx.AccountClient(ctx) + + deleteFailoverGroupReq.Name = args[0] + + err = a.DisasterRecovery.DeleteFailoverGroup(ctx, deleteFailoverGroupReq) + if err != nil { + return err + } + return nil + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range deleteFailoverGroupOverrides { + fn(cmd, &deleteFailoverGroupReq) + } + + return cmd +} + +// start delete-stable-url command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var deleteStableUrlOverrides []func( + *cobra.Command, + *disasterrecovery.DeleteStableUrlRequest, +) + +func newDeleteStableUrl() *cobra.Command { + cmd := &cobra.Command{} + + var deleteStableUrlReq disasterrecovery.DeleteStableUrlRequest + + cmd.Use = "delete-stable-url NAME" + cmd.Short = `Delete a Stable URL.` + cmd.Long = `Delete a Stable URL. + + Delete a stable URL. + + Arguments: + NAME: The fully qualified resource name. Format: + accounts/{account_id}/stable-urls/{stable_url_id}.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustAccountClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + a := cmdctx.AccountClient(ctx) + + deleteStableUrlReq.Name = args[0] + + err = a.DisasterRecovery.DeleteStableUrl(ctx, deleteStableUrlReq) + if err != nil { + return err + } + return nil + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range deleteStableUrlOverrides { + fn(cmd, &deleteStableUrlReq) + } + + return cmd +} + +// start failover-failover-group command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var failoverFailoverGroupOverrides []func( + *cobra.Command, + *disasterrecovery.FailoverFailoverGroupRequest, +) + +func newFailoverFailoverGroup() *cobra.Command { + cmd := &cobra.Command{} + + var failoverFailoverGroupReq disasterrecovery.FailoverFailoverGroupRequest + var failoverFailoverGroupJson flags.JsonFlag + + cmd.Flags().Var(&failoverFailoverGroupJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + cmd.Flags().StringVar(&failoverFailoverGroupReq.Etag, "etag", failoverFailoverGroupReq.Etag, `Opaque version string for optimistic locking.`) + + cmd.Use = "failover-failover-group NAME TARGET_PRIMARY_REGION FAILOVER_TYPE" + cmd.Short = `Failover a Failover Group to a new primary region.` + cmd.Long = `Failover a Failover Group to a new primary region. + + Initiate a failover to a new primary region. + + Arguments: + NAME: The fully qualified resource name of the failover group to failover. + Format: accounts/{account_id}/failover-groups/{failover_group_id}. + TARGET_PRIMARY_REGION: The target primary region. Must be one of the derived regions and + different from the current effective_primary_region. Serves as an + idempotency check. + FAILOVER_TYPE: The type of failover to perform. + Supported values: [FORCED]` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(1)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, provide only NAME as positional arguments. Provide 'target_primary_region', 'failover_type' in your JSON input") + } + return nil + } + check := root.ExactArgs(3) + return check(cmd, args) + } + + cmd.PreRunE = root.MustAccountClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + a := cmdctx.AccountClient(ctx) + + if cmd.Flags().Changed("json") { + diags := failoverFailoverGroupJson.Unmarshal(&failoverFailoverGroupReq) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + failoverFailoverGroupReq.Name = args[0] + if !cmd.Flags().Changed("json") { + failoverFailoverGroupReq.TargetPrimaryRegion = args[1] + } + if !cmd.Flags().Changed("json") { + _, err = fmt.Sscan(args[2], &failoverFailoverGroupReq.FailoverType) + if err != nil { + return fmt.Errorf("invalid FAILOVER_TYPE: %s", args[2]) + } + + } + + response, err := a.DisasterRecovery.FailoverFailoverGroup(ctx, failoverFailoverGroupReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range failoverFailoverGroupOverrides { + fn(cmd, &failoverFailoverGroupReq) + } + + return cmd +} + +// start get-failover-group command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getFailoverGroupOverrides []func( + *cobra.Command, + *disasterrecovery.GetFailoverGroupRequest, +) + +func newGetFailoverGroup() *cobra.Command { + cmd := &cobra.Command{} + + var getFailoverGroupReq disasterrecovery.GetFailoverGroupRequest + + cmd.Use = "get-failover-group NAME" + cmd.Short = `Get a Failover Group.` + cmd.Long = `Get a Failover Group. + + Get a failover group. + + Arguments: + NAME: The fully qualified resource name of the failover group. Format: + accounts/{account_id}/failover-groups/{failover_group_id}.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustAccountClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + a := cmdctx.AccountClient(ctx) + + getFailoverGroupReq.Name = args[0] + + response, err := a.DisasterRecovery.GetFailoverGroup(ctx, getFailoverGroupReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getFailoverGroupOverrides { + fn(cmd, &getFailoverGroupReq) + } + + return cmd +} + +// start get-stable-url command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getStableUrlOverrides []func( + *cobra.Command, + *disasterrecovery.GetStableUrlRequest, +) + +func newGetStableUrl() *cobra.Command { + cmd := &cobra.Command{} + + var getStableUrlReq disasterrecovery.GetStableUrlRequest + + cmd.Use = "get-stable-url NAME" + cmd.Short = `Get a Stable URL.` + cmd.Long = `Get a Stable URL. + + Get a stable URL. + + Arguments: + NAME: The fully qualified resource name. Format: + accounts/{account_id}/stable-urls/{stable_url_id}.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustAccountClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + a := cmdctx.AccountClient(ctx) + + getStableUrlReq.Name = args[0] + + response, err := a.DisasterRecovery.GetStableUrl(ctx, getStableUrlReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getStableUrlOverrides { + fn(cmd, &getStableUrlReq) + } + + return cmd +} + +// start list-failover-groups command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var listFailoverGroupsOverrides []func( + *cobra.Command, + *disasterrecovery.ListFailoverGroupsRequest, +) + +func newListFailoverGroups() *cobra.Command { + cmd := &cobra.Command{} + + var listFailoverGroupsReq disasterrecovery.ListFailoverGroupsRequest + // Registered for all paginated methods. Validated at call time in the + // method-call template. Paginated list methods never have Wait or LRO + // branches, so the method-call path is always reached. + var listFailoverGroupsLimit int + + cmd.Flags().IntVar(&listFailoverGroupsReq.PageSize, "page-size", listFailoverGroupsReq.PageSize, `Maximum number of failover groups to return per page.`) + + // Limit flag for total result capping. + cmd.Flags().IntVar(&listFailoverGroupsLimit, "limit", 0, `Maximum number of results to return.`) + + // Hidden pagination flags (internal API parameters). + cmd.Flags().StringVar(&listFailoverGroupsReq.PageToken, "page-token", listFailoverGroupsReq.PageToken, `Pagination token.`) + cmd.Flags().Lookup("page-token").Hidden = true + + cmd.Use = "list-failover-groups PARENT" + cmd.Short = `List Failover Groups.` + cmd.Long = `List Failover Groups. + + List failover groups. + + Arguments: + PARENT: The parent resource. Format: accounts/{account_id}.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustAccountClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + a := cmdctx.AccountClient(ctx) + + listFailoverGroupsReq.Parent = args[0] + + response := a.DisasterRecovery.ListFailoverGroups(ctx, listFailoverGroupsReq) + if listFailoverGroupsLimit < 0 { + return fmt.Errorf("--limit must be a non-negative integer, got %d", listFailoverGroupsLimit) + } + if listFailoverGroupsLimit > 0 { + ctx = cmdio.WithLimit(ctx, listFailoverGroupsLimit) + } + + return cmdio.RenderIterator(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range listFailoverGroupsOverrides { + fn(cmd, &listFailoverGroupsReq) + } + + return cmd +} + +// start list-stable-urls command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var listStableUrlsOverrides []func( + *cobra.Command, + *disasterrecovery.ListStableUrlsRequest, +) + +func newListStableUrls() *cobra.Command { + cmd := &cobra.Command{} + + var listStableUrlsReq disasterrecovery.ListStableUrlsRequest + // Registered for all paginated methods. Validated at call time in the + // method-call template. Paginated list methods never have Wait or LRO + // branches, so the method-call path is always reached. + var listStableUrlsLimit int + + cmd.Flags().IntVar(&listStableUrlsReq.PageSize, "page-size", listStableUrlsReq.PageSize, `Maximum number of stable URLs to return per page.`) + + // Limit flag for total result capping. + cmd.Flags().IntVar(&listStableUrlsLimit, "limit", 0, `Maximum number of results to return.`) + + // Hidden pagination flags (internal API parameters). + cmd.Flags().StringVar(&listStableUrlsReq.PageToken, "page-token", listStableUrlsReq.PageToken, `Pagination token.`) + cmd.Flags().Lookup("page-token").Hidden = true + + cmd.Use = "list-stable-urls PARENT" + cmd.Short = `List Stable URLs.` + cmd.Long = `List Stable URLs. + + List stable URLs for an account. + + Arguments: + PARENT: The parent resource. Format: accounts/{account_id}.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustAccountClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + a := cmdctx.AccountClient(ctx) + + listStableUrlsReq.Parent = args[0] + + response := a.DisasterRecovery.ListStableUrls(ctx, listStableUrlsReq) + if listStableUrlsLimit < 0 { + return fmt.Errorf("--limit must be a non-negative integer, got %d", listStableUrlsLimit) + } + if listStableUrlsLimit > 0 { + ctx = cmdio.WithLimit(ctx, listStableUrlsLimit) + } + + return cmdio.RenderIterator(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range listStableUrlsOverrides { + fn(cmd, &listStableUrlsReq) + } + + return cmd +} + +// start update-failover-group command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var updateFailoverGroupOverrides []func( + *cobra.Command, + *disasterrecovery.UpdateFailoverGroupRequest, +) + +func newUpdateFailoverGroup() *cobra.Command { + cmd := &cobra.Command{} + + var updateFailoverGroupReq disasterrecovery.UpdateFailoverGroupRequest + updateFailoverGroupReq.FailoverGroup = disasterrecovery.FailoverGroup{} + var updateFailoverGroupJson flags.JsonFlag + + cmd.Flags().Var(&updateFailoverGroupJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + cmd.Flags().StringVar(&updateFailoverGroupReq.FailoverGroup.Etag, "etag", updateFailoverGroupReq.FailoverGroup.Etag, `Opaque version string for optimistic locking.`) + cmd.Flags().StringVar(&updateFailoverGroupReq.FailoverGroup.Name, "name", updateFailoverGroupReq.FailoverGroup.Name, `Fully qualified resource name in the format accounts/{account_id}/failover-groups/{failover_group_id}.`) + // TODO: complex arg: unity_catalog_assets + + cmd.Use = "update-failover-group NAME UPDATE_MASK REGIONS WORKSPACE_SETS INITIAL_PRIMARY_REGION" + cmd.Short = `Update a Failover Group.` + cmd.Long = `Update a Failover Group. + + Update a failover group. + + Arguments: + NAME: Fully qualified resource name in the format + accounts/{account_id}/failover-groups/{failover_group_id}. + UPDATE_MASK: Comma-separated list of fields to update. + REGIONS: List of all regions participating in this failover group. + WORKSPACE_SETS: Workspace sets, each containing workspaces that replicate to each other. + INITIAL_PRIMARY_REGION: Initial primary region. Used only in Create requests to set the starting + primary region. Not returned in responses.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(2)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, provide only NAME, UPDATE_MASK as positional arguments. Provide 'regions', 'workspace_sets', 'initial_primary_region' in your JSON input") + } + return nil + } + check := root.ExactArgs(5) + return check(cmd, args) + } + + cmd.PreRunE = root.MustAccountClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + a := cmdctx.AccountClient(ctx) + + if cmd.Flags().Changed("json") { + diags := updateFailoverGroupJson.Unmarshal(&updateFailoverGroupReq.FailoverGroup) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + updateFailoverGroupReq.Name = args[0] + if args[1] != "" { + updateMaskArray := strings.Split(args[1], ",") + updateFailoverGroupReq.UpdateMask = *fieldmask.New(updateMaskArray) + } + if !cmd.Flags().Changed("json") { + _, err = fmt.Sscan(args[2], &updateFailoverGroupReq.FailoverGroup.Regions) + if err != nil { + return fmt.Errorf("invalid REGIONS: %s", args[2]) + } + + } + if !cmd.Flags().Changed("json") { + _, err = fmt.Sscan(args[3], &updateFailoverGroupReq.FailoverGroup.WorkspaceSets) + if err != nil { + return fmt.Errorf("invalid WORKSPACE_SETS: %s", args[3]) + } + + } + if !cmd.Flags().Changed("json") { + updateFailoverGroupReq.FailoverGroup.InitialPrimaryRegion = args[4] + } + + response, err := a.DisasterRecovery.UpdateFailoverGroup(ctx, updateFailoverGroupReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range updateFailoverGroupOverrides { + fn(cmd, &updateFailoverGroupReq) + } + + return cmd +} + +// end service DisasterRecovery diff --git a/cmd/account/enable-ip-access-lists/enable-ip-access-lists.go b/cmd/account/enable-ip-access-lists/enable-ip-access-lists.go index f1329c9732c..b89397ce1c2 100755 --- a/cmd/account/enable-ip-access-lists/enable-ip-access-lists.go +++ b/cmd/account/enable-ip-access-lists/enable-ip-access-lists.go @@ -29,6 +29,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -65,6 +69,8 @@ func newDelete() *cobra.Command { Reverts the value of the account IP access toggle setting to default (ON)` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -119,6 +125,8 @@ func newGet() *cobra.Command { Gets the value of the account IP access toggle setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -174,6 +182,8 @@ func newUpdate() *cobra.Command { Updates the value of the account IP access toggle setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/encryption-keys/encryption-keys.go b/cmd/account/encryption-keys/encryption-keys.go index dd0ee03b2c8..1ae7e68ea37 100755 --- a/cmd/account/encryption-keys/encryption-keys.go +++ b/cmd/account/encryption-keys/encryption-keys.go @@ -41,6 +41,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -73,6 +77,7 @@ func newCreate() *cobra.Command { cmd.Flags().Var(&createJson, "json", `either inline JSON string or @path/to/file.json with request body`) // TODO: complex arg: aws_key_info + // TODO: complex arg: azure_key_info // TODO: complex arg: gcp_key_info cmd.Use = "create" @@ -95,9 +100,21 @@ func newCreate() *cobra.Command { This operation is available only if your account is on the E2 version of the platform or on a select custom plan that allows multiple workspaces per - account.` + account. + + **GCP only**: To create a customer-managed key on GCP, you must include the + X-Databricks-GCP-SA-Access-Token HTTP header in your request. This header + must contain a Google Cloud OAuth access token with the cloud-platform + scope. The Google identity associated with the token must also have the + setIamPermissions and getIamPermissions IAM permissions on the key + resource. For details on obtaining this token, see [Authenticate with Google + ID tokens]. + + [Authenticate with Google ID tokens]: https://docs.databricks.com/gcp/en/dev-tools/auth/authentication-google-id.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -164,6 +181,8 @@ func newDelete() *cobra.Command { CUSTOMER_MANAGED_KEY_ID: Databricks encryption key configuration ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -235,6 +254,8 @@ func newGet() *cobra.Command { CUSTOMER_MANAGED_KEY_ID: Databricks encryption key configuration ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -286,6 +307,8 @@ func newList() *cobra.Command { Lists Databricks customer-managed key configurations for an account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/endpoints/endpoints.go b/cmd/account/endpoints/endpoints.go index 3c8a78bbd1d..0da1a198d02 100755 --- a/cmd/account/endpoints/endpoints.go +++ b/cmd/account/endpoints/endpoints.go @@ -19,13 +19,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "endpoints", - Short: `These APIs manage endpoint configurations for this account.`, - Long: `These APIs manage endpoint configurations for this account.`, + Use: "endpoints", + Short: `*Beta* These APIs manage endpoint configurations for this account.`, + Long: `This command is in Beta and may change without notice. + +These APIs manage endpoint configurations for this account.`, GroupID: "provisioning", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + // Add methods cmd.AddCommand(newCreateEndpoint()) cmd.AddCommand(newDeleteEndpoint()) @@ -61,8 +67,10 @@ func newCreateEndpoint() *cobra.Command { // TODO: complex arg: azure_private_endpoint_info cmd.Use = "create-endpoint PARENT DISPLAY_NAME REGION" - cmd.Short = `Create a network endpoint.` - cmd.Long = `Create a network endpoint. + cmd.Short = `*Beta* Create a network endpoint.` + cmd.Long = `This command is in Beta and may change without notice. + +Create a network endpoint. Creates a new network connectivity endpoint that enables private connectivity between your network resources and Databricks services. @@ -83,6 +91,8 @@ func newCreateEndpoint() *cobra.Command { REGION: The cloud provider region where this endpoint is located.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -156,14 +166,18 @@ func newDeleteEndpoint() *cobra.Command { var deleteEndpointReq networking.DeleteEndpointRequest cmd.Use = "delete-endpoint NAME" - cmd.Short = `Delete a network endpoint.` - cmd.Long = `Delete a network endpoint. + cmd.Short = `*Beta* Delete a network endpoint.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete a network endpoint. Deletes a network endpoint. This will remove the endpoint configuration from Databricks. Depending on the endpoint type and use case, you may also need to delete corresponding network resources in your cloud provider account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -211,12 +225,16 @@ func newGetEndpoint() *cobra.Command { var getEndpointReq networking.GetEndpointRequest cmd.Use = "get-endpoint NAME" - cmd.Short = `Get a network endpoint.` - cmd.Long = `Get a network endpoint. + cmd.Short = `*Beta* Get a network endpoint.` + cmd.Long = `This command is in Beta and may change without notice. + +Get a network endpoint. Gets details of a specific network endpoint.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -278,8 +296,10 @@ func newListEndpoints() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-endpoints PARENT" - cmd.Short = `List network endpoints.` - cmd.Long = `List network endpoints. + cmd.Short = `*Beta* List network endpoints.` + cmd.Long = `This command is in Beta and may change without notice. + +List network endpoints. Lists all network connectivity endpoints for the account. @@ -288,6 +308,8 @@ func newListEndpoints() *cobra.Command { accounts/{account_id}.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/esm-enablement-account/esm-enablement-account.go b/cmd/account/esm-enablement-account/esm-enablement-account.go index d7468cf8f68..7f0286dd2b6 100755 --- a/cmd/account/esm-enablement-account/esm-enablement-account.go +++ b/cmd/account/esm-enablement-account/esm-enablement-account.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "esm-enablement-account", - Short: `The enhanced security monitoring setting at the account level controls whether to enable the feature on new workspaces.`, - Long: `The enhanced security monitoring setting at the account level controls whether + Short: `*Public Preview* The enhanced security monitoring setting at the account level controls whether to enable the feature on new workspaces.`, + Long: `This command is in Public Preview and may change without notice. + +The enhanced security monitoring setting at the account level controls whether to enable the feature on new workspaces. By default, this account-level setting is disabled for new workspaces. After workspace creation, account admins can enable enhanced security monitoring individually for each @@ -29,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newUpdate()) @@ -58,12 +64,16 @@ func newGet() *cobra.Command { cmd.Flags().StringVar(&getReq.Etag, "etag", getReq.Etag, `etag used for versioning.`) cmd.Use = "get" - cmd.Short = `Get the enhanced security monitoring setting for new workspaces.` - cmd.Long = `Get the enhanced security monitoring setting for new workspaces. + cmd.Short = `*Public Preview* Get the enhanced security monitoring setting for new workspaces.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the enhanced security monitoring setting for new workspaces. Gets the enhanced security monitoring setting for new workspaces.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -113,13 +123,17 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update" - cmd.Short = `Update the enhanced security monitoring setting for new workspaces.` - cmd.Long = `Update the enhanced security monitoring setting for new workspaces. + cmd.Short = `*Public Preview* Update the enhanced security monitoring setting for new workspaces.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the enhanced security monitoring setting for new workspaces. Updates the value of the enhanced security monitoring setting for new workspaces.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/federation-policy/federation-policy.go b/cmd/account/federation-policy/federation-policy.go index 64610ef39df..f9ccb47c442 100755 --- a/cmd/account/federation-policy/federation-policy.go +++ b/cmd/account/federation-policy/federation-policy.go @@ -74,6 +74,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -116,6 +120,8 @@ func newCreate() *cobra.Command { cmd.Long = `Create account federation policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -182,6 +188,8 @@ func newDelete() *cobra.Command { POLICY_ID: The identifier for the federation policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -236,6 +244,8 @@ func newGet() *cobra.Command { POLICY_ID: The identifier for the federation policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -301,6 +311,8 @@ func newList() *cobra.Command { cmd.Long = `List account federation policies.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -365,6 +377,8 @@ func newUpdate() *cobra.Command { POLICY_ID: The identifier for the federation policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/groups-v2/groups-v2.go b/cmd/account/groups-v2/groups-v2.go index 678a9f5bb84..63c47c53ee8 100755 --- a/cmd/account/groups-v2/groups-v2.go +++ b/cmd/account/groups-v2/groups-v2.go @@ -32,6 +32,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -80,6 +84,8 @@ func newCreate() *cobra.Command { supplied group details.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -148,6 +154,8 @@ func newDelete() *cobra.Command { ID: Unique ID for a group in the Databricks account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -204,6 +212,8 @@ func newGet() *cobra.Command { ID: Unique ID for a group in the Databricks account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -281,6 +291,8 @@ func newList() *cobra.Command { receiving member data as before.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -345,6 +357,8 @@ func newPatch() *cobra.Command { ID: Unique ID in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -422,6 +436,8 @@ func newUpdate() *cobra.Command { ID: Databricks group ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/groups.go b/cmd/account/groups.go index 53dd7b8f02f..267aaa3b184 100644 --- a/cmd/account/groups.go +++ b/cmd/account/groups.go @@ -32,5 +32,9 @@ func Groups() []cobra.Group { ID: "oauth2", Title: "OAuth", }, + { + ID: "disasterrecovery", + Title: "Disaster Recovery", + }, } } diff --git a/cmd/account/iam-v2/iam-v2.go b/cmd/account/iam-v2/iam-v2.go index 028c48b47b9..bbddb8cbca4 100755 --- a/cmd/account/iam-v2/iam-v2.go +++ b/cmd/account/iam-v2/iam-v2.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "iam-v2", - Short: `These APIs are used to manage identities and the workspace access of these identities in .`, - Long: `These APIs are used to manage identities and the workspace access of these + Short: `*Beta* These APIs are used to manage identities and the workspace access of these identities in .`, + Long: `This command is in Beta and may change without notice. + +These APIs are used to manage identities and the workspace access of these identities in .`, GroupID: "iam", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + // Add methods cmd.AddCommand(newGetWorkspaceAccessDetail()) cmd.AddCommand(newResolveGroup()) @@ -58,8 +64,10 @@ func newGetWorkspaceAccessDetail() *cobra.Command { cmd.Flags().Var(&getWorkspaceAccessDetailReq.View, "view", `Controls what fields are returned. Supported values: [BASIC, FULL]`) cmd.Use = "get-workspace-access-detail WORKSPACE_ID PRINCIPAL_ID" - cmd.Short = `Get workspace access details for a principal.` - cmd.Long = `Get workspace access details for a principal. + cmd.Short = `*Beta* Get workspace access details for a principal.` + cmd.Long = `This command is in Beta and may change without notice. + +Get workspace access details for a principal. Returns the access details for a principal in a workspace. Allows for checking access details for any provisioned principal (user, service principal, or @@ -75,6 +83,8 @@ func newGetWorkspaceAccessDetail() *cobra.Command { access details are being requested.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -134,8 +144,10 @@ func newResolveGroup() *cobra.Command { cmd.Flags().Var(&resolveGroupJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "resolve-group EXTERNAL_ID" - cmd.Short = `Resolve an external group in the Databricks account.` - cmd.Long = `Resolve an external group in the Databricks account. + cmd.Short = `*Beta* Resolve an external group in the Databricks account.` + cmd.Long = `This command is in Beta and may change without notice. + +Resolve an external group in the Databricks account. Resolves a group with the given external ID from the customer's IdP. If the group does not exist, it will be created in the account. If the customer is @@ -146,6 +158,8 @@ func newResolveGroup() *cobra.Command { EXTERNAL_ID: Required. The external ID of the group in the customer's IdP.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -218,8 +232,10 @@ func newResolveServicePrincipal() *cobra.Command { cmd.Flags().Var(&resolveServicePrincipalJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "resolve-service-principal EXTERNAL_ID" - cmd.Short = `Resolve an external service principal in the Databricks account.` - cmd.Long = `Resolve an external service principal in the Databricks account. + cmd.Short = `*Beta* Resolve an external service principal in the Databricks account.` + cmd.Long = `This command is in Beta and may change without notice. + +Resolve an external service principal in the Databricks account. Resolves an SP with the given external ID from the customer's IdP. If the SP does not exist, it will be created. If the customer is not onboarded onto @@ -229,6 +245,8 @@ func newResolveServicePrincipal() *cobra.Command { EXTERNAL_ID: Required. The external ID of the service principal in the customer's IdP.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -301,8 +319,10 @@ func newResolveUser() *cobra.Command { cmd.Flags().Var(&resolveUserJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "resolve-user EXTERNAL_ID" - cmd.Short = `Resolve an external user in the Databricks account.` - cmd.Long = `Resolve an external user in the Databricks account. + cmd.Short = `*Beta* Resolve an external user in the Databricks account.` + cmd.Long = `This command is in Beta and may change without notice. + +Resolve an external user in the Databricks account. Resolves a user with the given external ID from the customer's IdP. If the user does not exist, it will be created. If the customer is not onboarded onto @@ -312,6 +332,8 @@ func newResolveUser() *cobra.Command { EXTERNAL_ID: Required. The external ID of the user in the customer's IdP.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/account/ip-access-lists/ip-access-lists.go b/cmd/account/ip-access-lists/ip-access-lists.go index 187cce71305..f7bc59185a3 100755 --- a/cmd/account/ip-access-lists/ip-access-lists.go +++ b/cmd/account/ip-access-lists/ip-access-lists.go @@ -47,6 +47,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -107,6 +111,8 @@ func newCreate() *cobra.Command { Supported values: [ALLOW, BLOCK]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -192,6 +198,8 @@ func newDelete() *cobra.Command { IP_ACCESS_LIST_ID: The ID for the corresponding IP access list` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -260,6 +268,8 @@ func newGet() *cobra.Command { IP_ACCESS_LIST_ID: The ID for the corresponding IP access list` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -332,6 +342,8 @@ func newList() *cobra.Command { Gets all IP access lists for the specified account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -402,6 +414,8 @@ func newReplace() *cobra.Command { ENABLED: Specifies whether this IP access list is enabled.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -515,6 +529,8 @@ func newUpdate() *cobra.Command { IP_ACCESS_LIST_ID: The ID for the corresponding IP access list` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/llm-proxy-partner-powered-account/llm-proxy-partner-powered-account.go b/cmd/account/llm-proxy-partner-powered-account/llm-proxy-partner-powered-account.go index fa094ed844b..28143768d41 100755 --- a/cmd/account/llm-proxy-partner-powered-account/llm-proxy-partner-powered-account.go +++ b/cmd/account/llm-proxy-partner-powered-account/llm-proxy-partner-powered-account.go @@ -28,6 +28,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newUpdate()) @@ -63,6 +67,8 @@ func newGet() *cobra.Command { Gets the enable partner powered AI features account setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -118,6 +124,8 @@ func newUpdate() *cobra.Command { Updates the enable partner powered AI features account setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/llm-proxy-partner-powered-enforce/llm-proxy-partner-powered-enforce.go b/cmd/account/llm-proxy-partner-powered-enforce/llm-proxy-partner-powered-enforce.go index 94428f62769..be082440cb8 100755 --- a/cmd/account/llm-proxy-partner-powered-enforce/llm-proxy-partner-powered-enforce.go +++ b/cmd/account/llm-proxy-partner-powered-enforce/llm-proxy-partner-powered-enforce.go @@ -29,6 +29,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newUpdate()) @@ -64,6 +68,8 @@ func newGet() *cobra.Command { Gets the enforcement status of partner powered AI features account setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -120,6 +126,8 @@ func newUpdate() *cobra.Command { setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/log-delivery/log-delivery.go b/cmd/account/log-delivery/log-delivery.go index 348df018025..ec1f2b0e191 100755 --- a/cmd/account/log-delivery/log-delivery.go +++ b/cmd/account/log-delivery/log-delivery.go @@ -91,6 +91,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newGet()) @@ -153,6 +157,8 @@ func newCreate() *cobra.Command { [Deliver and access billable usage logs]: https://docs.databricks.com/administration-guide/account-settings/billable-usage-delivery.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -219,6 +225,8 @@ func newGet() *cobra.Command { LOG_DELIVERY_CONFIGURATION_ID: The log delivery configuration id of customer` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -301,6 +309,8 @@ func newList() *cobra.Command { specified by ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -372,6 +382,8 @@ func newPatchStatus() *cobra.Command { Supported values: [DISABLED, ENABLED]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/account/metastore-assignments/metastore-assignments.go b/cmd/account/metastore-assignments/metastore-assignments.go index 124d059cea1..622b56f75dd 100755 --- a/cmd/account/metastore-assignments/metastore-assignments.go +++ b/cmd/account/metastore-assignments/metastore-assignments.go @@ -26,6 +26,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -71,6 +75,8 @@ func newCreate() *cobra.Command { METASTORE_ID: Unity Catalog metastore ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -147,6 +153,8 @@ func newDelete() *cobra.Command { METASTORE_ID: Unity Catalog metastore ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -212,6 +220,8 @@ func newGet() *cobra.Command { WORKSPACE_ID: Workspace ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -282,6 +292,8 @@ func newList() *cobra.Command { METASTORE_ID: Unity Catalog metastore ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -349,6 +361,8 @@ func newUpdate() *cobra.Command { METASTORE_ID: Unity Catalog metastore ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/account/metastores/metastores.go b/cmd/account/metastores/metastores.go index 8d58352bc3b..7967101987f 100755 --- a/cmd/account/metastores/metastores.go +++ b/cmd/account/metastores/metastores.go @@ -27,6 +27,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -68,6 +72,8 @@ func newCreate() *cobra.Command { Creates a Unity Catalog metastore.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -138,6 +144,8 @@ func newDelete() *cobra.Command { METASTORE_ID: Unity Catalog metastore ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -195,6 +203,8 @@ func newGet() *cobra.Command { METASTORE_ID: Unity Catalog metastore ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -255,6 +265,8 @@ func newList() *cobra.Command { Gets all Unity Catalog metastores associated with an account specified by ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -312,6 +324,8 @@ func newUpdate() *cobra.Command { METASTORE_ID: Unity Catalog metastore ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/network-connectivity/network-connectivity.go b/cmd/account/network-connectivity/network-connectivity.go index 3f8c32ed001..9f0807d611b 100755 --- a/cmd/account/network-connectivity/network-connectivity.go +++ b/cmd/account/network-connectivity/network-connectivity.go @@ -34,6 +34,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreateNetworkConnectivityConfiguration()) cmd.AddCommand(newCreatePrivateEndpointRule()) @@ -98,6 +102,8 @@ func newCreateNetworkConnectivityConfiguration() *cobra.Command { the same region can be attached to the network connectivity configuration.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -200,6 +206,8 @@ func newCreatePrivateEndpointRule() *cobra.Command { NETWORK_CONNECTIVITY_CONFIG_ID: Your Network Connectivity Configuration ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -269,6 +277,8 @@ func newDeleteNetworkConnectivityConfiguration() *cobra.Command { NETWORK_CONNECTIVITY_CONFIG_ID: Your Network Connectivity Configuration ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -321,7 +331,7 @@ func newDeletePrivateEndpointRule() *cobra.Command { Initiates deleting a private endpoint rule. If the connection state is PENDING or EXPIRED, the private endpoint is immediately deleted. Otherwise, the - private endpoint is deactivated and will be deleted after seven days of + private endpoint is deactivated and will be deleted after one day of deactivation. When a private endpoint is deactivated, the deactivated field is set to true and the private endpoint is not available to your serverless compute resources. @@ -331,6 +341,8 @@ func newDeletePrivateEndpointRule() *cobra.Command { PRIVATE_ENDPOINT_RULE_ID: Your private endpoint rule ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -389,6 +401,8 @@ func newGetNetworkConnectivityConfiguration() *cobra.Command { NETWORK_CONNECTIVITY_CONFIG_ID: Your Network Connectivity Configuration ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -447,6 +461,8 @@ func newGetPrivateEndpointRule() *cobra.Command { PRIVATE_ENDPOINT_RULE_ID: Your private endpoint rule ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -513,6 +529,8 @@ func newListNetworkConnectivityConfigurations() *cobra.Command { Gets an array of network connectivity configurations.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -582,6 +600,8 @@ func newListPrivateEndpointRules() *cobra.Command { NETWORK_CONNECTIVITY_CONFIG_ID: Your Network Connectvity Configuration ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -637,7 +657,7 @@ func newUpdatePrivateEndpointRule() *cobra.Command { cmd.Flags().Var(&updatePrivateEndpointRuleJson, "json", `either inline JSON string or @path/to/file.json with request body`) // TODO: array: domain_names - cmd.Flags().BoolVar(&updatePrivateEndpointRuleReq.PrivateEndpointRule.Enabled, "enabled", updatePrivateEndpointRuleReq.PrivateEndpointRule.Enabled, `Only used by private endpoints towards an AWS S3 service.`) + cmd.Flags().BoolVar(&updatePrivateEndpointRuleReq.PrivateEndpointRule.Enabled, "enabled", updatePrivateEndpointRuleReq.PrivateEndpointRule.Enabled, `Update this field to activate/deactivate this private endpoint to allow egress access from serverless compute resources.`) cmd.Flags().StringVar(&updatePrivateEndpointRuleReq.PrivateEndpointRule.ErrorMessage, "error-message", updatePrivateEndpointRuleReq.PrivateEndpointRule.ErrorMessage, ``) // TODO: complex arg: gcp_endpoint // TODO: array: resource_names @@ -661,6 +681,8 @@ func newUpdatePrivateEndpointRule() *cobra.Command { exactly match the resource field names.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) diff --git a/cmd/account/network-policies/network-policies.go b/cmd/account/network-policies/network-policies.go index 229012a888a..15cc31d5fa0 100755 --- a/cmd/account/network-policies/network-policies.go +++ b/cmd/account/network-policies/network-policies.go @@ -32,6 +32,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreateNetworkPolicyRpc()) cmd.AddCommand(newDeleteNetworkPolicyRpc()) @@ -78,6 +82,8 @@ func newCreateNetworkPolicyRpc() *cobra.Command { accessed from the Databricks environment.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -146,6 +152,8 @@ func newDeleteNetworkPolicyRpc() *cobra.Command { NETWORK_POLICY_ID: The unique identifier of the network policy to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -202,6 +210,8 @@ func newGetNetworkPolicyRpc() *cobra.Command { NETWORK_POLICY_ID: The unique identifier of the network policy to retrieve.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -267,6 +277,8 @@ func newListNetworkPoliciesRpc() *cobra.Command { Gets an array of network policies.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -335,6 +347,8 @@ func newUpdateNetworkPolicyRpc() *cobra.Command { NETWORK_POLICY_ID: The unique identifier for the network policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/networks/networks.go b/cmd/account/networks/networks.go index 4845a1aa3b2..ae7318e76b9 100755 --- a/cmd/account/networks/networks.go +++ b/cmd/account/networks/networks.go @@ -25,6 +25,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -72,6 +76,8 @@ func newCreate() *cobra.Command { pre-existing VPC and subnets.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -145,6 +151,8 @@ func newDelete() *cobra.Command { NETWORK_ID: Databricks Account API network configuration ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -203,6 +211,8 @@ func newGet() *cobra.Command { NETWORK_ID: Databricks Account API network configuration ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -254,6 +264,8 @@ func newList() *cobra.Command { Lists Databricks network configurations for an account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/o-auth-published-apps/o-auth-published-apps.go b/cmd/account/o-auth-published-apps/o-auth-published-apps.go index 2bade901da7..89b96f0fadb 100755 --- a/cmd/account/o-auth-published-apps/o-auth-published-apps.go +++ b/cmd/account/o-auth-published-apps/o-auth-published-apps.go @@ -28,6 +28,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newList()) @@ -73,6 +77,8 @@ func newList() *cobra.Command { Get all the available published OAuth apps in Databricks.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/account/personal-compute/personal-compute.go b/cmd/account/personal-compute/personal-compute.go index 1888fc237fe..69e944cef0c 100755 --- a/cmd/account/personal-compute/personal-compute.go +++ b/cmd/account/personal-compute/personal-compute.go @@ -36,6 +36,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -72,6 +76,8 @@ func newDelete() *cobra.Command { Reverts back the Personal Compute setting value to default (ON)` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -126,6 +132,8 @@ func newGet() *cobra.Command { Gets the value of the Personal Compute setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -181,6 +189,8 @@ func newUpdate() *cobra.Command { Updates the value of the Personal Compute setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/private-access/private-access.go b/cmd/account/private-access/private-access.go index 2933414a449..779cad0cff7 100755 --- a/cmd/account/private-access/private-access.go +++ b/cmd/account/private-access/private-access.go @@ -24,6 +24,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -72,6 +76,8 @@ func newCreate() *cobra.Command { private endpoints.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -138,6 +144,8 @@ func newDelete() *cobra.Command { ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -192,6 +200,8 @@ func newGet() *cobra.Command { Gets a Databricks private access settings configuration, both specified by ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -243,6 +253,8 @@ func newList() *cobra.Command { Lists Databricks private access settings for an account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -314,6 +326,8 @@ func newReplace() *cobra.Command { PRIVATE_ACCESS_SETTINGS_ID: Databricks private access settings ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/published-app-integration/published-app-integration.go b/cmd/account/published-app-integration/published-app-integration.go index 693767985a2..e51a46fee89 100755 --- a/cmd/account/published-app-integration/published-app-integration.go +++ b/cmd/account/published-app-integration/published-app-integration.go @@ -28,6 +28,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -73,6 +77,8 @@ func newCreate() *cobra.Command { :method:PublishedAppIntegration/get.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -139,6 +145,8 @@ func newDelete() *cobra.Command { published OAuth app integration via :method:PublishedAppIntegration/get.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -192,6 +200,8 @@ func newGet() *cobra.Command { Gets the Published OAuth App Integration for the given integration id.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -260,6 +270,8 @@ func newList() *cobra.Command { account` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -321,6 +333,8 @@ func newUpdate() *cobra.Command { published OAuth app integration via :method:PublishedAppIntegration/get.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/service-principal-federation-policy/service-principal-federation-policy.go b/cmd/account/service-principal-federation-policy/service-principal-federation-policy.go index 233c5e2e730..7a148865891 100755 --- a/cmd/account/service-principal-federation-policy/service-principal-federation-policy.go +++ b/cmd/account/service-principal-federation-policy/service-principal-federation-policy.go @@ -79,6 +79,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -126,6 +130,8 @@ func newCreate() *cobra.Command { SERVICE_PRINCIPAL_ID: The service principal id for the federation policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -199,6 +205,8 @@ func newDelete() *cobra.Command { POLICY_ID: The identifier for the federation policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -261,6 +269,8 @@ func newGet() *cobra.Command { POLICY_ID: The identifier for the federation policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -336,6 +346,8 @@ func newList() *cobra.Command { SERVICE_PRINCIPAL_ID: The service principal id for the federation policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -408,6 +420,8 @@ func newUpdate() *cobra.Command { POLICY_ID: The identifier for the federation policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/account/service-principal-secrets/service-principal-secrets.go b/cmd/account/service-principal-secrets/service-principal-secrets.go index cf17cb035f2..0ed1a3995f2 100755 --- a/cmd/account/service-principal-secrets/service-principal-secrets.go +++ b/cmd/account/service-principal-secrets/service-principal-secrets.go @@ -38,6 +38,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -80,6 +84,8 @@ func newCreate() *cobra.Command { SERVICE_PRINCIPAL_ID: The service principal ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -150,6 +156,8 @@ func newDelete() *cobra.Command { SECRET_ID: The secret ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -222,6 +230,8 @@ func newList() *cobra.Command { SERVICE_PRINCIPAL_ID: The service principal ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/service-principals-v2/service-principals-v2.go b/cmd/account/service-principals-v2/service-principals-v2.go index 4604dfa3256..ba6aadb6cb6 100755 --- a/cmd/account/service-principals-v2/service-principals-v2.go +++ b/cmd/account/service-principals-v2/service-principals-v2.go @@ -31,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -78,6 +82,8 @@ func newCreate() *cobra.Command { Creates a new service principal in the Databricks account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -146,6 +152,8 @@ func newDelete() *cobra.Command { ID: Unique ID for a service principal in the Databricks account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -203,6 +211,8 @@ func newGet() *cobra.Command { ID: Unique ID for a service principal in the Databricks account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -276,6 +286,8 @@ func newList() *cobra.Command { Gets the set of service principals associated with a Databricks account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -341,6 +353,8 @@ func newPatch() *cobra.Command { ID: Unique ID in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -420,6 +434,8 @@ func newUpdate() *cobra.Command { ID: Databricks service principal ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/settings-v2/settings-v2.go b/cmd/account/settings-v2/settings-v2.go index f2d464d1804..7e6a042e83a 100755 --- a/cmd/account/settings-v2/settings-v2.go +++ b/cmd/account/settings-v2/settings-v2.go @@ -19,13 +19,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "settings-v2", - Short: `APIs to manage account level settings.`, - Long: `APIs to manage account level settings`, + Use: "settings-v2", + Short: `*Public Preview* APIs to manage account level settings.`, + Long: `This command is in Public Preview and may change without notice. + +APIs to manage account level settings`, GroupID: "settings", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGetPublicAccountSetting()) cmd.AddCommand(newGetPublicAccountUserPreference()) @@ -57,14 +63,18 @@ func newGetPublicAccountSetting() *cobra.Command { var getPublicAccountSettingReq settingsv2.GetPublicAccountSettingRequest cmd.Use = "get-public-account-setting NAME" - cmd.Short = `Get an account setting.` - cmd.Long = `Get an account setting. + cmd.Short = `*Public Preview* Get an account setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get an account setting. Get a setting value at account level. See :method:settingsv2/listaccountsettingsmetadata for list of setting available via public APIs at account level.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -113,8 +123,10 @@ func newGetPublicAccountUserPreference() *cobra.Command { var getPublicAccountUserPreferenceReq settingsv2.GetPublicAccountUserPreferenceRequest cmd.Use = "get-public-account-user-preference USER_ID NAME" - cmd.Short = `Get a user preference.` - cmd.Long = `Get a user preference. + cmd.Short = `*Beta* Get a user preference.` + cmd.Long = `This command is in Beta and may change without notice. + +Get a user preference. Get a user preference for a specific user. User preferences are personal settings that allow individual customization without affecting other users. @@ -126,6 +138,8 @@ func newGetPublicAccountUserPreference() *cobra.Command { NAME: User Setting name.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -188,14 +202,18 @@ func newListAccountSettingsMetadata() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-account-settings-metadata" - cmd.Short = `List valid setting keys and their metadata.` - cmd.Long = `List valid setting keys and their metadata. + cmd.Short = `*Public Preview* List valid setting keys and their metadata.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List valid setting keys and their metadata. List valid setting keys and metadata. These settings are available to be referenced via GET :method:settingsv2/getpublicaccountsetting and PATCH :method:settingsv2/patchpublicaccountsetting APIs` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -258,8 +276,10 @@ func newListAccountUserPreferencesMetadata() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-account-user-preferences-metadata USER_ID" - cmd.Short = `List user preferences and their metadata.` - cmd.Long = `List user preferences and their metadata. + cmd.Short = `*Beta* List user preferences and their metadata.` + cmd.Long = `This command is in Beta and may change without notice. + +List user preferences and their metadata. List valid user preferences and their metadata for a specific user. User preferences are personal settings that allow individual customization without @@ -271,6 +291,8 @@ func newListAccountUserPreferencesMetadata() *cobra.Command { USER_ID: User ID of the user whose settings metadata is being retrieved.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -344,8 +366,10 @@ func newPatchPublicAccountSetting() *cobra.Command { // TODO: complex arg: string_val cmd.Use = "patch-public-account-setting NAME" - cmd.Short = `Update an account setting.` - cmd.Long = `Update an account setting. + cmd.Short = `*Public Preview* Update an account setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update an account setting. Patch a setting value at account level. See :method:settingsv2/listaccountsettingsmetadata for list of setting available @@ -356,6 +380,8 @@ func newPatchPublicAccountSetting() *cobra.Command { Note: Page refresh is required for changes to take effect in UI.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -427,8 +453,10 @@ func newPatchPublicAccountUserPreference() *cobra.Command { cmd.Flags().StringVar(&patchPublicAccountUserPreferenceReq.Setting.UserId, "user-id", patchPublicAccountUserPreferenceReq.Setting.UserId, `User ID of the user.`) cmd.Use = "patch-public-account-user-preference USER_ID NAME" - cmd.Short = `Update a user preference.` - cmd.Long = `Update a user preference. + cmd.Short = `*Beta* Update a user preference.` + cmd.Long = `This command is in Beta and may change without notice. + +Update a user preference. Update a user preference for a specific user. User preferences are personal settings that allow individual customization without affecting other users. @@ -442,6 +470,8 @@ func newPatchPublicAccountUserPreference() *cobra.Command { NAME: ` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/account/settings/settings.go b/cmd/account/settings/settings.go index 297e489de84..752e80d0660 100755 --- a/cmd/account/settings/settings.go +++ b/cmd/account/settings/settings.go @@ -28,6 +28,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add subservices cmd.AddCommand(csp_enablement_account.New()) cmd.AddCommand(disable_legacy_features.New()) diff --git a/cmd/account/storage-credentials/storage-credentials.go b/cmd/account/storage-credentials/storage-credentials.go index 2eaee847d60..ba3f3ded1b6 100755 --- a/cmd/account/storage-credentials/storage-credentials.go +++ b/cmd/account/storage-credentials/storage-credentials.go @@ -26,6 +26,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -76,6 +80,8 @@ func newCreate() *cobra.Command { METASTORE_ID: Unity Catalog metastore ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -149,6 +155,8 @@ func newDelete() *cobra.Command { STORAGE_CREDENTIAL_NAME: Name of the storage credential.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -210,6 +218,8 @@ func newGet() *cobra.Command { STORAGE_CREDENTIAL_NAME: Required. Name of the storage credential.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -278,6 +288,8 @@ func newList() *cobra.Command { METASTORE_ID: Unity Catalog metastore ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -347,6 +359,8 @@ func newUpdate() *cobra.Command { STORAGE_CREDENTIAL_NAME: Name of the storage credential.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/account/storage/storage.go b/cmd/account/storage/storage.go index c852a05084f..94753f450f5 100755 --- a/cmd/account/storage/storage.go +++ b/cmd/account/storage/storage.go @@ -31,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -71,6 +75,8 @@ func newCreate() *cobra.Command { Creates a Databricks storage configuration for an account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -134,6 +140,8 @@ func newDelete() *cobra.Command { configuration that is associated with any workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -188,6 +196,8 @@ func newGet() *cobra.Command { Gets a Databricks storage configuration for an account, both specified by ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -239,6 +249,8 @@ func newList() *cobra.Command { Lists Databricks storage configurations for an account, specified by ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/usage-dashboards/usage-dashboards.go b/cmd/account/usage-dashboards/usage-dashboards.go index 7e08d033845..cb19cbce56a 100755 --- a/cmd/account/usage-dashboards/usage-dashboards.go +++ b/cmd/account/usage-dashboards/usage-dashboards.go @@ -18,14 +18,20 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "usage-dashboards", - Short: `These APIs manage usage dashboards for this account.`, - Long: `These APIs manage usage dashboards for this account. Usage dashboards enable + Short: `*Public Preview* These APIs manage usage dashboards for this account.`, + Long: `This command is in Public Preview and may change without notice. + +These APIs manage usage dashboards for this account. Usage dashboards enable you to gain insights into your usage with pre-built dashboards: visualize breakdowns, analyze tag attributions, and identify cost drivers.`, GroupID: "billing", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newGet()) @@ -60,13 +66,17 @@ func newCreate() *cobra.Command { cmd.Flags().Int64Var(&createReq.WorkspaceId, "workspace-id", createReq.WorkspaceId, `The workspace ID of the workspace in which the usage dashboard is created.`) cmd.Use = "create" - cmd.Short = `Create new usage dashboard.` - cmd.Long = `Create new usage dashboard. + cmd.Short = `*Public Preview* Create new usage dashboard.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create new usage dashboard. Create a usage dashboard specified by workspaceId, accountId, and dashboard type.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -129,12 +139,16 @@ func newGet() *cobra.Command { cmd.Flags().Int64Var(&getReq.WorkspaceId, "workspace-id", getReq.WorkspaceId, `The workspace ID of the workspace in which the usage dashboard is created.`) cmd.Use = "get" - cmd.Short = `Get usage dashboard.` - cmd.Long = `Get usage dashboard. + cmd.Short = `*Public Preview* Get usage dashboard.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get usage dashboard. Get a usage dashboard specified by workspaceId, accountId, and dashboard type.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/account/users-v2/users-v2.go b/cmd/account/users-v2/users-v2.go index 3a401ce16cd..baaec49dfc6 100755 --- a/cmd/account/users-v2/users-v2.go +++ b/cmd/account/users-v2/users-v2.go @@ -36,6 +36,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -86,6 +90,8 @@ func newCreate() *cobra.Command { to the Databricks account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -155,6 +161,8 @@ func newDelete() *cobra.Command { ID: Unique ID for a user in the Databricks account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -219,6 +227,8 @@ func newGet() *cobra.Command { ID: Unique ID for a user in the Databricks account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -292,6 +302,8 @@ func newList() *cobra.Command { Gets details for all the users associated with a Databricks account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -357,6 +369,8 @@ func newPatch() *cobra.Command { ID: Unique ID in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -436,6 +450,8 @@ func newUpdate() *cobra.Command { ID: Databricks user ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/vpc-endpoints/vpc-endpoints.go b/cmd/account/vpc-endpoints/vpc-endpoints.go index ee2bf1aa6a6..d05ae2fc063 100755 --- a/cmd/account/vpc-endpoints/vpc-endpoints.go +++ b/cmd/account/vpc-endpoints/vpc-endpoints.go @@ -24,6 +24,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -79,6 +83,8 @@ func newCreate() *cobra.Command { [endpoint service]: https://docs.aws.amazon.com/vpc/latest/privatelink/privatelink-share-your-services.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -145,6 +151,8 @@ func newDelete() *cobra.Command { endpoint configuration that is associated with any workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -206,6 +214,8 @@ func newGet() *cobra.Command { VPC_ENDPOINT_ID: Databricks VPC endpoint ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -257,6 +267,8 @@ func newList() *cobra.Command { Lists Databricks VPC endpoint configurations for an account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/account/workspace-assignment/workspace-assignment.go b/cmd/account/workspace-assignment/workspace-assignment.go index 43146462329..08895b11b96 100755 --- a/cmd/account/workspace-assignment/workspace-assignment.go +++ b/cmd/account/workspace-assignment/workspace-assignment.go @@ -27,6 +27,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -67,6 +71,8 @@ func newDelete() *cobra.Command { PRINCIPAL_ID: The ID of the user, service principal, or group.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -131,6 +137,8 @@ func newGet() *cobra.Command { WORKSPACE_ID: The workspace ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -201,6 +209,8 @@ func newList() *cobra.Command { WORKSPACE_ID: The workspace ID for the account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -271,6 +281,8 @@ func newUpdate() *cobra.Command { PRINCIPAL_ID: The ID of the user, service principal, or group.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/account/workspace-network-configuration/workspace-network-configuration.go b/cmd/account/workspace-network-configuration/workspace-network-configuration.go index 4dd194c9462..58ef41e0119 100755 --- a/cmd/account/workspace-network-configuration/workspace-network-configuration.go +++ b/cmd/account/workspace-network-configuration/workspace-network-configuration.go @@ -32,6 +32,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newGetWorkspaceNetworkOptionRpc()) cmd.AddCommand(newUpdateWorkspaceNetworkOptionRpc()) @@ -70,6 +74,8 @@ func newGetWorkspaceNetworkOptionRpc() *cobra.Command { WORKSPACE_ID: The workspace ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -139,6 +145,8 @@ func newUpdateWorkspaceNetworkOptionRpc() *cobra.Command { WORKSPACE_ID: The workspace ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/account/workspaces/workspaces.go b/cmd/account/workspaces/workspaces.go index 4ee0ab08f52..1025f94e68b 100755 --- a/cmd/account/workspaces/workspaces.go +++ b/cmd/account/workspaces/workspaces.go @@ -34,6 +34,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -140,6 +144,8 @@ func newCreate() *cobra.Command { [Create a new workspace using the Account API]: http://docs.databricks.com/administration-guide/account-api/new-workspace.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -216,6 +222,8 @@ func newDelete() *cobra.Command { Deletes a Databricks workspace, both specified by ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -281,6 +289,8 @@ func newGet() *cobra.Command { [Create a new workspace using the Account API]: http://docs.databricks.com/administration-guide/account-api/new-workspace.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -335,6 +345,8 @@ func newList() *cobra.Command { Lists Databricks workspaces for an account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustAccountClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -422,6 +434,8 @@ func newUpdate() *cobra.Command { WORKSPACE_ID: A unique integer ID for the workspace` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/auth/token_test.go b/cmd/auth/token_test.go index 3dfa4e5d21a..f3b3cdd8c0c 100644 --- a/cmd/auth/token_test.go +++ b/cmd/auth/token_test.go @@ -533,25 +533,6 @@ func TestToken_loadToken(t *testing.T) { }, validateToken: validateToken, }, - { - name: "host with one matching profile and host-key-only token found via SDK fallback", - args: loadTokenArgs{ - authArguments: &auth.AuthArguments{ - Host: "https://legacy-ws.cloud.databricks.com", - }, - profileName: "", - args: []string{}, - tokenTimeout: 1 * time.Hour, - profiler: profiler, - tokenCache: tokenCache, - persistentAuthOpts: []u2m.PersistentAuthOption{ - u2m.WithTokenCache(tokenCache), - u2m.WithOAuthEndpointSupplier(&MockApiClient{}), - u2m.WithHttpClient(&http.Client{Transport: fixtures.SliceTransport{refreshSuccessTokenResponse}}), - }, - }, - validateToken: validateToken, - }, { name: "profile flag + positional non-host arg still errors", args: loadTokenArgs{ diff --git a/cmd/workspace/access-control/access-control.go b/cmd/workspace/access-control/access-control.go index b5db3d2a313..acb37919c49 100755 --- a/cmd/workspace/access-control/access-control.go +++ b/cmd/workspace/access-control/access-control.go @@ -29,6 +29,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newCheckPolicy()) @@ -64,6 +68,8 @@ func newCheckPolicy() *cobra.Command { cmd.Long = `Check access policy to a resource.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/agent-bricks/agent-bricks.go b/cmd/workspace/agent-bricks/agent-bricks.go index 0a043ce8203..2a9580646af 100755 --- a/cmd/workspace/agent-bricks/agent-bricks.go +++ b/cmd/workspace/agent-bricks/agent-bricks.go @@ -30,6 +30,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newCancelOptimize()) cmd.AddCommand(newCreateCustomLlm()) @@ -65,6 +69,8 @@ func newCancelOptimize() *cobra.Command { cmd.Long = `Cancel a Custom LLM Optimization Run.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -127,6 +133,8 @@ func newCreateCustomLlm() *cobra.Command { INSTRUCTIONS: Instructions for the custom LLM to follow` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -206,6 +214,8 @@ func newDeleteCustomLlm() *cobra.Command { ID: The id of the custom llm` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -260,6 +270,8 @@ func newGetCustomLlm() *cobra.Command { ID: The id of the custom llm` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -315,6 +327,8 @@ func newStartOptimize() *cobra.Command { ID: The Id of the tile.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -373,6 +387,8 @@ func newUpdateCustomLlm() *cobra.Command { ID: The id of the custom llm` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/aibi-dashboard-embedding-access-policy/aibi-dashboard-embedding-access-policy.go b/cmd/workspace/aibi-dashboard-embedding-access-policy/aibi-dashboard-embedding-access-policy.go index 4c063bb9c73..1d4e6741fc5 100755 --- a/cmd/workspace/aibi-dashboard-embedding-access-policy/aibi-dashboard-embedding-access-policy.go +++ b/cmd/workspace/aibi-dashboard-embedding-access-policy/aibi-dashboard-embedding-access-policy.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "aibi-dashboard-embedding-access-policy", - Short: `Controls whether AI/BI published dashboard embedding is enabled, conditionally enabled, or disabled at the workspace level.`, - Long: `Controls whether AI/BI published dashboard embedding is enabled, conditionally + Short: `*Public Preview* Controls whether AI/BI published dashboard embedding is enabled, conditionally enabled, or disabled at the workspace level.`, + Long: `This command is in Public Preview and may change without notice. + +Controls whether AI/BI published dashboard embedding is enabled, conditionally enabled, or disabled at the workspace level. By default, this setting is conditionally enabled (ALLOW_APPROVED_DOMAINS).`, RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -57,13 +63,17 @@ func newDelete() *cobra.Command { cmd.Flags().StringVar(&deleteReq.Etag, "etag", deleteReq.Etag, `etag used for versioning.`) cmd.Use = "delete" - cmd.Short = `Delete the AI/BI dashboard embedding access policy.` - cmd.Long = `Delete the AI/BI dashboard embedding access policy. + cmd.Short = `*Public Preview* Delete the AI/BI dashboard embedding access policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete the AI/BI dashboard embedding access policy. Delete the AI/BI dashboard embedding access policy, reverting back to the default.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -112,14 +122,18 @@ func newGet() *cobra.Command { cmd.Flags().StringVar(&getReq.Etag, "etag", getReq.Etag, `etag used for versioning.`) cmd.Use = "get" - cmd.Short = `Retrieve the AI/BI dashboard embedding access policy.` - cmd.Long = `Retrieve the AI/BI dashboard embedding access policy. + cmd.Short = `*Public Preview* Retrieve the AI/BI dashboard embedding access policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Retrieve the AI/BI dashboard embedding access policy. Retrieves the AI/BI dashboard embedding access policy. The default setting is ALLOW_APPROVED_DOMAINS, permitting AI/BI dashboards to be embedded on approved domains.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -169,12 +183,16 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update" - cmd.Short = `Update the AI/BI dashboard embedding access policy.` - cmd.Long = `Update the AI/BI dashboard embedding access policy. + cmd.Short = `*Public Preview* Update the AI/BI dashboard embedding access policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the AI/BI dashboard embedding access policy. Updates the AI/BI dashboard embedding access policy at the workspace level.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/aibi-dashboard-embedding-approved-domains/aibi-dashboard-embedding-approved-domains.go b/cmd/workspace/aibi-dashboard-embedding-approved-domains/aibi-dashboard-embedding-approved-domains.go index 148905979f7..8cbd6dff101 100755 --- a/cmd/workspace/aibi-dashboard-embedding-approved-domains/aibi-dashboard-embedding-approved-domains.go +++ b/cmd/workspace/aibi-dashboard-embedding-approved-domains/aibi-dashboard-embedding-approved-domains.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "aibi-dashboard-embedding-approved-domains", - Short: `Controls the list of domains approved to host the embedded AI/BI dashboards.`, - Long: `Controls the list of domains approved to host the embedded AI/BI dashboards. + Short: `*Public Preview* Controls the list of domains approved to host the embedded AI/BI dashboards.`, + Long: `This command is in Public Preview and may change without notice. + +Controls the list of domains approved to host the embedded AI/BI dashboards. The approved domains list can't be mutated when the current access policy is not set to ALLOW_APPROVED_DOMAINS.`, RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -57,13 +63,17 @@ func newDelete() *cobra.Command { cmd.Flags().StringVar(&deleteReq.Etag, "etag", deleteReq.Etag, `etag used for versioning.`) cmd.Use = "delete" - cmd.Short = `Delete AI/BI dashboard embedding approved domains.` - cmd.Long = `Delete AI/BI dashboard embedding approved domains. + cmd.Short = `*Public Preview* Delete AI/BI dashboard embedding approved domains.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete AI/BI dashboard embedding approved domains. Delete the list of domains approved to host embedded AI/BI dashboards, reverting back to the default empty list.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -112,12 +122,16 @@ func newGet() *cobra.Command { cmd.Flags().StringVar(&getReq.Etag, "etag", getReq.Etag, `etag used for versioning.`) cmd.Use = "get" - cmd.Short = `Retrieve the list of domains approved to host embedded AI/BI dashboards.` - cmd.Long = `Retrieve the list of domains approved to host embedded AI/BI dashboards. + cmd.Short = `*Public Preview* Retrieve the list of domains approved to host embedded AI/BI dashboards.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Retrieve the list of domains approved to host embedded AI/BI dashboards. Retrieves the list of domains approved to host embedded AI/BI dashboards.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -167,14 +181,18 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update" - cmd.Short = `Update the list of domains approved to host embedded AI/BI dashboards.` - cmd.Long = `Update the list of domains approved to host embedded AI/BI dashboards. + cmd.Short = `*Public Preview* Update the list of domains approved to host embedded AI/BI dashboards.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the list of domains approved to host embedded AI/BI dashboards. Updates the list of domains approved to host embedded AI/BI dashboards. This update will fail if the current workspace access policy is not ALLOW_APPROVED_DOMAINS.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/alerts-legacy/alerts-legacy.go b/cmd/workspace/alerts-legacy/alerts-legacy.go index 1f211a621d0..1863f7db6de 100755 --- a/cmd/workspace/alerts-legacy/alerts-legacy.go +++ b/cmd/workspace/alerts-legacy/alerts-legacy.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "alerts-legacy", - Short: `The alerts API can be used to perform CRUD operations on alerts.`, - Long: `The alerts API can be used to perform CRUD operations on alerts. An alert is a + Short: `*Public Preview* The alerts API can be used to perform CRUD operations on alerts.`, + Long: `This command is in Public Preview and may change without notice. + +The alerts API can be used to perform CRUD operations on alerts. An alert is a Databricks SQL object that periodically runs a query, evaluates a condition of its result, and notifies one or more users and/or notification destinations if the condition was met. Alerts can be scheduled using the sql_task type of @@ -35,6 +37,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -71,8 +77,10 @@ func newCreate() *cobra.Command { cmd.Flags().IntVar(&createReq.Rearm, "rearm", createReq.Rearm, `Number of seconds after being triggered before the alert rearms itself and can be triggered again.`) cmd.Use = "create" - cmd.Short = `Create an alert.` - cmd.Long = `Create an alert. + cmd.Short = `*Public Preview* Create an alert.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create an alert. Creates an alert. An alert is a Databricks SQL object that periodically runs a query, evaluates a condition of its result, and notifies users or notification @@ -84,6 +92,8 @@ func newCreate() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -140,8 +150,10 @@ func newDelete() *cobra.Command { var deleteReq sql.DeleteAlertsLegacyRequest cmd.Use = "delete ALERT_ID" - cmd.Short = `Delete an alert.` - cmd.Long = `Delete an alert. + cmd.Short = `*Public Preview* Delete an alert.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete an alert. Deletes an alert. Deleted alerts are no longer accessible and cannot be restored. **Note**: Unlike queries and dashboards, alerts cannot be moved to @@ -153,6 +165,8 @@ func newDelete() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -200,8 +214,10 @@ func newGet() *cobra.Command { var getReq sql.GetAlertsLegacyRequest cmd.Use = "get ALERT_ID" - cmd.Short = `Get an alert.` - cmd.Long = `Get an alert. + cmd.Short = `*Public Preview* Get an alert.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get an alert. Gets an alert. @@ -211,6 +227,8 @@ func newGet() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -256,8 +274,10 @@ func newList() *cobra.Command { cmd := &cobra.Command{} cmd.Use = "list" - cmd.Short = `Get alerts.` - cmd.Long = `Get alerts. + cmd.Short = `*Public Preview* Get alerts.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get alerts. Gets a list of alerts. @@ -267,6 +287,8 @@ func newList() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -312,8 +334,10 @@ func newUpdate() *cobra.Command { cmd.Flags().IntVar(&updateReq.Rearm, "rearm", updateReq.Rearm, `Number of seconds after being triggered before the alert rearms itself and can be triggered again.`) cmd.Use = "update ALERT_ID" - cmd.Short = `Update an alert.` - cmd.Long = `Update an alert. + cmd.Short = `*Public Preview* Update an alert.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update an alert. Updates an alert. @@ -323,6 +347,8 @@ func newUpdate() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/alerts-v2/alerts-v2.go b/cmd/workspace/alerts-v2/alerts-v2.go index 11ec795d8ba..2e929120a4b 100755 --- a/cmd/workspace/alerts-v2/alerts-v2.go +++ b/cmd/workspace/alerts-v2/alerts-v2.go @@ -19,13 +19,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "alerts-v2", - Short: `New version of SQL Alerts.`, - Long: `New version of SQL Alerts`, + Use: "alerts-v2", + Short: `*Public Preview* New version of SQL Alerts.`, + Long: `This command is in Public Preview and may change without notice. + +New version of SQL Alerts`, GroupID: "sql", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreateAlert()) cmd.AddCommand(newGetAlert()) @@ -67,8 +73,10 @@ func newCreateAlert() *cobra.Command { cmd.Flags().StringVar(&createAlertReq.Alert.RunAsUserName, "run-as-user-name", createAlertReq.Alert.RunAsUserName, `The run as username or application ID of service principal.`) cmd.Use = "create-alert DISPLAY_NAME QUERY_TEXT WAREHOUSE_ID EVALUATION SCHEDULE" - cmd.Short = `Create an alert.` - cmd.Long = `Create an alert. + cmd.Short = `*Public Preview* Create an alert.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create an alert. Create Alert @@ -80,6 +88,8 @@ func newCreateAlert() *cobra.Command { SCHEDULE: ` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -169,12 +179,16 @@ func newGetAlert() *cobra.Command { var getAlertReq sql.GetAlertV2Request cmd.Use = "get-alert ID" - cmd.Short = `Get an alert.` - cmd.Long = `Get an alert. + cmd.Short = `*Public Preview* Get an alert.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get an alert. Gets an alert.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -248,12 +262,16 @@ func newListAlerts() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-alerts" - cmd.Short = `List alerts.` - cmd.Long = `List alerts. + cmd.Short = `*Public Preview* List alerts.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List alerts. Gets a list of alerts accessible to the user, ordered by creation time.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -305,14 +323,18 @@ func newTrashAlert() *cobra.Command { cmd.Flags().BoolVar(&trashAlertReq.Purge, "purge", trashAlertReq.Purge, `Whether to permanently delete the alert.`) cmd.Use = "trash-alert ID" - cmd.Short = `Delete an alert (legacy TrashAlert).` - cmd.Long = `Delete an alert (legacy TrashAlert). + cmd.Short = `*Public Preview* Delete an alert (legacy TrashAlert).` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete an alert (legacy TrashAlert). Moves an alert to the trash. Trashed alerts immediately disappear from list views, and can no longer trigger. You can restore a trashed alert through the UI. A trashed alert is permanently deleted after 30 days.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -383,8 +405,10 @@ func newUpdateAlert() *cobra.Command { cmd.Flags().StringVar(&updateAlertReq.Alert.RunAsUserName, "run-as-user-name", updateAlertReq.Alert.RunAsUserName, `The run as username or application ID of service principal.`) cmd.Use = "update-alert ID UPDATE_MASK DISPLAY_NAME QUERY_TEXT WAREHOUSE_ID EVALUATION SCHEDULE" - cmd.Short = `Update an alert.` - cmd.Long = `Update an alert. + cmd.Short = `*Public Preview* Update an alert.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update an alert. Update alert @@ -408,6 +432,8 @@ func newUpdateAlert() *cobra.Command { SCHEDULE: ` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/alerts/alerts.go b/cmd/workspace/alerts/alerts.go index 10ef4937fb5..dd9aa1c8877 100755 --- a/cmd/workspace/alerts/alerts.go +++ b/cmd/workspace/alerts/alerts.go @@ -30,6 +30,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -72,6 +76,8 @@ func newCreate() *cobra.Command { Creates an alert.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -139,6 +145,8 @@ func newDelete() *cobra.Command { alert through the UI. A trashed alert is permanently deleted after 30 days.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -204,6 +212,8 @@ func newGet() *cobra.Command { Gets an alert.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -285,6 +295,8 @@ func newList() *cobra.Command { throttling, service degradation, or a temporary ban.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -360,6 +372,8 @@ func newUpdate() *cobra.Command { future.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/apps-settings/apps-settings.go b/cmd/workspace/apps-settings/apps-settings.go index 7966bf91108..15b80e01bd6 100755 --- a/cmd/workspace/apps-settings/apps-settings.go +++ b/cmd/workspace/apps-settings/apps-settings.go @@ -30,6 +30,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newCreateCustomTemplate()) cmd.AddCommand(newDeleteCustomTemplate()) @@ -82,6 +86,8 @@ func newCreateCustomTemplate() *cobra.Command { GIT_PROVIDER: The Git provider of the template.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -176,6 +182,8 @@ func newDeleteCustomTemplate() *cobra.Command { NAME: The name of the custom template.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -233,6 +241,8 @@ func newGetCustomTemplate() *cobra.Command { NAME: The name of the custom template.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -300,6 +310,8 @@ func newListCustomTemplates() *cobra.Command { Lists all custom templates in the workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -372,6 +384,8 @@ func newUpdateCustomTemplate() *cobra.Command { GIT_PROVIDER: The Git provider of the template.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/apps/apps.go b/cmd/workspace/apps/apps.go index b2b9c7eb222..15e6d75bc67 100755 --- a/cmd/workspace/apps/apps.go +++ b/cmd/workspace/apps/apps.go @@ -32,6 +32,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newCreateSpace()) @@ -117,6 +121,8 @@ func newCreate() *cobra.Command { characters and hyphens. It must be unique within the workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -240,6 +246,8 @@ func newCreateSpace() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -372,6 +380,8 @@ func newCreateUpdate() *cobra.Command { future.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -469,6 +479,8 @@ func newDelete() *cobra.Command { NAME: The name of the app.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -526,6 +538,8 @@ func newDeleteAppThumbnail() *cobra.Command { NAME: The name of the app.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -596,6 +610,8 @@ func newDeleteSpace() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -703,6 +719,8 @@ func newDeploy() *cobra.Command { APP_NAME: The name of the app.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -790,6 +808,8 @@ func newGet() *cobra.Command { NAME: The name of the app.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -849,6 +869,8 @@ func newGetDeployment() *cobra.Command { DEPLOYMENT_ID: The unique id of the deployment.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -907,6 +929,8 @@ func newGetPermissionLevels() *cobra.Command { APP_NAME: The app for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -965,6 +989,8 @@ func newGetPermissions() *cobra.Command { APP_NAME: The app for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1025,6 +1051,8 @@ func newGetSpace() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1085,6 +1113,8 @@ func newGetSpaceOperation() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1142,6 +1172,8 @@ func newGetUpdate() *cobra.Command { APP_NAME: The name of the app.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1210,6 +1242,8 @@ func newList() *cobra.Command { Lists all apps in the workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1281,6 +1315,8 @@ func newListDeployments() *cobra.Command { APP_NAME: The name of the app.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1354,6 +1390,8 @@ func newListSpaces() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1419,6 +1457,8 @@ func newSetPermissions() *cobra.Command { APP_NAME: The app for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1494,6 +1534,8 @@ func newStart() *cobra.Command { NAME: The name of the app.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1575,6 +1617,8 @@ func newStop() *cobra.Command { NAME: The name of the app.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1670,6 +1714,8 @@ func newUpdate() *cobra.Command { characters and hyphens. It must be unique within the workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1744,6 +1790,8 @@ func newUpdateAppThumbnail() *cobra.Command { NAME: The name of the app.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1819,6 +1867,8 @@ func newUpdatePermissions() *cobra.Command { APP_NAME: The app for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1927,6 +1977,8 @@ func newUpdateSpace() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/workspace/artifact-allowlists/artifact-allowlists.go b/cmd/workspace/artifact-allowlists/artifact-allowlists.go index 540e754e996..226c203e369 100755 --- a/cmd/workspace/artifact-allowlists/artifact-allowlists.go +++ b/cmd/workspace/artifact-allowlists/artifact-allowlists.go @@ -28,6 +28,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newUpdate()) @@ -66,6 +70,8 @@ func newGet() *cobra.Command { Supported values: [INIT_SCRIPT, LIBRARY_JAR, LIBRARY_MAVEN]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -132,6 +138,8 @@ func newUpdate() *cobra.Command { Supported values: [INIT_SCRIPT, LIBRARY_JAR, LIBRARY_MAVEN]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/automatic-cluster-update/automatic-cluster-update.go b/cmd/workspace/automatic-cluster-update/automatic-cluster-update.go index e8978c755da..feffc1595f7 100755 --- a/cmd/workspace/automatic-cluster-update/automatic-cluster-update.go +++ b/cmd/workspace/automatic-cluster-update/automatic-cluster-update.go @@ -20,12 +20,18 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "automatic-cluster-update", - Short: `Controls whether automatic cluster update is enabled for the current workspace.`, - Long: `Controls whether automatic cluster update is enabled for the current + Short: `*Public Preview* Controls whether automatic cluster update is enabled for the current workspace.`, + Long: `This command is in Public Preview and may change without notice. + +Controls whether automatic cluster update is enabled for the current workspace. By default, it is turned off.`, RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newUpdate()) @@ -55,12 +61,16 @@ func newGet() *cobra.Command { cmd.Flags().StringVar(&getReq.Etag, "etag", getReq.Etag, `etag used for versioning.`) cmd.Use = "get" - cmd.Short = `Get the automatic cluster update setting.` - cmd.Long = `Get the automatic cluster update setting. + cmd.Short = `*Public Preview* Get the automatic cluster update setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the automatic cluster update setting. Gets the automatic cluster update setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -110,8 +120,10 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update" - cmd.Short = `Update the automatic cluster update setting.` - cmd.Long = `Update the automatic cluster update setting. + cmd.Short = `*Public Preview* Update the automatic cluster update setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the automatic cluster update setting. Updates the automatic cluster update setting for the workspace. A fresh etag needs to be provided in PATCH requests (as part of the setting field). The @@ -120,6 +132,8 @@ func newUpdate() *cobra.Command { must be retried by using the fresh etag in the 409 response.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/catalogs/catalogs.go b/cmd/workspace/catalogs/catalogs.go index f8eccfa6114..568501b4ea4 100755 --- a/cmd/workspace/catalogs/catalogs.go +++ b/cmd/workspace/catalogs/catalogs.go @@ -33,6 +33,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -85,6 +89,8 @@ func newCreate() *cobra.Command { NAME: Name of catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -166,6 +172,8 @@ func newDelete() *cobra.Command { NAME: The name of the catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -226,6 +234,8 @@ func newGet() *cobra.Command { NAME: The name of the catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -308,6 +318,8 @@ func newList() *cobra.Command { indication that the end of results has been reached.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -380,6 +392,8 @@ func newUpdate() *cobra.Command { NAME: The name of the catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/clean-room-asset-revisions/clean-room-asset-revisions.go b/cmd/workspace/clean-room-asset-revisions/clean-room-asset-revisions.go index 9e773e0617e..e8188f3939c 100755 --- a/cmd/workspace/clean-room-asset-revisions/clean-room-asset-revisions.go +++ b/cmd/workspace/clean-room-asset-revisions/clean-room-asset-revisions.go @@ -19,13 +19,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "clean-room-asset-revisions", - Short: `Clean Room Asset Revisions denote new versions of uploaded assets (e.g.`, - Long: `Clean Room Asset Revisions denote new versions of uploaded assets (e.g. + Short: `*Beta* Clean Room Asset Revisions denote new versions of uploaded assets (e.g.`, + Long: `This command is in Beta and may change without notice. + +Clean Room Asset Revisions denote new versions of uploaded assets (e.g. notebooks) in the clean room.`, GroupID: "cleanrooms", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newList()) @@ -53,8 +59,10 @@ func newGet() *cobra.Command { var getReq cleanrooms.GetCleanRoomAssetRevisionRequest cmd.Use = "get CLEAN_ROOM_NAME ASSET_TYPE NAME ETAG" - cmd.Short = `Get an asset revision.` - cmd.Long = `Get an asset revision. + cmd.Short = `*Beta* Get an asset revision.` + cmd.Long = `This command is in Beta and may change without notice. + +Get an asset revision. Get a specific revision of an asset @@ -67,6 +75,8 @@ func newGet() *cobra.Command { returned.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(4) @@ -135,8 +145,10 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list CLEAN_ROOM_NAME ASSET_TYPE NAME" - cmd.Short = `List asset revisions.` - cmd.Long = `List asset revisions. + cmd.Short = `*Beta* List asset revisions.` + cmd.Long = `This command is in Beta and may change without notice. + +List asset revisions. List revisions for an asset @@ -147,6 +159,8 @@ func newList() *cobra.Command { NAME: Name of the asset.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) diff --git a/cmd/workspace/clean-room-assets/clean-room-assets.go b/cmd/workspace/clean-room-assets/clean-room-assets.go index 4b371d1d22f..dffc53ec176 100755 --- a/cmd/workspace/clean-room-assets/clean-room-assets.go +++ b/cmd/workspace/clean-room-assets/clean-room-assets.go @@ -27,6 +27,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newCreateCleanRoomAssetReview()) @@ -96,6 +100,8 @@ func newCreate() *cobra.Command { Supported values: [FOREIGN_TABLE, NOTEBOOK_FILE, TABLE, VIEW, VOLUME]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -178,8 +184,10 @@ func newCreateCleanRoomAssetReview() *cobra.Command { // TODO: complex arg: notebook_review cmd.Use = "create-clean-room-asset-review CLEAN_ROOM_NAME ASSET_TYPE NAME" - cmd.Short = `Create a review (e.g. approval) for an asset.` - cmd.Long = `Create a review (e.g. approval) for an asset. + cmd.Short = `*Beta* Create a review (e.g. approval) for an asset.` + cmd.Long = `This command is in Beta and may change without notice. + +Create a review (e.g. approval) for an asset. Submit an asset review @@ -190,6 +198,8 @@ func newCreateCleanRoomAssetReview() *cobra.Command { NAME: Name of the asset` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -269,6 +279,8 @@ func newDelete() *cobra.Command { CleanRoomAsset.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -335,6 +347,8 @@ func newGet() *cobra.Command { CleanRoomAsset.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -407,6 +421,8 @@ func newList() *cobra.Command { CLEAN_ROOM_NAME: Name of the clean room.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -492,6 +508,8 @@ func newUpdate() *cobra.Command { name is the jar analysis name.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) diff --git a/cmd/workspace/clean-room-auto-approval-rules/clean-room-auto-approval-rules.go b/cmd/workspace/clean-room-auto-approval-rules/clean-room-auto-approval-rules.go index 7cefc4a57e8..1515694ca64 100755 --- a/cmd/workspace/clean-room-auto-approval-rules/clean-room-auto-approval-rules.go +++ b/cmd/workspace/clean-room-auto-approval-rules/clean-room-auto-approval-rules.go @@ -20,14 +20,20 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "clean-room-auto-approval-rules", - Short: `Clean room auto-approval rules automatically create an approval on your behalf when an asset (e.g.`, - Long: `Clean room auto-approval rules automatically create an approval on your behalf + Short: `*Beta* Clean room auto-approval rules automatically create an approval on your behalf when an asset (e.g.`, + Long: `This command is in Beta and may change without notice. + +Clean room auto-approval rules automatically create an approval on your behalf when an asset (e.g. notebook) meeting specific criteria is shared in a clean room.`, GroupID: "cleanrooms", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -61,8 +67,10 @@ func newCreate() *cobra.Command { cmd.Flags().Var(&createJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "create CLEAN_ROOM_NAME" - cmd.Short = `Create an auto-approval rule.` - cmd.Long = `Create an auto-approval rule. + cmd.Short = `*Beta* Create an auto-approval rule.` + cmd.Long = `This command is in Beta and may change without notice. + +Create an auto-approval rule. Create an auto-approval rule @@ -70,6 +78,8 @@ func newCreate() *cobra.Command { CLEAN_ROOM_NAME: The name of the clean room this auto-approval rule belongs to.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -132,12 +142,16 @@ func newDelete() *cobra.Command { var deleteReq cleanrooms.DeleteCleanRoomAutoApprovalRuleRequest cmd.Use = "delete CLEAN_ROOM_NAME RULE_ID" - cmd.Short = `Delete an auto-approval rule.` - cmd.Long = `Delete an auto-approval rule. + cmd.Short = `*Beta* Delete an auto-approval rule.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete an auto-approval rule. Delete a auto-approval rule by rule ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -186,12 +200,16 @@ func newGet() *cobra.Command { var getReq cleanrooms.GetCleanRoomAutoApprovalRuleRequest cmd.Use = "get CLEAN_ROOM_NAME RULE_ID" - cmd.Short = `Get an auto-approval rule.` - cmd.Long = `Get an auto-approval rule. + cmd.Short = `*Beta* Get an auto-approval rule.` + cmd.Long = `This command is in Beta and may change without notice. + +Get an auto-approval rule. Get a auto-approval rule by rule ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -254,12 +272,16 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list CLEAN_ROOM_NAME" - cmd.Short = `List auto-approval rules.` - cmd.Long = `List auto-approval rules. + cmd.Short = `*Beta* List auto-approval rules.` + cmd.Long = `This command is in Beta and may change without notice. + +List auto-approval rules. List all auto-approval rules for the caller` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -320,8 +342,10 @@ func newUpdate() *cobra.Command { cmd.Flags().StringVar(&updateReq.AutoApprovalRule.RunnerCollaboratorAlias, "runner-collaborator-alias", updateReq.AutoApprovalRule.RunnerCollaboratorAlias, `Collaborator alias of the runner covered by the rule.`) cmd.Use = "update CLEAN_ROOM_NAME RULE_ID" - cmd.Short = `Update an auto-approval rule.` - cmd.Long = `Update an auto-approval rule. + cmd.Short = `*Beta* Update an auto-approval rule.` + cmd.Long = `This command is in Beta and may change without notice. + +Update an auto-approval rule. Update a auto-approval rule by rule ID @@ -330,6 +354,8 @@ func newUpdate() *cobra.Command { RULE_ID: A generated UUID identifying the rule.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/workspace/clean-room-task-runs/clean-room-task-runs.go b/cmd/workspace/clean-room-task-runs/clean-room-task-runs.go index 6469e9bc882..044912d41d1 100755 --- a/cmd/workspace/clean-room-task-runs/clean-room-task-runs.go +++ b/cmd/workspace/clean-room-task-runs/clean-room-task-runs.go @@ -25,6 +25,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newList()) @@ -74,6 +78,8 @@ func newList() *cobra.Command { CLEAN_ROOM_NAME: Name of the clean room.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/clean-rooms/clean-rooms.go b/cmd/workspace/clean-rooms/clean-rooms.go index 2a323554425..6ce4f30def1 100755 --- a/cmd/workspace/clean-rooms/clean-rooms.go +++ b/cmd/workspace/clean-rooms/clean-rooms.go @@ -29,6 +29,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newCreateOutputCatalog()) @@ -90,6 +94,8 @@ func newCreate() *cobra.Command { privilege on the metastore.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -176,6 +182,8 @@ func newCreateOutputCatalog() *cobra.Command { CLEAN_ROOM_NAME: Name of the clean room.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -248,6 +256,8 @@ func newDelete() *cobra.Command { NAME: Name of the clean room.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -301,6 +311,8 @@ func newGet() *cobra.Command { Get the details of a clean room given its name.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -369,6 +381,8 @@ func newList() *cobra.Command { has access to are returned.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -435,6 +449,8 @@ func newUpdate() *cobra.Command { NAME: Name of the clean room.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/cluster-policies/cluster-policies.go b/cmd/workspace/cluster-policies/cluster-policies.go index 4aa257d5692..6cd52d27112 100755 --- a/cmd/workspace/cluster-policies/cluster-policies.go +++ b/cmd/workspace/cluster-policies/cluster-policies.go @@ -48,6 +48,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -99,6 +103,8 @@ func newCreate() *cobra.Command { Creates a new policy with prescribed settings.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -171,6 +177,8 @@ func newDelete() *cobra.Command { POLICY_ID: The ID of the policy to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -275,6 +283,8 @@ func newEdit() *cobra.Command { POLICY_ID: The ID of the policy to update.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -368,6 +378,8 @@ func newGet() *cobra.Command { POLICY_ID: Canonical unique identifier for the Cluster Policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -437,6 +449,8 @@ func newGetPermissionLevels() *cobra.Command { CLUSTER_POLICY_ID: The cluster policy for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -507,6 +521,8 @@ func newGetPermissions() *cobra.Command { CLUSTER_POLICY_ID: The cluster policy for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -585,6 +601,8 @@ func newList() *cobra.Command { Returns a list of policies accessible by the requesting user.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -650,6 +668,8 @@ func newSetPermissions() *cobra.Command { CLUSTER_POLICY_ID: The cluster policy for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -737,6 +757,8 @@ func newUpdatePermissions() *cobra.Command { CLUSTER_POLICY_ID: The cluster policy for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/clusters/clusters.go b/cmd/workspace/clusters/clusters.go index ca8ed39838c..467246ca9a5 100755 --- a/cmd/workspace/clusters/clusters.go +++ b/cmd/workspace/clusters/clusters.go @@ -52,6 +52,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newChangeOwner()) cmd.AddCommand(newCreate()) @@ -113,6 +117,8 @@ func newChangeOwner() *cobra.Command { OWNER_USERNAME: New owner of the cluster_id after this RPC.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -266,6 +272,8 @@ func newCreate() *cobra.Command { :method:clusters/sparkVersions API call.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -367,6 +375,8 @@ func newDelete() *cobra.Command { CLUSTER_ID: The cluster to be terminated.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -539,6 +549,8 @@ func newEdit() *cobra.Command { :method:clusters/sparkVersions API call.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -654,6 +666,8 @@ func newEvents() *cobra.Command { CLUSTER_ID: The ID of the cluster to retrieve events about.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -752,6 +766,8 @@ func newGet() *cobra.Command { CLUSTER_ID: The cluster about which to retrieve information.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -821,6 +837,8 @@ func newGetPermissionLevels() *cobra.Command { CLUSTER_ID: The cluster for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -891,6 +909,8 @@ func newGetPermissions() *cobra.Command { CLUSTER_ID: The cluster for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -974,6 +994,8 @@ func newList() *cobra.Command { are not included.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1027,6 +1049,8 @@ func newListNodeTypes() *cobra.Command { launch a cluster.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1071,6 +1095,8 @@ func newListZones() *cobra.Command { example, us-west-2a). These zones can be used to launch a cluster.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1128,6 +1154,8 @@ func newPermanentDelete() *cobra.Command { CLUSTER_ID: The cluster to be deleted.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1222,6 +1250,8 @@ func newPin() *cobra.Command { effect. This API can only be called by workspace admins.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1327,6 +1357,8 @@ func newResize() *cobra.Command { CLUSTER_ID: The cluster to be resized.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1444,6 +1476,8 @@ func newRestart() *cobra.Command { CLUSTER_ID: The cluster to be started.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1556,6 +1590,8 @@ func newSetPermissions() *cobra.Command { CLUSTER_ID: The cluster for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1632,6 +1668,8 @@ func newSparkVersions() *cobra.Command { launch a cluster.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1696,6 +1734,8 @@ func newStart() *cobra.Command { CLUSTER_ID: The cluster to be started.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1802,6 +1842,8 @@ func newUnpin() *cobra.Command { This API can only be called by workspace admins.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1928,6 +1970,8 @@ func newUpdate() *cobra.Command { future.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2026,6 +2070,8 @@ func newUpdatePermissions() *cobra.Command { CLUSTER_ID: The cluster for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/cmd.go b/cmd/workspace/cmd.go index f8d5e672629..189c08c9d5a 100755 --- a/cmd/workspace/cmd.go +++ b/cmd/workspace/cmd.go @@ -96,18 +96,21 @@ import ( rfa "github.com/databricks/cli/cmd/workspace/rfa" schemas "github.com/databricks/cli/cmd/workspace/schemas" secrets "github.com/databricks/cli/cmd/workspace/secrets" + secrets_uc "github.com/databricks/cli/cmd/workspace/secrets-uc" service_principal_secrets_proxy "github.com/databricks/cli/cmd/workspace/service-principal-secrets-proxy" service_principals_v2 "github.com/databricks/cli/cmd/workspace/service-principals-v2" serving_endpoints "github.com/databricks/cli/cmd/workspace/serving-endpoints" settings "github.com/databricks/cli/cmd/workspace/settings" shares "github.com/databricks/cli/cmd/workspace/shares" storage_credentials "github.com/databricks/cli/cmd/workspace/storage-credentials" + supervisor_agents "github.com/databricks/cli/cmd/workspace/supervisor-agents" system_schemas "github.com/databricks/cli/cmd/workspace/system-schemas" table_constraints "github.com/databricks/cli/cmd/workspace/table-constraints" tables "github.com/databricks/cli/cmd/workspace/tables" tag_policies "github.com/databricks/cli/cmd/workspace/tag-policies" temporary_path_credentials "github.com/databricks/cli/cmd/workspace/temporary-path-credentials" temporary_table_credentials "github.com/databricks/cli/cmd/workspace/temporary-table-credentials" + temporary_volume_credentials "github.com/databricks/cli/cmd/workspace/temporary-volume-credentials" token_management "github.com/databricks/cli/cmd/workspace/token-management" tokens "github.com/databricks/cli/cmd/workspace/tokens" users_v2 "github.com/databricks/cli/cmd/workspace/users-v2" @@ -224,18 +227,21 @@ func All() []*cobra.Command { out = append(out, rfa.New()) out = append(out, schemas.New()) out = append(out, secrets.New()) + out = append(out, secrets_uc.New()) out = append(out, service_principal_secrets_proxy.New()) out = append(out, service_principals_v2.New()) out = append(out, serving_endpoints.New()) out = append(out, settings.New()) out = append(out, shares.New()) out = append(out, storage_credentials.New()) + out = append(out, supervisor_agents.New()) out = append(out, system_schemas.New()) out = append(out, table_constraints.New()) out = append(out, tables.New()) out = append(out, tag_policies.New()) out = append(out, temporary_path_credentials.New()) out = append(out, temporary_table_credentials.New()) + out = append(out, temporary_volume_credentials.New()) out = append(out, token_management.New()) out = append(out, tokens.New()) out = append(out, users_v2.New()) diff --git a/cmd/workspace/compliance-security-profile/compliance-security-profile.go b/cmd/workspace/compliance-security-profile/compliance-security-profile.go index 570c2e1897a..f709c78a1c9 100755 --- a/cmd/workspace/compliance-security-profile/compliance-security-profile.go +++ b/cmd/workspace/compliance-security-profile/compliance-security-profile.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "compliance-security-profile", - Short: `Controls whether to enable the compliance security profile for the current workspace.`, - Long: `Controls whether to enable the compliance security profile for the current + Short: `*Public Preview* Controls whether to enable the compliance security profile for the current workspace.`, + Long: `This command is in Public Preview and may change without notice. + +Controls whether to enable the compliance security profile for the current workspace. Enabling it on a workspace is permanent. By default, it is turned off. @@ -29,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newUpdate()) @@ -58,12 +64,16 @@ func newGet() *cobra.Command { cmd.Flags().StringVar(&getReq.Etag, "etag", getReq.Etag, `etag used for versioning.`) cmd.Use = "get" - cmd.Short = `Get the compliance security profile setting.` - cmd.Long = `Get the compliance security profile setting. + cmd.Short = `*Public Preview* Get the compliance security profile setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the compliance security profile setting. Gets the compliance security profile setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -113,8 +123,10 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update" - cmd.Short = `Update the compliance security profile setting.` - cmd.Long = `Update the compliance security profile setting. + cmd.Short = `*Public Preview* Update the compliance security profile setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the compliance security profile setting. Updates the compliance security profile setting for the workspace. A fresh etag needs to be provided in PATCH requests (as part of the setting field). @@ -123,6 +135,8 @@ func newUpdate() *cobra.Command { the request must be retried by using the fresh etag in the 409 response.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/connections/connections.go b/cmd/workspace/connections/connections.go index 5507ed839af..7753bba923f 100755 --- a/cmd/workspace/connections/connections.go +++ b/cmd/workspace/connections/connections.go @@ -36,6 +36,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -83,6 +87,8 @@ func newCreate() *cobra.Command { external server.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -148,6 +154,8 @@ func newDelete() *cobra.Command { NAME: The name of the connection to be deleted.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -216,6 +224,8 @@ func newGet() *cobra.Command { NAME: Name of the connection.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -303,6 +313,8 @@ func newList() *cobra.Command { indication that the end of results has been reached.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -367,6 +379,8 @@ func newUpdate() *cobra.Command { NAME: Name of the connection.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/consumer-fulfillments/consumer-fulfillments.go b/cmd/workspace/consumer-fulfillments/consumer-fulfillments.go index 6bf3a6169a5..73c78334ca7 100755 --- a/cmd/workspace/consumer-fulfillments/consumer-fulfillments.go +++ b/cmd/workspace/consumer-fulfillments/consumer-fulfillments.go @@ -18,13 +18,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "consumer-fulfillments", - Short: `Fulfillments are entities that allow consumers to preview installations.`, - Long: `Fulfillments are entities that allow consumers to preview installations.`, + Use: "consumer-fulfillments", + Short: `*Public Preview* Fulfillments are entities that allow consumers to preview installations.`, + Long: `This command is in Public Preview and may change without notice. + +Fulfillments are entities that allow consumers to preview installations.`, GroupID: "marketplace", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newList()) @@ -65,12 +71,16 @@ func newGet() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "get LISTING_ID" - cmd.Short = `Get listing content metadata.` - cmd.Long = `Get listing content metadata. + cmd.Short = `*Public Preview* Get listing content metadata.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get listing content metadata. Get a high level preview of the metadata of listing installable content.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -135,8 +145,10 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list LISTING_ID" - cmd.Short = `List all listing fulfillments.` - cmd.Long = `List all listing fulfillments. + cmd.Short = `*Public Preview* List all listing fulfillments.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List all listing fulfillments. Get all listings fulfillments associated with a listing. A _fulfillment_ is a potential installation. Standard installations contain metadata about the @@ -145,6 +157,8 @@ func newList() *cobra.Command { repo, as well as the Delta Sharing recipient type.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/consumer-installations/consumer-installations.go b/cmd/workspace/consumer-installations/consumer-installations.go index 352b8380764..b22738dd062 100755 --- a/cmd/workspace/consumer-installations/consumer-installations.go +++ b/cmd/workspace/consumer-installations/consumer-installations.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "consumer-installations", - Short: `Installations are entities that allow consumers to interact with Databricks Marketplace listings.`, - Long: `Installations are entities that allow consumers to interact with Databricks + Short: `*Public Preview* Installations are entities that allow consumers to interact with Databricks Marketplace listings.`, + Long: `This command is in Public Preview and may change without notice. + +Installations are entities that allow consumers to interact with Databricks Marketplace listings.`, GroupID: "marketplace", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -66,12 +72,16 @@ func newCreate() *cobra.Command { cmd.Flags().StringVar(&createReq.ShareName, "share-name", createReq.ShareName, ``) cmd.Use = "create LISTING_ID" - cmd.Short = `Install from a listing.` - cmd.Long = `Install from a listing. + cmd.Short = `*Public Preview* Install from a listing.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Install from a listing. Install payload associated with a Databricks Marketplace listing.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -132,12 +142,16 @@ func newDelete() *cobra.Command { var deleteReq marketplace.DeleteInstallationRequest cmd.Use = "delete LISTING_ID INSTALLATION_ID" - cmd.Short = `Uninstall from a listing.` - cmd.Long = `Uninstall from a listing. + cmd.Short = `*Public Preview* Uninstall from a listing.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Uninstall from a listing. Uninstall an installation associated with a Databricks Marketplace listing.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -199,12 +213,16 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list" - cmd.Short = `List all installations.` - cmd.Long = `List all installations. + cmd.Short = `*Public Preview* List all installations.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List all installations. List all installations across all listings.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -267,12 +285,16 @@ func newListListingInstallations() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-listing-installations LISTING_ID" - cmd.Short = `List installations for a listing.` - cmd.Long = `List installations for a listing. + cmd.Short = `*Public Preview* List installations for a listing.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List installations for a listing. List all installations for a particular listing.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -329,8 +351,10 @@ func newUpdate() *cobra.Command { cmd.Flags().BoolVar(&updateReq.RotateToken, "rotate-token", updateReq.RotateToken, ``) cmd.Use = "update LISTING_ID INSTALLATION_ID" - cmd.Short = `Update an installation.` - cmd.Long = `Update an installation. + cmd.Short = `*Public Preview* Update an installation.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update an installation. This is a update API that will update the part of the fields defined in the installation table as well as interact with external services according to the @@ -339,6 +363,8 @@ func newUpdate() *cobra.Command { rotateToken flag is true and the tokenInfo field is empty` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/workspace/consumer-listings/consumer-listings.go b/cmd/workspace/consumer-listings/consumer-listings.go index a3bfe6f9c30..c8b257a51d4 100755 --- a/cmd/workspace/consumer-listings/consumer-listings.go +++ b/cmd/workspace/consumer-listings/consumer-listings.go @@ -19,13 +19,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "consumer-listings", - Short: `Listings are the core entities in the Marketplace.`, - Long: `Listings are the core entities in the Marketplace. They represent the products + Short: `*Public Preview* Listings are the core entities in the Marketplace.`, + Long: `This command is in Public Preview and may change without notice. + +Listings are the core entities in the Marketplace. They represent the products that are available for consumption.`, GroupID: "marketplace", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newBatchGet()) cmd.AddCommand(newGet()) @@ -57,13 +63,17 @@ func newBatchGet() *cobra.Command { // TODO: array: ids cmd.Use = "batch-get" - cmd.Short = `Get one batch of listings. One may specify up to 50 IDs per request.` - cmd.Long = `Get one batch of listings. One may specify up to 50 IDs per request. + cmd.Short = `*Public Preview* Get one batch of listings. One may specify up to 50 IDs per request.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get one batch of listings. One may specify up to 50 IDs per request. Batch get a published listing in the Databricks Marketplace that the consumer has access to.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -110,13 +120,17 @@ func newGet() *cobra.Command { var getReq marketplace.GetListingRequest cmd.Use = "get ID" - cmd.Short = `Get listing.` - cmd.Long = `Get listing. + cmd.Short = `*Public Preview* Get listing.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get listing. Get a published listing in the Databricks Marketplace that the consumer has access to.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -197,13 +211,17 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list" - cmd.Short = `List listings.` - cmd.Long = `List listings. + cmd.Short = `*Public Preview* List listings.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List listings. List all published listings in the Databricks Marketplace that the consumer has access to.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -271,8 +289,10 @@ func newSearch() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "search QUERY" - cmd.Short = `Search listings.` - cmd.Long = `Search listings. + cmd.Short = `*Public Preview* Search listings.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Search listings. Search published listings in the Databricks Marketplace that the consumer has access to. This query supports a variety of different search parameters and @@ -282,6 +302,8 @@ func newSearch() *cobra.Command { QUERY: Fuzzy matches query` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/consumer-personalization-requests/consumer-personalization-requests.go b/cmd/workspace/consumer-personalization-requests/consumer-personalization-requests.go index 74f6f7e5a95..c1bbdc047d0 100755 --- a/cmd/workspace/consumer-personalization-requests/consumer-personalization-requests.go +++ b/cmd/workspace/consumer-personalization-requests/consumer-personalization-requests.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "consumer-personalization-requests", - Short: `Personalization Requests allow customers to interact with the individualized Marketplace listing flow.`, - Long: `Personalization Requests allow customers to interact with the individualized + Short: `*Public Preview* Personalization Requests allow customers to interact with the individualized Marketplace listing flow.`, + Long: `This command is in Public Preview and may change without notice. + +Personalization Requests allow customers to interact with the individualized Marketplace listing flow.`, GroupID: "marketplace", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newGet()) @@ -65,12 +71,16 @@ func newCreate() *cobra.Command { cmd.Flags().Var(&createReq.RecipientType, "recipient-type", `Supported values: [DELTA_SHARING_RECIPIENT_TYPE_DATABRICKS, DELTA_SHARING_RECIPIENT_TYPE_OPEN]`) cmd.Use = "create LISTING_ID" - cmd.Short = `Create a personalization request.` - cmd.Long = `Create a personalization request. + cmd.Short = `*Public Preview* Create a personalization request.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a personalization request. Create a personalization request for a listing.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -133,13 +143,17 @@ func newGet() *cobra.Command { var getReq marketplace.GetPersonalizationRequestRequest cmd.Use = "get LISTING_ID" - cmd.Short = `Get the personalization request for a listing.` - cmd.Long = `Get the personalization request for a listing. + cmd.Short = `*Public Preview* Get the personalization request for a listing.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the personalization request for a listing. Get the personalization request for a listing. Each consumer can make at *most* one personalization request for a listing.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -201,12 +215,16 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list" - cmd.Short = `List all personalization requests.` - cmd.Long = `List all personalization requests. + cmd.Short = `*Public Preview* List all personalization requests.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List all personalization requests. List personalization requests for a consumer across all listings.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/workspace/consumer-providers/consumer-providers.go b/cmd/workspace/consumer-providers/consumer-providers.go index 9c579c5d610..4dc372d24d4 100755 --- a/cmd/workspace/consumer-providers/consumer-providers.go +++ b/cmd/workspace/consumer-providers/consumer-providers.go @@ -18,13 +18,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "consumer-providers", - Short: `Providers are the entities that publish listings to the Marketplace.`, - Long: `Providers are the entities that publish listings to the Marketplace.`, + Use: "consumer-providers", + Short: `*Public Preview* Providers are the entities that publish listings to the Marketplace.`, + Long: `This command is in Public Preview and may change without notice. + +Providers are the entities that publish listings to the Marketplace.`, GroupID: "marketplace", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newBatchGet()) cmd.AddCommand(newGet()) @@ -55,13 +61,17 @@ func newBatchGet() *cobra.Command { // TODO: array: ids cmd.Use = "batch-get" - cmd.Short = `Get one batch of providers. One may specify up to 50 IDs per request.` - cmd.Long = `Get one batch of providers. One may specify up to 50 IDs per request. + cmd.Short = `*Public Preview* Get one batch of providers. One may specify up to 50 IDs per request.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get one batch of providers. One may specify up to 50 IDs per request. Batch get a provider in the Databricks Marketplace with at least one visible listing.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -108,13 +118,17 @@ func newGet() *cobra.Command { var getReq marketplace.GetProviderRequest cmd.Use = "get ID" - cmd.Short = `Get a provider.` - cmd.Long = `Get a provider. + cmd.Short = `*Public Preview* Get a provider.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get a provider. Get a provider in the Databricks Marketplace with at least one visible listing.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -189,13 +203,17 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list" - cmd.Short = `List providers.` - cmd.Long = `List providers. + cmd.Short = `*Public Preview* List providers.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List providers. List all providers in the Databricks Marketplace with at least one visible listing.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/workspace/credentials-manager/credentials-manager.go b/cmd/workspace/credentials-manager/credentials-manager.go index 4e0d2a10d84..67386dcecc1 100755 --- a/cmd/workspace/credentials-manager/credentials-manager.go +++ b/cmd/workspace/credentials-manager/credentials-manager.go @@ -30,6 +30,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newExchangeToken()) @@ -63,9 +67,22 @@ func newExchangeToken() *cobra.Command { cmd.Long = `Exchange token. Exchange tokens with an Identity Provider to get a new access token. It allows - specifying scopes to determine token permissions.` + specifying scopes to determine token permissions. + + POST /exchange-tokens/token is the documented public form, expressed via + google.api.http below. GET /exchange-tokens/$exchange is a legacy alias used + by the Spark driver's OAuth refresh path (DBHttpClient#get sends a body via + HttpGetWithEntity) and stays on the legacy option (rpc).endpoints + annotation: its path contains a literal $, which google.api.http's LITERAL + grammar does not allow, and HttpPathParser does not percent-decode template + segments (so encoding as %24exchange would not match the literal $exchange + path the Spark driver sends). Per-endpoint visibility: PUBLIC_UNDOCUMENTED + preserves the DECO-7732 intent of suppressing the GET alias from the public + API spec.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/credentials/credentials.go b/cmd/workspace/credentials/credentials.go index cd743f0edf8..e8ba0edc4dc 100755 --- a/cmd/workspace/credentials/credentials.go +++ b/cmd/workspace/credentials/credentials.go @@ -33,6 +33,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreateCredential()) cmd.AddCommand(newDeleteCredential()) @@ -92,6 +96,8 @@ func newCreateCredential() *cobra.Command { credentials within the metastore.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -173,6 +179,8 @@ func newDeleteCredential() *cobra.Command { NAME_ARG: Name of the credential.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -237,6 +245,8 @@ func newGenerateTemporaryServiceCredential() *cobra.Command { CREDENTIAL_NAME: The name of the service credential used to generate a temporary credential` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -317,6 +327,8 @@ func newGetCredential() *cobra.Command { NAME_ARG: Name of the credential.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -396,6 +408,8 @@ func newListCredentials() *cobra.Command { end of results has been reached.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -473,6 +487,8 @@ func newUpdateCredential() *cobra.Command { NAME_ARG: Name of the credential.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -565,6 +581,8 @@ func newValidateCredential() *cobra.Command { **CREATE_EXTERNAL_LOCATION** when purpose is **STORAGE**).` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/workspace/current-user/current-user.go b/cmd/workspace/current-user/current-user.go index 7a11844f6c5..6bdd0075683 100755 --- a/cmd/workspace/current-user/current-user.go +++ b/cmd/workspace/current-user/current-user.go @@ -16,13 +16,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "current-user", - Short: `This API allows retrieving information about currently authenticated user or service principal.`, - Long: `This API allows retrieving information about currently authenticated user or + Short: `*Public Preview* This API allows retrieving information about currently authenticated user or service principal.`, + Long: `This command is in Public Preview and may change without notice. + +This API allows retrieving information about currently authenticated user or service principal.`, GroupID: "iam", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newMe()) @@ -46,12 +52,16 @@ func newMe() *cobra.Command { cmd := &cobra.Command{} cmd.Use = "me" - cmd.Short = `Get current user info.` - cmd.Long = `Get current user info. + cmd.Short = `*Public Preview* Get current user info.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get current user info. Get details about the current method caller's identity.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/dashboard-email-subscriptions/dashboard-email-subscriptions.go b/cmd/workspace/dashboard-email-subscriptions/dashboard-email-subscriptions.go index 702bf376d54..5da81d45bb1 100755 --- a/cmd/workspace/dashboard-email-subscriptions/dashboard-email-subscriptions.go +++ b/cmd/workspace/dashboard-email-subscriptions/dashboard-email-subscriptions.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "dashboard-email-subscriptions", - Short: `Controls whether schedules or workload tasks for refreshing AI/BI Dashboards in the workspace can send subscription emails containing PDFs and/or images of the dashboard.`, - Long: `Controls whether schedules or workload tasks for refreshing AI/BI Dashboards + Short: `*Public Preview* Controls whether schedules or workload tasks for refreshing AI/BI Dashboards in the workspace can send subscription emails containing PDFs and/or images of the dashboard.`, + Long: `This command is in Public Preview and may change without notice. + +Controls whether schedules or workload tasks for refreshing AI/BI Dashboards in the workspace can send subscription emails containing PDFs and/or images of the dashboard. By default, this setting is enabled (set to true)`, RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -57,12 +63,16 @@ func newDelete() *cobra.Command { cmd.Flags().StringVar(&deleteReq.Etag, "etag", deleteReq.Etag, `etag used for versioning.`) cmd.Use = "delete" - cmd.Short = `Delete the Dashboard Email Subscriptions setting.` - cmd.Long = `Delete the Dashboard Email Subscriptions setting. + cmd.Short = `*Public Preview* Delete the Dashboard Email Subscriptions setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete the Dashboard Email Subscriptions setting. Reverts the Dashboard Email Subscriptions setting to its default value.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -111,12 +121,16 @@ func newGet() *cobra.Command { cmd.Flags().StringVar(&getReq.Etag, "etag", getReq.Etag, `etag used for versioning.`) cmd.Use = "get" - cmd.Short = `Get the Dashboard Email Subscriptions setting.` - cmd.Long = `Get the Dashboard Email Subscriptions setting. + cmd.Short = `*Public Preview* Get the Dashboard Email Subscriptions setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the Dashboard Email Subscriptions setting. Gets the Dashboard Email Subscriptions setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -166,12 +180,16 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update" - cmd.Short = `Update the Dashboard Email Subscriptions setting.` - cmd.Long = `Update the Dashboard Email Subscriptions setting. + cmd.Short = `*Public Preview* Update the Dashboard Email Subscriptions setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the Dashboard Email Subscriptions setting. Updates the Dashboard Email Subscriptions setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/dashboard-widgets/dashboard-widgets.go b/cmd/workspace/dashboard-widgets/dashboard-widgets.go index 89d584ecac8..891896c02b2 100755 --- a/cmd/workspace/dashboard-widgets/dashboard-widgets.go +++ b/cmd/workspace/dashboard-widgets/dashboard-widgets.go @@ -31,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -71,6 +75,8 @@ func newCreate() *cobra.Command { Adds a widget to a dashboard` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -136,6 +142,8 @@ func newDelete() *cobra.Command { ID: Widget ID returned by :method:dashboardwidgets/create` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -198,6 +206,8 @@ func newUpdate() *cobra.Command { ID: Widget ID returned by :method:dashboardwidgets/create` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/dashboards/dashboards.go b/cmd/workspace/dashboards/dashboards.go index fedffb5a397..5eb7ed2d3a1 100755 --- a/cmd/workspace/dashboards/dashboards.go +++ b/cmd/workspace/dashboards/dashboards.go @@ -36,6 +36,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -78,6 +82,8 @@ func newDelete() *cobra.Command { [Learn more]: https://docs.databricks.com/en/dashboards/` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -137,6 +143,8 @@ func newGet() *cobra.Command { [Learn more]: https://docs.databricks.com/en/dashboards/` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -215,6 +223,8 @@ func newList() *cobra.Command { [Learn more]: https://docs.databricks.com/en/dashboards/` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -275,6 +285,8 @@ func newRestore() *cobra.Command { [Learn more]: https://docs.databricks.com/en/dashboards/` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -343,6 +355,8 @@ func newUpdate() *cobra.Command { [Learn more]: https://docs.databricks.com/en/dashboards/` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/data-classification/data-classification.go b/cmd/workspace/data-classification/data-classification.go index e3a87558072..e7809590300 100755 --- a/cmd/workspace/data-classification/data-classification.go +++ b/cmd/workspace/data-classification/data-classification.go @@ -21,8 +21,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "data-classification", - Short: `Manage data classification for Unity Catalog catalogs.`, - Long: `Manage data classification for Unity Catalog catalogs. Data classification + Short: `*Beta* Manage data classification for Unity Catalog catalogs.`, + Long: `This command is in Beta and may change without notice. + +Manage data classification for Unity Catalog catalogs. Data classification automatically identifies and tags sensitive data (PII) in Unity Catalog tables. Each catalog can have at most one configuration resource that controls scanning behavior and auto-tagging rules.`, @@ -30,6 +32,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + // Add methods cmd.AddCommand(newCreateCatalogConfig()) cmd.AddCommand(newDeleteCatalogConfig()) @@ -67,8 +73,10 @@ func newCreateCatalogConfig() *cobra.Command { cmd.Flags().StringVar(&createCatalogConfigReq.CatalogConfig.Name, "name", createCatalogConfigReq.CatalogConfig.Name, `Resource name in the format: catalogs/{catalog_name}/config.`) cmd.Use = "create-catalog-config PARENT" - cmd.Short = `Create config for a catalog.` - cmd.Long = `Create config for a catalog. + cmd.Short = `*Beta* Create config for a catalog.` + cmd.Long = `This command is in Beta and may change without notice. + +Create config for a catalog. Create Data Classification configuration for a catalog. @@ -79,6 +87,8 @@ func newCreateCatalogConfig() *cobra.Command { PARENT: Parent resource in the format: catalogs/{catalog_name}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -139,8 +149,10 @@ func newDeleteCatalogConfig() *cobra.Command { var deleteCatalogConfigReq dataclassification.DeleteCatalogConfigRequest cmd.Use = "delete-catalog-config NAME" - cmd.Short = `Delete config for a catalog.` - cmd.Long = `Delete config for a catalog. + cmd.Short = `*Beta* Delete config for a catalog.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete config for a catalog. Delete Data Classification configuration for a catalog. @@ -148,6 +160,8 @@ func newDeleteCatalogConfig() *cobra.Command { NAME: Resource name in the format: catalogs/{catalog_name}/config` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -195,8 +209,10 @@ func newGetCatalogConfig() *cobra.Command { var getCatalogConfigReq dataclassification.GetCatalogConfigRequest cmd.Use = "get-catalog-config NAME" - cmd.Short = `Get config for a catalog.` - cmd.Long = `Get config for a catalog. + cmd.Short = `*Beta* Get config for a catalog.` + cmd.Long = `This command is in Beta and may change without notice. + +Get config for a catalog. Get the Data Classification configuration for a catalog. @@ -204,6 +220,8 @@ func newGetCatalogConfig() *cobra.Command { NAME: Resource name in the format: catalogs/{catalog_name}/config` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -260,8 +278,10 @@ func newUpdateCatalogConfig() *cobra.Command { cmd.Flags().StringVar(&updateCatalogConfigReq.CatalogConfig.Name, "name", updateCatalogConfigReq.CatalogConfig.Name, `Resource name in the format: catalogs/{catalog_name}/config.`) cmd.Use = "update-catalog-config NAME UPDATE_MASK" - cmd.Short = `Update config for a catalog.` - cmd.Long = `Update config for a catalog. + cmd.Short = `*Beta* Update config for a catalog.` + cmd.Long = `This command is in Beta and may change without notice. + +Update config for a catalog. Update the Data Classification configuration for a catalog. - The config must already exist for the catalog. - Updates fields specified in the update_mask. @@ -272,6 +292,8 @@ func newUpdateCatalogConfig() *cobra.Command { UPDATE_MASK: Field mask specifying which fields to update.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/workspace/data-quality/data-quality.go b/cmd/workspace/data-quality/data-quality.go index 905a0076d51..47234a41df2 100755 --- a/cmd/workspace/data-quality/data-quality.go +++ b/cmd/workspace/data-quality/data-quality.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "data-quality", - Short: `Manage the data quality of Unity Catalog objects (currently support schema and table).`, - Long: `Manage the data quality of Unity Catalog objects (currently support schema + Short: `*Public Preview* Manage the data quality of Unity Catalog objects (currently support schema and table).`, + Long: `This command is in Public Preview and may change without notice. + +Manage the data quality of Unity Catalog objects (currently support schema and table)`, GroupID: "dataquality", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCancelRefresh()) cmd.AddCommand(newCreateMonitor()) @@ -63,8 +69,10 @@ func newCancelRefresh() *cobra.Command { var cancelRefreshReq dataquality.CancelRefreshRequest cmd.Use = "cancel-refresh OBJECT_TYPE OBJECT_ID REFRESH_ID" - cmd.Short = `Cancel a refresh.` - cmd.Long = `Cancel a refresh. + cmd.Short = `*Public Preview* Cancel a refresh.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Cancel a refresh. Cancels a data quality monitor refresh. Currently only supported for the table object_type. The call must be made in the same workspace as where @@ -97,6 +105,8 @@ func newCancelRefresh() *cobra.Command { REFRESH_ID: Unique id of the refresh operation.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -157,8 +167,10 @@ func newCreateMonitor() *cobra.Command { // TODO: complex arg: data_profiling_config cmd.Use = "create-monitor OBJECT_TYPE OBJECT_ID" - cmd.Short = `Create a monitor.` - cmd.Long = `Create a monitor. + cmd.Short = `*Public Preview* Create a monitor.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a monitor. Create a data quality monitor on a Unity Catalog object. The caller must provide either anomaly_detection_config for a schema monitor or @@ -199,6 +211,8 @@ func newCreateMonitor() *cobra.Command { [table_id]: https://docs.databricks.com/api/workspace/tables/get#table_id` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -275,8 +289,10 @@ func newCreateRefresh() *cobra.Command { cmd.Flags().Var(&createRefreshJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "create-refresh OBJECT_TYPE OBJECT_ID" - cmd.Short = `Create a refresh.` - cmd.Long = `Create a refresh. + cmd.Short = `*Public Preview* Create a refresh.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a refresh. Creates a refresh. Currently only supported for the table object_type. The call must be made in the same workspace as where the monitor was created. @@ -307,6 +323,8 @@ func newCreateRefresh() *cobra.Command { [table_id]: https://docs.databricks.com/api/workspace/tables/get#table_id` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -368,8 +386,10 @@ func newDeleteMonitor() *cobra.Command { var deleteMonitorReq dataquality.DeleteMonitorRequest cmd.Use = "delete-monitor OBJECT_TYPE OBJECT_ID" - cmd.Short = `Delete a monitor.` - cmd.Long = `Delete a monitor. + cmd.Short = `*Public Preview* Delete a monitor.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete a monitor. Delete a data quality monitor on Unity Catalog object. @@ -407,6 +427,8 @@ func newDeleteMonitor() *cobra.Command { [table_id]: https://docs.databricks.com/api/workspace/tables/get#table_id` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -455,8 +477,10 @@ func newDeleteRefresh() *cobra.Command { var deleteRefreshReq dataquality.DeleteRefreshRequest cmd.Use = "delete-refresh OBJECT_TYPE OBJECT_ID REFRESH_ID" - cmd.Short = `Delete a refresh.` - cmd.Long = `Delete a refresh. + cmd.Short = `*Public Preview* Delete a refresh.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete a refresh. (Unimplemented) Delete a refresh @@ -480,6 +504,8 @@ func newDeleteRefresh() *cobra.Command { REFRESH_ID: Unique id of the refresh operation.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -532,8 +558,10 @@ func newGetMonitor() *cobra.Command { var getMonitorReq dataquality.GetMonitorRequest cmd.Use = "get-monitor OBJECT_TYPE OBJECT_ID" - cmd.Short = `Read a monitor.` - cmd.Long = `Read a monitor. + cmd.Short = `*Public Preview* Read a monitor.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Read a monitor. Read a data quality monitor on a Unity Catalog object. @@ -573,6 +601,8 @@ func newGetMonitor() *cobra.Command { [table_id]: https://docs.databricks.com/api/workspace/tables/get#table_id` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -622,8 +652,10 @@ func newGetRefresh() *cobra.Command { var getRefreshReq dataquality.GetRefreshRequest cmd.Use = "get-refresh OBJECT_TYPE OBJECT_ID REFRESH_ID" - cmd.Short = `Get a refresh.` - cmd.Long = `Get a refresh. + cmd.Short = `*Public Preview* Get a refresh.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get a refresh. Get data quality monitor refresh. The call must be made in the same workspace as where the monitor was created. @@ -660,6 +692,8 @@ func newGetRefresh() *cobra.Command { REFRESH_ID: Unique id of the refresh operation.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -726,12 +760,16 @@ func newListMonitor() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-monitor" - cmd.Short = `List monitors.` - cmd.Long = `List monitors. + cmd.Short = `*Public Preview* List monitors.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List monitors. (Unimplemented) List data quality monitors.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -794,8 +832,10 @@ func newListRefresh() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-refresh OBJECT_TYPE OBJECT_ID" - cmd.Short = `List refreshes.` - cmd.Long = `List refreshes. + cmd.Short = `*Public Preview* List refreshes.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List refreshes. List data quality monitor refreshes. The call must be made in the same workspace as where the monitor was created. @@ -831,6 +871,8 @@ func newListRefresh() *cobra.Command { [table_id]: https://docs.databricks.com/api/workspace/tables/get#table_id` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -890,8 +932,10 @@ func newUpdateMonitor() *cobra.Command { // TODO: complex arg: data_profiling_config cmd.Use = "update-monitor OBJECT_TYPE OBJECT_ID UPDATE_MASK OBJECT_TYPE OBJECT_ID" - cmd.Short = `Update a monitor.` - cmd.Long = `Update a monitor. + cmd.Short = `*Public Preview* Update a monitor.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update a monitor. Update a data quality monitor on Unity Catalog object. @@ -945,6 +989,8 @@ func newUpdateMonitor() *cobra.Command { [table_id]: https://docs.databricks.com/api/workspace/tables/get#table_id` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1024,8 +1070,10 @@ func newUpdateRefresh() *cobra.Command { cmd.Flags().Var(&updateRefreshJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update-refresh OBJECT_TYPE OBJECT_ID REFRESH_ID UPDATE_MASK OBJECT_TYPE OBJECT_ID" - cmd.Short = `Update a refresh.` - cmd.Long = `Update a refresh. + cmd.Short = `*Public Preview* Update a refresh.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update a refresh. (Unimplemented) Update a refresh @@ -1066,6 +1114,8 @@ func newUpdateRefresh() *cobra.Command { [table_id]: https://docs.databricks.com/api/workspace/tables/get#table_id` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/data-sources/data-sources.go b/cmd/workspace/data-sources/data-sources.go index 637522c1126..33bee7f17bf 100755 --- a/cmd/workspace/data-sources/data-sources.go +++ b/cmd/workspace/data-sources/data-sources.go @@ -36,6 +36,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newList()) @@ -72,6 +76,8 @@ func newList() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/database/database.go b/cmd/workspace/database/database.go index b2476255bb0..92aa1408bfd 100755 --- a/cmd/workspace/database/database.go +++ b/cmd/workspace/database/database.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "database", - Short: `Database Instances provide access to a database via REST API or direct SQL.`, - Long: `Database Instances provide access to a database via REST API or direct SQL.`, + Use: "database", + Short: `*Public Preview* Database Instances provide access to a database via REST API or direct SQL.`, + Long: `This command is in Public Preview and may change without notice. + +Database Instances provide access to a database via REST API or direct SQL.`, GroupID: "database", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreateDatabaseCatalog()) cmd.AddCommand(newCreateDatabaseInstance()) @@ -82,8 +88,10 @@ func newCreateDatabaseCatalog() *cobra.Command { cmd.Flags().BoolVar(&createDatabaseCatalogReq.Catalog.CreateDatabaseIfNotExists, "create-database-if-not-exists", createDatabaseCatalogReq.Catalog.CreateDatabaseIfNotExists, ``) cmd.Use = "create-database-catalog NAME DATABASE_INSTANCE_NAME DATABASE_NAME" - cmd.Short = `Create a Database Catalog.` - cmd.Long = `Create a Database Catalog. + cmd.Short = `*Public Preview* Create a Database Catalog.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a Database Catalog. Arguments: NAME: The name of the catalog in UC. @@ -91,6 +99,8 @@ func newCreateDatabaseCatalog() *cobra.Command { DATABASE_NAME: The name of the database (in a instance) associated with the catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -188,13 +198,17 @@ func newCreateDatabaseInstance() *cobra.Command { cmd.Flags().StringVar(&createDatabaseInstanceReq.DatabaseInstance.UsagePolicyId, "usage-policy-id", createDatabaseInstanceReq.DatabaseInstance.UsagePolicyId, `The desired usage policy to associate with the instance.`) cmd.Use = "create-database-instance NAME" - cmd.Short = `Create a Database Instance.` - cmd.Long = `Create a Database Instance. + cmd.Short = `*Public Preview* Create a Database Instance.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a Database Instance. Arguments: NAME: The name of the instance. This is the unique identifier for the instance.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -299,6 +313,8 @@ func newCreateDatabaseInstanceRole() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -376,8 +392,10 @@ func newCreateDatabaseTable() *cobra.Command { cmd.Flags().StringVar(&createDatabaseTableReq.Table.LogicalDatabaseName, "logical-database-name", createDatabaseTableReq.Table.LogicalDatabaseName, `Target Postgres database object (logical database) name for this table.`) cmd.Use = "create-database-table NAME" - cmd.Short = `Create a Database Table.` - cmd.Long = `Create a Database Table. + cmd.Short = `*Public Preview* Create a Database Table.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a Database Table. Create a Database Table. Useful for registering pre-existing PG tables in UC. See CreateSyncedDatabaseTable for creating synced tables in PG from a source @@ -387,6 +405,8 @@ func newCreateDatabaseTable() *cobra.Command { NAME: Full three-part (catalog, schema, table) name of the table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -465,13 +485,17 @@ func newCreateSyncedDatabaseTable() *cobra.Command { // TODO: complex arg: spec cmd.Use = "create-synced-database-table NAME" - cmd.Short = `Create a Synced Database Table.` - cmd.Long = `Create a Synced Database Table. + cmd.Short = `*Public Preview* Create a Synced Database Table.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a Synced Database Table. Arguments: NAME: Full three-part (catalog, schema, table) name of the table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -541,10 +565,14 @@ func newDeleteDatabaseCatalog() *cobra.Command { var deleteDatabaseCatalogReq database.DeleteDatabaseCatalogRequest cmd.Use = "delete-database-catalog NAME" - cmd.Short = `Delete a Database Catalog.` - cmd.Long = `Delete a Database Catalog.` + cmd.Short = `*Public Preview* Delete a Database Catalog.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete a Database Catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -595,13 +623,17 @@ func newDeleteDatabaseInstance() *cobra.Command { cmd.Flags().BoolVar(&deleteDatabaseInstanceReq.Purge, "purge", deleteDatabaseInstanceReq.Purge, `Deprecated.`) cmd.Use = "delete-database-instance NAME" - cmd.Short = `Delete a Database Instance.` - cmd.Long = `Delete a Database Instance. + cmd.Short = `*Public Preview* Delete a Database Instance.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete a Database Instance. Arguments: NAME: Name of the instance to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -661,6 +693,8 @@ func newDeleteDatabaseInstanceRole() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -709,10 +743,14 @@ func newDeleteDatabaseTable() *cobra.Command { var deleteDatabaseTableReq database.DeleteDatabaseTableRequest cmd.Use = "delete-database-table NAME" - cmd.Short = `Delete a Database Table.` - cmd.Long = `Delete a Database Table.` + cmd.Short = `*Public Preview* Delete a Database Table.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete a Database Table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -762,10 +800,14 @@ func newDeleteSyncedDatabaseTable() *cobra.Command { cmd.Flags().BoolVar(&deleteSyncedDatabaseTableReq.PurgeData, "purge-data", deleteSyncedDatabaseTableReq.PurgeData, `Optional.`) cmd.Use = "delete-synced-database-table NAME" - cmd.Short = `Delete a Synced Database Table.` - cmd.Long = `Delete a Synced Database Table.` + cmd.Short = `*Public Preview* Delete a Synced Database Table.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete a Synced Database Table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -815,10 +857,14 @@ func newFindDatabaseInstanceByUid() *cobra.Command { cmd.Flags().StringVar(&findDatabaseInstanceByUidReq.Uid, "uid", findDatabaseInstanceByUidReq.Uid, `UID of the cluster to get.`) cmd.Use = "find-database-instance-by-uid" - cmd.Short = `Find a Database Instance by uid.` - cmd.Long = `Find a Database Instance by uid.` + cmd.Short = `*Public Preview* Find a Database Instance by uid.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Find a Database Instance by uid.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -872,10 +918,14 @@ func newGenerateDatabaseCredential() *cobra.Command { cmd.Flags().StringVar(&generateDatabaseCredentialReq.RequestId, "request-id", generateDatabaseCredentialReq.RequestId, ``) cmd.Use = "generate-database-credential" - cmd.Short = `Generates a credential that can be used to access database instances.` - cmd.Long = `Generates a credential that can be used to access database instances.` + cmd.Short = `*Public Preview* Generates a credential that can be used to access database instances.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Generates a credential that can be used to access database instances.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -935,10 +985,14 @@ func newGetDatabaseCatalog() *cobra.Command { var getDatabaseCatalogReq database.GetDatabaseCatalogRequest cmd.Use = "get-database-catalog NAME" - cmd.Short = `Get a Database Catalog.` - cmd.Long = `Get a Database Catalog.` + cmd.Short = `*Public Preview* Get a Database Catalog.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get a Database Catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -987,13 +1041,17 @@ func newGetDatabaseInstance() *cobra.Command { var getDatabaseInstanceReq database.GetDatabaseInstanceRequest cmd.Use = "get-database-instance NAME" - cmd.Short = `Get a Database Instance.` - cmd.Long = `Get a Database Instance. + cmd.Short = `*Public Preview* Get a Database Instance.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get a Database Instance. Arguments: NAME: Name of the cluster to get.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1051,6 +1109,8 @@ func newGetDatabaseInstanceRole() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -1100,10 +1160,14 @@ func newGetDatabaseTable() *cobra.Command { var getDatabaseTableReq database.GetDatabaseTableRequest cmd.Use = "get-database-table NAME" - cmd.Short = `Get a Database Table.` - cmd.Long = `Get a Database Table.` + cmd.Short = `*Public Preview* Get a Database Table.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get a Database Table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1152,10 +1216,14 @@ func newGetSyncedDatabaseTable() *cobra.Command { var getSyncedDatabaseTableReq database.GetSyncedDatabaseTableRequest cmd.Use = "get-synced-database-table NAME" - cmd.Short = `Get a Synced Database Table.` - cmd.Long = `Get a Synced Database Table.` + cmd.Short = `*Public Preview* Get a Synced Database Table.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get a Synced Database Table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1229,6 +1297,8 @@ func newListDatabaseCatalogs() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1306,6 +1376,8 @@ func newListDatabaseInstanceRoles() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1370,10 +1442,14 @@ func newListDatabaseInstances() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-database-instances" - cmd.Short = `List Database Instances.` - cmd.Long = `List Database Instances.` + cmd.Short = `*Public Preview* List Database Instances.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List Database Instances.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1448,6 +1524,8 @@ func newListSyncedDatabaseTables() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1520,6 +1598,8 @@ func newUpdateDatabaseCatalog() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1610,8 +1690,10 @@ func newUpdateDatabaseInstance() *cobra.Command { cmd.Flags().StringVar(&updateDatabaseInstanceReq.DatabaseInstance.UsagePolicyId, "usage-policy-id", updateDatabaseInstanceReq.DatabaseInstance.UsagePolicyId, `The desired usage policy to associate with the instance.`) cmd.Use = "update-database-instance NAME UPDATE_MASK" - cmd.Short = `Update a Database Instance.` - cmd.Long = `Update a Database Instance. + cmd.Short = `*Public Preview* Update a Database Instance.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update a Database Instance. Arguments: NAME: The name of the instance. This is the unique identifier for the instance. @@ -1620,6 +1702,8 @@ func newUpdateDatabaseInstance() *cobra.Command { update_mask with an empty custom_tags map.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -1703,6 +1787,8 @@ func newUpdateSyncedDatabaseTable() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/workspace/default-namespace/default-namespace.go b/cmd/workspace/default-namespace/default-namespace.go index 5ec635652f2..963d944d1f7 100755 --- a/cmd/workspace/default-namespace/default-namespace.go +++ b/cmd/workspace/default-namespace/default-namespace.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "default-namespace", - Short: `The default namespace setting API allows users to configure the default namespace for a Databricks workspace.`, - Long: `The default namespace setting API allows users to configure the default + Short: `*Public Preview* The default namespace setting API allows users to configure the default namespace for a Databricks workspace.`, + Long: `This command is in Public Preview and may change without notice. + +The default namespace setting API allows users to configure the default namespace for a Databricks workspace. Through this API, users can retrieve, set, or modify the default namespace @@ -36,6 +38,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -66,8 +72,10 @@ func newDelete() *cobra.Command { cmd.Flags().StringVar(&deleteReq.Etag, "etag", deleteReq.Etag, `etag used for versioning.`) cmd.Use = "delete" - cmd.Short = `Delete the default namespace setting.` - cmd.Long = `Delete the default namespace setting. + cmd.Short = `*Public Preview* Delete the default namespace setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete the default namespace setting. Deletes the default namespace setting for the workspace. A fresh etag needs to be provided in DELETE requests (as a query parameter). The etag can be @@ -76,6 +84,8 @@ func newDelete() *cobra.Command { request must be retried by using the fresh etag in the 409 response.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -124,12 +134,16 @@ func newGet() *cobra.Command { cmd.Flags().StringVar(&getReq.Etag, "etag", getReq.Etag, `etag used for versioning.`) cmd.Use = "get" - cmd.Short = `Get the default namespace setting.` - cmd.Long = `Get the default namespace setting. + cmd.Short = `*Public Preview* Get the default namespace setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the default namespace setting. Gets the default namespace setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -179,8 +193,10 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update" - cmd.Short = `Update the default namespace setting.` - cmd.Long = `Update the default namespace setting. + cmd.Short = `*Public Preview* Update the default namespace setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the default namespace setting. Updates the default namespace setting for the workspace. A fresh etag needs to be provided in PATCH requests (as part of the setting field). The etag can @@ -191,6 +207,8 @@ func newUpdate() *cobra.Command { must be retried by using the fresh etag in the 409 response.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/default-warehouse-id/default-warehouse-id.go b/cmd/workspace/default-warehouse-id/default-warehouse-id.go index 1b9a61e41ff..b22d987e747 100755 --- a/cmd/workspace/default-warehouse-id/default-warehouse-id.go +++ b/cmd/workspace/default-warehouse-id/default-warehouse-id.go @@ -29,6 +29,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -65,6 +69,8 @@ func newDelete() *cobra.Command { Reverts the Default Warehouse Id setting to its default value.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -119,6 +125,8 @@ func newGet() *cobra.Command { Gets the Default Warehouse Id setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -174,6 +182,8 @@ func newUpdate() *cobra.Command { Updates the Default Warehouse Id setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/disable-legacy-access/disable-legacy-access.go b/cmd/workspace/disable-legacy-access/disable-legacy-access.go index 317546ea068..64bf8fd34c8 100755 --- a/cmd/workspace/disable-legacy-access/disable-legacy-access.go +++ b/cmd/workspace/disable-legacy-access/disable-legacy-access.go @@ -30,6 +30,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -66,6 +70,8 @@ func newDelete() *cobra.Command { Deletes legacy access disablement status.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -120,6 +126,8 @@ func newGet() *cobra.Command { Retrieves legacy access disablement Status.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -175,6 +183,8 @@ func newUpdate() *cobra.Command { Updates legacy access disablement status.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/disable-legacy-dbfs/disable-legacy-dbfs.go b/cmd/workspace/disable-legacy-dbfs/disable-legacy-dbfs.go index 5630444ee17..a57d63a451d 100755 --- a/cmd/workspace/disable-legacy-dbfs/disable-legacy-dbfs.go +++ b/cmd/workspace/disable-legacy-dbfs/disable-legacy-dbfs.go @@ -33,6 +33,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -70,6 +74,8 @@ func newDelete() *cobra.Command { default.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -124,6 +130,8 @@ func newGet() *cobra.Command { Gets the disable legacy DBFS setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -179,6 +187,8 @@ func newUpdate() *cobra.Command { Updates the disable legacy DBFS setting for the workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/enable-export-notebook/enable-export-notebook.go b/cmd/workspace/enable-export-notebook/enable-export-notebook.go index c9670c88034..870cc7c0393 100755 --- a/cmd/workspace/enable-export-notebook/enable-export-notebook.go +++ b/cmd/workspace/enable-export-notebook/enable-export-notebook.go @@ -20,12 +20,18 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "enable-export-notebook", - Short: `Controls whether users can export notebooks and files from the Workspace UI.`, - Long: `Controls whether users can export notebooks and files from the Workspace UI. + Short: `*Public Preview* Controls whether users can export notebooks and files from the Workspace UI.`, + Long: `This command is in Public Preview and may change without notice. + +Controls whether users can export notebooks and files from the Workspace UI. By default, this setting is enabled.`, RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGetEnableExportNotebook()) cmd.AddCommand(newPatchEnableExportNotebook()) @@ -50,12 +56,16 @@ func newGetEnableExportNotebook() *cobra.Command { cmd := &cobra.Command{} cmd.Use = "get-enable-export-notebook" - cmd.Short = `Get the Notebook and File exporting setting.` - cmd.Long = `Get the Notebook and File exporting setting. + cmd.Short = `*Public Preview* Get the Notebook and File exporting setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the Notebook and File exporting setting. Gets the Notebook and File exporting setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -99,14 +109,18 @@ func newPatchEnableExportNotebook() *cobra.Command { cmd.Flags().Var(&patchEnableExportNotebookJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "patch-enable-export-notebook" - cmd.Short = `Update the Notebook and File exporting setting.` - cmd.Long = `Update the Notebook and File exporting setting. + cmd.Short = `*Public Preview* Update the Notebook and File exporting setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the Notebook and File exporting setting. Updates the Notebook and File exporting setting. The model follows eventual consistency, which means the get after the update operation might receive stale values for some time.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/enable-notebook-table-clipboard/enable-notebook-table-clipboard.go b/cmd/workspace/enable-notebook-table-clipboard/enable-notebook-table-clipboard.go index 0ec3f7135fd..16e8d259ee8 100755 --- a/cmd/workspace/enable-notebook-table-clipboard/enable-notebook-table-clipboard.go +++ b/cmd/workspace/enable-notebook-table-clipboard/enable-notebook-table-clipboard.go @@ -20,12 +20,18 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "enable-notebook-table-clipboard", - Short: `Controls whether users can copy tabular data to the clipboard via the UI.`, - Long: `Controls whether users can copy tabular data to the clipboard via the UI. By + Short: `*Public Preview* Controls whether users can copy tabular data to the clipboard via the UI.`, + Long: `This command is in Public Preview and may change without notice. + +Controls whether users can copy tabular data to the clipboard via the UI. By default, this setting is enabled.`, RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGetEnableNotebookTableClipboard()) cmd.AddCommand(newPatchEnableNotebookTableClipboard()) @@ -50,12 +56,16 @@ func newGetEnableNotebookTableClipboard() *cobra.Command { cmd := &cobra.Command{} cmd.Use = "get-enable-notebook-table-clipboard" - cmd.Short = `Get the Results Table Clipboard features setting.` - cmd.Long = `Get the Results Table Clipboard features setting. + cmd.Short = `*Public Preview* Get the Results Table Clipboard features setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the Results Table Clipboard features setting. Gets the Results Table Clipboard features setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -99,14 +109,18 @@ func newPatchEnableNotebookTableClipboard() *cobra.Command { cmd.Flags().Var(&patchEnableNotebookTableClipboardJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "patch-enable-notebook-table-clipboard" - cmd.Short = `Update the Results Table Clipboard features setting.` - cmd.Long = `Update the Results Table Clipboard features setting. + cmd.Short = `*Public Preview* Update the Results Table Clipboard features setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the Results Table Clipboard features setting. Updates the Results Table Clipboard features setting. The model follows eventual consistency, which means the get after the update operation might receive stale values for some time.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/enable-results-downloading/enable-results-downloading.go b/cmd/workspace/enable-results-downloading/enable-results-downloading.go index efec5fecf82..8fe558e306f 100755 --- a/cmd/workspace/enable-results-downloading/enable-results-downloading.go +++ b/cmd/workspace/enable-results-downloading/enable-results-downloading.go @@ -20,12 +20,18 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "enable-results-downloading", - Short: `Controls whether users can download notebook results.`, - Long: `Controls whether users can download notebook results. By default, this setting + Short: `*Public Preview* Controls whether users can download notebook results.`, + Long: `This command is in Public Preview and may change without notice. + +Controls whether users can download notebook results. By default, this setting is enabled.`, RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGetEnableResultsDownloading()) cmd.AddCommand(newPatchEnableResultsDownloading()) @@ -50,12 +56,16 @@ func newGetEnableResultsDownloading() *cobra.Command { cmd := &cobra.Command{} cmd.Use = "get-enable-results-downloading" - cmd.Short = `Get the Notebook results download setting.` - cmd.Long = `Get the Notebook results download setting. + cmd.Short = `*Public Preview* Get the Notebook results download setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the Notebook results download setting. Gets the Notebook results download setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -99,14 +109,18 @@ func newPatchEnableResultsDownloading() *cobra.Command { cmd.Flags().Var(&patchEnableResultsDownloadingJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "patch-enable-results-downloading" - cmd.Short = `Update the Notebook results download setting.` - cmd.Long = `Update the Notebook results download setting. + cmd.Short = `*Public Preview* Update the Notebook results download setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the Notebook results download setting. Updates the Notebook results download setting. The model follows eventual consistency, which means the get after the update operation might receive stale values for some time.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/enhanced-security-monitoring/enhanced-security-monitoring.go b/cmd/workspace/enhanced-security-monitoring/enhanced-security-monitoring.go index 7582c7f363e..7beea5f4431 100755 --- a/cmd/workspace/enhanced-security-monitoring/enhanced-security-monitoring.go +++ b/cmd/workspace/enhanced-security-monitoring/enhanced-security-monitoring.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "enhanced-security-monitoring", - Short: `Controls whether enhanced security monitoring is enabled for the current workspace.`, - Long: `Controls whether enhanced security monitoring is enabled for the current + Short: `*Public Preview* Controls whether enhanced security monitoring is enabled for the current workspace.`, + Long: `This command is in Public Preview and may change without notice. + +Controls whether enhanced security monitoring is enabled for the current workspace. If the compliance security profile is enabled, this is automatically enabled. By default, it is disabled. However, if the compliance security profile is enabled, this is automatically enabled. @@ -31,6 +33,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newUpdate()) @@ -60,12 +66,16 @@ func newGet() *cobra.Command { cmd.Flags().StringVar(&getReq.Etag, "etag", getReq.Etag, `etag used for versioning.`) cmd.Use = "get" - cmd.Short = `Get the enhanced security monitoring setting.` - cmd.Long = `Get the enhanced security monitoring setting. + cmd.Short = `*Public Preview* Get the enhanced security monitoring setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the enhanced security monitoring setting. Gets the enhanced security monitoring setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -115,8 +125,10 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update" - cmd.Short = `Update the enhanced security monitoring setting.` - cmd.Long = `Update the enhanced security monitoring setting. + cmd.Short = `*Public Preview* Update the enhanced security monitoring setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the enhanced security monitoring setting. Updates the enhanced security monitoring setting for the workspace. A fresh etag needs to be provided in PATCH requests (as part of the setting field). @@ -125,6 +137,8 @@ func newUpdate() *cobra.Command { the request must be retried by using the fresh etag in the 409 response.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/entity-tag-assignments/entity-tag-assignments.go b/cmd/workspace/entity-tag-assignments/entity-tag-assignments.go index b29ac06da3b..d3e98174a93 100755 --- a/cmd/workspace/entity-tag-assignments/entity-tag-assignments.go +++ b/cmd/workspace/entity-tag-assignments/entity-tag-assignments.go @@ -30,6 +30,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -87,6 +91,8 @@ func newCreate() *cobra.Command { ENTITY_TYPE: The type of the entity to which the tag is assigned.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -183,6 +189,8 @@ func newDelete() *cobra.Command { TAG_KEY: Required. The key of the tag to delete` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -243,6 +251,8 @@ func newGet() *cobra.Command { TAG_KEY: Required. The key of the tag` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -321,6 +331,8 @@ func newList() *cobra.Command { ENTITY_NAME: The fully qualified name of the entity to which the tag is assigned` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -411,6 +423,8 @@ func newUpdate() *cobra.Command { future.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(4) diff --git a/cmd/workspace/environments/environments.go b/cmd/workspace/environments/environments.go index 385467dffd4..46de012fefc 100755 --- a/cmd/workspace/environments/environments.go +++ b/cmd/workspace/environments/environments.go @@ -35,6 +35,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreateWorkspaceBaseEnvironment()) cmd.AddCommand(newDeleteWorkspaceBaseEnvironment()) @@ -102,6 +106,8 @@ func newCreateWorkspaceBaseEnvironment() *cobra.Command { DISPLAY_NAME: Human-readable display name for the workspace base environment.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -213,6 +219,8 @@ func newDeleteWorkspaceBaseEnvironment() *cobra.Command { Format: workspace-base-environments/{workspace_base_environment}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -272,6 +280,8 @@ func newGetDefaultWorkspaceBaseEnvironment() *cobra.Command { default-workspace-base-environment` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -330,6 +340,8 @@ func newGetOperation() *cobra.Command { NAME: The name of the operation resource.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -388,6 +400,8 @@ func newGetWorkspaceBaseEnvironment() *cobra.Command { Format: workspace-base-environments/{workspace_base_environment}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -455,6 +469,8 @@ func newListWorkspaceBaseEnvironments() *cobra.Command { Lists all WorkspaceBaseEnvironments in the workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -529,6 +545,8 @@ func newRefreshWorkspaceBaseEnvironment() *cobra.Command { Format: workspace-base-environments/{workspace_base_environment}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -635,6 +653,8 @@ func newUpdateDefaultWorkspaceBaseEnvironment() *cobra.Command { explicitly — the wildcard '*' cannot be used to unset fields.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -732,6 +752,8 @@ func newUpdateWorkspaceBaseEnvironment() *cobra.Command { DISPLAY_NAME: Human-readable display name for the workspace base environment.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/experiments/experiments.go b/cmd/workspace/experiments/experiments.go index 5f24b7e95bf..23b9176cba7 100755 --- a/cmd/workspace/experiments/experiments.go +++ b/cmd/workspace/experiments/experiments.go @@ -34,6 +34,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreateExperiment()) cmd.AddCommand(newCreateLoggedModel()) @@ -118,6 +122,8 @@ func newCreateExperiment() *cobra.Command { NAME: Experiment name.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -203,6 +209,8 @@ func newCreateLoggedModel() *cobra.Command { EXPERIMENT_ID: The ID of the experiment that owns the model.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -290,6 +298,8 @@ func newCreateRun() *cobra.Command { execution.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -363,6 +373,8 @@ func newDeleteExperiment() *cobra.Command { EXPERIMENT_ID: ID of the associated experiment.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -438,6 +450,8 @@ func newDeleteLoggedModel() *cobra.Command { MODEL_ID: The ID of the logged model to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -493,6 +507,8 @@ func newDeleteLoggedModelTag() *cobra.Command { TAG_KEY: The tag key.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -553,6 +569,8 @@ func newDeleteRun() *cobra.Command { RUN_ID: ID of the run to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -640,6 +658,8 @@ func newDeleteRuns() *cobra.Command { deleted.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -730,6 +750,8 @@ func newDeleteTag() *cobra.Command { KEY: Name of the tag. Maximum size is 255 bytes. Must be provided.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -815,6 +837,8 @@ func newFinalizeLoggedModel() *cobra.Command { Supported values: [LOGGED_MODEL_PENDING, LOGGED_MODEL_READY, LOGGED_MODEL_UPLOAD_FAILED]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -906,6 +930,8 @@ func newGetByName() *cobra.Command { EXPERIMENT_NAME: Name of the associated experiment.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -963,6 +989,8 @@ func newGetExperiment() *cobra.Command { EXPERIMENT_ID: ID of the associated experiment.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1035,6 +1063,8 @@ func newGetHistory() *cobra.Command { METRIC_KEY: Name of the metric.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1093,6 +1123,8 @@ func newGetLoggedModel() *cobra.Command { MODEL_ID: The ID of the logged model to retrieve.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1150,6 +1182,8 @@ func newGetPermissionLevels() *cobra.Command { EXPERIMENT_ID: The experiment for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1208,6 +1242,8 @@ func newGetPermissions() *cobra.Command { EXPERIMENT_ID: The experiment for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1272,6 +1308,8 @@ func newGetRun() *cobra.Command { RUN_ID: ID of the run to fetch. Must be provided.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1346,6 +1384,8 @@ func newListArtifacts() *cobra.Command { API](/api/workspace/files/listdirectorycontents).` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1415,6 +1455,8 @@ func newListExperiments() *cobra.Command { Gets a list of all experiments.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1520,6 +1562,8 @@ func newLogBatch() *cobra.Command { * Parameter and tag values can be up to 250 characters in length` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1593,6 +1637,8 @@ func newLogInputs() *cobra.Command { RUN_ID: ID of the run to log under` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1678,6 +1724,8 @@ func newLogLoggedModelParams() *cobra.Command { MODEL_ID: The ID of the logged model to log params for.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1760,6 +1808,8 @@ func newLogMetric() *cobra.Command { TIMESTAMP: Unix timestamp in milliseconds at the time metric was logged.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1858,6 +1908,8 @@ func newLogModel() *cobra.Command { Log a model to an MLflow Run.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1930,6 +1982,8 @@ func newLogOutputs() *cobra.Command { RUN_ID: The ID of the Run from which to log outputs.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2017,6 +2071,8 @@ func newLogParam() *cobra.Command { VALUE: String value of the param being logged. Maximum size is 500 bytes.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2105,6 +2161,8 @@ func newRestoreExperiment() *cobra.Command { EXPERIMENT_ID: ID of the associated experiment.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2189,6 +2247,8 @@ func newRestoreRun() *cobra.Command { RUN_ID: ID of the run to restore.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2276,6 +2336,8 @@ func newRestoreRuns() *cobra.Command { restored.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2377,6 +2439,8 @@ func newSearchExperiments() *cobra.Command { Searches for experiments that satisfy specified search criteria.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -2455,6 +2519,8 @@ func newSearchLoggedModels() *cobra.Command { Search for Logged Models that satisfy specified search criteria.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -2542,6 +2608,8 @@ func newSearchRuns() *cobra.Command { Search expressions can use mlflowMetric and mlflowParam keys.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -2619,6 +2687,8 @@ func newSetExperimentTag() *cobra.Command { supported.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2705,6 +2775,8 @@ func newSetLoggedModelTags() *cobra.Command { MODEL_ID: The ID of the logged model to set the tags on.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -2780,6 +2852,8 @@ func newSetPermissions() *cobra.Command { EXPERIMENT_ID: The experiment for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -2858,6 +2932,8 @@ func newSetTag() *cobra.Command { supported.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2943,6 +3019,8 @@ func newUpdateExperiment() *cobra.Command { EXPERIMENT_ID: ID of the associated experiment.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -3026,6 +3104,8 @@ func newUpdatePermissions() *cobra.Command { EXPERIMENT_ID: The experiment for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -3101,6 +3181,8 @@ func newUpdateRun() *cobra.Command { Updates run metadata.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/workspace/external-lineage/external-lineage.go b/cmd/workspace/external-lineage/external-lineage.go index 9c871b5defc..c724701a0d9 100755 --- a/cmd/workspace/external-lineage/external-lineage.go +++ b/cmd/workspace/external-lineage/external-lineage.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "external-lineage", - Short: `External Lineage APIs enable defining and managing lineage relationships between Databricks objects and external systems.`, - Long: `External Lineage APIs enable defining and managing lineage relationships + Short: `*Public Preview* External Lineage APIs enable defining and managing lineage relationships between Databricks objects and external systems.`, + Long: `This command is in Public Preview and may change without notice. + +External Lineage APIs enable defining and managing lineage relationships between Databricks objects and external systems. These APIs allow users to capture data flows connecting Databricks tables, models, and file paths with external metadata objects. @@ -32,6 +34,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreateExternalLineageRelationship()) cmd.AddCommand(newDeleteExternalLineageRelationship()) @@ -68,8 +74,10 @@ func newCreateExternalLineageRelationship() *cobra.Command { // TODO: map via StringToStringVar: properties cmd.Use = "create-external-lineage-relationship SOURCE TARGET" - cmd.Short = `Create an external lineage relationship.` - cmd.Long = `Create an external lineage relationship. + cmd.Short = `*Public Preview* Create an external lineage relationship.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create an external lineage relationship. Creates an external lineage relationship between a Databricks or external metadata object and another external metadata object. @@ -79,6 +87,8 @@ func newCreateExternalLineageRelationship() *cobra.Command { TARGET: Target object of the external lineage relationship.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -162,13 +172,17 @@ func newDeleteExternalLineageRelationship() *cobra.Command { cmd.Flags().Var(&deleteExternalLineageRelationshipJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "delete-external-lineage-relationship" - cmd.Short = `Delete an external lineage relationship.` - cmd.Long = `Delete an external lineage relationship. + cmd.Short = `*Public Preview* Delete an external lineage relationship.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete an external lineage relationship. Deletes an external lineage relationship between a Databricks or external metadata object and another external metadata object.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -240,13 +254,17 @@ func newListExternalLineageRelationships() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-external-lineage-relationships" - cmd.Short = `List external lineage relationships.` - cmd.Long = `List external lineage relationships. + cmd.Short = `*Public Preview* List external lineage relationships.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List external lineage relationships. Lists external lineage relationships of a Databricks object or external metadata given a supplied direction.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -313,8 +331,10 @@ func newUpdateExternalLineageRelationship() *cobra.Command { // TODO: map via StringToStringVar: properties cmd.Use = "update-external-lineage-relationship UPDATE_MASK SOURCE TARGET" - cmd.Short = `Update an external lineage relationship.` - cmd.Long = `Update an external lineage relationship. + cmd.Short = `*Public Preview* Update an external lineage relationship.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update an external lineage relationship. Updates an external lineage relationship between a Databricks or external metadata object and another external metadata object. @@ -335,6 +355,8 @@ func newUpdateExternalLineageRelationship() *cobra.Command { TARGET: Target object of the external lineage relationship.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/external-locations/external-locations.go b/cmd/workspace/external-locations/external-locations.go index cd9c1b2ab0f..8eee537d08e 100755 --- a/cmd/workspace/external-locations/external-locations.go +++ b/cmd/workspace/external-locations/external-locations.go @@ -38,6 +38,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -93,6 +97,8 @@ func newCreate() *cobra.Command { CREDENTIAL_NAME: Name of the storage credential used with this location.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -180,6 +186,8 @@ func newDelete() *cobra.Command { NAME: Name of the external location.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -240,6 +248,8 @@ func newGet() *cobra.Command { NAME: Name of the external location.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -321,6 +331,8 @@ func newList() *cobra.Command { indication that the end of results has been reached.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -399,6 +411,8 @@ func newUpdate() *cobra.Command { NAME: Name of the external location.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/external-metadata/external-metadata.go b/cmd/workspace/external-metadata/external-metadata.go index 79a9c335599..d51817902d1 100755 --- a/cmd/workspace/external-metadata/external-metadata.go +++ b/cmd/workspace/external-metadata/external-metadata.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "external-metadata", - Short: `External Metadata objects enable customers to register and manage metadata about external systems within Unity Catalog.`, - Long: `External Metadata objects enable customers to register and manage metadata + Short: `*Public Preview* External Metadata objects enable customers to register and manage metadata about external systems within Unity Catalog.`, + Long: `This command is in Public Preview and may change without notice. + +External Metadata objects enable customers to register and manage metadata about external systems within Unity Catalog. These APIs provide a standardized way to create, update, retrieve, list, and @@ -32,6 +34,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreateExternalMetadata()) cmd.AddCommand(newDeleteExternalMetadata()) @@ -72,8 +78,10 @@ func newCreateExternalMetadata() *cobra.Command { cmd.Flags().StringVar(&createExternalMetadataReq.ExternalMetadata.Url, "url", createExternalMetadataReq.ExternalMetadata.Url, `URL associated with the external metadata object.`) cmd.Use = "create-external-metadata NAME SYSTEM_TYPE ENTITY_TYPE" - cmd.Short = `Create an external metadata object.` - cmd.Long = `Create an external metadata object. + cmd.Short = `*Public Preview* Create an external metadata object.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create an external metadata object. Creates a new external metadata object in the parent metastore if the caller is a metastore admin or has the **CREATE_EXTERNAL_METADATA** privilege. Grants @@ -110,6 +118,8 @@ func newCreateExternalMetadata() *cobra.Command { ENTITY_TYPE: Type of entity within the external system.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -189,14 +199,18 @@ func newDeleteExternalMetadata() *cobra.Command { var deleteExternalMetadataReq catalog.DeleteExternalMetadataRequest cmd.Use = "delete-external-metadata NAME" - cmd.Short = `Delete an external metadata object.` - cmd.Long = `Delete an external metadata object. + cmd.Short = `*Public Preview* Delete an external metadata object.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete an external metadata object. Deletes the external metadata object that matches the supplied name. The caller must be a metastore admin, the owner of the external metadata object, or a user that has the **MANAGE** privilege.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -244,14 +258,18 @@ func newGetExternalMetadata() *cobra.Command { var getExternalMetadataReq catalog.GetExternalMetadataRequest cmd.Use = "get-external-metadata NAME" - cmd.Short = `Get an external metadata object.` - cmd.Long = `Get an external metadata object. + cmd.Short = `*Public Preview* Get an external metadata object.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get an external metadata object. Gets the specified external metadata object in a metastore. The caller must be a metastore admin, the owner of the external metadata object, or a user that has the **BROWSE** privilege.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -313,8 +331,10 @@ func newListExternalMetadata() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-external-metadata" - cmd.Short = `List external metadata objects.` - cmd.Long = `List external metadata objects. + cmd.Short = `*Public Preview* List external metadata objects.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List external metadata objects. Gets an array of external metadata objects in the metastore. If the caller is the metastore admin, all external metadata objects will be retrieved. @@ -323,6 +343,8 @@ func newListExternalMetadata() *cobra.Command { elements in the array.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -382,8 +404,10 @@ func newUpdateExternalMetadata() *cobra.Command { cmd.Flags().StringVar(&updateExternalMetadataReq.ExternalMetadata.Url, "url", updateExternalMetadataReq.ExternalMetadata.Url, `URL associated with the external metadata object.`) cmd.Use = "update-external-metadata NAME UPDATE_MASK SYSTEM_TYPE ENTITY_TYPE" - cmd.Short = `Update an external metadata object.` - cmd.Long = `Update an external metadata object. + cmd.Short = `*Public Preview* Update an external metadata object.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update an external metadata object. Updates the external metadata object that matches the supplied name. The caller can only update either the owner or other metadata fields in one @@ -433,6 +457,8 @@ func newUpdateExternalMetadata() *cobra.Command { ENTITY_TYPE: Type of entity within the external system.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/feature-engineering/feature-engineering.go b/cmd/workspace/feature-engineering/feature-engineering.go index d89f65f7d4e..fe4c98e74dc 100755 --- a/cmd/workspace/feature-engineering/feature-engineering.go +++ b/cmd/workspace/feature-engineering/feature-engineering.go @@ -31,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newCreateFeature()) cmd.AddCommand(newCreateKafkaConfig()) @@ -94,6 +98,8 @@ func newCreateFeature() *cobra.Command { FUNCTION: The function by which the feature is computed.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -202,6 +208,8 @@ func newCreateKafkaConfig() *cobra.Command { AUTH_CONFIG: Authentication configuration for connection to topics.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -305,6 +313,8 @@ func newCreateMaterializedFeature() *cobra.Command { FEATURE_NAME: The full name of the feature in Unity Catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -383,6 +393,8 @@ func newDeleteFeature() *cobra.Command { FULL_NAME: Name of the feature to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -441,6 +453,8 @@ func newDeleteKafkaConfig() *cobra.Command { NAME: Name of the Kafka config to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -495,6 +509,8 @@ func newDeleteMaterializedFeature() *cobra.Command { MATERIALIZED_FEATURE_ID: The ID of the materialized feature to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -551,6 +567,8 @@ func newGetFeature() *cobra.Command { FULL_NAME: Name of the feature to get.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -610,6 +628,8 @@ func newGetKafkaConfig() *cobra.Command { NAME: Name of the Kafka config to get.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -665,6 +685,8 @@ func newGetMaterializedFeature() *cobra.Command { MATERIALIZED_FEATURE_ID: The ID of the materialized feature.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -732,6 +754,8 @@ func newListFeatures() *cobra.Command { List Features.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -802,6 +826,8 @@ func newListKafkaConfigs() *cobra.Command { config can delete it.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -869,6 +895,8 @@ func newListMaterializedFeatures() *cobra.Command { cmd.Long = `List materialized features.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -942,6 +970,8 @@ func newUpdateFeature() *cobra.Command { FUNCTION: The function by which the feature is computed.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1050,6 +1080,8 @@ func newUpdateKafkaConfig() *cobra.Command { AUTH_CONFIG: Authentication configuration for connection to topics.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1160,6 +1192,8 @@ func newUpdateMaterializedFeature() *cobra.Command { FEATURE_NAME: The full name of the feature in Unity Catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/feature-store/feature-store.go b/cmd/workspace/feature-store/feature-store.go index 4b1a7a0150c..dbd4e581a59 100755 --- a/cmd/workspace/feature-store/feature-store.go +++ b/cmd/workspace/feature-store/feature-store.go @@ -35,6 +35,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newCreateOnlineStore()) cmd.AddCommand(newDeleteOnlineStore()) @@ -84,6 +88,8 @@ func newCreateOnlineStore() *cobra.Command { "CU_8".` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -163,6 +169,8 @@ func newDeleteOnlineStore() *cobra.Command { NAME: Name of the online store to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -219,6 +227,8 @@ func newDeleteOnlineTable() *cobra.Command { ONLINE_TABLE_NAME: The full three-part (catalog, schema, table) name of the online table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -273,6 +283,8 @@ func newGetOnlineStore() *cobra.Command { NAME: Name of the online store to get.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -338,6 +350,8 @@ func newListOnlineStores() *cobra.Command { cmd.Long = `List Online Feature Stores.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -397,6 +411,8 @@ func newPublishTable() *cobra.Command { SOURCE_TABLE_NAME: The full three-part (catalog, schema, table) name of the source table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -477,6 +493,8 @@ func newUpdateOnlineStore() *cobra.Command { "CU_8".` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/forecasting/forecasting.go b/cmd/workspace/forecasting/forecasting.go index 7802776a93d..c284a717bf6 100755 --- a/cmd/workspace/forecasting/forecasting.go +++ b/cmd/workspace/forecasting/forecasting.go @@ -31,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newCreateExperiment()) cmd.AddCommand(newGetExperiment()) @@ -103,6 +107,8 @@ func newCreateExperiment() *cobra.Command { the model should forecast.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -209,6 +215,8 @@ func newGetExperiment() *cobra.Command { EXPERIMENT_ID: The unique ID of a forecasting experiment` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/functions/functions.go b/cmd/workspace/functions/functions.go index 7c02b25fb85..fc70bd717ca 100755 --- a/cmd/workspace/functions/functions.go +++ b/cmd/workspace/functions/functions.go @@ -31,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -76,6 +80,8 @@ func newCreate() *cobra.Command { and **CREATE_FUNCTION** on the function's parent schema` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -149,6 +155,8 @@ func newDelete() *cobra.Command { __catalog_name__.__schema_name__.__function__name__) .` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -226,6 +234,8 @@ func newGet() *cobra.Command { __catalog_name__.__schema_name__.__function__name__).` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -325,6 +335,8 @@ func newList() *cobra.Command { SCHEMA_NAME: Parent schema of functions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -399,6 +411,8 @@ func newUpdate() *cobra.Command { __catalog_name__.__schema_name__.__function__name__).` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/genie/genie.go b/cmd/workspace/genie/genie.go index 08879af3ab5..0376b717912 100755 --- a/cmd/workspace/genie/genie.go +++ b/cmd/workspace/genie/genie.go @@ -31,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreateMessage()) cmd.AddCommand(newCreateMessageComment()) @@ -106,6 +110,8 @@ func newCreateMessage() *cobra.Command { CONTENT: User message content.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -192,8 +198,10 @@ func newCreateMessageComment() *cobra.Command { cmd.Flags().Var(&createMessageCommentJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "create-message-comment SPACE_ID CONVERSATION_ID MESSAGE_ID CONTENT" - cmd.Short = `Create message comment.` - cmd.Long = `Create message comment. + cmd.Short = `*Public Preview* Create message comment.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create message comment. Create a comment on a conversation message. @@ -204,6 +212,8 @@ func newCreateMessageComment() *cobra.Command { CONTENT: Comment text content.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -297,6 +307,8 @@ func newCreateSpace() *cobra.Command { components.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -379,6 +391,8 @@ func newDeleteConversation() *cobra.Command { CONVERSATION_ID: The ID of the conversation to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -438,6 +452,8 @@ func newDeleteConversationMessage() *cobra.Command { MESSAGE_ID: The ID associated with the message to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -500,6 +516,8 @@ func newExecuteMessageAttachmentQuery() *cobra.Command { ATTACHMENT_ID: Attachment ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(4) @@ -566,6 +584,8 @@ func newExecuteMessageQuery() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -650,6 +670,8 @@ func newGenerateDownloadFullQueryResult() *cobra.Command { ATTACHMENT_ID: Attachment ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(4) @@ -706,8 +728,10 @@ func newGenieCreateEvalRun() *cobra.Command { // TODO: array: benchmark_question_ids cmd.Use = "genie-create-eval-run SPACE_ID" - cmd.Short = `Create eval run for benchmarks.` - cmd.Long = `Create eval run for benchmarks. + cmd.Short = `*Beta* Create eval run for benchmarks.` + cmd.Long = `This command is in Beta and may change without notice. + +Create eval run for benchmarks. Create and run evaluations for multiple benchmark questions in a Genie space. @@ -716,6 +740,8 @@ func newGenieCreateEvalRun() *cobra.Command { executed.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -776,8 +802,10 @@ func newGenieGetEvalResultDetails() *cobra.Command { var genieGetEvalResultDetailsReq dashboards.GenieGetEvalResultDetailsRequest cmd.Use = "genie-get-eval-result-details SPACE_ID EVAL_RUN_ID RESULT_ID" - cmd.Short = `Get benchmark evaluation result details.` - cmd.Long = `Get benchmark evaluation result details. + cmd.Short = `*Beta* Get benchmark evaluation result details.` + cmd.Long = `This command is in Beta and may change without notice. + +Get benchmark evaluation result details. Get details for evaluation results. @@ -788,6 +816,8 @@ func newGenieGetEvalResultDetails() *cobra.Command { RESULT_ID: The unique identifier for the evaluation result.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -838,8 +868,10 @@ func newGenieGetEvalRun() *cobra.Command { var genieGetEvalRunReq dashboards.GenieGetEvalRunRequest cmd.Use = "genie-get-eval-run SPACE_ID EVAL_RUN_ID" - cmd.Short = `Get benchmark evaluation run.` - cmd.Long = `Get benchmark evaluation run. + cmd.Short = `*Beta* Get benchmark evaluation run.` + cmd.Long = `This command is in Beta and may change without notice. + +Get benchmark evaluation run. Get evaluation run details. @@ -849,6 +881,8 @@ func newGenieGetEvalRun() *cobra.Command { EVAL_RUN_ID: ` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -901,8 +935,10 @@ func newGenieListEvalResults() *cobra.Command { cmd.Flags().StringVar(&genieListEvalResultsReq.PageToken, "page-token", genieListEvalResultsReq.PageToken, `Opaque token to retrieve the next page of results.`) cmd.Use = "genie-list-eval-results SPACE_ID EVAL_RUN_ID" - cmd.Short = `List benchmark evaluation results.` - cmd.Long = `List benchmark evaluation results. + cmd.Short = `*Beta* List benchmark evaluation results.` + cmd.Long = `This command is in Beta and may change without notice. + +List benchmark evaluation results. List evaluation results for a specific evaluation run. @@ -912,6 +948,8 @@ func newGenieListEvalResults() *cobra.Command { EVAL_RUN_ID: The unique identifier for the evaluation run.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -964,8 +1002,10 @@ func newGenieListEvalRuns() *cobra.Command { cmd.Flags().StringVar(&genieListEvalRunsReq.PageToken, "page-token", genieListEvalRunsReq.PageToken, `Token to get the next page of results.`) cmd.Use = "genie-list-eval-runs SPACE_ID" - cmd.Short = `List all evaluation runs in the space.` - cmd.Long = `List all evaluation runs in the space. + cmd.Short = `*Beta* List all evaluation runs in the space.` + cmd.Long = `This command is in Beta and may change without notice. + +List all evaluation runs in the space. Lists all evaluation runs in a space. @@ -974,6 +1014,8 @@ func newGenieListEvalRuns() *cobra.Command { located.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1060,6 +1102,8 @@ func newGetDownloadFullQueryResult() *cobra.Command { DOWNLOAD_ID_SIGNATURE: JWT signature for the download_id to ensure secure access to query results` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(6) @@ -1126,6 +1170,8 @@ func newGetMessage() *cobra.Command { conversation.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -1190,6 +1236,8 @@ func newGetMessageAttachmentQueryResult() *cobra.Command { ATTACHMENT_ID: Attachment ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(4) @@ -1256,6 +1304,8 @@ func newGetMessageQueryResult() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -1322,6 +1372,8 @@ func newGetMessageQueryResultByAttachment() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(4) @@ -1384,6 +1436,8 @@ func newGetSpace() *cobra.Command { SPACE_ID: The ID associated with the Genie space` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1435,8 +1489,10 @@ func newListConversationComments() *cobra.Command { cmd.Flags().StringVar(&listConversationCommentsReq.PageToken, "page-token", listConversationCommentsReq.PageToken, `Pagination token for getting the next page of results.`) cmd.Use = "list-conversation-comments SPACE_ID CONVERSATION_ID" - cmd.Short = `List conversation comments.` - cmd.Long = `List conversation comments. + cmd.Short = `*Public Preview* List conversation comments.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List conversation comments. List all comments across all messages in a conversation. @@ -1445,6 +1501,8 @@ func newListConversationComments() *cobra.Command { CONVERSATION_ID: The ID associated with the conversation.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -1507,6 +1565,8 @@ func newListConversationMessages() *cobra.Command { CONVERSATION_ID: The ID of the conversation to list messages from` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -1569,6 +1629,8 @@ func newListConversations() *cobra.Command { SPACE_ID: The ID of the Genie space to retrieve conversations from.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1620,8 +1682,10 @@ func newListMessageComments() *cobra.Command { cmd.Flags().StringVar(&listMessageCommentsReq.PageToken, "page-token", listMessageCommentsReq.PageToken, `Pagination token for getting the next page of results.`) cmd.Use = "list-message-comments SPACE_ID CONVERSATION_ID MESSAGE_ID" - cmd.Short = `List message comments.` - cmd.Long = `List message comments. + cmd.Short = `*Public Preview* List message comments.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List message comments. List comments on a specific conversation message. @@ -1631,6 +1695,8 @@ func newListMessageComments() *cobra.Command { MESSAGE_ID: The ID associated with the message.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -1690,6 +1756,8 @@ func newListSpaces() *cobra.Command { Get list of Genie Spaces.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1754,6 +1822,8 @@ func newSendMessageFeedback() *cobra.Command { Supported values: [NEGATIVE, NONE, POSITIVE]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1849,6 +1919,8 @@ func newStartConversation() *cobra.Command { CONTENT: The text of the message that starts the conversation.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1940,6 +2012,8 @@ func newTrashSpace() *cobra.Command { SPACE_ID: The ID associated with the Genie space to be sent to the trash.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1990,6 +2064,7 @@ func newUpdateSpace() *cobra.Command { cmd.Flags().Var(&updateSpaceJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Flags().StringVar(&updateSpaceReq.Description, "description", updateSpaceReq.Description, `Optional description.`) + cmd.Flags().StringVar(&updateSpaceReq.Etag, "etag", updateSpaceReq.Etag, `ETag returned by a previous GET or UPDATE.`) cmd.Flags().StringVar(&updateSpaceReq.SerializedSpace, "serialized-space", updateSpaceReq.SerializedSpace, `The contents of the Genie Space in serialized string form (full replacement).`) cmd.Flags().StringVar(&updateSpaceReq.Title, "title", updateSpaceReq.Title, `Optional title override.`) cmd.Flags().StringVar(&updateSpaceReq.WarehouseId, "warehouse-id", updateSpaceReq.WarehouseId, `Optional warehouse override.`) @@ -2004,6 +2079,8 @@ func newUpdateSpace() *cobra.Command { SPACE_ID: Genie space ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/git-credentials/git-credentials.go b/cmd/workspace/git-credentials/git-credentials.go index b139272f0f9..9b5618b501d 100755 --- a/cmd/workspace/git-credentials/git-credentials.go +++ b/cmd/workspace/git-credentials/git-credentials.go @@ -31,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -79,11 +83,15 @@ func newCreate() *cobra.Command { Arguments: GIT_PROVIDER: Git provider. This field is case-insensitive. The available Git providers - are gitHub, bitbucketCloud, gitLab, azureDevOpsServices, - gitHubEnterprise, bitbucketServer, gitLabEnterpriseEdition and - awsCodeCommit.` + are gitHub, bitbucketCloud, gitLab, azureDevOpsServices (Azure + DevOps Services, including Microsoft Entra ID authentication), + gitHubEnterprise, bitbucketServer (Bitbucket Data Center), + gitLabEnterpriseEdition (GitLab Self-Managed), and awsCodeCommit + (deprecated by AWS, not accepting new customers).` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -164,6 +172,8 @@ func newDelete() *cobra.Command { CREDENTIAL_ID: The ID for the corresponding credential to access.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -237,6 +247,8 @@ func newGet() *cobra.Command { CREDENTIAL_ID: The ID for the corresponding credential to access.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -317,6 +329,8 @@ func newList() *cobra.Command { Lists the calling user's Git credentials.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -384,11 +398,15 @@ func newUpdate() *cobra.Command { Arguments: CREDENTIAL_ID: The ID for the corresponding credential to access. GIT_PROVIDER: Git provider. This field is case-insensitive. The available Git providers - are gitHub, bitbucketCloud, gitLab, azureDevOpsServices, - gitHubEnterprise, bitbucketServer, gitLabEnterpriseEdition and - awsCodeCommit.` + are gitHub, bitbucketCloud, gitLab, azureDevOpsServices (Azure + DevOps Services, including Microsoft Entra ID authentication), + gitHubEnterprise, bitbucketServer (Bitbucket Data Center), + gitLabEnterpriseEdition (GitLab Self-Managed), and awsCodeCommit + (deprecated by AWS, not accepting new customers).` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/global-init-scripts/global-init-scripts.go b/cmd/workspace/global-init-scripts/global-init-scripts.go index c5a10c1e479..3097c739cf1 100755 --- a/cmd/workspace/global-init-scripts/global-init-scripts.go +++ b/cmd/workspace/global-init-scripts/global-init-scripts.go @@ -34,6 +34,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -80,6 +84,8 @@ func newCreate() *cobra.Command { SCRIPT: The Base64-encoded content of the script.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -161,6 +167,8 @@ func newDelete() *cobra.Command { SCRIPT_ID: The ID of the global init script.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -229,6 +237,8 @@ func newGet() *cobra.Command { SCRIPT_ID: The ID of the global init script.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -304,6 +314,8 @@ func newList() *cobra.Command { script](:method:globalinitscripts/get) operation.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -365,6 +377,8 @@ func newUpdate() *cobra.Command { SCRIPT: The Base64-encoded content of the script.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/grants/grants.go b/cmd/workspace/grants/grants.go index a92c3edfbd3..b7d40343867 100755 --- a/cmd/workspace/grants/grants.go +++ b/cmd/workspace/grants/grants.go @@ -34,6 +34,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newGetEffective()) @@ -84,6 +88,8 @@ func newGet() *cobra.Command { FULL_NAME: Full name of securable.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -156,6 +162,8 @@ func newGetEffective() *cobra.Command { FULL_NAME: Full name of securable.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -220,6 +228,8 @@ func newUpdate() *cobra.Command { FULL_NAME: Full name of securable.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/workspace/groups-v2/groups-v2.go b/cmd/workspace/groups-v2/groups-v2.go index bc51d1a4927..64b5439cb7a 100755 --- a/cmd/workspace/groups-v2/groups-v2.go +++ b/cmd/workspace/groups-v2/groups-v2.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "groups-v2", - Short: `Groups simplify identity management, making it easier to assign access to Databricks workspace, data, and other securable objects.`, - Long: `Groups simplify identity management, making it easier to assign access to + Short: `*Public Preview* Groups simplify identity management, making it easier to assign access to Databricks workspace, data, and other securable objects.`, + Long: `This command is in Public Preview and may change without notice. + +Groups simplify identity management, making it easier to assign access to Databricks workspace, data, and other securable objects. It is best practice to assign access to workspaces and access-control policies @@ -32,6 +34,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -76,13 +82,17 @@ func newCreate() *cobra.Command { // TODO: array: schemas cmd.Use = "create" - cmd.Short = `Create a new group.` - cmd.Long = `Create a new group. + cmd.Short = `*Public Preview* Create a new group.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a new group. Creates a group in the Databricks workspace with a unique name, using the supplied group details.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -142,8 +152,10 @@ func newDelete() *cobra.Command { var deleteReq iam.DeleteGroupRequest cmd.Use = "delete ID" - cmd.Short = `Delete a group.` - cmd.Long = `Delete a group. + cmd.Short = `*Public Preview* Delete a group.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete a group. Deletes a group from the Databricks workspace. @@ -151,6 +163,8 @@ func newDelete() *cobra.Command { ID: Unique ID for a group in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -198,8 +212,10 @@ func newGet() *cobra.Command { var getReq iam.GetGroupRequest cmd.Use = "get ID" - cmd.Short = `Get group details.` - cmd.Long = `Get group details. + cmd.Short = `*Public Preview* Get group details.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get group details. Gets the information for a specific group in the Databricks workspace. @@ -207,6 +223,8 @@ func newGet() *cobra.Command { ID: Unique ID for a group in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -274,12 +292,16 @@ func newList() *cobra.Command { cmd.Flags().Lookup("count").Hidden = true cmd.Use = "list" - cmd.Short = `List group details.` - cmd.Long = `List group details. + cmd.Short = `*Public Preview* List group details.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List group details. Gets all details of the groups associated with the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -335,8 +357,10 @@ func newPatch() *cobra.Command { // TODO: array: schemas cmd.Use = "patch ID" - cmd.Short = `Update group details.` - cmd.Long = `Update group details. + cmd.Short = `*Public Preview* Update group details.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update group details. Partially updates the details of a group. @@ -344,6 +368,8 @@ func newPatch() *cobra.Command { ID: Unique ID in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -415,8 +441,10 @@ func newUpdate() *cobra.Command { // TODO: array: schemas cmd.Use = "update ID" - cmd.Short = `Replace a group.` - cmd.Long = `Replace a group. + cmd.Short = `*Public Preview* Replace a group.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Replace a group. Updates the details of a group by replacing the entire group entity. @@ -424,6 +452,8 @@ func newUpdate() *cobra.Command { ID: Databricks group ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/instance-pools/instance-pools.go b/cmd/workspace/instance-pools/instance-pools.go index e1f69f62a88..9af0ac7714a 100755 --- a/cmd/workspace/instance-pools/instance-pools.go +++ b/cmd/workspace/instance-pools/instance-pools.go @@ -43,6 +43,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -110,6 +114,8 @@ func newCreate() *cobra.Command { :method:clusters/listNodeTypes API call.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -195,6 +201,8 @@ func newDelete() *cobra.Command { INSTANCE_POOL_ID: The instance pool to be terminated.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -304,6 +312,8 @@ func newEdit() *cobra.Command { :method:clusters/listNodeTypes API call.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -387,6 +397,8 @@ func newGet() *cobra.Command { INSTANCE_POOL_ID: The canonical unique identifier for the instance pool.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -456,6 +468,8 @@ func newGetPermissionLevels() *cobra.Command { INSTANCE_POOL_ID: The instance pool for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -526,6 +540,8 @@ func newGetPermissions() *cobra.Command { INSTANCE_POOL_ID: The instance pool for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -598,6 +614,8 @@ func newList() *cobra.Command { Gets a list of instance pools with their statistics.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -657,6 +675,8 @@ func newSetPermissions() *cobra.Command { INSTANCE_POOL_ID: The instance pool for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -744,6 +764,8 @@ func newUpdatePermissions() *cobra.Command { INSTANCE_POOL_ID: The instance pool for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/instance-profiles/instance-profiles.go b/cmd/workspace/instance-profiles/instance-profiles.go index 190ea50fb12..d16a69d0c9d 100755 --- a/cmd/workspace/instance-profiles/instance-profiles.go +++ b/cmd/workspace/instance-profiles/instance-profiles.go @@ -31,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newAdd()) cmd.AddCommand(newEdit()) @@ -80,6 +84,8 @@ func newAdd() *cobra.Command { field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -178,6 +184,8 @@ func newEdit() *cobra.Command { field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -260,6 +268,8 @@ func newList() *cobra.Command { This API is available to all users.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -318,6 +328,8 @@ func newRemove() *cobra.Command { INSTANCE_PROFILE_ARN: The ARN of the instance profile to remove. This field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/ip-access-lists/ip-access-lists.go b/cmd/workspace/ip-access-lists/ip-access-lists.go index 2dfec2fb473..0fd26430b67 100755 --- a/cmd/workspace/ip-access-lists/ip-access-lists.go +++ b/cmd/workspace/ip-access-lists/ip-access-lists.go @@ -46,6 +46,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -108,6 +112,8 @@ func newCreate() *cobra.Command { Supported values: [ALLOW, BLOCK]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -193,6 +199,8 @@ func newDelete() *cobra.Command { IP_ACCESS_LIST_ID: The ID for the corresponding IP access list` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -261,6 +269,8 @@ func newGet() *cobra.Command { IP_ACCESS_LIST_ID: The ID for the corresponding IP access list` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -333,6 +343,8 @@ func newList() *cobra.Command { Gets all IP access lists for the specified workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -405,6 +417,8 @@ func newReplace() *cobra.Command { ENABLED: Specifies whether this IP access list is enabled.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -520,6 +534,8 @@ func newUpdate() *cobra.Command { IP_ACCESS_LIST_ID: The ID for the corresponding IP access list` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/jobs/jobs.go b/cmd/workspace/jobs/jobs.go index 20b1ca221cf..0fb5081bafb 100755 --- a/cmd/workspace/jobs/jobs.go +++ b/cmd/workspace/jobs/jobs.go @@ -44,6 +44,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCancelAllRuns()) cmd.AddCommand(newCancelRun()) @@ -102,6 +106,8 @@ func newCancelAllRuns() *cobra.Command { doesn't prevent new runs from being started.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -179,6 +185,8 @@ func newCancelRun() *cobra.Command { RUN_ID: This field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -292,6 +300,8 @@ func newCreate() *cobra.Command { cmd.Long = `Create a new job.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -360,6 +370,8 @@ func newDelete() *cobra.Command { JOB_ID: The canonical identifier of the job to delete. This field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -459,6 +471,8 @@ func newDeleteRun() *cobra.Command { RUN_ID: ID of the run to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -557,6 +571,8 @@ func newExportRun() *cobra.Command { RUN_ID: The canonical identifier for the run. This field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -641,6 +657,8 @@ func newGet() *cobra.Command { field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -713,6 +731,8 @@ func newGetPermissionLevels() *cobra.Command { JOB_ID: The job for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -783,6 +803,8 @@ func newGetPermissions() *cobra.Command { JOB_ID: The job for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -866,6 +888,8 @@ func newGetRun() *cobra.Command { This field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -947,6 +971,8 @@ func newGetRunOutput() *cobra.Command { RUN_ID: The canonical identifier for the run.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1033,6 +1059,8 @@ func newList() *cobra.Command { Retrieves a list of jobs.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1110,6 +1138,8 @@ func newListRuns() *cobra.Command { List runs in descending order by start time.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1194,6 +1224,8 @@ func newRepairRun() *cobra.Command { RUN_ID: The job run ID of the run to repair. The run must not be in progress.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1310,6 +1342,8 @@ func newReset() *cobra.Command { endpoint](:method:jobs/update) to update job settings partially.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1397,6 +1431,8 @@ func newRunNow() *cobra.Command { JOB_ID: The ID of the job to be executed` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1519,6 +1555,8 @@ func newSetPermissions() *cobra.Command { JOB_ID: The job for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1632,6 +1670,8 @@ func newSubmit() *cobra.Command { POST /jobs/run-now endpoints to create and run a saved job.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1725,6 +1765,8 @@ func newUpdate() *cobra.Command { JOB_ID: The canonical identifier of the job to update. This field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1827,6 +1869,8 @@ func newUpdatePermissions() *cobra.Command { JOB_ID: The job for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/knowledge-assistants/knowledge-assistants.go b/cmd/workspace/knowledge-assistants/knowledge-assistants.go index f72403a61ab..299571c4ae5 100755 --- a/cmd/workspace/knowledge-assistants/knowledge-assistants.go +++ b/cmd/workspace/knowledge-assistants/knowledge-assistants.go @@ -21,25 +21,40 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "knowledge-assistants", - Short: `Manage Knowledge Assistants and related resources.`, - Long: `Manage Knowledge Assistants and related resources.`, + Use: "knowledge-assistants", + Short: `*Beta* Manage Knowledge Assistants and related resources.`, + Long: `This command is in Beta and may change without notice. + +Manage Knowledge Assistants and related resources.`, GroupID: "agentbricks", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + // Add methods + cmd.AddCommand(newCreateExample()) cmd.AddCommand(newCreateKnowledgeAssistant()) cmd.AddCommand(newCreateKnowledgeSource()) + cmd.AddCommand(newDeleteExample()) cmd.AddCommand(newDeleteKnowledgeAssistant()) cmd.AddCommand(newDeleteKnowledgeSource()) + cmd.AddCommand(newGetExample()) cmd.AddCommand(newGetKnowledgeAssistant()) cmd.AddCommand(newGetKnowledgeSource()) + cmd.AddCommand(newGetPermissionLevels()) + cmd.AddCommand(newGetPermissions()) + cmd.AddCommand(newListExamples()) cmd.AddCommand(newListKnowledgeAssistants()) cmd.AddCommand(newListKnowledgeSources()) + cmd.AddCommand(newSetPermissions()) cmd.AddCommand(newSyncKnowledgeSources()) + cmd.AddCommand(newUpdateExample()) cmd.AddCommand(newUpdateKnowledgeAssistant()) cmd.AddCommand(newUpdateKnowledgeSource()) + cmd.AddCommand(newUpdatePermissions()) // Apply optional overrides to this command. for _, fn := range cmdOverrides { @@ -49,6 +64,98 @@ func New() *cobra.Command { return cmd } +// start create-example command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var createExampleOverrides []func( + *cobra.Command, + *knowledgeassistants.CreateExampleRequest, +) + +func newCreateExample() *cobra.Command { + cmd := &cobra.Command{} + + var createExampleReq knowledgeassistants.CreateExampleRequest + createExampleReq.Example = knowledgeassistants.Example{} + var createExampleJson flags.JsonFlag + + cmd.Flags().Var(&createExampleJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + // TODO: array: guidelines + cmd.Flags().StringVar(&createExampleReq.Example.Name, "name", createExampleReq.Example.Name, `Full resource name: knowledge-assistants/{knowledge_assistant_id}/examples/{example_id}.`) + + cmd.Use = "create-example PARENT QUESTION" + cmd.Short = `*Beta* Create an example for a Knowledge Assistant.` + cmd.Long = `This command is in Beta and may change without notice. + +Create an example for a Knowledge Assistant. + + Creates an example for a Knowledge Assistant. + + Arguments: + PARENT: Parent resource where this example will be created. Format: + knowledge-assistants/{knowledge_assistant_id} + QUESTION: The example question.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(1)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, provide only PARENT as positional arguments. Provide 'question' in your JSON input") + } + return nil + } + check := root.ExactArgs(2) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := createExampleJson.Unmarshal(&createExampleReq.Example) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + createExampleReq.Parent = args[0] + if !cmd.Flags().Changed("json") { + createExampleReq.Example.Question = args[1] + } + + response, err := w.KnowledgeAssistants.CreateExample(ctx, createExampleReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range createExampleOverrides { + fn(cmd, &createExampleReq) + } + + return cmd +} + // start create-knowledge-assistant command // Slice with functions to override default command behavior. @@ -71,8 +178,10 @@ func newCreateKnowledgeAssistant() *cobra.Command { cmd.Flags().StringVar(&createKnowledgeAssistantReq.KnowledgeAssistant.Name, "name", createKnowledgeAssistantReq.KnowledgeAssistant.Name, `The resource name of the Knowledge Assistant.`) cmd.Use = "create-knowledge-assistant DISPLAY_NAME DESCRIPTION" - cmd.Short = `Create a Knowledge Assistant.` - cmd.Long = `Create a Knowledge Assistant. + cmd.Short = `*Beta* Create a Knowledge Assistant.` + cmd.Long = `This command is in Beta and may change without notice. + +Create a Knowledge Assistant. Creates a Knowledge Assistant. @@ -85,6 +194,8 @@ func newCreateKnowledgeAssistant() *cobra.Command { optional unless included in update_mask.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -166,8 +277,10 @@ func newCreateKnowledgeSource() *cobra.Command { cmd.Flags().StringVar(&createKnowledgeSourceReq.KnowledgeSource.Name, "name", createKnowledgeSourceReq.KnowledgeSource.Name, `Full resource name: knowledge-assistants/{knowledge_assistant_id}/knowledge-sources/{knowledge_source_id}.`) cmd.Use = "create-knowledge-source PARENT DISPLAY_NAME DESCRIPTION SOURCE_TYPE" - cmd.Short = `Create a Knowledge Source.` - cmd.Long = `Create a Knowledge Source. + cmd.Short = `*Beta* Create a Knowledge Source.` + cmd.Long = `This command is in Beta and may change without notice. + +Create a Knowledge Source. Creates a Knowledge Source under a Knowledge Assistant. @@ -185,6 +298,8 @@ func newCreateKnowledgeSource() *cobra.Command { is ignored.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -246,6 +361,67 @@ func newCreateKnowledgeSource() *cobra.Command { return cmd } +// start delete-example command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var deleteExampleOverrides []func( + *cobra.Command, + *knowledgeassistants.DeleteExampleRequest, +) + +func newDeleteExample() *cobra.Command { + cmd := &cobra.Command{} + + var deleteExampleReq knowledgeassistants.DeleteExampleRequest + + cmd.Use = "delete-example NAME" + cmd.Short = `*Beta* Delete an example from a Knowledge Assistant.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete an example from a Knowledge Assistant. + + Deletes an example from a Knowledge Assistant. + + Arguments: + NAME: The resource name of the example to delete. Format: + knowledge-assistants/{knowledge_assistant_id}/examples/{example_id}` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + deleteExampleReq.Name = args[0] + + err = w.KnowledgeAssistants.DeleteExample(ctx, deleteExampleReq) + if err != nil { + return err + } + return nil + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range deleteExampleOverrides { + fn(cmd, &deleteExampleReq) + } + + return cmd +} + // start delete-knowledge-assistant command // Slice with functions to override default command behavior. @@ -261,8 +437,10 @@ func newDeleteKnowledgeAssistant() *cobra.Command { var deleteKnowledgeAssistantReq knowledgeassistants.DeleteKnowledgeAssistantRequest cmd.Use = "delete-knowledge-assistant NAME" - cmd.Short = `Delete a Knowledge Assistant.` - cmd.Long = `Delete a Knowledge Assistant. + cmd.Short = `*Beta* Delete a Knowledge Assistant.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete a Knowledge Assistant. Deletes a Knowledge Assistant. @@ -271,6 +449,8 @@ func newDeleteKnowledgeAssistant() *cobra.Command { knowledge-assistants/{knowledge_assistant_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -318,8 +498,10 @@ func newDeleteKnowledgeSource() *cobra.Command { var deleteKnowledgeSourceReq knowledgeassistants.DeleteKnowledgeSourceRequest cmd.Use = "delete-knowledge-source NAME" - cmd.Short = `Delete a Knowledge Source.` - cmd.Long = `Delete a Knowledge Source. + cmd.Short = `*Beta* Delete a Knowledge Source.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete a Knowledge Source. Deletes a Knowledge Source. @@ -328,6 +510,8 @@ func newDeleteKnowledgeSource() *cobra.Command { knowledge-assistants/{knowledge_assistant_id}/knowledge-sources/{knowledge_source_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -360,6 +544,68 @@ func newDeleteKnowledgeSource() *cobra.Command { return cmd } +// start get-example command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getExampleOverrides []func( + *cobra.Command, + *knowledgeassistants.GetExampleRequest, +) + +func newGetExample() *cobra.Command { + cmd := &cobra.Command{} + + var getExampleReq knowledgeassistants.GetExampleRequest + + cmd.Use = "get-example NAME" + cmd.Short = `*Beta* Get an example from a Knowledge Assistant.` + cmd.Long = `This command is in Beta and may change without notice. + +Get an example from a Knowledge Assistant. + + Gets an example from a Knowledge Assistant. + + Arguments: + NAME: The resource name of the example. Format: + knowledge-assistants/{knowledge_assistant_id}/examples/{example_id}` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + getExampleReq.Name = args[0] + + response, err := w.KnowledgeAssistants.GetExample(ctx, getExampleReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getExampleOverrides { + fn(cmd, &getExampleReq) + } + + return cmd +} + // start get-knowledge-assistant command // Slice with functions to override default command behavior. @@ -375,8 +621,10 @@ func newGetKnowledgeAssistant() *cobra.Command { var getKnowledgeAssistantReq knowledgeassistants.GetKnowledgeAssistantRequest cmd.Use = "get-knowledge-assistant NAME" - cmd.Short = `Get a Knowledge Assistant.` - cmd.Long = `Get a Knowledge Assistant. + cmd.Short = `*Beta* Get a Knowledge Assistant.` + cmd.Long = `This command is in Beta and may change without notice. + +Get a Knowledge Assistant. Gets a Knowledge Assistant. @@ -385,6 +633,8 @@ func newGetKnowledgeAssistant() *cobra.Command { knowledge-assistants/{knowledge_assistant_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -433,8 +683,10 @@ func newGetKnowledgeSource() *cobra.Command { var getKnowledgeSourceReq knowledgeassistants.GetKnowledgeSourceRequest cmd.Use = "get-knowledge-source NAME" - cmd.Short = `Get a Knowledge Source.` - cmd.Long = `Get a Knowledge Source. + cmd.Short = `*Beta* Get a Knowledge Source.` + cmd.Long = `This command is in Beta and may change without notice. + +Get a Knowledge Source. Gets a Knowledge Source. @@ -443,6 +695,8 @@ func newGetKnowledgeSource() *cobra.Command { knowledge-assistants/{knowledge_assistant_id}/knowledge-sources/{knowledge_source_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -476,6 +730,207 @@ func newGetKnowledgeSource() *cobra.Command { return cmd } +// start get-permission-levels command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getPermissionLevelsOverrides []func( + *cobra.Command, + *knowledgeassistants.GetKnowledgeAssistantPermissionLevelsRequest, +) + +func newGetPermissionLevels() *cobra.Command { + cmd := &cobra.Command{} + + var getPermissionLevelsReq knowledgeassistants.GetKnowledgeAssistantPermissionLevelsRequest + + cmd.Use = "get-permission-levels KNOWLEDGE_ASSISTANT_ID" + cmd.Short = `*Beta* Get knowledge assistant permission levels.` + cmd.Long = `This command is in Beta and may change without notice. + +Get knowledge assistant permission levels. + + Gets the permission levels that a user can have on an object. + + Arguments: + KNOWLEDGE_ASSISTANT_ID: The knowledge assistant for which to get or manage permissions.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + getPermissionLevelsReq.KnowledgeAssistantId = args[0] + + response, err := w.KnowledgeAssistants.GetPermissionLevels(ctx, getPermissionLevelsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getPermissionLevelsOverrides { + fn(cmd, &getPermissionLevelsReq) + } + + return cmd +} + +// start get-permissions command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getPermissionsOverrides []func( + *cobra.Command, + *knowledgeassistants.GetKnowledgeAssistantPermissionsRequest, +) + +func newGetPermissions() *cobra.Command { + cmd := &cobra.Command{} + + var getPermissionsReq knowledgeassistants.GetKnowledgeAssistantPermissionsRequest + + cmd.Use = "get-permissions KNOWLEDGE_ASSISTANT_ID" + cmd.Short = `*Beta* Get knowledge assistant permissions.` + cmd.Long = `This command is in Beta and may change without notice. + +Get knowledge assistant permissions. + + Gets the permissions of a knowledge assistant. Knowledge assistants can + inherit permissions from their root object. + + Arguments: + KNOWLEDGE_ASSISTANT_ID: The knowledge assistant for which to get or manage permissions.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + getPermissionsReq.KnowledgeAssistantId = args[0] + + response, err := w.KnowledgeAssistants.GetPermissions(ctx, getPermissionsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getPermissionsOverrides { + fn(cmd, &getPermissionsReq) + } + + return cmd +} + +// start list-examples command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var listExamplesOverrides []func( + *cobra.Command, + *knowledgeassistants.ListExamplesRequest, +) + +func newListExamples() *cobra.Command { + cmd := &cobra.Command{} + + var listExamplesReq knowledgeassistants.ListExamplesRequest + // Registered for all paginated methods. Validated at call time in the + // method-call template. Paginated list methods never have Wait or LRO + // branches, so the method-call path is always reached. + var listExamplesLimit int + + cmd.Flags().IntVar(&listExamplesReq.PageSize, "page-size", listExamplesReq.PageSize, `The maximum number of examples to return.`) + + // Limit flag for total result capping. + cmd.Flags().IntVar(&listExamplesLimit, "limit", 0, `Maximum number of results to return.`) + + // Hidden pagination flags (internal API parameters). + cmd.Flags().StringVar(&listExamplesReq.PageToken, "page-token", listExamplesReq.PageToken, `Pagination token.`) + cmd.Flags().Lookup("page-token").Hidden = true + + cmd.Use = "list-examples PARENT" + cmd.Short = `*Beta* List examples for a Knowledge Assistant.` + cmd.Long = `This command is in Beta and may change without notice. + +List examples for a Knowledge Assistant. + + Lists examples under a Knowledge Assistant. + + Arguments: + PARENT: Parent resource to list from. Format: + knowledge-assistants/{knowledge_assistant_id}` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + listExamplesReq.Parent = args[0] + + response := w.KnowledgeAssistants.ListExamples(ctx, listExamplesReq) + if listExamplesLimit < 0 { + return fmt.Errorf("--limit must be a non-negative integer, got %d", listExamplesLimit) + } + if listExamplesLimit > 0 { + ctx = cmdio.WithLimit(ctx, listExamplesLimit) + } + + return cmdio.RenderIterator(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range listExamplesOverrides { + fn(cmd, &listExamplesReq) + } + + return cmd +} + // start list-knowledge-assistants command // Slice with functions to override default command behavior. @@ -504,12 +959,16 @@ func newListKnowledgeAssistants() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-knowledge-assistants" - cmd.Short = `List Knowledge Assistants.` - cmd.Long = `List Knowledge Assistants. + cmd.Short = `*Beta* List Knowledge Assistants.` + cmd.Long = `This command is in Beta and may change without notice. + +List Knowledge Assistants. List Knowledge Assistants` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -572,8 +1031,10 @@ func newListKnowledgeSources() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-knowledge-sources PARENT" - cmd.Short = `List Knowledge Sources.` - cmd.Long = `List Knowledge Sources. + cmd.Short = `*Beta* List Knowledge Sources.` + cmd.Long = `This command is in Beta and may change without notice. + +List Knowledge Sources. Lists Knowledge Sources under a Knowledge Assistant. @@ -582,6 +1043,8 @@ func newListKnowledgeSources() *cobra.Command { knowledge-assistants/{knowledge_assistant_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -618,6 +1081,86 @@ func newListKnowledgeSources() *cobra.Command { return cmd } +// start set-permissions command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var setPermissionsOverrides []func( + *cobra.Command, + *knowledgeassistants.KnowledgeAssistantPermissionsRequest, +) + +func newSetPermissions() *cobra.Command { + cmd := &cobra.Command{} + + var setPermissionsReq knowledgeassistants.KnowledgeAssistantPermissionsRequest + var setPermissionsJson flags.JsonFlag + + cmd.Flags().Var(&setPermissionsJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + // TODO: array: access_control_list + + cmd.Use = "set-permissions KNOWLEDGE_ASSISTANT_ID" + cmd.Short = `*Beta* Set knowledge assistant permissions.` + cmd.Long = `This command is in Beta and may change without notice. + +Set knowledge assistant permissions. + + Sets permissions on an object, replacing existing permissions if they exist. + Deletes all direct permissions if none are specified. Objects can inherit + permissions from their root object. + + Arguments: + KNOWLEDGE_ASSISTANT_ID: The knowledge assistant for which to get or manage permissions.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := setPermissionsJson.Unmarshal(&setPermissionsReq) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + setPermissionsReq.KnowledgeAssistantId = args[0] + + response, err := w.KnowledgeAssistants.SetPermissions(ctx, setPermissionsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range setPermissionsOverrides { + fn(cmd, &setPermissionsReq) + } + + return cmd +} + // start sync-knowledge-sources command // Slice with functions to override default command behavior. @@ -633,8 +1176,10 @@ func newSyncKnowledgeSources() *cobra.Command { var syncKnowledgeSourcesReq knowledgeassistants.SyncKnowledgeSourcesRequest cmd.Use = "sync-knowledge-sources NAME" - cmd.Short = `Syncs all Knowledge Sources for a Knowledge Assistant.` - cmd.Long = `Syncs all Knowledge Sources for a Knowledge Assistant. + cmd.Short = `*Beta* Syncs all Knowledge Sources for a Knowledge Assistant.` + cmd.Long = `This command is in Beta and may change without notice. + +Syncs all Knowledge Sources for a Knowledge Assistant. Sync all non-index Knowledge Sources for a Knowledge Assistant (index sources do not require sync) @@ -644,6 +1189,8 @@ func newSyncKnowledgeSources() *cobra.Command { knowledge-assistants/{knowledge_assistant_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -676,6 +1223,104 @@ func newSyncKnowledgeSources() *cobra.Command { return cmd } +// start update-example command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var updateExampleOverrides []func( + *cobra.Command, + *knowledgeassistants.UpdateExampleRequest, +) + +func newUpdateExample() *cobra.Command { + cmd := &cobra.Command{} + + var updateExampleReq knowledgeassistants.UpdateExampleRequest + updateExampleReq.Example = knowledgeassistants.Example{} + var updateExampleJson flags.JsonFlag + + cmd.Flags().Var(&updateExampleJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + // TODO: array: guidelines + cmd.Flags().StringVar(&updateExampleReq.Example.Name, "name", updateExampleReq.Example.Name, `Full resource name: knowledge-assistants/{knowledge_assistant_id}/examples/{example_id}.`) + + cmd.Use = "update-example NAME UPDATE_MASK QUESTION" + cmd.Short = `*Beta* Update an example in a Knowledge Assistant.` + cmd.Long = `This command is in Beta and may change without notice. + +Update an example in a Knowledge Assistant. + + Updates an example in a Knowledge Assistant. + + Arguments: + NAME: The resource name of the example to update. Format: + knowledge-assistants/{knowledge_assistant_id}/examples/{example_id} + UPDATE_MASK: Comma-delimited list of fields to update on the example. Allowed values: + question, guidelines. Examples: - question - question,guidelines + QUESTION: The example question.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(2)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, provide only NAME, UPDATE_MASK as positional arguments. Provide 'question' in your JSON input") + } + return nil + } + check := root.ExactArgs(3) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := updateExampleJson.Unmarshal(&updateExampleReq.Example) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + updateExampleReq.Name = args[0] + if args[1] != "" { + updateMaskArray := strings.Split(args[1], ",") + updateExampleReq.UpdateMask = *fieldmask.New(updateMaskArray) + } + if !cmd.Flags().Changed("json") { + updateExampleReq.Example.Question = args[2] + } + + response, err := w.KnowledgeAssistants.UpdateExample(ctx, updateExampleReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range updateExampleOverrides { + fn(cmd, &updateExampleReq) + } + + return cmd +} + // start update-knowledge-assistant command // Slice with functions to override default command behavior. @@ -698,8 +1343,10 @@ func newUpdateKnowledgeAssistant() *cobra.Command { cmd.Flags().StringVar(&updateKnowledgeAssistantReq.KnowledgeAssistant.Name, "name", updateKnowledgeAssistantReq.KnowledgeAssistant.Name, `The resource name of the Knowledge Assistant.`) cmd.Use = "update-knowledge-assistant NAME UPDATE_MASK DISPLAY_NAME DESCRIPTION" - cmd.Short = `Update a Knowledge Assistant.` - cmd.Long = `Update a Knowledge Assistant. + cmd.Short = `*Beta* Update a Knowledge Assistant.` + cmd.Long = `This command is in Beta and may change without notice. + +Update a Knowledge Assistant. Updates a Knowledge Assistant. @@ -717,6 +1364,8 @@ func newUpdateKnowledgeAssistant() *cobra.Command { optional unless included in update_mask.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -803,8 +1452,10 @@ func newUpdateKnowledgeSource() *cobra.Command { cmd.Flags().StringVar(&updateKnowledgeSourceReq.KnowledgeSource.Name, "name", updateKnowledgeSourceReq.KnowledgeSource.Name, `Full resource name: knowledge-assistants/{knowledge_assistant_id}/knowledge-sources/{knowledge_source_id}.`) cmd.Use = "update-knowledge-source NAME UPDATE_MASK DISPLAY_NAME DESCRIPTION SOURCE_TYPE" - cmd.Short = `Update a Knowledge Source.` - cmd.Long = `Update a Knowledge Source. + cmd.Short = `*Beta* Update a Knowledge Source.` + cmd.Long = `This command is in Beta and may change without notice. + +Update a Knowledge Source. Updates a Knowledge Source. @@ -825,6 +1476,8 @@ func newUpdateKnowledgeSource() *cobra.Command { is ignored.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -890,4 +1543,83 @@ func newUpdateKnowledgeSource() *cobra.Command { return cmd } +// start update-permissions command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var updatePermissionsOverrides []func( + *cobra.Command, + *knowledgeassistants.KnowledgeAssistantPermissionsRequest, +) + +func newUpdatePermissions() *cobra.Command { + cmd := &cobra.Command{} + + var updatePermissionsReq knowledgeassistants.KnowledgeAssistantPermissionsRequest + var updatePermissionsJson flags.JsonFlag + + cmd.Flags().Var(&updatePermissionsJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + // TODO: array: access_control_list + + cmd.Use = "update-permissions KNOWLEDGE_ASSISTANT_ID" + cmd.Short = `*Beta* Update knowledge assistant permissions.` + cmd.Long = `This command is in Beta and may change without notice. + +Update knowledge assistant permissions. + + Updates the permissions on a knowledge assistant. Knowledge assistants can + inherit permissions from their root object. + + Arguments: + KNOWLEDGE_ASSISTANT_ID: The knowledge assistant for which to get or manage permissions.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := updatePermissionsJson.Unmarshal(&updatePermissionsReq) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + updatePermissionsReq.KnowledgeAssistantId = args[0] + + response, err := w.KnowledgeAssistants.UpdatePermissions(ctx, updatePermissionsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range updatePermissionsOverrides { + fn(cmd, &updatePermissionsReq) + } + + return cmd +} + // end service KnowledgeAssistants diff --git a/cmd/workspace/lakeview-embedded/lakeview-embedded.go b/cmd/workspace/lakeview-embedded/lakeview-embedded.go index 8034e8086a8..8c0d82339d7 100755 --- a/cmd/workspace/lakeview-embedded/lakeview-embedded.go +++ b/cmd/workspace/lakeview-embedded/lakeview-embedded.go @@ -23,6 +23,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newGetPublishedDashboardTokenInfo()) @@ -52,8 +56,10 @@ func newGetPublishedDashboardTokenInfo() *cobra.Command { cmd.Flags().StringVar(&getPublishedDashboardTokenInfoReq.ExternalViewerId, "external-viewer-id", getPublishedDashboardTokenInfoReq.ExternalViewerId, `Provided external viewer id to be included in the custom claim.`) cmd.Use = "get-published-dashboard-token-info DASHBOARD_ID" - cmd.Short = `Read information of a published dashboard to mint an OAuth token.` - cmd.Long = `Read information of a published dashboard to mint an OAuth token. + cmd.Short = `*Public Preview* Read information of a published dashboard to mint an OAuth token.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Read information of a published dashboard to mint an OAuth token. Get a required authorization details and scopes of a published dashboard to mint an OAuth token. @@ -62,6 +68,8 @@ func newGetPublishedDashboardTokenInfo() *cobra.Command { DASHBOARD_ID: UUID identifying the published dashboard.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/lakeview/lakeview.go b/cmd/workspace/lakeview/lakeview.go index f9ea06c4690..c3cf12a9747 100755 --- a/cmd/workspace/lakeview/lakeview.go +++ b/cmd/workspace/lakeview/lakeview.go @@ -28,6 +28,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newCreateSchedule()) @@ -87,6 +91,8 @@ func newCreate() *cobra.Command { Create a draft dashboard.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -163,6 +169,8 @@ func newCreateSchedule() *cobra.Command { this schedule.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -253,6 +261,8 @@ func newCreateSubscription() *cobra.Command { to the schedule.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -338,6 +348,8 @@ func newDeleteSchedule() *cobra.Command { SCHEDULE_ID: UUID identifying the schedule.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -397,6 +409,8 @@ func newDeleteSubscription() *cobra.Command { SUBSCRIPTION_ID: UUID identifying the subscription.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -455,6 +469,8 @@ func newGet() *cobra.Command { DASHBOARD_ID: UUID identifying the dashboard.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -512,6 +528,8 @@ func newGetPublished() *cobra.Command { DASHBOARD_ID: UUID identifying the published dashboard.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -568,6 +586,8 @@ func newGetSchedule() *cobra.Command { SCHEDULE_ID: UUID identifying the schedule.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -626,6 +646,8 @@ func newGetSubscription() *cobra.Command { SUBSCRIPTION_ID: UUID identifying the subscription.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -695,6 +717,8 @@ func newList() *cobra.Command { cmd.Long = `List dashboards.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -764,6 +788,8 @@ func newListSchedules() *cobra.Command { DASHBOARD_ID: UUID identifying the dashboard to which the schedules belongs.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -836,6 +862,8 @@ func newListSubscriptions() *cobra.Command { SCHEDULE_ID: UUID identifying the schedule which the subscriptions belongs.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -904,6 +932,8 @@ func newMigrate() *cobra.Command { SOURCE_DASHBOARD_ID: UUID of the dashboard to be migrated.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -988,6 +1018,8 @@ func newPublish() *cobra.Command { DASHBOARD_ID: UUID identifying the dashboard to be published.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1057,6 +1089,8 @@ func newTrash() *cobra.Command { DASHBOARD_ID: UUID identifying the dashboard.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1113,6 +1147,8 @@ func newUnpublish() *cobra.Command { DASHBOARD_ID: UUID identifying the published dashboard.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1179,6 +1215,8 @@ func newUpdate() *cobra.Command { DASHBOARD_ID: UUID identifying the dashboard.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1257,6 +1295,8 @@ func newUpdateSchedule() *cobra.Command { this schedule.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/libraries/libraries.go b/cmd/workspace/libraries/libraries.go index 5f890d86819..32511997395 100755 --- a/cmd/workspace/libraries/libraries.go +++ b/cmd/workspace/libraries/libraries.go @@ -41,6 +41,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newAllClusterStatuses()) cmd.AddCommand(newClusterStatus()) @@ -83,6 +87,8 @@ func newAllClusterStatuses() *cobra.Command { libraries installed on this cluster via the API or the libraries UI.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -150,6 +156,8 @@ func newClusterStatus() *cobra.Command { CLUSTER_ID: Unique identifier of the cluster whose status should be retrieved.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -211,6 +219,8 @@ func newInstall() *cobra.Command { happens in the background after the completion of this request.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -277,6 +287,8 @@ func newUninstall() *cobra.Command { currently installed is ignored.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/llm-proxy-partner-powered-workspace/llm-proxy-partner-powered-workspace.go b/cmd/workspace/llm-proxy-partner-powered-workspace/llm-proxy-partner-powered-workspace.go index 90c003e216d..0733e480083 100755 --- a/cmd/workspace/llm-proxy-partner-powered-workspace/llm-proxy-partner-powered-workspace.go +++ b/cmd/workspace/llm-proxy-partner-powered-workspace/llm-proxy-partner-powered-workspace.go @@ -29,6 +29,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -66,6 +70,8 @@ func newDelete() *cobra.Command { default value.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -120,6 +126,8 @@ func newGet() *cobra.Command { Gets the enable partner powered AI features workspace setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -175,6 +183,8 @@ func newUpdate() *cobra.Command { Updates the enable partner powered AI features workspace setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/materialized-features/materialized-features.go b/cmd/workspace/materialized-features/materialized-features.go index a9a7f55b142..1beef5f871b 100755 --- a/cmd/workspace/materialized-features/materialized-features.go +++ b/cmd/workspace/materialized-features/materialized-features.go @@ -30,6 +30,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newCreateFeatureTag()) cmd.AddCommand(newDeleteFeatureTag()) @@ -73,6 +77,8 @@ func newCreateFeatureTag() *cobra.Command { Creates a FeatureTag.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -155,6 +161,8 @@ func newDeleteFeatureTag() *cobra.Command { KEY: The key of the tag to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -212,6 +220,8 @@ func newGetFeatureLineage() *cobra.Command { FEATURE_NAME: The name of the feature.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -267,6 +277,8 @@ func newGetFeatureTag() *cobra.Command { Gets a FeatureTag.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -336,6 +348,8 @@ func newListFeatureTags() *cobra.Command { Lists FeatureTags.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -401,6 +415,8 @@ func newUpdateFeatureTag() *cobra.Command { Updates a FeatureTag.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) diff --git a/cmd/workspace/metastores/metastores.go b/cmd/workspace/metastores/metastores.go index 95decff8409..46fdedb8eca 100755 --- a/cmd/workspace/metastores/metastores.go +++ b/cmd/workspace/metastores/metastores.go @@ -38,6 +38,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newAssign()) cmd.AddCommand(newCreate()) @@ -91,6 +95,8 @@ func newAssign() *cobra.Command { catalog for a Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -187,6 +193,8 @@ func newCreate() *cobra.Command { NAME: The user-specified name of the metastore.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -259,6 +267,8 @@ func newCurrent() *cobra.Command { Gets the metastore assignment for the workspace being accessed.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -310,6 +320,8 @@ func newDelete() *cobra.Command { ID: Unique ID of the metastore.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -367,6 +379,8 @@ func newGet() *cobra.Command { ID: Unique ID of the metastore.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -444,6 +458,8 @@ func newList() *cobra.Command { indication that the end of results has been reached.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -497,6 +513,8 @@ func newSummary() *cobra.Command { credential, the cloud vendor, the cloud region, and the global metastore ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -547,6 +565,8 @@ func newUnassign() *cobra.Command { METASTORE_ID: Query for the ID of the metastore to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -622,6 +642,8 @@ func newUpdate() *cobra.Command { ID: Unique ID of the metastore.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -700,6 +722,8 @@ func newUpdateAssignment() *cobra.Command { WORKSPACE_ID: A workspace ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/model-registry/model-registry.go b/cmd/workspace/model-registry/model-registry.go index f742fe8a666..4df77e40183 100755 --- a/cmd/workspace/model-registry/model-registry.go +++ b/cmd/workspace/model-registry/model-registry.go @@ -33,6 +33,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newApproveTransitionRequest()) cmd.AddCommand(newCreateComment()) @@ -120,6 +124,8 @@ func newApproveTransitionRequest() *cobra.Command { stage.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -218,6 +224,8 @@ func newCreateComment() *cobra.Command { COMMENT: User-provided comment on the action.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -310,6 +318,8 @@ func newCreateModel() *cobra.Command { NAME: Register models under this name` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -397,6 +407,8 @@ func newCreateModelVersion() *cobra.Command { SOURCE: URI indicating the location of the model artifacts.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -493,6 +505,8 @@ func newCreateTransitionRequest() *cobra.Command { * Archived: Archived stage.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -583,6 +597,8 @@ func newCreateWebhook() *cobra.Command { **NOTE:** This endpoint is in Public Preview. Creates a registry webhook.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -648,6 +664,8 @@ func newDeleteComment() *cobra.Command { ID: Unique identifier of an activity` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -704,6 +722,8 @@ func newDeleteModel() *cobra.Command { NAME: Registered model unique name identifier.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -762,6 +782,8 @@ func newDeleteModelTag() *cobra.Command { not supported. Maximum size is 250 bytes.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -820,6 +842,8 @@ func newDeleteModelVersion() *cobra.Command { VERSION: Model version number` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -880,6 +904,8 @@ func newDeleteModelVersionTag() *cobra.Command { not supported. Maximum size is 250 bytes.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -953,6 +979,8 @@ func newDeleteTransitionRequest() *cobra.Command { user will be deleted.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(4) @@ -1013,6 +1041,8 @@ func newDeleteWebhook() *cobra.Command { ID: Webhook ID required to delete a registry webhook.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1083,6 +1113,8 @@ func newGetLatestVersions() *cobra.Command { NAME: Registered model unique name identifier.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1168,6 +1200,8 @@ func newGetModel() *cobra.Command { NAME: Registered model unique name identifier.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1224,6 +1258,8 @@ func newGetModelVersion() *cobra.Command { VERSION: Model version number` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -1283,6 +1319,8 @@ func newGetModelVersionDownloadUri() *cobra.Command { VERSION: Model version number` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -1341,6 +1379,8 @@ func newGetPermissionLevels() *cobra.Command { REGISTERED_MODEL_ID: The registered model for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1399,6 +1439,8 @@ func newGetPermissions() *cobra.Command { REGISTERED_MODEL_ID: The registered model for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1467,6 +1509,8 @@ func newListModels() *cobra.Command { __max_results__.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1535,6 +1579,8 @@ func newListTransitionRequests() *cobra.Command { VERSION: Version of the model.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -1608,6 +1654,8 @@ func newListWebhooks() *cobra.Command { **NOTE:** This endpoint is in Public Preview. Lists all registry webhooks.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1681,6 +1729,8 @@ func newRejectTransitionRequest() *cobra.Command { * Archived: Archived stage.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1770,6 +1820,8 @@ func newRenameModel() *cobra.Command { NAME: Registered model unique name identifier.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1860,6 +1912,8 @@ func newSearchModelVersions() *cobra.Command { Searches for specific model versions based on the supplied __filter__.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1930,6 +1984,8 @@ func newSearchModels() *cobra.Command { Search for registered models based on the specified __filter__.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1998,6 +2054,8 @@ func newSetModelTag() *cobra.Command { 5000 bytes in size.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2092,6 +2150,8 @@ func newSetModelVersionTag() *cobra.Command { 5000 bytes in size.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2185,6 +2245,8 @@ func newSetPermissions() *cobra.Command { REGISTERED_MODEL_ID: The registered model for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -2272,6 +2334,8 @@ func newTestRegistryWebhook() *cobra.Command { ID: Webhook ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2371,6 +2435,8 @@ func newTransitionStage() *cobra.Command { stage.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2466,6 +2532,8 @@ func newUpdateComment() *cobra.Command { COMMENT: User-provided comment on the action.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2552,6 +2620,8 @@ func newUpdateModel() *cobra.Command { NAME: Registered model unique name identifier.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2636,6 +2706,8 @@ func newUpdateModelVersion() *cobra.Command { VERSION: Model version number` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -2723,6 +2795,8 @@ func newUpdatePermissions() *cobra.Command { REGISTERED_MODEL_ID: The registered model for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -2801,6 +2875,8 @@ func newUpdateWebhook() *cobra.Command { ID: Webhook ID` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/model-versions/model-versions.go b/cmd/workspace/model-versions/model-versions.go index 2432693d89c..44e1bd995ed 100755 --- a/cmd/workspace/model-versions/model-versions.go +++ b/cmd/workspace/model-versions/model-versions.go @@ -32,6 +32,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -78,6 +82,8 @@ func newDelete() *cobra.Command { VERSION: The integer version number of the model version` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -147,6 +153,8 @@ func newGet() *cobra.Command { VERSION: The integer version number of the model version` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -216,6 +224,8 @@ func newGetByAlias() *cobra.Command { ALIAS: The name of the alias` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -306,6 +316,8 @@ func newList() *cobra.Command { model versions` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -395,6 +407,8 @@ func newUpdate() *cobra.Command { VERSION: The integer version number of the model version` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/workspace/notification-destinations/notification-destinations.go b/cmd/workspace/notification-destinations/notification-destinations.go index b028cf80d69..e463527466a 100755 --- a/cmd/workspace/notification-destinations/notification-destinations.go +++ b/cmd/workspace/notification-destinations/notification-destinations.go @@ -30,6 +30,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -72,6 +76,8 @@ func newCreate() *cobra.Command { Creates a notification destination. Requires workspace admin permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -137,6 +143,8 @@ func newDelete() *cobra.Command { Deletes a notification destination. Requires workspace admin permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -190,6 +198,8 @@ func newGet() *cobra.Command { Gets a notification destination.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -257,6 +267,8 @@ func newList() *cobra.Command { Lists notification destinations.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -322,6 +334,8 @@ func newUpdate() *cobra.Command { ID: UUID identifying notification destination.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/online-tables/online-tables.go b/cmd/workspace/online-tables/online-tables.go index fb43d85e8a9..d634450328e 100755 --- a/cmd/workspace/online-tables/online-tables.go +++ b/cmd/workspace/online-tables/online-tables.go @@ -21,13 +21,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "online-tables", - Short: `Online tables provide lower latency and higher QPS access to data from Delta tables.`, - Long: `Online tables provide lower latency and higher QPS access to data from Delta + Short: `*Public Preview* Online tables provide lower latency and higher QPS access to data from Delta tables.`, + Long: `This command is in Public Preview and may change without notice. + +Online tables provide lower latency and higher QPS access to data from Delta tables.`, GroupID: "catalog", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -70,12 +76,16 @@ func newCreate() *cobra.Command { // TODO: complex arg: status cmd.Use = "create" - cmd.Short = `Create an Online Table.` - cmd.Long = `Create an Online Table. + cmd.Short = `*Public Preview* Create an Online Table.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create an Online Table. Create a new Online Table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -147,8 +157,10 @@ func newDelete() *cobra.Command { var deleteReq catalog.DeleteOnlineTableRequest cmd.Use = "delete NAME" - cmd.Short = `Delete an Online Table.` - cmd.Long = `Delete an Online Table. + cmd.Short = `*Public Preview* Delete an Online Table.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete an Online Table. Delete an online table. Warning: This will delete all the data in the online table. If the source Delta table was deleted or modified since this Online @@ -158,6 +170,8 @@ func newDelete() *cobra.Command { NAME: Full three-part (catalog, schema, table) name of the table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -205,8 +219,10 @@ func newGet() *cobra.Command { var getReq catalog.GetOnlineTableRequest cmd.Use = "get NAME" - cmd.Short = `Get an Online Table.` - cmd.Long = `Get an Online Table. + cmd.Short = `*Public Preview* Get an Online Table.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get an Online Table. Get information about an existing online table and its status. @@ -214,6 +230,8 @@ func newGet() *cobra.Command { NAME: Full three-part (catalog, schema, table) name of the table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/permission-migration/permission-migration.go b/cmd/workspace/permission-migration/permission-migration.go index 0bcf145740e..c75ec9f01e1 100755 --- a/cmd/workspace/permission-migration/permission-migration.go +++ b/cmd/workspace/permission-migration/permission-migration.go @@ -30,6 +30,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newMigratePermissions()) @@ -71,6 +75,8 @@ func newMigratePermissions() *cobra.Command { TO_ACCOUNT_GROUP_NAME: The name of the account group that permissions will be migrated to.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/permissions/permissions.go b/cmd/workspace/permissions/permissions.go index f12e2f9e41c..02bd53c875d 100755 --- a/cmd/workspace/permissions/permissions.go +++ b/cmd/workspace/permissions/permissions.go @@ -25,9 +25,9 @@ func New() *cobra.Command { **[Cluster permissions](:service:clusters)** — Manage which users can manage, restart, or attach to clusters. * **[Cluster policy permissions](:service:clusterpolicies)** — Manage which users can use - cluster policies. * **[Delta Live Tables pipeline + cluster policies. * **[Spark Declarative Pipelines permissions](:service:pipelines)** — Manage which users can view, manage, - run, cancel, or own a Delta Live Tables pipeline. * **[Job + run, cancel, or own a Spark Declarative Pipeline. * **[Job permissions](:service:jobs)** — Manage which users can view, manage, trigger, cancel, or own a job. * **[MLflow experiment permissions](:service:experiments)** — Manage which users can read, edit, or @@ -54,6 +54,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newGetPermissionLevels()) @@ -93,11 +97,14 @@ func newGet() *cobra.Command { REQUEST_OBJECT_TYPE: The type of the request object. Can be one of the following: alerts, alertsv2, authorization, clusters, cluster-policies, dashboards, database-projects, dbsql-dashboards, directories, experiments, files, - genie, instance-pools, jobs, notebooks, pipelines, queries, - registered-models, repos, serving-endpoints, or warehouses. + genie, instance-pools, jobs, knowledge-assistants, notebooks, pipelines, + queries, registered-models, repos, serving-endpoints, supervisor-agents, + vector-search-endpoints, or warehouses. REQUEST_OBJECT_ID: The id of the request object.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -156,11 +163,14 @@ func newGetPermissionLevels() *cobra.Command { REQUEST_OBJECT_TYPE: The type of the request object. Can be one of the following: alerts, alertsv2, authorization, clusters, cluster-policies, dashboards, database-projects, dbsql-dashboards, directories, experiments, files, - genie, instance-pools, jobs, notebooks, pipelines, queries, - registered-models, repos, serving-endpoints, or warehouses. + genie, instance-pools, jobs, knowledge-assistants, notebooks, pipelines, + queries, registered-models, repos, serving-endpoints, supervisor-agents, + vector-search-endpoints, or warehouses. REQUEST_OBJECT_ID: ` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -226,11 +236,14 @@ func newSet() *cobra.Command { REQUEST_OBJECT_TYPE: The type of the request object. Can be one of the following: alerts, alertsv2, authorization, clusters, cluster-policies, dashboards, database-projects, dbsql-dashboards, directories, experiments, files, - genie, instance-pools, jobs, notebooks, pipelines, queries, - registered-models, repos, serving-endpoints, or warehouses. + genie, instance-pools, jobs, knowledge-assistants, notebooks, pipelines, + queries, registered-models, repos, serving-endpoints, supervisor-agents, + vector-search-endpoints, or warehouses. REQUEST_OBJECT_ID: The id of the request object.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -307,11 +320,14 @@ func newUpdate() *cobra.Command { REQUEST_OBJECT_TYPE: The type of the request object. Can be one of the following: alerts, alertsv2, authorization, clusters, cluster-policies, dashboards, database-projects, dbsql-dashboards, directories, experiments, files, - genie, instance-pools, jobs, notebooks, pipelines, queries, - registered-models, repos, serving-endpoints, or warehouses. + genie, instance-pools, jobs, knowledge-assistants, notebooks, pipelines, + queries, registered-models, repos, serving-endpoints, supervisor-agents, + vector-search-endpoints, or warehouses. REQUEST_OBJECT_ID: The id of the request object.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/workspace/pipelines/pipelines.go b/cmd/workspace/pipelines/pipelines.go index 2401b325371..5af6deed66b 100755 --- a/cmd/workspace/pipelines/pipelines.go +++ b/cmd/workspace/pipelines/pipelines.go @@ -41,6 +41,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newApplyEnvironment()) cmd.AddCommand(newClone()) @@ -82,13 +86,17 @@ func newApplyEnvironment() *cobra.Command { var applyEnvironmentReq pipelines.ApplyEnvironmentRequest cmd.Use = "apply-environment PIPELINE_ID" - cmd.Short = `Apply the latest environment to the pipeline.` - cmd.Long = `Apply the latest environment to the pipeline. + cmd.Short = `*Public Preview* Apply the latest environment to the pipeline.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Apply the latest environment to the pipeline. * Applies the current pipeline environment onto the pipeline compute. The environment applied can be used by subsequent dev-mode updates.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -163,6 +171,8 @@ func newClone() *cobra.Command { PIPELINE_ID: Source pipeline to clone from` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -235,6 +245,8 @@ func newCreate() *cobra.Command { If successful, this method returns the ID of the new pipeline.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -302,6 +314,8 @@ func newDelete() *cobra.Command { support for assistance to undo this action.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -365,6 +379,8 @@ func newGet() *cobra.Command { cmd.Long = `Get a pipeline.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -434,6 +450,8 @@ func newGetPermissionLevels() *cobra.Command { PIPELINE_ID: The pipeline for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -504,6 +522,8 @@ func newGetPermissions() *cobra.Command { PIPELINE_ID: The pipeline for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -574,6 +594,8 @@ func newGetUpdate() *cobra.Command { UPDATE_ID: The ID of the update.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -647,6 +669,8 @@ func newListPipelineEvents() *cobra.Command { PIPELINE_ID: The pipeline to return events for.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -731,6 +755,8 @@ func newListPipelines() *cobra.Command { Lists pipelines defined in the Spark Declarative Pipelines system.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -793,6 +819,8 @@ func newListUpdates() *cobra.Command { PIPELINE_ID: The pipeline to return updates for.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -869,6 +897,8 @@ func newSetPermissions() *cobra.Command { PIPELINE_ID: The pipeline for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -969,6 +999,8 @@ func newStartUpdate() *cobra.Command { the pipeline, the request will fail and the active update will remain running.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1054,6 +1086,8 @@ func newStop() *cobra.Command { update for the pipeline, this request is a no-op.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1130,7 +1164,7 @@ func newUpdate() *cobra.Command { cmd.Flags().BoolVar(&updateReq.AllowDuplicateNames, "allow-duplicate-names", updateReq.AllowDuplicateNames, `If false, deployment will fail if name has changed and conflicts the name of another pipeline.`) cmd.Flags().StringVar(&updateReq.BudgetPolicyId, "budget-policy-id", updateReq.BudgetPolicyId, `Budget policy of this pipeline.`) cmd.Flags().StringVar(&updateReq.Catalog, "catalog", updateReq.Catalog, `A catalog in Unity Catalog to publish data from this pipeline to.`) - cmd.Flags().StringVar(&updateReq.Channel, "channel", updateReq.Channel, `DLT Release Channel that specifies which version to use.`) + cmd.Flags().StringVar(&updateReq.Channel, "channel", updateReq.Channel, `SDP Release Channel that specifies which version to use.`) // TODO: array: clusters // TODO: map via StringToStringVar: configuration cmd.Flags().BoolVar(&updateReq.Continuous, "continuous", updateReq.Continuous, `Whether the pipeline is continuous or triggered.`) @@ -1169,6 +1203,8 @@ func newUpdate() *cobra.Command { PIPELINE_ID: Unique identifier for this pipeline.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1255,6 +1291,8 @@ func newUpdatePermissions() *cobra.Command { PIPELINE_ID: The pipeline for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/policies/policies.go b/cmd/workspace/policies/policies.go index 8bde169cdc0..c34fe2e7951 100755 --- a/cmd/workspace/policies/policies.go +++ b/cmd/workspace/policies/policies.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "policies", - Short: `Attribute-Based Access Control (ABAC) provides high leverage governance for enforcing compliance policies in Unity Catalog.`, - Long: `Attribute-Based Access Control (ABAC) provides high leverage governance for + Short: `*Public Preview* Attribute-Based Access Control (ABAC) provides high leverage governance for enforcing compliance policies in Unity Catalog.`, + Long: `This command is in Public Preview and may change without notice. + +Attribute-Based Access Control (ABAC) provides high leverage governance for enforcing compliance policies in Unity Catalog. With ABAC policies, access is controlled in a hierarchical and scalable manner, based on data attributes rather than specific resources, enabling more flexible and comprehensive @@ -33,6 +35,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreatePolicy()) cmd.AddCommand(newDeletePolicy()) @@ -95,8 +101,10 @@ func newCreatePolicy() *cobra.Command { cmd.Flags().StringVar(&createPolicyReq.PolicyInfo.WhenCondition, "when-condition", createPolicyReq.PolicyInfo.WhenCondition, `Optional condition when the policy should take effect.`) cmd.Use = "create-policy TO_PRINCIPALS FOR_SECURABLE_TYPE POLICY_TYPE" - cmd.Short = `Create an ABAC policy.` - cmd.Long = `Create an ABAC policy. + cmd.Short = `*Public Preview* Create an ABAC policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create an ABAC policy. Creates a new policy on a securable. The new policy applies to the securable and all its descendants. @@ -129,6 +137,8 @@ func newCreatePolicy() *cobra.Command { Supported values: [POLICY_TYPE_COLUMN_MASK, POLICY_TYPE_ROW_FILTER]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -216,8 +226,10 @@ func newDeletePolicy() *cobra.Command { var deletePolicyReq catalog.DeletePolicyRequest cmd.Use = "delete-policy ON_SECURABLE_TYPE ON_SECURABLE_FULLNAME NAME" - cmd.Short = `Delete an ABAC policy.` - cmd.Long = `Delete an ABAC policy. + cmd.Short = `*Public Preview* Delete an ABAC policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete an ABAC policy. Delete an ABAC policy defined on a securable. @@ -228,6 +240,8 @@ func newDeletePolicy() *cobra.Command { NAME: Required. The name of the policy to delete` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -278,8 +292,10 @@ func newGetPolicy() *cobra.Command { var getPolicyReq catalog.GetPolicyRequest cmd.Use = "get-policy ON_SECURABLE_TYPE ON_SECURABLE_FULLNAME NAME" - cmd.Short = `Get an ABAC policy.` - cmd.Long = `Get an ABAC policy. + cmd.Short = `*Public Preview* Get an ABAC policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get an ABAC policy. Get the policy definition on a securable @@ -289,6 +305,8 @@ func newGetPolicy() *cobra.Command { NAME: Required. The name of the policy to retrieve.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -353,8 +371,10 @@ func newListPolicies() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-policies ON_SECURABLE_TYPE ON_SECURABLE_FULLNAME" - cmd.Short = `List ABAC policies.` - cmd.Long = `List ABAC policies. + cmd.Short = `*Public Preview* List ABAC policies.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List ABAC policies. List all policies defined on a securable. Optionally, the list can include inherited policies defined on the securable's parent schema or catalog. @@ -369,6 +389,8 @@ func newListPolicies() *cobra.Command { ON_SECURABLE_FULLNAME: Required. The fully qualified name of securable to list policies for.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -454,8 +476,10 @@ func newUpdatePolicy() *cobra.Command { cmd.Flags().StringVar(&updatePolicyReq.PolicyInfo.WhenCondition, "when-condition", updatePolicyReq.PolicyInfo.WhenCondition, `Optional condition when the policy should take effect.`) cmd.Use = "update-policy ON_SECURABLE_TYPE ON_SECURABLE_FULLNAME NAME TO_PRINCIPALS FOR_SECURABLE_TYPE POLICY_TYPE" - cmd.Short = `Update an ABAC policy.` - cmd.Long = `Update an ABAC policy. + cmd.Short = `*Public Preview* Update an ABAC policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update an ABAC policy. Update an ABAC policy on a securable. @@ -491,6 +515,8 @@ func newUpdatePolicy() *cobra.Command { Supported values: [POLICY_TYPE_COLUMN_MASK, POLICY_TYPE_ROW_FILTER]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/policy-compliance-for-clusters/policy-compliance-for-clusters.go b/cmd/workspace/policy-compliance-for-clusters/policy-compliance-for-clusters.go index a4ba0f4f9d7..ce93a72d82d 100755 --- a/cmd/workspace/policy-compliance-for-clusters/policy-compliance-for-clusters.go +++ b/cmd/workspace/policy-compliance-for-clusters/policy-compliance-for-clusters.go @@ -35,6 +35,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newEnforceCompliance()) cmd.AddCommand(newGetCompliance()) @@ -81,7 +85,7 @@ func newEnforceCompliance() *cobra.Command { TERMINATED. The next time the cluster is started, the new attributes will take effect. - Clusters created by the Databricks Jobs, DLT, or Models services cannot be + Clusters created by the Databricks Jobs, SDP, or Models services cannot be enforced by this API. Instead, use the "Enforce job policy compliance" API to enforce policy compliance on jobs. @@ -89,6 +93,8 @@ func newEnforceCompliance() *cobra.Command { CLUSTER_ID: The ID of the cluster you want to enforce policy compliance on.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -168,6 +174,8 @@ func newGetCompliance() *cobra.Command { CLUSTER_ID: The ID of the cluster to get the compliance status` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -240,6 +248,8 @@ func newListCompliance() *cobra.Command { POLICY_ID: Canonical unique identifier for the cluster policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/policy-compliance-for-jobs/policy-compliance-for-jobs.go b/cmd/workspace/policy-compliance-for-jobs/policy-compliance-for-jobs.go index 2a081689035..f184660ef63 100755 --- a/cmd/workspace/policy-compliance-for-jobs/policy-compliance-for-jobs.go +++ b/cmd/workspace/policy-compliance-for-jobs/policy-compliance-for-jobs.go @@ -38,6 +38,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newEnforceCompliance()) cmd.AddCommand(newGetCompliance()) @@ -83,6 +87,8 @@ func newEnforceCompliance() *cobra.Command { JOB_ID: The ID of the job you want to enforce policy compliance on.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -167,6 +173,8 @@ func newGetCompliance() *cobra.Command { JOB_ID: The ID of the job whose compliance status you are requesting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -243,6 +251,8 @@ func newListCompliance() *cobra.Command { POLICY_ID: Canonical unique identifier for the cluster policy.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/policy-families/policy-families.go b/cmd/workspace/policy-families/policy-families.go index 2926c04f260..d760aaf7db6 100755 --- a/cmd/workspace/policy-families/policy-families.go +++ b/cmd/workspace/policy-families/policy-families.go @@ -33,6 +33,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newList()) @@ -72,6 +76,8 @@ func newGet() *cobra.Command { POLICY_FAMILY_ID: The family ID about which to retrieve information.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -140,6 +146,8 @@ func newList() *cobra.Command { version. This API is paginated.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/workspace/postgres/postgres.go b/cmd/workspace/postgres/postgres.go index e60842b1e76..5367e36f3f3 100755 --- a/cmd/workspace/postgres/postgres.go +++ b/cmd/workspace/postgres/postgres.go @@ -24,8 +24,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "postgres", - Short: `Use the Postgres API to create and manage Lakebase Autoscaling Postgres infrastructure, including projects, branches, compute endpoints, and roles.`, - Long: `Use the Postgres API to create and manage Lakebase Autoscaling Postgres + Short: `*Beta* Use the Postgres API to create and manage Lakebase Autoscaling Postgres infrastructure, including projects, branches, compute endpoints, and roles.`, + Long: `This command is in Beta and may change without notice. + +Use the Postgres API to create and manage Lakebase Autoscaling Postgres infrastructure, including projects, branches, compute endpoints, and roles. This API manages database infrastructure only. To query or modify data, use @@ -41,6 +43,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + // Add methods cmd.AddCommand(newCreateBranch()) cmd.AddCommand(newCreateCatalog()) @@ -70,6 +76,7 @@ func New() *cobra.Command { cmd.AddCommand(newListEndpoints()) cmd.AddCommand(newListProjects()) cmd.AddCommand(newListRoles()) + cmd.AddCommand(newUndeleteProject()) cmd.AddCommand(newUpdateBranch()) cmd.AddCommand(newUpdateDatabase()) cmd.AddCommand(newUpdateEndpoint()) @@ -108,13 +115,16 @@ func newCreateBranch() *cobra.Command { cmd.Flags().Var(&createBranchJson, "json", `either inline JSON string or @path/to/file.json with request body`) + cmd.Flags().BoolVar(&createBranchReq.ReplaceExisting, "replace-existing", createBranchReq.ReplaceExisting, `If true, update the branch if it already exists instead of returning an error.`) cmd.Flags().StringVar(&createBranchReq.Branch.Name, "name", createBranchReq.Branch.Name, `Output only.`) // TODO: complex arg: spec // TODO: complex arg: status cmd.Use = "create-branch PARENT BRANCH_ID" - cmd.Short = `Create a Branch.` - cmd.Long = `Create a Branch. + cmd.Short = `*Beta* Create a Branch.` + cmd.Long = `This command is in Beta and may change without notice. + +Create a Branch. Creates a new database branch in the project. @@ -133,6 +143,8 @@ func newCreateBranch() *cobra.Command { projects/my-app/branches/development.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -238,8 +250,10 @@ func newCreateCatalog() *cobra.Command { // TODO: complex arg: status cmd.Use = "create-catalog CATALOG_ID" - cmd.Short = `Register a Database in UC.` - cmd.Long = `Register a Database in UC. + cmd.Short = `*Beta* Register a Database in UC.` + cmd.Long = `This command is in Beta and may change without notice. + +Register a Database in UC. Register a Postgres database in the Unity Catalog. @@ -253,6 +267,8 @@ func newCreateCatalog() *cobra.Command { example "my_catalog" becomes "catalogs/my_catalog".` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -379,6 +395,8 @@ func newCreateDatabase() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -478,13 +496,16 @@ func newCreateEndpoint() *cobra.Command { cmd.Flags().Var(&createEndpointJson, "json", `either inline JSON string or @path/to/file.json with request body`) + cmd.Flags().BoolVar(&createEndpointReq.ReplaceExisting, "replace-existing", createEndpointReq.ReplaceExisting, `If true, update the endpoint if it already exists instead of returning an error.`) cmd.Flags().StringVar(&createEndpointReq.Endpoint.Name, "name", createEndpointReq.Endpoint.Name, `Output only.`) // TODO: complex arg: spec // TODO: complex arg: status cmd.Use = "create-endpoint PARENT ENDPOINT_ID" - cmd.Short = `Create an Endpoint.` - cmd.Long = `Create an Endpoint. + cmd.Short = `*Beta* Create an Endpoint.` + cmd.Long = `This command is in Beta and may change without notice. + +Create an Endpoint. Creates a new compute endpoint in the branch. @@ -503,6 +524,8 @@ func newCreateEndpoint() *cobra.Command { projects/my-app/branches/development/endpoints/primary.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -609,8 +632,10 @@ func newCreateProject() *cobra.Command { // TODO: complex arg: status cmd.Use = "create-project PROJECT_ID" - cmd.Short = `Create a Project.` - cmd.Long = `Create a Project. + cmd.Short = `*Beta* Create a Project.` + cmd.Long = `This command is in Beta and may change without notice. + +Create a Project. Creates a new Lakebase Autoscaling Postgres database project, which contains branches and compute endpoints. @@ -627,6 +652,8 @@ func newCreateProject() *cobra.Command { numbers, and hyphens. For example, my-app becomes projects/my-app.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -732,8 +759,10 @@ func newCreateRole() *cobra.Command { // TODO: complex arg: status cmd.Use = "create-role PARENT" - cmd.Short = `Create a Postgres Role for a Branch.` - cmd.Long = `Create a Postgres Role for a Branch. + cmd.Short = `*Beta* Create a Postgres Role for a Branch.` + cmd.Long = `This command is in Beta and may change without notice. + +Create a Postgres Role for a Branch. Creates a new Postgres role in the branch. @@ -747,6 +776,8 @@ func newCreateRole() *cobra.Command { projects/{project_id}/branches/{branch_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -851,8 +882,10 @@ func newCreateSyncedTable() *cobra.Command { // TODO: complex arg: status cmd.Use = "create-synced-table SYNCED_TABLE_ID" - cmd.Short = `Create a Synced Database Table.` - cmd.Long = `Create a Synced Database Table. + cmd.Short = `*Beta* Create a Synced Database Table.` + cmd.Long = `This command is in Beta and may change without notice. + +Create a Synced Database Table. Create a Synced Table. @@ -876,6 +909,8 @@ func newCreateSyncedTable() *cobra.Command { "{schema}" in the connected Postgres database` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -972,8 +1007,10 @@ func newDeleteBranch() *cobra.Command { cmd.Flags().DurationVar(&deleteBranchTimeout, "timeout", 0, `maximum amount of time to reach DONE state`) cmd.Use = "delete-branch NAME" - cmd.Short = `Delete a Branch.` - cmd.Long = `Delete a Branch. + cmd.Short = `*Beta* Delete a Branch.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete a Branch. Deletes the specified database branch. @@ -987,6 +1024,8 @@ func newDeleteBranch() *cobra.Command { projects/{project_id}/branches/{branch_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1072,8 +1111,10 @@ func newDeleteCatalog() *cobra.Command { cmd.Flags().DurationVar(&deleteCatalogTimeout, "timeout", 0, `maximum amount of time to reach DONE state`) cmd.Use = "delete-catalog NAME" - cmd.Short = `Delete a Database Catalog.` - cmd.Long = `Delete a Database Catalog. + cmd.Short = `*Beta* Delete a Database Catalog.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete a Database Catalog. This is a long-running operation. By default, the command waits for the operation to complete. Use --no-wait to return immediately with the raw @@ -1086,6 +1127,8 @@ func newDeleteCatalog() *cobra.Command { Format: "catalogs/{catalog_id}".` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1187,6 +1230,8 @@ func newDeleteDatabase() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1272,8 +1317,10 @@ func newDeleteEndpoint() *cobra.Command { cmd.Flags().DurationVar(&deleteEndpointTimeout, "timeout", 0, `maximum amount of time to reach DONE state`) cmd.Use = "delete-endpoint NAME" - cmd.Short = `Delete an Endpoint.` - cmd.Long = `Delete an Endpoint. + cmd.Short = `*Beta* Delete an Endpoint.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete an Endpoint. Deletes the specified compute endpoint. @@ -1287,6 +1334,8 @@ func newDeleteEndpoint() *cobra.Command { projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1371,9 +1420,13 @@ func newDeleteProject() *cobra.Command { cmd.Flags().BoolVar(&deleteProjectSkipWait, "no-wait", deleteProjectSkipWait, `do not wait to reach DONE state`) cmd.Flags().DurationVar(&deleteProjectTimeout, "timeout", 0, `maximum amount of time to reach DONE state`) + cmd.Flags().BoolVar(&deleteProjectReq.Purge, "purge", deleteProjectReq.Purge, `If true, permanently deletes the project (hard delete).`) + cmd.Use = "delete-project NAME" - cmd.Short = `Delete a Project.` - cmd.Long = `Delete a Project. + cmd.Short = `*Beta* Delete a Project.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete a Project. Deletes the specified database project. @@ -1387,6 +1440,8 @@ func newDeleteProject() *cobra.Command { projects/{project_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1474,8 +1529,10 @@ func newDeleteRole() *cobra.Command { cmd.Flags().StringVar(&deleteRoleReq.ReassignOwnedTo, "reassign-owned-to", deleteRoleReq.ReassignOwnedTo, `Reassign objects.`) cmd.Use = "delete-role NAME" - cmd.Short = `Delete a Postgres Role from a Branch.` - cmd.Long = `Delete a Postgres Role from a Branch. + cmd.Short = `*Beta* Delete a Postgres Role from a Branch.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete a Postgres Role from a Branch. Deletes the specified Postgres role. @@ -1489,6 +1546,8 @@ func newDeleteRole() *cobra.Command { projects/{project_id}/branches/{branch_id}/roles/{role_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1574,8 +1633,10 @@ func newDeleteSyncedTable() *cobra.Command { cmd.Flags().DurationVar(&deleteSyncedTableTimeout, "timeout", 0, `maximum amount of time to reach DONE state`) cmd.Use = "delete-synced-table NAME" - cmd.Short = `Delete a Synced Database Table.` - cmd.Long = `Delete a Synced Database Table. + cmd.Short = `*Beta* Delete a Synced Database Table.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete a Synced Database Table. Delete a Synced Table. @@ -1590,6 +1651,8 @@ func newDeleteSyncedTable() *cobra.Command { are the UC entity names.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1674,8 +1737,10 @@ func newGenerateDatabaseCredential() *cobra.Command { // TODO: array: claims cmd.Use = "generate-database-credential ENDPOINT" - cmd.Short = `Generate OAuth credentials for a Postgres database.` - cmd.Long = `Generate OAuth credentials for a Postgres database. + cmd.Short = `*Beta* Generate OAuth credentials for a Postgres database.` + cmd.Long = `This command is in Beta and may change without notice. + +Generate OAuth credentials for a Postgres database. Arguments: ENDPOINT: This field is not yet supported. The endpoint for which this credential @@ -1683,6 +1748,8 @@ func newGenerateDatabaseCredential() *cobra.Command { projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1752,8 +1819,10 @@ func newGetBranch() *cobra.Command { var getBranchReq postgres.GetBranchRequest cmd.Use = "get-branch NAME" - cmd.Short = `Get a Branch.` - cmd.Long = `Get a Branch. + cmd.Short = `*Beta* Get a Branch.` + cmd.Long = `This command is in Beta and may change without notice. + +Get a Branch. Retrieves information about the specified database branch. @@ -1762,6 +1831,8 @@ func newGetBranch() *cobra.Command { projects/{project_id}/branches/{branch_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1810,8 +1881,10 @@ func newGetCatalog() *cobra.Command { var getCatalogReq postgres.GetCatalogRequest cmd.Use = "get-catalog NAME" - cmd.Short = `Get a Database Catalog.` - cmd.Long = `Get a Database Catalog. + cmd.Short = `*Beta* Get a Database Catalog.` + cmd.Long = `This command is in Beta and may change without notice. + +Get a Database Catalog. Arguments: NAME: The full resource path of the catalog to retrieve. @@ -1819,6 +1892,8 @@ func newGetCatalog() *cobra.Command { Format: "catalogs/{catalog_id}".` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1878,6 +1953,8 @@ func newGetDatabase() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1926,8 +2003,10 @@ func newGetEndpoint() *cobra.Command { var getEndpointReq postgres.GetEndpointRequest cmd.Use = "get-endpoint NAME" - cmd.Short = `Get an Endpoint.` - cmd.Long = `Get an Endpoint. + cmd.Short = `*Beta* Get an Endpoint.` + cmd.Long = `This command is in Beta and may change without notice. + +Get an Endpoint. Retrieves information about the specified compute endpoint, including its connection details and operational state. @@ -1937,6 +2016,8 @@ func newGetEndpoint() *cobra.Command { projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1985,8 +2066,10 @@ func newGetOperation() *cobra.Command { var getOperationReq postgres.GetOperationRequest cmd.Use = "get-operation NAME" - cmd.Short = `Get an Operation.` - cmd.Long = `Get an Operation. + cmd.Short = `*Beta* Get an Operation.` + cmd.Long = `This command is in Beta and may change without notice. + +Get an Operation. Retrieves the status of a long-running operation. @@ -1994,6 +2077,8 @@ func newGetOperation() *cobra.Command { NAME: The name of the operation resource.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -2042,8 +2127,10 @@ func newGetProject() *cobra.Command { var getProjectReq postgres.GetProjectRequest cmd.Use = "get-project NAME" - cmd.Short = `Get a Project.` - cmd.Long = `Get a Project. + cmd.Short = `*Beta* Get a Project.` + cmd.Long = `This command is in Beta and may change without notice. + +Get a Project. Retrieves information about the specified database project. @@ -2052,6 +2139,8 @@ func newGetProject() *cobra.Command { projects/{project_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -2100,8 +2189,10 @@ func newGetRole() *cobra.Command { var getRoleReq postgres.GetRoleRequest cmd.Use = "get-role NAME" - cmd.Short = `Get a Postgres Role for a Branch.` - cmd.Long = `Get a Postgres Role for a Branch. + cmd.Short = `*Beta* Get a Postgres Role for a Branch.` + cmd.Long = `This command is in Beta and may change without notice. + +Get a Postgres Role for a Branch. Retrieves information about the specified Postgres role, including its authentication method and permissions. @@ -2111,6 +2202,8 @@ func newGetRole() *cobra.Command { projects/{project_id}/branches/{branch_id}/roles/{role_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -2159,16 +2252,21 @@ func newGetSyncedTable() *cobra.Command { var getSyncedTableReq postgres.GetSyncedTableRequest cmd.Use = "get-synced-table NAME" - cmd.Short = `Get a Synced Database Table.` - cmd.Long = `Get a Synced Database Table. + cmd.Short = `*Beta* Get a Synced Database Table.` + cmd.Long = `This command is in Beta and may change without notice. + +Get a Synced Database Table. Get a Synced Table. Arguments: - NAME: Format: "synced_tables/{catalog}.{schema}.{table}", where (catalog, - schema, table) are the entity names in the Unity Catalog.` + NAME: The Full resource name of the synced table. Format: + "synced_tables/{catalog}.{schema}.{table}", where (catalog, schema, table) + are the entity names in the Unity Catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -2230,8 +2328,10 @@ func newListBranches() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-branches PARENT" - cmd.Short = `List Branches.` - cmd.Long = `List Branches. + cmd.Short = `*Beta* List Branches.` + cmd.Long = `This command is in Beta and may change without notice. + +List Branches. Returns a paginated list of database branches in the project. @@ -2240,6 +2340,8 @@ func newListBranches() *cobra.Command { projects/{project_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -2317,6 +2419,8 @@ func newListDatabases() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -2381,8 +2485,10 @@ func newListEndpoints() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-endpoints PARENT" - cmd.Short = `List Endpoints.` - cmd.Long = `List Endpoints. + cmd.Short = `*Beta* List Endpoints.` + cmd.Long = `This command is in Beta and may change without notice. + +List Endpoints. Returns a paginated list of compute endpoints in the branch. @@ -2391,6 +2497,8 @@ func newListEndpoints() *cobra.Command { projects/{project_id}/branches/{branch_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -2446,6 +2554,7 @@ func newListProjects() *cobra.Command { var listProjectsLimit int cmd.Flags().IntVar(&listProjectsReq.PageSize, "page-size", listProjectsReq.PageSize, `Upper bound for items returned.`) + cmd.Flags().BoolVar(&listProjectsReq.ShowDeleted, "show-deleted", listProjectsReq.ShowDeleted, `Whether to include soft-deleted projects in the response.`) // Limit flag for total result capping. cmd.Flags().IntVar(&listProjectsLimit, "limit", 0, `Maximum number of results to return.`) @@ -2455,13 +2564,17 @@ func newListProjects() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-projects" - cmd.Short = `List Projects.` - cmd.Long = `List Projects. + cmd.Short = `*Beta* List Projects.` + cmd.Long = `This command is in Beta and may change without notice. + +List Projects. Returns a paginated list of database projects in the workspace that the user has permission to access.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -2524,8 +2637,10 @@ func newListRoles() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-roles PARENT" - cmd.Short = `List Postgres Roles for a Branch.` - cmd.Long = `List Postgres Roles for a Branch. + cmd.Short = `*Beta* List Postgres Roles for a Branch.` + cmd.Long = `This command is in Beta and may change without notice. + +List Postgres Roles for a Branch. Returns a paginated list of Postgres roles in the branch. @@ -2534,6 +2649,8 @@ func newListRoles() *cobra.Command { projects/{project_id}/branches/{branch_id}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -2570,6 +2687,111 @@ func newListRoles() *cobra.Command { return cmd } +// start undelete-project command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var undeleteProjectOverrides []func( + *cobra.Command, + *postgres.UndeleteProjectRequest, +) + +func newUndeleteProject() *cobra.Command { + cmd := &cobra.Command{} + + var undeleteProjectReq postgres.UndeleteProjectRequest + + var undeleteProjectSkipWait bool + var undeleteProjectTimeout time.Duration + + cmd.Flags().BoolVar(&undeleteProjectSkipWait, "no-wait", undeleteProjectSkipWait, `do not wait to reach DONE state`) + cmd.Flags().DurationVar(&undeleteProjectTimeout, "timeout", 0, `maximum amount of time to reach DONE state`) + + cmd.Use = "undelete-project NAME" + cmd.Short = `Undelete a Project.` + cmd.Long = `Undelete a Project. + + Undeletes a soft-deleted project. + + This is a long-running operation. By default, the command waits for the + operation to complete. Use --no-wait to return immediately with the raw + operation details. The operation's 'name' field can then be used to poll for + completion using the get-operation command. + + Arguments: + NAME: The full resource path of the project to undelete. Format: + projects/{project_id}` + + // This command is being previewed; hide from help output. + cmd.Hidden = true + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + undeleteProjectReq.Name = args[0] + + // Determine which mode to execute based on flags. + switch { + case undeleteProjectSkipWait: + wait, err := w.Postgres.UndeleteProject(ctx, undeleteProjectReq) + if err != nil { + return err + } + + // Return operation immediately without waiting. + operation, err := w.Postgres.GetOperation(ctx, postgres.GetOperationRequest{ + Name: wait.Name(), + }) + if err != nil { + return err + } + return cmdio.Render(ctx, operation) + + default: + wait, err := w.Postgres.UndeleteProject(ctx, undeleteProjectReq) + if err != nil { + return err + } + + // Show spinner while waiting for completion. + sp := cmdio.NewSpinner(ctx) + sp.Update("Waiting for undelete-project to complete...") + + // Wait for completion. + opts := api.WithTimeout(undeleteProjectTimeout) + + err = wait.Wait(ctx, opts) + if err != nil { + return err + } + sp.Close() + return nil + } + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range undeleteProjectOverrides { + fn(cmd, &undeleteProjectReq) + } + + return cmd +} + // start update-branch command // Slice with functions to override default command behavior. @@ -2599,8 +2821,10 @@ func newUpdateBranch() *cobra.Command { // TODO: complex arg: status cmd.Use = "update-branch NAME UPDATE_MASK" - cmd.Short = `Update a Branch.` - cmd.Long = `Update a Branch. + cmd.Short = `*Beta* Update a Branch.` + cmd.Long = `This command is in Beta and may change without notice. + +Update a Branch. Updates the specified database branch. You can set this branch as the project's default branch, or protect/unprotect it. @@ -2617,6 +2841,8 @@ func newUpdateBranch() *cobra.Command { when possible.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -2743,6 +2969,8 @@ func newUpdateDatabase() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -2851,8 +3079,10 @@ func newUpdateEndpoint() *cobra.Command { // TODO: complex arg: status cmd.Use = "update-endpoint NAME UPDATE_MASK" - cmd.Short = `Update an Endpoint.` - cmd.Long = `Update an Endpoint. + cmd.Short = `*Beta* Update an Endpoint.` + cmd.Long = `This command is in Beta and may change without notice. + +Update an Endpoint. Updates the specified compute endpoint. You can update autoscaling limits, suspend timeout, or enable/disable the compute endpoint. @@ -2869,6 +3099,8 @@ func newUpdateEndpoint() *cobra.Command { when possible.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -2978,8 +3210,10 @@ func newUpdateProject() *cobra.Command { // TODO: complex arg: status cmd.Use = "update-project NAME UPDATE_MASK" - cmd.Short = `Update a Project.` - cmd.Long = `Update a Project. + cmd.Short = `*Beta* Update a Project.` + cmd.Long = `This command is in Beta and may change without notice. + +Update a Project. Updates the specified database project. @@ -2995,6 +3229,8 @@ func newUpdateProject() *cobra.Command { when possible.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -3103,8 +3339,10 @@ func newUpdateRole() *cobra.Command { // TODO: complex arg: status cmd.Use = "update-role NAME UPDATE_MASK" - cmd.Short = `Update a Postgres Role for a Branch.` - cmd.Long = `Update a Postgres Role for a Branch. + cmd.Short = `*Beta* Update a Postgres Role for a Branch.` + cmd.Long = `This command is in Beta and may change without notice. + +Update a Postgres Role for a Branch. Update a role for a branch. @@ -3120,6 +3358,8 @@ func newUpdateRole() *cobra.Command { will be updated when possible.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/workspace/provider-exchange-filters/provider-exchange-filters.go b/cmd/workspace/provider-exchange-filters/provider-exchange-filters.go index 2f3e43779b5..6b29d15b39e 100755 --- a/cmd/workspace/provider-exchange-filters/provider-exchange-filters.go +++ b/cmd/workspace/provider-exchange-filters/provider-exchange-filters.go @@ -19,13 +19,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "provider-exchange-filters", - Short: `Marketplace exchanges filters curate which groups can access an exchange.`, - Long: `Marketplace exchanges filters curate which groups can access an exchange.`, + Use: "provider-exchange-filters", + Short: `*Public Preview* Marketplace exchanges filters curate which groups can access an exchange.`, + Long: `This command is in Public Preview and may change without notice. + +Marketplace exchanges filters curate which groups can access an exchange.`, GroupID: "marketplace", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -58,12 +64,16 @@ func newCreate() *cobra.Command { cmd.Flags().Var(&createJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "create" - cmd.Short = `Create a new exchange filter.` - cmd.Long = `Create a new exchange filter. + cmd.Short = `*Public Preview* Create a new exchange filter.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a new exchange filter. Add an exchange filter.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -120,12 +130,16 @@ func newDelete() *cobra.Command { var deleteReq marketplace.DeleteExchangeFilterRequest cmd.Use = "delete ID" - cmd.Short = `Delete an exchange filter.` - cmd.Long = `Delete an exchange filter. + cmd.Short = `*Public Preview* Delete an exchange filter.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete an exchange filter. Delete an exchange filter` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -198,12 +212,16 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list EXCHANGE_ID" - cmd.Short = `List exchange filters.` - cmd.Long = `List exchange filters. + cmd.Short = `*Public Preview* List exchange filters.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List exchange filters. List exchange filter` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -258,12 +276,16 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update ID" - cmd.Short = `Update exchange filter.` - cmd.Long = `Update exchange filter. + cmd.Short = `*Public Preview* Update exchange filter.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update exchange filter. Update an exchange filter.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/provider-exchanges/provider-exchanges.go b/cmd/workspace/provider-exchanges/provider-exchanges.go index 5410ad8a038..d2c56498a3c 100755 --- a/cmd/workspace/provider-exchanges/provider-exchanges.go +++ b/cmd/workspace/provider-exchanges/provider-exchanges.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "provider-exchanges", - Short: `Marketplace exchanges allow providers to share their listings with a curated set of customers.`, - Long: `Marketplace exchanges allow providers to share their listings with a curated + Short: `*Public Preview* Marketplace exchanges allow providers to share their listings with a curated set of customers.`, + Long: `This command is in Public Preview and may change without notice. + +Marketplace exchanges allow providers to share their listings with a curated set of customers.`, GroupID: "marketplace", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newAddListingToExchange()) cmd.AddCommand(newCreate()) @@ -64,12 +70,16 @@ func newAddListingToExchange() *cobra.Command { cmd.Flags().Var(&addListingToExchangeJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "add-listing-to-exchange LISTING_ID EXCHANGE_ID" - cmd.Short = `Add an exchange for listing.` - cmd.Long = `Add an exchange for listing. + cmd.Short = `*Public Preview* Add an exchange for listing.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Add an exchange for listing. Associate an exchange with a listing` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -145,12 +155,16 @@ func newCreate() *cobra.Command { cmd.Flags().Var(&createJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "create" - cmd.Short = `Create an exchange.` - cmd.Long = `Create an exchange. + cmd.Short = `*Public Preview* Create an exchange.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create an exchange. Create an exchange` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -207,12 +221,16 @@ func newDelete() *cobra.Command { var deleteReq marketplace.DeleteExchangeRequest cmd.Use = "delete ID" - cmd.Short = `Delete an exchange.` - cmd.Long = `Delete an exchange. + cmd.Short = `*Public Preview* Delete an exchange.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete an exchange. This removes a listing from marketplace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -260,12 +278,16 @@ func newDeleteListingFromExchange() *cobra.Command { var deleteListingFromExchangeReq marketplace.RemoveExchangeForListingRequest cmd.Use = "delete-listing-from-exchange ID" - cmd.Short = `Remove an exchange for listing.` - cmd.Long = `Remove an exchange for listing. + cmd.Short = `*Public Preview* Remove an exchange for listing.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Remove an exchange for listing. Disassociate an exchange with a listing` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -313,10 +335,14 @@ func newGet() *cobra.Command { var getReq marketplace.GetExchangeRequest cmd.Use = "get ID" - cmd.Short = `Get an exchange.` - cmd.Long = `Get an exchange.` + cmd.Short = `*Public Preview* Get an exchange.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get an exchange.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -378,12 +404,16 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list" - cmd.Short = `List exchanges.` - cmd.Long = `List exchanges. + cmd.Short = `*Public Preview* List exchanges.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List exchanges. List exchanges visible to provider` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -446,12 +476,16 @@ func newListExchangesForListing() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-exchanges-for-listing LISTING_ID" - cmd.Short = `List exchanges for listing.` - cmd.Long = `List exchanges for listing. + cmd.Short = `*Public Preview* List exchanges for listing.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List exchanges for listing. List exchanges associated with a listing` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -516,12 +550,16 @@ func newListListingsForExchange() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-listings-for-exchange EXCHANGE_ID" - cmd.Short = `List listings for exchange.` - cmd.Long = `List listings for exchange. + cmd.Short = `*Public Preview* List listings for exchange.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List listings for exchange. List listings associated with an exchange` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -576,12 +614,16 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update ID" - cmd.Short = `Update exchange.` - cmd.Long = `Update exchange. + cmd.Short = `*Public Preview* Update exchange.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update exchange. Update an exchange` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/provider-files/provider-files.go b/cmd/workspace/provider-files/provider-files.go index ceb4ff5479f..1c77119e0ab 100755 --- a/cmd/workspace/provider-files/provider-files.go +++ b/cmd/workspace/provider-files/provider-files.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "provider-files", - Short: `Marketplace offers a set of file APIs for various purposes such as preview notebooks and provider icons.`, - Long: `Marketplace offers a set of file APIs for various purposes such as preview + Short: `*Public Preview* Marketplace offers a set of file APIs for various purposes such as preview notebooks and provider icons.`, + Long: `This command is in Public Preview and may change without notice. + +Marketplace offers a set of file APIs for various purposes such as preview notebooks and provider icons.`, GroupID: "marketplace", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -61,13 +67,17 @@ func newCreate() *cobra.Command { cmd.Flags().StringVar(&createReq.DisplayName, "display-name", createReq.DisplayName, ``) cmd.Use = "create" - cmd.Short = `Create a file.` - cmd.Long = `Create a file. + cmd.Short = `*Public Preview* Create a file.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a file. Create a file. Currently, only provider icons and attached notebooks are supported.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -124,12 +134,16 @@ func newDelete() *cobra.Command { var deleteReq marketplace.DeleteFileRequest cmd.Use = "delete FILE_ID" - cmd.Short = `Delete a file.` - cmd.Long = `Delete a file. + cmd.Short = `*Public Preview* Delete a file.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete a file. Delete a file` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -189,12 +203,16 @@ func newGet() *cobra.Command { var getReq marketplace.GetFileRequest cmd.Use = "get FILE_ID" - cmd.Short = `Get a file.` - cmd.Long = `Get a file. + cmd.Short = `*Public Preview* Get a file.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get a file. Get a file` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -271,12 +289,16 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list" - cmd.Short = `List files.` - cmd.Long = `List files. + cmd.Short = `*Public Preview* List files.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List files. List files attached to a parent entity.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/provider-listings/provider-listings.go b/cmd/workspace/provider-listings/provider-listings.go index f50e2d743c2..854bdebfd7f 100755 --- a/cmd/workspace/provider-listings/provider-listings.go +++ b/cmd/workspace/provider-listings/provider-listings.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "provider-listings", - Short: `Listings are the core entities in the Marketplace.`, - Long: `Listings are the core entities in the Marketplace. They represent the products + Short: `*Public Preview* Listings are the core entities in the Marketplace.`, + Long: `This command is in Public Preview and may change without notice. + +Listings are the core entities in the Marketplace. They represent the products that are available for consumption.`, GroupID: "marketplace", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -60,12 +66,16 @@ func newCreate() *cobra.Command { cmd.Flags().Var(&createJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "create" - cmd.Short = `Create a listing.` - cmd.Long = `Create a listing. + cmd.Short = `*Public Preview* Create a listing.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a listing. Create a new listing` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -122,12 +132,16 @@ func newDelete() *cobra.Command { var deleteReq marketplace.DeleteListingRequest cmd.Use = "delete ID" - cmd.Short = `Delete a listing.` - cmd.Long = `Delete a listing. + cmd.Short = `*Public Preview* Delete a listing.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete a listing. Delete a listing` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -187,12 +201,16 @@ func newGet() *cobra.Command { var getReq marketplace.GetListingRequest cmd.Use = "get ID" - cmd.Short = `Get a listing.` - cmd.Long = `Get a listing. + cmd.Short = `*Public Preview* Get a listing.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get a listing. Get a listing` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -266,12 +284,16 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list" - cmd.Short = `List listings.` - cmd.Long = `List listings. + cmd.Short = `*Public Preview* List listings.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List listings. List listings owned by this provider` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -324,12 +346,16 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update ID" - cmd.Short = `Update listing.` - cmd.Long = `Update listing. + cmd.Short = `*Public Preview* Update listing.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update listing. Update a listing` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/provider-personalization-requests/provider-personalization-requests.go b/cmd/workspace/provider-personalization-requests/provider-personalization-requests.go index dac5c529062..f93215a96cd 100755 --- a/cmd/workspace/provider-personalization-requests/provider-personalization-requests.go +++ b/cmd/workspace/provider-personalization-requests/provider-personalization-requests.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "provider-personalization-requests", - Short: `Personalization requests are an alternate to instantly available listings.`, - Long: `Personalization requests are an alternate to instantly available listings. + Short: `*Public Preview* Personalization requests are an alternate to instantly available listings.`, + Long: `This command is in Public Preview and may change without notice. + +Personalization requests are an alternate to instantly available listings. Control the lifecycle of personalized solutions.`, GroupID: "marketplace", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newList()) cmd.AddCommand(newUpdate()) @@ -67,13 +73,17 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list" - cmd.Short = `All personalization requests across all listings.` - cmd.Long = `All personalization requests across all listings. + cmd.Short = `*Public Preview* All personalization requests across all listings.` + cmd.Long = `This command is in Public Preview and may change without notice. + +All personalization requests across all listings. List personalization requests to this provider. This will return all personalization requests, regardless of which listing they are for.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -129,13 +139,17 @@ func newUpdate() *cobra.Command { // TODO: complex arg: share cmd.Use = "update LISTING_ID REQUEST_ID STATUS" - cmd.Short = `Update personalization request status.` - cmd.Long = `Update personalization request status. + cmd.Short = `*Public Preview* Update personalization request status.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update personalization request status. Update personalization request. This method only permits updating the status of the request.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/provider-provider-analytics-dashboards/provider-provider-analytics-dashboards.go b/cmd/workspace/provider-provider-analytics-dashboards/provider-provider-analytics-dashboards.go index b03523c0ac2..a85c1878af7 100755 --- a/cmd/workspace/provider-provider-analytics-dashboards/provider-provider-analytics-dashboards.go +++ b/cmd/workspace/provider-provider-analytics-dashboards/provider-provider-analytics-dashboards.go @@ -17,13 +17,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "provider-provider-analytics-dashboards", - Short: `Manage templated analytics solution for providers.`, - Long: `Manage templated analytics solution for providers.`, + Use: "provider-provider-analytics-dashboards", + Short: `*Public Preview* Manage templated analytics solution for providers.`, + Long: `This command is in Public Preview and may change without notice. + +Manage templated analytics solution for providers.`, GroupID: "marketplace", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newGet()) @@ -50,13 +56,17 @@ func newCreate() *cobra.Command { cmd := &cobra.Command{} cmd.Use = "create" - cmd.Short = `Create provider analytics dashboard.` - cmd.Long = `Create provider analytics dashboard. + cmd.Short = `*Public Preview* Create provider analytics dashboard.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create provider analytics dashboard. Create provider analytics dashboard. Returns Marketplace specific id. Not to be confused with the Lakeview dashboard id.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -94,10 +104,14 @@ func newGet() *cobra.Command { cmd := &cobra.Command{} cmd.Use = "get" - cmd.Short = `Get provider analytics dashboard.` - cmd.Long = `Get provider analytics dashboard.` + cmd.Short = `*Public Preview* Get provider analytics dashboard.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get provider analytics dashboard.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -135,10 +149,14 @@ func newGetLatestVersion() *cobra.Command { cmd := &cobra.Command{} cmd.Use = "get-latest-version" - cmd.Short = `Get latest version of provider analytics dashboard.` - cmd.Long = `Get latest version of provider analytics dashboard.` + cmd.Short = `*Public Preview* Get latest version of provider analytics dashboard.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get latest version of provider analytics dashboard.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -184,13 +202,17 @@ func newUpdate() *cobra.Command { cmd.Flags().Int64Var(&updateReq.Version, "version", updateReq.Version, `this is the version of the dashboard template we want to update our user to current expectation is that it should be equal to latest version of the dashboard template.`) cmd.Use = "update ID" - cmd.Short = `Update provider analytics dashboard.` - cmd.Long = `Update provider analytics dashboard. + cmd.Short = `*Public Preview* Update provider analytics dashboard.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update provider analytics dashboard. Arguments: ID: id is immutable property and can't be updated.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/provider-providers/provider-providers.go b/cmd/workspace/provider-providers/provider-providers.go index 2646c166cdf..011068323ad 100755 --- a/cmd/workspace/provider-providers/provider-providers.go +++ b/cmd/workspace/provider-providers/provider-providers.go @@ -19,13 +19,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "provider-providers", - Short: `Providers are entities that manage assets in Marketplace.`, - Long: `Providers are entities that manage assets in Marketplace.`, + Use: "provider-providers", + Short: `*Public Preview* Providers are entities that manage assets in Marketplace.`, + Long: `This command is in Public Preview and may change without notice. + +Providers are entities that manage assets in Marketplace.`, GroupID: "marketplace", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -59,12 +65,16 @@ func newCreate() *cobra.Command { cmd.Flags().Var(&createJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "create" - cmd.Short = `Create a provider.` - cmd.Long = `Create a provider. + cmd.Short = `*Public Preview* Create a provider.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a provider. Create a provider` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -121,12 +131,16 @@ func newDelete() *cobra.Command { var deleteReq marketplace.DeleteProviderRequest cmd.Use = "delete ID" - cmd.Short = `Delete provider.` - cmd.Long = `Delete provider. + cmd.Short = `*Public Preview* Delete provider.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete provider. Delete provider` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -186,12 +200,16 @@ func newGet() *cobra.Command { var getReq marketplace.GetProviderRequest cmd.Use = "get ID" - cmd.Short = `Get provider.` - cmd.Long = `Get provider. + cmd.Short = `*Public Preview* Get provider.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get provider. Get provider profile` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -265,12 +283,16 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list" - cmd.Short = `List providers.` - cmd.Long = `List providers. + cmd.Short = `*Public Preview* List providers.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List providers. List provider profiles for account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -323,12 +345,16 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update ID" - cmd.Short = `Update provider.` - cmd.Long = `Update provider. + cmd.Short = `*Public Preview* Update provider.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update provider. Update provider profile` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/providers/providers.go b/cmd/workspace/providers/providers.go index 2c4521f553e..25d0ca73e9c 100755 --- a/cmd/workspace/providers/providers.go +++ b/cmd/workspace/providers/providers.go @@ -28,6 +28,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -78,6 +82,8 @@ func newCreate() *cobra.Command { Supported values: [DATABRICKS, OAUTH_CLIENT_CREDENTIALS, OIDC_FEDERATION, TOKEN]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -164,6 +170,8 @@ func newDelete() *cobra.Command { NAME: Name of the provider.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -234,6 +242,8 @@ func newGet() *cobra.Command { NAME: Name of the provider.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -320,6 +330,8 @@ func newList() *cobra.Command { the array.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -385,6 +397,8 @@ func newListProviderShareAssets() *cobra.Command { SHARE_NAME: The name of the share.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -458,6 +472,8 @@ func newListShares() *cobra.Command { NAME: Name of the provider in which to list shares.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -541,6 +557,8 @@ func newUpdate() *cobra.Command { NAME: Name of the provider.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/quality-monitor-v2/quality-monitor-v2.go b/cmd/workspace/quality-monitor-v2/quality-monitor-v2.go index 313cc96eb55..8290fbf92ac 100755 --- a/cmd/workspace/quality-monitor-v2/quality-monitor-v2.go +++ b/cmd/workspace/quality-monitor-v2/quality-monitor-v2.go @@ -20,14 +20,20 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "quality-monitor-v2", - Short: `Deprecated: Please use the Data Quality Monitoring API instead (REST: /api/data-quality/v1/monitors).`, - Long: `Deprecated: Please use the Data Quality Monitoring API instead (REST: + Short: `*Beta* Deprecated: Please use the Data Quality Monitoring API instead (REST: /api/data-quality/v1/monitors).`, + Long: `This command is in Beta and may change without notice. + +Deprecated: Please use the Data Quality Monitoring API instead (REST: /api/data-quality/v1/monitors). Manage data quality of UC objects (currently support schema).`, GroupID: "qualitymonitor", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + // Add methods cmd.AddCommand(newCreateQualityMonitor()) cmd.AddCommand(newDeleteQualityMonitor()) @@ -65,8 +71,10 @@ func newCreateQualityMonitor() *cobra.Command { // TODO: array: validity_check_configurations cmd.Use = "create-quality-monitor OBJECT_TYPE OBJECT_ID" - cmd.Short = `Create a quality monitor.` - cmd.Long = `Create a quality monitor. + cmd.Short = `*Beta* Create a quality monitor.` + cmd.Long = `This command is in Beta and may change without notice. + +Create a quality monitor. Deprecated: Use Data Quality Monitoring API instead (/api/data-quality/v1/monitors). Create a quality monitor on UC object. @@ -76,6 +84,8 @@ func newCreateQualityMonitor() *cobra.Command { OBJECT_ID: The uuid of the request object. For example, schema id.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -148,8 +158,10 @@ func newDeleteQualityMonitor() *cobra.Command { var deleteQualityMonitorReq qualitymonitorv2.DeleteQualityMonitorRequest cmd.Use = "delete-quality-monitor OBJECT_TYPE OBJECT_ID" - cmd.Short = `Delete a quality monitor.` - cmd.Long = `Delete a quality monitor. + cmd.Short = `*Beta* Delete a quality monitor.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete a quality monitor. Deprecated: Use Data Quality Monitoring API instead (/api/data-quality/v1/monitors). Delete a quality monitor on UC object. @@ -159,6 +171,8 @@ func newDeleteQualityMonitor() *cobra.Command { OBJECT_ID: The uuid of the request object. For example, schema id.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -207,8 +221,10 @@ func newGetQualityMonitor() *cobra.Command { var getQualityMonitorReq qualitymonitorv2.GetQualityMonitorRequest cmd.Use = "get-quality-monitor OBJECT_TYPE OBJECT_ID" - cmd.Short = `Read a quality monitor.` - cmd.Long = `Read a quality monitor. + cmd.Short = `*Beta* Read a quality monitor.` + cmd.Long = `This command is in Beta and may change without notice. + +Read a quality monitor. Deprecated: Use Data Quality Monitoring API instead (/api/data-quality/v1/monitors). Read a quality monitor on UC object. @@ -218,6 +234,8 @@ func newGetQualityMonitor() *cobra.Command { OBJECT_ID: The uuid of the request object. For example, schema id.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -280,13 +298,17 @@ func newListQualityMonitor() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-quality-monitor" - cmd.Short = `List quality monitors.` - cmd.Long = `List quality monitors. + cmd.Short = `*Beta* List quality monitors.` + cmd.Long = `This command is in Beta and may change without notice. + +List quality monitors. Deprecated: Use Data Quality Monitoring API instead (/api/data-quality/v1/monitors). (Unimplemented) List quality monitors.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -343,8 +365,10 @@ func newUpdateQualityMonitor() *cobra.Command { // TODO: array: validity_check_configurations cmd.Use = "update-quality-monitor OBJECT_TYPE OBJECT_ID OBJECT_TYPE OBJECT_ID" - cmd.Short = `Update a quality monitor.` - cmd.Long = `Update a quality monitor. + cmd.Short = `*Beta* Update a quality monitor.` + cmd.Long = `This command is in Beta and may change without notice. + +Update a quality monitor. Deprecated: Use Data Quality Monitoring API instead (/api/data-quality/v1/monitors). (Unimplemented) Update a quality monitor on @@ -357,6 +381,8 @@ func newUpdateQualityMonitor() *cobra.Command { OBJECT_ID: The uuid of the request object. For example, schema id.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/quality-monitors/quality-monitors.go b/cmd/workspace/quality-monitors/quality-monitors.go index ae801caa0ff..4e08a93ce46 100755 --- a/cmd/workspace/quality-monitors/quality-monitors.go +++ b/cmd/workspace/quality-monitors/quality-monitors.go @@ -36,6 +36,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCancelRefresh()) cmd.AddCommand(newCreate()) @@ -85,6 +89,8 @@ func newCancelRefresh() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -179,6 +185,8 @@ func newCreate() *cobra.Command { default user location via UI and Python APIs.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -275,6 +283,8 @@ func newDelete() *cobra.Command { corresponds to the {full_table_name_arg} arg in the endpoint path.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -345,6 +355,8 @@ func newGet() *cobra.Command { corresponds to the {full_table_name_arg} arg in the endpoint path.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -414,6 +426,8 @@ func newGetRefresh() *cobra.Command { REFRESH_ID: ID of the refresh.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -487,6 +501,8 @@ func newListRefreshes() *cobra.Command { insensitive and spaces are disallowed.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -565,6 +581,8 @@ func newRegenerateDashboard() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -646,6 +664,8 @@ func newRunRefresh() *cobra.Command { insensitive and spaces are disallowed.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -734,6 +754,8 @@ func newUpdate() *cobra.Command { be in 2-level format {catalog}.{schema}` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/queries-legacy/queries-legacy.go b/cmd/workspace/queries-legacy/queries-legacy.go index e3dcc2402b3..c82909cdca8 100755 --- a/cmd/workspace/queries-legacy/queries-legacy.go +++ b/cmd/workspace/queries-legacy/queries-legacy.go @@ -34,6 +34,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -96,6 +100,8 @@ func newCreate() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -168,6 +174,8 @@ func newDelete() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -227,6 +235,8 @@ func newGet() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -306,6 +316,8 @@ func newList() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -367,6 +379,8 @@ func newRestore() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -438,6 +452,8 @@ func newUpdate() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/queries/queries.go b/cmd/workspace/queries/queries.go index e654b765d7b..0e7bb05be59 100755 --- a/cmd/workspace/queries/queries.go +++ b/cmd/workspace/queries/queries.go @@ -29,6 +29,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -72,6 +76,8 @@ func newCreate() *cobra.Command { Creates a query.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -140,6 +146,8 @@ func newDelete() *cobra.Command { days.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -205,6 +213,8 @@ func newGet() *cobra.Command { Gets a query.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -286,6 +296,8 @@ func newList() *cobra.Command { throttling, service degradation, or a temporary ban.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -357,6 +369,8 @@ func newListVisualizations() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -446,6 +460,8 @@ func newUpdate() *cobra.Command { future.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/query-history/query-history.go b/cmd/workspace/query-history/query-history.go index b56fb149140..fc9b0a1aa6e 100755 --- a/cmd/workspace/query-history/query-history.go +++ b/cmd/workspace/query-history/query-history.go @@ -24,6 +24,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newList()) @@ -66,6 +70,8 @@ func newList() *cobra.Command { statuses.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/workspace/query-visualizations-legacy/query-visualizations-legacy.go b/cmd/workspace/query-visualizations-legacy/query-visualizations-legacy.go index 511ce8c60a6..caa073e6bf0 100755 --- a/cmd/workspace/query-visualizations-legacy/query-visualizations-legacy.go +++ b/cmd/workspace/query-visualizations-legacy/query-visualizations-legacy.go @@ -36,6 +36,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -81,6 +85,8 @@ func newCreate() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -151,6 +157,8 @@ func newDelete() *cobra.Command { ID: Widget ID returned by :method:queryvisualizations/create` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -221,6 +229,8 @@ func newUpdate() *cobra.Command { [Learn more]: https://docs.databricks.com/en/sql/dbsql-api-latest.html` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/workspace/query-visualizations/query-visualizations.go b/cmd/workspace/query-visualizations/query-visualizations.go index 1017b51554e..44f9955cc3e 100755 --- a/cmd/workspace/query-visualizations/query-visualizations.go +++ b/cmd/workspace/query-visualizations/query-visualizations.go @@ -31,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -70,6 +74,8 @@ func newCreate() *cobra.Command { Adds a visualization to a query.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -135,6 +141,8 @@ func newDelete() *cobra.Command { Removes a visualization.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -207,6 +215,8 @@ func newUpdate() *cobra.Command { future.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/recipient-activation/recipient-activation.go b/cmd/workspace/recipient-activation/recipient-activation.go index 8505cbfb98e..0260cd5785f 100755 --- a/cmd/workspace/recipient-activation/recipient-activation.go +++ b/cmd/workspace/recipient-activation/recipient-activation.go @@ -32,6 +32,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newGetActivationUrlInfo()) cmd.AddCommand(newRetrieveToken()) @@ -68,6 +72,8 @@ func newGetActivationUrlInfo() *cobra.Command { ACTIVATION_URL: The one time activation url. It also accepts activation token.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -125,6 +131,8 @@ func newRetrieveToken() *cobra.Command { ACTIVATION_URL: The one time activation url. It also accepts activation token.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/recipient-federation-policies/recipient-federation-policies.go b/cmd/workspace/recipient-federation-policies/recipient-federation-policies.go index a8da9431289..8da45672e62 100755 --- a/cmd/workspace/recipient-federation-policies/recipient-federation-policies.go +++ b/cmd/workspace/recipient-federation-policies/recipient-federation-policies.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "recipient-federation-policies", - Short: `The Recipient Federation Policies APIs are only applicable in the open sharing model where the recipient object has the authentication type of OIDC_RECIPIENT, enabling data sharing from Databricks to non-Databricks recipients.`, - Long: `The Recipient Federation Policies APIs are only applicable in the open sharing + Short: `*Public Preview* The Recipient Federation Policies APIs are only applicable in the open sharing model where the recipient object has the authentication type of OIDC_RECIPIENT, enabling data sharing from Databricks to non-Databricks recipients.`, + Long: `This command is in Public Preview and may change without notice. + +The Recipient Federation Policies APIs are only applicable in the open sharing model where the recipient object has the authentication type of OIDC_RECIPIENT, enabling data sharing from Databricks to non-Databricks recipients. OIDC Token Federation enables secure, secret-less authentication @@ -50,6 +52,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -87,8 +93,10 @@ func newCreate() *cobra.Command { // TODO: complex arg: oidc_policy cmd.Use = "create RECIPIENT_NAME" - cmd.Short = `Create recipient federation policy.` - cmd.Long = `Create recipient federation policy. + cmd.Short = `*Public Preview* Create recipient federation policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create recipient federation policy. Create a federation policy for an OIDC_FEDERATION recipient for sharing data from Databricks to non-Databricks recipients. The caller must be the owner of @@ -122,6 +130,8 @@ func newCreate() *cobra.Command { policy is being created.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -182,8 +192,10 @@ func newDelete() *cobra.Command { var deleteReq sharing.DeleteFederationPolicyRequest cmd.Use = "delete RECIPIENT_NAME NAME" - cmd.Short = `Delete recipient federation policy.` - cmd.Long = `Delete recipient federation policy. + cmd.Short = `*Public Preview* Delete recipient federation policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete recipient federation policy. Deletes an existing federation policy for an OIDC_FEDERATION recipient. The caller must be the owner of the recipient. @@ -194,6 +206,8 @@ func newDelete() *cobra.Command { NAME: Name of the policy. This is the name of the policy to be deleted.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -242,8 +256,10 @@ func newGetFederationPolicy() *cobra.Command { var getFederationPolicyReq sharing.GetFederationPolicyRequest cmd.Use = "get-federation-policy RECIPIENT_NAME NAME" - cmd.Short = `Get recipient federation policy.` - cmd.Long = `Get recipient federation policy. + cmd.Short = `*Public Preview* Get recipient federation policy.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get recipient federation policy. Reads an existing federation policy for an OIDC_FEDERATION recipient for sharing data from Databricks to non-Databricks recipients. The caller must @@ -255,6 +271,8 @@ func newGetFederationPolicy() *cobra.Command { NAME: Name of the policy. This is the name of the policy to be retrieved.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -317,8 +335,10 @@ func newList() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list RECIPIENT_NAME" - cmd.Short = `List recipient federation policies.` - cmd.Long = `List recipient federation policies. + cmd.Short = `*Public Preview* List recipient federation policies.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List recipient federation policies. Lists federation policies for an OIDC_FEDERATION recipient for sharing data from Databricks to non-Databricks recipients. The caller must have read access @@ -329,6 +349,8 @@ func newList() *cobra.Command { policies are being listed.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/recipients/recipients.go b/cmd/workspace/recipients/recipients.go index 93eab8b7485..04da810e69b 100755 --- a/cmd/workspace/recipients/recipients.go +++ b/cmd/workspace/recipients/recipients.go @@ -42,6 +42,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -98,6 +102,8 @@ func newCreate() *cobra.Command { Supported values: [DATABRICKS, OAUTH_CLIENT_CREDENTIALS, OIDC_FEDERATION, TOKEN]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -184,6 +190,8 @@ func newDelete() *cobra.Command { NAME: Name of the recipient.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -242,6 +250,8 @@ func newGet() *cobra.Command { NAME: Name of the recipient.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -314,6 +324,8 @@ func newList() *cobra.Command { guarantee of a specific ordering of the elements in the array.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -380,6 +392,8 @@ func newRotateToken() *cobra.Command { immediately, negative number will return an error.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -468,6 +482,8 @@ func newSharePermissions() *cobra.Command { NAME: The name of the Recipient.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -537,6 +553,8 @@ func newUpdate() *cobra.Command { NAME: Name of the recipient.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/redash-config/redash-config.go b/cmd/workspace/redash-config/redash-config.go index ce173b6bb55..5497537c8a7 100755 --- a/cmd/workspace/redash-config/redash-config.go +++ b/cmd/workspace/redash-config/redash-config.go @@ -25,6 +25,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + // Add methods cmd.AddCommand(newGetConfig()) @@ -52,6 +56,8 @@ func newGetConfig() *cobra.Command { cmd.Long = `Read workspace configuration for Redash-v2.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/registered-models/registered-models.go b/cmd/workspace/registered-models/registered-models.go index e776c537aa3..66628aa810c 100755 --- a/cmd/workspace/registered-models/registered-models.go +++ b/cmd/workspace/registered-models/registered-models.go @@ -54,6 +54,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -121,6 +125,8 @@ func newCreate() *cobra.Command { schema.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -195,6 +201,8 @@ func newDelete() *cobra.Command { FULL_NAME: The three-level (fully qualified) name of the registered model` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -269,6 +277,8 @@ func newDeleteAlias() *cobra.Command { ALIAS: The name of the alias` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -334,6 +344,8 @@ func newGet() *cobra.Command { FULL_NAME: The three-level (fully qualified) name of the registered model` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -432,6 +444,8 @@ func newList() *cobra.Command { end of results has been reached.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -500,6 +514,8 @@ func newSetAlias() *cobra.Command { VERSION_NUM: The version number of the model version to which the alias points` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -610,6 +626,8 @@ func newUpdate() *cobra.Command { FULL_NAME: The three-level (fully qualified) name of the registered model` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/repos/repos.go b/cmd/workspace/repos/repos.go index 40e4dacf3a7..dd8f1f3c53b 100755 --- a/cmd/workspace/repos/repos.go +++ b/cmd/workspace/repos/repos.go @@ -35,6 +35,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -85,11 +89,15 @@ func newCreate() *cobra.Command { Arguments: URL: URL of the Git repository to be linked. PROVIDER: Git provider. This field is case-insensitive. The available Git providers - are gitHub, bitbucketCloud, gitLab, azureDevOpsServices, - gitHubEnterprise, bitbucketServer, gitLabEnterpriseEdition and - awsCodeCommit.` + are gitHub, bitbucketCloud, gitLab, azureDevOpsServices (Azure + DevOps Services, including Microsoft Entra ID authentication), + gitHubEnterprise, bitbucketServer (Bitbucket Data Center), + gitLabEnterpriseEdition (GitLab Self-Managed), and awsCodeCommit + (deprecated by AWS, not accepting new customers).` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -171,6 +179,8 @@ func newDelete() *cobra.Command { REPO_ID: The ID for the corresponding repo to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -242,6 +252,8 @@ func newGet() *cobra.Command { REPO_ID: ID of the Git folder (repo) object in the workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -314,6 +326,8 @@ func newGetPermissionLevels() *cobra.Command { REPO_ID: The repo for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -384,6 +398,8 @@ func newGetPermissions() *cobra.Command { REPO_ID: The repo for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -464,6 +480,8 @@ func newList() *cobra.Command { next_page_token to iterate through additional pages.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -529,6 +547,8 @@ func newSetPermissions() *cobra.Command { REPO_ID: The repo for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -618,6 +638,8 @@ func newUpdate() *cobra.Command { REPO_ID: ID of the Git folder (repo) object in the workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -707,6 +729,8 @@ func newUpdatePermissions() *cobra.Command { REPO_ID: The repo for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/resource-quotas/resource-quotas.go b/cmd/workspace/resource-quotas/resource-quotas.go index e5ac51456f4..b58233280e4 100755 --- a/cmd/workspace/resource-quotas/resource-quotas.go +++ b/cmd/workspace/resource-quotas/resource-quotas.go @@ -32,6 +32,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newGetQuota()) cmd.AddCommand(newListQuotas()) @@ -75,6 +79,8 @@ func newGetQuota() *cobra.Command { added as a suffix.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -151,6 +157,8 @@ func newListQuotas() *cobra.Command { end of results has been reached.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/workspace/restrict-workspace-admins/restrict-workspace-admins.go b/cmd/workspace/restrict-workspace-admins/restrict-workspace-admins.go index d81e8e34f03..bb947f91b34 100755 --- a/cmd/workspace/restrict-workspace-admins/restrict-workspace-admins.go +++ b/cmd/workspace/restrict-workspace-admins/restrict-workspace-admins.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "restrict-workspace-admins", - Short: `The Restrict Workspace Admins setting lets you control the capabilities of workspace admins.`, - Long: `The Restrict Workspace Admins setting lets you control the capabilities of + Short: `*Public Preview* The Restrict Workspace Admins setting lets you control the capabilities of workspace admins.`, + Long: `This command is in Public Preview and may change without notice. + +The Restrict Workspace Admins setting lets you control the capabilities of workspace admins. With the setting status set to ALLOW_ALL, workspace admins can create service principal personal access tokens on behalf of any service principal in their workspace. Workspace admins can also change a job owner to @@ -36,6 +38,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -66,8 +72,10 @@ func newDelete() *cobra.Command { cmd.Flags().StringVar(&deleteReq.Etag, "etag", deleteReq.Etag, `etag used for versioning.`) cmd.Use = "delete" - cmd.Short = `Delete the restrict workspace admins setting.` - cmd.Long = `Delete the restrict workspace admins setting. + cmd.Short = `*Public Preview* Delete the restrict workspace admins setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete the restrict workspace admins setting. Reverts the restrict workspace admins setting status for the workspace. A fresh etag needs to be provided in DELETE requests (as a query parameter). @@ -76,6 +84,8 @@ func newDelete() *cobra.Command { the request must be retried by using the fresh etag in the 409 response.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -124,12 +134,16 @@ func newGet() *cobra.Command { cmd.Flags().StringVar(&getReq.Etag, "etag", getReq.Etag, `etag used for versioning.`) cmd.Use = "get" - cmd.Short = `Get the restrict workspace admins setting.` - cmd.Long = `Get the restrict workspace admins setting. + cmd.Short = `*Public Preview* Get the restrict workspace admins setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the restrict workspace admins setting. Gets the restrict workspace admins setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -179,8 +193,10 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update" - cmd.Short = `Update the restrict workspace admins setting.` - cmd.Long = `Update the restrict workspace admins setting. + cmd.Short = `*Public Preview* Update the restrict workspace admins setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the restrict workspace admins setting. Updates the restrict workspace admins setting for the workspace. A fresh etag needs to be provided in PATCH requests (as part of the setting field). The @@ -189,6 +205,8 @@ func newUpdate() *cobra.Command { must be retried by using the fresh etag in the 409 response.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/rfa/rfa.go b/cmd/workspace/rfa/rfa.go index 51cd9b25cab..508c3db68a7 100755 --- a/cmd/workspace/rfa/rfa.go +++ b/cmd/workspace/rfa/rfa.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "rfa", - Short: `Request for Access enables users to request access for Unity Catalog securables.`, - Long: `Request for Access enables users to request access for Unity Catalog + Short: `*Public Preview* Request for Access enables users to request access for Unity Catalog securables.`, + Long: `This command is in Public Preview and may change without notice. + +Request for Access enables users to request access for Unity Catalog securables. These APIs provide a standardized way for securable owners (or users with @@ -30,6 +32,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newBatchCreateAccessRequests()) cmd.AddCommand(newGetAccessRequestDestinations()) @@ -63,8 +69,10 @@ func newBatchCreateAccessRequests() *cobra.Command { // TODO: array: requests cmd.Use = "batch-create-access-requests" - cmd.Short = `Create Access Requests.` - cmd.Long = `Create Access Requests. + cmd.Short = `*Public Preview* Create Access Requests.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create Access Requests. Creates access requests for Unity Catalog permissions for a specified principal on a securable object. This Batch API can take in multiple @@ -77,6 +85,8 @@ func newBatchCreateAccessRequests() *cobra.Command { "registered_model", and "volume".` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -136,8 +146,10 @@ func newGetAccessRequestDestinations() *cobra.Command { var getAccessRequestDestinationsReq catalog.GetAccessRequestDestinationsRequest cmd.Use = "get-access-request-destinations SECURABLE_TYPE FULL_NAME" - cmd.Short = `Get Access Request Destinations.` - cmd.Long = `Get Access Request Destinations. + cmd.Short = `*Public Preview* Get Access Request Destinations.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get Access Request Destinations. Gets an array of access request destinations for the specified securable. Any caller can see URL destinations or the destinations on the metastore. @@ -153,6 +165,8 @@ func newGetAccessRequestDestinations() *cobra.Command { FULL_NAME: The full name of the securable.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -209,8 +223,10 @@ func newUpdateAccessRequestDestinations() *cobra.Command { // TODO: array: destinations cmd.Use = "update-access-request-destinations UPDATE_MASK SECURABLE" - cmd.Short = `Update Access Request Destinations.` - cmd.Long = `Update Access Request Destinations. + cmd.Short = `*Public Preview* Update Access Request Destinations.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update Access Request Destinations. Updates the access request destinations for the given securable. The caller must be a metastore admin, the owner of the securable, or a user that has the @@ -242,6 +258,8 @@ func newUpdateAccessRequestDestinations() *cobra.Command { or read.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/schemas/schemas.go b/cmd/workspace/schemas/schemas.go index dcc49042d12..768e6729bae 100755 --- a/cmd/workspace/schemas/schemas.go +++ b/cmd/workspace/schemas/schemas.go @@ -30,6 +30,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -79,6 +83,8 @@ func newCreate() *cobra.Command { CATALOG_NAME: Name of parent catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -163,6 +169,8 @@ func newDelete() *cobra.Command { FULL_NAME: Full name of the schema.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -223,6 +231,8 @@ func newGet() *cobra.Command { FULL_NAME: Full name of the schema.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -307,6 +317,8 @@ func newList() *cobra.Command { CATALOG_NAME: Parent catalog for schemas of interest.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -380,6 +392,8 @@ func newUpdate() *cobra.Command { FULL_NAME: Full name of the schema.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/secrets-uc/secrets-uc.go b/cmd/workspace/secrets-uc/secrets-uc.go new file mode 100755 index 00000000000..b9e6fb99dc0 --- /dev/null +++ b/cmd/workspace/secrets-uc/secrets-uc.go @@ -0,0 +1,523 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package secrets_uc + +import ( + "encoding/json" + "fmt" + "strings" + + "github.com/databricks/cli/cmd/root" + "github.com/databricks/cli/libs/cmdctx" + "github.com/databricks/cli/libs/cmdio" + "github.com/databricks/cli/libs/flags" + "github.com/databricks/databricks-sdk-go/common/types/fieldmask" + sdktime "github.com/databricks/databricks-sdk-go/common/types/time" + "github.com/databricks/databricks-sdk-go/service/catalog" + "github.com/spf13/cobra" +) + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var cmdOverrides []func(*cobra.Command) + +func New() *cobra.Command { + cmd := &cobra.Command{ + Use: "secrets-uc", + Short: `A secret is a Unity Catalog securable object that stores sensitive credential data (such as passwords, tokens, and keys) within a three-level namespace (**catalog_name.schema_name.secret_name**).`, + Long: `A secret is a Unity Catalog securable object that stores sensitive credential + data (such as passwords, tokens, and keys) within a three-level namespace + (**catalog_name.schema_name.secret_name**). + + Secrets can be managed using standard Unity Catalog permissions and are scoped + to a schema within a catalog.`, + GroupID: "catalog", + + // This service is being previewed; hide from help output. + Hidden: true, + RunE: root.ReportUnknownSubcommand, + } + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + // Add methods + cmd.AddCommand(newCreateSecret()) + cmd.AddCommand(newDeleteSecret()) + cmd.AddCommand(newGetSecret()) + cmd.AddCommand(newListSecrets()) + cmd.AddCommand(newUpdateSecret()) + + // Apply optional overrides to this command. + for _, fn := range cmdOverrides { + fn(cmd) + } + + return cmd +} + +// start create-secret command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var createSecretOverrides []func( + *cobra.Command, + *catalog.CreateSecretRequest, +) + +func newCreateSecret() *cobra.Command { + cmd := &cobra.Command{} + + var createSecretReq catalog.CreateSecretRequest + createSecretReq.Secret = catalog.Secret{} + var createSecretJson flags.JsonFlag + + cmd.Flags().Var(&createSecretJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + cmd.Flags().StringVar(&createSecretReq.Secret.Comment, "comment", createSecretReq.Secret.Comment, `User-provided free-form text description of the secret.`) + var expireTimeParam string + cmd.Flags().StringVar(&expireTimeParam, "expire-time", expireTimeParam, `User-provided expiration time of the secret.`) + cmd.Flags().StringVar(&createSecretReq.Secret.Owner, "owner", createSecretReq.Secret.Owner, `The owner of the secret.`) + + cmd.Use = "create-secret NAME CATALOG_NAME SCHEMA_NAME VALUE" + cmd.Short = `Create a secret.` + cmd.Long = `Create a secret. + + Creates a new secret in Unity Catalog. + + You must be the owner of the parent schema or have the **CREATE_SECRET** and + **USE SCHEMA** privileges on the parent schema and **USE CATALOG** on the + parent catalog. + + The secret is stored in the specified catalog and schema, and the **value** + field contains the sensitive data to be securely stored. + + Arguments: + NAME: The name of the secret, relative to its parent schema. + CATALOG_NAME: The name of the catalog where the schema and the secret reside. + SCHEMA_NAME: The name of the schema where the secret resides. + VALUE: The secret value to store. This field is input-only and is not returned in + responses — use the **effective_value** field (via GetSecret with + **include_value** set to true) to read the secret value. The maximum size + is 60 KiB (pre-encryption). Accepted content includes passwords, tokens, + keys, and other sensitive credential data.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(0)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, no positional arguments are allowed. Provide 'name', 'catalog_name', 'schema_name', 'value' in your JSON input") + } + return nil + } + check := root.ExactArgs(4) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := createSecretJson.Unmarshal(&createSecretReq.Secret) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + if !cmd.Flags().Changed("json") { + createSecretReq.Secret.Name = args[0] + } + if !cmd.Flags().Changed("json") { + createSecretReq.Secret.CatalogName = args[1] + } + if !cmd.Flags().Changed("json") { + createSecretReq.Secret.SchemaName = args[2] + } + if !cmd.Flags().Changed("json") { + createSecretReq.Secret.Value = args[3] + } + + if expireTimeParam != "" { + expireTimeBytes := []byte(fmt.Sprintf("\"%s\"", expireTimeParam)) + var expireTimeField sdktime.Time + err = json.Unmarshal(expireTimeBytes, &expireTimeField) + if err != nil { + return fmt.Errorf("invalid EXPIRE_TIME: %s", expireTimeParam) + } + createSecretReq.Secret.ExpireTime = &expireTimeField + } + + response, err := w.SecretsUc.CreateSecret(ctx, createSecretReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range createSecretOverrides { + fn(cmd, &createSecretReq) + } + + return cmd +} + +// start delete-secret command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var deleteSecretOverrides []func( + *cobra.Command, + *catalog.DeleteSecretRequest, +) + +func newDeleteSecret() *cobra.Command { + cmd := &cobra.Command{} + + var deleteSecretReq catalog.DeleteSecretRequest + + cmd.Use = "delete-secret FULL_NAME" + cmd.Short = `Delete a secret.` + cmd.Long = `Delete a secret. + + Deletes a secret by its three-level (fully qualified) name. + + You must be the owner of the secret or a metastore admin. + + Arguments: + FULL_NAME: The three-level (fully qualified) name of the secret (for example, + **catalog_name.schema_name.secret_name**).` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + deleteSecretReq.FullName = args[0] + + err = w.SecretsUc.DeleteSecret(ctx, deleteSecretReq) + if err != nil { + return err + } + return nil + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range deleteSecretOverrides { + fn(cmd, &deleteSecretReq) + } + + return cmd +} + +// start get-secret command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getSecretOverrides []func( + *cobra.Command, + *catalog.GetSecretRequest, +) + +func newGetSecret() *cobra.Command { + cmd := &cobra.Command{} + + var getSecretReq catalog.GetSecretRequest + + cmd.Flags().BoolVar(&getSecretReq.IncludeBrowse, "include-browse", getSecretReq.IncludeBrowse, `Whether to include secrets in the response for which you only have the **BROWSE** privilege, which limits access to metadata.`) + + cmd.Use = "get-secret FULL_NAME" + cmd.Short = `Get a secret.` + cmd.Long = `Get a secret. + + Gets a secret by its three-level (fully qualified) name. + + You must be a metastore admin, the owner of the secret, or have the **MANAGE** + privilege on the secret. + + The secret value isn't returned by default. To retrieve it, you must also have + the **READ_SECRET** privilege and set **include_value** to true in the + request. + + Arguments: + FULL_NAME: The three-level (fully qualified) name of the secret (for example, + **catalog_name.schema_name.secret_name**).` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + getSecretReq.FullName = args[0] + + response, err := w.SecretsUc.GetSecret(ctx, getSecretReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getSecretOverrides { + fn(cmd, &getSecretReq) + } + + return cmd +} + +// start list-secrets command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var listSecretsOverrides []func( + *cobra.Command, + *catalog.ListSecretsRequest, +) + +func newListSecrets() *cobra.Command { + cmd := &cobra.Command{} + + var listSecretsReq catalog.ListSecretsRequest + // Registered for all paginated methods. Validated at call time in the + // method-call template. Paginated list methods never have Wait or LRO + // branches, so the method-call path is always reached. + var listSecretsLimit int + + cmd.Flags().StringVar(&listSecretsReq.CatalogName, "catalog-name", listSecretsReq.CatalogName, `The name of the catalog under which to list secrets.`) + cmd.Flags().BoolVar(&listSecretsReq.IncludeBrowse, "include-browse", listSecretsReq.IncludeBrowse, `Whether to include secrets in the response for which you only have the **BROWSE** privilege, which limits access to metadata.`) + cmd.Flags().IntVar(&listSecretsReq.PageSize, "page-size", listSecretsReq.PageSize, `Maximum number of secrets to return.`) + cmd.Flags().StringVar(&listSecretsReq.SchemaName, "schema-name", listSecretsReq.SchemaName, `The name of the schema under which to list secrets.`) + + // Limit flag for total result capping. + cmd.Flags().IntVar(&listSecretsLimit, "limit", 0, `Maximum number of results to return.`) + + // Hidden pagination flags (internal API parameters). + cmd.Flags().StringVar(&listSecretsReq.PageToken, "page-token", listSecretsReq.PageToken, `Pagination token.`) + cmd.Flags().Lookup("page-token").Hidden = true + + cmd.Use = "list-secrets" + cmd.Short = `List secrets.` + cmd.Long = `List secrets. + + Lists secrets in Unity Catalog. + + You must be a metastore admin, the owner of the secret, or have the **MANAGE** + privilege on the secret. + + Both **catalog_name** and **schema_name** must be specified together to filter + secrets within a specific schema. Results are paginated; use the + **page_token** field from the response to retrieve subsequent pages.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(0) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + response := w.SecretsUc.ListSecrets(ctx, listSecretsReq) + if listSecretsLimit < 0 { + return fmt.Errorf("--limit must be a non-negative integer, got %d", listSecretsLimit) + } + if listSecretsLimit > 0 { + ctx = cmdio.WithLimit(ctx, listSecretsLimit) + } + + return cmdio.RenderIterator(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range listSecretsOverrides { + fn(cmd, &listSecretsReq) + } + + return cmd +} + +// start update-secret command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var updateSecretOverrides []func( + *cobra.Command, + *catalog.UpdateSecretRequest, +) + +func newUpdateSecret() *cobra.Command { + cmd := &cobra.Command{} + + var updateSecretReq catalog.UpdateSecretRequest + updateSecretReq.Secret = catalog.Secret{} + var updateSecretJson flags.JsonFlag + + cmd.Flags().Var(&updateSecretJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + cmd.Flags().StringVar(&updateSecretReq.Secret.Comment, "comment", updateSecretReq.Secret.Comment, `User-provided free-form text description of the secret.`) + var expireTimeParam string + cmd.Flags().StringVar(&expireTimeParam, "expire-time", expireTimeParam, `User-provided expiration time of the secret.`) + cmd.Flags().StringVar(&updateSecretReq.Secret.Owner, "owner", updateSecretReq.Secret.Owner, `The owner of the secret.`) + + cmd.Use = "update-secret FULL_NAME UPDATE_MASK NAME CATALOG_NAME SCHEMA_NAME VALUE" + cmd.Short = `Update a secret.` + cmd.Long = `Update a secret. + + Updates an existing secret in Unity Catalog. + + You must be the owner of the secret or a metastore admin. If you are a + metastore admin, only the **owner** field can be changed. + + Use the **update_mask** field to specify which fields to update. Supported + updatable fields include **value**, **comment**, **owner**, and + **expire_time**. + + Arguments: + FULL_NAME: The three-level (fully qualified) name of the secret (for example, + **catalog_name.schema_name.secret_name**). + UPDATE_MASK: The field mask specifying which fields of the secret to update. Supported + fields: **value**, **comment**, **owner**, **expire_time**. + NAME: The name of the secret, relative to its parent schema. + CATALOG_NAME: The name of the catalog where the schema and the secret reside. + SCHEMA_NAME: The name of the schema where the secret resides. + VALUE: The secret value to store. This field is input-only and is not returned in + responses — use the **effective_value** field (via GetSecret with + **include_value** set to true) to read the secret value. The maximum size + is 60 KiB (pre-encryption). Accepted content includes passwords, tokens, + keys, and other sensitive credential data.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(2)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, provide only FULL_NAME, UPDATE_MASK as positional arguments. Provide 'name', 'catalog_name', 'schema_name', 'value' in your JSON input") + } + return nil + } + check := root.ExactArgs(6) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := updateSecretJson.Unmarshal(&updateSecretReq.Secret) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + updateSecretReq.FullName = args[0] + if args[1] != "" { + updateMaskArray := strings.Split(args[1], ",") + updateSecretReq.UpdateMask = *fieldmask.New(updateMaskArray) + } + if !cmd.Flags().Changed("json") { + updateSecretReq.Secret.Name = args[2] + } + if !cmd.Flags().Changed("json") { + updateSecretReq.Secret.CatalogName = args[3] + } + if !cmd.Flags().Changed("json") { + updateSecretReq.Secret.SchemaName = args[4] + } + if !cmd.Flags().Changed("json") { + updateSecretReq.Secret.Value = args[5] + } + + if expireTimeParam != "" { + expireTimeBytes := []byte(fmt.Sprintf("\"%s\"", expireTimeParam)) + var expireTimeField sdktime.Time + err = json.Unmarshal(expireTimeBytes, &expireTimeField) + if err != nil { + return fmt.Errorf("invalid EXPIRE_TIME: %s", expireTimeParam) + } + updateSecretReq.Secret.ExpireTime = &expireTimeField + } + + response, err := w.SecretsUc.UpdateSecret(ctx, updateSecretReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range updateSecretOverrides { + fn(cmd, &updateSecretReq) + } + + return cmd +} + +// end service SecretsUc diff --git a/cmd/workspace/secrets/secrets.go b/cmd/workspace/secrets/secrets.go index 0edd4f049f2..198abdcadf7 100755 --- a/cmd/workspace/secrets/secrets.go +++ b/cmd/workspace/secrets/secrets.go @@ -37,6 +37,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreateScope()) cmd.AddCommand(newDeleteAcl()) @@ -124,6 +128,8 @@ func newCreateScope() *cobra.Command { SCOPE: Scope name requested by the user. Scope names are unique.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -218,6 +224,8 @@ func newDeleteAcl() *cobra.Command { PRINCIPAL: The principal to remove an existing ACL from.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -312,6 +320,8 @@ func newDeleteScope() *cobra.Command { SCOPE: Name of the scope to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -405,6 +415,8 @@ func newDeleteSecret() *cobra.Command { KEY: Name of the secret to delete.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -499,6 +511,8 @@ func newGetAcl() *cobra.Command { PRINCIPAL: The principal to fetch ACL information for.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -584,6 +598,8 @@ func newGetSecret() *cobra.Command { KEY: Name of the secret to fetch value information.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -664,6 +680,8 @@ func newListAcls() *cobra.Command { SCOPE: The name of the scope to fetch ACL information from.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -737,6 +755,8 @@ func newListScopes() *cobra.Command { API call.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -814,6 +834,8 @@ func newListSecrets() *cobra.Command { SCOPE: The name of the scope to list secrets within.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -912,6 +934,8 @@ func newPutAcl() *cobra.Command { Supported values: [MANAGE, READ, WRITE]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/service-principal-secrets-proxy/service-principal-secrets-proxy.go b/cmd/workspace/service-principal-secrets-proxy/service-principal-secrets-proxy.go index f556a26644c..1f0fde3cee8 100755 --- a/cmd/workspace/service-principal-secrets-proxy/service-principal-secrets-proxy.go +++ b/cmd/workspace/service-principal-secrets-proxy/service-principal-secrets-proxy.go @@ -40,6 +40,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -82,6 +86,8 @@ func newCreate() *cobra.Command { SERVICE_PRINCIPAL_ID: The service principal ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -152,6 +158,8 @@ func newDelete() *cobra.Command { SECRET_ID: The secret ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -224,6 +232,8 @@ func newList() *cobra.Command { SERVICE_PRINCIPAL_ID: The service principal ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/service-principals-v2/service-principals-v2.go b/cmd/workspace/service-principals-v2/service-principals-v2.go index 6e23e348923..2bce2b79cbf 100755 --- a/cmd/workspace/service-principals-v2/service-principals-v2.go +++ b/cmd/workspace/service-principals-v2/service-principals-v2.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "service-principals-v2", - Short: `Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms.`, - Long: `Identities for use with jobs, automated tools, and systems such as scripts, + Short: `*Public Preview* Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms.`, + Long: `This command is in Public Preview and may change without notice. + +Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms. Databricks recommends creating service principals to run production jobs or modify production data. If all processes that act on production data run with service principals, interactive users do not need any @@ -31,6 +33,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -75,12 +81,16 @@ func newCreate() *cobra.Command { // TODO: array: schemas cmd.Use = "create" - cmd.Short = `Create a service principal.` - cmd.Long = `Create a service principal. + cmd.Short = `*Public Preview* Create a service principal.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a service principal. Creates a new service principal in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -140,8 +150,10 @@ func newDelete() *cobra.Command { var deleteReq iam.DeleteServicePrincipalRequest cmd.Use = "delete ID" - cmd.Short = `Delete a service principal.` - cmd.Long = `Delete a service principal. + cmd.Short = `*Public Preview* Delete a service principal.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete a service principal. Delete a single service principal in the Databricks workspace. @@ -149,6 +161,8 @@ func newDelete() *cobra.Command { ID: Unique ID for a service principal in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -196,8 +210,10 @@ func newGet() *cobra.Command { var getReq iam.GetServicePrincipalRequest cmd.Use = "get ID" - cmd.Short = `Get service principal details.` - cmd.Long = `Get service principal details. + cmd.Short = `*Public Preview* Get service principal details.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get service principal details. Gets the details for a single service principal define in the Databricks workspace. @@ -206,6 +222,8 @@ func newGet() *cobra.Command { ID: Unique ID for a service principal in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -273,12 +291,16 @@ func newList() *cobra.Command { cmd.Flags().Lookup("count").Hidden = true cmd.Use = "list" - cmd.Short = `List service principals.` - cmd.Long = `List service principals. + cmd.Short = `*Public Preview* List service principals.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List service principals. Gets the set of service principals associated with a Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -334,8 +356,10 @@ func newPatch() *cobra.Command { // TODO: array: schemas cmd.Use = "patch ID" - cmd.Short = `Update service principal details.` - cmd.Long = `Update service principal details. + cmd.Short = `*Public Preview* Update service principal details.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update service principal details. Partially updates the details of a single service principal in the Databricks workspace. @@ -344,6 +368,8 @@ func newPatch() *cobra.Command { ID: Unique ID in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -415,8 +441,10 @@ func newUpdate() *cobra.Command { // TODO: array: schemas cmd.Use = "update ID" - cmd.Short = `Replace service principal.` - cmd.Long = `Replace service principal. + cmd.Short = `*Public Preview* Replace service principal.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Replace service principal. Updates the details of a single service principal. @@ -426,6 +454,8 @@ func newUpdate() *cobra.Command { ID: Databricks service principal ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/serving-endpoints/serving-endpoints.go b/cmd/workspace/serving-endpoints/serving-endpoints.go index 88c70401064..4462a0d488c 100755 --- a/cmd/workspace/serving-endpoints/serving-endpoints.go +++ b/cmd/workspace/serving-endpoints/serving-endpoints.go @@ -39,6 +39,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newBuildLogs()) cmd.AddCommand(newCreate()) @@ -97,6 +101,8 @@ func newBuildLogs() *cobra.Command { field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -173,6 +179,8 @@ func newCreate() *cobra.Command { alphanumeric characters, dashes, and underscores.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -268,10 +276,14 @@ func newCreateProvisionedThroughputEndpoint() *cobra.Command { // TODO: array: tags cmd.Use = "create-provisioned-throughput-endpoint" - cmd.Short = `Create a new PT serving endpoint.` - cmd.Long = `Create a new PT serving endpoint.` + cmd.Short = `*Public Preview* Create a new PT serving endpoint.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a new PT serving endpoint.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -344,6 +356,8 @@ func newDelete() *cobra.Command { cmd.Long = `Delete a serving endpoint.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -402,6 +416,8 @@ func newExportMetrics() *cobra.Command { required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -460,6 +476,8 @@ func newGet() *cobra.Command { NAME: The name of the serving endpoint. This field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -508,8 +526,10 @@ func newGetOpenApi() *cobra.Command { var getOpenApiReq serving.GetOpenApiRequest cmd.Use = "get-open-api NAME" - cmd.Short = `Get the schema for a serving endpoint.` - cmd.Long = `Get the schema for a serving endpoint. + cmd.Short = `*Public Preview* Get the schema for a serving endpoint.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the schema for a serving endpoint. Get the query schema of the serving endpoint in OpenAPI format. The schema contains information for the supported paths, input and output format and @@ -520,6 +540,8 @@ func newGetOpenApi() *cobra.Command { field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -578,6 +600,8 @@ func newGetPermissionLevels() *cobra.Command { SERVING_ENDPOINT_ID: The serving endpoint for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -636,6 +660,8 @@ func newGetPermissions() *cobra.Command { SERVING_ENDPOINT_ID: The serving endpoint for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -703,6 +729,8 @@ func newHttpRequest() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -768,6 +796,8 @@ func newList() *cobra.Command { cmd.Long = `Get all serving endpoints.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -823,6 +853,8 @@ func newLogs() *cobra.Command { is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -889,6 +921,8 @@ func newPatch() *cobra.Command { required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -954,8 +988,10 @@ func newPut() *cobra.Command { // TODO: array: rate_limits cmd.Use = "put NAME" - cmd.Short = `Update rate limits of a serving endpoint.` - cmd.Long = `Update rate limits of a serving endpoint. + cmd.Short = `*Public Preview* Update rate limits of a serving endpoint.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update rate limits of a serving endpoint. Deprecated: Please use AI Gateway to manage rate limits instead. @@ -964,6 +1000,8 @@ func newPut() *cobra.Command { field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1045,6 +1083,8 @@ func newPutAiGateway() *cobra.Command { field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1134,6 +1174,8 @@ func newQuery() *cobra.Command { via the path parameter.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1210,6 +1252,8 @@ func newSetPermissions() *cobra.Command { SERVING_ENDPOINT_ID: The serving endpoint for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1296,6 +1340,8 @@ func newUpdateConfig() *cobra.Command { NAME: The name of the serving endpoint to update. This field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1383,6 +1429,8 @@ func newUpdateNotifications() *cobra.Command { This field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1458,6 +1506,8 @@ func newUpdatePermissions() *cobra.Command { SERVING_ENDPOINT_ID: The serving endpoint for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -1527,8 +1577,10 @@ func newUpdateProvisionedThroughputEndpointConfig() *cobra.Command { cmd.Flags().Var(&updateProvisionedThroughputEndpointConfigJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update-provisioned-throughput-endpoint-config NAME" - cmd.Short = `Update config of a PT serving endpoint.` - cmd.Long = `Update config of a PT serving endpoint. + cmd.Short = `*Public Preview* Update config of a PT serving endpoint.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update config of a PT serving endpoint. Updates any combination of the pt endpoint's served entities, the compute configuration of those served entities, and the endpoint's traffic config. @@ -1538,6 +1590,8 @@ func newUpdateProvisionedThroughputEndpointConfig() *cobra.Command { NAME: The name of the pt endpoint to update. This field is required.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/settings/settings.go b/cmd/workspace/settings/settings.go index 7dedfbfab1b..8518f522dd8 100755 --- a/cmd/workspace/settings/settings.go +++ b/cmd/workspace/settings/settings.go @@ -37,6 +37,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add subservices cmd.AddCommand(aibi_dashboard_embedding_access_policy.New()) cmd.AddCommand(aibi_dashboard_embedding_approved_domains.New()) diff --git a/cmd/workspace/shares/shares.go b/cmd/workspace/shares/shares.go index 47615ce4d7f..b06b36389d8 100755 --- a/cmd/workspace/shares/shares.go +++ b/cmd/workspace/shares/shares.go @@ -30,6 +30,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -79,6 +83,8 @@ func newCreate() *cobra.Command { NAME: Name of the share.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -158,6 +164,8 @@ func newDelete() *cobra.Command { NAME: The name of the share.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -217,6 +225,8 @@ func newGet() *cobra.Command { NAME: The name of the share.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -287,6 +297,8 @@ func newListShares() *cobra.Command { ordering of the elements in the array.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -349,6 +361,8 @@ func newSharePermissions() *cobra.Command { NAME: The name of the Recipient.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -431,6 +445,8 @@ func newUpdate() *cobra.Command { NAME: The name of the share.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -511,6 +527,8 @@ func newUpdatePermissions() *cobra.Command { NAME: The name of the share.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/sql-results-download/sql-results-download.go b/cmd/workspace/sql-results-download/sql-results-download.go index b929a79cc49..049e94d6d5e 100755 --- a/cmd/workspace/sql-results-download/sql-results-download.go +++ b/cmd/workspace/sql-results-download/sql-results-download.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "sql-results-download", - Short: `Controls whether users within the workspace are allowed to download results from the SQL Editor and AI/BI Dashboards UIs.`, - Long: `Controls whether users within the workspace are allowed to download results + Short: `*Public Preview* Controls whether users within the workspace are allowed to download results from the SQL Editor and AI/BI Dashboards UIs.`, + Long: `This command is in Public Preview and may change without notice. + +Controls whether users within the workspace are allowed to download results from the SQL Editor and AI/BI Dashboards UIs. By default, this setting is enabled (set to true)`, RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newGet()) @@ -57,12 +63,16 @@ func newDelete() *cobra.Command { cmd.Flags().StringVar(&deleteReq.Etag, "etag", deleteReq.Etag, `etag used for versioning.`) cmd.Use = "delete" - cmd.Short = `Delete the SQL Results Download setting.` - cmd.Long = `Delete the SQL Results Download setting. + cmd.Short = `*Public Preview* Delete the SQL Results Download setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete the SQL Results Download setting. Reverts the SQL Results Download setting to its default value.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -111,12 +121,16 @@ func newGet() *cobra.Command { cmd.Flags().StringVar(&getReq.Etag, "etag", getReq.Etag, `etag used for versioning.`) cmd.Use = "get" - cmd.Short = `Get the SQL Results Download setting.` - cmd.Long = `Get the SQL Results Download setting. + cmd.Short = `*Public Preview* Get the SQL Results Download setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get the SQL Results Download setting. Gets the SQL Results Download setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -166,12 +180,16 @@ func newUpdate() *cobra.Command { cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update" - cmd.Short = `Update the SQL Results Download setting.` - cmd.Long = `Update the SQL Results Download setting. + cmd.Short = `*Public Preview* Update the SQL Results Download setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the SQL Results Download setting. Updates the SQL Results Download setting.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/storage-credentials/storage-credentials.go b/cmd/workspace/storage-credentials/storage-credentials.go index 878ba367a8f..ffeec286005 100755 --- a/cmd/workspace/storage-credentials/storage-credentials.go +++ b/cmd/workspace/storage-credentials/storage-credentials.go @@ -38,6 +38,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -94,6 +98,8 @@ func newCreate() *cobra.Command { credentials within the metastore.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -175,6 +181,8 @@ func newDelete() *cobra.Command { NAME: Name of the storage credential.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -233,6 +241,8 @@ func newGet() *cobra.Command { NAME: Name of the storage credential.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -314,6 +324,8 @@ func newList() *cobra.Command { indication that the end of results has been reached.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -391,6 +403,8 @@ func newUpdate() *cobra.Command { NAME: Name of the storage credential.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -481,6 +495,8 @@ func newValidate() *cobra.Command { credential.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/workspace/supervisor-agents/supervisor-agents.go b/cmd/workspace/supervisor-agents/supervisor-agents.go new file mode 100755 index 00000000000..c4bc9338804 --- /dev/null +++ b/cmd/workspace/supervisor-agents/supervisor-agents.go @@ -0,0 +1,1553 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package supervisor_agents + +import ( + "fmt" + "strings" + + "github.com/databricks/cli/cmd/root" + "github.com/databricks/cli/libs/cmdctx" + "github.com/databricks/cli/libs/cmdio" + "github.com/databricks/cli/libs/flags" + "github.com/databricks/databricks-sdk-go/common/types/fieldmask" + "github.com/databricks/databricks-sdk-go/service/supervisoragents" + "github.com/spf13/cobra" +) + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var cmdOverrides []func(*cobra.Command) + +func New() *cobra.Command { + cmd := &cobra.Command{ + Use: "supervisor-agents", + Short: `*Beta* Manage Supervisor Agents and related resources.`, + Long: `This command is in Beta and may change without notice. + +Manage Supervisor Agents and related resources.`, + GroupID: "agentbricks", + RunE: root.ReportUnknownSubcommand, + } + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + // Add methods + cmd.AddCommand(newCreateExample()) + cmd.AddCommand(newCreateSupervisorAgent()) + cmd.AddCommand(newCreateTool()) + cmd.AddCommand(newDeleteExample()) + cmd.AddCommand(newDeleteSupervisorAgent()) + cmd.AddCommand(newDeleteTool()) + cmd.AddCommand(newGetExample()) + cmd.AddCommand(newGetPermissionLevels()) + cmd.AddCommand(newGetPermissions()) + cmd.AddCommand(newGetSupervisorAgent()) + cmd.AddCommand(newGetTool()) + cmd.AddCommand(newListExamples()) + cmd.AddCommand(newListSupervisorAgents()) + cmd.AddCommand(newListTools()) + cmd.AddCommand(newSetPermissions()) + cmd.AddCommand(newUpdateExample()) + cmd.AddCommand(newUpdatePermissions()) + cmd.AddCommand(newUpdateSupervisorAgent()) + cmd.AddCommand(newUpdateTool()) + + // Apply optional overrides to this command. + for _, fn := range cmdOverrides { + fn(cmd) + } + + return cmd +} + +// start create-example command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var createExampleOverrides []func( + *cobra.Command, + *supervisoragents.CreateExampleRequest, +) + +func newCreateExample() *cobra.Command { + cmd := &cobra.Command{} + + var createExampleReq supervisoragents.CreateExampleRequest + createExampleReq.Example = supervisoragents.Example{} + var createExampleJson flags.JsonFlag + + cmd.Flags().Var(&createExampleJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + cmd.Flags().StringVar(&createExampleReq.Example.Name, "name", createExampleReq.Example.Name, `Full resource name: supervisor-agents/{supervisor_agent_id}/examples/{example_id}.`) + + cmd.Use = "create-example PARENT QUESTION GUIDELINES" + cmd.Short = `*Beta* Create an example for a Supervisor Agent.` + cmd.Long = `This command is in Beta and may change without notice. + +Create an example for a Supervisor Agent. + + Creates an example for a Supervisor Agent. + + Arguments: + PARENT: Parent resource where this example will be created. Format: + supervisor-agents/{supervisor_agent_id} + QUESTION: The example question. + GUIDELINES: Guidelines for answering the question.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(1)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, provide only PARENT as positional arguments. Provide 'question', 'guidelines' in your JSON input") + } + return nil + } + check := root.ExactArgs(3) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := createExampleJson.Unmarshal(&createExampleReq.Example) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + createExampleReq.Parent = args[0] + if !cmd.Flags().Changed("json") { + createExampleReq.Example.Question = args[1] + } + if !cmd.Flags().Changed("json") { + _, err = fmt.Sscan(args[2], &createExampleReq.Example.Guidelines) + if err != nil { + return fmt.Errorf("invalid GUIDELINES: %s", args[2]) + } + + } + + response, err := w.SupervisorAgents.CreateExample(ctx, createExampleReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range createExampleOverrides { + fn(cmd, &createExampleReq) + } + + return cmd +} + +// start create-supervisor-agent command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var createSupervisorAgentOverrides []func( + *cobra.Command, + *supervisoragents.CreateSupervisorAgentRequest, +) + +func newCreateSupervisorAgent() *cobra.Command { + cmd := &cobra.Command{} + + var createSupervisorAgentReq supervisoragents.CreateSupervisorAgentRequest + createSupervisorAgentReq.SupervisorAgent = supervisoragents.SupervisorAgent{} + var createSupervisorAgentJson flags.JsonFlag + + cmd.Flags().Var(&createSupervisorAgentJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + cmd.Flags().StringVar(&createSupervisorAgentReq.SupervisorAgent.Description, "description", createSupervisorAgentReq.SupervisorAgent.Description, `Description of what this agent can do (user-facing).`) + cmd.Flags().StringVar(&createSupervisorAgentReq.SupervisorAgent.Instructions, "instructions", createSupervisorAgentReq.SupervisorAgent.Instructions, `Optional natural-language instructions for the supervisor agent.`) + cmd.Flags().StringVar(&createSupervisorAgentReq.SupervisorAgent.Name, "name", createSupervisorAgentReq.SupervisorAgent.Name, `The resource name of the SupervisorAgent.`) + + cmd.Use = "create-supervisor-agent DISPLAY_NAME" + cmd.Short = `*Beta* Create a Supervisor Agent.` + cmd.Long = `This command is in Beta and may change without notice. + +Create a Supervisor Agent. + + Creates a new Supervisor Agent. + + Arguments: + DISPLAY_NAME: The display name of the Supervisor Agent, unique at workspace level.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(0)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, no positional arguments are allowed. Provide 'display_name' in your JSON input") + } + return nil + } + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := createSupervisorAgentJson.Unmarshal(&createSupervisorAgentReq.SupervisorAgent) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + if !cmd.Flags().Changed("json") { + createSupervisorAgentReq.SupervisorAgent.DisplayName = args[0] + } + + response, err := w.SupervisorAgents.CreateSupervisorAgent(ctx, createSupervisorAgentReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range createSupervisorAgentOverrides { + fn(cmd, &createSupervisorAgentReq) + } + + return cmd +} + +// start create-tool command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var createToolOverrides []func( + *cobra.Command, + *supervisoragents.CreateToolRequest, +) + +func newCreateTool() *cobra.Command { + cmd := &cobra.Command{} + + var createToolReq supervisoragents.CreateToolRequest + createToolReq.Tool = supervisoragents.Tool{} + var createToolJson flags.JsonFlag + + cmd.Flags().Var(&createToolJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + // TODO: complex arg: app + cmd.Flags().StringVar(&createToolReq.Tool.Description, "description", createToolReq.Tool.Description, `Description of what this tool does (user-facing).`) + // TODO: complex arg: genie_space + // TODO: complex arg: knowledge_assistant + cmd.Flags().StringVar(&createToolReq.Tool.Name, "name", createToolReq.Tool.Name, `Full resource name: supervisor-agents/{supervisor_agent_id}/tools/{tool_id}.`) + // TODO: complex arg: uc_connection + // TODO: complex arg: uc_function + // TODO: complex arg: volume + + cmd.Use = "create-tool PARENT TOOL_ID TOOL_TYPE" + cmd.Short = `*Beta* Create a Tool.` + cmd.Long = `This command is in Beta and may change without notice. + +Create a Tool. + + Creates a Tool under a Supervisor Agent. Specify one of "genie_space", + "knowledge_assistant", "uc_function", "uc_connection", "app", "volume", + "lakeview_dashboard", "uc_table", "vector_search_index", "catalog", "schema", + "supervisor_agent", "web_search" in the request body. + + Arguments: + PARENT: Parent resource where this tool will be created. Format: + supervisor-agents/{supervisor_agent_id} + TOOL_ID: The ID to use for the tool, which will become the final component of the + tool's resource name. + TOOL_TYPE: Tool type. Must be one of: "genie_space", "knowledge_assistant", + "uc_function", "uc_connection", "app", "volume", "lakeview_dashboard", + "serving_endpoint", "uc_table", "vector_search_index", "catalog", + "schema", "supervisor_agent", "web_search".` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(2)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, provide only PARENT, TOOL_ID as positional arguments. Provide 'tool_type' in your JSON input") + } + return nil + } + check := root.ExactArgs(3) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := createToolJson.Unmarshal(&createToolReq.Tool) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + createToolReq.Parent = args[0] + createToolReq.ToolId = args[1] + if !cmd.Flags().Changed("json") { + createToolReq.Tool.ToolType = args[2] + } + + response, err := w.SupervisorAgents.CreateTool(ctx, createToolReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range createToolOverrides { + fn(cmd, &createToolReq) + } + + return cmd +} + +// start delete-example command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var deleteExampleOverrides []func( + *cobra.Command, + *supervisoragents.DeleteExampleRequest, +) + +func newDeleteExample() *cobra.Command { + cmd := &cobra.Command{} + + var deleteExampleReq supervisoragents.DeleteExampleRequest + + cmd.Use = "delete-example NAME" + cmd.Short = `*Beta* Delete an example from a Supervisor Agent.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete an example from a Supervisor Agent. + + Deletes an example from a Supervisor Agent. + + Arguments: + NAME: The resource name of the example to delete. Format: + supervisor-agents/{supervisor_agent_id}/examples/{example_id}` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + deleteExampleReq.Name = args[0] + + err = w.SupervisorAgents.DeleteExample(ctx, deleteExampleReq) + if err != nil { + return err + } + return nil + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range deleteExampleOverrides { + fn(cmd, &deleteExampleReq) + } + + return cmd +} + +// start delete-supervisor-agent command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var deleteSupervisorAgentOverrides []func( + *cobra.Command, + *supervisoragents.DeleteSupervisorAgentRequest, +) + +func newDeleteSupervisorAgent() *cobra.Command { + cmd := &cobra.Command{} + + var deleteSupervisorAgentReq supervisoragents.DeleteSupervisorAgentRequest + + cmd.Use = "delete-supervisor-agent NAME" + cmd.Short = `*Beta* Delete a Supervisor Agent.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete a Supervisor Agent. + + Deletes a Supervisor Agent. + + Arguments: + NAME: The resource name of the Supervisor Agent. Format: + supervisor-agents/{supervisor_agent_id}` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + deleteSupervisorAgentReq.Name = args[0] + + err = w.SupervisorAgents.DeleteSupervisorAgent(ctx, deleteSupervisorAgentReq) + if err != nil { + return err + } + return nil + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range deleteSupervisorAgentOverrides { + fn(cmd, &deleteSupervisorAgentReq) + } + + return cmd +} + +// start delete-tool command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var deleteToolOverrides []func( + *cobra.Command, + *supervisoragents.DeleteToolRequest, +) + +func newDeleteTool() *cobra.Command { + cmd := &cobra.Command{} + + var deleteToolReq supervisoragents.DeleteToolRequest + + cmd.Use = "delete-tool NAME" + cmd.Short = `*Beta* Delete a Tool.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete a Tool. + + Deletes a Tool. + + Arguments: + NAME: The resource name of the Tool. Format: + supervisor-agents/{supervisor_agent_id}/tools/{tool_id}` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + deleteToolReq.Name = args[0] + + err = w.SupervisorAgents.DeleteTool(ctx, deleteToolReq) + if err != nil { + return err + } + return nil + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range deleteToolOverrides { + fn(cmd, &deleteToolReq) + } + + return cmd +} + +// start get-example command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getExampleOverrides []func( + *cobra.Command, + *supervisoragents.GetExampleRequest, +) + +func newGetExample() *cobra.Command { + cmd := &cobra.Command{} + + var getExampleReq supervisoragents.GetExampleRequest + + cmd.Use = "get-example NAME" + cmd.Short = `*Beta* Get an example from a Supervisor Agent.` + cmd.Long = `This command is in Beta and may change without notice. + +Get an example from a Supervisor Agent. + + Gets an example from a Supervisor Agent. + + Arguments: + NAME: The resource name of the example. Format: + supervisor-agents/{supervisor_agent_id}/examples/{example_id}` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + getExampleReq.Name = args[0] + + response, err := w.SupervisorAgents.GetExample(ctx, getExampleReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getExampleOverrides { + fn(cmd, &getExampleReq) + } + + return cmd +} + +// start get-permission-levels command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getPermissionLevelsOverrides []func( + *cobra.Command, + *supervisoragents.GetSupervisorAgentPermissionLevelsRequest, +) + +func newGetPermissionLevels() *cobra.Command { + cmd := &cobra.Command{} + + var getPermissionLevelsReq supervisoragents.GetSupervisorAgentPermissionLevelsRequest + + cmd.Use = "get-permission-levels SUPERVISOR_AGENT_ID" + cmd.Short = `*Beta* Get supervisor agent permission levels.` + cmd.Long = `This command is in Beta and may change without notice. + +Get supervisor agent permission levels. + + Gets the permission levels that a user can have on an object. + + Arguments: + SUPERVISOR_AGENT_ID: The supervisor agent for which to get or manage permissions.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + getPermissionLevelsReq.SupervisorAgentId = args[0] + + response, err := w.SupervisorAgents.GetPermissionLevels(ctx, getPermissionLevelsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getPermissionLevelsOverrides { + fn(cmd, &getPermissionLevelsReq) + } + + return cmd +} + +// start get-permissions command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getPermissionsOverrides []func( + *cobra.Command, + *supervisoragents.GetSupervisorAgentPermissionsRequest, +) + +func newGetPermissions() *cobra.Command { + cmd := &cobra.Command{} + + var getPermissionsReq supervisoragents.GetSupervisorAgentPermissionsRequest + + cmd.Use = "get-permissions SUPERVISOR_AGENT_ID" + cmd.Short = `*Beta* Get supervisor agent permissions.` + cmd.Long = `This command is in Beta and may change without notice. + +Get supervisor agent permissions. + + Gets the permissions of a supervisor agent. Supervisor agents can inherit + permissions from their root object. + + Arguments: + SUPERVISOR_AGENT_ID: The supervisor agent for which to get or manage permissions.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + getPermissionsReq.SupervisorAgentId = args[0] + + response, err := w.SupervisorAgents.GetPermissions(ctx, getPermissionsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getPermissionsOverrides { + fn(cmd, &getPermissionsReq) + } + + return cmd +} + +// start get-supervisor-agent command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getSupervisorAgentOverrides []func( + *cobra.Command, + *supervisoragents.GetSupervisorAgentRequest, +) + +func newGetSupervisorAgent() *cobra.Command { + cmd := &cobra.Command{} + + var getSupervisorAgentReq supervisoragents.GetSupervisorAgentRequest + + cmd.Use = "get-supervisor-agent NAME" + cmd.Short = `*Beta* Get a Supervisor Agent.` + cmd.Long = `This command is in Beta and may change without notice. + +Get a Supervisor Agent. + + Gets a Supervisor Agent. + + Arguments: + NAME: The resource name of the Supervisor Agent. Format: + supervisor-agents/{supervisor_agent_id}` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + getSupervisorAgentReq.Name = args[0] + + response, err := w.SupervisorAgents.GetSupervisorAgent(ctx, getSupervisorAgentReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getSupervisorAgentOverrides { + fn(cmd, &getSupervisorAgentReq) + } + + return cmd +} + +// start get-tool command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getToolOverrides []func( + *cobra.Command, + *supervisoragents.GetToolRequest, +) + +func newGetTool() *cobra.Command { + cmd := &cobra.Command{} + + var getToolReq supervisoragents.GetToolRequest + + cmd.Use = "get-tool NAME" + cmd.Short = `*Beta* Get a Tool.` + cmd.Long = `This command is in Beta and may change without notice. + +Get a Tool. + + Gets a Tool. + + Arguments: + NAME: The resource name of the Tool. Format: + supervisor-agents/{supervisor_agent_id}/tools/{tool_id}` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + getToolReq.Name = args[0] + + response, err := w.SupervisorAgents.GetTool(ctx, getToolReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getToolOverrides { + fn(cmd, &getToolReq) + } + + return cmd +} + +// start list-examples command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var listExamplesOverrides []func( + *cobra.Command, + *supervisoragents.ListExamplesRequest, +) + +func newListExamples() *cobra.Command { + cmd := &cobra.Command{} + + var listExamplesReq supervisoragents.ListExamplesRequest + // Registered for all paginated methods. Validated at call time in the + // method-call template. Paginated list methods never have Wait or LRO + // branches, so the method-call path is always reached. + var listExamplesLimit int + + cmd.Flags().IntVar(&listExamplesReq.PageSize, "page-size", listExamplesReq.PageSize, `The maximum number of examples to return.`) + + // Limit flag for total result capping. + cmd.Flags().IntVar(&listExamplesLimit, "limit", 0, `Maximum number of results to return.`) + + // Hidden pagination flags (internal API parameters). + cmd.Flags().StringVar(&listExamplesReq.PageToken, "page-token", listExamplesReq.PageToken, `Pagination token.`) + cmd.Flags().Lookup("page-token").Hidden = true + + cmd.Use = "list-examples PARENT" + cmd.Short = `*Beta* List examples for a Supervisor Agent.` + cmd.Long = `This command is in Beta and may change without notice. + +List examples for a Supervisor Agent. + + Lists examples under a Supervisor Agent. + + Arguments: + PARENT: Parent resource to list from. Format: + supervisor-agents/{supervisor_agent_id}` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + listExamplesReq.Parent = args[0] + + response := w.SupervisorAgents.ListExamples(ctx, listExamplesReq) + if listExamplesLimit < 0 { + return fmt.Errorf("--limit must be a non-negative integer, got %d", listExamplesLimit) + } + if listExamplesLimit > 0 { + ctx = cmdio.WithLimit(ctx, listExamplesLimit) + } + + return cmdio.RenderIterator(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range listExamplesOverrides { + fn(cmd, &listExamplesReq) + } + + return cmd +} + +// start list-supervisor-agents command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var listSupervisorAgentsOverrides []func( + *cobra.Command, + *supervisoragents.ListSupervisorAgentsRequest, +) + +func newListSupervisorAgents() *cobra.Command { + cmd := &cobra.Command{} + + var listSupervisorAgentsReq supervisoragents.ListSupervisorAgentsRequest + // Registered for all paginated methods. Validated at call time in the + // method-call template. Paginated list methods never have Wait or LRO + // branches, so the method-call path is always reached. + var listSupervisorAgentsLimit int + + cmd.Flags().IntVar(&listSupervisorAgentsReq.PageSize, "page-size", listSupervisorAgentsReq.PageSize, `The maximum number of supervisor agents to return.`) + + // Limit flag for total result capping. + cmd.Flags().IntVar(&listSupervisorAgentsLimit, "limit", 0, `Maximum number of results to return.`) + + // Hidden pagination flags (internal API parameters). + cmd.Flags().StringVar(&listSupervisorAgentsReq.PageToken, "page-token", listSupervisorAgentsReq.PageToken, `Pagination token.`) + cmd.Flags().Lookup("page-token").Hidden = true + + cmd.Use = "list-supervisor-agents" + cmd.Short = `*Beta* List Supervisor Agents.` + cmd.Long = `This command is in Beta and may change without notice. + +List Supervisor Agents. + + Lists Supervisor Agents.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(0) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + response := w.SupervisorAgents.ListSupervisorAgents(ctx, listSupervisorAgentsReq) + if listSupervisorAgentsLimit < 0 { + return fmt.Errorf("--limit must be a non-negative integer, got %d", listSupervisorAgentsLimit) + } + if listSupervisorAgentsLimit > 0 { + ctx = cmdio.WithLimit(ctx, listSupervisorAgentsLimit) + } + + return cmdio.RenderIterator(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range listSupervisorAgentsOverrides { + fn(cmd, &listSupervisorAgentsReq) + } + + return cmd +} + +// start list-tools command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var listToolsOverrides []func( + *cobra.Command, + *supervisoragents.ListToolsRequest, +) + +func newListTools() *cobra.Command { + cmd := &cobra.Command{} + + var listToolsReq supervisoragents.ListToolsRequest + // Registered for all paginated methods. Validated at call time in the + // method-call template. Paginated list methods never have Wait or LRO + // branches, so the method-call path is always reached. + var listToolsLimit int + + cmd.Flags().IntVar(&listToolsReq.PageSize, "page-size", listToolsReq.PageSize, ``) + + // Limit flag for total result capping. + cmd.Flags().IntVar(&listToolsLimit, "limit", 0, `Maximum number of results to return.`) + + // Hidden pagination flags (internal API parameters). + cmd.Flags().StringVar(&listToolsReq.PageToken, "page-token", listToolsReq.PageToken, `Pagination token.`) + cmd.Flags().Lookup("page-token").Hidden = true + + cmd.Use = "list-tools PARENT" + cmd.Short = `*Beta* List Tools.` + cmd.Long = `This command is in Beta and may change without notice. + +List Tools. + + Lists Tools under a Supervisor Agent. + + Arguments: + PARENT: Parent resource to list from. Format: + supervisor-agents/{supervisor_agent_id}` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + listToolsReq.Parent = args[0] + + response := w.SupervisorAgents.ListTools(ctx, listToolsReq) + if listToolsLimit < 0 { + return fmt.Errorf("--limit must be a non-negative integer, got %d", listToolsLimit) + } + if listToolsLimit > 0 { + ctx = cmdio.WithLimit(ctx, listToolsLimit) + } + + return cmdio.RenderIterator(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range listToolsOverrides { + fn(cmd, &listToolsReq) + } + + return cmd +} + +// start set-permissions command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var setPermissionsOverrides []func( + *cobra.Command, + *supervisoragents.SupervisorAgentPermissionsRequest, +) + +func newSetPermissions() *cobra.Command { + cmd := &cobra.Command{} + + var setPermissionsReq supervisoragents.SupervisorAgentPermissionsRequest + var setPermissionsJson flags.JsonFlag + + cmd.Flags().Var(&setPermissionsJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + // TODO: array: access_control_list + + cmd.Use = "set-permissions SUPERVISOR_AGENT_ID" + cmd.Short = `*Beta* Set supervisor agent permissions.` + cmd.Long = `This command is in Beta and may change without notice. + +Set supervisor agent permissions. + + Sets permissions on an object, replacing existing permissions if they exist. + Deletes all direct permissions if none are specified. Objects can inherit + permissions from their root object. + + Arguments: + SUPERVISOR_AGENT_ID: The supervisor agent for which to get or manage permissions.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := setPermissionsJson.Unmarshal(&setPermissionsReq) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + setPermissionsReq.SupervisorAgentId = args[0] + + response, err := w.SupervisorAgents.SetPermissions(ctx, setPermissionsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range setPermissionsOverrides { + fn(cmd, &setPermissionsReq) + } + + return cmd +} + +// start update-example command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var updateExampleOverrides []func( + *cobra.Command, + *supervisoragents.UpdateExampleRequest, +) + +func newUpdateExample() *cobra.Command { + cmd := &cobra.Command{} + + var updateExampleReq supervisoragents.UpdateExampleRequest + updateExampleReq.Example = supervisoragents.Example{} + var updateExampleJson flags.JsonFlag + + cmd.Flags().Var(&updateExampleJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + cmd.Flags().StringVar(&updateExampleReq.Example.Name, "name", updateExampleReq.Example.Name, `Full resource name: supervisor-agents/{supervisor_agent_id}/examples/{example_id}.`) + + cmd.Use = "update-example NAME UPDATE_MASK QUESTION GUIDELINES" + cmd.Short = `*Beta* Update an example in a Supervisor Agent.` + cmd.Long = `This command is in Beta and may change without notice. + +Update an example in a Supervisor Agent. + + Updates an example in a Supervisor Agent. + + Arguments: + NAME: The resource name of the example to update. Format: + supervisor-agents/{supervisor_agent_id}/examples/{example_id} + UPDATE_MASK: Comma-delimited list of fields to update on the example. Allowed values: + question, guidelines. Examples: - question - question,guidelines + QUESTION: The example question. + GUIDELINES: Guidelines for answering the question.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(2)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, provide only NAME, UPDATE_MASK as positional arguments. Provide 'question', 'guidelines' in your JSON input") + } + return nil + } + check := root.ExactArgs(4) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := updateExampleJson.Unmarshal(&updateExampleReq.Example) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + updateExampleReq.Name = args[0] + if args[1] != "" { + updateMaskArray := strings.Split(args[1], ",") + updateExampleReq.UpdateMask = *fieldmask.New(updateMaskArray) + } + if !cmd.Flags().Changed("json") { + updateExampleReq.Example.Question = args[2] + } + if !cmd.Flags().Changed("json") { + _, err = fmt.Sscan(args[3], &updateExampleReq.Example.Guidelines) + if err != nil { + return fmt.Errorf("invalid GUIDELINES: %s", args[3]) + } + + } + + response, err := w.SupervisorAgents.UpdateExample(ctx, updateExampleReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range updateExampleOverrides { + fn(cmd, &updateExampleReq) + } + + return cmd +} + +// start update-permissions command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var updatePermissionsOverrides []func( + *cobra.Command, + *supervisoragents.SupervisorAgentPermissionsRequest, +) + +func newUpdatePermissions() *cobra.Command { + cmd := &cobra.Command{} + + var updatePermissionsReq supervisoragents.SupervisorAgentPermissionsRequest + var updatePermissionsJson flags.JsonFlag + + cmd.Flags().Var(&updatePermissionsJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + // TODO: array: access_control_list + + cmd.Use = "update-permissions SUPERVISOR_AGENT_ID" + cmd.Short = `*Beta* Update supervisor agent permissions.` + cmd.Long = `This command is in Beta and may change without notice. + +Update supervisor agent permissions. + + Updates the permissions on a supervisor agent. Supervisor agents can inherit + permissions from their root object. + + Arguments: + SUPERVISOR_AGENT_ID: The supervisor agent for which to get or manage permissions.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := updatePermissionsJson.Unmarshal(&updatePermissionsReq) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + updatePermissionsReq.SupervisorAgentId = args[0] + + response, err := w.SupervisorAgents.UpdatePermissions(ctx, updatePermissionsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range updatePermissionsOverrides { + fn(cmd, &updatePermissionsReq) + } + + return cmd +} + +// start update-supervisor-agent command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var updateSupervisorAgentOverrides []func( + *cobra.Command, + *supervisoragents.UpdateSupervisorAgentRequest, +) + +func newUpdateSupervisorAgent() *cobra.Command { + cmd := &cobra.Command{} + + var updateSupervisorAgentReq supervisoragents.UpdateSupervisorAgentRequest + updateSupervisorAgentReq.SupervisorAgent = supervisoragents.SupervisorAgent{} + var updateSupervisorAgentJson flags.JsonFlag + + cmd.Flags().Var(&updateSupervisorAgentJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + cmd.Flags().StringVar(&updateSupervisorAgentReq.SupervisorAgent.Description, "description", updateSupervisorAgentReq.SupervisorAgent.Description, `Description of what this agent can do (user-facing).`) + cmd.Flags().StringVar(&updateSupervisorAgentReq.SupervisorAgent.Instructions, "instructions", updateSupervisorAgentReq.SupervisorAgent.Instructions, `Optional natural-language instructions for the supervisor agent.`) + cmd.Flags().StringVar(&updateSupervisorAgentReq.SupervisorAgent.Name, "name", updateSupervisorAgentReq.SupervisorAgent.Name, `The resource name of the SupervisorAgent.`) + + cmd.Use = "update-supervisor-agent NAME UPDATE_MASK DISPLAY_NAME" + cmd.Short = `*Beta* Update a Supervisor Agent.` + cmd.Long = `This command is in Beta and may change without notice. + +Update a Supervisor Agent. + + Updates a Supervisor Agent. The fields that are required depend on the paths + specified in update_mask. Only fields included in the mask will be updated. + + Arguments: + NAME: The resource name of the SupervisorAgent. Format: + supervisor-agents/{supervisor_agent_id} + UPDATE_MASK: Field mask for fields to be updated. + DISPLAY_NAME: The display name of the Supervisor Agent, unique at workspace level.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(2)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, provide only NAME, UPDATE_MASK as positional arguments. Provide 'display_name' in your JSON input") + } + return nil + } + check := root.ExactArgs(3) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := updateSupervisorAgentJson.Unmarshal(&updateSupervisorAgentReq.SupervisorAgent) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + updateSupervisorAgentReq.Name = args[0] + if args[1] != "" { + updateMaskArray := strings.Split(args[1], ",") + updateSupervisorAgentReq.UpdateMask = *fieldmask.New(updateMaskArray) + } + if !cmd.Flags().Changed("json") { + updateSupervisorAgentReq.SupervisorAgent.DisplayName = args[2] + } + + response, err := w.SupervisorAgents.UpdateSupervisorAgent(ctx, updateSupervisorAgentReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range updateSupervisorAgentOverrides { + fn(cmd, &updateSupervisorAgentReq) + } + + return cmd +} + +// start update-tool command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var updateToolOverrides []func( + *cobra.Command, + *supervisoragents.UpdateToolRequest, +) + +func newUpdateTool() *cobra.Command { + cmd := &cobra.Command{} + + var updateToolReq supervisoragents.UpdateToolRequest + updateToolReq.Tool = supervisoragents.Tool{} + var updateToolJson flags.JsonFlag + + cmd.Flags().Var(&updateToolJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + // TODO: complex arg: app + cmd.Flags().StringVar(&updateToolReq.Tool.Description, "description", updateToolReq.Tool.Description, `Description of what this tool does (user-facing).`) + // TODO: complex arg: genie_space + // TODO: complex arg: knowledge_assistant + cmd.Flags().StringVar(&updateToolReq.Tool.Name, "name", updateToolReq.Tool.Name, `Full resource name: supervisor-agents/{supervisor_agent_id}/tools/{tool_id}.`) + // TODO: complex arg: uc_connection + // TODO: complex arg: uc_function + // TODO: complex arg: volume + + cmd.Use = "update-tool NAME UPDATE_MASK TOOL_TYPE" + cmd.Short = `*Beta* Update a Tool.` + cmd.Long = `This command is in Beta and may change without notice. + +Update a Tool. + + Updates a Tool. Only the description field can be updated. To change + immutable fields such as tool type, spec, or tool ID, delete the tool and + recreate it. + + Arguments: + NAME: Full resource name: + supervisor-agents/{supervisor_agent_id}/tools/{tool_id} + UPDATE_MASK: Field mask for fields to be updated. + TOOL_TYPE: Tool type. Must be one of: "genie_space", "knowledge_assistant", + "uc_function", "uc_connection", "app", "volume", "lakeview_dashboard", + "serving_endpoint", "uc_table", "vector_search_index", "catalog", + "schema", "supervisor_agent", "web_search".` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + if cmd.Flags().Changed("json") { + err := root.ExactArgs(2)(cmd, args) + if err != nil { + return fmt.Errorf("when --json flag is specified, provide only NAME, UPDATE_MASK as positional arguments. Provide 'tool_type' in your JSON input") + } + return nil + } + check := root.ExactArgs(3) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := updateToolJson.Unmarshal(&updateToolReq.Tool) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + updateToolReq.Name = args[0] + if args[1] != "" { + updateMaskArray := strings.Split(args[1], ",") + updateToolReq.UpdateMask = *fieldmask.New(updateMaskArray) + } + if !cmd.Flags().Changed("json") { + updateToolReq.Tool.ToolType = args[2] + } + + response, err := w.SupervisorAgents.UpdateTool(ctx, updateToolReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range updateToolOverrides { + fn(cmd, &updateToolReq) + } + + return cmd +} + +// end service SupervisorAgents diff --git a/cmd/workspace/system-schemas/system-schemas.go b/cmd/workspace/system-schemas/system-schemas.go index 8b41369ba37..a1bcba0cc7c 100755 --- a/cmd/workspace/system-schemas/system-schemas.go +++ b/cmd/workspace/system-schemas/system-schemas.go @@ -20,14 +20,20 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "system-schemas", - Short: `A system schema is a schema that lives within the system catalog.`, - Long: `A system schema is a schema that lives within the system catalog. A system + Short: `*Public Preview* A system schema is a schema that lives within the system catalog.`, + Long: `This command is in Public Preview and may change without notice. + +A system schema is a schema that lives within the system catalog. A system schema may contain information about customer usage of Unity Catalog such as audit-logs, billing-logs, lineage information, etc.`, GroupID: "catalog", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newDisable()) cmd.AddCommand(newEnable()) @@ -56,8 +62,10 @@ func newDisable() *cobra.Command { var disableReq catalog.DisableRequest cmd.Use = "disable METASTORE_ID SCHEMA_NAME" - cmd.Short = `Disable a system schema.` - cmd.Long = `Disable a system schema. + cmd.Short = `*Public Preview* Disable a system schema.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Disable a system schema. Disables the system schema and removes it from the system catalog. The caller must be an account admin or a metastore admin. @@ -67,6 +75,8 @@ func newDisable() *cobra.Command { SCHEMA_NAME: Full name of the system schema.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -120,8 +130,10 @@ func newEnable() *cobra.Command { cmd.Flags().StringVar(&enableReq.CatalogName, "catalog-name", enableReq.CatalogName, `the catalog for which the system schema is to enabled in.`) cmd.Use = "enable METASTORE_ID SCHEMA_NAME" - cmd.Short = `Enable a system schema.` - cmd.Long = `Enable a system schema. + cmd.Short = `*Public Preview* Enable a system schema.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Enable a system schema. Enables the system schema and adds it to the system catalog. The caller must be an account admin or a metastore admin. @@ -131,6 +143,8 @@ func newEnable() *cobra.Command { SCHEMA_NAME: Full name of the system schema.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -204,8 +218,10 @@ func newList() *cobra.Command { cmd.Flags().Lookup("max-results").Hidden = true cmd.Use = "list METASTORE_ID" - cmd.Short = `List system schemas.` - cmd.Long = `List system schemas. + cmd.Short = `*Public Preview* List system schemas.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List system schemas. Gets an array of system schemas for a metastore. The caller must be an account admin or a metastore admin. @@ -222,6 +238,8 @@ func newList() *cobra.Command { METASTORE_ID: The ID for the metastore in which the system schema resides.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/table-constraints/table-constraints.go b/cmd/workspace/table-constraints/table-constraints.go index 369907f0108..f01a2c9b345 100755 --- a/cmd/workspace/table-constraints/table-constraints.go +++ b/cmd/workspace/table-constraints/table-constraints.go @@ -38,6 +38,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -83,6 +87,8 @@ func newCreate() *cobra.Command { table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -160,6 +166,8 @@ func newDelete() *cobra.Command { constraints.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) diff --git a/cmd/workspace/tables/tables.go b/cmd/workspace/tables/tables.go index 3003fdfd3a7..c132bc9fa10 100755 --- a/cmd/workspace/tables/tables.go +++ b/cmd/workspace/tables/tables.go @@ -34,6 +34,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -72,8 +76,10 @@ func newCreate() *cobra.Command { // TODO: map via StringToStringVar: properties cmd.Use = "create NAME CATALOG_NAME SCHEMA_NAME TABLE_TYPE DATA_SOURCE_FORMAT STORAGE_LOCATION" - cmd.Short = `Create a table.` - cmd.Long = `Create a table. + cmd.Short = `*Public Preview* Create a table.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a table. Creates a new table in the specified catalog and schema. @@ -152,6 +158,8 @@ func newCreate() *cobra.Command { STORAGE_LOCATION: Storage root URL for table (for **MANAGED**, **EXTERNAL** tables).` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -257,6 +265,8 @@ func newDelete() *cobra.Command { FULL_NAME: Full name of the table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -320,6 +330,8 @@ func newExists() *cobra.Command { FULL_NAME: Full name of the table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -387,6 +399,8 @@ func newGet() *cobra.Command { FULL_NAME: Full name of the table.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -480,6 +494,8 @@ func newList() *cobra.Command { SCHEMA_NAME: Parent schema of tables.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -572,6 +588,8 @@ func newListSummaries() *cobra.Command { CATALOG_NAME: Name of parent catalog for tables of interest.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -644,6 +662,8 @@ func newUpdate() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/tag-policies/tag-policies.go b/cmd/workspace/tag-policies/tag-policies.go index 178d9b399a4..02ef1a7af31 100755 --- a/cmd/workspace/tag-policies/tag-policies.go +++ b/cmd/workspace/tag-policies/tag-policies.go @@ -32,6 +32,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreateTagPolicy()) cmd.AddCommand(newDeleteTagPolicy()) @@ -80,6 +84,8 @@ func newCreateTagPolicy() *cobra.Command { [Tag Policy Terraform documentation]: https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/tag_policy` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -159,6 +165,8 @@ func newDeleteTagPolicy() *cobra.Command { [Tag Policy Terraform documentation]: https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/tag_policy` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -217,6 +225,8 @@ func newGetTagPolicy() *cobra.Command { [Tag Policy Terraform documentation]: https://registry.terraform.io/providers/databricks/databricks/latest/docs/data-sources/tag_policy` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -289,6 +299,8 @@ func newListTagPolicies() *cobra.Command { [Tag Policy Terraform documentation]: https://registry.terraform.io/providers/databricks/databricks/latest/docs/data-sources/tag_policies` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -370,6 +382,8 @@ func newUpdateTagPolicy() *cobra.Command { future.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/workspace/temporary-path-credentials/temporary-path-credentials.go b/cmd/workspace/temporary-path-credentials/temporary-path-credentials.go index 98eda3ccf54..a6a77d6c72f 100755 --- a/cmd/workspace/temporary-path-credentials/temporary-path-credentials.go +++ b/cmd/workspace/temporary-path-credentials/temporary-path-credentials.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "temporary-path-credentials", - Short: `Temporary Path Credentials refer to short-lived, downscoped credentials used to access external cloud storage locations registered in Databricks.`, - Long: `Temporary Path Credentials refer to short-lived, downscoped credentials used + Short: `*Public Preview* Temporary Path Credentials refer to short-lived, downscoped credentials used to access external cloud storage locations registered in Databricks.`, + Long: `This command is in Public Preview and may change without notice. + +Temporary Path Credentials refer to short-lived, downscoped credentials used to access external cloud storage locations registered in Databricks. These credentials are employed to provide secure and time-limited access to data in cloud environments such as AWS, Azure, and Google Cloud. Each cloud provider @@ -36,10 +38,10 @@ func New() *cobra.Command { external_access_enabled flag (off by default) at the metastore level. A user needs to be granted the EXTERNAL USE LOCATION permission by external location owner. For requests on existing external tables, user also needs to be granted - the EXTERNAL USE SCHEMA permission at the schema level by catalog admin. + the EXTERNAL USE SCHEMA permission at the schema level by catalog owner. Note that EXTERNAL USE SCHEMA is a schema level permission that can only be - granted by catalog admin explicitly and is not included in schema ownership or + granted by catalog owner explicitly and is not included in schema ownership or ALL PRIVILEGES on the schema for security reasons. Similarly, EXTERNAL USE LOCATION is an external location level permission that can only be granted by external location owner explicitly and is not included in external location @@ -51,6 +53,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGenerateTemporaryPathCredentials()) @@ -82,8 +88,10 @@ func newGenerateTemporaryPathCredentials() *cobra.Command { cmd.Flags().BoolVar(&generateTemporaryPathCredentialsReq.DryRun, "dry-run", generateTemporaryPathCredentialsReq.DryRun, `Optional.`) cmd.Use = "generate-temporary-path-credentials URL OPERATION" - cmd.Short = `Generate a temporary path credential.` - cmd.Long = `Generate a temporary path credential. + cmd.Short = `*Public Preview* Generate a temporary path credential.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Generate a temporary path credential. Get a short-lived credential for directly accessing cloud storage locations registered in Databricks. The Generate Temporary Path Credentials API is only @@ -102,6 +110,8 @@ func newGenerateTemporaryPathCredentials() *cobra.Command { Supported values: [PATH_CREATE_TABLE, PATH_READ, PATH_READ_WRITE]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/temporary-table-credentials/temporary-table-credentials.go b/cmd/workspace/temporary-table-credentials/temporary-table-credentials.go index ebc93e63ec1..2967d260194 100755 --- a/cmd/workspace/temporary-table-credentials/temporary-table-credentials.go +++ b/cmd/workspace/temporary-table-credentials/temporary-table-credentials.go @@ -18,8 +18,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "temporary-table-credentials", - Short: `Temporary Table Credentials refer to short-lived, downscoped credentials used to access cloud storage locations where table data is stored in Databricks.`, - Long: `Temporary Table Credentials refer to short-lived, downscoped credentials used + Short: `*Public Preview* Temporary Table Credentials refer to short-lived, downscoped credentials used to access cloud storage locations where table data is stored in Databricks.`, + Long: `This command is in Public Preview and may change without notice. + +Temporary Table Credentials refer to short-lived, downscoped credentials used to access cloud storage locations where table data is stored in Databricks. These credentials are employed to provide secure and time-limited access to data in cloud environments such as AWS, Azure, and Google Cloud. Each cloud @@ -33,13 +35,17 @@ func New() *cobra.Command { temporary table credentials API, a metastore admin needs to enable the external_access_enabled flag (off by default) at the metastore level, and user needs to be granted the EXTERNAL USE SCHEMA permission at the schema level by - catalog admin. Note that EXTERNAL USE SCHEMA is a schema level permission that - can only be granted by catalog admin explicitly and is not included in schema + catalog owner. Note that EXTERNAL USE SCHEMA is a schema level permission that + can only be granted by catalog owner explicitly and is not included in schema ownership or ALL PRIVILEGES on the schema for security reasons.`, GroupID: "catalog", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGenerateTemporaryTableCredentials()) @@ -72,8 +78,10 @@ func newGenerateTemporaryTableCredentials() *cobra.Command { cmd.Flags().StringVar(&generateTemporaryTableCredentialsReq.TableId, "table-id", generateTemporaryTableCredentialsReq.TableId, `UUID of the table to read or write.`) cmd.Use = "generate-temporary-table-credentials" - cmd.Short = `Generate a temporary table credential.` - cmd.Long = `Generate a temporary table credential. + cmd.Short = `*Public Preview* Generate a temporary table credential.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Generate a temporary table credential. Get a short-lived credential for directly accessing the table data on cloud storage. The metastore must have **external_access_enabled** flag set to true @@ -81,6 +89,8 @@ func newGenerateTemporaryTableCredentials() *cobra.Command { the parent schema and this privilege can only be granted by catalog owners.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/workspace/temporary-volume-credentials/temporary-volume-credentials.go b/cmd/workspace/temporary-volume-credentials/temporary-volume-credentials.go new file mode 100755 index 00000000000..620231272dc --- /dev/null +++ b/cmd/workspace/temporary-volume-credentials/temporary-volume-credentials.go @@ -0,0 +1,137 @@ +// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT. + +package temporary_volume_credentials + +import ( + "github.com/databricks/cli/cmd/root" + "github.com/databricks/cli/libs/cmdctx" + "github.com/databricks/cli/libs/cmdio" + "github.com/databricks/cli/libs/flags" + "github.com/databricks/databricks-sdk-go/service/catalog" + "github.com/spf13/cobra" +) + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var cmdOverrides []func(*cobra.Command) + +func New() *cobra.Command { + cmd := &cobra.Command{ + Use: "temporary-volume-credentials", + Short: `Temporary Volume Credentials refer to short-lived, downscoped credentials used to access cloud storage locations where volume data is stored in Databricks.`, + Long: `Temporary Volume Credentials refer to short-lived, downscoped credentials used + to access cloud storage locations where volume data is stored in Databricks. + These credentials are employed to provide secure and time-limited access to + data in cloud environments such as AWS, Azure, and Google Cloud. Each cloud + provider has its own type of credentials: AWS uses temporary session tokens + via AWS Security Token Service (STS), Azure utilizes Shared Access Signatures + (SAS) for its data storage services, and Google Cloud supports temporary + credentials through OAuth 2.0. + + Temporary volume credentials ensure that data access is limited in scope and + duration, reducing the risk of unauthorized access or misuse. To use the + temporary volume credentials API, a metastore admin needs to enable the + external_access_enabled flag (off by default) at the metastore level, and user + needs to be granted the EXTERNAL USE SCHEMA permission at the schema level by + catalog owner. Note that EXTERNAL USE SCHEMA is a schema level permission that + can only be granted by catalog owner explicitly and is not included in schema + ownership or ALL PRIVILEGES on the schema for security reasons.`, + GroupID: "catalog", + + // This service is being previewed; hide from help output. + Hidden: true, + RunE: root.ReportUnknownSubcommand, + } + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + // Add methods + cmd.AddCommand(newGenerateTemporaryVolumeCredentials()) + + // Apply optional overrides to this command. + for _, fn := range cmdOverrides { + fn(cmd) + } + + return cmd +} + +// start generate-temporary-volume-credentials command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var generateTemporaryVolumeCredentialsOverrides []func( + *cobra.Command, + *catalog.GenerateTemporaryVolumeCredentialRequest, +) + +func newGenerateTemporaryVolumeCredentials() *cobra.Command { + cmd := &cobra.Command{} + + var generateTemporaryVolumeCredentialsReq catalog.GenerateTemporaryVolumeCredentialRequest + var generateTemporaryVolumeCredentialsJson flags.JsonFlag + + cmd.Flags().Var(&generateTemporaryVolumeCredentialsJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + cmd.Flags().Var(&generateTemporaryVolumeCredentialsReq.Operation, "operation", `The operation performed against the volume data, either READ_VOLUME or WRITE_VOLUME. Supported values: [READ_VOLUME, WRITE_VOLUME]`) + cmd.Flags().StringVar(&generateTemporaryVolumeCredentialsReq.VolumeId, "volume-id", generateTemporaryVolumeCredentialsReq.VolumeId, `Id of the volume to read or write.`) + + cmd.Use = "generate-temporary-volume-credentials" + cmd.Short = `Generate a temporary volume credential.` + cmd.Long = `Generate a temporary volume credential. + + Get a short-lived credential for directly accessing the volume data on cloud + storage. The metastore must have **external_access_enabled** flag set to true + (default false). The caller must have the **EXTERNAL_USE_SCHEMA** privilege on + the parent schema and this privilege can only be granted by catalog owners.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(0) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := generateTemporaryVolumeCredentialsJson.Unmarshal(&generateTemporaryVolumeCredentialsReq) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + + response, err := w.TemporaryVolumeCredentials.GenerateTemporaryVolumeCredentials(ctx, generateTemporaryVolumeCredentialsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range generateTemporaryVolumeCredentialsOverrides { + fn(cmd, &generateTemporaryVolumeCredentialsReq) + } + + return cmd +} + +// end service TemporaryVolumeCredentials diff --git a/cmd/workspace/token-management/token-management.go b/cmd/workspace/token-management/token-management.go index b62e185f460..a89fab4ff33 100755 --- a/cmd/workspace/token-management/token-management.go +++ b/cmd/workspace/token-management/token-management.go @@ -28,6 +28,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreateOboToken()) cmd.AddCommand(newDelete()) @@ -77,6 +81,8 @@ func newCreateOboToken() *cobra.Command { APPLICATION_ID: Application ID of the service principal.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -171,6 +177,8 @@ func newDelete() *cobra.Command { TOKEN_ID: The ID of the token to revoke.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -239,6 +247,8 @@ func newGet() *cobra.Command { TOKEN_ID: The ID of the token to get.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -302,6 +312,8 @@ func newGetPermissionLevels() *cobra.Command { Gets the permission levels that a user can have on an object.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -346,6 +358,8 @@ func newGetPermissions() *cobra.Command { root object.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -404,6 +418,8 @@ func newList() *cobra.Command { Lists all tokens associated with the specified workspace or user.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -466,6 +482,8 @@ func newSetPermissions() *cobra.Command { permissions from their root object.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -537,6 +555,8 @@ func newUpdatePermissions() *cobra.Command { their root object.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/workspace/tokens/tokens.go b/cmd/workspace/tokens/tokens.go index 5acda52a379..e7411bc27f0 100755 --- a/cmd/workspace/tokens/tokens.go +++ b/cmd/workspace/tokens/tokens.go @@ -27,10 +27,15 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) cmd.AddCommand(newList()) + cmd.AddCommand(newUpdate()) // Apply optional overrides to this command. for _, fn := range cmdOverrides { @@ -71,6 +76,8 @@ func newCreate() *cobra.Command { an error **QUOTA_EXCEEDED**.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -145,6 +152,8 @@ func newDelete() *cobra.Command { TOKEN_ID: The ID of the token to be revoked.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -240,6 +249,8 @@ func newList() *cobra.Command { Lists all the valid tokens for a user-workspace pair.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -268,4 +279,83 @@ func newList() *cobra.Command { return cmd } +// start update command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var updateOverrides []func( + *cobra.Command, + *settings.UpdateTokenRequest, +) + +func newUpdate() *cobra.Command { + cmd := &cobra.Command{} + + var updateReq settings.UpdateTokenRequest + var updateJson flags.JsonFlag + + cmd.Flags().Var(&updateJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + cmd.Use = "update TOKEN_ID" + cmd.Short = `Update a user token.` + cmd.Long = `Update a user token. + + Updates the comment or scopes of a token. + + If a token with the specified ID is not valid, this call returns an error + **RESOURCE_DOES_NOT_EXIST**. + + Arguments: + TOKEN_ID: The SHA-256 hash of the token to be updated.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := updateJson.Unmarshal(&updateReq) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } else { + return fmt.Errorf("please provide command input in JSON format by specifying the --json flag") + } + updateReq.TokenId = args[0] + + response, err := w.Tokens.Update(ctx, updateReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range updateOverrides { + fn(cmd, &updateReq) + } + + return cmd +} + // end service Tokens diff --git a/cmd/workspace/users-v2/users-v2.go b/cmd/workspace/users-v2/users-v2.go index e54d8c2377f..3d7b0c63415 100755 --- a/cmd/workspace/users-v2/users-v2.go +++ b/cmd/workspace/users-v2/users-v2.go @@ -20,8 +20,10 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "users-v2", - Short: `User identities recognized by Databricks and represented by email addresses.`, - Long: `User identities recognized by Databricks and represented by email addresses. + Short: `*Public Preview* User identities recognized by Databricks and represented by email addresses.`, + Long: `This command is in Public Preview and may change without notice. + +User identities recognized by Databricks and represented by email addresses. Databricks recommends using SCIM provisioning to sync users and groups automatically from your identity provider to your Databricks workspace. SCIM @@ -36,6 +38,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -86,13 +92,17 @@ func newCreate() *cobra.Command { cmd.Flags().StringVar(&createReq.UserName, "user-name", createReq.UserName, `Email address of the Databricks user.`) cmd.Use = "create" - cmd.Short = `Create a new user.` - cmd.Long = `Create a new user. + cmd.Short = `*Public Preview* Create a new user.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Create a new user. Creates a new user in the Databricks workspace. This new user will also be added to the Databricks account.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -152,8 +162,10 @@ func newDelete() *cobra.Command { var deleteReq iam.DeleteUserRequest cmd.Use = "delete ID" - cmd.Short = `Delete a user.` - cmd.Long = `Delete a user. + cmd.Short = `*Public Preview* Delete a user.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Delete a user. Deletes a user. Deleting a user from a Databricks workspace also removes objects associated with the user. @@ -162,6 +174,8 @@ func newDelete() *cobra.Command { ID: Unique ID for a user in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -217,8 +231,10 @@ func newGet() *cobra.Command { cmd.Flags().IntVar(&getReq.StartIndex, "start-index", getReq.StartIndex, `Specifies the index of the first result.`) cmd.Use = "get ID" - cmd.Short = `Get user details.` - cmd.Long = `Get user details. + cmd.Short = `*Public Preview* Get user details.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get user details. Gets information for a specific user in Databricks workspace. @@ -226,6 +242,8 @@ func newGet() *cobra.Command { ID: Unique ID for a user in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -274,12 +292,16 @@ func newGetPermissionLevels() *cobra.Command { var getPermissionLevelsReq iam.GetPasswordPermissionLevelsRequest cmd.Use = "get-permission-levels" - cmd.Short = `Get password permission levels.` - cmd.Long = `Get password permission levels. + cmd.Short = `*Public Preview* Get password permission levels.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get password permission levels. Gets the permission levels that a user can have on an object.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -321,13 +343,17 @@ func newGetPermissions() *cobra.Command { var getPermissionsReq iam.GetPasswordPermissionsRequest cmd.Use = "get-permissions" - cmd.Short = `Get password permissions.` - cmd.Long = `Get password permissions. + cmd.Short = `*Public Preview* Get password permissions.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get password permissions. Gets the permissions of all passwords. Passwords can inherit permissions from their root object.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -388,12 +414,16 @@ func newList() *cobra.Command { cmd.Flags().Lookup("count").Hidden = true cmd.Use = "list" - cmd.Short = `List users.` - cmd.Long = `List users. + cmd.Short = `*Public Preview* List users.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List users. Gets details for all the users associated with a Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -449,8 +479,10 @@ func newPatch() *cobra.Command { // TODO: array: schemas cmd.Use = "patch ID" - cmd.Short = `Update user details.` - cmd.Long = `Update user details. + cmd.Short = `*Public Preview* Update user details.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update user details. Partially updates a user resource by applying the supplied operations on specific user attributes. @@ -459,6 +491,8 @@ func newPatch() *cobra.Command { ID: Unique ID in the Databricks workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -523,14 +557,18 @@ func newSetPermissions() *cobra.Command { // TODO: array: access_control_list cmd.Use = "set-permissions" - cmd.Short = `Set password permissions.` - cmd.Long = `Set password permissions. + cmd.Short = `*Public Preview* Set password permissions.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Set password permissions. Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct permissions if none are specified. Objects can inherit permissions from their root object.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -604,8 +642,10 @@ func newUpdate() *cobra.Command { cmd.Flags().StringVar(&updateReq.UserName, "user-name", updateReq.UserName, `Email address of the Databricks user.`) cmd.Use = "update ID" - cmd.Short = `Replace a user.` - cmd.Long = `Replace a user. + cmd.Short = `*Public Preview* Replace a user.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Replace a user. Replaces a user's information with the data supplied in request. @@ -613,6 +653,8 @@ func newUpdate() *cobra.Command { ID: Databricks user ID.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -677,13 +719,17 @@ func newUpdatePermissions() *cobra.Command { // TODO: array: access_control_list cmd.Use = "update-permissions" - cmd.Short = `Update password permissions.` - cmd.Long = `Update password permissions. + cmd.Short = `*Public Preview* Update password permissions.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update password permissions. Updates the permissions on all passwords. Passwords can inherit permissions from their root object.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) diff --git a/cmd/workspace/vector-search-endpoints/vector-search-endpoints.go b/cmd/workspace/vector-search-endpoints/vector-search-endpoints.go index 6a0afdd565c..455a61586ac 100755 --- a/cmd/workspace/vector-search-endpoints/vector-search-endpoints.go +++ b/cmd/workspace/vector-search-endpoints/vector-search-endpoints.go @@ -27,15 +27,23 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreateEndpoint()) cmd.AddCommand(newDeleteEndpoint()) cmd.AddCommand(newGetEndpoint()) + cmd.AddCommand(newGetPermissionLevels()) + cmd.AddCommand(newGetPermissions()) cmd.AddCommand(newListEndpoints()) cmd.AddCommand(newPatchEndpoint()) cmd.AddCommand(newRetrieveUserVisibleMetrics()) + cmd.AddCommand(newSetPermissions()) cmd.AddCommand(newUpdateEndpointBudgetPolicy()) cmd.AddCommand(newUpdateEndpointCustomTags()) + cmd.AddCommand(newUpdatePermissions()) // Apply optional overrides to this command. for _, fn := range cmdOverrides { @@ -69,7 +77,7 @@ func newCreateEndpoint() *cobra.Command { cmd.Flags().Var(&createEndpointJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Flags().StringVar(&createEndpointReq.BudgetPolicyId, "budget-policy-id", createEndpointReq.BudgetPolicyId, `The budget policy id to be applied.`) - cmd.Flags().Int64Var(&createEndpointReq.MinQps, "min-qps", createEndpointReq.MinQps, `Min QPS for the endpoint.`) + cmd.Flags().Int64Var(&createEndpointReq.TargetQps, "target-qps", createEndpointReq.TargetQps, `Target QPS for the endpoint.`) cmd.Flags().StringVar(&createEndpointReq.UsagePolicyId, "usage-policy-id", createEndpointReq.UsagePolicyId, `The usage policy id to be applied once we've migrated to usage policies.`) cmd.Use = "create-endpoint NAME ENDPOINT_TYPE" @@ -84,6 +92,8 @@ func newCreateEndpoint() *cobra.Command { Supported values: [STANDARD, STORAGE_OPTIMIZED]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -187,6 +197,8 @@ func newDeleteEndpoint() *cobra.Command { ENDPOINT_NAME: Name of the vector search endpoint` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -243,6 +255,8 @@ func newGetEndpoint() *cobra.Command { ENDPOINT_NAME: Name of the endpoint` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -276,6 +290,125 @@ func newGetEndpoint() *cobra.Command { return cmd } +// start get-permission-levels command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getPermissionLevelsOverrides []func( + *cobra.Command, + *vectorsearch.GetVectorSearchEndpointPermissionLevelsRequest, +) + +func newGetPermissionLevels() *cobra.Command { + cmd := &cobra.Command{} + + var getPermissionLevelsReq vectorsearch.GetVectorSearchEndpointPermissionLevelsRequest + + cmd.Use = "get-permission-levels ENDPOINT_ID" + cmd.Short = `Get vector search endpoint permission levels.` + cmd.Long = `Get vector search endpoint permission levels. + + Gets the permission levels that a user can have on an object. + + Arguments: + ENDPOINT_ID: The vector search endpoint for which to get or manage permissions.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + getPermissionLevelsReq.EndpointId = args[0] + + response, err := w.VectorSearchEndpoints.GetPermissionLevels(ctx, getPermissionLevelsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getPermissionLevelsOverrides { + fn(cmd, &getPermissionLevelsReq) + } + + return cmd +} + +// start get-permissions command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var getPermissionsOverrides []func( + *cobra.Command, + *vectorsearch.GetVectorSearchEndpointPermissionsRequest, +) + +func newGetPermissions() *cobra.Command { + cmd := &cobra.Command{} + + var getPermissionsReq vectorsearch.GetVectorSearchEndpointPermissionsRequest + + cmd.Use = "get-permissions ENDPOINT_ID" + cmd.Short = `Get vector search endpoint permissions.` + cmd.Long = `Get vector search endpoint permissions. + + Gets the permissions of a vector search endpoint. Vector search endpoints can + inherit permissions from their root object. + + Arguments: + ENDPOINT_ID: The vector search endpoint for which to get or manage permissions.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + getPermissionsReq.EndpointId = args[0] + + response, err := w.VectorSearchEndpoints.GetPermissions(ctx, getPermissionsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range getPermissionsOverrides { + fn(cmd, &getPermissionsReq) + } + + return cmd +} + // start list-endpoints command // Slice with functions to override default command behavior. @@ -308,6 +441,8 @@ func newListEndpoints() *cobra.Command { List all vector search endpoints in the workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -359,11 +494,13 @@ func newPatchEndpoint() *cobra.Command { cmd.Flags().Var(&patchEndpointJson, "json", `either inline JSON string or @path/to/file.json with request body`) - cmd.Flags().Int64Var(&patchEndpointReq.MinQps, "min-qps", patchEndpointReq.MinQps, `Min QPS for the endpoint.`) + cmd.Flags().Int64Var(&patchEndpointReq.TargetQps, "target-qps", patchEndpointReq.TargetQps, `Target QPS for the endpoint.`) cmd.Use = "patch-endpoint ENDPOINT_NAME" - cmd.Short = `Update an endpoint.` - cmd.Long = `Update an endpoint. + cmd.Short = `*Public Preview* Update an endpoint.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update an endpoint. Update an endpoint @@ -371,6 +508,8 @@ func newPatchEndpoint() *cobra.Command { ENDPOINT_NAME: Name of the vector search endpoint` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -449,6 +588,8 @@ func newRetrieveUserVisibleMetrics() *cobra.Command { NAME: Vector search endpoint name` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -494,6 +635,84 @@ func newRetrieveUserVisibleMetrics() *cobra.Command { return cmd } +// start set-permissions command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var setPermissionsOverrides []func( + *cobra.Command, + *vectorsearch.VectorSearchEndpointPermissionsRequest, +) + +func newSetPermissions() *cobra.Command { + cmd := &cobra.Command{} + + var setPermissionsReq vectorsearch.VectorSearchEndpointPermissionsRequest + var setPermissionsJson flags.JsonFlag + + cmd.Flags().Var(&setPermissionsJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + // TODO: array: access_control_list + + cmd.Use = "set-permissions ENDPOINT_ID" + cmd.Short = `Set vector search endpoint permissions.` + cmd.Long = `Set vector search endpoint permissions. + + Sets permissions on an object, replacing existing permissions if they exist. + Deletes all direct permissions if none are specified. Objects can inherit + permissions from their root object. + + Arguments: + ENDPOINT_ID: The vector search endpoint for which to get or manage permissions.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := setPermissionsJson.Unmarshal(&setPermissionsReq) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + setPermissionsReq.EndpointId = args[0] + + response, err := w.VectorSearchEndpoints.SetPermissions(ctx, setPermissionsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range setPermissionsOverrides { + fn(cmd, &setPermissionsReq) + } + + return cmd +} + // start update-endpoint-budget-policy command // Slice with functions to override default command behavior. @@ -512,8 +731,10 @@ func newUpdateEndpointBudgetPolicy() *cobra.Command { cmd.Flags().Var(&updateEndpointBudgetPolicyJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "update-endpoint-budget-policy ENDPOINT_NAME BUDGET_POLICY_ID" - cmd.Short = `Update the budget policy of an endpoint.` - cmd.Long = `Update the budget policy of an endpoint. + cmd.Short = `*Public Preview* Update the budget policy of an endpoint.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update the budget policy of an endpoint. Update the budget policy of an endpoint @@ -522,6 +743,8 @@ func newUpdateEndpointBudgetPolicy() *cobra.Command { BUDGET_POLICY_ID: The budget policy id to be applied` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -605,6 +828,8 @@ func newUpdateEndpointCustomTags() *cobra.Command { cmd.Hidden = true cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PRIVATE_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Private Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -652,4 +877,81 @@ func newUpdateEndpointCustomTags() *cobra.Command { return cmd } +// start update-permissions command + +// Slice with functions to override default command behavior. +// Functions can be added from the `init()` function in manually curated files in this directory. +var updatePermissionsOverrides []func( + *cobra.Command, + *vectorsearch.VectorSearchEndpointPermissionsRequest, +) + +func newUpdatePermissions() *cobra.Command { + cmd := &cobra.Command{} + + var updatePermissionsReq vectorsearch.VectorSearchEndpointPermissionsRequest + var updatePermissionsJson flags.JsonFlag + + cmd.Flags().Var(&updatePermissionsJson, "json", `either inline JSON string or @path/to/file.json with request body`) + + // TODO: array: access_control_list + + cmd.Use = "update-permissions ENDPOINT_ID" + cmd.Short = `Update vector search endpoint permissions.` + cmd.Long = `Update vector search endpoint permissions. + + Updates the permissions on a vector search endpoint. Vector search endpoints + can inherit permissions from their root object. + + Arguments: + ENDPOINT_ID: The vector search endpoint for which to get or manage permissions.` + + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + + cmd.Args = func(cmd *cobra.Command, args []string) error { + check := root.ExactArgs(1) + return check(cmd, args) + } + + cmd.PreRunE = root.MustWorkspaceClient + cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { + ctx := cmd.Context() + w := cmdctx.WorkspaceClient(ctx) + + if cmd.Flags().Changed("json") { + diags := updatePermissionsJson.Unmarshal(&updatePermissionsReq) + if diags.HasError() { + return diags.Error() + } + if len(diags) > 0 { + err := cmdio.RenderDiagnostics(ctx, diags) + if err != nil { + return err + } + } + } + updatePermissionsReq.EndpointId = args[0] + + response, err := w.VectorSearchEndpoints.UpdatePermissions(ctx, updatePermissionsReq) + if err != nil { + return err + } + + return cmdio.Render(ctx, response) + } + + // Disable completions since they are not applicable. + // Can be overridden by manual implementation in `override.go`. + cmd.ValidArgsFunction = cobra.NoFileCompletions + + // Apply optional overrides to this command. + for _, fn := range updatePermissionsOverrides { + fn(cmd, &updatePermissionsReq) + } + + return cmd +} + // end service VectorSearchEndpoints diff --git a/cmd/workspace/vector-search-indexes/vector-search-indexes.go b/cmd/workspace/vector-search-indexes/vector-search-indexes.go index 60802ee9f11..87dc851c222 100755 --- a/cmd/workspace/vector-search-indexes/vector-search-indexes.go +++ b/cmd/workspace/vector-search-indexes/vector-search-indexes.go @@ -34,6 +34,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreateIndex()) cmd.AddCommand(newDeleteDataVectorIndex()) @@ -89,6 +93,8 @@ func newCreateIndex() *cobra.Command { Supported values: [DELTA_SYNC, DIRECT_ACCESS]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -184,6 +190,8 @@ func newDeleteDataVectorIndex() *cobra.Command { Vector Access Index.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -253,6 +261,8 @@ func newDeleteIndex() *cobra.Command { INDEX_NAME: Name of the index` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -309,6 +319,8 @@ func newGetIndex() *cobra.Command { INDEX_NAME: Name of the index` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -377,6 +389,8 @@ func newListIndexes() *cobra.Command { ENDPOINT_NAME: Name of the endpoint` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -449,6 +463,8 @@ func newQueryIndex() *cobra.Command { INDEX_NAME: Name of the vector index to query.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -527,6 +543,8 @@ func newQueryNextPage() *cobra.Command { INDEX_NAME: Name of the vector index to query.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -603,6 +621,8 @@ func newScanIndex() *cobra.Command { INDEX_NAME: Name of the vector index to scan.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -672,6 +692,8 @@ func newSyncIndex() *cobra.Command { INDEX_NAME: Name of the vector index to synchronize. Must be a Delta Sync Index.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -733,6 +755,8 @@ func newUpsertDataVectorIndex() *cobra.Command { INPUTS_JSON: JSON string representing the data to be upserted.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/volumes/volumes.go b/cmd/workspace/volumes/volumes.go index 994c61656f4..29750eb3e3b 100755 --- a/cmd/workspace/volumes/volumes.go +++ b/cmd/workspace/volumes/volumes.go @@ -33,6 +33,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newDelete()) @@ -104,6 +108,8 @@ func newCreate() *cobra.Command { Supported values: [EXTERNAL, MANAGED]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -199,6 +205,8 @@ func newDelete() *cobra.Command { NAME: The three-level (fully qualified) name of the volume` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -297,6 +305,8 @@ func newList() *cobra.Command { SCHEMA_NAME: The identifier of the schema` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -365,6 +375,8 @@ func newRead() *cobra.Command { NAME: The three-level (fully qualified) name of the volume` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -448,6 +460,8 @@ func newUpdate() *cobra.Command { NAME: The three-level (fully qualified) name of the volume` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/warehouses/warehouses.go b/cmd/workspace/warehouses/warehouses.go index ff7160ec8c5..a98c00325f1 100755 --- a/cmd/workspace/warehouses/warehouses.go +++ b/cmd/workspace/warehouses/warehouses.go @@ -31,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newCreate()) cmd.AddCommand(newCreateDefaultWarehouseOverride()) @@ -103,6 +107,8 @@ func newCreate() *cobra.Command { Creates a new SQL warehouse.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -187,8 +193,10 @@ func newCreateDefaultWarehouseOverride() *cobra.Command { cmd.Flags().StringVar(&createDefaultWarehouseOverrideReq.DefaultWarehouseOverride.WarehouseId, "warehouse-id", createDefaultWarehouseOverrideReq.DefaultWarehouseOverride.WarehouseId, `The specific warehouse ID when type is CUSTOM.`) cmd.Use = "create-default-warehouse-override DEFAULT_WAREHOUSE_OVERRIDE_ID TYPE" - cmd.Short = `Create default warehouse override.` - cmd.Long = `Create default warehouse override. + cmd.Short = `*Beta* Create default warehouse override.` + cmd.Long = `This command is in Beta and may change without notice. + +Create default warehouse override. Creates a new default warehouse override for a user. Users can create their own override. Admins can create overrides for any user. @@ -201,6 +209,8 @@ func newCreateDefaultWarehouseOverride() *cobra.Command { Supported values: [CUSTOM, LAST_SELECTED]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -284,6 +294,8 @@ func newDelete() *cobra.Command { ID: Required. Id of the SQL warehouse.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -343,8 +355,10 @@ func newDeleteDefaultWarehouseOverride() *cobra.Command { var deleteDefaultWarehouseOverrideReq sql.DeleteDefaultWarehouseOverrideRequest cmd.Use = "delete-default-warehouse-override NAME" - cmd.Short = `Delete default warehouse override.` - cmd.Long = `Delete default warehouse override. + cmd.Short = `*Beta* Delete default warehouse override.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete default warehouse override. Deletes the default warehouse override for a user. Users can delete their own override. Admins can delete overrides for any user. After deletion, the @@ -357,6 +371,8 @@ func newDeleteDefaultWarehouseOverride() *cobra.Command { string "me" for the current user.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -448,6 +464,8 @@ func newEdit() *cobra.Command { ID: Required. Id of the warehouse to configure.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -547,6 +565,8 @@ func newGet() *cobra.Command { ID: Required. Id of the SQL warehouse.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -607,8 +627,10 @@ func newGetDefaultWarehouseOverride() *cobra.Command { var getDefaultWarehouseOverrideReq sql.GetDefaultWarehouseOverrideRequest cmd.Use = "get-default-warehouse-override NAME" - cmd.Short = `Get default warehouse override.` - cmd.Long = `Get default warehouse override. + cmd.Short = `*Beta* Get default warehouse override.` + cmd.Long = `This command is in Beta and may change without notice. + +Get default warehouse override. Returns the default warehouse override for a user. Users can fetch their own override. Admins can fetch overrides for any user. If no override exists, the @@ -621,6 +643,8 @@ func newGetDefaultWarehouseOverride() *cobra.Command { string "me" for the current user.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -690,6 +714,8 @@ func newGetPermissionLevels() *cobra.Command { WAREHOUSE_ID: The SQL warehouse for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -760,6 +786,8 @@ func newGetPermissions() *cobra.Command { WAREHOUSE_ID: The SQL warehouse for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -824,6 +852,8 @@ func newGetWorkspaceWarehouseConfig() *cobra.Command { a workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -884,6 +914,8 @@ func newList() *cobra.Command { Lists all SQL warehouses that a user has access to.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -946,13 +978,17 @@ func newListDefaultWarehouseOverrides() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-default-warehouse-overrides" - cmd.Short = `List default warehouse overrides.` - cmd.Long = `List default warehouse overrides. + cmd.Short = `*Beta* List default warehouse overrides.` + cmd.Long = `This command is in Beta and may change without notice. + +List default warehouse overrides. Lists all default warehouse overrides in the workspace. Only workspace administrators can list all overrides.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1018,6 +1054,8 @@ func newSetPermissions() *cobra.Command { WAREHOUSE_ID: The SQL warehouse for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1111,6 +1149,8 @@ func newSetWorkspaceWarehouseConfig() *cobra.Command { a workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -1184,6 +1224,8 @@ func newStart() *cobra.Command { ID: Required. Id of the SQL warehouse.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1277,6 +1319,8 @@ func newStop() *cobra.Command { ID: Required. Id of the SQL warehouse.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -1363,8 +1407,10 @@ func newUpdateDefaultWarehouseOverride() *cobra.Command { cmd.Flags().StringVar(&updateDefaultWarehouseOverrideReq.DefaultWarehouseOverride.WarehouseId, "warehouse-id", updateDefaultWarehouseOverrideReq.DefaultWarehouseOverride.WarehouseId, `The specific warehouse ID when type is CUSTOM.`) cmd.Use = "update-default-warehouse-override NAME UPDATE_MASK TYPE" - cmd.Short = `Update default warehouse override.` - cmd.Long = `Update default warehouse override. + cmd.Short = `*Beta* Update default warehouse override.` + cmd.Long = `This command is in Beta and may change without notice. + +Update default warehouse override. Updates an existing default warehouse override for a user. Users can update their own override. Admins can update overrides for any user. @@ -1379,6 +1425,8 @@ func newUpdateDefaultWarehouseOverride() *cobra.Command { Supported values: [CUSTOM, LAST_SELECTED]` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -1472,6 +1520,8 @@ func newUpdatePermissions() *cobra.Command { WAREHOUSE_ID: The SQL warehouse for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/workspace-bindings/workspace-bindings.go b/cmd/workspace/workspace-bindings/workspace-bindings.go index abb927ce0fe..2b26185465a 100755 --- a/cmd/workspace/workspace-bindings/workspace-bindings.go +++ b/cmd/workspace/workspace-bindings/workspace-bindings.go @@ -44,6 +44,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newGet()) cmd.AddCommand(newGetBindings()) @@ -83,6 +87,8 @@ func newGet() *cobra.Command { NAME: The name of the catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -164,6 +170,8 @@ func newGetBindings() *cobra.Command { SECURABLE_NAME: The name of the securable.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -232,6 +240,8 @@ func newUpdate() *cobra.Command { NAME: The name of the catalog.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -310,6 +320,8 @@ func newUpdateBindings() *cobra.Command { SECURABLE_NAME: The name of the securable.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/cmd/workspace/workspace-conf/workspace-conf.go b/cmd/workspace/workspace-conf/workspace-conf.go index 9fc4e2b750a..16b3fd44a03 100755 --- a/cmd/workspace/workspace-conf/workspace-conf.go +++ b/cmd/workspace/workspace-conf/workspace-conf.go @@ -26,6 +26,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newGetStatus()) cmd.AddCommand(newSetStatus()) @@ -59,6 +63,8 @@ func newGetStatus() *cobra.Command { Gets the configuration status for a workspace.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -117,6 +123,8 @@ func newSetStatus() *cobra.Command { it.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { diff --git a/cmd/workspace/workspace-entity-tag-assignments/workspace-entity-tag-assignments.go b/cmd/workspace/workspace-entity-tag-assignments/workspace-entity-tag-assignments.go index c0154deaa9e..89e6ff34c58 100755 --- a/cmd/workspace/workspace-entity-tag-assignments/workspace-entity-tag-assignments.go +++ b/cmd/workspace/workspace-entity-tag-assignments/workspace-entity-tag-assignments.go @@ -19,13 +19,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "workspace-entity-tag-assignments", - Short: `Manage tag assignments on workspace-scoped objects.`, - Long: `Manage tag assignments on workspace-scoped objects.`, + Use: "workspace-entity-tag-assignments", + Short: `*Beta* Manage tag assignments on workspace-scoped objects.`, + Long: `This command is in Beta and may change without notice. + +Manage tag assignments on workspace-scoped objects.`, GroupID: "tags", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + // Add methods cmd.AddCommand(newCreateTagAssignment()) cmd.AddCommand(newDeleteTagAssignment()) @@ -62,8 +68,10 @@ func newCreateTagAssignment() *cobra.Command { cmd.Flags().StringVar(&createTagAssignmentReq.TagAssignment.TagValue, "tag-value", createTagAssignmentReq.TagAssignment.TagValue, `The value of the tag.`) cmd.Use = "create-tag-assignment ENTITY_TYPE ENTITY_ID TAG_KEY" - cmd.Short = `Create a tag assignment for an entity.` - cmd.Long = `Create a tag assignment for an entity. + cmd.Short = `*Beta* Create a tag assignment for an entity.` + cmd.Long = `This command is in Beta and may change without notice. + +Create a tag assignment for an entity. Create a tag assignment @@ -76,6 +84,8 @@ func newCreateTagAssignment() *cobra.Command { are not allowed` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -151,8 +161,10 @@ func newDeleteTagAssignment() *cobra.Command { var deleteTagAssignmentReq tags.DeleteTagAssignmentRequest cmd.Use = "delete-tag-assignment ENTITY_TYPE ENTITY_ID TAG_KEY" - cmd.Short = `Delete a tag assignment for an entity.` - cmd.Long = `Delete a tag assignment for an entity. + cmd.Short = `*Beta* Delete a tag assignment for an entity.` + cmd.Long = `This command is in Beta and may change without notice. + +Delete a tag assignment for an entity. Delete a tag assignment @@ -165,6 +177,8 @@ func newDeleteTagAssignment() *cobra.Command { are not allowed` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -214,8 +228,10 @@ func newGetTagAssignment() *cobra.Command { var getTagAssignmentReq tags.GetTagAssignmentRequest cmd.Use = "get-tag-assignment ENTITY_TYPE ENTITY_ID TAG_KEY" - cmd.Short = `Get a tag assignment for an entity.` - cmd.Long = `Get a tag assignment for an entity. + cmd.Short = `*Beta* Get a tag assignment for an entity.` + cmd.Long = `This command is in Beta and may change without notice. + +Get a tag assignment for an entity. Get a tag assignment @@ -228,6 +244,8 @@ func newGetTagAssignment() *cobra.Command { are not allowed` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(3) @@ -291,8 +309,10 @@ func newListTagAssignments() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-tag-assignments ENTITY_TYPE ENTITY_ID" - cmd.Short = `List tag assignments for an entity.` - cmd.Long = `List tag assignments for an entity. + cmd.Short = `*Beta* List tag assignments for an entity.` + cmd.Long = `This command is in Beta and may change without notice. + +List tag assignments for an entity. List the tag assignments for an entity @@ -303,6 +323,8 @@ func newListTagAssignments() *cobra.Command { entity_id is the app name` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -361,8 +383,10 @@ func newUpdateTagAssignment() *cobra.Command { cmd.Flags().StringVar(&updateTagAssignmentReq.TagAssignment.TagValue, "tag-value", updateTagAssignmentReq.TagAssignment.TagValue, `The value of the tag.`) cmd.Use = "update-tag-assignment ENTITY_TYPE ENTITY_ID TAG_KEY UPDATE_MASK" - cmd.Short = `Update a tag assignment for an entity.` - cmd.Long = `Update a tag assignment for an entity. + cmd.Short = `*Beta* Update a tag assignment for an entity.` + cmd.Long = `This command is in Beta and may change without notice. + +Update a tag assignment for an entity. Update a tag assignment @@ -386,6 +410,8 @@ func newUpdateTagAssignment() *cobra.Command { future.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(4) diff --git a/cmd/workspace/workspace-iam-v2/workspace-iam-v2.go b/cmd/workspace/workspace-iam-v2/workspace-iam-v2.go index 2596b765cbc..48402a61c70 100755 --- a/cmd/workspace/workspace-iam-v2/workspace-iam-v2.go +++ b/cmd/workspace/workspace-iam-v2/workspace-iam-v2.go @@ -20,13 +20,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ Use: "workspace-iam-v2", - Short: `These APIs are used to manage identities and the workspace access of these identities in .`, - Long: `These APIs are used to manage identities and the workspace access of these + Short: `*Beta* These APIs are used to manage identities and the workspace access of these identities in .`, + Long: `This command is in Beta and may change without notice. + +These APIs are used to manage identities and the workspace access of these identities in .`, GroupID: "iam", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" + // Add methods cmd.AddCommand(newGetWorkspaceAccessDetailLocal()) cmd.AddCommand(newResolveGroupProxy()) @@ -58,8 +64,10 @@ func newGetWorkspaceAccessDetailLocal() *cobra.Command { cmd.Flags().Var(&getWorkspaceAccessDetailLocalReq.View, "view", `Controls what fields are returned. Supported values: [BASIC, FULL]`) cmd.Use = "get-workspace-access-detail-local PRINCIPAL_ID" - cmd.Short = `Get workspace access details for a principal.` - cmd.Long = `Get workspace access details for a principal. + cmd.Short = `*Beta* Get workspace access details for a principal.` + cmd.Long = `This command is in Beta and may change without notice. + +Get workspace access details for a principal. Returns the access details for a principal in the current workspace. Allows for checking access details for any provisioned principal (user, service @@ -73,6 +81,8 @@ func newGetWorkspaceAccessDetailLocal() *cobra.Command { access details are being requested.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -127,8 +137,10 @@ func newResolveGroupProxy() *cobra.Command { cmd.Flags().Var(&resolveGroupProxyJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "resolve-group-proxy EXTERNAL_ID" - cmd.Short = `Resolve an external group in the Databricks account.` - cmd.Long = `Resolve an external group in the Databricks account. + cmd.Short = `*Beta* Resolve an external group in the Databricks account.` + cmd.Long = `This command is in Beta and may change without notice. + +Resolve an external group in the Databricks account. Resolves a group with the given external ID from the customer's IdP. If the group does not exist, it will be created in the account. If the customer is @@ -139,6 +151,8 @@ func newResolveGroupProxy() *cobra.Command { EXTERNAL_ID: Required. The external ID of the group in the customer's IdP.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -211,8 +225,10 @@ func newResolveServicePrincipalProxy() *cobra.Command { cmd.Flags().Var(&resolveServicePrincipalProxyJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "resolve-service-principal-proxy EXTERNAL_ID" - cmd.Short = `Resolve an external service principal in the Databricks account.` - cmd.Long = `Resolve an external service principal in the Databricks account. + cmd.Short = `*Beta* Resolve an external service principal in the Databricks account.` + cmd.Long = `This command is in Beta and may change without notice. + +Resolve an external service principal in the Databricks account. Resolves an SP with the given external ID from the customer's IdP. If the SP does not exist, it will be created. If the customer is not onboarded onto @@ -222,6 +238,8 @@ func newResolveServicePrincipalProxy() *cobra.Command { EXTERNAL_ID: Required. The external ID of the service principal in the customer's IdP.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -294,8 +312,10 @@ func newResolveUserProxy() *cobra.Command { cmd.Flags().Var(&resolveUserProxyJson, "json", `either inline JSON string or @path/to/file.json with request body`) cmd.Use = "resolve-user-proxy EXTERNAL_ID" - cmd.Short = `Resolve an external user in the Databricks account.` - cmd.Long = `Resolve an external user in the Databricks account. + cmd.Short = `*Beta* Resolve an external user in the Databricks account.` + cmd.Long = `This command is in Beta and may change without notice. + +Resolve an external user in the Databricks account. Resolves a user with the given external ID from the customer's IdP. If the user does not exist, it will be created. If the customer is not onboarded onto @@ -305,6 +325,8 @@ func newResolveUserProxy() *cobra.Command { EXTERNAL_ID: Required. The external ID of the user in the customer's IdP.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_BETA" + cmd.Annotations["launch_stage_display"] = "Beta" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { diff --git a/cmd/workspace/workspace-settings-v2/workspace-settings-v2.go b/cmd/workspace/workspace-settings-v2/workspace-settings-v2.go index d4e3d213b06..114b97882e0 100755 --- a/cmd/workspace/workspace-settings-v2/workspace-settings-v2.go +++ b/cmd/workspace/workspace-settings-v2/workspace-settings-v2.go @@ -19,13 +19,19 @@ var cmdOverrides []func(*cobra.Command) func New() *cobra.Command { cmd := &cobra.Command{ - Use: "workspace-settings-v2", - Short: `APIs to manage workspace level settings.`, - Long: `APIs to manage workspace level settings`, + Use: "workspace-settings-v2", + Short: `*Public Preview* APIs to manage workspace level settings.`, + Long: `This command is in Public Preview and may change without notice. + +APIs to manage workspace level settings`, GroupID: "settings", RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" + // Add methods cmd.AddCommand(newGetPublicWorkspaceSetting()) cmd.AddCommand(newListWorkspaceSettingsMetadata()) @@ -54,8 +60,10 @@ func newGetPublicWorkspaceSetting() *cobra.Command { var getPublicWorkspaceSettingReq settingsv2.GetPublicWorkspaceSettingRequest cmd.Use = "get-public-workspace-setting NAME" - cmd.Short = `Get a workspace setting.` - cmd.Long = `Get a workspace setting. + cmd.Short = `*Public Preview* Get a workspace setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Get a workspace setting. Get a setting value at workspace level. See :method:settingsv2/listworkspacesettingsmetadata for list of setting available @@ -65,6 +73,8 @@ func newGetPublicWorkspaceSetting() *cobra.Command { NAME: Name of the setting` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -126,14 +136,18 @@ func newListWorkspaceSettingsMetadata() *cobra.Command { cmd.Flags().Lookup("page-token").Hidden = true cmd.Use = "list-workspace-settings-metadata" - cmd.Short = `List valid setting keys and their metadata.` - cmd.Long = `List valid setting keys and their metadata. + cmd.Short = `*Public Preview* List valid setting keys and their metadata.` + cmd.Long = `This command is in Public Preview and may change without notice. + +List valid setting keys and their metadata. List valid setting keys and metadata. These settings are available to be referenced via GET :method:settingsv2/getpublicworkspacesetting and PATCH :method:settingsv2/patchpublicworkspacesetting APIs` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(0) @@ -205,8 +219,10 @@ func newPatchPublicWorkspaceSetting() *cobra.Command { // TODO: complex arg: string_val cmd.Use = "patch-public-workspace-setting NAME" - cmd.Short = `Update a workspace setting.` - cmd.Long = `Update a workspace setting. + cmd.Short = `*Public Preview* Update a workspace setting.` + cmd.Long = `This command is in Public Preview and may change without notice. + +Update a workspace setting. Patch a setting value at workspace level. See :method:settingsv2/listworkspacesettingsmetadata for list of setting available @@ -220,6 +236,8 @@ func newPatchPublicWorkspaceSetting() *cobra.Command { NAME: Name of the setting` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "PUBLIC_PREVIEW" + cmd.Annotations["launch_stage_display"] = "Public Preview" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) diff --git a/cmd/workspace/workspace/workspace.go b/cmd/workspace/workspace/workspace.go index b1ad85707da..af3554bc7ec 100755 --- a/cmd/workspace/workspace/workspace.go +++ b/cmd/workspace/workspace/workspace.go @@ -31,6 +31,10 @@ func New() *cobra.Command { RunE: root.ReportUnknownSubcommand, } + cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" + // Add methods cmd.AddCommand(newDelete()) cmd.AddCommand(newExport()) @@ -74,10 +78,9 @@ func newDelete() *cobra.Command { cmd.Short = `Delete a workspace object.` cmd.Long = `Delete a workspace object. - Deprecated: use WorkspaceHierarchyService.DeleteTreeNode instead. Deletes an - object or a directory (and optionally recursively deletes all objects in the - directory). * If path does not exist, this call returns an error - RESOURCE_DOES_NOT_EXIST. * If path is a non-empty directory and + Deletes an object or a directory (and optionally recursively deletes all + objects in the directory). * If path does not exist, this call returns an + error RESOURCE_DOES_NOT_EXIST. * If path is a non-empty directory and recursive is set to false, this call returns an error DIRECTORY_NOT_EMPTY. @@ -88,6 +91,8 @@ func newDelete() *cobra.Command { PATH: The absolute path of the notebook or directory.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -199,6 +204,8 @@ func newExport() *cobra.Command { only supported for the DBC, SOURCE, and AUTO format.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.PreRunE = root.MustWorkspaceClient cmd.RunE = func(cmd *cobra.Command, args []string) (err error) { @@ -271,6 +278,8 @@ func newGetPermissionLevels() *cobra.Command { WORKSPACE_OBJECT_ID: The workspace object for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -333,6 +342,8 @@ func newGetPermissions() *cobra.Command { WORKSPACE_OBJECT_ID: The workspace object for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -385,14 +396,15 @@ func newGetStatus() *cobra.Command { cmd.Short = `Get status.` cmd.Long = `Get status. - Deprecated: use WorkspaceHierarchyService.GetTreeNode instead. Gets the status - of an object or a directory. If path does not exist, this call returns an - error RESOURCE_DOES_NOT_EXIST. + Gets the status of an object or a directory. If path does not exist, this + call returns an error RESOURCE_DOES_NOT_EXIST. Arguments: PATH: The absolute path of the notebook or directory.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -472,6 +484,8 @@ func newImport() *cobra.Command { only supported for the DBC and SOURCE formats.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -554,14 +568,16 @@ func newList() *cobra.Command { cmd.Short = `List contents.` cmd.Long = `List contents. - Deprecated: use WorkspaceHierarchyService.ListTreeNodes instead. Lists the - contents of a directory, or the object if it is not a directory. If the input - path does not exist, this call returns an error RESOURCE_DOES_NOT_EXIST. + Lists the contents of a directory, or the object if it is not a directory. If + the input path does not exist, this call returns an error + RESOURCE_DOES_NOT_EXIST. Arguments: PATH: The absolute path of the notebook or directory.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(1) @@ -619,10 +635,9 @@ func newMkdirs() *cobra.Command { cmd.Short = `Create a directory.` cmd.Long = `Create a directory. - Deprecated: use WorkspaceHierarchyService.CreateTreeNode instead. Creates the - specified directory (and necessary parent directories if they do not exist). - If there is an object (not a directory) at any prefix of the input path, this - call returns an error RESOURCE_ALREADY_EXISTS. + Creates the specified directory (and necessary parent directories if they do + not exist). If there is an object (not a directory) at any prefix of the input + path, this call returns an error RESOURCE_ALREADY_EXISTS. Note that if this operation fails it may have succeeded in creating some of the necessary parent directories. @@ -633,6 +648,8 @@ func newMkdirs() *cobra.Command { command will do nothing and succeed.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { if cmd.Flags().Changed("json") { @@ -735,6 +752,8 @@ func newSetPermissions() *cobra.Command { WORKSPACE_OBJECT_ID: The workspace object for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) @@ -814,6 +833,8 @@ func newUpdatePermissions() *cobra.Command { WORKSPACE_OBJECT_ID: The workspace object for which to get or manage permissions.` cmd.Annotations = make(map[string]string) + cmd.Annotations["launch_stage"] = "GA" + cmd.Annotations["launch_stage_display"] = "GA" cmd.Args = func(cmd *cobra.Command, args []string) error { check := root.ExactArgs(2) diff --git a/go.mod b/go.mod index 912225c80ac..c1958806fdd 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/charmbracelet/bubbletea v1.3.10 // MIT github.com/charmbracelet/huh v1.0.0 // MIT github.com/charmbracelet/lipgloss v1.1.0 // MIT - github.com/databricks/databricks-sdk-go v0.128.0 // Apache-2.0 + github.com/databricks/databricks-sdk-go v0.132.0 // Apache-2.0 github.com/google/jsonschema-go v0.4.3 // MIT github.com/google/uuid v1.6.0 // BSD-3-Clause github.com/gorilla/websocket v1.5.3 // BSD-2-Clause diff --git a/go.sum b/go.sum index 73c3398ba45..dee029a2eb9 100644 --- a/go.sum +++ b/go.sum @@ -77,8 +77,8 @@ github.com/cyphar/filepath-securejoin v0.4.1 h1:JyxxyPEaktOD+GAnqIqTf9A8tHyAG22r github.com/cyphar/filepath-securejoin v0.4.1/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI= github.com/danieljoos/wincred v1.2.3 h1:v7dZC2x32Ut3nEfRH+vhoZGvN72+dQ/snVXo/vMFLdQ= github.com/danieljoos/wincred v1.2.3/go.mod h1:6qqX0WNrS4RzPZ1tnroDzq9kY3fu1KwE7MRLQK4X0bs= -github.com/databricks/databricks-sdk-go v0.128.0 h1:4aGI3KkSZHDkxNIgwQL6dn6q6zZKcgyckidcQZNDGGo= -github.com/databricks/databricks-sdk-go v0.128.0/go.mod h1:C5LNgGe6hGuRrTwoxFmuup3XtQQEaqtq0e+K8IFDIS4= +github.com/databricks/databricks-sdk-go v0.132.0 h1:NuwAMg7aSlMinINIv4iJDDGge426QptIOi2N6RC/k3k= +github.com/databricks/databricks-sdk-go v0.132.0/go.mod h1:C5LNgGe6hGuRrTwoxFmuup3XtQQEaqtq0e+K8IFDIS4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/internal/genkit/tagging.py b/internal/genkit/tagging.py index 206ff6c7447..021e730be07 100644 --- a/internal/genkit/tagging.py +++ b/internal/genkit/tagging.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 - # /// script # dependencies = ["PyGithub>=2,<3", "pyjwt<2.12.0", "charset-normalizer<3.4.6"] # /// @@ -7,8 +6,8 @@ import os import re import argparse -from typing import Optional, List, Callable -from dataclasses import dataclass +from typing import Optional, List, Callable, Dict +from dataclasses import dataclass, replace import subprocess import time import json @@ -19,6 +18,7 @@ CHANGELOG_FILE_NAME = "CHANGELOG.md" PACKAGE_FILE_NAME = ".package.json" CODEGEN_FILE_NAME = ".codegen.json" +CREATED_TAGS_FILE_NAME = "created_tags.json" """ This script tags the release of the SDKs using a combination of the GitHub API and Git commands. It reads the local repository to determine necessary changes, updates changelogs, and creates tags. @@ -29,6 +29,122 @@ """ +@dataclass(frozen=True) +class Version: + """ + A semver 2.0.0-compliant version (https://semver.org). + + Mirrors the API of the `semver` PyPI package so this implementation can be + swapped for that library if it is ever added to the wheelhouse. Supports + parsing, stringification, and the two bumps we need: minor (for stable + releases) and prerelease (for release trains). + """ + + # Permissive pattern for locating a semver version string inside larger + # text (e.g. a changelog header). Callers use it in f-strings; strict + # validation happens via Version.parse. + PATTERN = r"\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?" + + # Strict anchored regex per https://semver.org. Rejects leading zeros in + # numeric identifiers and invalid pre-release/build identifier charsets. + _PARSE_REGEX = re.compile( + r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)" + r"(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)" + r"(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?" + r"(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$" + ) + + major: int + minor: int + patch: int + prerelease: str = "" + build: str = "" + + @classmethod + def parse(cls, text: str) -> "Version": + """Parse a semver string, raising ValueError on malformed input.""" + match = cls._PARSE_REGEX.match(text) + if not match: + raise ValueError(f"Invalid semver version: {text!r}") + major, minor, patch, prerelease, build = match.groups() + return cls( + major=int(major), + minor=int(minor), + patch=int(patch), + prerelease=prerelease or "", + build=build or "", + ) + + def __str__(self) -> str: + result = f"{self.major}.{self.minor}.{self.patch}" + if self.prerelease: + result += f"-{self.prerelease}" + if self.build: + result += f"+{self.build}" + return result + + def bump_minor(self) -> "Version": + """ + Bump the minor version and reset patch. + + Per semver item 9, a pre-release version has lower precedence than + the same MAJOR.MINOR.PATCH, so bumping to a new minor drops any + pre-release and build metadata. + """ + return Version(major=self.major, minor=self.minor + 1, patch=0) + + def bump_prerelease(self) -> "Version": + """ + Increment the rightmost numeric identifier in the pre-release. + + Matches the npm `prerelease` bump semantics: + 0.0.0-alpha.1 -> 0.0.0-alpha.2 + 0.0.0-alpha -> 0.0.0-alpha.1 + 0.0.0-rc.1.2 -> 0.0.0-rc.1.3 + + Raises ValueError if the version has no pre-release to bump. + Build metadata is dropped since it does not affect precedence. + """ + if not self.prerelease: + raise ValueError(f"Cannot bump prerelease of {self}: no pre-release component") + parts = self.prerelease.split(".") + for i in range(len(parts) - 1, -1, -1): + if parts[i].isdigit(): + parts[i] = str(int(parts[i]) + 1) + return replace(self, prerelease=".".join(parts), build="") + # No numeric identifier exists; append ".1" to start a counter. + return replace(self, prerelease=f"{self.prerelease}.1", build="") + + def next_release_version(self) -> "Version": + """ + Default next version for the changelog after this one is released. + + If on a pre-release track, stay on it by bumping the pre-release + identifier (npm convention). Otherwise, bump the minor version, + the script's historical default for stable releases. Teams can + override the default in the release PR. + """ + if self.prerelease: + return self.bump_prerelease() + return self.bump_minor() + + +def _read_local_head_sha() -> str: + """ + Returns the SHA of the local working tree's HEAD via ``git rev-parse``. + """ + return subprocess.check_output(["git", "rev-parse", "HEAD"], text=True).strip() + + +class MainAdvancedError(Exception): + """ + Raised when ``origin/main`` has advanced since the workflow's + checkout — i.e., another commit landed during this run. The local + working tree is now stale, so any commit produced from it would + silently revert whatever the concurrent push added. + """ + + # GitHub does not support signing commits for GitHub Apps directly. # This class replaces usages for git commands such as "git add", "git commit", and "git push". @dataclass @@ -37,8 +153,12 @@ def __init__(self, repo: Repository): self.repo = repo self.changed_files: list[InputGitTreeElement] = [] self.ref = "heads/main" - head_ref = self.repo.get_git_ref(self.ref) - self.sha = head_ref.object.sha + # Anchor ``self.sha`` to the **local checkout** rather than a + # live API call. ``actions/checkout`` populates the working tree + # at this SHA, and every subsequent file read in this run is + # against that tree; the API HEAD is only relevant when we go + # to push. + self.sha = _read_local_head_sha() # Replaces "git add file" def add_file(self, loc: str, content: str): @@ -51,12 +171,19 @@ def add_file(self, loc: str, content: str): # Replaces "git commit && git push" def commit_and_push(self, message: str): head_ref = self.repo.get_git_ref(self.ref) + if head_ref.object.sha != self.sha: + raise MainAdvancedError( + f"origin/main advanced from {self.sha} to {head_ref.object.sha} " + f"during this run. Local working tree is stale; aborting before " + f"the commit would silently revert the new content. Re-run the " + f"workflow." + ) base_tree = self.repo.get_git_tree(sha=head_ref.object.sha) new_tree = self.repo.create_git_tree(self.changed_files, base_tree) parent_commit = self.repo.get_git_commit(head_ref.object.sha) new_commit = self.repo.create_git_commit(message=message, tree=new_tree, parents=[parent_commit]) - # Update branch reference + # Update branch reference. head_ref.edit(new_commit.sha) self.sha = new_commit.sha @@ -65,8 +192,7 @@ def reset(self, sha: Optional[str] = None): if sha: self.sha = sha else: - head_ref = self.repo.get_git_ref(self.ref) - self.sha = head_ref.object.sha + self.sha = _read_local_head_sha() def tag(self, tag_name: str, tag_message: str): # Create a tag pointing to the new commit @@ -154,35 +280,103 @@ def get_package_name(package_path: str) -> str: return "" -def update_version_references(tag_info: TagInfo) -> None: +def stage_version_updates(tag_infos: List[TagInfo], packages: List[Package]) -> None: """ - Updates the version of the package in code references. - Code references are defined in .package.json files. + Stages all version-related edits for the release in a single pass over + every package the workspace already opts in via ``.package.json``. """ - # Load version patterns from '.codegen.json' file at the top level of the repository + # Load patterns from '.codegen.json' at the top level of the repository. package_file_path = os.path.join(os.getcwd(), CODEGEN_FILE_NAME) with open(package_file_path, "r") as file: - package_file = json.load(file) + codegen = json.load(file) - version = package_file.get("version") - if not version: - print("`version` not found in .codegen.json. Nothing to update.") - return - - # Update the versions - for filename, pattern in version.items(): - loc = os.path.join(os.getcwd(), tag_info.package.path, filename) - previous_version = re.sub(r"\$VERSION", r"\\d+\\.\\d+\\.\\d+", pattern) - new_version = re.sub(r"\$VERSION", tag_info.version, pattern) - - with open(loc, "r") as file: - content = file.read() + version_patterns = codegen.get("version", {}) + dep_patterns = codegen.get("dependency_pattern", {}) + name_template = codegen.get("dependency_name_template", "") - # Replace the version in the file content - updated_content = re.sub(previous_version, new_version, content) + if not version_patterns and not dep_patterns: + print("Neither `version` nor `dependency_pattern` found in .codegen.json. Nothing to update.") + return - gh.add_file(loc, updated_content) + bumped_by_dir: Dict[str, TagInfo] = {info.package.path: info for info in tag_infos} + new_dep_versions = compute_dependency_rewrites(tag_infos, name_template) + + files = sorted(set(version_patterns.keys()) | set(dep_patterns.keys())) + + for pkg in packages: + for filename in files: + loc = os.path.join(os.getcwd(), pkg.path, filename) + + with open(loc, "r") as file: + content = file.read() + original = content + + # Own version (only when this package is being released and the + # file has a version pattern declared). + info = bumped_by_dir.get(pkg.path) + if info is not None and filename in version_patterns: + pattern = version_patterns[filename] + previous_version = pattern.replace("$VERSION", Version.PATTERN) + new_version = pattern.replace("$VERSION", info.version) + content = re.sub(previous_version, new_version, content) + + # Sibling dependency rewrites (only when the file has a + # dependency pattern and there is at least one bumped sibling). + if filename in dep_patterns and new_dep_versions: + content = rewrite_dependencies(content, dep_patterns[filename], new_dep_versions) + + if content != original: + gh.add_file(loc, content) + + +def compute_dependency_rewrites( + tag_infos: List[TagInfo], + name_template: str, +) -> Dict[str, str]: + """ + Returns a map of dependency-name to the new semver string for each + bumped package. + """ + if not name_template: + return {} + rewrites: Dict[str, str] = {} + for info in tag_infos: + # Skip legacy releases that don't have a per-package name; their + # tag_info has an empty package.name and they can't be referenced + # as a sibling dep anyway. + if not info.package.name: + continue + dep_name = name_template.replace("$PACKAGE", info.package.name) + rewrites[dep_name] = info.version + return rewrites + + +def rewrite_dependencies(content: str, pattern: str, new_versions: Dict[str, str]) -> str: + """ + Apply ``pattern`` (with ``$DEPENDENCY`` and ``$VERSION`` placeholders) to + rewrite every entry in ``content`` whose dependency name appears in + ``new_versions``. + """ + # Sentinel strings used to protect the placeholders through re.escape: + # we substitute them in, escape the whole template, then swap them out + # for the dep-name literal and Version.PATTERN. Control characters so + # they can't collide with anything in real .codegen.json patterns. + dep_sentinel = "\x01DEPENDENCY\x01" + ver_sentinel = "\x01VERSION\x01" + + for dep_name, new_value in new_versions.items(): + regex = pattern.replace("$DEPENDENCY", dep_sentinel).replace("$VERSION", ver_sentinel) + regex = re.escape(regex) + regex = regex.replace(re.escape(dep_sentinel), re.escape(dep_name)) + regex = regex.replace(re.escape(ver_sentinel), Version.PATTERN) + + # Build the literal replacement text by substituting the same + # placeholders directly. A lambda is used instead of a string to + # avoid re.sub interpreting \1, \g<...>, etc. inside the value. + replacement_text = pattern.replace("$DEPENDENCY", dep_name).replace("$VERSION", new_value) + content = re.sub(regex, lambda _m, text=replacement_text: text, content) + return content def clean_next_changelog(package_path: str) -> None: @@ -197,23 +391,21 @@ def clean_next_changelog(package_path: str) -> None: with open(file_path, "r") as file: content = file.read() - # Remove content between ### sections + # Remove content between ### sections. cleaned_content = re.sub(r"(### [^\n]+\n)(?:.*?\n?)*?(?=###|$)", r"\1", content) - # Ensure there is exactly one empty line before each section + # Ensure there is exactly one empty line before each section. cleaned_content = re.sub(r"(\n*)(###[^\n]+)", r"\n\n\2", cleaned_content) - # Find the version number - version_match = re.search(r"Release v(\d+)\.(\d+)\.(\d+)", cleaned_content) + # Find the version number and compute the default next release version. + # Teams can adjust the version in the PR if the default is not desired. + # For stable versions, bump minor (historical default since minor releases + # are more common than patch or major). For pre-release versions, stay on + # the same track by bumping the pre-release identifier (npm convention). + version_match = re.search(rf"Release v({Version.PATTERN})", cleaned_content) if not version_match: raise Exception("Version not found in the changelog") - major, minor, patch = map(int, version_match.groups()) - # Prepare next release version. - # When doing a PR, teams can adjust the version. - # By default, we increase a minor version, since minor versions releases - # are more common than patch or major version releases. - minor += 1 - patch = 0 - new_version = f"Release v{major}.{minor}.{patch}" - cleaned_content = cleaned_content.replace(version_match.group(0), new_version) + current = Version.parse(version_match.group(1)) + new_header = f"Release v{current.next_release_version()}" + cleaned_content = cleaned_content.replace(version_match.group(0), new_header) # Update file with cleaned content gh.add_file(file_path, cleaned_content) @@ -229,20 +421,26 @@ def get_previous_tag_info(package: Package) -> Optional[TagInfo]: with open(changelog_path, "r") as f: changelog = f.read() - # Extract the latest release section using regex - match = re.search(r"## (\[Release\] )?Release v[\d\.]+.*?(?=\n## (\[Release\] )?Release v|\Z)", changelog, re.S) + # Extract the latest release section using regex. + match = re.search( + rf"## (\[Release\] )?Release v{Version.PATTERN}.*?(?=\n## (\[Release\] )?Release v|\Z)", + changelog, + re.S, + ) # E.g., for new packages. if not match: return None latest_release = match.group(0) - version_match = re.search(r"## (\[Release\] )?Release v(\d+\.\d+\.\d+)", latest_release) + version_match = re.search(rf"## (\[Release\] )?Release v({Version.PATTERN})", latest_release) if not version_match: raise Exception("Version not found in the changelog") - return TagInfo(package=package, version=version_match.group(2), content=latest_release) + # Validate the extracted string is spec-compliant; fail loudly otherwise. + version = str(Version.parse(version_match.group(2))) + return TagInfo(package=package, version=version, content=latest_release) def get_next_tag_info(package: Package) -> Optional[TagInfo]: @@ -267,12 +465,14 @@ def get_next_tag_info(package: Package) -> Optional[TagInfo]: print("All sections are empty. No changes will be made to the changelog.") return None - version_match = re.search(r"## Release v(\d+\.\d+\.\d+)", next_changelog) + version_match = re.search(rf"## Release v({Version.PATTERN})", next_changelog) if not version_match: raise Exception("Version not found in the changelog") - return TagInfo(package=package, version=version_match.group(1), content=next_changelog) + # Validate the extracted string is spec-compliant; fail loudly otherwise. + version = str(Version.parse(version_match.group(1))) + return TagInfo(package=package, version=version, content=next_changelog) def write_changelog(tag_info: TagInfo) -> None: @@ -283,10 +483,12 @@ def write_changelog(tag_info: TagInfo) -> None: with open(changelog_path, "r") as f: changelog = f.read() - # Add current date to the release header + # Add current date to the release header. current_date = datetime.now(tz=timezone.utc).strftime("%Y-%m-%d") content_with_date = re.sub( - r"## Release v(\d+\.\d+\.\d+)", rf"## Release v\1 ({current_date})", tag_info.content.strip() + rf"## Release v({Version.PATTERN})", + rf"## Release v\1 ({current_date})", + tag_info.content.strip(), ) updated_changelog = re.sub(r"(# Version changelog\n\n)", f"\\1{content_with_date}\n\n\n", changelog) @@ -295,9 +497,8 @@ def write_changelog(tag_info: TagInfo) -> None: def process_package(package: Package) -> TagInfo: """ - Processes a package + Processes a package's changelog scaffolding for the release. """ - # Prepare tag_info from NEXT_CHANGELOG.md print(f"Processing package {package.name}") tag_info = get_next_tag_info(package) @@ -307,7 +508,6 @@ def process_package(package: Package) -> TagInfo: write_changelog(tag_info) clean_next_changelog(package.path) - update_version_references(tag_info) return tag_info @@ -351,6 +551,131 @@ def is_tag_applied(tag: TagInfo) -> bool: raise Exception(f"Git command failed: {e.stderr.strip() or e}") from e +def find_last_release_tag(package: Package) -> Optional[str]: + """ + Returns the most recent ``/v*`` tag in the repository, or + ``None`` if no such tag exists. Tags are sorted by semver ordering + (``--sort=-v:refname``) so pre-releases sort below their stable + counterparts. + + :raises Exception: If the git command fails. + """ + pattern = f"{package.name}/v*" if package.name else "v*" + try: + output = subprocess.check_output( + ["git", "tag", "--list", pattern, "--sort=-v:refname"], + stderr=subprocess.PIPE, + text=True, + ).strip() + except subprocess.CalledProcessError as e: + raise Exception(f"Git command failed: {e.stderr.strip() or e}") from e + if not output: + return None + return output.split("\n")[0].strip() + + +def has_commits_since_tag(tag: str, path: str) -> bool: + """ + Returns True iff at least one commit reachable from HEAD but not from + ``tag`` touches ``path``. Used to detect that a sibling dependency has + unreleased changes that would ship stale if we tagged a dependent + without re-tagging the dependency. + + :raises Exception: If the git command fails. + """ + args = ["git", "log", "--oneline", f"{tag}..HEAD", "--", path or "."] + try: + output = subprocess.check_output(args, stderr=subprocess.PIPE, text=True).strip() + except subprocess.CalledProcessError as e: + raise Exception(f"Git command failed: {e.stderr.strip() or e}") from e + return bool(output) + + +def check_dependency_freshness(tag_infos: List[TagInfo], all_packages: List[Package]) -> None: + """ + Hard-fails when a package being released depends on a sibling package + that has unreleased commits since its last tag. + + Why: dependency rewrites (``stage_version_updates``) only fire for + siblings that are *also* being released. Without this check, releasing + package_a alone — when package_b has commits since its last tag — + publishes ``package_a@new`` pinning the *old* package_b artifact, which + won't have the changes package_a's source depends on. The check is + commit-based (not changelog-based) so a missing ``NEXT_CHANGELOG.md`` + entry on package_b is still caught. + + No-op when ``.codegen.json`` declares no dependency pattern (legacy + SDKs without per-package wiring). + """ + if not tag_infos: + return + + package_file_path = os.path.join(os.getcwd(), CODEGEN_FILE_NAME) + with open(package_file_path, "r") as file: + codegen = json.load(file) + + name_template = codegen.get("dependency_name_template", "") + dep_patterns = codegen.get("dependency_pattern", {}) + if not name_template or not dep_patterns: + return + + releasing_paths = {info.package.path for info in tag_infos} + by_dep_name: Dict[str, Package] = {} + for pkg in all_packages: + if not pkg.name: + continue + by_dep_name[name_template.replace("$PACKAGE", pkg.name)] = pkg + + issues: List[str] = [] + for info in tag_infos: + for filename, pattern in dep_patterns.items(): + loc = os.path.join(os.getcwd(), info.package.path, filename) + if not os.path.exists(loc): + continue + with open(loc, "r") as f: + content = f.read() + + for dep_name, dep_pkg in by_dep_name.items(): + if dep_pkg.path == info.package.path: + continue + if dep_pkg.path in releasing_paths: + continue + + # Same regex construction used by ``rewrite_dependencies``, + # so "is this dep referenced?" matches "would the rewrite + # touch it?". Keeps the two in lockstep. + regex = ( + re.escape(pattern) + .replace(re.escape("$DEPENDENCY"), re.escape(dep_name)) + .replace(re.escape("$VERSION"), Version.PATTERN) + ) + if not re.search(regex, content): + continue + + last_tag = find_last_release_tag(dep_pkg) + if last_tag is None: + # No prior tag means the dep was never released; we + # can't reason about staleness. Surface it anyway so + # the human resolves it explicitly. + issues.append( + f"{info.package.name} depends on {dep_pkg.name}, " + f"which has never been released. Release " + f"{dep_pkg.name} first or include it in this run." + ) + continue + if has_commits_since_tag(last_tag, dep_pkg.path): + issues.append( + f"{info.package.name} depends on {dep_pkg.name}, " + f"which has commits since {last_tag} but is not " + f"being released. Either release {dep_pkg.name} " + f"as well, or hold this release until its changes " + f"are reverted." + ) + + if issues: + raise Exception("Dependency freshness check failed:\n - " + "\n - ".join(issues)) + + def find_last_tags() -> List[TagInfo]: """ Finds the last tags for each package. @@ -411,21 +736,18 @@ def reset_repository(hash: Optional[str] = None) -> None: :param hash: The commit hash to reset to. If None, it resets to HEAD. """ - # Fetch the latest changes from the remote repository + # Fetch the latest changes from the remote repository. subprocess.run(["git", "fetch"]) - # Determine the commit hash (default to origin/main if none is provided) + # Determine the commit hash (default to origin/main if none is provided). commit_hash = hash or "origin/main" - # Reset in memory changed files and the commit hash + # ``git reset --hard`` must land before ``gh.reset(None)``, since + # ``gh.reset(None)`` reads ``git rev-parse HEAD`` to anchor + # ``self.sha`` to the local working tree. + subprocess.run(["git", "reset", "--hard", commit_hash], check=True) gh.reset(hash) - # Construct the Git reset command - command = ["git", "reset", "--hard", commit_hash] - - # Execute the git reset command - subprocess.run(command, check=True) - def retry_function( func: Callable[[], List[TagInfo]], cleanup: Callable[[], None], max_attempts: int = 5, delay: int = 5 @@ -443,6 +765,12 @@ def retry_function( while attempts <= max_attempts: try: return func() # Call the function + except MainAdvancedError: + # Permanent failure: another commit landed on main during + # this run, so the local tree is stale. Retrying with the + # same stale tree would just hit the same mismatch — only + # a fresh workflow run against the new main can recover. + raise except Exception as e: attempts += 1 print(f"Attempt {attempts} failed: {e}") @@ -454,23 +782,66 @@ def retry_function( raise e # Re-raise the exception after max retries -def update_changelogs(packages: List[Package]) -> List[TagInfo]: +def update_changelogs(selected_packages: List[Package], all_packages: List[Package]) -> List[TagInfo]: """ Updates changelogs and pushes the commits. + + ``selected_packages`` are the packages whose ``NEXT_CHANGELOG.md`` is + consulted to decide what gets released this run. ``all_packages`` is + the full repo inventory used for cross-package dep rewrites. + + The freshness check is deliberately *not* called here. ``process`` + runs it before entering the retry loop so a freshness violation + fails fast — the check is deterministic against the same git state, + so wrapping it in retry would just delay the same failure five + times. """ - tag_infos = [info for info in (process_package(package) for package in packages) if info is not None] - # If any package was changed, push the changes. + tag_infos = [info for info in (process_package(package) for package in selected_packages) if info is not None] + # If any package was changed, stage version updates and push. if tag_infos: + stage_version_updates(tag_infos, all_packages) push_changes(tag_infos) return tag_infos +def preview_tag_infos(packages: List[Package]) -> List[TagInfo]: + """ + Read-only sibling of ``process_package``: returns the TagInfos that + would be released for ``packages`` without writing any changelog + edits. ``process`` calls this before the retry loop so the freshness + check has a snapshot to validate against. ``process_package`` will + re-derive the same TagInfos when ``update_changelogs`` runs; the + duplication is just a couple of NEXT_CHANGELOG.md reads. + """ + return [info for info in (get_next_tag_info(package) for package in packages) if info is not None] + + def push_tags(tag_infos: List[TagInfo]) -> None: """ Creates and pushes tags to the repository. + + As a side effect, writes the names of successfully created tags to + ``./created_tags.json`` so that workflows triggering this script can + discover what was produced (the GitHub Actions workflow uploads this + file as the ``created-tags`` artifact). + + Schema: + {"tags": ["service-a/v1.2.3", "service-b/v0.4.0"]} + + The manifest is written even if tag creation fails partway through: + tags that succeeded before the failure are flushed before the + exception is re-raised, so recovery-mode runs still surface their + output. """ - for tag_info in tag_infos: - gh.tag(tag_info.tag_name(), tag_info.content) + created: List[str] = [] + try: + for tag_info in tag_infos: + gh.tag(tag_info.tag_name(), tag_info.content) + created.append(tag_info.tag_name()) + finally: + manifest_path = os.path.join(os.getcwd(), CREATED_TAGS_FILE_NAME) + with open(manifest_path, "w") as f: + json.dump({"tags": created}, f) def run_command(command: List[str]) -> str: @@ -499,15 +870,26 @@ def pull_last_release_commit() -> None: reset_repository(commit_hash) -def get_package_from_args() -> Optional[str]: +def get_packages_from_args() -> List[str]: """ - Retrieves an optional package - python3 ./tagging.py --package + Retrieves the list of packages to tag. + + python3 ./tagging.py --package # single package + python3 ./tagging.py --package , # multiple packages + + Returns an empty list when --package is omitted, which means all packages + with pending releases will be tagged. """ parser = argparse.ArgumentParser(description="Update changelogs and tag the release.") - parser.add_argument("--package", "-p", type=str, help="Tag a single package") + parser.add_argument( + "--package", + "-p", + type=str, + default="", + help="Comma-separated list of packages to tag. Leave empty to tag all packages with pending releases.", + ) args = parser.parse_args() - return args.package + return [name.strip() for name in args.package.split(",") if name.strip()] def init_github(): @@ -533,15 +915,15 @@ def process(): If any tag are pending from an early process, it will skip updating the CHANGELOG.md files and only apply the tags. """ - package_name = get_package_from_args() + package_names = get_packages_from_args() pending_tags = find_pending_tags() # pending_tags is non-empty only when the tagging process previously failed or interrupted. # We must complete the interrupted tagging process before starting a new one to avoid inconsistent states and missing changelog entries. - # Therefore, we don't support specifying the package until the previously started process has been successfully completed. - if pending_tags and package_name: + # Therefore, we don't support specifying packages until the previously started process has been successfully completed. + if pending_tags and package_names: pending_packages = [tag.package.name for tag in pending_tags] - raise Exception(f"Cannot release package {package_name}. Pending release for {pending_packages}") + raise Exception(f"Cannot release packages {package_names}. Pending release for {pending_packages}") if pending_tags: print("Found pending tags from previous executions, entering recovery mode.") @@ -549,12 +931,24 @@ def process(): push_tags(pending_tags) return - packages = find_packages() - # If a package is specified as an argument, only process that package - if package_name: - packages = [package for package in packages if package.name == package_name] - - pending_tags = retry_function(func=lambda: update_changelogs(packages), cleanup=reset_repository) + all_packages = find_packages() + # If packages are specified as an argument, only release those — but + # dep rewrites and the freshness check still operate over the full + # set. + selected_packages = all_packages + if package_names: + selected_packages = [package for package in all_packages if package.name in package_names] + + # Run the freshness check against a read-only preview before the + # retry loop, since the check is deterministic. A freshness + # violation fails the run immediately, with no commits, no tags, no + # retry storm. + check_dependency_freshness(preview_tag_infos(selected_packages), all_packages) + + pending_tags = retry_function( + func=lambda: update_changelogs(selected_packages, all_packages), + cleanup=reset_repository, + ) push_tags(pending_tags) diff --git a/libs/testserver/serving_endpoints.go b/libs/testserver/serving_endpoints.go index cfe59e448ed..8a7ff891b50 100644 --- a/libs/testserver/serving_endpoints.go +++ b/libs/testserver/serving_endpoints.go @@ -53,6 +53,10 @@ func servedModelsInputToOutput(input []serving.ServedModelInput) []serving.Serve return models } +// AutoCaptureConfig is the legacy inference-table API; testserver mirrors +// the production conversion until callers migrate to AI Gateway inference tables. +// +//nolint:staticcheck // SA1019: deprecated AutoCaptureConfig{Input,Output} kept for bundle config compatibility func autoCaptureConfigInputToOutput(input *serving.AutoCaptureConfigInput) *serving.AutoCaptureConfigOutput { return &serving.AutoCaptureConfigOutput{ CatalogName: input.CatalogName, diff --git a/libs/testserver/vector_search_endpoints.go b/libs/testserver/vector_search_endpoints.go index 99b980c6386..c051d599ccc 100644 --- a/libs/testserver/vector_search_endpoints.go +++ b/libs/testserver/vector_search_endpoints.go @@ -39,7 +39,7 @@ func (s *FakeWorkspace) VectorSearchEndpointCreate(req Request) Response { State: vectorsearch.EndpointStatusStateOnline, // initial create is no-op, returns ONLINE immediately }, ScalingInfo: &vectorsearch.EndpointScalingInfo{ - RequestedMinQps: createReq.MinQps, + RequestedTargetQps: createReq.TargetQps, }, } endpoint.LastUpdatedTimestamp = endpoint.CreationTimestamp @@ -106,7 +106,7 @@ func (s *FakeWorkspace) VectorSearchEndpointUpdate(req Request, endpointName str if endpoint.ScalingInfo == nil { endpoint.ScalingInfo = &vectorsearch.EndpointScalingInfo{} } - endpoint.ScalingInfo.RequestedMinQps = patchReq.MinQps + endpoint.ScalingInfo.RequestedTargetQps = patchReq.TargetQps endpoint.LastUpdatedTimestamp = nowMilli() endpoint.LastUpdatedUser = s.CurrentUser().UserName diff --git a/python/databricks/bundles/catalogs/_models/azure_encryption_settings.py b/python/databricks/bundles/catalogs/_models/azure_encryption_settings.py index 9c2042d135c..023e0608d38 100644 --- a/python/databricks/bundles/catalogs/_models/azure_encryption_settings.py +++ b/python/databricks/bundles/catalogs/_models/azure_encryption_settings.py @@ -11,9 +11,7 @@ @dataclass(kw_only=True) class AzureEncryptionSettings: - """ - :meta private: [EXPERIMENTAL] - """ + """""" azure_tenant_id: VariableOr[str] diff --git a/python/databricks/bundles/catalogs/_models/catalog.py b/python/databricks/bundles/catalogs/_models/catalog.py index 9795277408b..eb9aaf83750 100644 --- a/python/databricks/bundles/catalogs/_models/catalog.py +++ b/python/databricks/bundles/catalogs/_models/catalog.py @@ -40,8 +40,6 @@ class Catalog(Resource): managed_encryption_settings: VariableOrOptional[EncryptionSettings] = None """ - :meta private: [EXPERIMENTAL] - Control CMK encryption for managed catalog data """ @@ -78,8 +76,6 @@ class CatalogDict(TypedDict, total=False): managed_encryption_settings: VariableOrOptional[EncryptionSettingsParam] """ - :meta private: [EXPERIMENTAL] - Control CMK encryption for managed catalog data """ diff --git a/python/databricks/bundles/catalogs/_models/encryption_settings.py b/python/databricks/bundles/catalogs/_models/encryption_settings.py index 1c8bf991fdb..184997cda55 100644 --- a/python/databricks/bundles/catalogs/_models/encryption_settings.py +++ b/python/databricks/bundles/catalogs/_models/encryption_settings.py @@ -16,8 +16,6 @@ @dataclass(kw_only=True) class EncryptionSettings: """ - :meta private: [EXPERIMENTAL] - Encryption Settings are used to carry metadata for securable encryption at rest. Currently used for catalogs, we can use the information supplied here to interact with a CMK. """ diff --git a/python/databricks/bundles/catalogs/_models/privilege.py b/python/databricks/bundles/catalogs/_models/privilege.py index 20f4e1f5573..6a0215a210c 100644 --- a/python/databricks/bundles/catalogs/_models/privilege.py +++ b/python/databricks/bundles/catalogs/_models/privilege.py @@ -53,6 +53,18 @@ class Privilege(Enum): MODIFY_CLEAN_ROOM = "MODIFY_CLEAN_ROOM" EXECUTE_CLEAN_ROOM_TASK = "EXECUTE_CLEAN_ROOM_TASK" EXTERNAL_USE_SCHEMA = "EXTERNAL_USE_SCHEMA" + VIEW_OBJECT = "VIEW_OBJECT" + MANAGE_GRANTS = "MANAGE_GRANTS" + INSERT = "INSERT" + UPDATE = "UPDATE" + DELETE = "DELETE" + VIEW_ADMIN_METADATA = "VIEW_ADMIN_METADATA" + VIEW_METADATA = "VIEW_METADATA" + USE_VOLUME = "USE_VOLUME" + READ_METADATA = "READ_METADATA" + MANAGE_ACCESS = "MANAGE_ACCESS" + MANAGE_ACCESS_CONTROL = "MANAGE_ACCESS_CONTROL" + CREATE_SERVICE = "CREATE_SERVICE" PrivilegeParam = ( @@ -107,6 +119,18 @@ class Privilege(Enum): "MODIFY_CLEAN_ROOM", "EXECUTE_CLEAN_ROOM_TASK", "EXTERNAL_USE_SCHEMA", + "VIEW_OBJECT", + "MANAGE_GRANTS", + "INSERT", + "UPDATE", + "DELETE", + "VIEW_ADMIN_METADATA", + "VIEW_METADATA", + "USE_VOLUME", + "READ_METADATA", + "MANAGE_ACCESS", + "MANAGE_ACCESS_CONTROL", + "CREATE_SERVICE", ] | Privilege ) diff --git a/python/databricks/bundles/jobs/__init__.py b/python/databricks/bundles/jobs/__init__.py index 4b9bd26d8b6..308c4ba7faf 100644 --- a/python/databricks/bundles/jobs/__init__.py +++ b/python/databricks/bundles/jobs/__init__.py @@ -48,6 +48,8 @@ "ConditionTaskOp", "ConditionTaskOpParam", "ConditionTaskParam", + "ConfidentialComputeType", + "ConfidentialComputeTypeParam", "Continuous", "ContinuousDict", "ContinuousParam", @@ -372,6 +374,10 @@ ConditionTaskOp, ConditionTaskOpParam, ) +from databricks.bundles.jobs._models.confidential_compute_type import ( + ConfidentialComputeType, + ConfidentialComputeTypeParam, +) from databricks.bundles.jobs._models.continuous import ( Continuous, ContinuousDict, diff --git a/python/databricks/bundles/jobs/_models/confidential_compute_type.py b/python/databricks/bundles/jobs/_models/confidential_compute_type.py new file mode 100644 index 00000000000..26a2cc842ba --- /dev/null +++ b/python/databricks/bundles/jobs/_models/confidential_compute_type.py @@ -0,0 +1,21 @@ +from enum import Enum +from typing import Literal + + +class ConfidentialComputeType(Enum): + """ + :meta private: [EXPERIMENTAL] + + Confidential computing technology for GCP instances. + Aligns with gcloud's --confidential-compute-type flag and the REST API's + confidentialInstanceConfig.confidentialInstanceType field. + See: https://cloud.google.com/confidential-computing/confidential-vm/docs/create-a-confidential-vm-instance + """ + + CONFIDENTIAL_COMPUTE_TYPE_NONE = "CONFIDENTIAL_COMPUTE_TYPE_NONE" + SEV_SNP = "SEV_SNP" + + +ConfidentialComputeTypeParam = ( + Literal["CONFIDENTIAL_COMPUTE_TYPE_NONE", "SEV_SNP"] | ConfidentialComputeType +) diff --git a/python/databricks/bundles/jobs/_models/environment.py b/python/databricks/bundles/jobs/_models/environment.py index 5ad70e3a2e3..3309d6f6d2d 100644 --- a/python/databricks/bundles/jobs/_models/environment.py +++ b/python/databricks/bundles/jobs/_models/environment.py @@ -12,7 +12,7 @@ @dataclass(kw_only=True) class Environment: """ - The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and DLT's environment for classic and serverless pipelines. + The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and SDP's environment for classic and serverless pipelines. In this minimal environment spec, only pip and java dependencies are supported. """ diff --git a/python/databricks/bundles/jobs/_models/gcp_attributes.py b/python/databricks/bundles/jobs/_models/gcp_attributes.py index 6f390c1cf8b..0ab838fe214 100644 --- a/python/databricks/bundles/jobs/_models/gcp_attributes.py +++ b/python/databricks/bundles/jobs/_models/gcp_attributes.py @@ -4,6 +4,10 @@ from databricks.bundles.core._transform import _transform from databricks.bundles.core._transform_to_json import _transform_to_json_value from databricks.bundles.core._variable import VariableOrOptional +from databricks.bundles.jobs._models.confidential_compute_type import ( + ConfidentialComputeType, + ConfidentialComputeTypeParam, +) from databricks.bundles.jobs._models.gcp_availability import ( GcpAvailability, GcpAvailabilityParam, @@ -26,6 +30,15 @@ class GcpAttributes: Boot disk size in GB """ + confidential_compute_type: VariableOrOptional[ConfidentialComputeType] = None + """ + :meta private: [EXPERIMENTAL] + + The confidential computing technology for this cluster's instances. + Currently only SEV_SNP is supported, and only on N2D instance types. + When not set, no confidential computing is applied. + """ + first_on_demand: VariableOrOptional[int] = None """ The first `first_on_demand` nodes of the cluster will be placed on on-demand instances. @@ -88,6 +101,15 @@ class GcpAttributesDict(TypedDict, total=False): Boot disk size in GB """ + confidential_compute_type: VariableOrOptional[ConfidentialComputeTypeParam] + """ + :meta private: [EXPERIMENTAL] + + The confidential computing technology for this cluster's instances. + Currently only SEV_SNP is supported, and only on N2D instance types. + When not set, no confidential computing is applied. + """ + first_on_demand: VariableOrOptional[int] """ The first `first_on_demand` nodes of the cluster will be placed on on-demand instances. diff --git a/python/databricks/bundles/jobs/_models/hardware_accelerator_type.py b/python/databricks/bundles/jobs/_models/hardware_accelerator_type.py index feb9f498cef..5d6ca4d1b0a 100644 --- a/python/databricks/bundles/jobs/_models/hardware_accelerator_type.py +++ b/python/databricks/bundles/jobs/_models/hardware_accelerator_type.py @@ -11,8 +11,9 @@ class HardwareAcceleratorType(Enum): GPU_1X_A10 = "GPU_1xA10" GPU_8X_H100 = "GPU_8xH100" + GPU_1X_H100 = "GPU_1xH100" HardwareAcceleratorTypeParam = ( - Literal["GPU_1xA10", "GPU_8xH100"] | HardwareAcceleratorType + Literal["GPU_1xA10", "GPU_8xH100", "GPU_1xH100"] | HardwareAcceleratorType ) diff --git a/python/databricks/bundles/jobs/_models/pipeline_params.py b/python/databricks/bundles/jobs/_models/pipeline_params.py index 0aa552e2e64..69dd3b77797 100644 --- a/python/databricks/bundles/jobs/_models/pipeline_params.py +++ b/python/databricks/bundles/jobs/_models/pipeline_params.py @@ -15,7 +15,7 @@ class PipelineParams: full_refresh: VariableOrOptional[bool] = None """ - If true, triggers a full refresh on the delta live table. + If true, triggers a full refresh on the spark declarative pipeline. """ @classmethod @@ -31,7 +31,7 @@ class PipelineParamsDict(TypedDict, total=False): full_refresh: VariableOrOptional[bool] """ - If true, triggers a full refresh on the delta live table. + If true, triggers a full refresh on the spark declarative pipeline. """ diff --git a/python/databricks/bundles/jobs/_models/pipeline_task.py b/python/databricks/bundles/jobs/_models/pipeline_task.py index 81126a8ed42..a5c22bdd986 100644 --- a/python/databricks/bundles/jobs/_models/pipeline_task.py +++ b/python/databricks/bundles/jobs/_models/pipeline_task.py @@ -20,7 +20,7 @@ class PipelineTask: full_refresh: VariableOrOptional[bool] = None """ - If true, triggers a full refresh on the delta live table. + If true, triggers a full refresh on the spark declarative pipeline. """ @classmethod @@ -41,7 +41,7 @@ class PipelineTaskDict(TypedDict, total=False): full_refresh: VariableOrOptional[bool] """ - If true, triggers a full refresh on the delta live table. + If true, triggers a full refresh on the spark declarative pipeline. """ diff --git a/python/databricks/bundles/pipelines/__init__.py b/python/databricks/bundles/pipelines/__init__.py index dad21eca069..2ef4c1e6c72 100644 --- a/python/databricks/bundles/pipelines/__init__.py +++ b/python/databricks/bundles/pipelines/__init__.py @@ -18,6 +18,11 @@ "ClusterLogConf", "ClusterLogConfDict", "ClusterLogConfParam", + "ConfidentialComputeType", + "ConfidentialComputeTypeParam", + "ConfluenceConnectorOptions", + "ConfluenceConnectorOptionsDict", + "ConfluenceConnectorOptionsParam", "ConnectionParameters", "ConnectionParametersDict", "ConnectionParametersParam", @@ -63,6 +68,9 @@ "GcsStorageInfo", "GcsStorageInfoDict", "GcsStorageInfoParam", + "GoogleAdsConfig", + "GoogleAdsConfigDict", + "GoogleAdsConfigParam", "GoogleAdsOptions", "GoogleAdsOptionsDict", "GoogleAdsOptionsParam", @@ -92,6 +100,9 @@ "InitScriptInfo", "InitScriptInfoDict", "InitScriptInfoParam", + "JiraConnectorOptions", + "JiraConnectorOptionsDict", + "JiraConnectorOptionsParam", "Lifecycle", "LifecycleDict", "LifecycleParam", @@ -104,6 +115,9 @@ "MavenLibrary", "MavenLibraryDict", "MavenLibraryParam", + "MetaMarketingOptions", + "MetaMarketingOptionsDict", + "MetaMarketingOptionsParam", "NotebookLibrary", "NotebookLibraryDict", "NotebookLibraryParam", @@ -113,6 +127,13 @@ "OperationTimeWindow", "OperationTimeWindowDict", "OperationTimeWindowParam", + "OutlookAttachmentMode", + "OutlookAttachmentModeParam", + "OutlookBodyFormat", + "OutlookBodyFormatParam", + "OutlookOptions", + "OutlookOptionsDict", + "OutlookOptionsParam", "PathPattern", "PathPatternDict", "PathPatternParam", @@ -164,6 +185,9 @@ "SharepointOptionsParam", "SharepointOptionsSharepointEntityType", "SharepointOptionsSharepointEntityTypeParam", + "SmartsheetOptions", + "SmartsheetOptionsDict", + "SmartsheetOptionsParam", "SourceCatalogConfig", "SourceCatalogConfigDict", "SourceCatalogConfigParam", @@ -191,6 +215,9 @@ "WorkspaceStorageInfo", "WorkspaceStorageInfoDict", "WorkspaceStorageInfoParam", + "ZendeskSupportOptions", + "ZendeskSupportOptionsDict", + "ZendeskSupportOptionsParam", ] @@ -227,6 +254,15 @@ ClusterLogConfDict, ClusterLogConfParam, ) +from databricks.bundles.pipelines._models.confidential_compute_type import ( + ConfidentialComputeType, + ConfidentialComputeTypeParam, +) +from databricks.bundles.pipelines._models.confluence_connector_options import ( + ConfluenceConnectorOptions, + ConfluenceConnectorOptionsDict, + ConfluenceConnectorOptionsParam, +) from databricks.bundles.pipelines._models.connection_parameters import ( ConnectionParameters, ConnectionParametersDict, @@ -303,6 +339,11 @@ GcsStorageInfoDict, GcsStorageInfoParam, ) +from databricks.bundles.pipelines._models.google_ads_config import ( + GoogleAdsConfig, + GoogleAdsConfigDict, + GoogleAdsConfigParam, +) from databricks.bundles.pipelines._models.google_ads_options import ( GoogleAdsOptions, GoogleAdsOptionsDict, @@ -352,6 +393,11 @@ InitScriptInfoDict, InitScriptInfoParam, ) +from databricks.bundles.pipelines._models.jira_connector_options import ( + JiraConnectorOptions, + JiraConnectorOptionsDict, + JiraConnectorOptionsParam, +) from databricks.bundles.pipelines._models.lifecycle import ( Lifecycle, LifecycleDict, @@ -372,6 +418,11 @@ MavenLibraryDict, MavenLibraryParam, ) +from databricks.bundles.pipelines._models.meta_marketing_options import ( + MetaMarketingOptions, + MetaMarketingOptionsDict, + MetaMarketingOptionsParam, +) from databricks.bundles.pipelines._models.notebook_library import ( NotebookLibrary, NotebookLibraryDict, @@ -387,6 +438,19 @@ OperationTimeWindowDict, OperationTimeWindowParam, ) +from databricks.bundles.pipelines._models.outlook_attachment_mode import ( + OutlookAttachmentMode, + OutlookAttachmentModeParam, +) +from databricks.bundles.pipelines._models.outlook_body_format import ( + OutlookBodyFormat, + OutlookBodyFormatParam, +) +from databricks.bundles.pipelines._models.outlook_options import ( + OutlookOptions, + OutlookOptionsDict, + OutlookOptionsParam, +) from databricks.bundles.pipelines._models.path_pattern import ( PathPattern, PathPatternDict, @@ -470,6 +534,11 @@ SharepointOptionsSharepointEntityType, SharepointOptionsSharepointEntityTypeParam, ) +from databricks.bundles.pipelines._models.smartsheet_options import ( + SmartsheetOptions, + SmartsheetOptionsDict, + SmartsheetOptionsParam, +) from databricks.bundles.pipelines._models.source_catalog_config import ( SourceCatalogConfig, SourceCatalogConfigDict, @@ -517,3 +586,8 @@ WorkspaceStorageInfoDict, WorkspaceStorageInfoParam, ) +from databricks.bundles.pipelines._models.zendesk_support_options import ( + ZendeskSupportOptions, + ZendeskSupportOptionsDict, + ZendeskSupportOptionsParam, +) diff --git a/python/databricks/bundles/pipelines/_models/confidential_compute_type.py b/python/databricks/bundles/pipelines/_models/confidential_compute_type.py new file mode 100644 index 00000000000..26a2cc842ba --- /dev/null +++ b/python/databricks/bundles/pipelines/_models/confidential_compute_type.py @@ -0,0 +1,21 @@ +from enum import Enum +from typing import Literal + + +class ConfidentialComputeType(Enum): + """ + :meta private: [EXPERIMENTAL] + + Confidential computing technology for GCP instances. + Aligns with gcloud's --confidential-compute-type flag and the REST API's + confidentialInstanceConfig.confidentialInstanceType field. + See: https://cloud.google.com/confidential-computing/confidential-vm/docs/create-a-confidential-vm-instance + """ + + CONFIDENTIAL_COMPUTE_TYPE_NONE = "CONFIDENTIAL_COMPUTE_TYPE_NONE" + SEV_SNP = "SEV_SNP" + + +ConfidentialComputeTypeParam = ( + Literal["CONFIDENTIAL_COMPUTE_TYPE_NONE", "SEV_SNP"] | ConfidentialComputeType +) diff --git a/python/databricks/bundles/pipelines/_models/confluence_connector_options.py b/python/databricks/bundles/pipelines/_models/confluence_connector_options.py new file mode 100644 index 00000000000..8158448f323 --- /dev/null +++ b/python/databricks/bundles/pipelines/_models/confluence_connector_options.py @@ -0,0 +1,42 @@ +from dataclasses import dataclass, field +from typing import TYPE_CHECKING, TypedDict + +from databricks.bundles.core._transform import _transform +from databricks.bundles.core._transform_to_json import _transform_to_json_value +from databricks.bundles.core._variable import VariableOrList + +if TYPE_CHECKING: + from typing_extensions import Self + + +@dataclass(kw_only=True) +class ConfluenceConnectorOptions: + """ + Confluence specific options for ingestion + """ + + include_confluence_spaces: VariableOrList[str] = field(default_factory=list) + """ + (Optional) Spaces to filter Confluence data on + """ + + @classmethod + def from_dict(cls, value: "ConfluenceConnectorOptionsDict") -> "Self": + return _transform(cls, value) + + def as_dict(self) -> "ConfluenceConnectorOptionsDict": + return _transform_to_json_value(self) # type:ignore + + +class ConfluenceConnectorOptionsDict(TypedDict, total=False): + """""" + + include_confluence_spaces: VariableOrList[str] + """ + (Optional) Spaces to filter Confluence data on + """ + + +ConfluenceConnectorOptionsParam = ( + ConfluenceConnectorOptionsDict | ConfluenceConnectorOptions +) diff --git a/python/databricks/bundles/pipelines/_models/connector_options.py b/python/databricks/bundles/pipelines/_models/connector_options.py index dfda4f6c133..3f8b7add1ff 100644 --- a/python/databricks/bundles/pipelines/_models/connector_options.py +++ b/python/databricks/bundles/pipelines/_models/connector_options.py @@ -4,6 +4,10 @@ from databricks.bundles.core._transform import _transform from databricks.bundles.core._transform_to_json import _transform_to_json_value from databricks.bundles.core._variable import VariableOrOptional +from databricks.bundles.pipelines._models.confluence_connector_options import ( + ConfluenceConnectorOptions, + ConfluenceConnectorOptionsParam, +) from databricks.bundles.pipelines._models.google_ads_options import ( GoogleAdsOptions, GoogleAdsOptionsParam, @@ -12,14 +16,34 @@ GoogleDriveOptions, GoogleDriveOptionsParam, ) +from databricks.bundles.pipelines._models.jira_connector_options import ( + JiraConnectorOptions, + JiraConnectorOptionsParam, +) +from databricks.bundles.pipelines._models.meta_marketing_options import ( + MetaMarketingOptions, + MetaMarketingOptionsParam, +) +from databricks.bundles.pipelines._models.outlook_options import ( + OutlookOptions, + OutlookOptionsParam, +) from databricks.bundles.pipelines._models.sharepoint_options import ( SharepointOptions, SharepointOptionsParam, ) +from databricks.bundles.pipelines._models.smartsheet_options import ( + SmartsheetOptions, + SmartsheetOptionsParam, +) from databricks.bundles.pipelines._models.tik_tok_ads_options import ( TikTokAdsOptions, TikTokAdsOptionsParam, ) +from databricks.bundles.pipelines._models.zendesk_support_options import ( + ZendeskSupportOptions, + ZendeskSupportOptionsParam, +) if TYPE_CHECKING: from typing_extensions import Self @@ -28,11 +52,14 @@ @dataclass(kw_only=True) class ConnectorOptions: """ - :meta private: [EXPERIMENTAL] - Wrapper message for source-specific options to support multiple connector types """ + confluence_options: VariableOrOptional[ConfluenceConnectorOptions] = None + """ + Confluence specific options for ingestion + """ + gdrive_options: VariableOrOptional[GoogleDriveOptions] = None """ :meta private: [EXPERIMENTAL] @@ -47,11 +74,35 @@ class ConnectorOptions: (source_configurations). """ + jira_options: VariableOrOptional[JiraConnectorOptions] = None + """ + Jira specific options for ingestion + """ + + meta_ads_options: VariableOrOptional[MetaMarketingOptions] = None + """ + Meta Marketing (Meta Ads) specific options for ingestion + """ + + outlook_options: VariableOrOptional[OutlookOptions] = None + """ + :meta private: [EXPERIMENTAL] + + Outlook specific options for ingestion + """ + sharepoint_options: VariableOrOptional[SharepointOptions] = None """ :meta private: [EXPERIMENTAL] """ + smartsheet_options: VariableOrOptional[SmartsheetOptions] = None + """ + :meta private: [EXPERIMENTAL] + + Smartsheet specific options for ingestion + """ + tiktok_ads_options: VariableOrOptional[TikTokAdsOptions] = None """ :meta private: [EXPERIMENTAL] @@ -59,6 +110,13 @@ class ConnectorOptions: TikTok Ads specific options for ingestion """ + zendesk_support_options: VariableOrOptional[ZendeskSupportOptions] = None + """ + :meta private: [EXPERIMENTAL] + + Zendesk Support specific options for ingestion + """ + @classmethod def from_dict(cls, value: "ConnectorOptionsDict") -> "Self": return _transform(cls, value) @@ -70,6 +128,11 @@ def as_dict(self) -> "ConnectorOptionsDict": class ConnectorOptionsDict(TypedDict, total=False): """""" + confluence_options: VariableOrOptional[ConfluenceConnectorOptionsParam] + """ + Confluence specific options for ingestion + """ + gdrive_options: VariableOrOptional[GoogleDriveOptionsParam] """ :meta private: [EXPERIMENTAL] @@ -84,11 +147,35 @@ class ConnectorOptionsDict(TypedDict, total=False): (source_configurations). """ + jira_options: VariableOrOptional[JiraConnectorOptionsParam] + """ + Jira specific options for ingestion + """ + + meta_ads_options: VariableOrOptional[MetaMarketingOptionsParam] + """ + Meta Marketing (Meta Ads) specific options for ingestion + """ + + outlook_options: VariableOrOptional[OutlookOptionsParam] + """ + :meta private: [EXPERIMENTAL] + + Outlook specific options for ingestion + """ + sharepoint_options: VariableOrOptional[SharepointOptionsParam] """ :meta private: [EXPERIMENTAL] """ + smartsheet_options: VariableOrOptional[SmartsheetOptionsParam] + """ + :meta private: [EXPERIMENTAL] + + Smartsheet specific options for ingestion + """ + tiktok_ads_options: VariableOrOptional[TikTokAdsOptionsParam] """ :meta private: [EXPERIMENTAL] @@ -96,5 +183,12 @@ class ConnectorOptionsDict(TypedDict, total=False): TikTok Ads specific options for ingestion """ + zendesk_support_options: VariableOrOptional[ZendeskSupportOptionsParam] + """ + :meta private: [EXPERIMENTAL] + + Zendesk Support specific options for ingestion + """ + ConnectorOptionsParam = ConnectorOptionsDict | ConnectorOptions diff --git a/python/databricks/bundles/pipelines/_models/file_ingestion_options.py b/python/databricks/bundles/pipelines/_models/file_ingestion_options.py index 514e19ad77f..23138c4a6e8 100644 --- a/python/databricks/bundles/pipelines/_models/file_ingestion_options.py +++ b/python/databricks/bundles/pipelines/_models/file_ingestion_options.py @@ -8,10 +8,7 @@ VariableOrList, VariableOrOptional, ) -from databricks.bundles.pipelines._models.file_filter import ( - FileFilter, - FileFilterParam, -) +from databricks.bundles.pipelines._models.file_filter import FileFilter, FileFilterParam from databricks.bundles.pipelines._models.file_ingestion_options_file_format import ( FileIngestionOptionsFileFormat, FileIngestionOptionsFileFormatParam, diff --git a/python/databricks/bundles/pipelines/_models/gcp_attributes.py b/python/databricks/bundles/pipelines/_models/gcp_attributes.py index 1deae0c124e..1670e8c02f5 100644 --- a/python/databricks/bundles/pipelines/_models/gcp_attributes.py +++ b/python/databricks/bundles/pipelines/_models/gcp_attributes.py @@ -4,6 +4,10 @@ from databricks.bundles.core._transform import _transform from databricks.bundles.core._transform_to_json import _transform_to_json_value from databricks.bundles.core._variable import VariableOrOptional +from databricks.bundles.pipelines._models.confidential_compute_type import ( + ConfidentialComputeType, + ConfidentialComputeTypeParam, +) from databricks.bundles.pipelines._models.gcp_availability import ( GcpAvailability, GcpAvailabilityParam, @@ -26,6 +30,15 @@ class GcpAttributes: Boot disk size in GB """ + confidential_compute_type: VariableOrOptional[ConfidentialComputeType] = None + """ + :meta private: [EXPERIMENTAL] + + The confidential computing technology for this cluster's instances. + Currently only SEV_SNP is supported, and only on N2D instance types. + When not set, no confidential computing is applied. + """ + first_on_demand: VariableOrOptional[int] = None """ The first `first_on_demand` nodes of the cluster will be placed on on-demand instances. @@ -88,6 +101,15 @@ class GcpAttributesDict(TypedDict, total=False): Boot disk size in GB """ + confidential_compute_type: VariableOrOptional[ConfidentialComputeTypeParam] + """ + :meta private: [EXPERIMENTAL] + + The confidential computing technology for this cluster's instances. + Currently only SEV_SNP is supported, and only on N2D instance types. + When not set, no confidential computing is applied. + """ + first_on_demand: VariableOrOptional[int] """ The first `first_on_demand` nodes of the cluster will be placed on on-demand instances. diff --git a/python/databricks/bundles/pipelines/_models/google_ads_config.py b/python/databricks/bundles/pipelines/_models/google_ads_config.py new file mode 100644 index 00000000000..f907fa9d622 --- /dev/null +++ b/python/databricks/bundles/pipelines/_models/google_ads_config.py @@ -0,0 +1,48 @@ +from dataclasses import dataclass +from typing import TYPE_CHECKING, TypedDict + +from databricks.bundles.core._transform import _transform +from databricks.bundles.core._transform_to_json import _transform_to_json_value +from databricks.bundles.core._variable import VariableOrOptional + +if TYPE_CHECKING: + from typing_extensions import Self + + +@dataclass(kw_only=True) +class GoogleAdsConfig: + """ + :meta private: [EXPERIMENTAL] + """ + + manager_account_id: VariableOrOptional[str] = None + """ + (Required) Manager Account ID (also called MCC Account ID) used to list and access + customer accounts under this manager account. This is required for fetching the list + of customer accounts during source selection. + If the same field is also set in the object-level GoogleAdsOptions (connector_options), + the object-level value takes precedence over this top-level config. + """ + + @classmethod + def from_dict(cls, value: "GoogleAdsConfigDict") -> "Self": + return _transform(cls, value) + + def as_dict(self) -> "GoogleAdsConfigDict": + return _transform_to_json_value(self) # type:ignore + + +class GoogleAdsConfigDict(TypedDict, total=False): + """""" + + manager_account_id: VariableOrOptional[str] + """ + (Required) Manager Account ID (also called MCC Account ID) used to list and access + customer accounts under this manager account. This is required for fetching the list + of customer accounts during source selection. + If the same field is also set in the object-level GoogleAdsOptions (connector_options), + the object-level value takes precedence over this top-level config. + """ + + +GoogleAdsConfigParam = GoogleAdsConfigDict | GoogleAdsConfig diff --git a/python/databricks/bundles/pipelines/_models/ingestion_config.py b/python/databricks/bundles/pipelines/_models/ingestion_config.py index 34b5b7d2d7e..988227c43e3 100644 --- a/python/databricks/bundles/pipelines/_models/ingestion_config.py +++ b/python/databricks/bundles/pipelines/_models/ingestion_config.py @@ -4,12 +4,12 @@ from databricks.bundles.core._transform import _transform from databricks.bundles.core._transform_to_json import _transform_to_json_value from databricks.bundles.core._variable import VariableOrOptional -from databricks.bundles.pipelines._models.report_spec import ReportSpec, ReportSpecParam -from databricks.bundles.pipelines._models.schema_spec import SchemaSpec, SchemaSpecParam -from databricks.bundles.pipelines._models.table_spec import ( - TableSpec, - TableSpecParam, +from databricks.bundles.pipelines._models.report_spec import ( + ReportSpec, + ReportSpecParam, ) +from databricks.bundles.pipelines._models.schema_spec import SchemaSpec, SchemaSpecParam +from databricks.bundles.pipelines._models.table_spec import TableSpec, TableSpecParam if TYPE_CHECKING: from typing_extensions import Self diff --git a/python/databricks/bundles/pipelines/_models/ingestion_pipeline_definition.py b/python/databricks/bundles/pipelines/_models/ingestion_pipeline_definition.py index d7c98400311..b36632a55cf 100644 --- a/python/databricks/bundles/pipelines/_models/ingestion_pipeline_definition.py +++ b/python/databricks/bundles/pipelines/_models/ingestion_pipeline_definition.py @@ -73,8 +73,6 @@ class IngestionPipelineDefinition: ingest_from_uc_foreign_catalog: VariableOrOptional[bool] = None """ - :meta private: [EXPERIMENTAL] - Immutable. If set to true, the pipeline will ingest tables from the UC foreign catalogs directly without the need to specify a UC connection or ingestion gateway. The `source_catalog` fields in objects of IngestionConfig are interpreted as @@ -156,8 +154,6 @@ class IngestionPipelineDefinitionDict(TypedDict, total=False): ingest_from_uc_foreign_catalog: VariableOrOptional[bool] """ - :meta private: [EXPERIMENTAL] - Immutable. If set to true, the pipeline will ingest tables from the UC foreign catalogs directly without the need to specify a UC connection or ingestion gateway. The `source_catalog` fields in objects of IngestionConfig are interpreted as diff --git a/python/databricks/bundles/pipelines/_models/ingestion_pipeline_definition_table_specific_config_query_based_connector_config.py b/python/databricks/bundles/pipelines/_models/ingestion_pipeline_definition_table_specific_config_query_based_connector_config.py index 50f3cc1f57d..babdc662917 100644 --- a/python/databricks/bundles/pipelines/_models/ingestion_pipeline_definition_table_specific_config_query_based_connector_config.py +++ b/python/databricks/bundles/pipelines/_models/ingestion_pipeline_definition_table_specific_config_query_based_connector_config.py @@ -12,15 +12,11 @@ @dataclass(kw_only=True) class IngestionPipelineDefinitionTableSpecificConfigQueryBasedConnectorConfig: """ - :meta private: [EXPERIMENTAL] - Configurations that are only applicable for query-based ingestion connectors. """ cursor_columns: VariableOrList[str] = field(default_factory=list) """ - :meta private: [EXPERIMENTAL] - The names of the monotonically increasing columns in the source table that are used to enable the table to be read and ingested incrementally through structured streaming. The columns are allowed to have repeated values but have to be non-decreasing. @@ -31,8 +27,6 @@ class IngestionPipelineDefinitionTableSpecificConfigQueryBasedConnectorConfig: deletion_condition: VariableOrOptional[str] = None """ - :meta private: [EXPERIMENTAL] - Specifies a SQL WHERE condition that specifies that the source row has been deleted. This is sometimes referred to as "soft-deletes". For example: "Operation = 'DELETE'" or "is_deleted = true". @@ -44,8 +38,6 @@ class IngestionPipelineDefinitionTableSpecificConfigQueryBasedConnectorConfig: hard_deletion_sync_min_interval_in_seconds: VariableOrOptional[int] = None """ - :meta private: [EXPERIMENTAL] - Specifies the minimum interval (in seconds) between snapshots on primary keys for detecting and synchronizing hard deletions—i.e., rows that have been physically removed from the source table. @@ -76,8 +68,6 @@ class IngestionPipelineDefinitionTableSpecificConfigQueryBasedConnectorConfigDic cursor_columns: VariableOrList[str] """ - :meta private: [EXPERIMENTAL] - The names of the monotonically increasing columns in the source table that are used to enable the table to be read and ingested incrementally through structured streaming. The columns are allowed to have repeated values but have to be non-decreasing. @@ -88,8 +78,6 @@ class IngestionPipelineDefinitionTableSpecificConfigQueryBasedConnectorConfigDic deletion_condition: VariableOrOptional[str] """ - :meta private: [EXPERIMENTAL] - Specifies a SQL WHERE condition that specifies that the source row has been deleted. This is sometimes referred to as "soft-deletes". For example: "Operation = 'DELETE'" or "is_deleted = true". @@ -101,8 +89,6 @@ class IngestionPipelineDefinitionTableSpecificConfigQueryBasedConnectorConfigDic hard_deletion_sync_min_interval_in_seconds: VariableOrOptional[int] """ - :meta private: [EXPERIMENTAL] - Specifies the minimum interval (in seconds) between snapshots on primary keys for detecting and synchronizing hard deletions—i.e., rows that have been physically removed from the source table. diff --git a/python/databricks/bundles/pipelines/_models/jira_connector_options.py b/python/databricks/bundles/pipelines/_models/jira_connector_options.py new file mode 100644 index 00000000000..b0d1e82582f --- /dev/null +++ b/python/databricks/bundles/pipelines/_models/jira_connector_options.py @@ -0,0 +1,40 @@ +from dataclasses import dataclass, field +from typing import TYPE_CHECKING, TypedDict + +from databricks.bundles.core._transform import _transform +from databricks.bundles.core._transform_to_json import _transform_to_json_value +from databricks.bundles.core._variable import VariableOrList + +if TYPE_CHECKING: + from typing_extensions import Self + + +@dataclass(kw_only=True) +class JiraConnectorOptions: + """ + Jira specific options for ingestion + """ + + include_jira_spaces: VariableOrList[str] = field(default_factory=list) + """ + (Optional) Projects to filter Jira data on + """ + + @classmethod + def from_dict(cls, value: "JiraConnectorOptionsDict") -> "Self": + return _transform(cls, value) + + def as_dict(self) -> "JiraConnectorOptionsDict": + return _transform_to_json_value(self) # type:ignore + + +class JiraConnectorOptionsDict(TypedDict, total=False): + """""" + + include_jira_spaces: VariableOrList[str] + """ + (Optional) Projects to filter Jira data on + """ + + +JiraConnectorOptionsParam = JiraConnectorOptionsDict | JiraConnectorOptions diff --git a/python/databricks/bundles/pipelines/_models/meta_marketing_options.py b/python/databricks/bundles/pipelines/_models/meta_marketing_options.py new file mode 100644 index 00000000000..fb9d5b8f8ba --- /dev/null +++ b/python/databricks/bundles/pipelines/_models/meta_marketing_options.py @@ -0,0 +1,114 @@ +from dataclasses import dataclass, field +from typing import TYPE_CHECKING, TypedDict + +from databricks.bundles.core._transform import _transform +from databricks.bundles.core._transform_to_json import _transform_to_json_value +from databricks.bundles.core._variable import VariableOrList, VariableOrOptional + +if TYPE_CHECKING: + from typing_extensions import Self + + +@dataclass(kw_only=True) +class MetaMarketingOptions: + """ + Meta Marketing (Meta Ads) specific options for ingestion + """ + + action_attribution_windows: VariableOrList[str] = field(default_factory=list) + """ + (Optional) Action attribution windows for insights reporting (e.g. "28d_click", "1d_view") + """ + + action_breakdowns: VariableOrList[str] = field(default_factory=list) + """ + (Optional) Action breakdowns to configure for data aggregation + """ + + action_report_time: VariableOrOptional[str] = None + """ + (Optional) Timing used to report action statistics (impression, conversion, mixed, or lifetime) + """ + + breakdowns: VariableOrList[str] = field(default_factory=list) + """ + (Optional) Breakdowns to configure for data aggregation + """ + + custom_insights_lookback_window: VariableOrOptional[int] = None + """ + (Optional) Window in days to revisit data during sync to capture + updated conversion data from the API. + """ + + level: VariableOrOptional[str] = None + """ + (Optional) Granularity of data to pull (account, ad, adset, campaign) + """ + + start_date: VariableOrOptional[str] = None + """ + (Optional) Start date in yyyy-MM-dd format (e.g. 2025-01-15). Data added + after this date will be ingested + """ + + time_increment: VariableOrOptional[str] = None + """ + (Optional) Value in string by which to aggregate statistics (can take all_days, monthly or number of days) + """ + + @classmethod + def from_dict(cls, value: "MetaMarketingOptionsDict") -> "Self": + return _transform(cls, value) + + def as_dict(self) -> "MetaMarketingOptionsDict": + return _transform_to_json_value(self) # type:ignore + + +class MetaMarketingOptionsDict(TypedDict, total=False): + """""" + + action_attribution_windows: VariableOrList[str] + """ + (Optional) Action attribution windows for insights reporting (e.g. "28d_click", "1d_view") + """ + + action_breakdowns: VariableOrList[str] + """ + (Optional) Action breakdowns to configure for data aggregation + """ + + action_report_time: VariableOrOptional[str] + """ + (Optional) Timing used to report action statistics (impression, conversion, mixed, or lifetime) + """ + + breakdowns: VariableOrList[str] + """ + (Optional) Breakdowns to configure for data aggregation + """ + + custom_insights_lookback_window: VariableOrOptional[int] + """ + (Optional) Window in days to revisit data during sync to capture + updated conversion data from the API. + """ + + level: VariableOrOptional[str] + """ + (Optional) Granularity of data to pull (account, ad, adset, campaign) + """ + + start_date: VariableOrOptional[str] + """ + (Optional) Start date in yyyy-MM-dd format (e.g. 2025-01-15). Data added + after this date will be ingested + """ + + time_increment: VariableOrOptional[str] + """ + (Optional) Value in string by which to aggregate statistics (can take all_days, monthly or number of days) + """ + + +MetaMarketingOptionsParam = MetaMarketingOptionsDict | MetaMarketingOptions diff --git a/python/databricks/bundles/pipelines/_models/outlook_attachment_mode.py b/python/databricks/bundles/pipelines/_models/outlook_attachment_mode.py new file mode 100644 index 00000000000..dab9825c251 --- /dev/null +++ b/python/databricks/bundles/pipelines/_models/outlook_attachment_mode.py @@ -0,0 +1,20 @@ +from enum import Enum +from typing import Literal + + +class OutlookAttachmentMode(Enum): + """ + :meta private: [EXPERIMENTAL] + + Attachment behavior mode for Outlook ingestion + """ + + ALL = "ALL" + NON_INLINE_ONLY = "NON_INLINE_ONLY" + INLINE_ONLY = "INLINE_ONLY" + NONE = "NONE" + + +OutlookAttachmentModeParam = ( + Literal["ALL", "NON_INLINE_ONLY", "INLINE_ONLY", "NONE"] | OutlookAttachmentMode +) diff --git a/python/databricks/bundles/pipelines/_models/outlook_body_format.py b/python/databricks/bundles/pipelines/_models/outlook_body_format.py new file mode 100644 index 00000000000..2354444c584 --- /dev/null +++ b/python/databricks/bundles/pipelines/_models/outlook_body_format.py @@ -0,0 +1,16 @@ +from enum import Enum +from typing import Literal + + +class OutlookBodyFormat(Enum): + """ + :meta private: [EXPERIMENTAL] + + Body format for Outlook email content + """ + + TEXT_HTML = "TEXT_HTML" + TEXT_PLAIN = "TEXT_PLAIN" + + +OutlookBodyFormatParam = Literal["TEXT_HTML", "TEXT_PLAIN"] | OutlookBodyFormat diff --git a/python/databricks/bundles/pipelines/_models/outlook_options.py b/python/databricks/bundles/pipelines/_models/outlook_options.py new file mode 100644 index 00000000000..62138c598f8 --- /dev/null +++ b/python/databricks/bundles/pipelines/_models/outlook_options.py @@ -0,0 +1,176 @@ +from dataclasses import dataclass, field +from typing import TYPE_CHECKING, TypedDict + +from databricks.bundles.core._transform import _transform +from databricks.bundles.core._transform_to_json import _transform_to_json_value +from databricks.bundles.core._variable import VariableOrList, VariableOrOptional +from databricks.bundles.pipelines._models.outlook_attachment_mode import ( + OutlookAttachmentMode, + OutlookAttachmentModeParam, +) +from databricks.bundles.pipelines._models.outlook_body_format import ( + OutlookBodyFormat, + OutlookBodyFormatParam, +) + +if TYPE_CHECKING: + from typing_extensions import Self + + +@dataclass(kw_only=True) +class OutlookOptions: + """ + :meta private: [EXPERIMENTAL] + + Outlook specific options for ingestion + """ + + attachment_mode: VariableOrOptional[OutlookAttachmentMode] = None + """ + (Optional) Controls which attachments to ingest. + If not specified, defaults to ALL. + """ + + body_format: VariableOrOptional[OutlookBodyFormat] = None + """ + (Optional) Defines how the body_content column is populated. + TEXT_HTML: Preserves full formatting, links, and styling. + TEXT_PLAIN: Converts body to plain text. Recommended for AI/RAG pipelines to reduce token usage and noise. + """ + + folder_filter: VariableOrList[str] = field(default_factory=list) + """ + [DEPRECATED] Deprecated. Use include_folders instead. + """ + + include_folders: VariableOrList[str] = field(default_factory=list) + """ + (Optional) Filter mail folders to include in the sync. + If not specified, all folders will be synced. + Examples: Inbox, Sent Items, Custom_Folder + Filter semantics: OR between different folders. + """ + + include_mailboxes: VariableOrList[str] = field(default_factory=list) + """ + (Optional) List of mailboxes to sync (e.g. mailbox email addresses or identifiers). + If not specified, all accessible mailboxes are ingested. + Filter semantics: OR between different mailboxes. + """ + + include_senders: VariableOrList[str] = field(default_factory=list) + """ + (Optional) Filter emails by sender address. Uses exact email match. + Examples: user@vendor.com, alerts@system.io, noreply@company.com + If not specified, emails from all senders will be synced. + Filter semantics: OR between different senders. + """ + + include_subjects: VariableOrList[str] = field(default_factory=list) + """ + (Optional) Filter emails by subject line. Values ending with "*" use prefix match (subject starts with + the part before "*"); otherwise substring match (subject contains the value). + Examples: "Invoice" (substring), "Re:*" (prefix), "Support Ticket", "URGENT*" + If not specified, emails with all subjects will be synced. + Filter semantics: OR between different subjects. + """ + + sender_filter: VariableOrList[str] = field(default_factory=list) + """ + [DEPRECATED] Deprecated. Use include_senders instead. + """ + + start_date: VariableOrOptional[str] = None + """ + (Optional) Start date for the initial sync in YYYY-MM-DD format. + Format: YYYY-MM-DD (e.g., 2024-01-01) + This determines the earliest date from which to sync historical data. + If not specified, complete history is ingested. + """ + + subject_filter: VariableOrList[str] = field(default_factory=list) + """ + [DEPRECATED] Deprecated. Use include_subjects instead. + """ + + @classmethod + def from_dict(cls, value: "OutlookOptionsDict") -> "Self": + return _transform(cls, value) + + def as_dict(self) -> "OutlookOptionsDict": + return _transform_to_json_value(self) # type:ignore + + +class OutlookOptionsDict(TypedDict, total=False): + """""" + + attachment_mode: VariableOrOptional[OutlookAttachmentModeParam] + """ + (Optional) Controls which attachments to ingest. + If not specified, defaults to ALL. + """ + + body_format: VariableOrOptional[OutlookBodyFormatParam] + """ + (Optional) Defines how the body_content column is populated. + TEXT_HTML: Preserves full formatting, links, and styling. + TEXT_PLAIN: Converts body to plain text. Recommended for AI/RAG pipelines to reduce token usage and noise. + """ + + folder_filter: VariableOrList[str] + """ + [DEPRECATED] Deprecated. Use include_folders instead. + """ + + include_folders: VariableOrList[str] + """ + (Optional) Filter mail folders to include in the sync. + If not specified, all folders will be synced. + Examples: Inbox, Sent Items, Custom_Folder + Filter semantics: OR between different folders. + """ + + include_mailboxes: VariableOrList[str] + """ + (Optional) List of mailboxes to sync (e.g. mailbox email addresses or identifiers). + If not specified, all accessible mailboxes are ingested. + Filter semantics: OR between different mailboxes. + """ + + include_senders: VariableOrList[str] + """ + (Optional) Filter emails by sender address. Uses exact email match. + Examples: user@vendor.com, alerts@system.io, noreply@company.com + If not specified, emails from all senders will be synced. + Filter semantics: OR between different senders. + """ + + include_subjects: VariableOrList[str] + """ + (Optional) Filter emails by subject line. Values ending with "*" use prefix match (subject starts with + the part before "*"); otherwise substring match (subject contains the value). + Examples: "Invoice" (substring), "Re:*" (prefix), "Support Ticket", "URGENT*" + If not specified, emails with all subjects will be synced. + Filter semantics: OR between different subjects. + """ + + sender_filter: VariableOrList[str] + """ + [DEPRECATED] Deprecated. Use include_senders instead. + """ + + start_date: VariableOrOptional[str] + """ + (Optional) Start date for the initial sync in YYYY-MM-DD format. + Format: YYYY-MM-DD (e.g., 2024-01-01) + This determines the earliest date from which to sync historical data. + If not specified, complete history is ingested. + """ + + subject_filter: VariableOrList[str] + """ + [DEPRECATED] Deprecated. Use include_subjects instead. + """ + + +OutlookOptionsParam = OutlookOptionsDict | OutlookOptions diff --git a/python/databricks/bundles/pipelines/_models/pipeline.py b/python/databricks/bundles/pipelines/_models/pipeline.py index 2b4bbed23b5..284a3734897 100644 --- a/python/databricks/bundles/pipelines/_models/pipeline.py +++ b/python/databricks/bundles/pipelines/_models/pipeline.py @@ -80,7 +80,7 @@ class Pipeline(Resource): channel: VariableOrOptional[str] = None """ - DLT Release Channel that specifies which version to use. + SDP Release Channel that specifies which version to use. """ clusters: VariableOrList[PipelineCluster] = field(default_factory=list) @@ -245,7 +245,7 @@ class PipelineDict(TypedDict, total=False): channel: VariableOrOptional[str] """ - DLT Release Channel that specifies which version to use. + SDP Release Channel that specifies which version to use. """ clusters: VariableOrList[PipelineClusterParam] diff --git a/python/databricks/bundles/pipelines/_models/pipelines_environment.py b/python/databricks/bundles/pipelines/_models/pipelines_environment.py index 8c6ef19a0dc..4a24f7e1e62 100644 --- a/python/databricks/bundles/pipelines/_models/pipelines_environment.py +++ b/python/databricks/bundles/pipelines/_models/pipelines_environment.py @@ -12,7 +12,7 @@ @dataclass(kw_only=True) class PipelinesEnvironment: """ - The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and DLT's environment for classic and serverless pipelines. + The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and SDP's environment for classic and serverless pipelines. In this minimal environment spec, only pip dependencies are supported. """ diff --git a/python/databricks/bundles/pipelines/_models/schema_spec.py b/python/databricks/bundles/pipelines/_models/schema_spec.py index d113f2376c8..9f756992026 100644 --- a/python/databricks/bundles/pipelines/_models/schema_spec.py +++ b/python/databricks/bundles/pipelines/_models/schema_spec.py @@ -38,8 +38,6 @@ class SchemaSpec: connector_options: VariableOrOptional[ConnectorOptions] = None """ - :meta private: [EXPERIMENTAL] - (Optional) Source Specific Connector Options """ @@ -81,8 +79,6 @@ class SchemaSpecDict(TypedDict, total=False): connector_options: VariableOrOptional[ConnectorOptionsParam] """ - :meta private: [EXPERIMENTAL] - (Optional) Source Specific Connector Options """ diff --git a/python/databricks/bundles/pipelines/_models/smartsheet_options.py b/python/databricks/bundles/pipelines/_models/smartsheet_options.py new file mode 100644 index 00000000000..4f4426b74ed --- /dev/null +++ b/python/databricks/bundles/pipelines/_models/smartsheet_options.py @@ -0,0 +1,50 @@ +from dataclasses import dataclass +from typing import TYPE_CHECKING, TypedDict + +from databricks.bundles.core._transform import _transform +from databricks.bundles.core._transform_to_json import _transform_to_json_value +from databricks.bundles.core._variable import VariableOrOptional + +if TYPE_CHECKING: + from typing_extensions import Self + + +@dataclass(kw_only=True) +class SmartsheetOptions: + """ + :meta private: [EXPERIMENTAL] + + Smartsheet specific options for ingestion + """ + + enforce_schema: VariableOrOptional[bool] = None + """ + (Optional) When true, maps each column to its Smartsheet-declared type (Text/Number/Date/ + Checkbox/etc.). Cells that do not conform to the declared type are set to NULL. + When false, all columns land as STRING. Use false for sheets with irregular data or columns + that frequently violate their own declared type. + If not specified, defaults to true. + """ + + @classmethod + def from_dict(cls, value: "SmartsheetOptionsDict") -> "Self": + return _transform(cls, value) + + def as_dict(self) -> "SmartsheetOptionsDict": + return _transform_to_json_value(self) # type:ignore + + +class SmartsheetOptionsDict(TypedDict, total=False): + """""" + + enforce_schema: VariableOrOptional[bool] + """ + (Optional) When true, maps each column to its Smartsheet-declared type (Text/Number/Date/ + Checkbox/etc.). Cells that do not conform to the declared type are set to NULL. + When false, all columns land as STRING. Use false for sheets with irregular data or columns + that frequently violate their own declared type. + If not specified, defaults to true. + """ + + +SmartsheetOptionsParam = SmartsheetOptionsDict | SmartsheetOptions diff --git a/python/databricks/bundles/pipelines/_models/source_config.py b/python/databricks/bundles/pipelines/_models/source_config.py index 876fb460a75..ebbef1ef02c 100644 --- a/python/databricks/bundles/pipelines/_models/source_config.py +++ b/python/databricks/bundles/pipelines/_models/source_config.py @@ -4,6 +4,10 @@ from databricks.bundles.core._transform import _transform from databricks.bundles.core._transform_to_json import _transform_to_json_value from databricks.bundles.core._variable import VariableOrOptional +from databricks.bundles.pipelines._models.google_ads_config import ( + GoogleAdsConfig, + GoogleAdsConfigParam, +) from databricks.bundles.pipelines._models.source_catalog_config import ( SourceCatalogConfig, SourceCatalogConfigParam, @@ -22,6 +26,11 @@ class SourceConfig: Catalog-level source configuration parameters """ + google_ads_config: VariableOrOptional[GoogleAdsConfig] = None + """ + :meta private: [EXPERIMENTAL] + """ + @classmethod def from_dict(cls, value: "SourceConfigDict") -> "Self": return _transform(cls, value) @@ -38,5 +47,10 @@ class SourceConfigDict(TypedDict, total=False): Catalog-level source configuration parameters """ + google_ads_config: VariableOrOptional[GoogleAdsConfigParam] + """ + :meta private: [EXPERIMENTAL] + """ + SourceConfigParam = SourceConfigDict | SourceConfig diff --git a/python/databricks/bundles/pipelines/_models/table_spec.py b/python/databricks/bundles/pipelines/_models/table_spec.py index 08e26241bf8..10f5eb8ad1e 100644 --- a/python/databricks/bundles/pipelines/_models/table_spec.py +++ b/python/databricks/bundles/pipelines/_models/table_spec.py @@ -38,8 +38,6 @@ class TableSpec: connector_options: VariableOrOptional[ConnectorOptions] = None """ - :meta private: [EXPERIMENTAL] - (Optional) Source Specific Connector Options """ @@ -91,8 +89,6 @@ class TableSpecDict(TypedDict, total=False): connector_options: VariableOrOptional[ConnectorOptionsParam] """ - :meta private: [EXPERIMENTAL] - (Optional) Source Specific Connector Options """ diff --git a/python/databricks/bundles/pipelines/_models/table_specific_config.py b/python/databricks/bundles/pipelines/_models/table_specific_config.py index aa5ab57602f..57e7fe2b1fe 100644 --- a/python/databricks/bundles/pipelines/_models/table_specific_config.py +++ b/python/databricks/bundles/pipelines/_models/table_specific_config.py @@ -70,15 +70,11 @@ class TableSpecificConfig: IngestionPipelineDefinitionTableSpecificConfigQueryBasedConnectorConfig ] = None """ - :meta private: [EXPERIMENTAL] - Configurations that are only applicable for query-based ingestion connectors. """ row_filter: VariableOrOptional[str] = None """ - :meta private: [EXPERIMENTAL] - (Optional, Immutable) The row filter condition to be applied to the table. It must not contain the WHERE keyword, only the actual filter condition. It must be in DBSQL format. @@ -93,8 +89,6 @@ class TableSpecificConfig: scd_type: VariableOrOptional[TableSpecificConfigScdType] = None """ - :meta private: [EXPERIMENTAL] - The SCD type to use to ingest the table. """ @@ -162,15 +156,11 @@ class TableSpecificConfigDict(TypedDict, total=False): IngestionPipelineDefinitionTableSpecificConfigQueryBasedConnectorConfigParam ] """ - :meta private: [EXPERIMENTAL] - Configurations that are only applicable for query-based ingestion connectors. """ row_filter: VariableOrOptional[str] """ - :meta private: [EXPERIMENTAL] - (Optional, Immutable) The row filter condition to be applied to the table. It must not contain the WHERE keyword, only the actual filter condition. It must be in DBSQL format. @@ -185,8 +175,6 @@ class TableSpecificConfigDict(TypedDict, total=False): scd_type: VariableOrOptional[TableSpecificConfigScdTypeParam] """ - :meta private: [EXPERIMENTAL] - The SCD type to use to ingest the table. """ diff --git a/python/databricks/bundles/pipelines/_models/table_specific_config_scd_type.py b/python/databricks/bundles/pipelines/_models/table_specific_config_scd_type.py index 6d138b78087..89fc41416e2 100644 --- a/python/databricks/bundles/pipelines/_models/table_specific_config_scd_type.py +++ b/python/databricks/bundles/pipelines/_models/table_specific_config_scd_type.py @@ -4,8 +4,6 @@ class TableSpecificConfigScdType(Enum): """ - :meta private: [EXPERIMENTAL] - The SCD type to use to ingest the table. """ diff --git a/python/databricks/bundles/pipelines/_models/zendesk_support_options.py b/python/databricks/bundles/pipelines/_models/zendesk_support_options.py new file mode 100644 index 00000000000..a64ecf73f2f --- /dev/null +++ b/python/databricks/bundles/pipelines/_models/zendesk_support_options.py @@ -0,0 +1,44 @@ +from dataclasses import dataclass +from typing import TYPE_CHECKING, TypedDict + +from databricks.bundles.core._transform import _transform +from databricks.bundles.core._transform_to_json import _transform_to_json_value +from databricks.bundles.core._variable import VariableOrOptional + +if TYPE_CHECKING: + from typing_extensions import Self + + +@dataclass(kw_only=True) +class ZendeskSupportOptions: + """ + :meta private: [EXPERIMENTAL] + + Zendesk Support specific options for ingestion + """ + + start_date: VariableOrOptional[str] = None + """ + (Optional) Start date in YYYY-MM-DD format for the initial sync. + This determines the earliest date from which to sync historical data. + """ + + @classmethod + def from_dict(cls, value: "ZendeskSupportOptionsDict") -> "Self": + return _transform(cls, value) + + def as_dict(self) -> "ZendeskSupportOptionsDict": + return _transform_to_json_value(self) # type:ignore + + +class ZendeskSupportOptionsDict(TypedDict, total=False): + """""" + + start_date: VariableOrOptional[str] + """ + (Optional) Start date in YYYY-MM-DD format for the initial sync. + This determines the earliest date from which to sync historical data. + """ + + +ZendeskSupportOptionsParam = ZendeskSupportOptionsDict | ZendeskSupportOptions diff --git a/python/databricks/bundles/schemas/_models/privilege.py b/python/databricks/bundles/schemas/_models/privilege.py index 20f4e1f5573..6a0215a210c 100644 --- a/python/databricks/bundles/schemas/_models/privilege.py +++ b/python/databricks/bundles/schemas/_models/privilege.py @@ -53,6 +53,18 @@ class Privilege(Enum): MODIFY_CLEAN_ROOM = "MODIFY_CLEAN_ROOM" EXECUTE_CLEAN_ROOM_TASK = "EXECUTE_CLEAN_ROOM_TASK" EXTERNAL_USE_SCHEMA = "EXTERNAL_USE_SCHEMA" + VIEW_OBJECT = "VIEW_OBJECT" + MANAGE_GRANTS = "MANAGE_GRANTS" + INSERT = "INSERT" + UPDATE = "UPDATE" + DELETE = "DELETE" + VIEW_ADMIN_METADATA = "VIEW_ADMIN_METADATA" + VIEW_METADATA = "VIEW_METADATA" + USE_VOLUME = "USE_VOLUME" + READ_METADATA = "READ_METADATA" + MANAGE_ACCESS = "MANAGE_ACCESS" + MANAGE_ACCESS_CONTROL = "MANAGE_ACCESS_CONTROL" + CREATE_SERVICE = "CREATE_SERVICE" PrivilegeParam = ( @@ -107,6 +119,18 @@ class Privilege(Enum): "MODIFY_CLEAN_ROOM", "EXECUTE_CLEAN_ROOM_TASK", "EXTERNAL_USE_SCHEMA", + "VIEW_OBJECT", + "MANAGE_GRANTS", + "INSERT", + "UPDATE", + "DELETE", + "VIEW_ADMIN_METADATA", + "VIEW_METADATA", + "USE_VOLUME", + "READ_METADATA", + "MANAGE_ACCESS", + "MANAGE_ACCESS_CONTROL", + "CREATE_SERVICE", ] | Privilege ) diff --git a/python/databricks/bundles/volumes/_models/privilege.py b/python/databricks/bundles/volumes/_models/privilege.py index 20f4e1f5573..6a0215a210c 100644 --- a/python/databricks/bundles/volumes/_models/privilege.py +++ b/python/databricks/bundles/volumes/_models/privilege.py @@ -53,6 +53,18 @@ class Privilege(Enum): MODIFY_CLEAN_ROOM = "MODIFY_CLEAN_ROOM" EXECUTE_CLEAN_ROOM_TASK = "EXECUTE_CLEAN_ROOM_TASK" EXTERNAL_USE_SCHEMA = "EXTERNAL_USE_SCHEMA" + VIEW_OBJECT = "VIEW_OBJECT" + MANAGE_GRANTS = "MANAGE_GRANTS" + INSERT = "INSERT" + UPDATE = "UPDATE" + DELETE = "DELETE" + VIEW_ADMIN_METADATA = "VIEW_ADMIN_METADATA" + VIEW_METADATA = "VIEW_METADATA" + USE_VOLUME = "USE_VOLUME" + READ_METADATA = "READ_METADATA" + MANAGE_ACCESS = "MANAGE_ACCESS" + MANAGE_ACCESS_CONTROL = "MANAGE_ACCESS_CONTROL" + CREATE_SERVICE = "CREATE_SERVICE" PrivilegeParam = ( @@ -107,6 +119,18 @@ class Privilege(Enum): "MODIFY_CLEAN_ROOM", "EXECUTE_CLEAN_ROOM_TASK", "EXTERNAL_USE_SCHEMA", + "VIEW_OBJECT", + "MANAGE_GRANTS", + "INSERT", + "UPDATE", + "DELETE", + "VIEW_ADMIN_METADATA", + "VIEW_METADATA", + "USE_VOLUME", + "READ_METADATA", + "MANAGE_ACCESS", + "MANAGE_ACCESS_CONTROL", + "CREATE_SERVICE", ] | Privilege ) From 283de9936f2eb7e1a785580fb36b23ad55b5a3cf Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 11 May 2026 22:16:17 +0200 Subject: [PATCH 2/2] fix: clean up SDK bump generated output Remove generated trailing whitespace that breaks task checks and drop an empty changelog section. --- NEXT_CHANGELOG.md | 2 - .../disaster-recovery/disaster-recovery.go | 22 +++++------ cmd/workspace/secrets-uc/secrets-uc.go | 30 +++++++-------- .../supervisor-agents/supervisor-agents.go | 38 +++++++++---------- .../temporary-volume-credentials.go | 4 +- 5 files changed, 47 insertions(+), 49 deletions(-) diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 45f0c2ea113..1c0dc6ad63a 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -18,5 +18,3 @@ * Bump Go toolchain to 1.25.10 ([#5213](https://github.com/databricks/cli/pull/5213)). * Bump `github.com/databricks/databricks-sdk-go` from v0.128.0 to v0.132.0. - -### API Changes diff --git a/cmd/account/disaster-recovery/disaster-recovery.go b/cmd/account/disaster-recovery/disaster-recovery.go index 9e61bfe3078..c002596e732 100755 --- a/cmd/account/disaster-recovery/disaster-recovery.go +++ b/cmd/account/disaster-recovery/disaster-recovery.go @@ -81,7 +81,7 @@ func newCreateFailoverGroup() *cobra.Command { cmd.Use = "create-failover-group PARENT FAILOVER_GROUP_ID REGIONS WORKSPACE_SETS INITIAL_PRIMARY_REGION" cmd.Short = `Create a Failover Group.` cmd.Long = `Create a Failover Group. - + Create a new failover group. Arguments: @@ -190,7 +190,7 @@ func newCreateStableUrl() *cobra.Command { cmd.Use = "create-stable-url PARENT STABLE_URL_ID INITIAL_WORKSPACE_ID" cmd.Short = `Create a Stable URL.` cmd.Long = `Create a Stable URL. - + Create a new stable URL. Arguments: @@ -279,7 +279,7 @@ func newDeleteFailoverGroup() *cobra.Command { cmd.Use = "delete-failover-group NAME" cmd.Short = `Delete a Failover Group.` cmd.Long = `Delete a Failover Group. - + Delete a failover group. Arguments: @@ -338,7 +338,7 @@ func newDeleteStableUrl() *cobra.Command { cmd.Use = "delete-stable-url NAME" cmd.Short = `Delete a Stable URL.` cmd.Long = `Delete a Stable URL. - + Delete a stable URL. Arguments: @@ -402,7 +402,7 @@ func newFailoverFailoverGroup() *cobra.Command { cmd.Use = "failover-failover-group NAME TARGET_PRIMARY_REGION FAILOVER_TYPE" cmd.Short = `Failover a Failover Group to a new primary region.` cmd.Long = `Failover a Failover Group to a new primary region. - + Initiate a failover to a new primary region. Arguments: @@ -411,7 +411,7 @@ func newFailoverFailoverGroup() *cobra.Command { TARGET_PRIMARY_REGION: The target primary region. Must be one of the derived regions and different from the current effective_primary_region. Serves as an idempotency check. - FAILOVER_TYPE: The type of failover to perform. + FAILOVER_TYPE: The type of failover to perform. Supported values: [FORCED]` cmd.Annotations = make(map[string]string) @@ -496,7 +496,7 @@ func newGetFailoverGroup() *cobra.Command { cmd.Use = "get-failover-group NAME" cmd.Short = `Get a Failover Group.` cmd.Long = `Get a Failover Group. - + Get a failover group. Arguments: @@ -556,7 +556,7 @@ func newGetStableUrl() *cobra.Command { cmd.Use = "get-stable-url NAME" cmd.Short = `Get a Stable URL.` cmd.Long = `Get a Stable URL. - + Get a stable URL. Arguments: @@ -629,7 +629,7 @@ func newListFailoverGroups() *cobra.Command { cmd.Use = "list-failover-groups PARENT" cmd.Short = `List Failover Groups.` cmd.Long = `List Failover Groups. - + List failover groups. Arguments: @@ -704,7 +704,7 @@ func newListStableUrls() *cobra.Command { cmd.Use = "list-stable-urls PARENT" cmd.Short = `List Stable URLs.` cmd.Long = `List Stable URLs. - + List stable URLs for an account. Arguments: @@ -774,7 +774,7 @@ func newUpdateFailoverGroup() *cobra.Command { cmd.Use = "update-failover-group NAME UPDATE_MASK REGIONS WORKSPACE_SETS INITIAL_PRIMARY_REGION" cmd.Short = `Update a Failover Group.` cmd.Long = `Update a Failover Group. - + Update a failover group. Arguments: diff --git a/cmd/workspace/secrets-uc/secrets-uc.go b/cmd/workspace/secrets-uc/secrets-uc.go index b9e6fb99dc0..006a5f5d33d 100755 --- a/cmd/workspace/secrets-uc/secrets-uc.go +++ b/cmd/workspace/secrets-uc/secrets-uc.go @@ -28,7 +28,7 @@ func New() *cobra.Command { Long: `A secret is a Unity Catalog securable object that stores sensitive credential data (such as passwords, tokens, and keys) within a three-level namespace (**catalog_name.schema_name.secret_name**). - + Secrets can be managed using standard Unity Catalog permissions and are scoped to a schema within a catalog.`, GroupID: "catalog", @@ -83,13 +83,13 @@ func newCreateSecret() *cobra.Command { cmd.Use = "create-secret NAME CATALOG_NAME SCHEMA_NAME VALUE" cmd.Short = `Create a secret.` cmd.Long = `Create a secret. - + Creates a new secret in Unity Catalog. - + You must be the owner of the parent schema or have the **CREATE_SECRET** and **USE SCHEMA** privileges on the parent schema and **USE CATALOG** on the parent catalog. - + The secret is stored in the specified catalog and schema, and the **value** field contains the sensitive data to be securely stored. @@ -196,9 +196,9 @@ func newDeleteSecret() *cobra.Command { cmd.Use = "delete-secret FULL_NAME" cmd.Short = `Delete a secret.` cmd.Long = `Delete a secret. - + Deletes a secret by its three-level (fully qualified) name. - + You must be the owner of the secret or a metastore admin. Arguments: @@ -259,12 +259,12 @@ func newGetSecret() *cobra.Command { cmd.Use = "get-secret FULL_NAME" cmd.Short = `Get a secret.` cmd.Long = `Get a secret. - + Gets a secret by its three-level (fully qualified) name. - + You must be a metastore admin, the owner of the secret, or have the **MANAGE** privilege on the secret. - + The secret value isn't returned by default. To retrieve it, you must also have the **READ_SECRET** privilege and set **include_value** to true in the request. @@ -342,12 +342,12 @@ func newListSecrets() *cobra.Command { cmd.Use = "list-secrets" cmd.Short = `List secrets.` cmd.Long = `List secrets. - + Lists secrets in Unity Catalog. - + You must be a metastore admin, the owner of the secret, or have the **MANAGE** privilege on the secret. - + Both **catalog_name** and **schema_name** must be specified together to filter secrets within a specific schema. Results are paginated; use the **page_token** field from the response to retrieve subsequent pages.` @@ -415,12 +415,12 @@ func newUpdateSecret() *cobra.Command { cmd.Use = "update-secret FULL_NAME UPDATE_MASK NAME CATALOG_NAME SCHEMA_NAME VALUE" cmd.Short = `Update a secret.` cmd.Long = `Update a secret. - + Updates an existing secret in Unity Catalog. - + You must be the owner of the secret or a metastore admin. If you are a metastore admin, only the **owner** field can be changed. - + Use the **update_mask** field to specify which fields to update. Supported updatable fields include **value**, **comment**, **owner**, and **expire_time**. diff --git a/cmd/workspace/supervisor-agents/supervisor-agents.go b/cmd/workspace/supervisor-agents/supervisor-agents.go index c4bc9338804..afad5cbe5e0 100755 --- a/cmd/workspace/supervisor-agents/supervisor-agents.go +++ b/cmd/workspace/supervisor-agents/supervisor-agents.go @@ -88,7 +88,7 @@ func newCreateExample() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Create an example for a Supervisor Agent. - + Creates an example for a Supervisor Agent. Arguments: @@ -189,7 +189,7 @@ func newCreateSupervisorAgent() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Create a Supervisor Agent. - + Creates a new Supervisor Agent. Arguments: @@ -284,7 +284,7 @@ func newCreateTool() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Create a Tool. - + Creates a Tool under a Supervisor Agent. Specify one of "genie_space", "knowledge_assistant", "uc_function", "uc_connection", "app", "volume", "lakeview_dashboard", "uc_table", "vector_search_index", "catalog", "schema", @@ -378,7 +378,7 @@ func newDeleteExample() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Delete an example from a Supervisor Agent. - + Deletes an example from a Supervisor Agent. Arguments: @@ -439,7 +439,7 @@ func newDeleteSupervisorAgent() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Delete a Supervisor Agent. - + Deletes a Supervisor Agent. Arguments: @@ -500,7 +500,7 @@ func newDeleteTool() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Delete a Tool. - + Deletes a Tool. Arguments: @@ -561,7 +561,7 @@ func newGetExample() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Get an example from a Supervisor Agent. - + Gets an example from a Supervisor Agent. Arguments: @@ -623,7 +623,7 @@ func newGetPermissionLevels() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Get supervisor agent permission levels. - + Gets the permission levels that a user can have on an object. Arguments: @@ -684,7 +684,7 @@ func newGetPermissions() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Get supervisor agent permissions. - + Gets the permissions of a supervisor agent. Supervisor agents can inherit permissions from their root object. @@ -746,7 +746,7 @@ func newGetSupervisorAgent() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Get a Supervisor Agent. - + Gets a Supervisor Agent. Arguments: @@ -808,7 +808,7 @@ func newGetTool() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Get a Tool. - + Gets a Tool. Arguments: @@ -883,7 +883,7 @@ func newListExamples() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. List examples for a Supervisor Agent. - + Lists examples under a Supervisor Agent. Arguments: @@ -961,7 +961,7 @@ func newListSupervisorAgents() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. List Supervisor Agents. - + Lists Supervisor Agents.` cmd.Annotations = make(map[string]string) @@ -1033,7 +1033,7 @@ func newListTools() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. List Tools. - + Lists Tools under a Supervisor Agent. Arguments: @@ -1103,7 +1103,7 @@ func newSetPermissions() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Set supervisor agent permissions. - + Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct permissions if none are specified. Objects can inherit permissions from their root object. @@ -1184,7 +1184,7 @@ func newUpdateExample() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Update an example in a Supervisor Agent. - + Updates an example in a Supervisor Agent. Arguments: @@ -1288,7 +1288,7 @@ func newUpdatePermissions() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Update supervisor agent permissions. - + Updates the permissions on a supervisor agent. Supervisor agents can inherit permissions from their root object. @@ -1370,7 +1370,7 @@ func newUpdateSupervisorAgent() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Update a Supervisor Agent. - + Updates a Supervisor Agent. The fields that are required depend on the paths specified in update_mask. Only fields included in the mask will be updated. @@ -1474,7 +1474,7 @@ func newUpdateTool() *cobra.Command { cmd.Long = `This command is in Beta and may change without notice. Update a Tool. - + Updates a Tool. Only the description field can be updated. To change immutable fields such as tool type, spec, or tool ID, delete the tool and recreate it. diff --git a/cmd/workspace/temporary-volume-credentials/temporary-volume-credentials.go b/cmd/workspace/temporary-volume-credentials/temporary-volume-credentials.go index 620231272dc..d3ed061d399 100755 --- a/cmd/workspace/temporary-volume-credentials/temporary-volume-credentials.go +++ b/cmd/workspace/temporary-volume-credentials/temporary-volume-credentials.go @@ -27,7 +27,7 @@ func New() *cobra.Command { via AWS Security Token Service (STS), Azure utilizes Shared Access Signatures (SAS) for its data storage services, and Google Cloud supports temporary credentials through OAuth 2.0. - + Temporary volume credentials ensure that data access is limited in scope and duration, reducing the risk of unauthorized access or misuse. To use the temporary volume credentials API, a metastore admin needs to enable the @@ -81,7 +81,7 @@ func newGenerateTemporaryVolumeCredentials() *cobra.Command { cmd.Use = "generate-temporary-volume-credentials" cmd.Short = `Generate a temporary volume credential.` cmd.Long = `Generate a temporary volume credential. - + Get a short-lived credential for directly accessing the volume data on cloud storage. The metastore must have **external_access_enabled** flag set to true (default false). The caller must have the **EXTERNAL_USE_SCHEMA** privilege on