Skip to content

Commit 6f16a47

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d5d9444 of spec repo
1 parent 355a6ba commit 6f16a47

File tree

8 files changed

+44
-12
lines changed

8 files changed

+44
-12
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": "3a6cb30",
3-
"generated": "2025-08-12 15:41:18.406"
2+
"spec_repo_commit": "d5d9444",
3+
"generated": "2025-08-13 14:13:42.769"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13264,9 +13264,7 @@ components:
1326413264
attributes:
1326513265
$ref: '#/components/schemas/DatasetAttributesRequest'
1326613266
type:
13267-
description: Resource type, always "dataset".
13268-
example: dataset
13269-
type: string
13267+
$ref: '#/components/schemas/DatasetType'
1327013268
required:
1327113269
- type
1327213270
- attributes
@@ -13288,9 +13286,7 @@ components:
1328813286
example: 123e4567-e89b-12d3-a456-426614174000
1328913287
type: string
1329013288
type:
13291-
description: Resource type, always "dataset".
13292-
example: dataset
13293-
type: string
13289+
$ref: '#/components/schemas/DatasetType'
1329413290
type: object
1329513291
DatasetResponseMulti:
1329613292
description: Response containing a list of datasets.
@@ -13307,6 +13303,15 @@ components:
1330713303
data:
1330813304
$ref: '#/components/schemas/DatasetResponse'
1330913305
type: object
13306+
DatasetType:
13307+
default: dataset
13308+
description: Resource type, always "dataset".
13309+
enum:
13310+
- dataset
13311+
example: dataset
13312+
type: string
13313+
x-enum-varnames:
13314+
- DATASET
1331013315
DatasetUpdateRequest:
1331113316
description: Edit request for a dataset.
1331213317
properties:

examples/v2/datasets/CreateDataset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}),
2323
],
2424
}),
25-
type: "dataset",
25+
type: DatadogAPIClient::V2::DatasetType::DATASET,
2626
}),
2727
})
2828
p api_instance.create_dataset(body)

examples/v2/datasets/UpdateDataset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}),
2626
],
2727
}),
28-
type: "dataset",
28+
type: DatadogAPIClient::V2::DatasetType::DATASET,
2929
}),
3030
})
3131
p api_instance.update_dataset(DATASET_DATA_ID, body)

lib/datadog_api_client/inflector.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,6 +1689,7 @@ def overrides
16891689
"v2.dataset_response" => "DatasetResponse",
16901690
"v2.dataset_response_multi" => "DatasetResponseMulti",
16911691
"v2.dataset_response_single" => "DatasetResponseSingle",
1692+
"v2.dataset_type" => "DatasetType",
16921693
"v2.dataset_update_request" => "DatasetUpdateRequest",
16931694
"v2.data_transform" => "DataTransform",
16941695
"v2.data_transform_properties" => "DataTransformProperties",

lib/datadog_api_client/v2/models/dataset_request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def self.attribute_map
5353
def self.openapi_types
5454
{
5555
:'attributes' => :'DatasetAttributesRequest',
56-
:'type' => :'String'
56+
:'type' => :'DatasetType'
5757
}
5858
end
5959

lib/datadog_api_client/v2/models/dataset_response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def self.openapi_types
5858
{
5959
:'attributes' => :'DatasetAttributesResponse',
6060
:'id' => :'String',
61-
:'type' => :'String'
61+
:'type' => :'DatasetType'
6262
}
6363
end
6464

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
=begin
2+
#Datadog API V2 Collection
3+
4+
#Collection of all Datadog Public endpoints.
5+
6+
The version of the OpenAPI document: 1.0
7+
8+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9+
10+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11+
This product includes software developed at Datadog (https://www.datadoghq.com/).
12+
Copyright 2020-Present Datadog, Inc.
13+
14+
=end
15+
16+
require 'date'
17+
require 'time'
18+
19+
module DatadogAPIClient::V2
20+
# Resource type, always "dataset".
21+
class DatasetType
22+
include BaseEnumModel
23+
24+
DATASET = "dataset".freeze
25+
end
26+
end

0 commit comments

Comments
 (0)