Skip to content

Commit 4050626

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d8e6baf of spec repo
1 parent 2cb4717 commit 4050626

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85404,6 +85404,14 @@ paths:
8540485404
parameters:
8540585405
- $ref: '#/components/parameters/PageSize'
8540685406
- $ref: '#/components/parameters/PageNumber'
85407+
- description: A search query to filter security rules. You can filter by attributes
85408+
such as `type`, `source`, `tags`.
85409+
example: type:signal_correlation source:cloudtrail
85410+
in: query
85411+
name: query
85412+
required: false
85413+
schema:
85414+
type: string
8540785415
responses:
8540885416
'200':
8540985417
content:

features/support/scenarios_model_mapping.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4490,6 +4490,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
44904490
"type": "number",
44914491
"format": "int64",
44924492
},
4493+
"query": {
4494+
"type": "string",
4495+
"format": "",
4496+
},
44934497
"operationResponseType": "SecurityMonitoringListRulesResponse",
44944498
},
44954499
"v2.CreateSecurityMonitoringRule": {

packages/datadog-api-client-v2/apis/SecurityMonitoringApi.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,6 +2635,7 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
26352635
public async listSecurityMonitoringRules(
26362636
pageSize?: number,
26372637
pageNumber?: number,
2638+
query?: string,
26382639
_options?: Configuration
26392640
): Promise<RequestContext> {
26402641
const _config = _options || this.configuration;
@@ -2664,6 +2665,13 @@ export class SecurityMonitoringApiRequestFactory extends BaseAPIRequestFactory {
26642665
""
26652666
);
26662667
}
2668+
if (query !== undefined) {
2669+
requestContext.setQueryParam(
2670+
"query",
2671+
ObjectSerializer.serialize(query, "string", ""),
2672+
""
2673+
);
2674+
}
26672675

26682676
// Apply auth methods
26692677
applySecurityAuthentication(_config, requestContext, [
@@ -9616,6 +9624,11 @@ export interface SecurityMonitoringApiListSecurityMonitoringRulesRequest {
96169624
* @type number
96179625
*/
96189626
pageNumber?: number;
9627+
/**
9628+
* A search query to filter security rules. You can filter by attributes such as `type`, `source`, `tags`.
9629+
* @type string
9630+
*/
9631+
query?: string;
96199632
}
96209633

96219634
export interface SecurityMonitoringApiListSecurityMonitoringSignalsRequest {
@@ -11622,6 +11635,7 @@ export class SecurityMonitoringApi {
1162211635
this.requestFactory.listSecurityMonitoringRules(
1162311636
param.pageSize,
1162411637
param.pageNumber,
11638+
param.query,
1162511639
options
1162611640
);
1162711641
return requestContextPromise.then((requestContext) => {

0 commit comments

Comments
 (0)