com.databricks.sdk.service.compute.PolicyFamiliesImpl 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 PolicyFamilies */
@Generated
class PolicyFamiliesImpl implements PolicyFamiliesService {
private final ApiClient apiClient;
public PolicyFamiliesImpl(ApiClient apiClient) {
this.apiClient = apiClient;
}
@Override
public PolicyFamily get(GetPolicyFamilyRequest request) {
String path = String.format("/api/2.0/policy-families/%s", request.getPolicyFamilyId());
Map headers = new HashMap<>();
headers.put("Accept", "application/json");
return apiClient.GET(path, request, PolicyFamily.class, headers);
}
@Override
public ListPolicyFamiliesResponse list(ListPolicyFamiliesRequest request) {
String path = "/api/2.0/policy-families";
Map headers = new HashMap<>();
headers.put("Accept", "application/json");
return apiClient.GET(path, request, ListPolicyFamiliesResponse.class, headers);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy