All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.sdk.service.settings.WorkspaceConfImpl Maven / Gradle / Ivy

There is a newer version: 0.35.0
Show newest version
// 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 WorkspaceConf */
@Generated
class WorkspaceConfImpl implements WorkspaceConfService {
  private final ApiClient apiClient;

  public WorkspaceConfImpl(ApiClient apiClient) {
    this.apiClient = apiClient;
  }

  @Override
  public Map getStatus(GetStatusRequest request) {
    String path = "/api/2.0/workspace-conf";
    Map headers = new HashMap<>();
    headers.put("Accept", "application/json");
    return apiClient.getStringMap(path, request, headers);
  }

  @Override
  public void setStatus(Map request) {
    String path = "/api/2.0/workspace-conf";
    Map headers = new HashMap<>();
    headers.put("Content-Type", "application/json");
    apiClient.PATCH(path, request, SetStatusResponse.class, headers);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy