Skip to content

Commit f3aa52f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Regenerate client from commit 29344bf2 of spec repo (#2294)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 6c9bf17 commit f3aa52f

File tree

7 files changed

+19
-56
lines changed

7 files changed

+19
-56
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-03-14 07:51:10.767732",
8-
"spec_repo_commit": "899883be"
7+
"regenerated": "2025-03-17 17:20:20.728873",
8+
"spec_repo_commit": "29344bf2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-14 07:51:10.783055",
13-
"spec_repo_commit": "899883be"
12+
"regenerated": "2025-03-17 17:20:20.745019",
13+
"spec_repo_commit": "29344bf2"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+2-16
Original file line numberDiff line numberDiff line change
@@ -14746,6 +14746,8 @@ components:
1474614746
properties:
1474714747
aggregation:
1474814748
$ref: '#/components/schemas/SecurityMonitoringRuleQueryAggregation'
14749+
dataSource:
14750+
$ref: '#/components/schemas/SecurityMonitoringStandardDataSource'
1474914751
distinctFields:
1475014752
description: Field for which the cardinality is measured. Sent as an array.
1475114753
items:
@@ -29900,24 +29902,8 @@ components:
2990029902
type: object
2990129903
ServiceDefinitionV2Dot2Type:
2990229904
description: The type of service.
29903-
enum:
29904-
- web
29905-
- db
29906-
- cache
29907-
- function
29908-
- browser
29909-
- mobile
29910-
- custom
2991129905
example: web
2991229906
type: string
29913-
x-enum-varnames:
29914-
- WEB
29915-
- DB
29916-
- CACHE
29917-
- FUNCTION
29918-
- BROSWER
29919-
- MOBILE
29920-
- CUSTOM
2992129907
ServiceDefinitionV2Dot2Version:
2992229908
default: v2.2
2992329909
description: Schema version being used.

examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@
5656
],
5757
team: "my-team",
5858
tier: "High",
59-
type: DatadogAPIClient::V2::ServiceDefinitionV2Dot2Type::WEB,
59+
type: "web",
6060
})
6161
p api_instance.create_or_update_service_definitions(body)

lib/datadog_api_client/inflector.rb

-1
Original file line numberDiff line numberDiff line change
@@ -2769,7 +2769,6 @@ def overrides
27692769
"v2.service_definition_v2_dot2_opsgenie" => "ServiceDefinitionV2Dot2Opsgenie",
27702770
"v2.service_definition_v2_dot2_opsgenie_region" => "ServiceDefinitionV2Dot2OpsgenieRegion",
27712771
"v2.service_definition_v2_dot2_pagerduty" => "ServiceDefinitionV2Dot2Pagerduty",
2772-
"v2.service_definition_v2_dot2_type" => "ServiceDefinitionV2Dot2Type",
27732772
"v2.service_definition_v2_dot2_version" => "ServiceDefinitionV2Dot2Version",
27742773
"v2.service_definition_v2_email" => "ServiceDefinitionV2Email",
27752774
"v2.service_definition_v2_email_type" => "ServiceDefinitionV2EmailType",

lib/datadog_api_client/v2/models/historical_job_query.rb

+11-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class HistoricalJobQuery
2424
# The aggregation type.
2525
attr_accessor :aggregation
2626

27+
# Source of events, either logs or audit trail.
28+
attr_accessor :data_source
29+
2730
# Field for which the cardinality is measured. Sent as an array.
2831
attr_accessor :distinct_fields
2932

@@ -49,6 +52,7 @@ class HistoricalJobQuery
4952
def self.attribute_map
5053
{
5154
:'aggregation' => :'aggregation',
55+
:'data_source' => :'dataSource',
5256
:'distinct_fields' => :'distinctFields',
5357
:'group_by_fields' => :'groupByFields',
5458
:'has_optional_group_by_fields' => :'hasOptionalGroupByFields',
@@ -63,6 +67,7 @@ def self.attribute_map
6367
def self.openapi_types
6468
{
6569
:'aggregation' => :'SecurityMonitoringRuleQueryAggregation',
70+
:'data_source' => :'SecurityMonitoringStandardDataSource',
6671
:'distinct_fields' => :'Array<String>',
6772
:'group_by_fields' => :'Array<String>',
6873
:'has_optional_group_by_fields' => :'Boolean',
@@ -94,6 +99,10 @@ def initialize(attributes = {})
9499
self.aggregation = attributes[:'aggregation']
95100
end
96101

102+
if attributes.key?(:'data_source')
103+
self.data_source = attributes[:'data_source']
104+
end
105+
97106
if attributes.key?(:'distinct_fields')
98107
if (value = attributes[:'distinct_fields']).is_a?(Array)
99108
self.distinct_fields = value
@@ -152,6 +161,7 @@ def ==(o)
152161
return true if self.equal?(o)
153162
self.class == o.class &&
154163
aggregation == o.aggregation &&
164+
data_source == o.data_source &&
155165
distinct_fields == o.distinct_fields &&
156166
group_by_fields == o.group_by_fields &&
157167
has_optional_group_by_fields == o.has_optional_group_by_fields &&
@@ -165,7 +175,7 @@ def ==(o)
165175
# @return [Integer] Hash code
166176
# @!visibility private
167177
def hash
168-
[aggregation, distinct_fields, group_by_fields, has_optional_group_by_fields, metrics, name, query, additional_properties].hash
178+
[aggregation, data_source, distinct_fields, group_by_fields, has_optional_group_by_fields, metrics, name, query, additional_properties].hash
169179
end
170180
end
171181
end

lib/datadog_api_client/v2/models/service_definition_v2_dot2.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def self.openapi_types
108108
:'tags' => :'Array<String>',
109109
:'team' => :'String',
110110
:'tier' => :'String',
111-
:'type' => :'ServiceDefinitionV2Dot2Type'
111+
:'type' => :'String'
112112
}
113113
end
114114

lib/datadog_api_client/v2/models/service_definition_v2_dot2_type.rb

-32
This file was deleted.

0 commit comments

Comments
 (0)