Skip to content

Commit ee22b04

Browse files
committed
regenerated
1 parent f353eca commit ee22b04

File tree

1,794 files changed

+170
-35644
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,794 files changed

+170
-35644
lines changed

lib/datadog_api_client/v1/model_base.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def build_from_hash(attributes)
5959
return nil unless attributes.is_a?(Hash)
6060
unless self.respond_to?(:additional_properties)
6161
unless attributes.keys.all? { |key| self.class.openapi_types.key?(key) }
62-
return nil
62+
raise SchemaMismatchError, "Additional properties are not allowed"
6363
end
6464
end
6565
self.class.openapi_types.each_pair do |key, type|
@@ -161,7 +161,7 @@ def to_body
161161
to_hash
162162
end
163163

164-
# Returns the object in the form of hash
164+
# Returns the object in the form of hash, with additionalProperties support.
165165
# @return [Hash] Returns the object in the form of hash
166166
# @!visibility private
167167
def to_hash
@@ -175,6 +175,9 @@ def to_hash
175175

176176
hash[param] = _to_hash(value)
177177
end
178+
self.additional_properties.each_pair do |attr, value|
179+
hash[attr] = value
180+
end
178181
hash
179182
end
180183

lib/datadog_api_client/v1/models/add_signal_to_incident_request.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -101,26 +101,6 @@ def incident_id=(incident_id)
101101
@incident_id = incident_id
102102
end
103103

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-
124104
# Checks equality by comparing each attribute.
125105
# @param o [Object] Object to be compared
126106
# @!visibility private

lib/datadog_api_client/v1/models/alert_graph_widget_definition.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -159,26 +159,6 @@ def viz_type=(viz_type)
159159
@viz_type = viz_type
160160
end
161161

162-
# Returns the object in the form of hash, with additionalProperties support.
163-
# @return [Hash] Returns the object in the form of hash
164-
# @!visibility private
165-
def to_hash
166-
hash = {}
167-
self.class.attribute_map.each_pair do |attr, param|
168-
value = self.send(attr)
169-
if value.nil?
170-
is_nullable = self.class.openapi_nullable.include?(attr)
171-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
172-
end
173-
174-
hash[param] = _to_hash(value)
175-
end
176-
self.additional_properties.each_pair do |attr, value|
177-
hash[attr] = value
178-
end
179-
hash
180-
end
181-
182162
# Checks equality by comparing each attribute.
183163
# @param o [Object] Object to be compared
184164
# @!visibility private

lib/datadog_api_client/v1/models/alert_value_widget_definition.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -157,26 +157,6 @@ def type=(type)
157157
@type = type
158158
end
159159

160-
# Returns the object in the form of hash, with additionalProperties support.
161-
# @return [Hash] Returns the object in the form of hash
162-
# @!visibility private
163-
def to_hash
164-
hash = {}
165-
self.class.attribute_map.each_pair do |attr, param|
166-
value = self.send(attr)
167-
if value.nil?
168-
is_nullable = self.class.openapi_nullable.include?(attr)
169-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
170-
end
171-
172-
hash[param] = _to_hash(value)
173-
end
174-
self.additional_properties.each_pair do |attr, value|
175-
hash[attr] = value
176-
end
177-
hash
178-
end
179-
180160
# Checks equality by comparing each attribute.
181161
# @param o [Object] Object to be compared
182162
# @!visibility private

lib/datadog_api_client/v1/models/api_error_response.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -85,26 +85,6 @@ def errors=(errors)
8585
@errors = errors
8686
end
8787

88-
# Returns the object in the form of hash, with additionalProperties support.
89-
# @return [Hash] Returns the object in the form of hash
90-
# @!visibility private
91-
def to_hash
92-
hash = {}
93-
self.class.attribute_map.each_pair do |attr, param|
94-
value = self.send(attr)
95-
if value.nil?
96-
is_nullable = self.class.openapi_nullable.include?(attr)
97-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
98-
end
99-
100-
hash[param] = _to_hash(value)
101-
end
102-
self.additional_properties.each_pair do |attr, value|
103-
hash[attr] = value
104-
end
105-
hash
106-
end
107-
10888
# Checks equality by comparing each attribute.
10989
# @param o [Object] Object to be compared
11090
# @!visibility private

