Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 73 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56769,19 +56769,35 @@ components:
- client_email
type: object
LogsArchiveIntegrationS3:
description: The S3 Archive's integration destination.
description: >-
The S3 Archive's integration destination. You must provide one of the following: `access_key_id` alone, or both `account_id` and `role_name` together.
oneOf:
- $ref: "#/components/schemas/LogsArchiveIntegrationS3AccessKey"
- $ref: "#/components/schemas/LogsArchiveIntegrationS3Role"
LogsArchiveIntegrationS3AccessKey:
description: The S3 Archive's integration destination using an access key.
properties:
access_key_id:
description: The access key ID for the integration.
example: AKIAIOSFODNN7EXAMPLE
type: string
required:
- access_key_id
type: object
LogsArchiveIntegrationS3Role:
description: The S3 Archive's integration destination using an IAM role.
properties:
account_id:
description: The account ID for the integration.
example: "123456789012"
type: string
role_name:
description: The path of the integration.
description: The name of the role to assume for the integration.
example: role-name
type: string
required:
- role_name
- account_id
- role_name
type: object
LogsArchiveOrder:
description: A ordered list of archive IDs.
Expand Down Expand Up @@ -149153,6 +149169,18 @@ paths:
- team:intake
- team:app
type: archives
s3_access_key_id:
value:
data:
attributes:
destination:
bucket: my-bucket
integration:
access_key_id: AKIAIOSFODNN7EXAMPLE
type: s3
name: Nginx Archive
query: source:nginx
type: archives
schema:
$ref: "#/components/schemas/LogsArchiveCreateRequest"
description: The definition of the new archive.
Expand All @@ -149178,6 +149206,21 @@ paths:
state: WORKING
id: 00000000-0000-0000-0000-000000000002
type: archives
s3_access_key_id:
value:
data:
attributes:
destination:
bucket: my-bucket
integration:
access_key_id: AKIAIOSFODNN7EXAMPLE
type: s3
include_tags: false
name: Nginx Archive
query: source:nginx
state: WORKING
id: 00000000-0000-0000-0000-000000000002
type: archives
schema:
$ref: "#/components/schemas/LogsArchive"
description: OK
Expand Down Expand Up @@ -149327,6 +149370,18 @@ paths:
- team:intake
- team:app
type: archives
s3_access_key_id:
value:
data:
attributes:
destination:
bucket: my-bucket
integration:
access_key_id: AKIAIOSFODNN7EXAMPLE
type: s3
name: Nginx Archive
query: source:nginx
type: archives
schema:
$ref: "#/components/schemas/LogsArchiveCreateRequest"
description: New definition of the archive.
Expand All @@ -149352,6 +149407,21 @@ paths:
state: WORKING
id: 00000000-0000-0000-0000-000000000004
type: archives
s3_access_key_id:
value:
data:
attributes:
destination:
bucket: my-bucket
integration:
access_key_id: AKIAIOSFODNN7EXAMPLE
type: s3
include_tags: false
name: Nginx Archive
query: source:nginx
state: WORKING
id: 00000000-0000-0000-0000-000000000004
type: archives
schema:
$ref: "#/components/schemas/LogsArchive"
description: OK
Expand Down
2 changes: 2 additions & 0 deletions packages/datadog-api-client-v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5088,6 +5088,8 @@ export { LogsArchiveEncryptionS3Type } from "./models/LogsArchiveEncryptionS3Typ
export { LogsArchiveIntegrationAzure } from "./models/LogsArchiveIntegrationAzure";
export { LogsArchiveIntegrationGCS } from "./models/LogsArchiveIntegrationGCS";
export { LogsArchiveIntegrationS3 } from "./models/LogsArchiveIntegrationS3";
export { LogsArchiveIntegrationS3AccessKey } from "./models/LogsArchiveIntegrationS3AccessKey";
export { LogsArchiveIntegrationS3Role } from "./models/LogsArchiveIntegrationS3Role";
export { LogsArchiveOrder } from "./models/LogsArchiveOrder";
export { LogsArchiveOrderAttributes } from "./models/LogsArchiveOrderAttributes";
export { LogsArchiveOrderDefinition } from "./models/LogsArchiveOrderDefinition";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class LogsArchiveDestinationS3 {
*/
"encryption"?: LogsArchiveEncryptionS3;
/**
* The S3 Archive's integration destination.
* The S3 Archive's integration destination. You must provide one of the following: `access_key_id` alone, or both `account_id` and `role_name` together.
*/
"integration": LogsArchiveIntegrationS3;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,60 +3,16 @@
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { LogsArchiveIntegrationS3AccessKey } from "./LogsArchiveIntegrationS3AccessKey";
import { LogsArchiveIntegrationS3Role } from "./LogsArchiveIntegrationS3Role";

import { AttributeTypeMap } from "../../datadog-api-client-common/util";
import { UnparsedObject } from "../../datadog-api-client-common/util";

/**
* The S3 Archive's integration destination.
* The S3 Archive's integration destination. You must provide one of the following: `access_key_id` alone, or both `account_id` and `role_name` together.
*/
export class LogsArchiveIntegrationS3 {
/**
* The account ID for the integration.
*/
"accountId": string;
/**
* The path of the integration.
*/
"roleName": string;

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
* the 'additionalProperties' keyword in the OAS document.
*/
"additionalProperties"?: { [key: string]: any };

/**
* @ignore
*/
"_unparsed"?: boolean;

/**
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
accountId: {
baseName: "account_id",
type: "string",
required: true,
},
roleName: {
baseName: "role_name",
type: "string",
required: true,
},
additionalProperties: {
baseName: "additionalProperties",
type: "{ [key: string]: any; }",
},
};

/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap {
return LogsArchiveIntegrationS3.attributeTypeMap;
}

public constructor() {}
}
export type LogsArchiveIntegrationS3 =
| LogsArchiveIntegrationS3AccessKey
| LogsArchiveIntegrationS3Role
| UnparsedObject;
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/

import { AttributeTypeMap } from "../../datadog-api-client-common/util";

/**
* The S3 Archive's integration destination using an access key.
*/
export class LogsArchiveIntegrationS3AccessKey {
/**
* The access key ID for the integration.
*/
"accessKeyId": string;

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
* the 'additionalProperties' keyword in the OAS document.
*/
"additionalProperties"?: { [key: string]: any };

/**
* @ignore
*/
"_unparsed"?: boolean;

/**
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
accessKeyId: {
baseName: "access_key_id",
type: "string",
required: true,
},
additionalProperties: {
baseName: "additionalProperties",
type: "{ [key: string]: any; }",
},
};

/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap {
return LogsArchiveIntegrationS3AccessKey.attributeTypeMap;
}

public constructor() {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/

import { AttributeTypeMap } from "../../datadog-api-client-common/util";

/**
* The S3 Archive's integration destination using an IAM role.
*/
export class LogsArchiveIntegrationS3Role {
/**
* The account ID for the integration.
*/
"accountId": string;
/**
* The name of the role to assume for the integration.
*/
"roleName": string;

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
* the 'additionalProperties' keyword in the OAS document.
*/
"additionalProperties"?: { [key: string]: any };

/**
* @ignore
*/
"_unparsed"?: boolean;

/**
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
accountId: {
baseName: "account_id",
type: "string",
required: true,
},
roleName: {
baseName: "role_name",
type: "string",
required: true,
},
additionalProperties: {
baseName: "additionalProperties",
type: "{ [key: string]: any; }",
},
};

/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap {
return LogsArchiveIntegrationS3Role.attributeTypeMap;
}

public constructor() {}
}
10 changes: 8 additions & 2 deletions packages/datadog-api-client-v2/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2610,7 +2610,8 @@ import { LogsArchiveDestinationS3 } from "./LogsArchiveDestinationS3";
import { LogsArchiveEncryptionS3 } from "./LogsArchiveEncryptionS3";
import { LogsArchiveIntegrationAzure } from "./LogsArchiveIntegrationAzure";
import { LogsArchiveIntegrationGCS } from "./LogsArchiveIntegrationGCS";
import { LogsArchiveIntegrationS3 } from "./LogsArchiveIntegrationS3";
import { LogsArchiveIntegrationS3AccessKey } from "./LogsArchiveIntegrationS3AccessKey";
import { LogsArchiveIntegrationS3Role } from "./LogsArchiveIntegrationS3Role";
import { LogsArchiveOrder } from "./LogsArchiveOrder";
import { LogsArchiveOrderAttributes } from "./LogsArchiveOrderAttributes";
import { LogsArchiveOrderDefinition } from "./LogsArchiveOrderDefinition";
Expand Down Expand Up @@ -11094,7 +11095,8 @@ const typeMap: { [index: string]: any } = {
LogsArchiveEncryptionS3: LogsArchiveEncryptionS3,
LogsArchiveIntegrationAzure: LogsArchiveIntegrationAzure,
LogsArchiveIntegrationGCS: LogsArchiveIntegrationGCS,
LogsArchiveIntegrationS3: LogsArchiveIntegrationS3,
LogsArchiveIntegrationS3AccessKey: LogsArchiveIntegrationS3AccessKey,
LogsArchiveIntegrationS3Role: LogsArchiveIntegrationS3Role,
LogsArchiveOrder: LogsArchiveOrder,
LogsArchiveOrderAttributes: LogsArchiveOrderAttributes,
LogsArchiveOrderDefinition: LogsArchiveOrderDefinition,
Expand Down Expand Up @@ -14552,6 +14554,10 @@ const oneOfMap: { [index: string]: string[] } = {
"LogsArchiveDestinationGCS",
"LogsArchiveDestinationS3",
],
LogsArchiveIntegrationS3: [
"LogsArchiveIntegrationS3AccessKey",
"LogsArchiveIntegrationS3Role",
],
LogsGroupByMissing: ["string", "number"],
LogsGroupByTotal: ["boolean", "string", "number"],
MetricAssetResponseIncluded: [
Expand Down
Loading