Skip to content

Commit 7df423b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f53ed834 of spec repo
1 parent 24bdc56 commit 7df423b

15 files changed

+1140
-6
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-07-08 19:08:06.298818",
8-
"spec_repo_commit": "7b042e12"
7+
"regenerated": "2025-07-09 08:27:15.673974",
8+
"spec_repo_commit": "f53ed834"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-07-08 19:08:06.315210",
13-
"spec_repo_commit": "7b042e12"
12+
"regenerated": "2025-07-09 08:27:15.690175",
13+
"spec_repo_commit": "f53ed834"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10668,6 +10668,7 @@ components:
1066810668
- $ref: '#/components/schemas/CustomDestinationForwardDestinationSplunk'
1066910669
- $ref: '#/components/schemas/CustomDestinationForwardDestinationElasticsearch'
1067010670
- $ref: '#/components/schemas/CustomDestinationForwardDestinationMicrosoftSentinel'
10671+
- $ref: '#/components/schemas/CustomDestinationForwardDestinationGoogleSecurityOperations'
1067110672
CustomDestinationForwardDestinationElasticsearch:
1067210673
description: The Elasticsearch destination.
1067310674
properties:
@@ -10725,6 +10726,42 @@ components:
1072510726
type: string
1072610727
x-enum-varnames:
1072710728
- ELASTICSEARCH
10729+
CustomDestinationForwardDestinationGoogleSecurityOperations:
10730+
description: The Google Security Operations destination.
10731+
properties:
10732+
auth:
10733+
$ref: '#/components/schemas/CustomDestinationGoogleSecurityOperationsDestinationAuth'
10734+
customer_id:
10735+
description: The customer ID of the Google Security Operations account.
10736+
example: 123-456-7890
10737+
type: string
10738+
namespace:
10739+
description: The namespace of the Google Security Operations account.
10740+
example: google-security-operations-namespace
10741+
type: string
10742+
regional_endpoint:
10743+
description: The `CustomDestinationForwardDestinationGoogleSecurityOperations`
10744+
`regional_endpoint`.
10745+
example: https://malachiteingestion-pa.googleapis.com
10746+
type: string
10747+
type:
10748+
$ref: '#/components/schemas/CustomDestinationForwardDestinationGoogleSecurityOperationsType'
10749+
required:
10750+
- type
10751+
- customer_id
10752+
- regional_endpoint
10753+
- namespace
10754+
- auth
10755+
type: object
10756+
CustomDestinationForwardDestinationGoogleSecurityOperationsType:
10757+
default: google_security_operations
10758+
description: Type of the Google Security Operations destination.
10759+
enum:
10760+
- google_security_operations
10761+
example: google_security_operations
10762+
type: string
10763+
x-enum-varnames:
10764+
- GOOGLE_SECURITY_OPERATIONS
1072810765
CustomDestinationForwardDestinationHttp:
1072910766
description: The HTTP destination.
1073010767
properties:
@@ -10826,6 +10863,55 @@ components:
1082610863
type: string
1082710864
x-enum-varnames:
1082810865
- SPLUNK_HEC
10866+
CustomDestinationGoogleSecurityOperationsDestinationAuth:
10867+
description: Google Security Operations destination authentication.
10868+
properties:
10869+
client_email:
10870+
description: The Google Security Operations client email.
10871+
10872+
type: string
10873+
client_id:
10874+
description: The Google Security Operations client ID. This field is not
10875+
returned by the API.
10876+
example: def123456
10877+
type: string
10878+
writeOnly: true
10879+
private_key:
10880+
description: The Google Security Operations private key. This field is not
10881+
returned by the API.
10882+
example: '-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBK...\n-----END
10883+
PRIVATE KEY-----\n'
10884+
type: string
10885+
writeOnly: true
10886+
private_key_id:
10887+
description: The Google Security Operations private key ID. This field is
10888+
not returned by the API.
10889+
example: abc12345678
10890+
type: string
10891+
writeOnly: true
10892+
project_id:
10893+
description: Google Security Operations project ID.
10894+
example: gcp-project
10895+
type: string
10896+
type:
10897+
$ref: '#/components/schemas/CustomDestinationGoogleSecurityOperationsDestinationAuthType'
10898+
required:
10899+
- type
10900+
- project_id
10901+
- private_key_id
10902+
- client_email
10903+
- client_id
10904+
- private_key
10905+
type: object
10906+
CustomDestinationGoogleSecurityOperationsDestinationAuthType:
10907+
default: gcp_private_key
10908+
description: Type of the Google Security Operations destination authentication.
10909+
enum:
10910+
- gcp_private_key
10911+
example: gcp_private_key
10912+
type: string
10913+
x-enum-varnames:
10914+
- GCP_PRIVATE_KEY
1082910915
CustomDestinationHttpDestinationAuth:
1083010916
description: Authentication method of the HTTP requests.
1083110917
oneOf:
@@ -10971,6 +11057,7 @@ components:
1097111057
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationSplunk'
1097211058
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationElasticsearch'
1097311059
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationMicrosoftSentinel'
11060+
- $ref: '#/components/schemas/CustomDestinationResponseForwardDestinationGoogleSecurityOperations'
1097411061
CustomDestinationResponseForwardDestinationElasticsearch:
1097511062
description: The Elasticsearch destination.
1097611063
properties:
@@ -11028,6 +11115,42 @@ components:
1102811115
type: string
1102911116
x-enum-varnames:
1103011117
- ELASTICSEARCH
11118+
CustomDestinationResponseForwardDestinationGoogleSecurityOperations:
11119+
description: The Google Security Operations destination.
11120+
properties:
11121+
auth:
11122+
$ref: '#/components/schemas/CustomDestinationResponseGoogleSecurityOperationsDestinationAuth'
11123+
customer_id:
11124+
description: The customer ID of the Google Security Operations account.
11125+
example: 123-456-7890
11126+
type: string
11127+
namespace:
11128+
description: The namespace of the Google Security Operations account.
11129+
example: google-security-operations-namespace
11130+
type: string
11131+
regional_endpoint:
11132+
description: The `CustomDestinationResponseForwardDestinationGoogleSecurityOperations`
11133+
`regional_endpoint`.
11134+
example: https://malachiteingestion-pa.googleapis.com
11135+
type: string
11136+
type:
11137+
$ref: '#/components/schemas/CustomDestinationResponseForwardDestinationGoogleSecurityOperationsType'
11138+
required:
11139+
- type
11140+
- customer_id
11141+
- regional_endpoint
11142+
- namespace
11143+
- auth
11144+
type: object
11145+
CustomDestinationResponseForwardDestinationGoogleSecurityOperationsType:
11146+
default: google_security_operations
11147+
description: Type of the Google Security Operations destination.
11148+
enum:
11149+
- google_security_operations
11150+
example: google_security_operations
11151+
type: string
11152+
x-enum-varnames:
11153+
- GOOGLE_SECURITY_OPERATIONS
1103111154
CustomDestinationResponseForwardDestinationHttp:
1103211155
description: The HTTP destination.
1103311156
properties:
@@ -11122,6 +11245,33 @@ components:
1112211245
type: string
1112311246
x-enum-varnames:
1112411247
- SPLUNK_HEC
11248+
CustomDestinationResponseGoogleSecurityOperationsDestinationAuth:
11249+
description: Google Security Operations destination authentication.
11250+
properties:
11251+
client_email:
11252+
description: The Google Security Operations client email.
11253+
11254+
type: string
11255+
project_id:
11256+
description: Google Security Operations project ID.
11257+
example: gcp-project
11258+
type: string
11259+
type:
11260+
$ref: '#/components/schemas/CustomDestinationResponseGoogleSecurityOperationsDestinationAuthType'
11261+
required:
11262+
- type
11263+
- project_id
11264+
- client_email
11265+
type: object
11266+
CustomDestinationResponseGoogleSecurityOperationsDestinationAuthType:
11267+
default: gcp_private_key
11268+
description: Type of the Google Security Operations destination authentication.
11269+
enum:
11270+
- gcp_private_key
11271+
example: gcp_private_key
11272+
type: string
11273+
x-enum-varnames:
11274+
- GCP_PRIVATE_KEY
1112511275
CustomDestinationResponseHttpDestinationAuth:
1112611276
description: Authentication method of the HTTP requests.
1112711277
oneOf:
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Create a Google Security Operations custom destination returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::LogsCustomDestinationsAPI.new
5+
6+
body = DatadogAPIClient::V2::CustomDestinationCreateRequest.new({
7+
data: DatadogAPIClient::V2::CustomDestinationCreateRequestDefinition.new({
8+
attributes: DatadogAPIClient::V2::CustomDestinationCreateRequestAttributes.new({
9+
enabled: false,
10+
forward_tags: false,
11+
forward_tags_restriction_list: [
12+
"datacenter",
13+
"host",
14+
],
15+
forward_tags_restriction_list_type: DatadogAPIClient::V2::CustomDestinationAttributeTagsRestrictionListType::ALLOW_LIST,
16+
forwarder_destination: DatadogAPIClient::V2::CustomDestinationForwardDestinationGoogleSecurityOperations.new({
17+
type: DatadogAPIClient::V2::CustomDestinationForwardDestinationGoogleSecurityOperationsType::GOOGLE_SECURITY_OPERATIONS,
18+
customer_id: "123-456-7890",
19+
regional_endpoint: "https://malachiteingestion-pa.googleapis.com",
20+
namespace: "google-security-operations-namespace",
21+
auth: DatadogAPIClient::V2::CustomDestinationGoogleSecurityOperationsDestinationAuth.new({
22+
type: DatadogAPIClient::V2::CustomDestinationGoogleSecurityOperationsDestinationAuthType::GCP_PRIVATE_KEY,
23+
project_id: "gcp-project",
24+
private_key_id: "abc12345678",
25+
client_email: "[email protected]",
26+
client_id: "def123456",
27+
private_key: '-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBK...\n-----END PRIVATE KEY-----\n',
28+
}),
29+
}),
30+
name: "Nginx logs",
31+
query: "source:nginx",
32+
}),
33+
type: DatadogAPIClient::V2::CustomDestinationType::CUSTOM_DESTINATION,
34+
}),
35+
})
36+
p api_instance.create_logs_custom_destination(body)

