@Generated public class SettingsAPI extends Object
Through this API, users can retrieve, set, or modify the default namespace used when queries do not reference a fully qualified three-level name. For example, if you use the API to set 'retail_prod' as the default catalog, then a query 'SELECT * FROM myTable' would reference the object 'retail_prod.default.myTable' (the schema 'default' is always assumed).
This setting requires a restart of clusters and SQL warehouses to take effect. Additionally, the default namespace only applies when using Unity Catalog-enabled compute.
| Constructor and Description |
|---|
SettingsAPI(ApiClient apiClient)
Regular-use constructor
|
SettingsAPI(SettingsService mock)
Constructor for mocks
|
public SettingsAPI(ApiClient apiClient)
public SettingsAPI(SettingsService mock)
public DeleteDefaultNamespaceSettingResponse deleteDefaultNamespaceSetting(DeleteDefaultNamespaceSettingRequest request)
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 retrieved by making a GET request before the DELETE request. If the setting is updated/deleted concurrently, DELETE will fail with 409 and the request will need to be retried by using the fresh etag in the 409 response.
public DeleteRestrictWorkspaceAdminsSettingResponse deleteRestrictWorkspaceAdminsSetting(DeleteRestrictWorkspaceAdminsSettingRequest request)
Reverts the restrict workspace admins setting status for the workspace. A fresh etag needs to be provided in DELETE requests (as a query parameter). The etag can be retrieved by making a GET request before the DELETE request. If the setting is updated/deleted concurrently, DELETE will fail with 409 and the request will need to be retried by using the fresh etag in the 409 response.
public DefaultNamespaceSetting getDefaultNamespaceSetting(GetDefaultNamespaceSettingRequest request)
Gets the default namespace setting.
public RestrictWorkspaceAdminsSetting getRestrictWorkspaceAdminsSetting(GetRestrictWorkspaceAdminsSettingRequest request)
Gets the restrict workspace admins setting.
public DefaultNamespaceSetting updateDefaultNamespaceSetting(boolean allowMissing, DefaultNamespaceSetting setting, String fieldMask)
public DefaultNamespaceSetting updateDefaultNamespaceSetting(UpdateDefaultNamespaceSettingRequest request)
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 be retrieved by making a GET request before the PATCH request. Note that if the setting does not exist, GET will return a NOT_FOUND error and the etag will be present in the error response, which should be set in the PATCH request. If the setting is updated concurrently, PATCH will fail with 409 and the request will need to be retried by using the fresh etag in the 409 response.
public RestrictWorkspaceAdminsSetting updateRestrictWorkspaceAdminsSetting(boolean allowMissing, RestrictWorkspaceAdminsSetting setting, String fieldMask)
public RestrictWorkspaceAdminsSetting updateRestrictWorkspaceAdminsSetting(UpdateRestrictWorkspaceAdminsSettingRequest request)
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 etag can be retrieved by making a GET request before the PATCH request. If the setting is updated concurrently, PATCH will fail with 409 and the request will need to be retried by using the fresh etag in the 409 response.
public SettingsService impl()
Copyright © 2024. All rights reserved.