Skip to content

Commit b8340a0

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1211759 of spec repo
1 parent 3372c61 commit b8340a0

3 files changed

Lines changed: 88 additions & 13 deletions

File tree

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "4413e63",
3-
"generated": "2025-08-19 20:29:58.463"
2+
"spec_repo_commit": "1211759",
3+
"generated": "2025-08-21 16:45:54.489"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50180,9 +50180,20 @@ paths:
5018050180
- cloud_cost_management_write
5018150181
/api/v2/cost_by_tag/active_billing_dimensions:
5018250182
get:
50183-
description: Get active billing dimensions for cost attribution. Cost data for
50184-
a given month becomes available no later than the 19th of the following month.
50183+
description: Get active billing dimensions for cost attribution in a given month.
50184+
Note that billing dimensions active in a given month may not appear in the
50185+
Monthly Cost Attribution API response until the 19th of the following month.
50186+
For the most accurate results, request the same month for both endpoints.
5018550187
operationId: GetActiveBillingDimensions
50188+
parameters:
50189+
- description: 'Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]
50190+
for billing dimensions active this month. Defaults to the current month.'
50191+
in: query
50192+
name: month
50193+
required: false
50194+
schema:
50195+
format: date-time
50196+
type: string
5018650197
responses:
5018750198
'200':
5018850199
content:

src/main/java/com/datadog/api/client/v2/api/UsageMeteringApi.java

Lines changed: 73 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,23 @@ public void setApiClient(ApiClient apiClient) {
5454
this.apiClient = apiClient;
5555
}
5656

57+
/** Manage optional parameters to getActiveBillingDimensions. */
58+
public static class GetActiveBillingDimensionsOptionalParameters {
59+
private OffsetDateTime month;
60+
61+
/**
62+
* Set month.
63+
*
64+
* @param month Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for billing
65+
* dimensions active this month. Defaults to the current month. (optional)
66+
* @return GetActiveBillingDimensionsOptionalParameters
67+
*/
68+
public GetActiveBillingDimensionsOptionalParameters month(OffsetDateTime month) {
69+
this.month = month;
70+
return this;
71+
}
72+
}
73+
5774
/**
5875
* Get active billing dimensions for cost attribution.
5976
*
@@ -63,7 +80,9 @@ public void setApiClient(ApiClient apiClient) {
6380
* @throws ApiException if fails to make API call
6481
*/
6582
public ActiveBillingDimensionsResponse getActiveBillingDimensions() throws ApiException {
66-
return getActiveBillingDimensionsWithHttpInfo().getData();
83+
return getActiveBillingDimensionsWithHttpInfo(
84+
new GetActiveBillingDimensionsOptionalParameters())
85+
.getData();
6786
}
6887

6988
/**
@@ -74,17 +93,52 @@ public ActiveBillingDimensionsResponse getActiveBillingDimensions() throws ApiEx
7493
* @return CompletableFuture<ActiveBillingDimensionsResponse>
7594
*/
7695
public CompletableFuture<ActiveBillingDimensionsResponse> getActiveBillingDimensionsAsync() {
77-
return getActiveBillingDimensionsWithHttpInfoAsync()
96+
return getActiveBillingDimensionsWithHttpInfoAsync(
97+
new GetActiveBillingDimensionsOptionalParameters())
7898
.thenApply(
7999
response -> {
80100
return response.getData();
81101
});
82102
}
83103

84104
/**
85-
* Get active billing dimensions for cost attribution. Cost data for a given month becomes
86-
* available no later than the 19th of the following month.
105+
* Get active billing dimensions for cost attribution.
106+
*
107+
* <p>See {@link #getActiveBillingDimensionsWithHttpInfo}.
108+
*
109+
* @param parameters Optional parameters for the request.
110+
* @return ActiveBillingDimensionsResponse
111+
* @throws ApiException if fails to make API call
112+
*/
113+
public ActiveBillingDimensionsResponse getActiveBillingDimensions(
114+
GetActiveBillingDimensionsOptionalParameters parameters) throws ApiException {
115+
return getActiveBillingDimensionsWithHttpInfo(parameters).getData();
116+
}
117+
118+
/**
119+
* Get active billing dimensions for cost attribution.
87120
*
121+
* <p>See {@link #getActiveBillingDimensionsWithHttpInfoAsync}.
122+
*
123+
* @param parameters Optional parameters for the request.
124+
* @return CompletableFuture&lt;ActiveBillingDimensionsResponse&gt;
125+
*/
126+
public CompletableFuture<ActiveBillingDimensionsResponse> getActiveBillingDimensionsAsync(
127+
GetActiveBillingDimensionsOptionalParameters parameters) {
128+
return getActiveBillingDimensionsWithHttpInfoAsync(parameters)
129+
.thenApply(
130+
response -> {
131+
return response.getData();
132+
});
133+
}
134+
135+
/**
136+
* Get active billing dimensions for cost attribution in a given month. Note that billing
137+
* dimensions active in a given month may not appear in the Monthly Cost Attribution API response
138+
* until the 19th of the following month. For the most accurate results, request the same month
139+
* for both endpoints.
140+
*
141+
* @param parameters Optional parameters for the request.
88142
* @return ApiResponse&lt;ActiveBillingDimensionsResponse&gt;
89143
* @throws ApiException if fails to make API call
90144
* @http.response.details
@@ -97,19 +151,23 @@ public CompletableFuture<ActiveBillingDimensionsResponse> getActiveBillingDimens
97151
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
98152
* </table>
99153
*/
100-
public ApiResponse<ActiveBillingDimensionsResponse> getActiveBillingDimensionsWithHttpInfo()
101-
throws ApiException {
154+
public ApiResponse<ActiveBillingDimensionsResponse> getActiveBillingDimensionsWithHttpInfo(
155+
GetActiveBillingDimensionsOptionalParameters parameters) throws ApiException {
102156
Object localVarPostBody = null;
157+
OffsetDateTime month = parameters.month;
103158
// create path and map variables
104159
String localVarPath = "/api/v2/cost_by_tag/active_billing_dimensions";
105160

161+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
106162
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
107163

164+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "month", month));
165+
108166
Invocation.Builder builder =
109167
apiClient.createBuilder(
110168
"v2.UsageMeteringApi.getActiveBillingDimensions",
111169
localVarPath,
112-
new ArrayList<Pair>(),
170+
localVarQueryParams,
113171
localVarHeaderParams,
114172
new HashMap<String, String>(),
115173
new String[] {"application/json;datetime-format=rfc3339"},
@@ -130,23 +188,29 @@ public ApiResponse<ActiveBillingDimensionsResponse> getActiveBillingDimensionsWi
130188
*
131189
* <p>See {@link #getActiveBillingDimensionsWithHttpInfo}.
132190
*
191+
* @param parameters Optional parameters for the request.
133192
* @return CompletableFuture&lt;ApiResponse&lt;ActiveBillingDimensionsResponse&gt;&gt;
134193
*/
135194
public CompletableFuture<ApiResponse<ActiveBillingDimensionsResponse>>
136-
getActiveBillingDimensionsWithHttpInfoAsync() {
195+
getActiveBillingDimensionsWithHttpInfoAsync(
196+
GetActiveBillingDimensionsOptionalParameters parameters) {
137197
Object localVarPostBody = null;
198+
OffsetDateTime month = parameters.month;
138199
// create path and map variables
139200
String localVarPath = "/api/v2/cost_by_tag/active_billing_dimensions";
140201

202+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
141203
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
142204

205+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "month", month));
206+
143207
Invocation.Builder builder;
144208
try {
145209
builder =
146210
apiClient.createBuilder(
147211
"v2.UsageMeteringApi.getActiveBillingDimensions",
148212
localVarPath,
149-
new ArrayList<Pair>(),
213+
localVarQueryParams,
150214
localVarHeaderParams,
151215
new HashMap<String, String>(),
152216
new String[] {"application/json;datetime-format=rfc3339"},

0 commit comments

Comments
 (0)