Skip to content

Commit f4f4aec

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit df337ad3 of spec repo
1 parent 6500597 commit f4f4aec

File tree

8 files changed

+224
-5
lines changed

8 files changed

+224
-5
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": "2025-02-12 18:33:48.053303",
8-
"spec_repo_commit": "6a4cfb82"
7+
"regenerated": "2025-02-13 13:47:45.107986",
8+
"spec_repo_commit": "df337ad3"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-12 18:33:48.069553",
13-
"spec_repo_commit": "6a4cfb82"
12+
"regenerated": "2025-02-13 13:47:45.124735",
13+
"spec_repo_commit": "df337ad3"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17340,11 +17340,13 @@ components:
1734017340
enum:
1734117341
- number
1734217342
- bar
17343+
- trend
1734317344
example: number
1734417345
type: string
1734517346
x-enum-varnames:
1734617347
- NUMBER
1734717348
- BAR
17349+
- TREND
1734817350
TableWidgetDefinition:
1734917351
description: The table visualization is available on timeboards and screenboards.
1735017352
It displays columns of metrics grouped by tag key.
@@ -23033,6 +23035,8 @@ components:
2303323035
type: string
2303423036
cell_display_mode:
2303523037
$ref: '#/components/schemas/TableWidgetCellDisplayMode'
23038+
cell_display_mode_options:
23039+
$ref: '#/components/schemas/WidgetFormulaCellDisplayModeOptions'
2303623040
conditional_formats:
2303723041
description: List of conditional formats.
2303823042
items:
@@ -23049,6 +23053,37 @@ components:
2304923053
required:
2305023054
- formula
2305123055
type: object
23056+
WidgetFormulaCellDisplayModeOptions:
23057+
description: Cell display mode options for the widget formula. (only if cell_display_mode
23058+
is set to `trend`)
23059+
properties:
23060+
trend_type:
23061+
$ref: '#/components/schemas/WidgetFormulaCellDisplayModeOptionsTrendType'
23062+
y_scale:
23063+
$ref: '#/components/schemas/WidgetFormulaCellDisplayModeOptionsYScale'
23064+
type: object
23065+
WidgetFormulaCellDisplayModeOptionsTrendType:
23066+
description: Trend type for the cell display mode options.
23067+
enum:
23068+
- area
23069+
- line
23070+
- bars
23071+
example: area
23072+
type: string
23073+
x-enum-varnames:
23074+
- AREA
23075+
- LINE
23076+
- BARS
23077+
WidgetFormulaCellDisplayModeOptionsYScale:
23078+
description: Y scale for the cell display mode options.
23079+
enum:
23080+
- shared
23081+
- independent
23082+
example: shared
23083+
type: string
23084+
x-enum-varnames:
23085+
- SHARED
23086+
- INDEPENDENT
2305223087
WidgetFormulaLimit:
2305323088
description: Options for limiting results returned.
2305423089
properties:

lib/datadog_api_client/inflector.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,9 @@ def overrides
868868
"v1.widget_event_size" => "WidgetEventSize",
869869
"v1.widget_field_sort" => "WidgetFieldSort",
870870
"v1.widget_formula" => "WidgetFormula",
871+
"v1.widget_formula_cell_display_mode_options" => "WidgetFormulaCellDisplayModeOptions",
872+
"v1.widget_formula_cell_display_mode_options_trend_type" => "WidgetFormulaCellDisplayModeOptionsTrendType",
873+
"v1.widget_formula_cell_display_mode_options_y_scale" => "WidgetFormulaCellDisplayModeOptionsYScale",
871874
"v1.widget_formula_limit" => "WidgetFormulaLimit",
872875
"v1.widget_formula_sort" => "WidgetFormulaSort",
873876
"v1.widget_formula_style" => "WidgetFormulaStyle",

lib/datadog_api_client/v1/models/table_widget_cell_display_mode.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ class TableWidgetCellDisplayMode
2323

2424
NUMBER = "number".freeze
2525
BAR = "bar".freeze
26+
TREND = "trend".freeze
2627
end
2728
end

lib/datadog_api_client/v1/models/widget_formula.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class WidgetFormula
2727
# Define a display mode for the table cell.
2828
attr_accessor :cell_display_mode
2929

30+
# Cell display mode options for the widget formula. (only if cell_display_mode is set to `trend`)
31+
attr_accessor :cell_display_mode_options
32+
3033
# List of conditional formats.
3134
attr_accessor :conditional_formats
3235

