Skip to content

Commit 1307a7e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a9eed47 of spec repo (#4763)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent f0a753f commit 1307a7e

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38007,6 +38007,15 @@ paths:
3800738007
schema:
3800838008
format: int64
3800938009
type: integer
38010+
- description: |-
38011+
Whether to return only deleted service level objective objects.
38012+
example: true
38013+
in: query
38014+
name: is_deleted
38015+
required: false
38016+
schema:
38017+
default: false
38018+
type: boolean
3801038019
responses:
3801138020
"200":
3801238021
content:

features/support/scenarios_model_mapping.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,6 +1789,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
17891789
"type": "number",
17901790
"format": "int64",
17911791
},
1792+
"isDeleted": {
1793+
"type": "boolean",
1794+
"format": "",
1795+
},
17921796
"operationResponseType": "SLOListResponse",
17931797
},
17941798
"v1.CreateSLO": {

packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto
365365
metricsQuery?: string,
366366
limit?: number,
367367
offset?: number,
368+
isDeleted?: boolean,
368369
_options?: Configuration
369370
): Promise<RequestContext> {
370371
const _config = _options || this.configuration;
@@ -422,6 +423,13 @@ export class ServiceLevelObjectivesApiRequestFactory extends BaseAPIRequestFacto
422423
""
423424
);
424425
}
426+
if (isDeleted !== undefined) {
427+
requestContext.setQueryParam(
428+
"is_deleted",
429+
ObjectSerializer.serialize(isDeleted, "boolean", ""),
430+
""
431+
);
432+
}
425433

426434
// Apply auth methods
427435
applySecurityAuthentication(_config, requestContext, [
@@ -1280,6 +1288,11 @@ export interface ServiceLevelObjectivesApiListSLOsRequest {
12801288
* @type number
12811289
*/
12821290
offset?: number;
1291+
/**
1292+
* Whether to return only deleted service level objective objects.
1293+
* @type boolean
1294+
*/
1295+
isDeleted?: boolean;
12831296
}
12841297

12851298
export interface ServiceLevelObjectivesApiSearchSLORequest {
@@ -1523,6 +1536,7 @@ export class ServiceLevelObjectivesApi {
15231536
param.metricsQuery,
15241537
param.limit,
15251538
param.offset,
1539+
param.isDeleted,
15261540
options
15271541
);
15281542
return requestContextPromise.then((requestContext) => {
@@ -1554,6 +1568,7 @@ export class ServiceLevelObjectivesApi {
15541568
param.metricsQuery,
15551569
param.limit,
15561570
param.offset,
1571+
param.isDeleted,
15571572
options
15581573
);
15591574
const responseContext = await this.configuration.httpApi.send(

0 commit comments

Comments
 (0)