features/v2/logs_custom_destinations.feature

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,33 @@ Feature: Logs Custom Destinations
5757
And the response "data.attributes.forward_tags_restriction_list" array contains value "host"
5858
And the response "data.attributes.forward_tags_restriction_list_type" is equal to "ALLOW_LIST"
5959

60+
@team:DataDog/logs-backend @team:DataDog/logs-forwarding
61+
Scenario: Create a Google Security Operations custom destination returns "OK" response
62+
Given new "CreateLogsCustomDestination" request
63+
And body with value {"data": {"attributes": {"enabled": false, "forward_tags": false, "forward_tags_restriction_list": ["datacenter", "host"], "forward_tags_restriction_list_type": "ALLOW_LIST", "forwarder_destination": {"type": "google_security_operations", "customer_id": "123-456-7890", "regional_endpoint": "https://malachiteingestion-pa.googleapis.com", "namespace": "google-security-operations-namespace", "auth": {"type": "gcp_private_key", "project_id": "gcp-project", "private_key_id": "abc12345678", "client_email": "[email protected]", "client_id": "def123456", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBK...\n-----END PRIVATE KEY-----\n"}}, "name": "Nginx logs", "query": "source:nginx"}, "type": "custom_destination"}}
64+
When the request is sent
65+
Then the response status is 200 OK
66+
And the response "data.type" is equal to "custom_destination"
67+
And the response "data" has field "id"
68+
And the response "data.attributes.name" is equal to "Nginx logs"
69+
And the response "data.attributes.query" is equal to "source:nginx"
70+
And the response "data.attributes.forwarder_destination.type" is equal to "google_security_operations"
71+
And the response "data.attributes.forwarder_destination.customer_id" is equal to "123-456-7890"
72+
And the response "data.attributes.forwarder_destination.regional_endpoint" is equal to "https://malachiteingestion-pa.googleapis.com"
73+
And the response "data.attributes.forwarder_destination.namespace" is equal to "google-security-operations-namespace"
74+
And the response "data.attributes.forwarder_destination.auth.type" is equal to "gcp_private_key"
75+
And the response "data.attributes.forwarder_destination.auth.project_id" is equal to "gcp-project"
76+
And the response "data.attributes.forwarder_destination.auth.client_email" is equal to "[email protected]"
77+
And the response "data.attributes.forwarder_destination.auth" does not have field "private_key"
78+
And the response "data.attributes.forwarder_destination.auth" does not have field "private_key_id"
79+
And the response "data.attributes.forwarder_destination.auth" does not have field "client_id"
80+
And the response "data.attributes.enabled" is false
81+
And the response "data.attributes.forward_tags" is false
82+
And the response "data.attributes.forward_tags_restriction_list" has length 2
83+
And the response "data.attributes.forward_tags_restriction_list" array contains value "datacenter"
84+
And the response "data.attributes.forward_tags_restriction_list" array contains value "host"
85+
And the response "data.attributes.forward_tags_restriction_list_type" is equal to "ALLOW_LIST"
86+
6087
@team:DataDog/logs-backend @team:DataDog/logs-forwarding
6188
Scenario: Create a Microsoft Sentinel custom destination returns "OK" response
6289
Given new "CreateLogsCustomDestination" request

lib/datadog_api_client/inflector.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,12 +1532,16 @@ def overrides
15321532
"v2.custom_destination_forward_destination" => "CustomDestinationForwardDestination",
15331533
"v2.custom_destination_forward_destination_elasticsearch" => "CustomDestinationForwardDestinationElasticsearch",
15341534
"v2.custom_destination_forward_destination_elasticsearch_type" => "CustomDestinationForwardDestinationElasticsearchType",
1535+
"v2.custom_destination_forward_destination_google_security_operations" => "CustomDestinationForwardDestinationGoogleSecurityOperations",
1536+
"v2.custom_destination_forward_destination_google_security_operations_type" => "CustomDestinationForwardDestinationGoogleSecurityOperationsType",
15351537
"v2.custom_destination_forward_destination_http" => "CustomDestinationForwardDestinationHttp",
15361538
"v2.custom_destination_forward_destination_http_type" => "CustomDestinationForwardDestinationHttpType",
15371539
"v2.custom_destination_forward_destination_microsoft_sentinel" => "CustomDestinationForwardDestinationMicrosoftSentinel",
15381540
"v2.custom_destination_forward_destination_microsoft_sentinel_type" => "CustomDestinationForwardDestinationMicrosoftSentinelType",
15391541
"v2.custom_destination_forward_destination_splunk" => "CustomDestinationForwardDestinationSplunk",
15401542
"v2.custom_destination_forward_destination_splunk_type" => "CustomDestinationForwardDestinationSplunkType",
1543+
"v2.custom_destination_google_security_operations_destination_auth" => "CustomDestinationGoogleSecurityOperationsDestinationAuth",
1544+
"v2.custom_destination_google_security_operations_destination_auth_type" => "CustomDestinationGoogleSecurityOperationsDestinationAuthType",
15411545
"v2.custom_destination_http_destination_auth" => "CustomDestinationHttpDestinationAuth",
15421546
"v2.custom_destination_http_destination_auth_basic" => "CustomDestinationHttpDestinationAuthBasic",
15431547
"v2.custom_destination_http_destination_auth_basic_type" => "CustomDestinationHttpDestinationAuthBasicType",
@@ -1549,12 +1553,16 @@ def overrides
15491553
"v2.custom_destination_response_forward_destination" => "CustomDestinationResponseForwardDestination",
15501554
"v2.custom_destination_response_forward_destination_elasticsearch" => "CustomDestinationResponseForwardDestinationElasticsearch",
15511555
"v2.custom_destination_response_forward_destination_elasticsearch_type" => "CustomDestinationResponseForwardDestinationElasticsearchType",
1556+
"v2.custom_destination_response_forward_destination_google_security_operations" => "CustomDestinationResponseForwardDestinationGoogleSecurityOperations",
1557+
"v2.custom_destination_response_forward_destination_google_security_operations_type" => "CustomDestinationResponseForwardDestinationGoogleSecurityOperationsType",
15521558
"v2.custom_destination_response_forward_destination_http" => "CustomDestinationResponseForwardDestinationHttp",
15531559
"v2.custom_destination_response_forward_destination_http_type" => "CustomDestinationResponseForwardDestinationHttpType",
15541560
"v2.custom_destination_response_forward_destination_microsoft_sentinel" => "CustomDestinationResponseForwardDestinationMicrosoftSentinel",
15551561
"v2.custom_destination_response_forward_destination_microsoft_sentinel_type" => "CustomDestinationResponseForwardDestinationMicrosoftSentinelType",
15561562
"v2.custom_destination_response_forward_destination_splunk" => "CustomDestinationResponseForwardDestinationSplunk",
15571563
"v2.custom_destination_response_forward_destination_splunk_type" => "CustomDestinationResponseForwardDestinationSplunkType",
1564+
"v2.custom_destination_response_google_security_operations_destination_auth" => "CustomDestinationResponseGoogleSecurityOperationsDestinationAuth",
1565+
"v2.custom_destination_response_google_security_operations_destination_auth_type" => "CustomDestinationResponseGoogleSecurityOperationsDestinationAuthType",
15581566
"v2.custom_destination_response_http_destination_auth" => "CustomDestinationResponseHttpDestinationAuth",
15591567
"v2.custom_destination_response_http_destination_auth_basic" => "CustomDestinationResponseHttpDestinationAuthBasic",
15601568
"v2.custom_destination_response_http_destination_auth_basic_type" => "CustomDestinationResponseHttpDestinationAuthBasicType",

lib/datadog_api_client/v2/models/custom_destination_forward_destination.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def openapi_one_of
2929
:'CustomDestinationForwardDestinationHttp',
3030
:'CustomDestinationForwardDestinationSplunk',
3131
:'CustomDestinationForwardDestinationElasticsearch',
32-
:'CustomDestinationForwardDestinationMicrosoftSentinel'
32+
:'CustomDestinationForwardDestinationMicrosoftSentinel',
33+
:'CustomDestinationForwardDestinationGoogleSecurityOperations'
3334
]
3435
end
3536
# Builds the object

0 commit comments

Comments
 (0)