Skip to content

Commit ac78f4d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8d438ee of spec repo
1 parent 1b6bd64 commit ac78f4d

30 files changed

+984
-63
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "8001cbb",
3-
"generated": "2025-08-13 20:27:07.288"
2+
"spec_repo_commit": "8d438ee",
3+
"generated": "2025-08-14 20:28:39.307"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 110 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,26 +1431,29 @@ components:
14311431
- data
14321432
type: object
14331433
AWSAssumeRole:
1434-
description: The definition of `AWSAssumeRole` object.
1434+
description: The definition of the `AWSAssumeRole` object.
14351435
properties:
14361436
account_id:
1437-
description: AWS account the connection is created for
1437+
description: AWS account the connection is created for.
14381438
example: '111222333444'
14391439
pattern: ^\d{12}$
14401440
type: string
14411441
external_id:
14421442
description: External ID used to scope which connection can be used to assume
1443-
the role
1443+
the role.
14441444
example: 33a1011635c44b38a064cf14e82e1d8f
14451445
readOnly: true
14461446
type: string
1447+
generate_new_external_id:
1448+
description: Pass true if the `external_id` should be regenerated.
1449+
type: boolean
14471450
principal_id:
1448-
description: AWS account that will assume the role
1451+
description: AWS account that will assume the role.
14491452
example: '123456789012'
14501453
readOnly: true
14511454
type: string
14521455
role:
1453-
description: Role to assume
1456+
description: Role to assume.
14541457
example: my-role
14551458
type: string
14561459
type:
@@ -1461,26 +1464,26 @@ components:
14611464
- role
14621465
type: object
14631466
AWSAssumeRoleType:
1464-
description: The definition of `AWSAssumeRoleType` object.
1467+
description: The definition of the `AWSAssumeRole` object.
14651468
enum:
14661469
- AWSAssumeRole
14671470
example: AWSAssumeRole
14681471
type: string
14691472
x-enum-varnames:
14701473
- AWSASSUMEROLE
14711474
AWSAssumeRoleUpdate:
1472-
description: The definition of `AWSAssumeRoleUpdate` object.
1475+
description: The definition of the `AWSAssumeRole` object.
14731476
properties:
14741477
account_id:
1475-
description: AWS account the connection is created for
1478+
description: AWS account the connection is created for.
14761479
example: '111222333444'
14771480
pattern: ^\d{12}$
14781481
type: string
14791482
generate_new_external_id:
1480-
description: The `AWSAssumeRoleUpdate` `generate_new_external_id`.
1483+
description: Pass true if the `external_id` should be regenerated.
14811484
type: boolean
14821485
role:
1483-
description: Role to assume
1486+
description: Role to assume.
14841487
example: my-role
14851488
type: string
14861489
type:
@@ -1527,15 +1530,15 @@ components:
15271530
- role_name
15281531
type: object
15291532
AWSCredentials:
1530-
description: The definition of `AWSCredentials` object.
1533+
description: The definition of the `AWSCredentials` object.
15311534
oneOf:
15321535
- $ref: '#/components/schemas/AWSAssumeRole'
15331536
AWSCredentialsUpdate:
1534-
description: The definition of `AWSCredentialsUpdate` object.
1537+
description: The definition of the `AWSCredentialsUpdate` object.
15351538
oneOf:
15361539
- $ref: '#/components/schemas/AWSAssumeRoleUpdate'
15371540
AWSIntegration:
1538-
description: The definition of `AWSIntegration` object.
1541+
description: The definition of the `AWSIntegration` object.
15391542
properties:
15401543
credentials:
15411544
$ref: '#/components/schemas/AWSCredentials'
@@ -1594,15 +1597,15 @@ components:
15941597
x-enum-varnames:
15951598
- PERMISSIONS
15961599
AWSIntegrationType:
1597-
description: The definition of `AWSIntegrationType` object.
1600+
description: The definition of the `AWSIntegrationType` object.
15981601
enum:
15991602
- AWS
16001603
example: AWS
16011604
type: string
16021605
x-enum-varnames:
16031606
- AWS
16041607
AWSIntegrationUpdate:
1605-
description: The definition of `AWSIntegrationUpdate` object.
1608+
description: The definition of the `AWSIntegrationUpdate` object.
16061609
properties:
16071610
credentials:
16081611
$ref: '#/components/schemas/AWSCredentialsUpdate'
@@ -18478,6 +18481,46 @@ components:
1847818481
example: env:production
1847918482
type: string
1848018483
type: array
18484+
HTTPBasicAuth:
18485+
description: The definition of the `HTTPBasicAuth` object.
18486+
properties:
18487+
password:
18488+
description: Password used for authentication. Saved in a secret store
18489+
example: ''
18490+
type: string
18491+
type:
18492+
$ref: '#/components/schemas/HTTPBasicAuthType'
18493+
username:
18494+
description: Username used for authentication.
18495+
example: ''
18496+
type: string
18497+
required:
18498+
- type
18499+
- username
18500+
- password
18501+
type: object
18502+
HTTPBasicAuthType:
18503+
description: The definition of the `HTTPBasicAuth` object.
18504+
enum:
18505+
- HTTPBasicAuth
18506+
example: HTTPBasicAuth
18507+
type: string
18508+
x-enum-varnames:
18509+
- HTTPBASICAUTH
18510+
HTTPBasicAuthUpdate:
18511+
description: The definition of the `HTTPBasicAuth` object.
18512+
properties:
18513+
password:
18514+
description: Password used for authentication. Saved in a secret store
18515+
type: string
18516+
type:
18517+
$ref: '#/components/schemas/HTTPBasicAuthType'
18518+
username:
18519+
description: Username used for authentication.
18520+
type: string
18521+
required:
18522+
- type
18523+
type: object
1848118524
HTTPBody:
1848218525
description: The definition of `HTTPBody` object.
1848318526
properties:
@@ -18516,13 +18559,17 @@ components:
1851618559
type: array
1851718560
type: object
1851818561
HTTPCredentials:
18519-
description: The definition of `HTTPCredentials` object.
18562+
description: The definition of the `HTTPCredentials` object.
1852018563
oneOf:
1852118564
- $ref: '#/components/schemas/HTTPTokenAuth'
18565+
- $ref: '#/components/schemas/HTTPBasicAuth'
18566+
- $ref: '#/components/schemas/HTTPMtlsAuth'
1852218567
HTTPCredentialsUpdate:
18523-
description: The definition of `HTTPCredentialsUpdate` object.
18568+
description: The definition of the `HTTPCredentialsUpdate` object.
1852418569
oneOf:
1852518570
- $ref: '#/components/schemas/HTTPTokenAuthUpdate'
18571+
- $ref: '#/components/schemas/HTTPBasicAuthUpdate'
18572+
- $ref: '#/components/schemas/HTTPMtlsAuthUpdate'
1852618573
HTTPHeader:
1852718574
description: The definition of `HTTPHeader` object.
1852818575
properties:
@@ -18558,10 +18605,10 @@ components:
1855818605
- name
1855918606
type: object
1856018607
HTTPIntegration:
18561-
description: The definition of `HTTPIntegration` object.
18608+
description: The definition of the `HTTPIntegration` object.
1856218609
properties:
1856318610
base_url:
18564-
description: Base HTTP url for the integration
18611+
description: Base HTTP url for the integration.
1856518612
example: http://datadoghq.com
1856618613
type: string
1856718614
credentials:
@@ -18574,18 +18621,18 @@ components:
1857418621
- credentials
1857518622
type: object
1857618623
HTTPIntegrationType:
18577-
description: The definition of `HTTPIntegrationType` object.
18624+
description: The definition of the `HTTPIntegrationType` object.
1857818625
enum:
1857918626
- HTTP
1858018627
example: HTTP
1858118628
type: string
1858218629
x-enum-varnames:
1858318630
- HTTP
1858418631
HTTPIntegrationUpdate:
18585-
description: The definition of `HTTPIntegrationUpdate` object.
18632+
description: The definition of the `HTTPIntegrationUpdate` object.
1858618633
properties:
1858718634
base_url:
18588-
description: Base HTTP url for the integration
18635+
description: Base HTTP url for the integration.
1858918636
example: http://datadoghq.com
1859018637
type: string
1859118638
credentials:
@@ -18671,6 +18718,46 @@ components:
1867118718
required:
1867218719
- message
1867318720
type: object
18721+
HTTPMtlsAuth:
18722+
description: The definition of the `HTTPMtlsAuth` object.
18723+
properties:
18724+
certificate:
18725+
description: Certificate of authority used to sign the request.
18726+
example: ''
18727+
type: string
18728+
private_key:
18729+
description: Private key used for the MTLS handshake
18730+
example: ''
18731+
type: string
18732+
type:
18733+
$ref: '#/components/schemas/HTTPMtlsAuthType'
18734+
required:
18735+
- type
18736+
- certificate
18737+
- private_key
18738+
type: object
18739+
HTTPMtlsAuthType:
18740+
description: The definition of the `HTTPMtlsAuth` object.
18741+
enum:
18742+
- HTTPMtlsAuth
18743+
example: HTTPMtlsAuth
18744+
type: string
18745+
x-enum-varnames:
18746+
- HTTPMTLSAUTH
18747+
HTTPMtlsAuthUpdate:
18748+
description: The definition of the `HTTPMtlsAuth` object.
18749+
properties:
18750+
certificate:
18751+
description: Certificate of authority used to sign the request.
18752+
type: string
18753+
private_key:
18754+
description: Private key used for the MTLS handshake
18755+
type: string
18756+
type:
18757+
$ref: '#/components/schemas/HTTPMtlsAuthType'
18758+
required:
18759+
- type
18760+
type: object
1867418761
HTTPToken:
1867518762
description: The definition of `HTTPToken` object.
1867618763
properties:
@@ -18716,7 +18803,7 @@ components:
1871618803
- type
1871718804
type: object
1871818805
HTTPTokenAuthType:
18719-
description: The definition of `HTTPTokenAuthType` object.
18806+
description: The definition of the `HTTPTokenAuth` object.
1872018807
enum:
1872118808
- HTTPTokenAuth
1872218809
example: HTTPTokenAuth
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Create a new Action Connection with HTTPMtlsAuth returns "Successfully created Action Connection" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new
5+
6+
body = DatadogAPIClient::V2::CreateActionConnectionRequest.new({
7+
data: DatadogAPIClient::V2::ActionConnectionData.new({
8+
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
9+
attributes: DatadogAPIClient::V2::ActionConnectionAttributes.new({
10+
name: "HTTP mTLS Connection exampleactionconnection",
11+
integration: DatadogAPIClient::V2::HTTPIntegration.new({
12+
type: DatadogAPIClient::V2::HTTPIntegrationType::HTTP,
13+
base_url: "https://api.example.com",
14+
credentials: DatadogAPIClient::V2::HTTPMtlsAuth.new({
15+
type: DatadogAPIClient::V2::HTTPMtlsAuthType::HTTPMTLSAUTH,
16+
certificate: '-----BEGIN CERTIFICATE-----\nMIICXjCCAUYCCQDOGcCfCHfhPzANBgkqhkiG9w0BAQsFADAzMQswCQYDVQQGEwJV\nUzELMAkGA1UECAwCQ0ExFTATBgNVBAoMDERhdGFkb2cgSW5jLjAeFw0yNDA1MTQw\nMDA1NThaFw0yNTA1MTQwMDA1NThaMDMxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJD\nQTEVMBMGA1UECgwMRGF0YWRvZyBJbmMuMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A\nMIIBCgKCAQEAwQDTmLqWv2L6YhzBcjKgPEzd3kE+9dZ4hBXBCjK6HgF/3aOKOSYq\nM9KPFHgJj6SjUJ+8TqX4sV6yW5xGX8dKjOpTYQfExEjGYcVrqKoOGg2k6dGkHyGm\n2VzL4zKyK1C3zJ4KpJnMYK8dPPcgzJvO7jGxGKMgLVU3VNdxKGTrqKmC6RbZLQOz\nM3fLp7bF2VcJ6VkGKW+yBK6vVMbQKMvjTbGqr3vIRd8SZzKRTsyIzXQDKgOv2vPn\nSqYJjKFJ8vJ7JeH6zGyLjQ1cGVy9jJ3+TjJoJhCGOyGzJpBGIcXfYjFDLcSRh7KE\nQIDAQABo1MwUTAdBgNVHQ4EFgQU/V8vJkPJ8b9yQnC/9bJ2kJGJ5MjoyEwHwYDVR0j\nBBgwFoAU/V8vJkPJ8b9yQnC/9bJ2kJGJ5Mjo\n-----END CERTIFICATE-----',
17+
private_key: '-----BEGIN PRIVATE KEY-----\nMIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDBaNOMV7V8T7gR\nOmNcNfqGHxPrLLo1w2J7J8h6S8bVD9yCH2JKV8J5G2J8J0V8J3Jg8b3Jg8LxJgV\nV8J6JgV8J9JgJg8LJg8VJgV5JgLLJgVVJg8V4Jg8VLJg8V6JgV8JqJgVV8J3JgV\nV8J7JgVV8J5JgVV8J8JgVVJg8LJgJVLJgLVJgVVJgLJgVVJgVVJgVVJgLVJgVV\nJgVVJgVVJgLJgVVJgLVJgLLJgVVJgVLJgVVJgVLJgVVJgVVJgVVJgVVJgVVJg\nVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJgVVJ\nAgMBAAECggEBAKoJkJJJJkJJkJ\n-----END PRIVATE KEY-----',
18+
}),
19+
}),
20+
}),
21+
}),
22+
})
23+
p api_instance.create_action_connection(body)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Create a new Action Connection with HTTPBasicAuth returns "Successfully created Action Connection" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new
5+
6+
body = DatadogAPIClient::V2::CreateActionConnectionRequest.new({
7+
data: DatadogAPIClient::V2::ActionConnectionData.new({
8+
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
9+
attributes: DatadogAPIClient::V2::ActionConnectionAttributes.new({
10+
name: "HTTP Basic Auth Connection exampleactionconnection",
11+
integration: DatadogAPIClient::V2::HTTPIntegration.new({
12+
type: DatadogAPIClient::V2::HTTPIntegrationType::HTTP,
13+
base_url: "https://api.example.com",
14+
credentials: DatadogAPIClient::V2::HTTPBasicAuth.new({
15+
type: DatadogAPIClient::V2::HTTPBasicAuthType::HTTPBASICAUTH,
16+
username: "test-user",
17+
password: "test-password",
18+
}),
19+
}),
20+
}),
21+
}),
22+
})
23+
p api_instance.create_action_connection(body)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Create a new Action Connection with HTTPTokenAuth returns "Successfully created Action Connection" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new
5+
6+
body = DatadogAPIClient::V2::CreateActionConnectionRequest.new({
7+
data: DatadogAPIClient::V2::ActionConnectionData.new({
8+
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
9+
attributes: DatadogAPIClient::V2::ActionConnectionAttributes.new({
10+
name: "HTTP Token Connection exampleactionconnection",
11+
integration: DatadogAPIClient::V2::HTTPIntegration.new({
12+
type: DatadogAPIClient::V2::HTTPIntegrationType::HTTP,
13+
base_url: "https://api.example.com",
14+
credentials: DatadogAPIClient::V2::HTTPTokenAuth.new({
15+
type: DatadogAPIClient::V2::HTTPTokenAuthType::HTTPTOKENAUTH,
16+
tokens: [
17+
DatadogAPIClient::V2::HTTPToken.new({
18+
name: "ApiKey",
19+
type: DatadogAPIClient::V2::TokenType::SECRET,
20+
value: "secret-token-value",
21+
}),
22+
],
23+
headers: [
24+
DatadogAPIClient::V2::HTTPHeader.new({
25+
name: "Authorization",
26+
value: "Bearer token-value",
27+
}),
28+
],
29+
}),
30+
}),
31+
}),
32+
}),
33+
})
34+
p api_instance.create_action_connection(body)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Update an existing Action Connection with HTTPBasicAuth returns "Successfully updated Action Connection" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ActionConnectionAPI.new
5+
6+
body = DatadogAPIClient::V2::UpdateActionConnectionRequest.new({
7+
data: DatadogAPIClient::V2::ActionConnectionDataUpdate.new({
8+
type: DatadogAPIClient::V2::ActionConnectionDataType::ACTION_CONNECTION,
9+
attributes: DatadogAPIClient::V2::ActionConnectionAttributesUpdate.new({
10+
name: "HTTP Basic Auth Updated",
11+
integration: DatadogAPIClient::V2::HTTPIntegrationUpdate.new({
12+
type: DatadogAPIClient::V2::HTTPIntegrationType::HTTP,
13+
base_url: "https://api.updated.com",
14+
credentials: DatadogAPIClient::V2::HTTPBasicAuthUpdate.new({
15+
type: DatadogAPIClient::V2::HTTPBasicAuthType::HTTPBASICAUTH,
16+
username: "updated-user",
17+
password: "updated-password",
18+
}),
19+
}),
20+
}),
21+
}),
22+
})
23+
p api_instance.update_action_connection("cb460d51-3c88-4e87-adac-d47131d0423d", body)

0 commit comments

Comments
 (0)