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

com.databricks.sdk.service.marketplace.ProviderProviderAnalyticsDashboardsImpl Maven / Gradle / Ivy

There is a newer version: 0.38.0
Show newest version
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.marketplace;

import com.databricks.sdk.core.ApiClient;
import com.databricks.sdk.support.Generated;
import java.util.HashMap;
import java.util.Map;

/** Package-local implementation of ProviderProviderAnalyticsDashboards */
@Generated
class ProviderProviderAnalyticsDashboardsImpl
    implements ProviderProviderAnalyticsDashboardsService {
  private final ApiClient apiClient;

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

  @Override
  public ProviderAnalyticsDashboard create() {
    String path = "/api/2.0/marketplace-provider/analytics_dashboard";
    Map headers = new HashMap<>();
    headers.put("Accept", "application/json");
    return apiClient.POST(path, ProviderAnalyticsDashboard.class, headers);
  }

  @Override
  public ListProviderAnalyticsDashboardResponse get() {
    String path = "/api/2.0/marketplace-provider/analytics_dashboard";
    Map headers = new HashMap<>();
    headers.put("Accept", "application/json");
    return apiClient.GET(path, ListProviderAnalyticsDashboardResponse.class, headers);
  }

  @Override
  public GetLatestVersionProviderAnalyticsDashboardResponse getLatestVersion() {
    String path = "/api/2.0/marketplace-provider/analytics_dashboard/latest";
    Map headers = new HashMap<>();
    headers.put("Accept", "application/json");
    return apiClient.GET(path, GetLatestVersionProviderAnalyticsDashboardResponse.class, headers);
  }

  @Override
  public UpdateProviderAnalyticsDashboardResponse update(
      UpdateProviderAnalyticsDashboardRequest request) {
    String path =
        String.format("/api/2.0/marketplace-provider/analytics_dashboard/%s", request.getId());
    Map headers = new HashMap<>();
    headers.put("Accept", "application/json");
    headers.put("Content-Type", "application/json");
    return apiClient.PUT(path, request, UpdateProviderAnalyticsDashboardResponse.class, headers);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy