com.databricks.sdk.service.settings.DefaultNamespaceImpl Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.settings;
import com.databricks.sdk.core.ApiClient;
import com.databricks.sdk.support.Generated;
import java.util.HashMap;
import java.util.Map;
/** Package-local implementation of DefaultNamespace */
@Generated
class DefaultNamespaceImpl implements DefaultNamespaceService {
private final ApiClient apiClient;
public DefaultNamespaceImpl(ApiClient apiClient) {
this.apiClient = apiClient;
}
@Override
public DeleteDefaultNamespaceSettingResponse delete(
DeleteDefaultNamespaceSettingRequest request) {
String path = "/api/2.0/settings/types/default_namespace_ws/names/default";
Map headers = new HashMap<>();
headers.put("Accept", "application/json");
return apiClient.DELETE(path, request, DeleteDefaultNamespaceSettingResponse.class, headers);
}
@Override
public DefaultNamespaceSetting get(GetDefaultNamespaceSettingRequest request) {
String path = "/api/2.0/settings/types/default_namespace_ws/names/default";
Map headers = new HashMap<>();
headers.put("Accept", "application/json");
return apiClient.GET(path, request, DefaultNamespaceSetting.class, headers);
}
@Override
public DefaultNamespaceSetting update(UpdateDefaultNamespaceSettingRequest request) {
String path = "/api/2.0/settings/types/default_namespace_ws/names/default";
Map headers = new HashMap<>();
headers.put("Accept", "application/json");
headers.put("Content-Type", "application/json");
return apiClient.PATCH(path, request, DefaultNamespaceSetting.class, headers);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy