File tree Expand file tree Collapse file tree 8 files changed +46
-14
lines changed Expand file tree Collapse file tree 8 files changed +46
-14
lines changed Original file line number Diff line number Diff line change 11{
2- "spec_repo_commit": "c38287b ",
3- "generated": "2025-08-15 18:53:36.766 "
2+ "spec_repo_commit": "7851858 ",
3+ "generated": "2025-08-18 14:47:28.398 "
44}
Original file line number Diff line number Diff line change @@ -13258,9 +13258,7 @@ components:
1325813258 attributes:
1325913259 $ref: '#/components/schemas/DatasetAttributesRequest'
1326013260 type:
13261- description: Resource type, always "dataset".
13262- example: dataset
13263- type: string
13261+ $ref: '#/components/schemas/DatasetType'
1326413262 required:
1326513263 - type
1326613264 - attributes
@@ -13282,9 +13280,7 @@ components:
1328213280 example: 123e4567-e89b-12d3-a456-426614174000
1328313281 type: string
1328413282 type:
13285- description: Resource type, always "dataset".
13286- example: dataset
13287- type: string
13283+ $ref: '#/components/schemas/DatasetType'
1328813284 type: object
1328913285 DatasetResponseMulti:
1329013286 description: Response containing a list of datasets.
@@ -13301,6 +13297,15 @@ components:
1330113297 data:
1330213298 $ref: '#/components/schemas/DatasetResponse'
1330313299 type: object
13300+ DatasetType:
13301+ default: dataset
13302+ description: Resource type, always set to `dataset`.
13303+ enum:
13304+ - dataset
13305+ example: dataset
13306+ type: string
13307+ x-enum-varnames:
13308+ - DATASET
1330413309 DatasetUpdateRequest:
1330513310 description: Edit request for a dataset.
1330613311 properties:
Original file line number Diff line number Diff line change 2222 } ) ,
2323 ] ,
2424 } ) ,
25- type : "dataset" ,
25+ type : DatadogAPIClient :: V2 :: DatasetType :: DATASET ,
2626 } ) ,
2727} )
2828p api_instance . create_dataset ( body )
Original file line number Diff line number Diff line change 2525 } ) ,
2626 ] ,
2727 } ) ,
28- type : "dataset" ,
28+ type : DatadogAPIClient :: V2 :: DatasetType :: DATASET ,
2929 } ) ,
3030} )
3131p api_instance . update_dataset ( DATASET_DATA_ID , body )
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class DatasetRequest
3434 # Dataset metadata and configurations.
3535 attr_reader :attributes
3636
37- # Resource type, always " dataset" .
37+ # Resource type, always set to ` dataset` .
3838 attr_reader :type
3939
4040 attr_accessor :additional_properties
@@ -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
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class DatasetResponse
3737 # Unique identifier for the dataset.
3838 attr_accessor :id
3939
40- # Resource type, always " dataset" .
40+ # Resource type, always set to ` dataset` .
4141 attr_accessor :type
4242
4343 attr_accessor :additional_properties
@@ -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
Original file line number Diff line number Diff line change 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 set to `dataset`.
21+ class DatasetType
22+ include BaseEnumModel
23+
24+ DATASET = "dataset" . freeze
25+ end
26+ end
You can’t perform that action at this time.
0 commit comments