Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30806,6 +30806,9 @@ components:
properties:
rateLimit:
$ref: '#/components/schemas/TriggerRateLimit'
version:
description: Version of the incident trigger.
type: string
type: object
IncidentTriggerWrapper:
description: Schema for an Incident-based trigger.
Expand Down
16 changes: 13 additions & 3 deletions lib/datadog_api_client/v2/models/incident_trigger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,26 @@ class IncidentTrigger
# Defines a rate limit for a trigger.
attr_accessor :rate_limit

# Version of the incident trigger.
attr_accessor :version

attr_accessor :additional_properties

# Attribute mapping from ruby-style variable name to JSON key.
# @!visibility private
def self.attribute_map
{
:'rate_limit' => :'rateLimit'
:'rate_limit' => :'rateLimit',
:'version' => :'version'
}
end

# Attribute type mapping.
# @!visibility private
def self.openapi_types
{
:'rate_limit' => :'TriggerRateLimit'
:'rate_limit' => :'TriggerRateLimit',
:'version' => :'String'
}
end

Expand All @@ -63,6 +68,10 @@ def initialize(attributes = {})
if attributes.key?(:'rate_limit')
self.rate_limit = attributes[:'rate_limit']
end

if attributes.key?(:'version')
self.version = attributes[:'version']
end
end

# Returns the object in the form of hash, with additionalProperties support.
Expand Down Expand Up @@ -92,14 +101,15 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
rate_limit == o.rate_limit &&
version == o.version &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[rate_limit, additional_properties].hash
[rate_limit, version, additional_properties].hash
end
end
end
Loading