Skip to content
Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-05-09 02:41:20.820143",
"spec_repo_commit": "39adb7c0"
"regenerated": "2025-05-09 14:41:42.274122",
"spec_repo_commit": "f0e5e32f"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-05-09 02:41:20.835754",
"spec_repo_commit": "39adb7c0"
"regenerated": "2025-05-09 14:41:42.291116",
"spec_repo_commit": "f0e5e32f"
}
}
}
176 changes: 3 additions & 173 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18663,7 +18663,7 @@ components:
description: An optional list of time restrictions for when this layer is
in effect.
items:
$ref: '#/components/schemas/LayerAttributesRestrictionsItems'
$ref: '#/components/schemas/TimeRestriction'
type: array
rotation_start:
description: The date/time when the rotation starts (ISO 8601).
Expand All @@ -18687,63 +18687,6 @@ components:
maximum: 2592000
type: integer
type: object
LayerAttributesRestrictionsItems:
description: 'Represents a time restriction within a layer, specifying the days
and times

when this layer is active or inactive.'
properties:
end_day:
$ref: '#/components/schemas/LayerAttributesRestrictionsItemsEndDay'
end_time:
description: The time of day the restriction ends (hh:mm:ss).
example: '17:00:00'
type: string
start_day:
$ref: '#/components/schemas/LayerAttributesRestrictionsItemsStartDay'
start_time:
description: The time of day the restriction begins (hh:mm:ss).
example: 09:00:00
type: string
type: object
LayerAttributesRestrictionsItemsEndDay:
description: Defines the end day of the restriction within a Layer.
enum:
- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- sunday
type: string
x-enum-varnames:
- MONDAY
- TUESDAY
- WEDNESDAY
- THURSDAY
- FRIDAY
- SATURDAY
- SUNDAY
LayerAttributesRestrictionsItemsStartDay:
description: Defines the start day of the restriction within a Layer.
enum:
- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- sunday
type: string
x-enum-varnames:
- MONDAY
- TUESDAY
- WEDNESDAY
- THURSDAY
- FRIDAY
- SATURDAY
- SUNDAY
LayerRelationships:
description: Holds references to objects related to the Layer entity, such as
its members.
Expand Down Expand Up @@ -31120,7 +31063,7 @@ components:
description: Zero or more time-based restrictions (for example, only weekdays,
during business hours).
items:
$ref: '#/components/schemas/ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItems'
$ref: '#/components/schemas/TimeRestriction'
type: array
rotation_start:
description: The date/time when the rotation for this layer starts (in ISO
Expand Down Expand Up @@ -31169,62 +31112,6 @@ components:
example: 00000000-aba1-0000-0000-000000000000
type: string
type: object
ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItems:
description: 'Defines a time restriction for a schedule layer, including which
day of the week

it starts and ends, along with start/end times.'
properties:
end_day:
$ref: '#/components/schemas/ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsEndDay'
end_time:
description: The time of day when the restriction ends (hh:mm:ss).
type: string
start_day:
$ref: '#/components/schemas/ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsStartDay'
start_time:
description: The time of day when the restriction begins (hh:mm:ss).
type: string
type: object
ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsEndDay:
description: The weekday when the restriction period ends (Monday through Sunday).
enum:
- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- sunday
type: string
x-enum-varnames:
- MONDAY
- TUESDAY
- WEDNESDAY
- THURSDAY
- FRIDAY
- SATURDAY
- SUNDAY
ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsStartDay:
description: The weekday when the restriction period starts (Monday through
Sunday).
enum:
- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- sunday
type: string
x-enum-varnames:
- MONDAY
- TUESDAY
- WEDNESDAY
- THURSDAY
- FRIDAY
- SATURDAY
- SUNDAY
ScheduleCreateRequestDataRelationships:
description: Gathers relationship objects for the schedule creation request,
including the teams to associate.
Expand Down Expand Up @@ -31628,7 +31515,7 @@ components:
restrictions:
description: Any time restrictions that define when this layer is active.
items:
$ref: '#/components/schemas/ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItems'
$ref: '#/components/schemas/TimeRestriction'
type: array
rotation_start:
description: The date/time at which the rotation begins (ISO 8601 format).
Expand Down Expand Up @@ -31678,63 +31565,6 @@ components:
example: 00000000-aba1-0000-0000-000000000000
type: string
type: object
ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItems:
description: 'Defines a time restriction object for a layer within a schedule
update, including

start and end days, as well as times.'
properties:
end_day:
$ref: '#/components/schemas/ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsEndDay'
end_time:
description: The time at which this restriction ends (hh:mm:ss).
example: '17:00:00'
type: string
start_day:
$ref: '#/components/schemas/ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsStartDay'
start_time:
description: The time at which this restriction starts (hh:mm:ss).
example: 09:00:00
type: string
type: object
ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsEndDay:
description: Defines the day of the week on which the time restriction ends.
enum:
- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- sunday
type: string
x-enum-varnames:
- MONDAY
- TUESDAY
- WEDNESDAY
- THURSDAY
- FRIDAY
- SATURDAY
- SUNDAY
ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsStartDay:
description: Defines the day of the week on which the time restriction starts.
enum:
- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- sunday
type: string
x-enum-varnames:
- MONDAY
- TUESDAY
- WEDNESDAY
- THURSDAY
- FRIDAY
- SATURDAY
- SUNDAY
ScheduleUpdateRequestDataRelationships:
description: Houses relationships for the schedule update, typically referencing
teams.
Expand Down
6 changes: 3 additions & 3 deletions examples/v2/on-call/CreateOnCallSchedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
],
name: "Layer 1",
restrictions: [
DatadogAPIClient::V2::ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItems.new({
end_day: DatadogAPIClient::V2::ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsEndDay::FRIDAY,
DatadogAPIClient::V2::TimeRestriction.new({
end_day: DatadogAPIClient::V2::Weekday::FRIDAY,
end_time: "17:00:00",
start_day: DatadogAPIClient::V2::ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsStartDay::MONDAY,
start_day: DatadogAPIClient::V2::Weekday::MONDAY,
start_time: "09:00:00",
}),
],
Expand Down
6 changes: 3 additions & 3 deletions examples/v2/on-call/UpdateOnCallSchedule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
],
name: "Layer 1",
restrictions: [
DatadogAPIClient::V2::ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItems.new({
end_day: DatadogAPIClient::V2::ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsEndDay::FRIDAY,
DatadogAPIClient::V2::TimeRestriction.new({
end_day: DatadogAPIClient::V2::Weekday::FRIDAY,
end_time: "17:00:00",
start_day: DatadogAPIClient::V2::ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsStartDay::MONDAY,
start_day: DatadogAPIClient::V2::Weekday::MONDAY,
start_time: "09:00:00",
}),
],
Expand Down
9 changes: 0 additions & 9 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2029,9 +2029,6 @@ def overrides
"v2.layer" => "Layer",
"v2.layer_attributes" => "LayerAttributes",
"v2.layer_attributes_interval" => "LayerAttributesInterval",
"v2.layer_attributes_restrictions_items" => "LayerAttributesRestrictionsItems",
"v2.layer_attributes_restrictions_items_end_day" => "LayerAttributesRestrictionsItemsEndDay",
"v2.layer_attributes_restrictions_items_start_day" => "LayerAttributesRestrictionsItemsStartDay",
"v2.layer_relationships" => "LayerRelationships",
"v2.layer_relationships_members" => "LayerRelationshipsMembers",
"v2.layer_relationships_members_data_items" => "LayerRelationshipsMembersDataItems",
Expand Down Expand Up @@ -2849,9 +2846,6 @@ def overrides
"v2.schedule_create_request_data_attributes_layers_items_interval" => "ScheduleCreateRequestDataAttributesLayersItemsInterval",
"v2.schedule_create_request_data_attributes_layers_items_members_items" => "ScheduleCreateRequestDataAttributesLayersItemsMembersItems",
"v2.schedule_create_request_data_attributes_layers_items_members_items_user" => "ScheduleCreateRequestDataAttributesLayersItemsMembersItemsUser",
"v2.schedule_create_request_data_attributes_layers_items_restrictions_items" => "ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItems",
"v2.schedule_create_request_data_attributes_layers_items_restrictions_items_end_day" => "ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsEndDay",
"v2.schedule_create_request_data_attributes_layers_items_restrictions_items_start_day" => "ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsStartDay",
"v2.schedule_create_request_data_relationships" => "ScheduleCreateRequestDataRelationships",
"v2.schedule_create_request_data_relationships_teams" => "ScheduleCreateRequestDataRelationshipsTeams",
"v2.schedule_create_request_data_relationships_teams_data_items" => "ScheduleCreateRequestDataRelationshipsTeamsDataItems",
Expand Down Expand Up @@ -2885,9 +2879,6 @@ def overrides
"v2.schedule_update_request_data_attributes_layers_items_interval" => "ScheduleUpdateRequestDataAttributesLayersItemsInterval",
"v2.schedule_update_request_data_attributes_layers_items_members_items" => "ScheduleUpdateRequestDataAttributesLayersItemsMembersItems",
"v2.schedule_update_request_data_attributes_layers_items_members_items_user" => "ScheduleUpdateRequestDataAttributesLayersItemsMembersItemsUser",
"v2.schedule_update_request_data_attributes_layers_items_restrictions_items" => "ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItems",
"v2.schedule_update_request_data_attributes_layers_items_restrictions_items_end_day" => "ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsEndDay",
"v2.schedule_update_request_data_attributes_layers_items_restrictions_items_start_day" => "ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsStartDay",
"v2.schedule_update_request_data_relationships" => "ScheduleUpdateRequestDataRelationships",
"v2.schedule_update_request_data_relationships_teams" => "ScheduleUpdateRequestDataRelationshipsTeams",
"v2.schedule_update_request_data_relationships_teams_data_items" => "ScheduleUpdateRequestDataRelationshipsTeamsDataItems",
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog_api_client/v2/models/layer_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def self.openapi_types
:'end_date' => :'Time',
:'interval' => :'LayerAttributesInterval',
:'name' => :'String',
:'restrictions' => :'Array<LayerAttributesRestrictionsItems>',
:'restrictions' => :'Array<TimeRestriction>',
:'rotation_start' => :'Time'
}
end
Expand Down
Loading
Loading