From 0d7760e9df1e1e769c724b876ecd5c31d01c56a1 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 21 Sep 2023 01:30:28 +0000 Subject: [PATCH] feat(youtube)!: update the API BREAKING CHANGE: This release has breaking changes. #### youtube:v3 The following keys were deleted: - schemas.CuepointSchedule.properties.pauseAdsUntil.format - schemas.CuepointSchedule.properties.repeatInterval.description - schemas.CuepointSchedule.properties.repeatInterval.format - schemas.CuepointSchedule.properties.repeatInterval.type The following keys were added: - resources.search.methods.list.parameters.videoPaidProductPlacement.enum - resources.search.methods.list.parameters.videoPaidProductPlacement.enumDescriptions - resources.search.methods.list.parameters.videoPaidProductPlacement.location - resources.search.methods.list.parameters.videoPaidProductPlacement.type - schemas.CuepointSchedule.properties.repeatIntervalSecs.description - schemas.CuepointSchedule.properties.repeatIntervalSecs.format - schemas.CuepointSchedule.properties.repeatIntervalSecs.type The following keys were changed: - schemas.CuepointSchedule.properties.pauseAdsUntil.description --- discovery/youtube-v3.json | 27 ++++++++++++++++++++------- src/apis/youtube/v3.ts | 10 +++++++--- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/discovery/youtube-v3.json b/discovery/youtube-v3.json index ef29ce7ff2..3c4313721d 100644 --- a/discovery/youtube-v3.json +++ b/discovery/youtube-v3.json @@ -2793,6 +2793,20 @@ "location": "query", "type": "string" }, + "videoPaidProductPlacement": { + "enum": [ + "videoPaidProductPlacementUnspecified", + "any", + "true" + ], + "enumDescriptions": [ + "", + "Return all videos, paid product placement or not.", + "Restrict results to only videos with paid product placement." + ], + "location": "query", + "type": "string" + }, "videoSyndicated": { "description": "Filter on syndicated videos.", "enum": [ @@ -3833,7 +3847,7 @@ } } }, - "revision": "20230807", + "revision": "20230918", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -7443,14 +7457,13 @@ "type": "boolean" }, "pauseAdsUntil": { - "description": "If set, automatic cuepoint insertion is paused until this timestamp (\"No Ad Zone\").", - "format": "google-datetime", + "description": "If set, automatic cuepoint insertion is paused until this timestamp (\"No Ad Zone\"). The value is specified in ISO 8601 format.", "type": "string" }, - "repeatInterval": { - "description": "Interval frequency that api uses to insert cuepoints automatically.", - "format": "google-duration", - "type": "string" + "repeatIntervalSecs": { + "description": "Interval frequency in seconds that api uses to insert cuepoints automatically.", + "format": "int32", + "type": "integer" }, "scheduleStrategy": { "description": "The strategy to use when scheduling cuepoints.", diff --git a/src/apis/youtube/v3.ts b/src/apis/youtube/v3.ts index cb0e6f239d..54282336db 100644 --- a/src/apis/youtube/v3.ts +++ b/src/apis/youtube/v3.ts @@ -1688,13 +1688,13 @@ export namespace youtube_v3 { */ enabled?: boolean | null; /** - * If set, automatic cuepoint insertion is paused until this timestamp ("No Ad Zone"). + * If set, automatic cuepoint insertion is paused until this timestamp ("No Ad Zone"). The value is specified in ISO 8601 format. */ pauseAdsUntil?: string | null; /** - * Interval frequency that api uses to insert cuepoints automatically. + * Interval frequency in seconds that api uses to insert cuepoints automatically. */ - repeatInterval?: string | null; + repeatIntervalSecs?: number | null; /** * The strategy to use when scheduling cuepoints. */ @@ -10652,6 +10652,10 @@ export namespace youtube_v3 { * Filter on the license of the videos. */ videoLicense?: string; + /** + * + */ + videoPaidProductPlacement?: string; /** * Filter on syndicated videos. */