Skip to content

Commit d284b20

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9fbe7041 of spec repo
1 parent 5ab5990 commit d284b20

7 files changed

+29
-149
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-03-17 21:06:24.773354",
8-
"spec_repo_commit": "2dfddc18"
7+
"regenerated": "2025-03-18 17:51:29.337554",
8+
"spec_repo_commit": "9fbe7041"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-17 21:06:24.789125",
13-
"spec_repo_commit": "2dfddc18"
12+
"regenerated": "2025-03-18 17:51:29.354454",
13+
"spec_repo_commit": "9fbe7041"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11964,6 +11964,7 @@ components:
1196411964
type: string
1196511965
type: object
1196611966
EntityResponseIncludedRawSchemaAttributes:
11967+
additionalProperties: false
1196711968
description: Included raw schema attributes.
1196811969
properties:
1196911970
rawSchema:
@@ -11985,6 +11986,7 @@ components:
1198511986
type: string
1198611987
type: object
1198711988
EntityResponseIncludedRelatedEntityAttributes:
11989+
additionalProperties: false
1198811990
description: Related entity attributes.
1198911991
properties:
1199011992
kind:
@@ -12019,6 +12021,7 @@ components:
1201912021
type: string
1202012022
type: object
1202112023
EntityResponseIncludedRelatedIncidentAttributes:
12024+
additionalProperties: false
1202212025
description: Incident attributes.
1202312026
properties:
1202412027
createdAt:
@@ -12039,6 +12042,7 @@ components:
1203912042
type: string
1204012043
type: object
1204112044
EntityResponseIncludedRelatedOncallAttributes:
12045+
additionalProperties: false
1204212046
description: Included related oncall attributes.
1204312047
properties:
1204412048
escalations:
@@ -12079,6 +12083,7 @@ components:
1207912083
type: string
1208012084
type: object
1208112085
EntityResponseIncludedSchemaAttributes:
12086+
additionalProperties: false
1208212087
description: Included schema.
1208312088
properties:
1208412089
schema:

lib/datadog_api_client/v2/models/entity_response_included_raw_schema_attributes.rb

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ class EntityResponseIncludedRawSchemaAttributes
2424
# Schema from user input in base64 encoding.
2525
attr_accessor :raw_schema
2626

27-
attr_accessor :additional_properties
28-
2927
# Attribute mapping from ruby-style variable name to JSON key.
3028
# @!visibility private
3129
def self.attribute_map
@@ -50,56 +48,33 @@ def initialize(attributes = {})
5048
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EntityResponseIncludedRawSchemaAttributes` initialize method"
5149
end
5250

53-
self.additional_properties = {}
5451
# check to see if the attribute exists and convert string to symbol for hash key
5552
attributes = attributes.each_with_object({}) { |(k, v), h|
5653
if (!self.class.attribute_map.key?(k.to_sym))
57-
self.additional_properties[k.to_sym] = v
58-
else
59-
h[k.to_sym] = v
54+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EntityResponseIncludedRawSchemaAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
6055
end
56+
h[k.to_sym] = v
6157
}
6258

6359
if attributes.key?(:'raw_schema')
6460
self.raw_schema = attributes[:'raw_schema']
6561
end
6662
end
6763

68-
# Returns the object in the form of hash, with additionalProperties support.
69-
# @return [Hash] Returns the object in the form of hash
70-
# @!visibility private
71-
def to_hash
72-
hash = {}
73-
self.class.attribute_map.each_pair do |attr, param|
74-
value = self.send(attr)
75-
if value.nil?
76-
is_nullable = self.class.openapi_nullable.include?(attr)
77-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
78-
end
79-
80-
hash[param] = _to_hash(value)
81-
end
82-
self.additional_properties.each_pair do |attr, value|
83-
hash[attr] = value
84-
end
85-
hash
86-
end
87-
8864
# Checks equality by comparing each attribute.
8965
# @param o [Object] Object to be compared
9066
# @!visibility private
9167
def ==(o)
9268
return true if self.equal?(o)
9369
self.class == o.class &&
94-
raw_schema == o.raw_schema &&
95-
additional_properties == o.additional_properties
70+
raw_schema == o.raw_schema
9671
end
9772

9873
# Calculates hash code according to all attributes.
9974
# @return [Integer] Hash code
10075
# @!visibility private
10176
def hash
102-
[raw_schema, additional_properties].hash
77+
[raw_schema].hash
10378
end
10479
end
10580
end

lib/datadog_api_client/v2/models/entity_response_included_related_entity_attributes.rb

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ class EntityResponseIncludedRelatedEntityAttributes
3333
# Entity relation type to the associated entity.
3434
attr_accessor :type
3535

36-
attr_accessor :additional_properties
37-
3836
# Attribute mapping from ruby-style variable name to JSON key.
3937
# @!visibility private
4038
def self.attribute_map
@@ -65,14 +63,12 @@ def initialize(attributes = {})
6563
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EntityResponseIncludedRelatedEntityAttributes` initialize method"
6664
end
6765

68-
self.additional_properties = {}
6966
# check to see if the attribute exists and convert string to symbol for hash key
7067
attributes = attributes.each_with_object({}) { |(k, v), h|
7168
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
69+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EntityResponseIncludedRelatedEntityAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
7570
end
71+
h[k.to_sym] = v
7672
}
7773

7874
if attributes.key?(:'kind')
@@ -92,26 +88,6 @@ def initialize(attributes = {})
9288
end
9389
end
9490

