Skip to content

Commit 70304e8

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Share timerestriction object (#2222)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent c004e5a commit 70304e8

16 files changed

+16
-666
lines changed

.apigentools-info

+4-4
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-09 02:41:27.416884",
8-
"spec_repo_commit": "39adb7c0"
7+
"regenerated": "2025-05-09 14:41:33.850348",
8+
"spec_repo_commit": "f0e5e32f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-09 02:41:27.434333",
13-
"spec_repo_commit": "39adb7c0"
12+
"regenerated": "2025-05-09 14:41:33.870441",
13+
"spec_repo_commit": "f0e5e32f"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

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

packages/datadog-api-client-v2/index.ts

-9
Original file line numberDiff line numberDiff line change
@@ -1814,9 +1814,6 @@ export { JSONAPIErrorResponse } from "./models/JSONAPIErrorResponse";
18141814
export { Layer } from "./models/Layer";
18151815
export { LayerAttributes } from "./models/LayerAttributes";
18161816
export { LayerAttributesInterval } from "./models/LayerAttributesInterval";
1817-
export { LayerAttributesRestrictionsItems } from "./models/LayerAttributesRestrictionsItems";
1818-
export { LayerAttributesRestrictionsItemsEndDay } from "./models/LayerAttributesRestrictionsItemsEndDay";
1819-
export { LayerAttributesRestrictionsItemsStartDay } from "./models/LayerAttributesRestrictionsItemsStartDay";
18201817
export { LayerRelationships } from "./models/LayerRelationships";
18211818
export { LayerRelationshipsMembers } from "./models/LayerRelationshipsMembers";
18221819
export { LayerRelationshipsMembersDataItems } from "./models/LayerRelationshipsMembersDataItems";
@@ -2634,9 +2631,6 @@ export { ScheduleCreateRequestDataAttributesLayersItems } from "./models/Schedul
26342631
export { ScheduleCreateRequestDataAttributesLayersItemsInterval } from "./models/ScheduleCreateRequestDataAttributesLayersItemsInterval";
26352632
export { ScheduleCreateRequestDataAttributesLayersItemsMembersItems } from "./models/ScheduleCreateRequestDataAttributesLayersItemsMembersItems";
26362633
export { ScheduleCreateRequestDataAttributesLayersItemsMembersItemsUser } from "./models/ScheduleCreateRequestDataAttributesLayersItemsMembersItemsUser";
2637-
export { ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItems } from "./models/ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItems";
2638-
export { ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsEndDay } from "./models/ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsEndDay";
2639-
export { ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsStartDay } from "./models/ScheduleCreateRequestDataAttributesLayersItemsRestrictionsItemsStartDay";
26402634
export { ScheduleCreateRequestDataRelationships } from "./models/ScheduleCreateRequestDataRelationships";
26412635
export { ScheduleCreateRequestDataRelationshipsTeams } from "./models/ScheduleCreateRequestDataRelationshipsTeams";
26422636
export { ScheduleCreateRequestDataRelationshipsTeamsDataItems } from "./models/ScheduleCreateRequestDataRelationshipsTeamsDataItems";
@@ -2670,9 +2664,6 @@ export { ScheduleUpdateRequestDataAttributesLayersItems } from "./models/Schedul
26702664
export { ScheduleUpdateRequestDataAttributesLayersItemsInterval } from "./models/ScheduleUpdateRequestDataAttributesLayersItemsInterval";
26712665
export { ScheduleUpdateRequestDataAttributesLayersItemsMembersItems } from "./models/ScheduleUpdateRequestDataAttributesLayersItemsMembersItems";
26722666
export { ScheduleUpdateRequestDataAttributesLayersItemsMembersItemsUser } from "./models/ScheduleUpdateRequestDataAttributesLayersItemsMembersItemsUser";
2673-
export { ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItems } from "./models/ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItems";
2674-
export { ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsEndDay } from "./models/ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsEndDay";
2675-
export { ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsStartDay } from "./models/ScheduleUpdateRequestDataAttributesLayersItemsRestrictionsItemsStartDay";
26762667
export { ScheduleUpdateRequestDataRelationships } from "./models/ScheduleUpdateRequestDataRelationships";
26772668
export { ScheduleUpdateRequestDataRelationshipsTeams } from "./models/ScheduleUpdateRequestDataRelationshipsTeams";
26782669
export { ScheduleUpdateRequestDataRelationshipsTeamsDataItems } from "./models/ScheduleUpdateRequestDataRelationshipsTeamsDataItems";

packages/datadog-api-client-v2/models/LayerAttributes.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Copyright 2020-Present Datadog, Inc.
55
*/
66
import { LayerAttributesInterval } from "./LayerAttributesInterval";
7-
import { LayerAttributesRestrictionsItems } from "./LayerAttributesRestrictionsItems";
7+
import { TimeRestriction } from "./TimeRestriction";
88

99
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1010

@@ -31,7 +31,7 @@ export class LayerAttributes {
3131
/**
3232
* An optional list of time restrictions for when this layer is in effect.
3333
*/
34-
"restrictions"?: Array<LayerAttributesRestrictionsItems>;
34+
"restrictions"?: Array<TimeRestriction>;
3535
/**
3636
* The date/time when the rotation starts (ISO 8601).
3737
*/
@@ -73,7 +73,7 @@ export class LayerAttributes {
7373
},
7474
restrictions: {
7575
baseName: "restrictions",
76-
type: "Array<LayerAttributesRestrictionsItems>",
76+
type: "Array<TimeRestriction>",
7777
},
7878
rotationStart: {
7979
baseName: "rotation_start",

packages/datadog-api-client-v2/models/LayerAttributesRestrictionsItems.ts

-79
This file was deleted.

0 commit comments

Comments
 (0)