Skip to content

Commit c190b46

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 663f45f of spec repo
1 parent a8800d6 commit c190b46

File tree

6 files changed

+141
-21
lines changed

6 files changed

+141
-21
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17596,6 +17596,18 @@ components:
1759617596
CustomCostListResponseMeta:
1759717597
description: Meta for the response from the List Custom Costs endpoints.
1759817598
properties:
17599+
count_by_status:
17600+
additionalProperties:
17601+
format: int64
17602+
type: integer
17603+
description: Number of Custom Costs files per status.
17604+
type: object
17605+
providers:
17606+
description: List of available providers.
17607+
items:
17608+
description: A provider name.
17609+
type: string
17610+
type: array
1759917611
total_filtered_count:
1760017612
description: Number of Custom Costs files returned by the List Custom Costs endpoint
1760117613
format: int64
@@ -60999,7 +61011,7 @@ components:
6099961011
- TIMESTAMP_DESCENDING
6100061012
SecurityMonitoringStandardDataSource:
6100161013
default: logs
61002-
description: Source of events, either logs, audit trail, security signals, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
61014+
description: Source of events, either logs, audit trail, or Datadog events. `app_sec_spans` is deprecated in favor of `spans`.
6100361015
enum:
6100461016
- logs
6100561017
- audit
@@ -61008,7 +61020,6 @@ components:
6100861020
- security_runtime
6100961021
- network
6101061022
- events
61011-
- security_signals
6101261023
example: logs
6101361024
type: string
6101461025
x-enum-varnames:
@@ -61019,7 +61030,6 @@ components:
6101961030
- SECURITY_RUNTIME
6102061031
- NETWORK
6102161032
- EVENTS
61022-
- SECURITY_SIGNALS
6102361033
SecurityMonitoringStandardRuleCreatePayload:
6102461034
description: Create a new rule.
6102561035
properties:
@@ -84155,6 +84165,18 @@ paths:
8415584165
name: filter[status]
8415684166
schema:
8415784167
type: string
84168+
- description: Filter files by name with case-insensitive substring matching.
84169+
in: query
84170+
name: filter[name]
84171+
schema:
84172+
type: string
84173+
- description: Filter by provider.
84174+
in: query
84175+
name: filter[provider]
84176+
schema:
84177+
items:
84178+
type: string
84179+
type: array
8415884180
- description: Sort key with optional descending prefix
8415984181
in: query
8416084182
name: sort

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3215,6 +3215,8 @@ public static class ListCustomCostsFilesOptionalParameters {
32153215
private Long pageNumber;
32163216
private Long pageSize;
32173217
private String filterStatus;
3218+
private String filterName;
3219+
private List<String> filterProvider;
32183220
private String sort;
32193221

32203222
/**
@@ -3250,6 +3252,28 @@ public ListCustomCostsFilesOptionalParameters filterStatus(String filterStatus)
32503252
return this;
32513253
}
32523254

3255+
/**
3256+
* Set filterName.
3257+
*
3258+
* @param filterName Filter files by name with case-insensitive substring matching. (optional)
3259+
* @return ListCustomCostsFilesOptionalParameters
3260+
*/
3261+
public ListCustomCostsFilesOptionalParameters filterName(String filterName) {
3262+
this.filterName = filterName;
3263+
return this;
3264+
}
3265+
3266+
/**
3267+
* Set filterProvider.
3268+
*
3269+
* @param filterProvider Filter by provider. (optional)
3270+
* @return ListCustomCostsFilesOptionalParameters
3271+
*/
3272+
public ListCustomCostsFilesOptionalParameters filterProvider(List<String> filterProvider) {
3273+
this.filterProvider = filterProvider;
3274+
return this;
3275+
}
3276+
32533277
/**
32543278
* Set sort.
32553279
*
@@ -3342,6 +3366,8 @@ public ApiResponse<CustomCostsFileListResponse> listCustomCostsFilesWithHttpInfo
33423366
Long pageNumber = parameters.pageNumber;
33433367
Long pageSize = parameters.pageSize;
33443368
String filterStatus = parameters.filterStatus;
3369+
String filterName = parameters.filterName;
3370+
List<String> filterProvider = parameters.filterProvider;
33453371
String sort = parameters.sort;
33463372
// create path and map variables
33473373
String localVarPath = "/api/v2/cost/custom_costs";
@@ -3352,6 +3378,9 @@ public ApiResponse<CustomCostsFileListResponse> listCustomCostsFilesWithHttpInfo
33523378
localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber));
33533379
localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize));
33543380
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[status]", filterStatus));
3381+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[name]", filterName));
3382+
localVarQueryParams.addAll(
3383+
apiClient.parameterToPairs("multi", "filter[provider]", filterProvider));
33553384
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort));
33563385

33573386
Invocation.Builder builder =
@@ -3388,6 +3417,8 @@ public ApiResponse<CustomCostsFileListResponse> listCustomCostsFilesWithHttpInfo
33883417
Long pageNumber = parameters.pageNumber;
33893418
Long pageSize = parameters.pageSize;
33903419
String filterStatus = parameters.filterStatus;
3420+
String filterName = parameters.filterName;
3421+
List<String> filterProvider = parameters.filterProvider;
33913422
String sort = parameters.sort;
33923423
// create path and map variables
33933424
String localVarPath = "/api/v2/cost/custom_costs";
@@ -3398,6 +3429,9 @@ public ApiResponse<CustomCostsFileListResponse> listCustomCostsFilesWithHttpInfo
33983429
localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber));
33993430
localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize));
34003431
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[status]", filterStatus));
3432+
localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[name]", filterName));
3433+
localVarQueryParams.addAll(
3434+
apiClient.parameterToPairs("multi", "filter[provider]", filterProvider));
34013435
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort));
34023436

34033437
Invocation.Builder builder;

src/main/java/com/datadog/api/client/v2/model/CustomCostListResponseMeta.java

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,93 @@
1212
import com.fasterxml.jackson.annotation.JsonInclude;
1313
import com.fasterxml.jackson.annotation.JsonProperty;
1414
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
15+
import java.util.ArrayList;
1516
import java.util.HashMap;
17+
import java.util.List;
1618
import java.util.Map;
1719
import java.util.Objects;
1820

1921
/** Meta for the response from the List Custom Costs endpoints. */
2022
@JsonPropertyOrder({
23+
CustomCostListResponseMeta.JSON_PROPERTY_COUNT_BY_STATUS,
24+
CustomCostListResponseMeta.JSON_PROPERTY_PROVIDERS,
2125
CustomCostListResponseMeta.JSON_PROPERTY_TOTAL_FILTERED_COUNT,
2226
CustomCostListResponseMeta.JSON_PROPERTY_VERSION
2327
})
2428
@jakarta.annotation.Generated(
2529
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2630
public class CustomCostListResponseMeta {
2731
@JsonIgnore public boolean unparsed = false;
32+
public static final String JSON_PROPERTY_COUNT_BY_STATUS = "count_by_status";
33+
private Map<String, Long> countByStatus = null;
34+
35+
public static final String JSON_PROPERTY_PROVIDERS = "providers";
36+
private List<String> providers = null;
37+
2838
public static final String JSON_PROPERTY_TOTAL_FILTERED_COUNT = "total_filtered_count";
2939
private Long totalFilteredCount;
3040

3141
public static final String JSON_PROPERTY_VERSION = "version";
3242
private String version;
3343

44+
public CustomCostListResponseMeta countByStatus(Map<String, Long> countByStatus) {
45+
this.countByStatus = countByStatus;
46+
return this;
47+
}
48+
49+
public CustomCostListResponseMeta putCountByStatusItem(String key, Long countByStatusItem) {
50+
if (this.countByStatus == null) {
51+
this.countByStatus = new HashMap<>();
52+
}
53+
this.countByStatus.put(key, countByStatusItem);
54+
return this;
55+
}
56+
57+
/**
58+
* Number of Custom Costs files per status.
59+
*
60+
* @return countByStatus
61+
*/
62+
@jakarta.annotation.Nullable
63+
@JsonProperty(JSON_PROPERTY_COUNT_BY_STATUS)
64+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
65+
public Map<String, Long> getCountByStatus() {
66+
return countByStatus;
67+
}
68+
69+
public void setCountByStatus(Map<String, Long> countByStatus) {
70+
this.countByStatus = countByStatus;
71+
}
72+
73+
public CustomCostListResponseMeta providers(List<String> providers) {
74+
this.providers = providers;
75+
return this;
76+
}
77+
78+
public CustomCostListResponseMeta addProvidersItem(String providersItem) {
79+
if (this.providers == null) {
80+
this.providers = new ArrayList<>();
81+
}
82+
this.providers.add(providersItem);
83+
return this;
84+
}
85+
86+
/**
87+
* List of available providers.
88+
*
89+
* @return providers
90+
*/
91+
@jakarta.annotation.Nullable
92+
@JsonProperty(JSON_PROPERTY_PROVIDERS)
93+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
94+
public List<String> getProviders() {
95+
return providers;
96+
}
97+
98+
public void setProviders(List<String> providers) {
99+
this.providers = providers;
100+
}
101+
34102
public CustomCostListResponseMeta totalFilteredCount(Long totalFilteredCount) {
35103
this.totalFilteredCount = totalFilteredCount;
36104
return this;
@@ -129,21 +197,26 @@ public boolean equals(Object o) {
129197
return false;
130198
}
131199
CustomCostListResponseMeta customCostListResponseMeta = (CustomCostListResponseMeta) o;
132-
return Objects.equals(this.totalFilteredCount, customCostListResponseMeta.totalFilteredCount)
200+
return Objects.equals(this.countByStatus, customCostListResponseMeta.countByStatus)
201+
&& Objects.equals(this.providers, customCostListResponseMeta.providers)
202+
&& Objects.equals(this.totalFilteredCount, customCostListResponseMeta.totalFilteredCount)
133203
&& Objects.equals(this.version, customCostListResponseMeta.version)
134204
&& Objects.equals(
135205
this.additionalProperties, customCostListResponseMeta.additionalProperties);
136206
}
137207

138208
@Override
139209
public int hashCode() {
140-
return Objects.hash(totalFilteredCount, version, additionalProperties);
210+
return Objects.hash(
211+
countByStatus, providers, totalFilteredCount, version, additionalProperties);
141212
}
142213

143214
@Override
144215
public String toString() {
145216
StringBuilder sb = new StringBuilder();
146217
sb.append("class CustomCostListResponseMeta {\n");
218+
sb.append(" countByStatus: ").append(toIndentedString(countByStatus)).append("\n");
219+
sb.append(" providers: ").append(toIndentedString(providers)).append("\n");
147220
sb.append(" totalFilteredCount: ").append(toIndentedString(totalFilteredCount)).append("\n");
148221
sb.append(" version: ").append(toIndentedString(version)).append("\n");
149222
sb.append(" additionalProperties: ")

src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardDataSource.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
import java.util.Set;
2020

2121
/**
22-
* Source of events, either logs, audit trail, security signals, or Datadog events. <code>
23-
* app_sec_spans</code> is deprecated in favor of <code>spans</code>.
22+
* Source of events, either logs, audit trail, or Datadog events. <code>app_sec_spans</code> is
23+
* deprecated in favor of <code>spans</code>.
2424
*/
2525
@JsonSerialize(
2626
using =
@@ -30,14 +30,7 @@ public class SecurityMonitoringStandardDataSource extends ModelEnum<String> {
3030
private static final Set<String> allowedValues =
3131
new HashSet<String>(
3232
Arrays.asList(
33-
"logs",
34-
"audit",
35-
"app_sec_spans",
36-
"spans",
37-
"security_runtime",
38-
"network",
39-
"events",
40-
"security_signals"));
33+
"logs", "audit", "app_sec_spans", "spans", "security_runtime", "network", "events"));
4134

4235
public static final SecurityMonitoringStandardDataSource LOGS =
4336
new SecurityMonitoringStandardDataSource("logs");
@@ -53,8 +46,6 @@ public class SecurityMonitoringStandardDataSource extends ModelEnum<String> {
5346
new SecurityMonitoringStandardDataSource("network");
5447
public static final SecurityMonitoringStandardDataSource EVENTS =
5548
new SecurityMonitoringStandardDataSource("events");
56-
public static final SecurityMonitoringStandardDataSource SECURITY_SIGNALS =
57-
new SecurityMonitoringStandardDataSource("security_signals");
5849

5950
SecurityMonitoringStandardDataSource(String value) {
6051
super(value, allowedValues);

src/main/java/com/datadog/api/client/v2/model/SecurityMonitoringStandardRuleQuery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public SecurityMonitoringStandardRuleQuery dataSource(
130130
}
131131

132132
/**
133-
* Source of events, either logs, audit trail, security signals, or Datadog events. <code>
134-
* app_sec_spans</code> is deprecated in favor of <code>spans</code>.
133+
* Source of events, either logs, audit trail, or Datadog events. <code>app_sec_spans</code> is
134+
* deprecated in favor of <code>spans</code>.
135135
*
136136
* @return dataSource
137137
*/

src/main/java/com/datadog/api/client/v2/model/ThreatHuntingJobQuery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public ThreatHuntingJobQuery dataSource(SecurityMonitoringStandardDataSource dat
9191
}
9292

9393
/**
94-
* Source of events, either logs, audit trail, security signals, or Datadog events. <code>
95-
* app_sec_spans</code> is deprecated in favor of <code>spans</code>.
94+
* Source of events, either logs, audit trail, or Datadog events. <code>app_sec_spans</code> is
95+
* deprecated in favor of <code>spans</code>.
9696
*
9797
* @return dataSource
9898
*/

0 commit comments

Comments
 (0)