Skip to content

Commit d5cb115

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c3fa3e8 of spec repo
1 parent fd98187 commit d5cb115

File tree

13 files changed

+604
-161
lines changed

13 files changed

+604
-161
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": "0fe80dc",
3-
"generated": "2025-07-28 18:49:36.074"
2+
"spec_repo_commit": "c3fa3e8",
3+
"generated": "2025-07-28 20:25:22.697"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 68 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12477,31 +12477,33 @@ components:
1247712477
required:
1247812478
- type
1247912479
type: object
12480-
Dataset:
12481-
description: "Dataset object.\n\n### Datasets Constraints\n- **Tag Limit per
12482-
Dataset**:\n - Each restricted dataset supports a maximum of 10 key:value
12483-
pairs per product.\n\n- **Tag Key Rules per Telemetry Type**:\n - Only one
12484-
tag key or attribute may be used to define access within a single telemetry
12485-
type.\n - The same or different tag key may be used across different telemetry
12486-
types.\n\n- **Tag Value Uniqueness**:\n - Tag values must be unique within
12487-
a single dataset.\n - A tag value used in one dataset cannot be reused in
12488-
another dataset of the same telemetry type."
12480+
DatasetAttributesRequest:
12481+
description: Dataset metadata and configurations.
1248912482
properties:
12490-
attributes:
12491-
$ref: '#/components/schemas/DatasetAttributes'
12492-
id:
12493-
description: Unique identifier for the dataset.
12494-
example: 123e4567-e89b-12d3-a456-426614174000
12495-
type: string
12496-
type:
12497-
description: Resource type, always "dataset".
12498-
example: dataset
12483+
name:
12484+
description: Name of the dataset.
12485+
example: Security Audit Dataset
1249912486
type: string
12487+
principals:
12488+
description: List of access principals, formatted as `principal_type:id`.
12489+
Principal can be 'team' or 'role'.
12490+
example:
12491+
- role:86245fce-0a4e-11f0-92bd-da7ad0900002
12492+
items:
12493+
example: role:86245fce-0a4e-11f0-92bd-da7ad0900002
12494+
type: string
12495+
type: array
12496+
product_filters:
12497+
description: List of product-specific filters.
12498+
items:
12499+
$ref: '#/components/schemas/FiltersPerProduct'
12500+
type: array
1250012501
required:
12501-
- type
12502-
- attributes
12502+
- name
12503+
- product_filters
12504+
- principals
1250312505
type: object
12504-
DatasetAttributes:
12506+
DatasetAttributesResponse:
1250512507
description: Dataset metadata and configuration(s).
1250612508
properties:
1250712509
created_at:
@@ -12531,26 +12533,63 @@ components:
1253112533
items:
1253212534
$ref: '#/components/schemas/FiltersPerProduct'
1253312535
type: array
12534-
required:
12535-
- name
12536-
- product_filters
12537-
- principals
1253812536
type: object
1253912537
DatasetCreateRequest:
1254012538
description: Create request for a dataset.
1254112539
properties:
1254212540
data:
12543-
$ref: '#/components/schemas/Dataset'
12541+
$ref: '#/components/schemas/DatasetRequest'
1254412542
required:
1254512543
- data
1254612544
type: object
12545+
DatasetRequest:
12546+
description: "## Dataset object.\n\n# Datasets Constraints\n- **Tag limit per
12547+
dataset**:\n - Each restricted dataset supports a maximum of 10 key:value
12548+
pairs per product.\n\n- **Tag key rules per telemetry type**:\n - Only one
12549+
tag key or attribute may be used to define access within a single telemetry
12550+
type.\n - The same or different tag key may be used across different telemetry
12551+
types.\n\n- **Tag value uniqueness**:\n - Tag values must be unique within
12552+
a single dataset.\n - A tag value used in one dataset cannot be reused in
12553+
another dataset of the same telemetry type."
12554+
properties:
12555+
attributes:
12556+
$ref: '#/components/schemas/DatasetAttributesRequest'
12557+
type:
12558+
description: Resource type, always "dataset".
12559+
example: dataset
12560+
type: string
12561+
required:
12562+
- type
12563+
- attributes
12564+
type: object
12565+
DatasetResponse:
12566+
description: "## Dataset object.\n\n# Datasets Constraints\n- **Tag Limit per
12567+
Dataset**:\n - Each restricted dataset supports a maximum of 10 key:value
12568+
pairs per product.\n\n- **Tag Key Rules per Telemetry Type**:\n - Only one
12569+
tag key or attribute may be used to define access within a single telemetry
12570+
type.\n - The same or different tag key may be used across different telemetry
12571+
types.\n\n- **Tag Value Uniqueness**:\n - Tag values must be unique within
12572+
a single dataset.\n - A tag value used in one dataset cannot be reused in
12573+
another dataset of the same telemetry type."
12574+
properties:
12575+
attributes:
12576+
$ref: '#/components/schemas/DatasetAttributesResponse'
12577+
id:
12578+
description: Unique identifier for the dataset.
12579+
example: 123e4567-e89b-12d3-a456-426614174000
12580+
type: string
12581+
type:
12582+
description: Resource type, always "dataset".
12583+
example: dataset
12584+
type: string
12585+
type: object
1254712586
DatasetResponseMulti:
1254812587
description: Response containing a list of datasets.
1254912588
properties:
1255012589
data:
1255112590
description: The list of datasets returned in response.
1255212591
items:
12553-
$ref: '#/components/schemas/Dataset'
12592+
$ref: '#/components/schemas/DatasetResponse'
1255412593
type: array
1255512594
required:
1255612595
- data
@@ -12559,15 +12598,15 @@ components:
1255912598
description: Response containing a single dataset object.
1256012599
properties:
1256112600
data:
12562-
$ref: '#/components/schemas/Dataset'
12601+
$ref: '#/components/schemas/DatasetResponse'
1256312602
required:
1256412603
- data
1256512604
type: object
1256612605
DatasetUpdateRequest:
1256712606
description: Edit request for a dataset.
1256812607
properties:
1256912608
data:
12570-
$ref: '#/components/schemas/Dataset'
12609+
$ref: '#/components/schemas/DatasetRequest'
1257112610
required:
1257212611
- data
1257312612
type: object

