@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceDefinitionApi extends Object
| Constructor and Description |
|---|
ServiceDefinitionApi() |
ServiceDefinitionApi(ApiClient apiClient) |
public ServiceDefinitionApi()
public ServiceDefinitionApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic ServiceDefinitionCreateResponse createOrUpdateServiceDefinitions(ServiceDefinitionsCreateRequest body) throws ApiException
body - Service Definition YAML/JSON. (required)ApiException - if fails to make API callpublic CompletableFuture<ServiceDefinitionCreateResponse> createOrUpdateServiceDefinitionsAsync(ServiceDefinitionsCreateRequest body)
body - Service Definition YAML/JSON. (required)public ApiResponse<ServiceDefinitionCreateResponse> createOrUpdateServiceDefinitionsWithHttpInfo(ServiceDefinitionsCreateRequest body) throws ApiException
body - Service Definition YAML/JSON. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | CREATED | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ServiceDefinitionCreateResponse>> createOrUpdateServiceDefinitionsWithHttpInfoAsync(ServiceDefinitionsCreateRequest body)
body - Service Definition YAML/JSON. (required)public void deleteServiceDefinition(String serviceName) throws ApiException
serviceName - The name of the service. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteServiceDefinitionAsync(String serviceName)
See deleteServiceDefinitionWithHttpInfoAsync(java.lang.String).
serviceName - The name of the service. (required)public ApiResponse<Void> deleteServiceDefinitionWithHttpInfo(String serviceName) throws ApiException
serviceName - The name of the service. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteServiceDefinitionWithHttpInfoAsync(String serviceName)
serviceName - The name of the service. (required)public ServiceDefinitionGetResponse getServiceDefinition(String serviceName) throws ApiException
serviceName - The name of the service. (required)ApiException - if fails to make API callpublic CompletableFuture<ServiceDefinitionGetResponse> getServiceDefinitionAsync(String serviceName)
See getServiceDefinitionWithHttpInfoAsync(java.lang.String).
serviceName - The name of the service. (required)public ApiResponse<ServiceDefinitionGetResponse> getServiceDefinitionWithHttpInfo(String serviceName) throws ApiException
serviceName - The name of the service. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ServiceDefinitionGetResponse>> getServiceDefinitionWithHttpInfoAsync(String serviceName)
serviceName - The name of the service. (required)public ServiceDefinitionsListResponse listServiceDefinitions() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ServiceDefinitionsListResponse> listServiceDefinitionsAsync()
public ApiResponse<ServiceDefinitionsListResponse> listServiceDefinitionsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ServiceDefinitionsListResponse>> listServiceDefinitionsWithHttpInfoAsync()
Copyright © 2023. All rights reserved.