@@ -47,6 +50,7 @@ def self.attribute_map
4750
{
4851
:'_alias' => :'alias',
4952
:'cell_display_mode' => :'cell_display_mode',
53+
:'cell_display_mode_options' => :'cell_display_mode_options',
5054
:'conditional_formats' => :'conditional_formats',
5155
:'formula' => :'formula',
5256
:'limit' => :'limit',
@@ -60,6 +64,7 @@ def self.openapi_types
6064
{
6165
:'_alias' => :'String',
6266
:'cell_display_mode' => :'TableWidgetCellDisplayMode',
67+
:'cell_display_mode_options' => :'WidgetFormulaCellDisplayModeOptions',
6368
:'conditional_formats' => :'Array<WidgetConditionalFormat>',
6469
:'formula' => :'String',
6570
:'limit' => :'WidgetFormulaLimit',
@@ -93,6 +98,10 @@ def initialize(attributes = {})
9398
self.cell_display_mode = attributes[:'cell_display_mode']
9499
end
95100

101+
if attributes.key?(:'cell_display_mode_options')
102+
self.cell_display_mode_options = attributes[:'cell_display_mode_options']
103+
end
104+
96105
if attributes.key?(:'conditional_formats')
97106
if (value = attributes[:'conditional_formats']).is_a?(Array)
98107
self.conditional_formats = value
@@ -158,6 +167,7 @@ def ==(o)
158167
self.class == o.class &&
159168
_alias == o._alias &&
160169
cell_display_mode == o.cell_display_mode &&
170+
cell_display_mode_options == o.cell_display_mode_options &&
161171
conditional_formats == o.conditional_formats &&
162172
formula == o.formula &&
163173
limit == o.limit &&
@@ -169,7 +179,7 @@ def ==(o)
169179
# @return [Integer] Hash code
170180
# @!visibility private
171181
def hash
172-
[_alias, cell_display_mode, conditional_formats, formula, limit, style, additional_properties].hash
182+
[_alias, cell_display_mode, cell_display_mode_options, conditional_formats, formula, limit, style, additional_properties].hash
173183
end
174184
end
175185
end
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
=begin
2+
#Datadog API V1 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::V1
20+
# Cell display mode options for the widget formula. (only if cell_display_mode is set to `trend`)
21+
class WidgetFormulaCellDisplayModeOptions
22+
include BaseGenericModel
23+
24+
# Trend type for the cell display mode options.
25+
attr_accessor :trend_type
26+
27+
# Y scale for the cell display mode options.
28+
attr_accessor :y_scale
29+
30+
attr_accessor :additional_properties
31+
32+
# Attribute mapping from ruby-style variable name to JSON key.
33+
# @!visibility private
34+
def self.attribute_map
35+
{
36+
:'trend_type' => :'trend_type',
37+
:'y_scale' => :'y_scale'
38+
}
39+
end
40+
41+
# Attribute type mapping.
42+
# @!visibility private
43+
def self.openapi_types
44+
{
45+
:'trend_type' => :'WidgetFormulaCellDisplayModeOptionsTrendType',
46+
:'y_scale' => :'WidgetFormulaCellDisplayModeOptionsYScale'
47+
}
48+
end
49+
50+
# Initializes the object
51+
# @param attributes [Hash] Model attributes in the form of hash
52+
# @!visibility private
53+
def initialize(attributes = {})
54+
if (!attributes.is_a?(Hash))
55+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetFormulaCellDisplayModeOptions` initialize method"
56+
end
57+
58+
self.additional_properties = {}
59+
# check to see if the attribute exists and convert string to symbol for hash key
60+
attributes = attributes.each_with_object({}) { |(k, v), h|
61+
if (!self.class.attribute_map.key?(k.to_sym))
62+
self.additional_properties[k.to_sym] = v
63+
else
64+
h[k.to_sym] = v
65+
end
66+
}
67+
68+
if attributes.key?(:'trend_type')
69+
self.trend_type = attributes[:'trend_type']
70+
end
71+
72+
if attributes.key?(:'y_scale')
73+
self.y_scale = attributes[:'y_scale']
74+
end
75+
end
76+
77+
# Returns the object in the form of hash, with additionalProperties support.
78+
# @return [Hash] Returns the object in the form of hash
79+
# @!visibility private
80+
def to_hash
81+
hash = {}
82+
self.class.attribute_map.each_pair do |attr, param|
83+
value = self.send(attr)
84+
if value.nil?
85+
is_nullable = self.class.openapi_nullable.include?(attr)
86+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
87+
end
88+
89+
hash[param] = _to_hash(value)
90+
end
91+
self.additional_properties.each_pair do |attr, value|
92+
hash[attr] = value
93+
end
94+
hash
95+
end
96+
97+
# Checks equality by comparing each attribute.
98+
# @param o [Object] Object to be compared
99+
# @!visibility private
100+
def ==(o)
101+
return true if self.equal?(o)
102+
self.class == o.class &&
103+
trend_type == o.trend_type &&
104+
y_scale == o.y_scale &&
105+
additional_properties == o.additional_properties
106+
end
107+
108+
# Calculates hash code according to all attributes.
109+
# @return [Integer] Hash code
110+
# @!visibility private
111+
def hash
112+
[trend_type, y_scale, additional_properties].hash
113+
end
114+
end
115+
end
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
=begin
2+
#Datadog API V1 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::V1
20+
# Trend type for the cell display mode options.
21+
class WidgetFormulaCellDisplayModeOptionsTrendType
22+
include BaseEnumModel
23+
24+
AREA = "area".freeze
25+
LINE = "line".freeze
26+
BARS = "bars".freeze
27+
end
28+
end
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
=begin
2+
#Datadog API V1 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::V1
20+
# Y scale for the cell display mode options.
21+
class WidgetFormulaCellDisplayModeOptionsYScale
22+
include BaseEnumModel
23+
24+
SHARED = "shared".freeze
25+
INDEPENDENT = "independent".freeze
26+
end
27+
end

0 commit comments

Comments
 (0)