Skip to content

Commit a0c08c5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit ec8ccab of spec repo (DataDog#3606)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent a1e7406 commit a0c08c5

4 files changed

Lines changed: 52 additions & 1 deletion

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87680,13 +87680,26 @@ components:
8768087680
ScheduleTrigger:
8768187681
description: "Trigger a workflow from a Schedule. The workflow must be published."
8768287682
properties:
87683+
overlapBehavior:
87684+
$ref: "#/components/schemas/ScheduleTriggerOverlapBehavior"
8768387685
rruleExpression:
8768487686
description: "Recurrence rule expression for scheduling."
8768587687
example: ""
8768687688
type: string
8768787689
required:
8768887690
- rruleExpression
8768987691
type: object
87692+
ScheduleTriggerOverlapBehavior:
87693+
default: EXCLUSIVE_RUN
87694+
description: Controls whether a scheduled workflow run may start while another instance is still running.
87695+
enum:
87696+
- EXCLUSIVE_RUN
87697+
- OVERLAP_ALLOWED
87698+
example: EXCLUSIVE_RUN
87699+
type: string
87700+
x-enum-varnames:
87701+
- EXCLUSIVE_RUN
87702+
- OVERLAP_ALLOWED
8769087703
ScheduleTriggerWrapper:
8769187704
description: "Schema for a Schedule-based trigger."
8769287705
properties:

lib/datadog_api_client/inflector.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6474,6 +6474,7 @@ def overrides
64746474
"v2.schedule_target_position" => "ScheduleTargetPosition",
64756475
"v2.schedule_target_type" => "ScheduleTargetType",
64766476
"v2.schedule_trigger" => "ScheduleTrigger",
6477+
"v2.schedule_trigger_overlap_behavior" => "ScheduleTriggerOverlapBehavior",
64776478
"v2.schedule_trigger_wrapper" => "ScheduleTriggerWrapper",
64786479
"v2.schedule_update_request" => "ScheduleUpdateRequest",
64796480
"v2.schedule_update_request_data" => "ScheduleUpdateRequestData",

lib/datadog_api_client/v2/models/schedule_trigger.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
2121
class ScheduleTrigger
2222
include BaseGenericModel
2323

24+
# Controls whether a scheduled workflow run may start while another instance is still running.
25+
attr_accessor :overlap_behavior
26+
2427
# Recurrence rule expression for scheduling.
2528
attr_reader :rrule_expression
2629

@@ -30,6 +33,7 @@ class ScheduleTrigger
3033
# @!visibility private
3134
def self.attribute_map
3235
{
36+
:'overlap_behavior' => :'overlapBehavior',
3337
:'rrule_expression' => :'rruleExpression'
3438
}
3539
end
@@ -38,6 +42,7 @@ def self.attribute_map
3842
# @!visibility private
3943
def self.openapi_types
4044
{
45+
:'overlap_behavior' => :'ScheduleTriggerOverlapBehavior',
4146
:'rrule_expression' => :'String'
4247
}
4348
end
@@ -60,6 +65,10 @@ def initialize(attributes = {})
6065
end
6166
}
6267

68+
if attributes.key?(:'overlap_behavior')
69+
self.overlap_behavior = attributes[:'overlap_behavior']
70+
end
71+
6372
if attributes.key?(:'rrule_expression')
6473
self.rrule_expression = attributes[:'rrule_expression']
6574
end
@@ -109,6 +118,7 @@ def to_hash
109118
def ==(o)
110119
return true if self.equal?(o)
111120
self.class == o.class &&
121+
overlap_behavior == o.overlap_behavior &&
112122
rrule_expression == o.rrule_expression &&
113123
additional_properties == o.additional_properties
114124
end
@@ -117,7 +127,7 @@ def ==(o)
117127
# @return [Integer] Hash code
118128
# @!visibility private
119129
def hash
120-
[rrule_expression, additional_properties].hash
130+
[overlap_behavior, rrule_expression, additional_properties].hash
121131
end
122132
end
123133
end
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
=begin
2+
#Datadog API V2 Collection
3+
4+
#Collection of all Datadog Public endpoints.
5+
6+
The version of the OpenAPI document: 1.0
7+
Contact: support@datadoghq.com
8+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9+
10+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11+
This product includes software developed at Datadog (https://www.datadoghq.com/).
12+
Copyright 2020-Present Datadog, Inc.
13+
14+
=end
15+
16+
require 'date'
17+
require 'time'
18+
19+
module DatadogAPIClient::V2
20+
# Controls whether a scheduled workflow run may start while another instance is still running.
21+
class ScheduleTriggerOverlapBehavior
22+
include BaseEnumModel
23+
24+
EXCLUSIVE_RUN = "EXCLUSIVE_RUN".freeze
25+
OVERLAP_ALLOWED = "OVERLAP_ALLOWED".freeze
26+
end
27+
end

0 commit comments

Comments
 (0)