Skip to content

Commit 8109e84

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 08213d1b of spec repo
1 parent 81f8c0e commit 8109e84

File tree

8 files changed

+413
-7
lines changed

8 files changed

+413
-7
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-14 15:03:43.770632",
8-
"spec_repo_commit": "a739b49f"
7+
"regenerated": "2025-02-17 08:39:34.861760",
8+
"spec_repo_commit": "08213d1b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-14 15:03:43.786179",
13-
"spec_repo_commit": "a739b49f"
12+
"regenerated": "2025-02-17 08:39:34.876928",
13+
"spec_repo_commit": "08213d1b"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,61 @@ components:
11151115
type: string
11161116
x-enum-varnames:
11171117
- CHECK_STATUS
1118+
ColumnOrderObject:
1119+
description: Order criteria
1120+
properties:
1121+
index:
1122+
description: Index of the sorted column
1123+
format: double
1124+
type: number
1125+
name:
1126+
description: Name of the sorted column
1127+
type: string
1128+
order:
1129+
$ref: '#/components/schemas/ColumnOrderObjectOrder'
1130+
description: Order of the sort
1131+
type:
1132+
$ref: '#/components/schemas/ColumnOrderObjectType'
1133+
description: Type of sorted attribute
1134+
required:
1135+
- order
1136+
- type
1137+
type: object
1138+
ColumnOrderObjectOrder:
1139+
description: Order object
1140+
enum:
1141+
- asc
1142+
- desc
1143+
example: asc
1144+
type: string
1145+
x-enum-varnames:
1146+
- ASC
1147+
- DESC
1148+
ColumnOrderObjectType:
1149+
description: type of column
1150+
enum:
1151+
- formula
1152+
- group
1153+
example: formula
1154+
type: string
1155+
x-enum-varnames:
1156+
- FORMULA
1157+
- GROUP
1158+
ColumnSortObject:
1159+
description: Sort object
1160+
properties:
1161+
count:
1162+
description: Limit number of items displayed
1163+
format: double
1164+
type: number
1165+
order_by:
1166+
description: Order criteria
1167+
items:
1168+
$ref: '#/components/schemas/ColumnOrderObject'
1169+
maxItems: 1
1170+
minItems: 1
1171+
type: array
1172+
type: object
11181173
ContentEncoding:
11191174
description: HTTP header used to compress the media-type.
11201175
enum:
@@ -10223,6 +10278,8 @@ components:
1022310278
$ref: '#/components/schemas/LogQueryDefinition'
1022410279
security_query:
1022510280
$ref: '#/components/schemas/LogQueryDefinition'
10281+
sort:
10282+
$ref: '#/components/schemas/ColumnSortObject'
1022610283
type: object
1022710284
ReferenceTableLogsLookupProcessor:
1022810285
description: '**Note**: Reference Tables are in public beta.

