com.databricks.sdk.service.compute.PolicyComplianceForClustersImpl Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.compute;
import com.databricks.sdk.core.ApiClient;
import com.databricks.sdk.support.Generated;
import java.util.HashMap;
import java.util.Map;
/** Package-local implementation of PolicyComplianceForClusters */
@Generated
class PolicyComplianceForClustersImpl implements PolicyComplianceForClustersService {
private final ApiClient apiClient;
public PolicyComplianceForClustersImpl(ApiClient apiClient) {
this.apiClient = apiClient;
}
@Override
public EnforceClusterComplianceResponse enforceCompliance(
EnforceClusterComplianceRequest request) {
String path = "/api/2.0/policies/clusters/enforce-compliance";
Map headers = new HashMap<>();
headers.put("Accept", "application/json");
headers.put("Content-Type", "application/json");
return apiClient.POST(path, request, EnforceClusterComplianceResponse.class, headers);
}
@Override
public GetClusterComplianceResponse getCompliance(GetClusterComplianceRequest request) {
String path = "/api/2.0/policies/clusters/get-compliance";
Map headers = new HashMap<>();
headers.put("Accept", "application/json");
return apiClient.GET(path, request, GetClusterComplianceResponse.class, headers);
}
@Override
public ListClusterCompliancesResponse listCompliance(ListClusterCompliancesRequest request) {
String path = "/api/2.0/policies/clusters/list-compliance";
Map headers = new HashMap<>();
headers.put("Accept", "application/json");
return apiClient.GET(path, request, ListClusterCompliancesResponse.class, headers);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy