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
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53833,6 +53833,10 @@ components:
OnCallTrigger:
description: "Trigger a workflow from an On-Call Page or On-Call Handover. For automatic triggering a handle must be configured and the workflow must be published."
properties:
handle:
description: "The handle used to reference this trigger from On-Call. Required for automatic triggering."
example: ""
type: string
rateLimit:
$ref: "#/components/schemas/TriggerRateLimit"
type: object
Expand Down
12 changes: 11 additions & 1 deletion lib/datadog_api_client/v2/models/on_call_trigger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V2
class OnCallTrigger
include BaseGenericModel

# The handle used to reference this trigger from On-Call. Required for automatic triggering.
attr_accessor :handle

# Defines a rate limit for a trigger.
attr_accessor :rate_limit

Expand All @@ -30,6 +33,7 @@ class OnCallTrigger
# @!visibility private
def self.attribute_map
{
:'handle' => :'handle',
:'rate_limit' => :'rateLimit'
}
end
Expand All @@ -38,6 +42,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'handle' => :'String',
:'rate_limit' => :'TriggerRateLimit'
}
end
Expand All @@ -60,6 +65,10 @@ def initialize(attributes = {})
end
}

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

if attributes.key?(:'rate_limit')
self.rate_limit = attributes[:'rate_limit']
end
Expand Down Expand Up @@ -91,6 +100,7 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
handle == o.handle &&
rate_limit == o.rate_limit &&
additional_properties == o.additional_properties
end
Expand All @@ -99,7 +109,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[rate_limit, additional_properties].hash
[handle, rate_limit, additional_properties].hash
end
end
end
Loading