Skip to content

Commit 9331e95

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specskarimo
authored
Regenerate client from commit acfbfe3f of spec repo (#1865)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> Co-authored-by: skarimo <40482491+skarimo@users.noreply.github.com>
1 parent 84247e1 commit 9331e95

9 files changed

+197
-11
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
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": "2024-07-01 12:39:42.758663",
8-
"spec_repo_commit": "f54c0bf3"
7+
"regenerated": "2024-07-01 17:39:11.740155",
8+
"spec_repo_commit": "acfbfe3f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-01 12:39:42.776638",
13-
"spec_repo_commit": "f54c0bf3"
12+
"regenerated": "2024-07-01 17:39:11.758067",
13+
"spec_repo_commit": "acfbfe3f"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,17 @@ components:
11161116
type: string
11171117
readOnly: true
11181118
type: object
1119+
CrossOrgUuids:
1120+
description: The source organization UUID for cross organization queries. Feature
1121+
in Private Beta.
1122+
example:
1123+
- 6434abde-xxxx-yyyy-zzzz-da7ad0900001
1124+
items:
1125+
description: The source organization UUID.
1126+
example: 6434abde-xxxx-yyyy-zzzz-da7ad0900001
1127+
type: string
1128+
maxItems: 1
1129+
type: array
11191130
Dashboard:
11201131
description: "A dashboard is Datadog\u2019s tool for visually tracking, analyzing,
11211132
and displaying\nkey performance metrics, which enable you to monitor the health
@@ -2519,6 +2530,8 @@ components:
25192530
FormulaAndFunctionApmDependencyStatsQueryDefinition:
25202531
description: A formula and functions APM dependency stats query.
25212532
properties:
2533+
cross_org_uuids:
2534+
$ref: '#/components/schemas/CrossOrgUuids'
25222535
data_source:
25232536
$ref: '#/components/schemas/FormulaAndFunctionApmDependencyStatsDataSource'
25242537
env:
@@ -2606,6 +2619,8 @@ components:
26062619
FormulaAndFunctionApmResourceStatsQueryDefinition:
26072620
description: APM resource stats query using formulas and functions.
26082621
properties:
2622+
cross_org_uuids:
2623+
$ref: '#/components/schemas/CrossOrgUuids'
26092624
data_source:
26102625
$ref: '#/components/schemas/FormulaAndFunctionApmResourceStatsDataSource'
26112626
env:
@@ -2671,6 +2686,8 @@ components:
26712686
properties:
26722687
aggregator:
26732688
$ref: '#/components/schemas/WidgetAggregator'
2689+
cross_org_uuids:
2690+
$ref: '#/components/schemas/CrossOrgUuids'
26742691
data_source:
26752692
$ref: '#/components/schemas/FormulaAndFunctionCloudCostDataSource'
26762693
name:
@@ -2721,6 +2738,8 @@ components:
27212738
properties:
27222739
compute:
27232740
$ref: '#/components/schemas/FormulaAndFunctionEventQueryDefinitionCompute'
2741+
cross_org_uuids:
2742+
$ref: '#/components/schemas/CrossOrgUuids'
27242743
data_source:
27252744
$ref: '#/components/schemas/FormulaAndFunctionEventsDataSource'
27262745
group_by:
@@ -2877,6 +2896,8 @@ components:
28772896
properties:
28782897
aggregator:
28792898
$ref: '#/components/schemas/FormulaAndFunctionMetricAggregation'
2899+
cross_org_uuids:
2900+
$ref: '#/components/schemas/CrossOrgUuids'
28802901
data_source:
28812902
$ref: '#/components/schemas/FormulaAndFunctionMetricDataSource'
28822903
name:
@@ -2907,6 +2928,8 @@ components:
29072928
properties:
29082929
aggregator:
29092930
$ref: '#/components/schemas/FormulaAndFunctionMetricAggregation'
2931+
cross_org_uuids:
2932+
$ref: '#/components/schemas/CrossOrgUuids'
29102933
data_source:
29112934
$ref: '#/components/schemas/FormulaAndFunctionProcessQueryDataSource'
29122935
is_normalized_cpu:
@@ -3014,6 +3037,8 @@ components:
30143037
description: Additional filters applied to the SLO query.
30153038
example: host:host_a,env:prod
30163039
type: string
3040+
cross_org_uuids:
3041+
$ref: '#/components/schemas/CrossOrgUuids'
30173042
data_source:
30183043
$ref: '#/components/schemas/FormulaAndFunctionSLODataSource'
30193044
group_mode:

lib/datadog_api_client/v1/models/formula_and_function_apm_dependency_stats_query_definition.rb

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
2121
class FormulaAndFunctionApmDependencyStatsQueryDefinition
2222
include BaseGenericModel
2323

24+
# The source organization UUID for cross organization queries. Feature in Private Beta.
25+
attr_reader :cross_org_uuids
26+
2427
# Data source for APM dependency stats queries.
2528
attr_reader :data_source
2629

@@ -55,6 +58,7 @@ class FormulaAndFunctionApmDependencyStatsQueryDefinition
5558
# @!visibility private
5659
def self.attribute_map
5760
{
61+
:'cross_org_uuids' => :'cross_org_uuids',
5862
:'data_source' => :'data_source',
5963
:'env' => :'env',
6064
:'is_upstream' => :'is_upstream',
@@ -72,6 +76,7 @@ def self.attribute_map
7276
# @!visibility private
7377
def self.openapi_types
7478
{
79+
:'cross_org_uuids' => :'Array<String>',
7580
:'data_source' => :'FormulaAndFunctionApmDependencyStatsDataSource',
7681
:'env' => :'String',
7782
:'is_upstream' => :'Boolean',
@@ -101,6 +106,12 @@ def initialize(attributes = {})
101106
h[k.to_sym] = v
102107
}
103108

109+
if attributes.key?(:'cross_org_uuids')
110+
if (value = attributes[:'cross_org_uuids']).is_a?(Array)
111+
self.cross_org_uuids = value
112+
end
113+
end
114+
104115
if attributes.key?(:'data_source')
105116
self.data_source = attributes[:'data_source']
106117
end
@@ -146,6 +157,7 @@ def initialize(attributes = {})
146157
# @return true if the model is valid
147158
# @!visibility private
148159
def valid?
160+
return false if !@cross_org_uuids.nil? && @cross_org_uuids.length > 1
149161
return false if @data_source.nil?
150162
return false if @env.nil?
151163
return false if @name.nil?
@@ -156,6 +168,16 @@ def valid?
156168
true
157169
end
158170

171+
# Custom attribute writer method with validation
172+
# @param cross_org_uuids [Object] Object to be assigned
173+
# @!visibility private
174+
def cross_org_uuids=(cross_org_uuids)
175+
if !cross_org_uuids.nil? && cross_org_uuids.length > 1
176+
fail ArgumentError, 'invalid value for "cross_org_uuids", number of items must be less than or equal to 1.'
177+
end
178+
@cross_org_uuids = cross_org_uuids
179+
end
180+
159181
# Custom attribute writer method with validation
160182
# @param data_source [Object] Object to be assigned
161183
# @!visibility private
@@ -232,6 +254,7 @@ def stat=(stat)
232254
def ==(o)
233255
return true if self.equal?(o)
234256
self.class == o.class &&
257+
cross_org_uuids == o.cross_org_uuids &&
235258
data_source == o.data_source &&
236259
env == o.env &&
237260
is_upstream == o.is_upstream &&
@@ -248,7 +271,7 @@ def ==(o)
248271
# @return [Integer] Hash code
249272
# @!visibility private
250273
def hash
251-
[data_source, env, is_upstream, name, operation_name, primary_tag_name, primary_tag_value, resource_name, service, stat].hash
274+
[cross_org_uuids, data_source, env, is_upstream, name, operation_name, primary_tag_name, primary_tag_value, resource_name, service, stat].hash
252275
end
253276
end
254277
end

lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
2121
class FormulaAndFunctionApmResourceStatsQueryDefinition
2222
include BaseGenericModel
2323

24+
# The source organization UUID for cross organization queries. Feature in Private Beta.
25+
attr_reader :cross_org_uuids
26+
2427
# Data source for APM resource stats queries.
2528
attr_reader :data_source
2629

@@ -55,6 +58,7 @@ class FormulaAndFunctionApmResourceStatsQueryDefinition
5558
# @!visibility private
5659
def self.attribute_map
5760
{
61+
:'cross_org_uuids' => :'cross_org_uuids',
5862
:'data_source' => :'data_source',
5963
:'env' => :'env',
6064
:'group_by' => :'group_by',
@@ -72,6 +76,7 @@ def self.attribute_map
7276
# @!visibility private
7377
def self.openapi_types
7478
{
79+
:'cross_org_uuids' => :'Array<String>',
7580
:'data_source' => :'FormulaAndFunctionApmResourceStatsDataSource',
7681
:'env' => :'String',
7782
:'group_by' => :'Array<String>',
@@ -101,6 +106,12 @@ def initialize(attributes = {})
101106
h[k.to_sym] = v
102107
}
103108

109+
if attributes.key?(:'cross_org_uuids')
110+
if (value = attributes[:'cross_org_uuids']).is_a?(Array)
111+
self.cross_org_uuids = value
112+
end
113+
end
114+
104115
if attributes.key?(:'data_source')
105116
self.data_source = attributes[:'data_source']
106117
end
@@ -148,6 +159,7 @@ def initialize(attributes = {})
148159
# @return true if the model is valid
149160
# @!visibility private
150161
def valid?
162+
return false if !@cross_org_uuids.nil? && @cross_org_uuids.length > 1
151163
return false if @data_source.nil?
152164
return false if @env.nil?
153165
return false if @name.nil?
@@ -156,6 +168,16 @@ def valid?
156168
true
157169
end
158170

171+
# Custom attribute writer method with validation
172+
# @param cross_org_uuids [Object] Object to be assigned
173+
# @!visibility private
174+
def cross_org_uuids=(cross_org_uuids)
175+
if !cross_org_uuids.nil? && cross_org_uuids.length > 1
176+
fail ArgumentError, 'invalid value for "cross_org_uuids", number of items must be less than or equal to 1.'
177+
end
178+
@cross_org_uuids = cross_org_uuids
179+
end
180+
159181
# Custom attribute writer method with validation
160182
# @param data_source [Object] Object to be assigned
161183
# @!visibility private
@@ -212,6 +234,7 @@ def stat=(stat)
212234
def ==(o)
213235
return true if self.equal?(o)
214236
self.class == o.class &&
237+
cross_org_uuids == o.cross_org_uuids &&
215238
data_source == o.data_source &&
216239
env == o.env &&
217240
group_by == o.group_by &&
@@ -228,7 +251,7 @@ def ==(o)
228251
# @return [Integer] Hash code
229252
# @!visibility private
230253
def hash
231-
[data_source, env, group_by, name, operation_name, primary_tag_name, primary_tag_value, resource_name, service, stat].hash
254+
[cross_org_uuids, data_source, env, group_by, name, operation_name, primary_tag_name, primary_tag_value, resource_name, service, stat].hash
232255
end
233256
end
234257
end

lib/datadog_api_client/v1/models/formula_and_function_cloud_cost_query_definition.rb

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ class FormulaAndFunctionCloudCostQueryDefinition
2424
# Aggregator used for the request.
2525
attr_accessor :aggregator
2626

27+
# The source organization UUID for cross organization queries. Feature in Private Beta.
28+
attr_reader :cross_org_uuids
29+
2730
# Data source for Cloud Cost queries.
2831
attr_reader :data_source
2932

@@ -38,6 +41,7 @@ class FormulaAndFunctionCloudCostQueryDefinition
3841
def self.attribute_map
3942
{
4043
:'aggregator' => :'aggregator',
44+
:'cross_org_uuids' => :'cross_org_uuids',
4145
:'data_source' => :'data_source',
4246
:'name' => :'name',
4347
:'query' => :'query'
@@ -49,6 +53,7 @@ def self.attribute_map
4953
def self.openapi_types
5054
{
5155
:'aggregator' => :'WidgetAggregator',
56+
:'cross_org_uuids' => :'Array<String>',
5257
:'data_source' => :'FormulaAndFunctionCloudCostDataSource',
5358
:'name' => :'String',
5459
:'query' => :'String'
@@ -75,6 +80,12 @@ def initialize(attributes = {})
7580
self.aggregator = attributes[:'aggregator']
7681
end
7782

83+
if attributes.key?(:'cross_org_uuids')
84+
if (value = attributes[:'cross_org_uuids']).is_a?(Array)
85+
self.cross_org_uuids = value
86+
end
87+
end
88+
7889
if attributes.key?(:'data_source')
7990
self.data_source = attributes[:'data_source']
8091
end
@@ -92,12 +103,23 @@ def initialize(attributes = {})
92103
# @return true if the model is valid
93104
# @!visibility private
94105
def valid?
106+
return false if !@cross_org_uuids.nil? && @cross_org_uuids.length > 1
95107
return false if @data_source.nil?
96108
return false if @name.nil?
97109
return false if @query.nil?
98110
true
99111
end
100112

113+
# Custom attribute writer method with validation
114+
# @param cross_org_uuids [Object] Object to be assigned
115+
# @!visibility private
116+
def cross_org_uuids=(cross_org_uuids)
117+
if !cross_org_uuids.nil? && cross_org_uuids.length > 1
118+
fail ArgumentError, 'invalid value for "cross_org_uuids", number of items must be less than or equal to 1.'
119+
end
120+
@cross_org_uuids = cross_org_uuids
121+
end
122+
101123
# Custom attribute writer method with validation
102124
# @param data_source [Object] Object to be assigned
103125
# @!visibility private
@@ -135,6 +157,7 @@ def ==(o)
135157
return true if self.equal?(o)
136158
self.class == o.class &&
137159
aggregator == o.aggregator &&
160+
cross_org_uuids == o.cross_org_uuids &&
138161
data_source == o.data_source &&
139162
name == o.name &&
140163
query == o.query
@@ -144,7 +167,7 @@ def ==(o)
144167
# @return [Integer] Hash code
145168
# @!visibility private
146169
def hash
147-
[aggregator, data_source, name, query].hash
170+
[aggregator, cross_org_uuids, data_source, name, query].hash
148171
end
149172
end
150173
end

0 commit comments

Comments
 (0)