diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4e9c630923b8..3cae905522d9 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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 diff --git a/lib/datadog_api_client/v2/models/on_call_trigger.rb b/lib/datadog_api_client/v2/models/on_call_trigger.rb index 89629916d4ef..d8dc08470894 100644 --- a/lib/datadog_api_client/v2/models/on_call_trigger.rb +++ b/lib/datadog_api_client/v2/models/on_call_trigger.rb @@ -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 @@ -30,6 +33,7 @@ class OnCallTrigger # @!visibility private def self.attribute_map { + :'handle' => :'handle', :'rate_limit' => :'rateLimit' } end @@ -38,6 +42,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'handle' => :'String', :'rate_limit' => :'TriggerRateLimit' } end @@ -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 @@ -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 @@ -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