lib/datadog_api_client/inflector.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ def overrides
6464
"v1.check_can_delete_slo_response_data" => "CheckCanDeleteSLOResponseData",
6565
"v1.check_status_widget_definition" => "CheckStatusWidgetDefinition",
6666
"v1.check_status_widget_definition_type" => "CheckStatusWidgetDefinitionType",
67+
"v1.column_order_object" => "ColumnOrderObject",
68+
"v1.column_order_object_order" => "ColumnOrderObjectOrder",
69+
"v1.column_order_object_type" => "ColumnOrderObjectType",
70+
"v1.column_sort_object" => "ColumnSortObject",
6771
"v1.content_encoding" => "ContentEncoding",
6872
"v1.creator" => "Creator",
6973
"v1.dashboard" => "Dashboard",
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
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+
# Order criteria
21+
class ColumnOrderObject
22+
include BaseGenericModel
23+
24+
# Index of the sorted column
25+
attr_accessor :index
26+
27+
# Name of the sorted column
28+
attr_accessor :name
29+
30+
# Order object
31+
attr_reader :order
32+
33+
# type of column
34+
attr_reader :type
35+
36+
attr_accessor :additional_properties
37+
38+
# Attribute mapping from ruby-style variable name to JSON key.
39+
# @!visibility private
40+
def self.attribute_map
41+
{
42+
:'index' => :'index',
43+
:'name' => :'name',
44+
:'order' => :'order',
45+
:'type' => :'type'
46+
}
47+
end
48+
49+
# Attribute type mapping.
50+
# @!visibility private
51+
def self.openapi_types
52+
{
53+
:'index' => :'Float',
54+
:'name' => :'String',
55+
:'order' => :'ColumnOrderObjectOrder',
56+
:'type' => :'ColumnOrderObjectType'
57+
}
58+
end
59+
60+
# Initializes the object
61+
# @param attributes [Hash] Model attributes in the form of hash
62+
# @!visibility private
63+
def initialize(attributes = {})
64+
if (!attributes.is_a?(Hash))
65+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::ColumnOrderObject` initialize method"
66+
end
67+
68+
self.additional_properties = {}
69+
# check to see if the attribute exists and convert string to symbol for hash key
70+
attributes = attributes.each_with_object({}) { |(k, v), h|
71+
if (!self.class.attribute_map.key?(k.to_sym))
72+
self.additional_properties[k.to_sym] = v
73+
else
74+
h[k.to_sym] = v
75+
end
76+
}
77+
78+
if attributes.key?(:'index')
79+
self.index = attributes[:'index']
80+
end
81+
82+
if attributes.key?(:'name')
83+
self.name = attributes[:'name']
84+
end
85+
86+
if attributes.key?(:'order')
87+
self.order = attributes[:'order']
88+
end
89+
90+
if attributes.key?(:'type')
91+
self.type = attributes[:'type']
92+
end
93+
end
94+
95+
# Check to see if the all the properties in the model are valid
96+
# @return true if the model is valid
97+
# @!visibility private
98+
def valid?
99+
return false if @order.nil?
100+
return false if @type.nil?
101+
true
102+
end
103+
104+
# Custom attribute writer method with validation
105+
# @param order [Object] Object to be assigned
106+
# @!visibility private
107+
def order=(order)
108+
if order.nil?
109+
fail ArgumentError, 'invalid value for "order", order cannot be nil.'
110+
end
111+
@order = order
112+
end
113+
114+
# Custom attribute writer method with validation
115+
# @param type [Object] Object to be assigned
116+
# @!visibility private
117+
def type=(type)
118+
if type.nil?
119+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
120+
end
121+
@type = type
122+
end
123+
124+
# Returns the object in the form of hash, with additionalProperties support.
125+
# @return [Hash] Returns the object in the form of hash
126+
# @!visibility private
127+
def to_hash
128+
hash = {}
129+
self.class.attribute_map.each_pair do |attr, param|
130+
value = self.send(attr)
131+
if value.nil?
132+
is_nullable = self.class.openapi_nullable.include?(attr)
133+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
134+
end
135+
136+
hash[param] = _to_hash(value)
137+
end
138+
self.additional_properties.each_pair do |attr, value|
139+
hash[attr] = value
140+
end
141+
hash
142+
end
143+
144+
# Checks equality by comparing each attribute.
145+
# @param o [Object] Object to be compared
146+
# @!visibility private
147+
def ==(o)
148+
return true if self.equal?(o)
149+
self.class == o.class &&
150+
index == o.index &&
151+
name == o.name &&
152+
order == o.order &&
153+
type == o.type &&
154+
additional_properties == o.additional_properties
155+
end
156+
157+
# Calculates hash code according to all attributes.
158+
# @return [Integer] Hash code
159+
# @!visibility private
160+
def hash
161+
[index, name, order, type, additional_properties].hash
162+
end
163+
end
164+
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+
# Order object
21+
class ColumnOrderObjectOrder
22+
include BaseEnumModel
23+
24+
ASC = "asc".freeze
25+
DESC = "desc".freeze
26+
end
27+
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+
# type of column
21+
class ColumnOrderObjectType
22+
include BaseEnumModel
23+
24+
FORMULA = "formula".freeze
25+
GROUP = "group".freeze
26+
end
27+
end

0 commit comments

Comments
 (0)