Package com.datadog.api.client.v2.api
Class ProductCatalogApi
java.lang.Object
com.datadog.api.client.v2.api.ProductCatalogApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ProductCatalogApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to listProductCatalogSKUs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the API client.List SKUs.listProductCatalogSKUs(ProductCatalogSKUsAPIVersion version, ProductCatalogApi.ListProductCatalogSKUsOptionalParameters parameters) List SKUs.List SKUs.listProductCatalogSKUsAsync(ProductCatalogSKUsAPIVersion version, ProductCatalogApi.ListProductCatalogSKUsOptionalParameters parameters) List SKUs.listProductCatalogSKUsWithHttpInfo(ProductCatalogSKUsAPIVersion version, ProductCatalogApi.ListProductCatalogSKUsOptionalParameters parameters) Get every generally available Datadog SKU, with the pricing and allotment metadata that applies to it, for the Datadog site serving the request.listProductCatalogSKUsWithHttpInfoAsync(ProductCatalogSKUsAPIVersion version, ProductCatalogApi.ListProductCatalogSKUsOptionalParameters parameters) List SKUs.voidsetApiClient(ApiClient apiClient) Set the API client.
-
Constructor Details
-
ProductCatalogApi
public ProductCatalogApi() -
ProductCatalogApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
listProductCatalogSKUs
public ProductCatalogSKUsResponse listProductCatalogSKUs(ProductCatalogSKUsAPIVersion version) throws ApiException - Parameters:
version- The version of the product catalog response contract to return.v1is the latest. This is independent of the/api/v2path segment, which is the version of the Datadog API itself. (required)- Returns:
- ProductCatalogSKUsResponse
- Throws:
ApiException- if fails to make API call
-
listProductCatalogSKUsAsync
public CompletableFuture<ProductCatalogSKUsResponse> listProductCatalogSKUsAsync(ProductCatalogSKUsAPIVersion version) - Parameters:
version- The version of the product catalog response contract to return.v1is the latest. This is independent of the/api/v2path segment, which is the version of the Datadog API itself. (required)- Returns:
- CompletableFuture<ProductCatalogSKUsResponse>
-
listProductCatalogSKUs
public ProductCatalogSKUsResponse listProductCatalogSKUs(ProductCatalogSKUsAPIVersion version, ProductCatalogApi.ListProductCatalogSKUsOptionalParameters parameters) throws ApiException - Parameters:
version- The version of the product catalog response contract to return.v1is the latest. This is independent of the/api/v2path segment, which is the version of the Datadog API itself. (required)parameters- Optional parameters for the request.- Returns:
- ProductCatalogSKUsResponse
- Throws:
ApiException- if fails to make API call
-
listProductCatalogSKUsAsync
public CompletableFuture<ProductCatalogSKUsResponse> listProductCatalogSKUsAsync(ProductCatalogSKUsAPIVersion version, ProductCatalogApi.ListProductCatalogSKUsOptionalParameters parameters) - Parameters:
version- The version of the product catalog response contract to return.v1is the latest. This is independent of the/api/v2path segment, which is the version of the Datadog API itself. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ProductCatalogSKUsResponse>
-
listProductCatalogSKUsWithHttpInfo
public ApiResponse<ProductCatalogSKUsResponse> listProductCatalogSKUsWithHttpInfo(ProductCatalogSKUsAPIVersion version, ProductCatalogApi.ListProductCatalogSKUsOptionalParameters parameters) throws ApiException Get every generally available Datadog SKU, with the pricing and allotment metadata that applies to it, for the Datadog site serving the request. A SKU is generally available when it is billed through a metered commitment or through automatic billing; SKUs in any other phase are not returned.Prices, allotments, and pricing tiers are returned as they were in effect on
as_of_date, which defaults to the date of the request. Prices are public list prices: they do not reflect discounts, commitments, or negotiated rates on an account.Each SKU is a separate resource in
data, identified by its SKU code, and sorted by that code in ascending order. The whole catalog is returned in a single response, so this endpoint is not paginated.- Parameters:
version- The version of the product catalog response contract to return.v1is the latest. This is independent of the/api/v2path segment, which is the version of the Datadog API itself. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<ProductCatalogSKUsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - version is missing or invalid, or as_of_date is malformed or in the future - 403 Forbidden - the caller has neither the billing_read nor the usage_read permission - 404 Not Found - the requested catalog version is not supported - 429 Too many requests -
-
listProductCatalogSKUsWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductCatalogSKUsResponse>> listProductCatalogSKUsWithHttpInfoAsync(ProductCatalogSKUsAPIVersion version, ProductCatalogApi.ListProductCatalogSKUsOptionalParameters parameters) - Parameters:
version- The version of the product catalog response contract to return.v1is the latest. This is independent of the/api/v2path segment, which is the version of the Datadog API itself. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ProductCatalogSKUsResponse>>
-