Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "c38287b",
"generated": "2025-08-15 18:53:36.766"
"spec_repo_commit": "7851858",
"generated": "2025-08-18 14:47:28.398"
}
17 changes: 11 additions & 6 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13258,9 +13258,7 @@ components:
attributes:
$ref: '#/components/schemas/DatasetAttributesRequest'
type:
description: Resource type, always "dataset".
example: dataset
type: string
$ref: '#/components/schemas/DatasetType'
required:
- type
- attributes
Expand All @@ -13282,9 +13280,7 @@ components:
example: 123e4567-e89b-12d3-a456-426614174000
type: string
type:
description: Resource type, always "dataset".
example: dataset
type: string
$ref: '#/components/schemas/DatasetType'
type: object
DatasetResponseMulti:
description: Response containing a list of datasets.
Expand All @@ -13301,6 +13297,15 @@ components:
data:
$ref: '#/components/schemas/DatasetResponse'
type: object
DatasetType:
default: dataset
description: Resource type, always set to `dataset`.
enum:
- dataset
example: dataset
type: string
x-enum-varnames:
- DATASET
DatasetUpdateRequest:
description: Edit request for a dataset.
properties:
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/datasets/CreateDataset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}),
],
}),
type: "dataset",
type: DatadogAPIClient::V2::DatasetType::DATASET,
}),
})
p api_instance.create_dataset(body)
2 changes: 1 addition & 1 deletion examples/v2/datasets/UpdateDataset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}),
],
}),
type: "dataset",
type: DatadogAPIClient::V2::DatasetType::DATASET,
}),
})
p api_instance.update_dataset(DATASET_DATA_ID, body)
1 change: 1 addition & 0 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1689,6 +1689,7 @@ def overrides
"v2.dataset_response" => "DatasetResponse",
"v2.dataset_response_multi" => "DatasetResponseMulti",
"v2.dataset_response_single" => "DatasetResponseSingle",
"v2.dataset_type" => "DatasetType",
"v2.dataset_update_request" => "DatasetUpdateRequest",
"v2.data_transform" => "DataTransform",
"v2.data_transform_properties" => "DataTransformProperties",
Expand Down
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v2/models/dataset_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DatasetRequest
# Dataset metadata and configurations.
attr_reader :attributes

# Resource type, always "dataset".
# Resource type, always set to `dataset`.
attr_reader :type

attr_accessor :additional_properties
Expand All @@ -53,7 +53,7 @@ def self.attribute_map
def self.openapi_types
{
:'attributes' => :'DatasetAttributesRequest',
:'type' => :'String'
:'type' => :'DatasetType'
}
end

Expand Down
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v2/models/dataset_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DatasetResponse
# Unique identifier for the dataset.
attr_accessor :id

# Resource type, always "dataset".
# Resource type, always set to `dataset`.
attr_accessor :type

attr_accessor :additional_properties
Expand All @@ -58,7 +58,7 @@ def self.openapi_types
{
:'attributes' => :'DatasetAttributesResponse',
:'id' => :'String',
:'type' => :'String'
:'type' => :'DatasetType'
}
end

Expand Down
26 changes: 26 additions & 0 deletions lib/datadog_api_client/v2/models/dataset_type.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
=begin
#Datadog API V2 Collection

#Collection of all Datadog Public endpoints.

The version of the OpenAPI document: 1.0
Contact: support@datadoghq.com
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator

Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
This product includes software developed at Datadog (https://www.datadoghq.com/).
Copyright 2020-Present Datadog, Inc.

=end

require 'date'
require 'time'

module DatadogAPIClient::V2
# Resource type, always set to `dataset`.
class DatasetType
include BaseEnumModel

DATASET = "dataset".freeze
end
end
Loading