@googleapis/youtube 33.0.0 → 34.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v3.ts CHANGED
@@ -211,11 +211,11 @@ export namespace youtube_v3 {
211
211
  exception?: string[] | null;
212
212
  }
213
213
  /**
214
- * An *activity* resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
214
+ * An `activity` resource contains information about an action that a particular channel, or user, has taken on YouTube. The actions reported in activity feeds include sharing a video, uploading a video, and so forth. Each `activity` resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
215
215
  */
216
216
  export interface Schema$Activity {
217
217
  /**
218
- * The contentDetails object contains information about the content associated with the activity. For example, if the snippet.type value is videoRated, then the contentDetails object's content identifies the rated video.
218
+ * The `contentDetails` object contains information about the content associated with the activity. For example, if the `snippet.type` value is `videoRated`, then the `contentDetails` object's content identifies the rated video.
219
219
  */
220
220
  contentDetails?: Schema$ActivityContentDetails;
221
221
  /**
@@ -227,11 +227,11 @@ export namespace youtube_v3 {
227
227
  */
228
228
  id?: string | null;
229
229
  /**
230
- * Identifies what kind of resource this is. Value: the fixed string "youtube#activity".
230
+ * Identifies what kind of resource this is. Value: The fixed string `"youtube#activity"`.
231
231
  */
232
232
  kind?: string | null;
233
233
  /**
234
- * The snippet object contains basic details about the activity, including the activity's type and group ID.
234
+ * The `snippet` object contains basic details about the activity, including the activity's type and group ID.
235
235
  */
236
236
  snippet?: Schema$ActivitySnippet;
237
237
  }
