Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .generator/src/generator/templates/model_generic.j2
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
return true if self.equal?(o)
self.class == o.class &&
{%- for attr in model.properties %}
{{ attr|attribute_name }} == o.{{ attr|attribute_name }}{% if not loop.last or model.get("additionalProperties") %} &&{% endif %}
{{ attr|attribute_name }} == o.{{ attr|attribute_name }}{% if not loop.last or additionalProperties is not false %} &&{% endif %}
{%- endfor %}
{%- if additionalProperties is not false %}
additional_properties == o.additional_properties
Expand All @@ -282,6 +282,6 @@
# @return [Integer] Hash code
# @!visibility private
def hash
[{% for attr in model.properties %}{{ attr|attribute_name }}{% if not loop.last or model.get("additionalProperties") %}, {% endif %}{% endfor %}{% if model.get("additionalProperties") %}additional_properties{% endif %}].hash
[{% for attr in model.properties %}{{ attr|attribute_name }}{% if not loop.last or additionalProperties is not false %}, {% endif %}{% endfor %}{% if additionalProperties is not false %}additional_properties{% endif %}].hash
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ def ==(o)
self.class == o.class &&
add_to_signal_timeline == o.add_to_signal_timeline &&
incident_id == o.incident_id &&
version == o.version
version == o.version &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[add_to_signal_timeline, incident_id, version].hash
[add_to_signal_timeline, incident_id, version, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,15 @@ def ==(o)
title_align == o.title_align &&
title_size == o.title_size &&
type == o.type &&
viz_type == o.viz_type
viz_type == o.viz_type &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[alert_id, time, title, title_align, title_size, type, viz_type].hash
[alert_id, time, title, title_align, title_size, type, viz_type, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,15 @@ def ==(o)
title_align == o.title_align &&
title_size == o.title_size &&
type == o.type &&
unit == o.unit
unit == o.unit &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[alert_id, precision, text_align, title, title_align, title_size, type, unit].hash
[alert_id, precision, text_align, title, title_align, title_size, type, unit, additional_properties].hash
end
end
end
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v1/models/api_error_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
errors == o.errors
errors == o.errors &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[errors].hash
[errors, additional_properties].hash
end
end
end
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v1/models/api_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ def ==(o)
created == o.created &&
created_by == o.created_by &&
key == o.key &&
name == o.name
name == o.name &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[created, created_by, key, name].hash
[created, created_by, key, name, additional_properties].hash
end
end
end
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v1/models/api_key_list_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
api_keys == o.api_keys
api_keys == o.api_keys &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[api_keys].hash
[api_keys, additional_properties].hash
end
end
end
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v1/models/api_key_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
api_key == o.api_key
api_key == o.api_key &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[api_key].hash
[api_key, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ def ==(o)
_alias == o._alias &&
cell_display_mode == o.cell_display_mode &&
name == o.name &&
order == o.order
order == o.order &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[_alias, cell_display_mode, name, order].hash
[_alias, cell_display_mode, name, order, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ def ==(o)
primary_tag == o.primary_tag &&
resource == o.resource &&
row_type == o.row_type &&
service == o.service
service == o.service &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[columns, env, name, primary_tag, resource, row_type, service].hash
[columns, env, name, primary_tag, resource, row_type, service, additional_properties].hash
end
end
end
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v1/models/application_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ def ==(o)
self.class == o.class &&
_hash == o._hash &&
name == o.name &&
owner == o.owner
owner == o.owner &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[_hash, name, owner].hash
[_hash, name, owner, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
application_keys == o.application_keys
application_keys == o.application_keys &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[application_keys].hash
[application_keys, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
application_key == o.application_key
application_key == o.application_key &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[application_key].hash
[application_key, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
valid == o.valid
valid == o.valid &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[valid].hash
[valid, additional_properties].hash
end
end
end
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v1/models/aws_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,15 @@ def ==(o)
metrics_collection_enabled == o.metrics_collection_enabled &&
resource_collection_enabled == o.resource_collection_enabled &&
role_name == o.role_name &&
secret_access_key == o.secret_access_key
secret_access_key == o.secret_access_key &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[access_key_id, account_id, account_specific_namespace_rules, cspm_resource_collection_enabled, excluded_regions, extended_resource_collection_enabled, filter_tags, host_tags, metrics_collection_enabled, resource_collection_enabled, role_name, secret_access_key].hash
[access_key_id, account_id, account_specific_namespace_rules, cspm_resource_collection_enabled, excluded_regions, extended_resource_collection_enabled, filter_tags, host_tags, metrics_collection_enabled, resource_collection_enabled, role_name, secret_access_key, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
account_id == o.account_id &&
lambda_arn == o.lambda_arn
lambda_arn == o.lambda_arn &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[account_id, lambda_arn].hash
[account_id, lambda_arn, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
external_id == o.external_id
external_id == o.external_id &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[external_id].hash
[external_id, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ def ==(o)
self.class == o.class &&
access_key_id == o.access_key_id &&
account_id == o.account_id &&
role_name == o.role_name
role_name == o.role_name &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[access_key_id, account_id, role_name].hash
[access_key_id, account_id, role_name, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
accounts == o.accounts
accounts == o.accounts &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[accounts].hash
[accounts, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,15 @@ def ==(o)
self.class == o.class &&
account_id == o.account_id &&
event_hubs == o.event_hubs &&
tags == o.tags
tags == o.tags &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[account_id, event_hubs, tags].hash
[account_id, event_hubs, tags, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ def ==(o)
account_id == o.account_id &&
create_event_bus == o.create_event_bus &&
event_generator_name == o.event_generator_name &&
region == o.region
region == o.region &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[account_id, create_event_bus, event_generator_name, region].hash
[account_id, create_event_bus, event_generator_name, region, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ def ==(o)
event_source_name == o.event_source_name &&
has_bus == o.has_bus &&
region == o.region &&
status == o.status
status == o.status &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[event_source_name, has_bus, region, status].hash
[event_source_name, has_bus, region, status, additional_properties].hash
end
end
end
Loading
Loading