Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove /api/v2/cost/enabled #2603

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-10 13:52:27.205718",
"spec_repo_commit": "4f71be94"
"regenerated": "2024-12-10 14:43:54.934240",
"spec_repo_commit": "408f0b84"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-10 13:52:27.224743",
"spec_repo_commit": "4f71be94"
"regenerated": "2024-12-10 14:43:54.953306",
"spec_repo_commit": "408f0b84"
}
}
}
68 changes: 0 additions & 68 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4929,42 +4929,6 @@ components:
type: string
x-enum-varnames:
- CLOUD_CONFIGURATION
CloudCostActivity:
description: Cloud Cost Activity.
properties:
attributes:
$ref: '#/components/schemas/CloudCostActivityAttributes'
type:
$ref: '#/components/schemas/CloudCostActivityType'
required:
- attributes
- type
type: object
CloudCostActivityAttributes:
description: Attributes for Cloud Cost activity.
properties:
is_enabled:
description: Whether or not the cloud account is enabled.
example: true
type: boolean
required:
- is_enabled
type: object
CloudCostActivityResponse:
description: Response for Cloud Cost activity.
properties:
data:
$ref: '#/components/schemas/CloudCostActivity'
type: object
CloudCostActivityType:
default: cloud_cost_activity
description: Type of Cloud Cost Activity.
enum:
- cloud_cost_activity
example: cloud_cost_activity
type: string
x-enum-varnames:
- CLOUD_COST_ACTIVITY
CloudWorkloadSecurityAgentRuleAction:
description: The action the rule can perform if triggered.
properties:
Expand Down Expand Up @@ -30572,38 +30536,6 @@ paths:
summary: Get Custom Costs file
tags:
- Cloud Cost Management
/api/v2/cost/enabled:
get:
deprecated: true
description: Get the Cloud Cost Management activity.
operationId: GetCloudCostActivity
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/CloudCostActivityResponse'
description: OK
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Forbidden
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cloud_cost_management_read
summary: Cloud Cost Enabled
tags:
- Cloud Cost Management
x-permission:
operator: OR
permissions:
- cloud_cost_management_read
/api/v2/cost_by_tag/active_billing_dimensions:
get:
description: Get active billing dimensions for cost attribution. Cost data for
Expand Down
24 changes: 0 additions & 24 deletions examples/v2/cloud-cost-management/GetCloudCostActivity.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import com.datadog.api.client.v2.model.AzureUCConfigPatchRequest;
import com.datadog.api.client.v2.model.AzureUCConfigPostRequest;
import com.datadog.api.client.v2.model.AzureUCConfigsResponse;
import com.datadog.api.client.v2.model.CloudCostActivityResponse;
import com.datadog.api.client.v2.model.CustomCostsFileGetResponse;
import com.datadog.api.client.v2.model.CustomCostsFileLineItem;
import com.datadog.api.client.v2.model.CustomCostsFileListResponse;
Expand Down Expand Up @@ -736,126 +735,6 @@ public CompletableFuture<ApiResponse<Void>> deleteCustomCostsFileWithHttpInfoAsy
null);
}

/**
* Cloud Cost Enabled.
*
* <p>See {@link #getCloudCostActivityWithHttpInfo}.
*
* @return CloudCostActivityResponse
* @throws ApiException if fails to make API call
* @deprecated
*/
@Deprecated
public CloudCostActivityResponse getCloudCostActivity() throws ApiException {
return getCloudCostActivityWithHttpInfo().getData();
}

/**
* Cloud Cost Enabled.
*
* <p>See {@link #getCloudCostActivityWithHttpInfoAsync}.
*
* @return CompletableFuture&lt;CloudCostActivityResponse&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<CloudCostActivityResponse> getCloudCostActivityAsync() {
return getCloudCostActivityWithHttpInfoAsync()
.thenApply(
response -> {
return response.getData();
});
}

/**
* Get the Cloud Cost Management activity.
*
* @return ApiResponse&lt;CloudCostActivityResponse&gt;
* @throws ApiException if fails to make API call
* @http.response.details
* <table border="1">
* <caption>Response details</caption>
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*
* @deprecated
*/
@Deprecated
public ApiResponse<CloudCostActivityResponse> getCloudCostActivityWithHttpInfo()
throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/api/v2/cost/enabled";

Map<String, String> localVarHeaderParams = new HashMap<String, String>();

Invocation.Builder builder =
apiClient.createBuilder(
"v2.CloudCostManagementApi.getCloudCostActivity",
localVarPath,
new ArrayList<Pair>(),
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
return apiClient.invokeAPI(
"GET",
builder,
localVarHeaderParams,
new String[] {},
localVarPostBody,
new HashMap<String, Object>(),
false,
new GenericType<CloudCostActivityResponse>() {});
}

/**
* Cloud Cost Enabled.
*
* <p>See {@link #getCloudCostActivityWithHttpInfo}.
*
* @return CompletableFuture&lt;ApiResponse&lt;CloudCostActivityResponse&gt;&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<CloudCostActivityResponse>>
getCloudCostActivityWithHttpInfoAsync() {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/api/v2/cost/enabled";

Map<String, String> localVarHeaderParams = new HashMap<String, String>();

Invocation.Builder builder;
try {
builder =
apiClient.createBuilder(
"v2.CloudCostManagementApi.getCloudCostActivity",
localVarPath,
new ArrayList<Pair>(),
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
} catch (ApiException ex) {
CompletableFuture<ApiResponse<CloudCostActivityResponse>> result = new CompletableFuture<>();
result.completeExceptionally(ex);
return result;
}
return apiClient.invokeAPIAsync(
"GET",
builder,
localVarHeaderParams,
new String[] {},
localVarPostBody,
new HashMap<String, Object>(),
false,
new GenericType<CloudCostActivityResponse>() {});
}

/**
* Get Custom Costs file.
*
Expand Down
Loading
Loading