examples/v2/datasets/CreateDataset.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;
55
import com.datadog.api.client.v2.api.DatasetsApi;
6-
import com.datadog.api.client.v2.model.Dataset;
7-
import com.datadog.api.client.v2.model.DatasetAttributes;
6+
import com.datadog.api.client.v2.model.DatasetAttributesRequest;
87
import com.datadog.api.client.v2.model.DatasetCreateRequest;
8+
import com.datadog.api.client.v2.model.DatasetRequest;
99
import com.datadog.api.client.v2.model.DatasetResponseSingle;
1010
import com.datadog.api.client.v2.model.FiltersPerProduct;
1111
import java.util.Collections;
@@ -18,10 +18,9 @@ public static void main(String[] args) {
1818
DatasetCreateRequest body =
1919
new DatasetCreateRequest()
2020
.data(
21-
new Dataset()
21+
new DatasetRequest()
2222
.attributes(
23-
new DatasetAttributes()
24-
.createdAt(null)
23+
new DatasetAttributesRequest()
2524
.name("Security Audit Dataset")
2625
.principals(
2726
Collections.singletonList(
@@ -31,7 +30,6 @@ public static void main(String[] args) {
3130
new FiltersPerProduct()
3231
.filters(Collections.singletonList("@application.id:ABCD"))
3332
.product("logs"))))
34-
.id("123e4567-e89b-12d3-a456-426614174000")
3533
.type("dataset"));
3634

3735
try {

examples/v2/datasets/UpdateDataset.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;
55
import com.datadog.api.client.v2.api.DatasetsApi;
6-
import com.datadog.api.client.v2.model.Dataset;
7-
import com.datadog.api.client.v2.model.DatasetAttributes;
6+
import com.datadog.api.client.v2.model.DatasetAttributesRequest;
7+
import com.datadog.api.client.v2.model.DatasetRequest;
88
import com.datadog.api.client.v2.model.DatasetResponseSingle;
99
import com.datadog.api.client.v2.model.DatasetUpdateRequest;
1010
import com.datadog.api.client.v2.model.FiltersPerProduct;
@@ -18,10 +18,9 @@ public static void main(String[] args) {
1818
DatasetUpdateRequest body =
1919
new DatasetUpdateRequest()
2020
.data(
21-
new Dataset()
21+
new DatasetRequest()
2222
.attributes(
23-
new DatasetAttributes()
24-
.createdAt(null)
23+
new DatasetAttributesRequest()
2524
.name("Security Audit Dataset")
2625
.principals(
2726
Collections.singletonList(
@@ -31,7 +30,6 @@ public static void main(String[] args) {
3130
new FiltersPerProduct()
3231
.filters(Collections.singletonList("@application.id:ABCD"))
3332
.product("logs"))))
34-
.id("123e4567-e89b-12d3-a456-426614174000")
3533
.type("dataset"));
3634

3735
try {

0 commit comments

Comments
 (0)