Skip to content

Commit 7ebcb4e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add missing request body examples for 15 operations [AAWF-1196] (#3745)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent bc92028 commit 7ebcb4e

183 files changed

Lines changed: 553 additions & 310 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 319 additions & 70 deletions
Large diffs are not rendered by default.

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

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ public void setApiClient(ApiClient apiClient) {
158158
*
159159
* <p>See {@link #activateContentPackWithHttpInfo}.
160160
*
161-
* @param contentPackId The ID of the content pack to activate (for example, <code>aws-cloudtrail
162-
* </code>). (required)
161+
* @param contentPackId The ID of the content pack to activate. (required)
163162
* @throws ApiException if fails to make API call
164163
*/
165164
public void activateContentPack(String contentPackId) throws ApiException {
@@ -171,8 +170,7 @@ public void activateContentPack(String contentPackId) throws ApiException {
171170
*
172171
* <p>See {@link #activateContentPackWithHttpInfoAsync}.
173172
*
174-
* @param contentPackId The ID of the content pack to activate (for example, <code>aws-cloudtrail
175-
* </code>). (required)
173+
* @param contentPackId The ID of the content pack to activate. (required)
176174
* @return CompletableFuture
177175
*/
178176
public CompletableFuture<Void> activateContentPackAsync(String contentPackId) {
@@ -184,11 +182,11 @@ public CompletableFuture<Void> activateContentPackAsync(String contentPackId) {
184182
}
185183

186184
/**
187-
* Activate a Cloud SIEM content pack. This operation configures the necessary log filters or
188-
* security filters depending on the pricing model and updates the content pack activation state.
185+
* Activate a security monitoring content pack. This operation configures the necessary log
186+
* filters or security filters depending on the pricing model and updates the content pack
187+
* activation state.
189188
*
190-
* @param contentPackId The ID of the content pack to activate (for example, <code>aws-cloudtrail
191-
* </code>). (required)
189+
* @param contentPackId The ID of the content pack to activate. (required)
192190
* @return ApiResponse&lt;Void&gt;
193191
* @throws ApiException if fails to make API call
194192
* @http.response.details
@@ -234,7 +232,7 @@ public ApiResponse<Void> activateContentPackWithHttpInfo(String contentPackId)
234232
localVarHeaderParams,
235233
new HashMap<String, String>(),
236234
new String[] {"*/*"},
237-
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
235+
new String[] {"apiKeyAuth", "appKeyAuth"});
238236
return apiClient.invokeAPI(
239237
"PUT",
240238
builder,
@@ -251,8 +249,7 @@ public ApiResponse<Void> activateContentPackWithHttpInfo(String contentPackId)
251249
*
252250
* <p>See {@link #activateContentPackWithHttpInfo}.
253251
*
254-
* @param contentPackId The ID of the content pack to activate (for example, <code>aws-cloudtrail
255-
* </code>). (required)
252+
* @param contentPackId The ID of the content pack to activate. (required)
256253
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
257254
*/
258255
public CompletableFuture<ApiResponse<Void>> activateContentPackWithHttpInfoAsync(
@@ -297,7 +294,7 @@ public CompletableFuture<ApiResponse<Void>> activateContentPackWithHttpInfoAsync
297294
localVarHeaderParams,
298295
new HashMap<String, String>(),
299296
new String[] {"*/*"},
300-
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
297+
new String[] {"apiKeyAuth", "appKeyAuth"});
301298
} catch (ApiException ex) {
302299
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
303300
result.completeExceptionally(ex);
@@ -3426,8 +3423,7 @@ public ApiResponse<NotificationRuleResponse> createVulnerabilityNotificationRule
34263423
*
34273424
* <p>See {@link #deactivateContentPackWithHttpInfo}.
34283425
*
3429-
* @param contentPackId The ID of the content pack to deactivate (for example, <code>
3430-
* aws-cloudtrail</code>). (required)
3426+
* @param contentPackId The ID of the content pack to deactivate. (required)
34313427
* @throws ApiException if fails to make API call
34323428
*/
34333429
public void deactivateContentPack(String contentPackId) throws ApiException {
@@ -3439,8 +3435,7 @@ public void deactivateContentPack(String contentPackId) throws ApiException {
34393435
*
34403436
* <p>See {@link #deactivateContentPackWithHttpInfoAsync}.
34413437
*
3442-
* @param contentPackId The ID of the content pack to deactivate (for example, <code>
3443-
* aws-cloudtrail</code>). (required)
3438+
* @param contentPackId The ID of the content pack to deactivate. (required)
34443439
* @return CompletableFuture
34453440
*/
34463441
public CompletableFuture<Void> deactivateContentPackAsync(String contentPackId) {
@@ -3452,11 +3447,11 @@ public CompletableFuture<Void> deactivateContentPackAsync(String contentPackId)
34523447
}
34533448

34543449
/**
3455-
* Deactivate a Cloud SIEM content pack. This operation removes the content pack's configuration
3456-
* from log filters or security filters and updates the content pack activation state.
3450+
* Deactivate a security monitoring content pack. This operation removes the content pack's
3451+
* configuration from log filters or security filters and updates the content pack activation
3452+
* state.
34573453
*
3458-
* @param contentPackId The ID of the content pack to deactivate (for example, <code>
3459-
* aws-cloudtrail</code>). (required)
3454+
* @param contentPackId The ID of the content pack to deactivate. (required)
34603455
* @return ApiResponse&lt;Void&gt;
34613456
* @throws ApiException if fails to make API call
34623457
* @http.response.details
@@ -3502,7 +3497,7 @@ public ApiResponse<Void> deactivateContentPackWithHttpInfo(String contentPackId)
35023497
localVarHeaderParams,
35033498
new HashMap<String, String>(),
35043499
new String[] {"*/*"},
3505-
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
3500+
new String[] {"apiKeyAuth", "appKeyAuth"});
35063501
return apiClient.invokeAPI(
35073502
"PUT",
35083503
builder,
@@ -3519,8 +3514,7 @@ public ApiResponse<Void> deactivateContentPackWithHttpInfo(String contentPackId)
35193514
*
35203515
* <p>See {@link #deactivateContentPackWithHttpInfo}.
35213516
*
3522-
* @param contentPackId The ID of the content pack to deactivate (for example, <code>
3523-
* aws-cloudtrail</code>). (required)
3517+
* @param contentPackId The ID of the content pack to deactivate. (required)
35243518
* @return CompletableFuture&lt;ApiResponse&lt;Void&gt;&gt;
35253519
*/
35263520
public CompletableFuture<ApiResponse<Void>> deactivateContentPackWithHttpInfoAsync(
@@ -3565,7 +3559,7 @@ public CompletableFuture<ApiResponse<Void>> deactivateContentPackWithHttpInfoAsy
35653559
localVarHeaderParams,
35663560
new HashMap<String, String>(),
35673561
new String[] {"*/*"},
3568-
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
3562+
new String[] {"apiKeyAuth", "appKeyAuth"});
35693563
} catch (ApiException ex) {
35703564
CompletableFuture<ApiResponse<Void>> result = new CompletableFuture<>();
35713565
result.completeExceptionally(ex);
@@ -5765,8 +5759,9 @@ public SecurityMonitoringContentPackStatesResponse getContentPacksStates() throw
57655759
}
57665760

57675761
/**
5768-
* Get the activation state, integration status, and log collection status for all Cloud SIEM
5769-
* content packs.
5762+
* Get the activation and configuration states for all security monitoring content packs. This
5763+
* endpoint returns status information about each content pack including activation state,
5764+
* integration status, and log collection status.
57705765
*
57715766
* @return ApiResponse&lt;SecurityMonitoringContentPackStatesResponse&gt;
57725767
* @throws ApiException if fails to make API call
@@ -5803,7 +5798,7 @@ public SecurityMonitoringContentPackStatesResponse getContentPacksStates() throw
58035798
localVarHeaderParams,
58045799
new HashMap<String, String>(),
58055800
new String[] {"application/json"},
5806-
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
5801+
new String[] {"apiKeyAuth", "appKeyAuth"});
58075802
return apiClient.invokeAPI(
58085803
"GET",
58095804
builder,
@@ -5851,7 +5846,7 @@ public SecurityMonitoringContentPackStatesResponse getContentPacksStates() throw
58515846
localVarHeaderParams,
58525847
new HashMap<String, String>(),
58535848
new String[] {"application/json"},
5854-
new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"});
5849+
new String[] {"apiKeyAuth", "appKeyAuth"});
58555850
} catch (ApiException ex) {
58565851
CompletableFuture<ApiResponse<SecurityMonitoringContentPackStatesResponse>> result =
58575852
new CompletableFuture<>();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.HashSet;
1919
import java.util.Set;
2020

21-
/** The activation status of a content pack. */
21+
/** The activation status of a content pack */
2222
@JsonSerialize(
2323
using =
2424
SecurityMonitoringContentPackActivation.SecurityMonitoringContentPackActivationSerializer

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.HashSet;
1919
import java.util.Set;
2020

21-
/** The installation status of the related integration. */
21+
/** The installation status of the related integration */
2222
@JsonSerialize(
2323
using =
2424
SecurityMonitoringContentPackIntegrationStatus

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public SecurityMonitoringContentPackStateAttributes cpActivation(
112112
}
113113

114114
/**
115-
* The activation status of a content pack.
115+
* The activation status of a content pack
116116
*
117117
* @return cpActivation
118118
*/
@@ -136,8 +136,8 @@ public SecurityMonitoringContentPackStateAttributes filtersConfiguredForLogs(
136136
}
137137

138138
/**
139-
* Whether filters (Security Filters or Index Query depending on the pricing model) are present
140-
* and correctly configured to route logs into Cloud SIEM.
139+
* Whether filters (Security Filters or Index Query depending on the pricing model) are configured
140+
* for logs
141141
*
142142
* @return filtersConfiguredForLogs
143143
*/
@@ -159,7 +159,7 @@ public SecurityMonitoringContentPackStateAttributes integrationInstalledStatus(
159159
}
160160

161161
/**
162-
* The installation status of the related integration.
162+
* The installation status of the related integration
163163
*
164164
* @return integrationInstalledStatus
165165
*/
@@ -186,7 +186,7 @@ public SecurityMonitoringContentPackStateAttributes logsLastCollected(
186186
}
187187

188188
/**
189-
* Timestamp bucket indicating when logs were last collected.
189+
* Timestamp bucket indicating when logs were last collected
190190
*
191191
* @return logsLastCollected
192192
*/
@@ -210,8 +210,7 @@ public SecurityMonitoringContentPackStateAttributes logsSeenFromAnyIndex(
210210
}
211211

212212
/**
213-
* Whether logs for this content pack have been seen in any Datadog index within the last 72
214-
* hours.
213+
* Whether logs have been seen from any index
215214
*
216215
* @return logsSeenFromAnyIndex
217216
*/
@@ -233,7 +232,7 @@ public SecurityMonitoringContentPackStateAttributes state(
233232
}
234233

235234
/**
236-
* The current operational status of a content pack.
235+
* The current status of a content pack
237236
*
238237
* @return state
239238
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public SecurityMonitoringContentPackStateMeta sku(SecurityMonitoringSKU sku) {
7373
}
7474

7575
/**
76-
* The Cloud SIEM pricing model (SKU) for the organization.
76+
* The SIEM pricing model (SKU) for the organization
7777
*
7878
* @return sku
7979
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.HashSet;
1919
import java.util.Set;
2020

21-
/** The current operational status of a content pack. */
21+
/** The current status of a content pack */
2222
@JsonSerialize(
2323
using = SecurityMonitoringContentPackStatus.SecurityMonitoringContentPackStatusSerializer.class)
2424
public class SecurityMonitoringContentPackStatus extends ModelEnum<String> {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.HashSet;
1919
import java.util.Set;
2020

21-
/** Timestamp bucket indicating when logs were last collected. */
21+
/** Timestamp bucket indicating when logs were last collected */
2222
@JsonSerialize(
2323
using =
2424
SecurityMonitoringContentPackTimestampBucket

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.HashSet;
1919
import java.util.Set;
2020

21-
/** The Cloud SIEM pricing model (SKU) for the organization. */
21+
/** The SIEM pricing model (SKU) for the organization */
2222
@JsonSerialize(using = SecurityMonitoringSKU.SecurityMonitoringSKUSerializer.class)
2323
public class SecurityMonitoringSKU extends ModelEnum<String> {
2424

src/test/resources/cassettes/features/v1/Get_all_hosts_with_metadata_deserializes_successfully.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
"timeToLive": {
2929
"unlimited": true
3030
},
31-
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31e"
31+
"id": "d5bade64-6ebb-4f4d-903d-8069b52bb31d"
3232
}
3333
]

0 commit comments

Comments
 (0)