lib/datadog_api_client/v1/models/api_key.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -114,26 +114,6 @@ def key=(key)
114114
@key = key
115115
end
116116

117-
# Returns the object in the form of hash, with additionalProperties support.
118-
# @return [Hash] Returns the object in the form of hash
119-
# @!visibility private
120-
def to_hash
121-
hash = {}
122-
self.class.attribute_map.each_pair do |attr, param|
123-
value = self.send(attr)
124-
if value.nil?
125-
is_nullable = self.class.openapi_nullable.include?(attr)
126-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
127-
end
128-
129-
hash[param] = _to_hash(value)
130-
end
131-
self.additional_properties.each_pair do |attr, value|
132-
hash[attr] = value
133-
end
134-
hash
135-
end
136-
137117
# Checks equality by comparing each attribute.
138118
# @param o [Object] Object to be compared
139119
# @!visibility private

lib/datadog_api_client/v1/models/api_key_list_response.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,6 @@ def initialize(attributes = {})
6767
end
6868
end
6969

70-
# Returns the object in the form of hash, with additionalProperties support.
71-
# @return [Hash] Returns the object in the form of hash
72-
# @!visibility private
73-
def to_hash
74-
hash = {}
75-
self.class.attribute_map.each_pair do |attr, param|
76-
value = self.send(attr)
77-
if value.nil?
78-
is_nullable = self.class.openapi_nullable.include?(attr)
79-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
80-
end
81-
82-
hash[param] = _to_hash(value)
83-
end
84-
self.additional_properties.each_pair do |attr, value|
85-
hash[attr] = value
86-
end
87-
hash
88-
end
89-
9070
# Checks equality by comparing each attribute.
9171
# @param o [Object] Object to be compared
9272
# @!visibility private

lib/datadog_api_client/v1/models/api_key_response.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -65,26 +65,6 @@ def initialize(attributes = {})
6565
end
6666
end
6767

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-
8868
# Checks equality by comparing each attribute.
8969
# @param o [Object] Object to be compared
9070
# @!visibility private

lib/datadog_api_client/v1/models/apm_stats_query_column_type.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -110,26 +110,6 @@ def name=(name)
110110
@name = name
111111
end
112112

113-
# Returns the object in the form of hash, with additionalProperties support.
114-
# @return [Hash] Returns the object in the form of hash
115-
# @!visibility private
116-
def to_hash
117-
hash = {}
118-
self.class.attribute_map.each_pair do |attr, param|
119-
value = self.send(attr)
120-
if value.nil?
121-
is_nullable = self.class.openapi_nullable.include?(attr)
122-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
123-
end
124-
125-
hash[param] = _to_hash(value)
126-
end
127-
self.additional_properties.each_pair do |attr, value|
128-
hash[attr] = value
129-
end
130-
hash
131-
end
132-
133113
# Checks equality by comparing each attribute.
134114
# @param o [Object] Object to be compared
135115
# @!visibility private

lib/datadog_api_client/v1/models/apm_stats_query_definition.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -183,26 +183,6 @@ def service=(service)
183183
@service = service
184184
end
185185

186-
# Returns the object in the form of hash, with additionalProperties support.
187-
# @return [Hash] Returns the object in the form of hash
188-
# @!visibility private
189-
def to_hash
190-
hash = {}
191-
self.class.attribute_map.each_pair do |attr, param|
192-
value = self.send(attr)
193-
if value.nil?
194-
is_nullable = self.class.openapi_nullable.include?(attr)
195-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196-
end
197-
198-
hash[param] = _to_hash(value)
199-
end
200-
self.additional_properties.each_pair do |attr, value|
201-
hash[attr] = value
202-
end
203-
hash
204-
end
205-
206186
# Checks equality by comparing each attribute.
207187
# @param o [Object] Object to be compared
208188
# @!visibility private

0 commit comments

Comments
 (0)