95-
# Returns the object in the form of hash, with additionalProperties support.
96-
# @return [Hash] Returns the object in the form of hash
97-
# @!visibility private
98-
def to_hash
99-
hash = {}
100-
self.class.attribute_map.each_pair do |attr, param|
101-
value = self.send(attr)
102-
if value.nil?
103-
is_nullable = self.class.openapi_nullable.include?(attr)
104-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
105-
end
106-
107-
hash[param] = _to_hash(value)
108-
end
109-
self.additional_properties.each_pair do |attr, value|
110-
hash[attr] = value
111-
end
112-
hash
113-
end
114-
11591
# Checks equality by comparing each attribute.
11692
# @param o [Object] Object to be compared
11793
# @!visibility private
@@ -121,15 +97,14 @@ def ==(o)
12197
kind == o.kind &&
12298
name == o.name &&
12399
namespace == o.namespace &&
124-
type == o.type &&
125-
additional_properties == o.additional_properties
100+
type == o.type
126101
end
127102

128103
# Calculates hash code according to all attributes.
129104
# @return [Integer] Hash code
130105
# @!visibility private
131106
def hash
132-
[kind, name, namespace, type, additional_properties].hash
107+
[kind, name, namespace, type].hash
133108
end
134109
end
135110
end

lib/datadog_api_client/v2/models/entity_response_included_related_incident_attributes.rb

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ class EntityResponseIncludedRelatedIncidentAttributes
3636
# Incident title.
3737
attr_accessor :title
3838

39-
attr_accessor :additional_properties
40-
4139
# Attribute mapping from ruby-style variable name to JSON key.
4240
# @!visibility private
4341
def self.attribute_map
@@ -70,14 +68,12 @@ def initialize(attributes = {})
7068
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EntityResponseIncludedRelatedIncidentAttributes` initialize method"
7169
end
7270

73-
self.additional_properties = {}
7471
# check to see if the attribute exists and convert string to symbol for hash key
7572
attributes = attributes.each_with_object({}) { |(k, v), h|
7673
if (!self.class.attribute_map.key?(k.to_sym))
77-
self.additional_properties[k.to_sym] = v
78-
else
79-
h[k.to_sym] = v
74+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EntityResponseIncludedRelatedIncidentAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
8075
end
76+
h[k.to_sym] = v
8177
}
8278

8379
if attributes.key?(:'created_at')
@@ -101,26 +97,6 @@ def initialize(attributes = {})
10197
end
10298
end
10399

104-
# Returns the object in the form of hash, with additionalProperties support.
105-
# @return [Hash] Returns the object in the form of hash
106-
# @!visibility private
107-
def to_hash
108-
hash = {}
109-
self.class.attribute_map.each_pair do |attr, param|
110-
value = self.send(attr)
111-
if value.nil?
112-
is_nullable = self.class.openapi_nullable.include?(attr)
113-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
114-
end
115-
116-
hash[param] = _to_hash(value)
117-
end
118-
self.additional_properties.each_pair do |attr, value|
119-
hash[attr] = value
120-
end
121-
hash
122-
end
123-
124100
# Checks equality by comparing each attribute.
125101
# @param o [Object] Object to be compared
126102
# @!visibility private
@@ -131,15 +107,14 @@ def ==(o)
131107
html_url == o.html_url &&
132108
provider == o.provider &&
133109
status == o.status &&
134-
title == o.title &&
135-
additional_properties == o.additional_properties
110+
title == o.title
136111
end
137112

138113
# Calculates hash code according to all attributes.
139114
# @return [Integer] Hash code
140115
# @!visibility private
141116
def hash
142-
[created_at, html_url, provider, status, title, additional_properties].hash
117+
[created_at, html_url, provider, status, title].hash
143118
end
144119
end
145120
end

lib/datadog_api_client/v2/models/entity_response_included_related_oncall_attributes.rb

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ class EntityResponseIncludedRelatedOncallAttributes
2727
# Oncall provider.
2828
attr_accessor :provider
2929

30-
attr_accessor :additional_properties
31-
3230
# Attribute mapping from ruby-style variable name to JSON key.
3331
# @!visibility private
3432
def self.attribute_map
@@ -55,14 +53,12 @@ def initialize(attributes = {})
5553
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::EntityResponseIncludedRelatedOncallAttributes` initialize method"
5654
end
5755

58-
self.additional_properties = {}
5956
# check to see if the attribute exists and convert string to symbol for hash key
6057
attributes = attributes.each_with_object({}) { |(k, v), h|
6158
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
59+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::EntityResponseIncludedRelatedOncallAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
6560
end
61+
h[k.to_sym] = v
6662
}
6763

6864
if attributes.key?(:'escalations')
@@ -76,42 +72,21 @@ def initialize(attributes = {})
7672
end
7773
end
7874

79-
# Returns the object in the form of hash, with additionalProperties support.
80-
# @return [Hash] Returns the object in the form of hash
81-
# @!visibility private
82-
def to_hash
83-
hash = {}
84-
self.class.attribute_map.each_pair do |attr, param|
85-
value = self.send(attr)
86-
if value.nil?
87-
is_nullable = self.class.openapi_nullable.include?(attr)
88-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
89-
end
90-
91-
hash[param] = _to_hash(value)
92-
end
93-
self.additional_properties.each_pair do |attr, value|
94-
hash[attr] = value
95-
end
96-
hash
97-
end
98-
9975
# Checks equality by comparing each attribute.
10076
# @param o [Object] Object to be compared
10177
# @!visibility private
10278
def ==(o)
10379
return true if self.equal?(o)
10480
self.class == o.class &&
10581
escalations == o.escalations &&
106-
provider == o.provider &&
107-
additional_properties == o.additional_properties
82+
provider == o.provider
10883
end
10984

11085
# Calculates hash code according to all attributes.
11186
# @return [Integer] Hash code
11287
# @!visibility private
11388
def hash
114-
[escalations, provider, additional_properties].hash
89+
[escalations, provider].hash
11590
end
11691
end
11792
end

0 commit comments

Comments
 (0)