Skip to content

Commit 184af70

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a13b04a6 of spec repo
1 parent 391561c commit 184af70

17 files changed

+16
-795
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-05-06 15:05:59.808713",
8-
"spec_repo_commit": "d0ee626b"
7+
"regenerated": "2025-05-07 06:02:38.773281",
8+
"spec_repo_commit": "a13b04a6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-06 15:05:59.824618",
13-
"spec_repo_commit": "d0ee626b"
12+
"regenerated": "2025-05-07 06:02:38.789778",
13+
"spec_repo_commit": "a13b04a6"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 173 deletions
Original file line numberDiff line numberDiff line change
@@ -18664,7 +18664,7 @@ components:
1866418664
description: An optional list of time restrictions for when this layer is
1866518665
in effect.
1866618666
items:
18667-
$ref: '#/components/schemas/LayerAttributesRestrictionsItems'
18667+
$ref: '#/components/schemas/TimeRestriction'
1866818668
type: array
1866918669
rotation_start:
1867018670
description: The date/time when the rotation starts (ISO 8601).
@@ -18688,63 +18688,6 @@ components:
1868818688
maximum: 2592000
1868918689
type: integer
1869018690
type: object
18691-
LayerAttributesRestrictionsItems:
18692-
description: 'Represents a time restriction within a layer, specifying the days
18693-
and times
18694-
18695-
when this layer is active or inactive.'
18696-
properties:
18697-
end_day:
18698-
$ref: '#/components/schemas/LayerAttributesRestrictionsItemsEndDay'
18699-
end_time:
18700-
description: The time of day the restriction ends (hh:mm:ss).
18701-
example: '17:00:00'
18702-
type: string
18703-
start_day:
18704-
$ref: '#/components/schemas/LayerAttributesRestrictionsItemsStartDay'
18705-
start_time:
18706-
description: The time of day the restriction begins (hh:mm:ss).
18707-
example: 09:00:00
18708-
type: string
18709-
type: object
18710-
LayerAttributesRestrictionsItemsEndDay:
18711-
description: Defines the end day of the restriction within a Layer.
18712-
enum:
18713-
- monday
18714-
- tuesday
18715-
- wednesday
18716-
- thursday
18717-
- friday
18718-
- saturday
18719-
- sunday
18720-
type: string
18721-
x-enum-varnames:
18722-
- MONDAY
18723-
- TUESDAY
18724-
- WEDNESDAY
18725-
- THURSDAY
18726-
- FRIDAY
18727-
- SATURDAY
18728-
- SUNDAY
18729-
LayerAttributesRestrictionsItemsStartDay:
18730-
description: Defines the start day of the restriction within a Layer.
18731-
enum:
18732-
- monday
18733-
- tuesday
18734-
- wednesday
18735-
- thursday
18736-
- friday
18737-
- saturday
18738-
- sunday
18739-
type: string
18740-
x-enum-varnames:
18741-
- MONDAY
18742-
- TUESDAY
18743-
- WEDNESDAY
18744-
- THURSDAY
18745-
- FRIDAY
18746-
- SATURDAY
18747-
- SUNDAY
1874818691
LayerRelationships:
1874918692
description: Holds references to objects related to the Layer entity, such as
1875018693
its members.
@@ -31121,7 +31064,7 @@ components:
3112131064
description: Zero or more time-based restrictions (for example, only weekdays,
3112231065
during business hours).
3112331066
items:
31124-
$ref: '#/components/schemas/ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItems'
31067+
$ref: '#/components/schemas/TimeRestriction'
3112531068
type: array
3112631069
rotation_start:
3112731070
description: The date/time when the rotation for this layer starts (in ISO
@@ -31170,62 +31113,6 @@ components:
3117031113
example: 00000000-aba1-0000-0000-000000000000
3117131114
type: string
3117231115
type: object
31173-
ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItems:
31174-
description: 'Defines a time restriction for a schedule layer, including which
31175-
day of the week
31176-
31177-
it starts and ends, along with start/end times.'
31178-
properties:
31179-
end_day:
31180-
$ref: '#/components/schemas/ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsEndDay'
31181-
end_time:
31182-
description: The time of day when the restriction ends (hh:mm:ss).
31183-
type: string
31184-
start_day:
31185-
$ref: '#/components/schemas/ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsStartDay'
31186-
start_time:
31187-
description: The time of day when the restriction begins (hh:mm:ss).
31188-
type: string
31189-
type: object
31190-
ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsEndDay:
31191-
description: The weekday when the restriction period ends (Monday through Sunday).
31192-
enum:
31193-
- monday
31194-
- tuesday
31195-
- wednesday
31196-
- thursday
31197-
- friday
31198-
- saturday
31199-
- sunday
31200-
type: string
31201-
x-enum-varnames:
31202-
- MONDAY
31203-
- TUESDAY
31204-
- WEDNESDAY
31205-
- THURSDAY
31206-
- FRIDAY
31207-
- SATURDAY
31208-
- SUNDAY
31209-
ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsStartDay:
31210-
description: The weekday when the restriction period starts (Monday through
31211-
Sunday).
31212-
enum:
31213-
- monday
31214-
- tuesday
31215-
- wednesday
31216-
- thursday
31217-
- friday
31218-
- saturday
31219-
- sunday
31220-
type: string
31221-
x-enum-varnames:
31222-
- MONDAY
31223-
- TUESDAY
31224-
- WEDNESDAY
31225-
- THURSDAY
31226-
- FRIDAY
31227-
- SATURDAY
31228-
- SUNDAY
3122931116
ScheduleCreateRequestDataRelationships:
3123031117
description: Gathers relationship objects for the schedule creation request,
3123131118
including the teams to associate.
@@ -31629,7 +31516,7 @@ components:
3162931516
restrictions:
3163031517
description: Any time restrictions that define when this layer is active.
3163131518
items:
31632-
$ref: '#/components/schemas/ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItems'
31519+
$ref: '#/components/schemas/TimeRestriction'
3163331520
type: array
3163431521
rotation_start:
3163531522
description: The date/time at which the rotation begins (ISO 8601 format).
@@ -31679,63 +31566,6 @@ components:
3167931566
example: 00000000-aba1-0000-0000-000000000000
3168031567
type: string
3168131568
type: object
31682-
ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItems:
31683-
description: 'Defines a time restriction object for a layer within a schedule
31684-
update, including
31685-
31686-
start and end days, as well as times.'
31687-
properties:
31688-
end_day:
31689-
$ref: '#/components/schemas/ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsEndDay'
31690-
end_time:
31691-
description: The time at which this restriction ends (hh:mm:ss).
31692-
example: '17:00:00'
31693-
type: string
31694-
start_day:
31695-
$ref: '#/components/schemas/ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsStartDay'
31696-
start_time:
31697-
description: The time at which this restriction starts (hh:mm:ss).
31698-
example: 09:00:00
31699-
type: string
31700-
type: object
31701-
ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsEndDay:
31702-
description: Defines the day of the week on which the time restriction ends.
31703-
enum:
31704-
- monday
31705-
- tuesday
31706-
- wednesday
31707-
- thursday
31708-
- friday
31709-
- saturday
31710-
- sunday
31711-
type: string
31712-
x-enum-varnames:
31713-
- MONDAY
31714-
- TUESDAY
31715-
- WEDNESDAY
31716-
- THURSDAY
31717-
- FRIDAY
31718-
- SATURDAY
31719-
- SUNDAY
31720-
ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsStartDay:
31721-
description: Defines the day of the week on which the time restriction starts.
31722-
enum:
31723-
- monday
31724-
- tuesday
31725-
- wednesday
31726-
- thursday
31727-
- friday
31728-
- saturday
31729-
- sunday
31730-
type: string
31731-
x-enum-varnames:
31732-
- MONDAY
31733-
- TUESDAY
31734-
- WEDNESDAY
31735-
- THURSDAY
31736-
- FRIDAY
31737-
- SATURDAY
31738-
- SUNDAY
3173931569
ScheduleUpdateRequestDataRelationships:
3174031570
description: Houses relationships for the schedule update, typically referencing
3174131571
teams.

examples/v2/on-call/CreateOnCallSchedule.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
],
2929
name: "Layer 1",
3030
restrictions: [
31-
DatadogAPIClient::V2::ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItems.new({
32-
end_day: DatadogAPIClient::V2::ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsEndDay::FRIDAY,
31+
DatadogAPIClient::V2::TimeRestriction.new({
32+
end_day: DatadogAPIClient::V2::Weekday::FRIDAY,
3333
end_time: "17:00:00",
34-
start_day: DatadogAPIClient::V2::ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsStartDay::MONDAY,
34+
start_day: DatadogAPIClient::V2::Weekday::MONDAY,
3535
start_time: "09:00:00",
3636
}),
3737
],

examples/v2/on-call/UpdateOnCallSchedule.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
],
3535
name: "Layer 1",
3636
restrictions: [
37-
DatadogAPIClient::V2::ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItems.new({
38-
end_day: DatadogAPIClient::V2::ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsEndDay::FRIDAY,
37+
DatadogAPIClient::V2::TimeRestriction.new({
38+
end_day: DatadogAPIClient::V2::Weekday::FRIDAY,
3939
end_time: "17:00:00",
40-
start_day: DatadogAPIClient::V2::ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsStartDay::MONDAY,
40+
start_day: DatadogAPIClient::V2::Weekday::MONDAY,
4141
start_time: "09:00:00",
4242
}),
4343
],

lib/datadog_api_client/inflector.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,9 +2029,6 @@ def overrides
20292029
"v2.layer" => "Layer",
20302030
"v2.layer_attributes" => "LayerAttributes",
20312031
"v2.layer_attributes_interval" => "LayerAttributesInterval",
2032-
"v2.layer_attributes_restrictions_items" => "LayerAttributesRestrictionsItems",
2033-
"v2.layer_attributes_restrictions_items_end_day" => "LayerAttributesRestrictionsItemsEndDay",
2034-
"v2.layer_attributes_restrictions_items_start_day" => "LayerAttributesRestrictionsItemsStartDay",
20352032
"v2.layer_relationships" => "LayerRelationships",
20362033
"v2.layer_relationships_members" => "LayerRelationshipsMembers",
20372034
"v2.layer_relationships_members_data_items" => "LayerRelationshipsMembersDataItems",
@@ -2849,9 +2846,6 @@ def overrides
28492846
"v2.schedule_create_request_data_attributes_layers_items_interval" => "ScheduleCreateRequestDataAttributesLayersItemsInterval",
28502847
"v2.schedule_create_request_data_attributes_layers_items_members_items" => "ScheduleCreateRequestDataAttributesLayersItemsMembersItems",
28512848
"v2.schedule_create_request_data_attributes_layers_items_members_items_user" => "ScheduleCreateRequestDataAttributesLayersItemsMembersItemsUser",
2852-
"v2.schedule_create_request_data_attributes_layers_items_restrictions_items" => "ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItems",
2853-
"v2.schedule_create_request_data_attributes_layers_items_restrictions_items_end_day" => "ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsEndDay",
2854-
"v2.schedule_create_request_data_attributes_layers_items_restrictions_items_start_day" => "ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsStartDay",
28552849
"v2.schedule_create_request_data_relationships" => "ScheduleCreateRequestDataRelationships",
28562850
"v2.schedule_create_request_data_relationships_teams" => "ScheduleCreateRequestDataRelationshipsTeams",
28572851
"v2.schedule_create_request_data_relationships_teams_data_items" => "ScheduleCreateRequestDataRelationshipsTeamsDataItems",
@@ -2885,9 +2879,6 @@ def overrides
28852879
"v2.schedule_update_request_data_attributes_layers_items_interval" => "ScheduleUpdateRequestDataAttributesLayersItemsInterval",
28862880
"v2.schedule_update_request_data_attributes_layers_items_members_items" => "ScheduleUpdateRequestDataAttributesLayersItemsMembersItems",
28872881
"v2.schedule_update_request_data_attributes_layers_items_members_items_user" => "ScheduleUpdateRequestDataAttributesLayersItemsMembersItemsUser",
2888-
"v2.schedule_update_request_data_attributes_layers_items_restrictions_items" => "ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItems",
2889-
"v2.schedule_update_request_data_attributes_layers_items_restrictions_items_end_day" => "ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsEndDay",
2890-
"v2.schedule_update_request_data_attributes_layers_items_restrictions_items_start_day" => "ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsStartDay",
28912882
"v2.schedule_update_request_data_relationships" => "ScheduleUpdateRequestDataRelationships",
28922883
"v2.schedule_update_request_data_relationships_teams" => "ScheduleUpdateRequestDataRelationshipsTeams",
28932884
"v2.schedule_update_request_data_relationships_teams_data_items" => "ScheduleUpdateRequestDataRelationshipsTeamsDataItems",

lib/datadog_api_client/v2/models/layer_attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def self.openapi_types
6262
:'end_date' => :'Time',
6363
:'interval' => :'LayerAttributesInterval',
6464
:'name' => :'String',
65-
:'restrictions' => :'Array<LayerAttributesRestrictionsItems>',
65+
:'restrictions' => :'Array<TimeRestriction>',
6666
:'rotation_start' => :'Time'
6767
}
6868
end

0 commit comments

Comments
 (0)