@@ -240,47 +240,47 @@ export namespace youtube_v3 {
240
240
  */
241
241
  export interface Schema$ActivityContentDetails {
242
242
  /**
243
- * The bulletin object contains details about a channel bulletin post. This object is only present if the snippet.type is bulletin.
243
+ * The `bulletin` object contains details about a channel bulletin post. This object is only present if the `snippet.type` is `bulletin`.
244
244
  */
245
245
  bulletin?: Schema$ActivityContentDetailsBulletin;
246
246
  /**
247
- * The channelItem object contains details about a resource which was added to a channel. This property is only present if the snippet.type is channelItem.
247
+ * The `channelItem` object contains details about a resource which was added to a channel. This property is only present if the `snippet.type` is `channelItem`.
248
248
  */
249
249
  channelItem?: Schema$ActivityContentDetailsChannelItem;
250
250
  /**
251
- * The comment object contains information about a resource that received a comment. This property is only present if the snippet.type is comment.
251
+ * The `comment` object contains information about a resource that received a comment. This property is only present if the `snippet.type` is `comment`.
252
252
  */
253
253
  comment?: Schema$ActivityContentDetailsComment;
254
254
  /**
255
- * The favorite object contains information about a video that was marked as a favorite video. This property is only present if the snippet.type is favorite.
255
+ * The `favorite` object contains information about a video that was marked as a favorite video. This property is only present if the `snippet.type` is `favorite`. Deprecated: This property is no longer returned.
256
256
  */
257
257
  favorite?: Schema$ActivityContentDetailsFavorite;
258
258
  /**
259
- * The like object contains information about a resource that received a positive (like) rating. This property is only present if the snippet.type is like.
259
+ * The `like` object contains information about a resource that received a positive (like) rating. This property is only present if the `snippet.type` is `like`. Deprecated: This property is no longer returned.
260
260
  */
261
261
  like?: Schema$ActivityContentDetailsLike;
262
262
  /**
263
- * The playlistItem object contains information about a new playlist item. This property is only present if the snippet.type is playlistItem.
263
+ * The `playlistItem` object contains information about a new playlist item. This property is only present if the `snippet.type` is `playlistItem`.
264
264
  */
265
265
  playlistItem?: Schema$ActivityContentDetailsPlaylistItem;
266
266
  /**
267
- * The promotedItem object contains details about a resource which is being promoted. This property is only present if the snippet.type is promotedItem.
267
+ * The `promotedItem` object contains details about a resource which is being promoted. This property is only present if the `snippet.type` is `promotedItem`.
268
268
  */
269
269
  promotedItem?: Schema$ActivityContentDetailsPromotedItem;
270
270
  /**
271
- * The recommendation object contains information about a recommended resource. This property is only present if the snippet.type is recommendation.
271
+ * The `recommendation` object contains information about a recommended resource. This property is only present if the `snippet.type` is `recommendation`.
272
272
  */
273
273
  recommendation?: Schema$ActivityContentDetailsRecommendation;
274
274
  /**
275
- * The social object contains details about a social network post. This property is only present if the snippet.type is social.
275
+ * The `social` object contains details about a social network post. This property is only present if the `snippet.type` is `social`.
276
276
  */
277
277
  social?: Schema$ActivityContentDetailsSocial;
278
278
  /**
279
- * The subscription object contains information about a channel that a user subscribed to. This property is only present if the snippet.type is subscription.
279
+ * The `subscription` object contains information about a channel that a user subscribed to. This property is only present if the `snippet.type` is `subscription`. Deprecated: This property is no longer returned.
280
280
  */
281
281
  subscription?: Schema$ActivityContentDetailsSubscription;
282
282
  /**
283
- * The upload object contains information about the uploaded video. This property is only present if the snippet.type is upload.
283
+ * The `upload` object contains information about the uploaded video. This property is only present if the `snippet.type` is `upload`.
284
284
  */
285
285
  upload?: Schema$ActivityContentDetailsUpload;
286
286
  }
@@ -289,7 +289,7 @@ export namespace youtube_v3 {
289
289
  */
290
290
  export interface Schema$ActivityContentDetailsBulletin {
291
291
  /**
292
- * The resourceId object contains information that identifies the resource associated with a bulletin post. @mutable youtube.activities.insert
292
+ * The `resourceId` object contains information that identifies the resource associated with a bulletin post. @mutable youtube.activities.insert
293
293
  */
294
294
  resourceId?: Schema$ResourceId;
295
295
  }
@@ -298,7 +298,7 @@ export namespace youtube_v3 {
298
298
  */
299
299
  export interface Schema$ActivityContentDetailsChannelItem {
300
300
  /**
301
- * The resourceId object contains information that identifies the resource that was added to the channel.
301
+ * The `resourceId` object contains information that identifies the resource that was added to the channel.
302
302
  */
303
303
  resourceId?: Schema$ResourceId;
304
304
  }
@@ -307,25 +307,25 @@ export namespace youtube_v3 {
307
307
  */
308
308
  export interface Schema$ActivityContentDetailsComment {
309
309
  /**
310
- * The resourceId object contains information that identifies the resource associated with the comment.
310
+ * The `resourceId` object contains information that identifies the resource associated with the comment.
311
311
  */
312
312
  resourceId?: Schema$ResourceId;
313
313
  }
314
314
  /**
315
- * Information about a video that was marked as a favorite video.
315
+ * Information about a video that was marked as a favorite video. Deprecated: This resource is no longer returned.
316
316
  */
317
317
  export interface Schema$ActivityContentDetailsFavorite {
318
318
  /**
319
- * The resourceId object contains information that identifies the resource that was marked as a favorite.
319
+ * The `resourceId` object contains information that identifies the resource that was marked as a favorite.
320
320
  */
321
321
  resourceId?: Schema$ResourceId;
322
322
  }
323
323
  /**
324
- * Information about a resource that received a positive (like) rating.
324
+ * Information about a resource that received a positive (like) rating. Deprecated: This resource is no longer returned.
325
325
  */
326
326
  export interface Schema$ActivityContentDetailsLike {
327
327
  /**
328
- * The resourceId object contains information that identifies the rated resource.
328
+ * The `resourceId` object contains information that identifies the rated resource.
329
329
  */
330
330
  resourceId?: Schema$ResourceId;
331
331
  }
@@ -342,7 +342,7 @@ export namespace youtube_v3 {
342
342
  */
343
343
  playlistItemId?: string | null;
344
344
  /**
345
- * The resourceId object contains information about the resource that was added to the playlist.
345
+ * The `resourceId` object contains information about the resource that was added to the playlist.
346
346
  */
347
347
  resourceId?: Schema$ResourceId;
348
348
  }
@@ -400,11 +400,11 @@ export namespace youtube_v3 {
400
400
  */
401
401
  reason?: string | null;
402
402
  /**
403
- * The resourceId object contains information that identifies the recommended resource.
403
+ * The `resourceId` object contains information that identifies the recommended resource.
404
404
  */
405
405
  resourceId?: Schema$ResourceId;
406
406
  /**
407
- * The seedResourceId object contains information about the resource that caused the recommendation.
407
+ * The `seedResourceId` object contains information about the resource that caused the recommendation.
408
408
  */
409
409
  seedResourceId?: Schema$ResourceId;
410
410
  }
@@ -425,7 +425,7 @@ export namespace youtube_v3 {
425
425
  */
426
426
  referenceUrl?: string | null;
427
427
  /**
428
- * The resourceId object encapsulates information that identifies the resource associated with a social network post.
428
+ * The `resourceId` object encapsulates information that identifies the resource associated with a social network post.
429
429
  */
430
430
  resourceId?: Schema$ResourceId;
431
431
  /**
@@ -434,11 +434,11 @@ export namespace youtube_v3 {
434
434
  type?: string | null;
435
435
  }
436
436
  /**
437
- * Information about a channel that a user subscribed to.
437
+ * Information about a channel that a user subscribed to. Deprecated: This resource is no longer returned.
438
438
  */
439
439
  export interface Schema$ActivityContentDetailsSubscription {
440
440
  /**
441
- * The resourceId object contains information that identifies the resource that the user subscribed to.
441
+ * The `resourceId` object contains information that identifies the resource that the user subscribed to.
442
442
  */
443
443
  resourceId?: Schema$ResourceId;
444
444
  }
@@ -500,7 +500,7 @@ export namespace youtube_v3 {
500
500
  */
501
501
  description?: string | null;
502
502
  /**
503
- * The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user rates a video and marks the same video as a favorite, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same groupId value.
503
+ * The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user uploads a video and watches the same video, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same `groupId` value.
504
504
  */
505
505
  groupId?: string | null;
506
506
  /**
@@ -520,6 +520,84 @@ export namespace youtube_v3 {
520
520
  */
521
521
  type?: string | null;
522
522
  }
523
+ /**
524
+ * Common proto for Live and VOD geo-restrictions
525
+ */
526
+ export interface Schema$AvailabilityConfig {
527
+ /**
528
+ * Video is available in all regions except the ones specified in the config.
529
+ */
530
+ globalConfig?: Schema$AvailabilityConfigGlobalConfig;
531
+ /**
532
+ * Video is available in the specified regions only.
533
+ */
534
+ regionsConfig?: Schema$AvailabilityConfigRegionsConfig;
535
+ }
536
+ /**
537
+ * Video is available in all regions except the ones specified in the excluded_region_codes list.
538
+ */
539
+ export interface Schema$AvailabilityConfigGlobalConfig {
540
+ /**
541
+ * Optional. Regions where video is blocked
542
+ */
543
+ excludedRegionCodes?: string[] | null;
544
+ /**
545
+ * Default time window where video is available for all non-blocked regions Not supported for upcoming / active live broadcasts. If start time is unspecified, video is already available If end time is unspecified, video is available forever Specified start and end times cannot be more than five years in the future.
546
+ */
547
+ interval?: Schema$Interval;
548
+ }
549
+ /**
550
+ * Video is available in the specified regions only.
551
+ */
552
+ export interface Schema$AvailabilityConfigRegionsConfig {
553
+ /**
554
+ * Required. List of regions and time windows where video is available. If a region is specified multiple times, the union of all intervals is used.
555
+ */
556
+ regionIntervals?: Schema$AvailabilityConfigRegionsConfigRegionInterval[];
557
+ }
558
+ /**
559
+ * Region and time window where video is available for the region.
560
+ */
561
+ export interface Schema$AvailabilityConfigRegionsConfigRegionInterval {
562
+ /**
563
+ * Time window where video is available for the region. Not supported for upcoming / active live broadcasts. If start time is unspecified, video is already available If end time is unspecified, video is available forever Specified start and end times cannot be more than five years in the future.
564
+ */
565
+ interval?: Schema$Interval;
566
+ /**
567
+ * Required. Region where video is available
568
+ */
569
+ regionCode?: string | null;
570
+ }
571
+ /**
572
+ * Response for the Videos.stats API. Returns VideoStat information about a batch of videos. VideoStat contains a subset of the information in Video that is relevant to statistics and content details. BatchGetStats is intentionally not atomic to provide a better user experience. BatchGetStatsResponse returns a summary to help users understand the outcome of the operation.
573
+ */
574
+ export interface Schema$BatchGetStatsResponse {
575
+ /**
576
+ * Etag of this resource.
577
+ */
578
+ etag?: string | null;
579
+ /**
580
+ * The videos' stats information.
581
+ */
582
+ items?: Schema$VideoStat[];
583
+ /**
584
+ * Identifies what kind of resource this is. Value: the fixed string "youtube#batchGetStatsResponse".
585
+ */
586
+ kind?: string | null;
587
+ }
588
+ /**
589
+ * Details about the brand partner linked to the video for Creator Initiated Linking (CIL). Next ID: 6
590
+ */
591
+ export interface Schema$BrandPartner {
592
+ /**
593
+ * Required. Channel handle, must begin with "@"
594
+ */
595
+ channelHandle?: string | null;
596
+ /**
597
+ * Required. External Channel ID, must begin with "UC"
598
+ */
599
+ channelId?: string | null;
600
+ }
523
601
  /**
524
602
  * A *caption* resource represents a YouTube caption track. A caption track is associated with exactly one YouTube video.
525
603
  */
@@ -1131,6 +1209,27 @@ export namespace youtube_v3 {
1131
1209
  privacyStatus?: string | null;
1132
1210
  selfDeclaredMadeForKids?: boolean | null;
1133
1211
  }
1212
+ /**
1213
+ * Information specific to a creator in an affiliate program linked to a YouTube channel.
1214
+ */
1215
+ export interface Schema$ChannelToAffiliateProgramLinkDetails {
1216
+ /**
1217
+ * Required. Google Merchant Center ID of the partner.
1218
+ */
1219
+ merchantId?: string | null;
1220
+ /**
1221
+ * Required. Affiliate program status.
1222
+ */
1223
+ programStatus?: string | null;
1224
+ /**
1225
+ * Optional. Reason for the last update of the affiliate program status.
1226
+ */
1227
+ statusUpdateReason?: string | null;
1228
+ /**
1229
+ * Optional. Timestamp when the affiliate program status was last updated.
1230
+ */
1231
+ statusUpdateTime?: string | null;
1232
+ }
1134
1233
  /**
1135
1234
  * Freebase topic information related to the channel.
1136
1235
  */
@@ -1994,6 +2093,19 @@ export namespace youtube_v3 {
1994
2093
  */
1995
2094
  streamName?: string | null;
1996
2095
  }
2096
+ /**
2097
+ * Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
2098
+ */
2099
+ export interface Schema$Interval {
2100
+ /**
2101
+ * Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
2102
+ */
2103
+ endTime?: string | null;
2104
+ /**
2105
+ * Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
2106
+ */
2107
+ startTime?: string | null;
2108
+ }
1997
2109
  /**
1998
2110
  * Describes an invideo branding.
1999
2111
  */
@@ -2099,6 +2211,10 @@ export namespace youtube_v3 {
2099
2211
  * Detailed settings of a broadcast.
2100
2212
  */
2101
2213
  export interface Schema$LiveBroadcastContentDetails {
2214
+ /**
2215
+ * Optional. The broadcast's availability config. Used to set specific region availability or block specific regions It is optional - if not set, it is not enforced.
2216
+ */
2217
+ availabilityConfig?: Schema$AvailabilityConfig;
2102
2218
  /**
2103
2219
  * This value uniquely identifies the live stream bound to the broadcast.
2104
2220
  */
@@ -2529,7 +2645,7 @@ export namespace youtube_v3 {
2529
2645
  */
2530
2646
  export interface Schema$LiveChatMessageSnippet {
2531
2647
  /**
2532
- * The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message membershipGiftingEvent - the user that made the purchase giftMembershipReceivedEvent - the user that received the gift membership messageDeletedEvent - the moderator that took the action messageRetractedEvent - the author that retracted their message userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase pollEvent - the user that created the poll
2648
+ * The ID of the user that authored this message, this field is not always filled. textMessageEvent - the user that wrote the message fanFundingEvent - the user that funded the broadcast newSponsorEvent - the user that just became a sponsor memberMilestoneChatEvent - the member that sent the message membershipGiftingEvent - the user that made the purchase giftMembershipReceivedEvent - the user that received the gift membership messageDeletedEvent - the moderator that took the action. Unused. messageRetractedEvent - the author that retracted their message. Unused. userBannedEvent - the moderator that took the action superChatEvent - the user that made the purchase superStickerEvent - the user that made the purchase pollEvent - the user that created the poll
2533
2649
  */
2534
2650
  authorChannelId?: string | null;
2535
2651
  /**
@@ -3842,6 +3958,10 @@ export namespace youtube_v3 {
3842
3958
  * Basic information about a third party account link, including its type and type-specific information.
3843
3959
  */
3844
3960
  export interface Schema$ThirdPartyLinkSnippet {
3961
+ /**
3962
+ * Information specific to a link between a channel and an affiliate program of a partner.
3963
+ */
3964
+ channelToAffiliateProgramLink?: Schema$ChannelToAffiliateProgramLinkDetails;
3845
3965
  /**
3846
3966
  * Information specific to a link between a channel and a store on a merchandising platform.
3847
3967
  */
@@ -3933,6 +4053,7 @@ export namespace youtube_v3 {
3933
4053
  * Age restriction details related to a video. This data can only be retrieved by the video owner.
3934
4054
  */
3935
4055
  ageGating?: Schema$VideoAgeGating;
4056
+ brandPartner?: Schema$BrandPartner;
3936
4057
  /**
3937
4058
  * The contentDetails object contains information about the video content, including the length of the video and its aspect ratio.
3938
4059
  */
@@ -4601,6 +4722,35 @@ export namespace youtube_v3 {
4601
4722
  */
4602
4723
  title?: string | null;
4603
4724
  }
4725
+ /**
4726
+ * A *VideoStat* resource represents a YouTube video's stats.
4727
+ */
4728
+ export interface Schema$VideoStat {
4729
+ /**
4730
+ * Output only. The VideoStatsContentDetails object contains information about the video content, including the length of the video.
4731
+ */
4732
+ contentDetails?: Schema$VideoStatsContentDetails;
4733
+ /**
4734
+ * Output only. Etag of this resource.
4735
+ */
4736
+ etag?: string | null;
4737
+ /**
4738
+ * Output only. The ID that YouTube uses to uniquely identify the video.
4739
+ */
4740
+ id?: string | null;
4741
+ /**
4742
+ * Output only. Identifies what kind of resource this is. Value: the fixed string "youtube#videoStats".
4743
+ */
4744
+ kind?: string | null;
4745
+ /**
4746
+ * Output only. The VideoStatsSnippet object contains basic details about the video, such publish time.
4747
+ */
4748
+ snippet?: Schema$VideoStatsSnippet;
4749
+ /**
4750
+ * Output only. The VideoStatsStatistics object contains statistics about the video.
4751
+ */
4752
+ statistics?: Schema$VideoStatsStatistics;
4753
+ }
4604
4754
  /**
4605
4755
  * Statistics about the video, such as the number of times the video was viewed or liked.
4606
4756
  */
@@ -4626,6 +4776,41 @@ export namespace youtube_v3 {
4626
4776
  */
4627
4777
  viewCount?: string | null;
4628
4778
  }
4779
+ /**
4780
+ * Details about the content of a YouTube Video. This is a subset of the information in VideoContentDetails specifically for the Videos.stats API.
4781
+ */
4782
+ export interface Schema$VideoStatsContentDetails {
4783
+ /**
4784
+ * Output only. The length of the video. The property value is a [`google.protobuf.Duration`](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) object.
4785
+ */
4786
+ duration?: string | null;
4787
+ }
4788
+ /**
4789
+ * Basic details about a video. This is a subset of the information in VideoSnippet specifically for the Videos.stats API.
4790
+ */
4791
+ export interface Schema$VideoStatsSnippet {
4792
+ /**
4793
+ * Output only. The date and time that the video was uploaded. The property value is a [`google.protobuf.Timestamp`](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp) object.
4794
+ */
4795
+ publishTime?: string | null;
4796
+ }
4797
+ /**
4798
+ * Statistics about the video, such as the number of times the video was viewed or liked.
4799
+ */
4800
+ export interface Schema$VideoStatsStatistics {
4801
+ /**
4802
+ * Output only. The number of comments for the video.
4803
+ */
4804
+ commentCount?: string | null;
4805
+ /**
4806
+ * Output only. The number of users who have indicated that they liked the video by giving it a positive rating.
4807
+ */
4808
+ likeCount?: string | null;
4809
+ /**
4810
+ * Output only. The number of times the video has been viewed.
4811
+ */
4812
+ viewCount?: string | null;
4813
+ }
4629
4814
  /**
4630
4815
  * Basic details about a video category, such as its localized title. Next Id: 19
4631
4816
  */
@@ -5039,8 +5224,7 @@ export namespace youtube_v3 {
5039
5224
  list(
5040
5225
  params: Params$Resource$Activities$List,
5041
5226
  options:
5042
- | MethodOptions
5043
- | BodyResponseCallback<Schema$ActivityListResponse>,
5227
+ MethodOptions | BodyResponseCallback<Schema$ActivityListResponse>,
5044
5228
  callback: BodyResponseCallback<Schema$ActivityListResponse>
5045
5229
  ): void;
5046
5230
  list(
@@ -5544,8 +5728,7 @@ export namespace youtube_v3 {
5544
5728
  | BodyResponseCallback<Schema$Caption>
5545
5729
  | BodyResponseCallback<Readable>,
5546
5730
  callback?:
5547
- | BodyResponseCallback<Schema$Caption>
5548
- | BodyResponseCallback<Readable>
5731
+ BodyResponseCallback<Schema$Caption> | BodyResponseCallback<Readable>
5549
5732
  ):
5550
5733
  | void
5551
5734
  | Promise<GaxiosResponseWithHTTP2<Schema$Caption>>
@@ -5862,8 +6045,7 @@ export namespace youtube_v3 {
5862
6045
  | BodyResponseCallback<Schema$Caption>
5863
6046
  | BodyResponseCallback<Readable>,
5864
6047
  callback?:
5865
- | BodyResponseCallback<Schema$Caption>
5866
- | BodyResponseCallback<Readable>
6048
+ BodyResponseCallback<Schema$Caption> | BodyResponseCallback<Readable>
5867
6049
  ):
5868
6050
  | void
5869
6051
  | Promise<GaxiosResponseWithHTTP2<Schema$Caption>>
@@ -6150,8 +6332,7 @@ export namespace youtube_v3 {
6150
6332
  insert(
6151
6333
  params: Params$Resource$Channelbanners$Insert,
6152
6334
  options:
6153
- | MethodOptions
6154
- | BodyResponseCallback<Schema$ChannelBannerResource>,
6335
+ MethodOptions | BodyResponseCallback<Schema$ChannelBannerResource>,
6155
6336
  callback: BodyResponseCallback<Schema$ChannelBannerResource>
6156
6337
  ): void;
6157
6338
  insert(
@@ -6562,8 +6743,7 @@ export namespace youtube_v3 {
6562
6743
  | BodyResponseCallback<Schema$Channel>
6563
6744
  | BodyResponseCallback<Readable>,
6564
6745
  callback?:
6565
- | BodyResponseCallback<Schema$Channel>
6566
- | BodyResponseCallback<Readable>
6746
+ BodyResponseCallback<Schema$Channel> | BodyResponseCallback<Readable>
6567
6747
  ):
6568
6748
  | void
6569
6749
  | Promise<GaxiosResponseWithHTTP2<Schema$Channel>>
@@ -7072,8 +7252,7 @@ export namespace youtube_v3 {
7072
7252
  list(
7073
7253
  params: Params$Resource$Channelsections$List,
7074
7254
  options:
7075
- | MethodOptions
7076
- | BodyResponseCallback<Schema$ChannelSectionListResponse>,
7255
+ MethodOptions | BodyResponseCallback<Schema$ChannelSectionListResponse>,
7077
7256
  callback: BodyResponseCallback<Schema$ChannelSectionListResponse>
7078
7257
  ): void;
7079
7258
  list(
@@ -7614,8 +7793,7 @@ export namespace youtube_v3 {
7614
7793
  | BodyResponseCallback<Schema$Comment>
7615
7794
  | BodyResponseCallback<Readable>,
7616
7795
  callback?:
7617
- | BodyResponseCallback<Schema$Comment>
7618
- | BodyResponseCallback<Readable>
7796
+ BodyResponseCallback<Schema$Comment> | BodyResponseCallback<Readable>
7619
7797
  ):
7620
7798
  | void
7621
7799
  | Promise<GaxiosResponseWithHTTP2<Schema$Comment>>
@@ -8181,8 +8359,7 @@ export namespace youtube_v3 {
8181
8359
  | BodyResponseCallback<Schema$Comment>
8182
8360
  | BodyResponseCallback<Readable>,
8183
8361
  callback?:
8184
- | BodyResponseCallback<Schema$Comment>
8185
- | BodyResponseCallback<Readable>
8362
+ BodyResponseCallback<Schema$Comment> | BodyResponseCallback<Readable>
8186
8363
  ):
8187
8364
  | void
8188
8365
  | Promise<GaxiosResponseWithHTTP2<Schema$Comment>>
@@ -8563,8 +8740,7 @@ export namespace youtube_v3 {
8563
8740
  list(
8564
8741
  params: Params$Resource$Commentthreads$List,
8565
8742
  options:
8566
- | MethodOptions
8567
- | BodyResponseCallback<Schema$CommentThreadListResponse>,
8743
+ MethodOptions | BodyResponseCallback<Schema$CommentThreadListResponse>,
8568
8744
  callback: BodyResponseCallback<Schema$CommentThreadListResponse>
8569
8745
  ): void;
8570
8746
  list(
@@ -8783,8 +8959,7 @@ export namespace youtube_v3 {
8783
8959
  list(
8784
8960
  params: Params$Resource$I18nlanguages$List,
8785
8961
  options:
8786
- | MethodOptions
8787
- | BodyResponseCallback<Schema$I18nLanguageListResponse>,
8962
+ MethodOptions | BodyResponseCallback<Schema$I18nLanguageListResponse>,
8788
8963
  callback: BodyResponseCallback<Schema$I18nLanguageListResponse>
8789
8964
  ): void;
8790
8965
  list(
@@ -8950,8 +9125,7 @@ export namespace youtube_v3 {
8950
9125
  list(
8951
9126
  params: Params$Resource$I18nregions$List,
8952
9127
  options:
8953
- | MethodOptions
8954
- | BodyResponseCallback<Schema$I18nRegionListResponse>,
9128
+ MethodOptions | BodyResponseCallback<Schema$I18nRegionListResponse>,
8955
9129
  callback: BodyResponseCallback<Schema$I18nRegionListResponse>
8956
9130
  ): void;
8957
9131
  list(
@@ -9610,8 +9784,7 @@ export namespace youtube_v3 {
9610
9784
  | BodyResponseCallback<Schema$Cuepoint>
9611
9785
  | BodyResponseCallback<Readable>,
9612
9786
  callback?:
9613
- | BodyResponseCallback<Schema$Cuepoint>
9614
- | BodyResponseCallback<Readable>
9787
+ BodyResponseCallback<Schema$Cuepoint> | BodyResponseCallback<Readable>
9615
9788
  ):
9616
9789
  | void
9617
9790
  | Promise<GaxiosResponseWithHTTP2<Schema$Cuepoint>>
@@ -9757,8 +9930,7 @@ export namespace youtube_v3 {
9757
9930
  list(
9758
9931
  params: Params$Resource$Livebroadcasts$List,
9759
9932
  options:
9760
- | MethodOptions
9761
- | BodyResponseCallback<Schema$LiveBroadcastListResponse>,
9933
+ MethodOptions | BodyResponseCallback<Schema$LiveBroadcastListResponse>,
9762
9934
  callback: BodyResponseCallback<Schema$LiveBroadcastListResponse>
9763
9935
  ): void;
9764
9936
  list(
@@ -12026,8 +12198,7 @@ export namespace youtube_v3 {
12026
12198
  | BodyResponseCallback<Schema$LiveStream>
12027
12199
  | BodyResponseCallback<Readable>,
12028
12200
  callback?:
12029
- | BodyResponseCallback<Schema$LiveStream>
12030
- | BodyResponseCallback<Readable>
12201
+ BodyResponseCallback<Schema$LiveStream> | BodyResponseCallback<Readable>
12031
12202
  ):
12032
12203
  | void
12033
12204
  | Promise<GaxiosResponseWithHTTP2<Schema$LiveStream>>
@@ -12169,8 +12340,7 @@ export namespace youtube_v3 {
12169
12340
  list(
12170
12341
  params: Params$Resource$Livestreams$List,
12171
12342
  options:
12172
- | MethodOptions
12173
- | BodyResponseCallback<Schema$LiveStreamListResponse>,
12343
+ MethodOptions | BodyResponseCallback<Schema$LiveStreamListResponse>,
12174
12344
  callback: BodyResponseCallback<Schema$LiveStreamListResponse>
12175
12345
  ): void;
12176
12346
  list(
@@ -12352,8 +12522,7 @@ export namespace youtube_v3 {
12352
12522
  | BodyResponseCallback<Schema$LiveStream>
12353
12523
  | BodyResponseCallback<Readable>,
12354
12524
  callback?:
12355
- | BodyResponseCallback<Schema$LiveStream>
12356
- | BodyResponseCallback<Readable>
12525
+ BodyResponseCallback<Schema$LiveStream> | BodyResponseCallback<Readable>
12357
12526
  ):
12358
12527
  | void
12359
12528
  | Promise<GaxiosResponseWithHTTP2<Schema$LiveStream>>
@@ -13233,8 +13402,7 @@ export namespace youtube_v3 {
13233
13402
  list(
13234
13403
  params: Params$Resource$Playlistimages$List,
13235
13404
  options:
13236
- | MethodOptions
13237
- | BodyResponseCallback<Schema$PlaylistImageListResponse>,
13405
+ MethodOptions | BodyResponseCallback<Schema$PlaylistImageListResponse>,
13238
13406
  callback: BodyResponseCallback<Schema$PlaylistImageListResponse>
13239
13407
  ): void;
13240
13408
  list(
@@ -13965,8 +14133,7 @@ export namespace youtube_v3 {
13965
14133
  list(
13966
14134
  params: Params$Resource$Playlistitems$List,
13967
14135
  options:
13968
- | MethodOptions
13969
- | BodyResponseCallback<Schema$PlaylistItemListResponse>,
14136
+ MethodOptions | BodyResponseCallback<Schema$PlaylistItemListResponse>,
13970
14137
  callback: BodyResponseCallback<Schema$PlaylistItemListResponse>
13971
14138
  ): void;
13972
14139
  list(
@@ -14525,8 +14692,7 @@ export namespace youtube_v3 {
14525
14692
  | BodyResponseCallback<Schema$Playlist>
14526
14693
  | BodyResponseCallback<Readable>,
14527
14694
  callback?:
14528
- | BodyResponseCallback<Schema$Playlist>
14529
- | BodyResponseCallback<Readable>
14695
+ BodyResponseCallback<Schema$Playlist> | BodyResponseCallback<Readable>
14530
14696
  ):
14531
14697
  | void
14532
14698
  | Promise<GaxiosResponseWithHTTP2<Schema$Playlist>>
@@ -14672,8 +14838,7 @@ export namespace youtube_v3 {
14672
14838
  list(
14673
14839
  params: Params$Resource$Playlists$List,
14674
14840
  options:
14675
- | MethodOptions
14676
- | BodyResponseCallback<Schema$PlaylistListResponse>,
14841
+ MethodOptions | BodyResponseCallback<Schema$PlaylistListResponse>,
14677
14842
  callback: BodyResponseCallback<Schema$PlaylistListResponse>
14678
14843
  ): void;
14679
14844
  list(
@@ -14856,8 +15021,7 @@ export namespace youtube_v3 {
14856
15021
  | BodyResponseCallback<Schema$Playlist>
14857
15022
  | BodyResponseCallback<Readable>,
14858
15023
  callback?:
14859
- | BodyResponseCallback<Schema$Playlist>
14860
- | BodyResponseCallback<Readable>
15024
+ BodyResponseCallback<Schema$Playlist> | BodyResponseCallback<Readable>
14861
15025
  ):
14862
15026
  | void
14863
15027
  | Promise<GaxiosResponseWithHTTP2<Schema$Playlist>>
@@ -15732,8 +15896,7 @@ export namespace youtube_v3 {
15732
15896
  list(
15733
15897
  params: Params$Resource$Subscriptions$List,
15734
15898
  options:
15735
- | MethodOptions
15736
- | BodyResponseCallback<Schema$SubscriptionListResponse>,
15899
+ MethodOptions | BodyResponseCallback<Schema$SubscriptionListResponse>,
15737
15900
  callback: BodyResponseCallback<Schema$SubscriptionListResponse>
15738
15901
  ): void;
15739
15902
  list(
@@ -15963,8 +16126,7 @@ export namespace youtube_v3 {
15963
16126
  list(
15964
16127
  params: Params$Resource$Superchatevents$List,
15965
16128
  options:
15966
- | MethodOptions
15967
- | BodyResponseCallback<Schema$SuperChatEventListResponse>,
16129
+ MethodOptions | BodyResponseCallback<Schema$SuperChatEventListResponse>,
15968
16130
  callback: BodyResponseCallback<Schema$SuperChatEventListResponse>
15969
16131
  ): void;
15970
16132
  list(
@@ -16167,8 +16329,7 @@ export namespace youtube_v3 {
16167
16329
  | BodyResponseCallback<Schema$TestItem>
16168
16330
  | BodyResponseCallback<Readable>,
16169
16331
  callback?:
16170
- | BodyResponseCallback<Schema$TestItem>
16171
- | BodyResponseCallback<Readable>
16332
+ BodyResponseCallback<Schema$TestItem> | BodyResponseCallback<Readable>
16172
16333
  ):
16173
16334
  | void
16174
16335
  | Promise<GaxiosResponseWithHTTP2<Schema$TestItem>>
@@ -16608,8 +16769,7 @@ export namespace youtube_v3 {
16608
16769
  list(
16609
16770
  params: Params$Resource$Thirdpartylinks$List,
16610
16771
  options:
16611
- | MethodOptions
16612
- | BodyResponseCallback<Schema$ThirdPartyLinkListResponse>,
16772
+ MethodOptions | BodyResponseCallback<Schema$ThirdPartyLinkListResponse>,
16613
16773
  callback: BodyResponseCallback<Schema$ThirdPartyLinkListResponse>
16614
16774
  ): void;
16615
16775
  list(
@@ -16997,8 +17157,7 @@ export namespace youtube_v3 {
16997
17157
  set(
16998
17158
  params: Params$Resource$Thumbnails$Set,
16999
17159
  options:
17000
- | MethodOptions
17001
- | BodyResponseCallback<Schema$ThumbnailSetResponse>,
17160
+ MethodOptions | BodyResponseCallback<Schema$ThumbnailSetResponse>,
17002
17161
  callback: BodyResponseCallback<Schema$ThumbnailSetResponse>
17003
17162
  ): void;
17004
17163
  set(
@@ -17369,8 +17528,7 @@ export namespace youtube_v3 {
17369
17528
  list(
17370
17529
  params: Params$Resource$Videocategories$List,
17371
17530
  options:
17372
- | MethodOptions
17373
- | BodyResponseCallback<Schema$VideoCategoryListResponse>,
17531
+ MethodOptions | BodyResponseCallback<Schema$VideoCategoryListResponse>,
17374
17532
  callback: BodyResponseCallback<Schema$VideoCategoryListResponse>
17375
17533
  ): void;
17376
17534
  list(
@@ -17466,6 +17624,157 @@ export namespace youtube_v3 {
17466
17624
  this.context = context;
17467
17625
  }
17468
17626
 
17627
+ /**
17628
+ * Retrieves a batch of VideoStat resources, possibly filtered. BatchGetStats is intentionally not atomic to provide a better user experience.
17629
+ * @example
17630
+ * ```js
17631
+ * // Before running the sample:
17632
+ * // - Enable the API at:
17633
+ * // https://console.developers.google.com/apis/api/youtube.googleapis.com
17634
+ * // - Login into gcloud by running:
17635
+ * // ```sh
17636
+ * // $ gcloud auth application-default login
17637
+ * // ```
17638
+ * // - Install the npm module by running:
17639
+ * // ```sh
17640
+ * // $ npm install googleapis
17641
+ * // ```
17642
+ *
17643
+ * const {google} = require('googleapis');
17644
+ * const youtube = google.youtube('v3');
17645
+ *
17646
+ * async function main() {
17647
+ * const auth = new google.auth.GoogleAuth({
17648
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
17649
+ * scopes: [
17650
+ * 'https://www.googleapis.com/auth/youtube',
17651
+ * 'https://www.googleapis.com/auth/youtube.force-ssl',
17652
+ * 'https://www.googleapis.com/auth/youtube.readonly',
17653
+ * 'https://www.googleapis.com/auth/youtubepartner',
17654
+ * ],
17655
+ * });
17656
+ *
17657
+ * // Acquire an auth client, and bind it to all future calls
17658
+ * const authClient = await auth.getClient();
17659
+ * google.options({auth: authClient});
17660
+ *
17661
+ * // Do the magic
17662
+ * const res = await youtube.videos.batchGetStats({
17663
+ * // Required. Return videos with the given ids. The number of IDs specified cannot exceed 50.
17664
+ * id: 'placeholder-value',
17665
+ * // Optional. **Note:** This parameter is intended exclusively for YouTube content partners. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
17666
+ * onBehalfOfContentOwner: 'placeholder-value',
17667
+ * // Required. The `**part**` parameter specifies a comma-separated list of one or more `videoStat` resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a `videoStat` resource, the `statistics` property contains `view_count` and `like_count`. As such, if you set `**part=snippet**`, the API response will contain all of those properties.
17668
+ * part: 'placeholder-value',
17669
+ * });
17670
+ * console.log(res.data);
17671
+ *
17672
+ * // Example response
17673
+ * // {
17674
+ * // "etag": "my_etag",
17675
+ * // "items": [],
17676
+ * // "kind": "my_kind"
17677
+ * // }
17678
+ * }
17679
+ *
17680
+ * main().catch(e => {
17681
+ * console.error(e);
17682
+ * throw e;
17683
+ * });
17684
+ *
17685
+ * ```
17686
+ *
17687
+ * @param params - Parameters for request
17688
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
17689
+ * @param callback - Optional callback that handles the response.
17690
+ * @returns A promise if used with async/await, or void if used with a callback.
17691
+ */
17692
+ batchGetStats(
17693
+ params: Params$Resource$Videos$Batchgetstats,
17694
+ options: StreamMethodOptions
17695
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
17696
+ batchGetStats(
17697
+ params?: Params$Resource$Videos$Batchgetstats,
17698
+ options?: MethodOptions
17699
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BatchGetStatsResponse>>;
17700
+ batchGetStats(
17701
+ params: Params$Resource$Videos$Batchgetstats,
17702
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
17703
+ callback: BodyResponseCallback<Readable>
17704
+ ): void;
17705
+ batchGetStats(
17706
+ params: Params$Resource$Videos$Batchgetstats,
17707
+ options:
17708
+ MethodOptions | BodyResponseCallback<Schema$BatchGetStatsResponse>,
17709
+ callback: BodyResponseCallback<Schema$BatchGetStatsResponse>
17710
+ ): void;
17711
+ batchGetStats(
17712
+ params: Params$Resource$Videos$Batchgetstats,
17713
+ callback: BodyResponseCallback<Schema$BatchGetStatsResponse>
17714
+ ): void;
17715
+ batchGetStats(
17716
+ callback: BodyResponseCallback<Schema$BatchGetStatsResponse>
17717
+ ): void;
17718
+ batchGetStats(
17719
+ paramsOrCallback?:
17720
+ | Params$Resource$Videos$Batchgetstats
17721
+ | BodyResponseCallback<Schema$BatchGetStatsResponse>
17722
+ | BodyResponseCallback<Readable>,
17723
+ optionsOrCallback?:
17724
+ | MethodOptions
17725
+ | StreamMethodOptions
17726
+ | BodyResponseCallback<Schema$BatchGetStatsResponse>
17727
+ | BodyResponseCallback<Readable>,
17728
+ callback?:
17729
+ | BodyResponseCallback<Schema$BatchGetStatsResponse>
17730
+ | BodyResponseCallback<Readable>
17731
+ ):
17732
+ | void
17733
+ | Promise<GaxiosResponseWithHTTP2<Schema$BatchGetStatsResponse>>
17734
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
17735
+ let params = (paramsOrCallback ||
17736
+ {}) as Params$Resource$Videos$Batchgetstats;
17737
+ let options = (optionsOrCallback || {}) as MethodOptions;
17738
+
17739
+ if (typeof paramsOrCallback === 'function') {
17740
+ callback = paramsOrCallback;
17741
+ params = {} as Params$Resource$Videos$Batchgetstats;
17742
+ options = {};
17743
+ }
17744
+
17745
+ if (typeof optionsOrCallback === 'function') {
17746
+ callback = optionsOrCallback;
17747
+ options = {};
17748
+ }
17749
+
17750
+ const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/';
17751
+ const parameters = {
17752
+ options: Object.assign(
17753
+ {
17754
+ url: (rootUrl + '/youtube/v3/videos:batchGetStats').replace(
17755
+ /([^:]\/)\/+/g,
17756
+ '$1'
17757
+ ),
17758
+ method: 'GET',
17759
+ apiVersion: '',
17760
+ },
17761
+ options
17762
+ ),
17763
+ params,
17764
+ requiredParams: [],
17765
+ pathParams: [],
17766
+ context: this.context,
17767
+ };
17768
+ if (callback) {
17769
+ createAPIRequest<Schema$BatchGetStatsResponse>(
17770
+ parameters,
17771
+ callback as BodyResponseCallback<unknown>
17772
+ );
17773
+ } else {
17774
+ return createAPIRequest<Schema$BatchGetStatsResponse>(parameters);
17775
+ }
17776
+ }
17777
+
17469
17778
  /**
17470
17779
  * Deletes a resource.
17471
17780
  * @example
@@ -17676,8 +17985,7 @@ export namespace youtube_v3 {
17676
17985
  getRating(
17677
17986
  params: Params$Resource$Videos$Getrating,
17678
17987
  options:
17679
- | MethodOptions
17680
- | BodyResponseCallback<Schema$VideoGetRatingResponse>,
17988
+ MethodOptions | BodyResponseCallback<Schema$VideoGetRatingResponse>,
17681
17989
  callback: BodyResponseCallback<Schema$VideoGetRatingResponse>
17682
17990
  ): void;
17683
17991
  getRating(
@@ -17800,6 +18108,7 @@ export namespace youtube_v3 {
17800
18108
  * // request body parameters
17801
18109
  * // {
17802
18110
  * // "ageGating": {},
18111
+ * // "brandPartner": {},
17803
18112
  * // "contentDetails": {},
17804
18113
  * // "etag": "my_etag",
17805
18114
  * // "fileDetails": {},
@@ -17830,6 +18139,7 @@ export namespace youtube_v3 {
17830
18139
  * // Example response
17831
18140
  * // {
17832
18141
  * // "ageGating": {},
18142
+ * // "brandPartner": {},
17833
18143
  * // "contentDetails": {},
17834
18144
  * // "etag": "my_etag",
17835
18145
  * // "fileDetails": {},
@@ -17897,8 +18207,7 @@ export namespace youtube_v3 {
17897
18207
  | BodyResponseCallback<Schema$Video>
17898
18208
  | BodyResponseCallback<Readable>,
17899
18209
  callback?:
17900
- | BodyResponseCallback<Schema$Video>
17901
- | BodyResponseCallback<Readable>
18210
+ BodyResponseCallback<Schema$Video> | BodyResponseCallback<Readable>
17902
18211
  ):
17903
18212
  | void
17904
18213
  | Promise<GaxiosResponseWithHTTP2<Schema$Video>>
@@ -18441,6 +18750,7 @@ export namespace youtube_v3 {
18441
18750
  * // request body parameters
18442
18751
  * // {
18443
18752
  * // "ageGating": {},
18753
+ * // "brandPartner": {},
18444
18754
  * // "contentDetails": {},
18445
18755
  * // "etag": "my_etag",
18446
18756
  * // "fileDetails": {},
@@ -18467,6 +18777,7 @@ export namespace youtube_v3 {
18467
18777
  * // Example response
18468
18778
  * // {
18469
18779
  * // "ageGating": {},
18780
+ * // "brandPartner": {},
18470
18781
  * // "contentDetails": {},
18471
18782
  * // "etag": "my_etag",
18472
18783
  * // "fileDetails": {},
@@ -18534,8 +18845,7 @@ export namespace youtube_v3 {
18534
18845
  | BodyResponseCallback<Schema$Video>
18535
18846
  | BodyResponseCallback<Readable>,
18536
18847
  callback?:
18537
- | BodyResponseCallback<Schema$Video>
18538
- | BodyResponseCallback<Readable>
18848
+ BodyResponseCallback<Schema$Video> | BodyResponseCallback<Readable>
18539
18849
  ):
18540
18850
  | void
18541
18851
  | Promise<GaxiosResponseWithHTTP2<Schema$Video>>
@@ -18580,6 +18890,20 @@ export namespace youtube_v3 {
18580
18890
  }
18581
18891
  }
18582
18892
 
18893
+ export interface Params$Resource$Videos$Batchgetstats extends StandardParameters {
18894
+ /**
18895
+ * Required. Return videos with the given ids. The number of IDs specified cannot exceed 50.
18896
+ */
18897
+ id?: string[];
18898
+ /**
18899
+ * Optional. **Note:** This parameter is intended exclusively for YouTube content partners. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
18900
+ */
18901
+ onBehalfOfContentOwner?: string;
18902
+ /**
18903
+ * Required. The `**part**` parameter specifies a comma-separated list of one or more `videoStat` resource properties that the API response will include. If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a `videoStat` resource, the `statistics` property contains `view_count` and `like_count`. As such, if you set `**part=snippet**`, the API response will contain all of those properties.
18904
+ */
18905
+ part?: string[];
18906
+ }
18583
18907
  export interface Params$Resource$Videos$Delete extends StandardParameters {
18584
18908
  /**
18585
18909
  *
@@ -19249,173 +19573,6 @@ export namespace youtube_v3 {
19249
19573
  this.context = context;
19250
19574
  this.liveChat = new Resource$Youtube$V3$Livechat(this.context);
19251
19575
  }
19252
-
19253
- /**
19254
- * Updates an existing resource.
19255
- * @example
19256
- * ```js
19257
- * // Before running the sample:
19258
- * // - Enable the API at:
19259
- * // https://console.developers.google.com/apis/api/youtube.googleapis.com
19260
- * // - Login into gcloud by running:
19261
- * // ```sh
19262
- * // $ gcloud auth application-default login
19263
- * // ```
19264
- * // - Install the npm module by running:
19265
- * // ```sh
19266
- * // $ npm install googleapis
19267
- * // ```
19268
- *
19269
- * const {google} = require('googleapis');
19270
- * const youtube = google.youtube('v3');
19271
- *
19272
- * async function main() {
19273
- * const auth = new google.auth.GoogleAuth({
19274
- * // Scopes can be specified either as an array or as a single, space-delimited string.
19275
- * scopes: [],
19276
- * });
19277
- *
19278
- * // Acquire an auth client, and bind it to all future calls
19279
- * const authClient = await auth.getClient();
19280
- * google.options({auth: authClient});
19281
- *
19282
- * // Do the magic
19283
- * const res = await youtube.youtube.v3.updateCommentThreads({
19284
- * // The *part* parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
19285
- * part: 'placeholder-value',
19286
- *
19287
- * // Request body metadata
19288
- * requestBody: {
19289
- * // request body parameters
19290
- * // {
19291
- * // "etag": "my_etag",
19292
- * // "id": "my_id",
19293
- * // "kind": "my_kind",
19294
- * // "replies": {},
19295
- * // "snippet": {}
19296
- * // }
19297
- * },
19298
- * });
19299
- * console.log(res.data);
19300
- *
19301
- * // Example response
19302
- * // {
19303
- * // "etag": "my_etag",
19304
- * // "id": "my_id",
19305
- * // "kind": "my_kind",
19306
- * // "replies": {},
19307
- * // "snippet": {}
19308
- * // }
19309
- * }
19310
- *
19311
- * main().catch(e => {
19312
- * console.error(e);
19313
- * throw e;
19314
- * });
19315
- *
19316
- * ```
19317
- *
19318
- * @param params - Parameters for request
19319
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
19320
- * @param callback - Optional callback that handles the response.
19321
- * @returns A promise if used with async/await, or void if used with a callback.
19322
- */
19323
- updateCommentThreads(
19324
- params: Params$Resource$Youtube$V3$Updatecommentthreads,
19325
- options: StreamMethodOptions
19326
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
19327
- updateCommentThreads(
19328
- params?: Params$Resource$Youtube$V3$Updatecommentthreads,
19329
- options?: MethodOptions
19330
- ): Promise<GaxiosResponseWithHTTP2<Schema$CommentThread>>;
19331
- updateCommentThreads(
19332
- params: Params$Resource$Youtube$V3$Updatecommentthreads,
19333
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
19334
- callback: BodyResponseCallback<Readable>
19335
- ): void;
19336
- updateCommentThreads(
19337
- params: Params$Resource$Youtube$V3$Updatecommentthreads,
19338
- options: MethodOptions | BodyResponseCallback<Schema$CommentThread>,
19339
- callback: BodyResponseCallback<Schema$CommentThread>
19340
- ): void;
19341
- updateCommentThreads(
19342
- params: Params$Resource$Youtube$V3$Updatecommentthreads,
19343
- callback: BodyResponseCallback<Schema$CommentThread>
19344
- ): void;
19345
- updateCommentThreads(
19346
- callback: BodyResponseCallback<Schema$CommentThread>
19347
- ): void;
19348
- updateCommentThreads(
19349
- paramsOrCallback?:
19350
- | Params$Resource$Youtube$V3$Updatecommentthreads
19351
- | BodyResponseCallback<Schema$CommentThread>
19352
- | BodyResponseCallback<Readable>,
19353
- optionsOrCallback?:
19354
- | MethodOptions
19355
- | StreamMethodOptions
19356
- | BodyResponseCallback<Schema$CommentThread>
19357
- | BodyResponseCallback<Readable>,
19358
- callback?:
19359
- | BodyResponseCallback<Schema$CommentThread>
19360
- | BodyResponseCallback<Readable>
19361
- ):
19362
- | void
19363
- | Promise<GaxiosResponseWithHTTP2<Schema$CommentThread>>
19364
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
19365
- let params = (paramsOrCallback ||
19366
- {}) as Params$Resource$Youtube$V3$Updatecommentthreads;
19367
- let options = (optionsOrCallback || {}) as MethodOptions;
19368
-
19369
- if (typeof paramsOrCallback === 'function') {
19370
- callback = paramsOrCallback;
19371
- params = {} as Params$Resource$Youtube$V3$Updatecommentthreads;
19372
- options = {};
19373
- }
19374
-
19375
- if (typeof optionsOrCallback === 'function') {
19376
- callback = optionsOrCallback;
19377
- options = {};
19378
- }
19379
-
19380
- const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/';
19381
- const parameters = {
19382
- options: Object.assign(
19383
- {
19384
- url: (rootUrl + '/youtube/v3/commentThreads').replace(
19385
- /([^:]\/)\/+/g,
19386
- '$1'
19387
- ),
19388
- method: 'PUT',
19389
- apiVersion: '',
19390
- },
19391
- options
19392
- ),
19393
- params,
19394
- requiredParams: [],
19395
- pathParams: [],
19396
- context: this.context,
19397
- };
19398
- if (callback) {
19399
- createAPIRequest<Schema$CommentThread>(
19400
- parameters,
19401
- callback as BodyResponseCallback<unknown>
19402
- );
19403
- } else {
19404
- return createAPIRequest<Schema$CommentThread>(parameters);
19405
- }
19406
- }
19407
- }
19408
-
19409
- export interface Params$Resource$Youtube$V3$Updatecommentthreads extends StandardParameters {
19410
- /**
19411
- * The *part* parameter specifies a comma-separated list of commentThread resource properties that the API response will include. You must at least include the snippet part in the parameter value since that part contains all of the properties that the API request can update.
19412
- */
19413
- part?: string[];
19414
-
19415
- /**
19416
- * Request body metadata
19417
- */
19418
- requestBody?: Schema$CommentThread;
19419
19576
  }
19420
19577
 
19421
19578
  export class Resource$Youtube$V3$Livechat {