@googleapis/youtube 11.0.1 → 13.0.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/CHANGELOG.md +31 -0
- package/build/v3.d.ts +187 -7
- package/build/v3.js +131 -0
- package/build/v3.js.map +1 -1
- package/package.json +1 -1
- package/v3.ts +495 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [13.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/youtube-v12.0.0...youtube-v13.0.0) (2023-10-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* This release has breaking changes.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* run the generator ([#3364](https://github.com/googleapis/google-api-nodejs-client/issues/3364)) ([8a012d1](https://github.com/googleapis/google-api-nodejs-client/commit/8a012d18c1dd5499a087b114eda0f2c22baef203))
|
|
13
|
+
|
|
14
|
+
## [12.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/youtube-v11.0.1...youtube-v12.0.0) (2023-10-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### ⚠ BREAKING CHANGES
|
|
18
|
+
|
|
19
|
+
* This release has breaking changes.
|
|
20
|
+
* **youtube:** This release has breaking changes.
|
|
21
|
+
* **youtube:** This release has breaking changes.
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* run the generator ([#3355](https://github.com/googleapis/google-api-nodejs-client/issues/3355)) ([5504c86](https://github.com/googleapis/google-api-nodejs-client/commit/5504c86fd61740886047320e2ed70f02a164acd7))
|
|
26
|
+
* **youtube:** update the API ([43c5f61](https://github.com/googleapis/google-api-nodejs-client/commit/43c5f612e6a9064a0849854d40e63f8d8df84841))
|
|
27
|
+
* **youtube:** update the API ([83aac2f](https://github.com/googleapis/google-api-nodejs-client/commit/83aac2f3934d1da08c1be0fefdc1bd23dc0ebcc4))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* **deps:** update dependency googleapis-common to v7 ([9491ec1](https://github.com/googleapis/google-api-nodejs-client/commit/9491ec1cdc3c413e7d73edcfcd59cf5c28a7c855))
|
|
33
|
+
|
|
3
34
|
## [11.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/youtube-v11.0.0...youtube-v11.0.1) (2023-08-25)
|
|
4
35
|
|
|
5
36
|
|
package/build/v3.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export declare namespace youtube_v3 {
|
|
|
85
85
|
liveStreams: Resource$Livestreams;
|
|
86
86
|
members: Resource$Members;
|
|
87
87
|
membershipsLevels: Resource$Membershipslevels;
|
|
88
|
+
playlistImages: Resource$Playlistimages;
|
|
88
89
|
playlistItems: Resource$Playlistitems;
|
|
89
90
|
playlists: Resource$Playlists;
|
|
90
91
|
search: Resource$Search;
|
|
@@ -1608,13 +1609,13 @@ export declare namespace youtube_v3 {
|
|
|
1608
1609
|
*/
|
|
1609
1610
|
enabled?: boolean | null;
|
|
1610
1611
|
/**
|
|
1611
|
-
* If set, automatic cuepoint insertion is paused until this timestamp ("No Ad Zone").
|
|
1612
|
+
* If set, automatic cuepoint insertion is paused until this timestamp ("No Ad Zone"). The value is specified in ISO 8601 format.
|
|
1612
1613
|
*/
|
|
1613
1614
|
pauseAdsUntil?: string | null;
|
|
1614
1615
|
/**
|
|
1615
|
-
* Interval frequency that api uses to insert cuepoints automatically.
|
|
1616
|
+
* Interval frequency in seconds that api uses to insert cuepoints automatically.
|
|
1616
1617
|
*/
|
|
1617
|
-
|
|
1618
|
+
repeatIntervalSecs?: number | null;
|
|
1618
1619
|
/**
|
|
1619
1620
|
* The strategy to use when scheduling cuepoints.
|
|
1620
1621
|
*/
|
|
@@ -2943,6 +2944,57 @@ export declare namespace youtube_v3 {
|
|
|
2943
2944
|
*/
|
|
2944
2945
|
itemCount?: number | null;
|
|
2945
2946
|
}
|
|
2947
|
+
export interface Schema$PlaylistImage {
|
|
2948
|
+
/**
|
|
2949
|
+
* Identifies this resource (playlist id and image type).
|
|
2950
|
+
*/
|
|
2951
|
+
id?: string | null;
|
|
2952
|
+
/**
|
|
2953
|
+
* Identifies what kind of resource this is. Value: the fixed string "youtube#playlistImages".
|
|
2954
|
+
*/
|
|
2955
|
+
kind?: string | null;
|
|
2956
|
+
snippet?: Schema$PlaylistImageSnippet;
|
|
2957
|
+
}
|
|
2958
|
+
export interface Schema$PlaylistImageListResponse {
|
|
2959
|
+
items?: Schema$PlaylistImage[];
|
|
2960
|
+
/**
|
|
2961
|
+
* Identifies what kind of resource this is. Value: the fixed string "youtube#playlistImageListResponse".
|
|
2962
|
+
*/
|
|
2963
|
+
kind?: string | null;
|
|
2964
|
+
/**
|
|
2965
|
+
* The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
|
|
2966
|
+
*/
|
|
2967
|
+
nextPageToken?: string | null;
|
|
2968
|
+
/**
|
|
2969
|
+
* General pagination information.
|
|
2970
|
+
*/
|
|
2971
|
+
pageInfo?: Schema$PageInfo;
|
|
2972
|
+
/**
|
|
2973
|
+
* The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
|
|
2974
|
+
*/
|
|
2975
|
+
prevPageToken?: string | null;
|
|
2976
|
+
}
|
|
2977
|
+
/**
|
|
2978
|
+
* A *playlistImage* resource identifies another resource, such as a image, that is associated with a playlist. In addition, the playlistImage resource contains details about the included resource that pertain specifically to how that resource is used in that playlist. YouTube uses playlists to identify special collections of videos for a channel, such as: - uploaded videos - favorite videos - positively rated (liked) videos - watch history To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistImages.list method to retrieve image data for any of those playlists. You can also add or remove images from those lists by calling the playlistImages.insert and playlistImages.delete methods.
|
|
2979
|
+
*/
|
|
2980
|
+
export interface Schema$PlaylistImageSnippet {
|
|
2981
|
+
/**
|
|
2982
|
+
* The image height.
|
|
2983
|
+
*/
|
|
2984
|
+
height?: number | null;
|
|
2985
|
+
/**
|
|
2986
|
+
* The Playlist ID of the playlist this image is associated with.
|
|
2987
|
+
*/
|
|
2988
|
+
playlistId?: string | null;
|
|
2989
|
+
/**
|
|
2990
|
+
* The image type.
|
|
2991
|
+
*/
|
|
2992
|
+
type?: string | null;
|
|
2993
|
+
/**
|
|
2994
|
+
* The image width.
|
|
2995
|
+
*/
|
|
2996
|
+
width?: number | null;
|
|
2997
|
+
}
|
|
2946
2998
|
/**
|
|
2947
2999
|
* A *playlistItem* resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist. YouTube uses playlists to identify special collections of videos for a channel, such as: - uploaded videos - favorite videos - positively rated (liked) videos - watch history - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods. For example, if a user gives a positive rating to a video, you would insert that video into the liked videos playlist for that user's channel.
|
|
2948
3000
|
*/
|
|
@@ -6029,6 +6081,134 @@ export declare namespace youtube_v3 {
|
|
|
6029
6081
|
*/
|
|
6030
6082
|
part?: string[];
|
|
6031
6083
|
}
|
|
6084
|
+
export class Resource$Playlistimages {
|
|
6085
|
+
context: APIRequestContext;
|
|
6086
|
+
constructor(context: APIRequestContext);
|
|
6087
|
+
/**
|
|
6088
|
+
* Deletes a resource.
|
|
6089
|
+
*
|
|
6090
|
+
* @param params - Parameters for request
|
|
6091
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6092
|
+
* @param callback - Optional callback that handles the response.
|
|
6093
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6094
|
+
*/
|
|
6095
|
+
delete(params: Params$Resource$Playlistimages$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
6096
|
+
delete(params?: Params$Resource$Playlistimages$Delete, options?: MethodOptions): GaxiosPromise<void>;
|
|
6097
|
+
delete(params: Params$Resource$Playlistimages$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6098
|
+
delete(params: Params$Resource$Playlistimages$Delete, options: MethodOptions | BodyResponseCallback<void>, callback: BodyResponseCallback<void>): void;
|
|
6099
|
+
delete(params: Params$Resource$Playlistimages$Delete, callback: BodyResponseCallback<void>): void;
|
|
6100
|
+
delete(callback: BodyResponseCallback<void>): void;
|
|
6101
|
+
/**
|
|
6102
|
+
* Inserts a new resource into this collection.
|
|
6103
|
+
*
|
|
6104
|
+
* @param params - Parameters for request
|
|
6105
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6106
|
+
* @param callback - Optional callback that handles the response.
|
|
6107
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6108
|
+
*/
|
|
6109
|
+
insert(params: Params$Resource$Playlistimages$Insert, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
6110
|
+
insert(params?: Params$Resource$Playlistimages$Insert, options?: MethodOptions): GaxiosPromise<Schema$PlaylistImage>;
|
|
6111
|
+
insert(params: Params$Resource$Playlistimages$Insert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6112
|
+
insert(params: Params$Resource$Playlistimages$Insert, options: MethodOptions | BodyResponseCallback<Schema$PlaylistImage>, callback: BodyResponseCallback<Schema$PlaylistImage>): void;
|
|
6113
|
+
insert(params: Params$Resource$Playlistimages$Insert, callback: BodyResponseCallback<Schema$PlaylistImage>): void;
|
|
6114
|
+
insert(callback: BodyResponseCallback<Schema$PlaylistImage>): void;
|
|
6115
|
+
/**
|
|
6116
|
+
* Retrieves a list of resources, possibly filtered.
|
|
6117
|
+
*
|
|
6118
|
+
* @param params - Parameters for request
|
|
6119
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6120
|
+
* @param callback - Optional callback that handles the response.
|
|
6121
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6122
|
+
*/
|
|
6123
|
+
list(params: Params$Resource$Playlistimages$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
6124
|
+
list(params?: Params$Resource$Playlistimages$List, options?: MethodOptions): GaxiosPromise<Schema$PlaylistImageListResponse>;
|
|
6125
|
+
list(params: Params$Resource$Playlistimages$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6126
|
+
list(params: Params$Resource$Playlistimages$List, options: MethodOptions | BodyResponseCallback<Schema$PlaylistImageListResponse>, callback: BodyResponseCallback<Schema$PlaylistImageListResponse>): void;
|
|
6127
|
+
list(params: Params$Resource$Playlistimages$List, callback: BodyResponseCallback<Schema$PlaylistImageListResponse>): void;
|
|
6128
|
+
list(callback: BodyResponseCallback<Schema$PlaylistImageListResponse>): void;
|
|
6129
|
+
/**
|
|
6130
|
+
* Updates an existing resource.
|
|
6131
|
+
*
|
|
6132
|
+
* @param params - Parameters for request
|
|
6133
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6134
|
+
* @param callback - Optional callback that handles the response.
|
|
6135
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6136
|
+
*/
|
|
6137
|
+
update(params: Params$Resource$Playlistimages$Update, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
6138
|
+
update(params?: Params$Resource$Playlistimages$Update, options?: MethodOptions): GaxiosPromise<Schema$PlaylistImage>;
|
|
6139
|
+
update(params: Params$Resource$Playlistimages$Update, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
6140
|
+
update(params: Params$Resource$Playlistimages$Update, options: MethodOptions | BodyResponseCallback<Schema$PlaylistImage>, callback: BodyResponseCallback<Schema$PlaylistImage>): void;
|
|
6141
|
+
update(params: Params$Resource$Playlistimages$Update, callback: BodyResponseCallback<Schema$PlaylistImage>): void;
|
|
6142
|
+
update(callback: BodyResponseCallback<Schema$PlaylistImage>): void;
|
|
6143
|
+
}
|
|
6144
|
+
export interface Params$Resource$Playlistimages$Delete extends StandardParameters {
|
|
6145
|
+
/**
|
|
6146
|
+
* Id to identify this image. This is returned from by the List method.
|
|
6147
|
+
*/
|
|
6148
|
+
id?: string;
|
|
6149
|
+
/**
|
|
6150
|
+
* *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.
|
|
6151
|
+
*/
|
|
6152
|
+
onBehalfOfContentOwner?: string;
|
|
6153
|
+
}
|
|
6154
|
+
export interface Params$Resource$Playlistimages$Insert extends StandardParameters {
|
|
6155
|
+
/**
|
|
6156
|
+
* *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.
|
|
6157
|
+
*/
|
|
6158
|
+
onBehalfOfContentOwner?: string;
|
|
6159
|
+
/**
|
|
6160
|
+
* This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
|
|
6161
|
+
*/
|
|
6162
|
+
onBehalfOfContentOwnerChannel?: string;
|
|
6163
|
+
/**
|
|
6164
|
+
* The *part* parameter specifies the properties that the API response will include.
|
|
6165
|
+
*/
|
|
6166
|
+
part?: string[];
|
|
6167
|
+
/**
|
|
6168
|
+
* Request body metadata
|
|
6169
|
+
*/
|
|
6170
|
+
requestBody?: Schema$PlaylistImage;
|
|
6171
|
+
}
|
|
6172
|
+
export interface Params$Resource$Playlistimages$List extends StandardParameters {
|
|
6173
|
+
/**
|
|
6174
|
+
* The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
|
|
6175
|
+
*/
|
|
6176
|
+
maxResults?: number;
|
|
6177
|
+
/**
|
|
6178
|
+
* *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.
|
|
6179
|
+
*/
|
|
6180
|
+
onBehalfOfContentOwner?: string;
|
|
6181
|
+
/**
|
|
6182
|
+
* This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
|
|
6183
|
+
*/
|
|
6184
|
+
onBehalfOfContentOwnerChannel?: string;
|
|
6185
|
+
/**
|
|
6186
|
+
* The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
|
|
6187
|
+
*/
|
|
6188
|
+
pageToken?: string;
|
|
6189
|
+
/**
|
|
6190
|
+
* Return PlaylistImages for this playlist id.
|
|
6191
|
+
*/
|
|
6192
|
+
parent?: string;
|
|
6193
|
+
/**
|
|
6194
|
+
* The *part* parameter specifies a comma-separated list of one or more playlistImage 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.
|
|
6195
|
+
*/
|
|
6196
|
+
part?: string[];
|
|
6197
|
+
}
|
|
6198
|
+
export interface Params$Resource$Playlistimages$Update extends StandardParameters {
|
|
6199
|
+
/**
|
|
6200
|
+
* *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.
|
|
6201
|
+
*/
|
|
6202
|
+
onBehalfOfContentOwner?: string;
|
|
6203
|
+
/**
|
|
6204
|
+
* The *part* parameter specifies the properties that the API response will include.
|
|
6205
|
+
*/
|
|
6206
|
+
part?: string[];
|
|
6207
|
+
/**
|
|
6208
|
+
* Request body metadata
|
|
6209
|
+
*/
|
|
6210
|
+
requestBody?: Schema$PlaylistImage;
|
|
6211
|
+
}
|
|
6032
6212
|
export class Resource$Playlistitems {
|
|
6033
6213
|
context: APIRequestContext;
|
|
6034
6214
|
constructor(context: APIRequestContext);
|
|
@@ -6384,10 +6564,6 @@ export declare namespace youtube_v3 {
|
|
|
6384
6564
|
* Display the content as seen by viewers in this country.
|
|
6385
6565
|
*/
|
|
6386
6566
|
regionCode?: string;
|
|
6387
|
-
/**
|
|
6388
|
-
* Search related to a resource.
|
|
6389
|
-
*/
|
|
6390
|
-
relatedToVideoId?: string;
|
|
6391
6567
|
/**
|
|
6392
6568
|
* Return results relevant to this language.
|
|
6393
6569
|
*/
|
|
@@ -6432,6 +6608,10 @@ export declare namespace youtube_v3 {
|
|
|
6432
6608
|
* Filter on the license of the videos.
|
|
6433
6609
|
*/
|
|
6434
6610
|
videoLicense?: string;
|
|
6611
|
+
/**
|
|
6612
|
+
*
|
|
6613
|
+
*/
|
|
6614
|
+
videoPaidProductPlacement?: string;
|
|
6435
6615
|
/**
|
|
6436
6616
|
* Filter on syndicated videos.
|
|
6437
6617
|
*/
|
package/build/v3.js
CHANGED
|
@@ -55,6 +55,7 @@ var youtube_v3;
|
|
|
55
55
|
this.liveStreams = new Resource$Livestreams(this.context);
|
|
56
56
|
this.members = new Resource$Members(this.context);
|
|
57
57
|
this.membershipsLevels = new Resource$Membershipslevels(this.context);
|
|
58
|
+
this.playlistImages = new Resource$Playlistimages(this.context);
|
|
58
59
|
this.playlistItems = new Resource$Playlistitems(this.context);
|
|
59
60
|
this.playlists = new Resource$Playlists(this.context);
|
|
60
61
|
this.search = new Resource$Search(this.context);
|
|
@@ -1557,6 +1558,136 @@ var youtube_v3;
|
|
|
1557
1558
|
}
|
|
1558
1559
|
}
|
|
1559
1560
|
youtube_v3.Resource$Membershipslevels = Resource$Membershipslevels;
|
|
1561
|
+
class Resource$Playlistimages {
|
|
1562
|
+
constructor(context) {
|
|
1563
|
+
this.context = context;
|
|
1564
|
+
}
|
|
1565
|
+
delete(paramsOrCallback, optionsOrCallback, callback) {
|
|
1566
|
+
let params = (paramsOrCallback ||
|
|
1567
|
+
{});
|
|
1568
|
+
let options = (optionsOrCallback || {});
|
|
1569
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1570
|
+
callback = paramsOrCallback;
|
|
1571
|
+
params = {};
|
|
1572
|
+
options = {};
|
|
1573
|
+
}
|
|
1574
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1575
|
+
callback = optionsOrCallback;
|
|
1576
|
+
options = {};
|
|
1577
|
+
}
|
|
1578
|
+
const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/';
|
|
1579
|
+
const parameters = {
|
|
1580
|
+
options: Object.assign({
|
|
1581
|
+
url: (rootUrl + '/youtube/v3/playlistImages').replace(/([^:]\/)\/+/g, '$1'),
|
|
1582
|
+
method: 'DELETE',
|
|
1583
|
+
}, options),
|
|
1584
|
+
params,
|
|
1585
|
+
requiredParams: [],
|
|
1586
|
+
pathParams: [],
|
|
1587
|
+
context: this.context,
|
|
1588
|
+
};
|
|
1589
|
+
if (callback) {
|
|
1590
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1591
|
+
}
|
|
1592
|
+
else {
|
|
1593
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
insert(paramsOrCallback, optionsOrCallback, callback) {
|
|
1597
|
+
let params = (paramsOrCallback ||
|
|
1598
|
+
{});
|
|
1599
|
+
let options = (optionsOrCallback || {});
|
|
1600
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1601
|
+
callback = paramsOrCallback;
|
|
1602
|
+
params = {};
|
|
1603
|
+
options = {};
|
|
1604
|
+
}
|
|
1605
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1606
|
+
callback = optionsOrCallback;
|
|
1607
|
+
options = {};
|
|
1608
|
+
}
|
|
1609
|
+
const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/';
|
|
1610
|
+
const parameters = {
|
|
1611
|
+
options: Object.assign({
|
|
1612
|
+
url: (rootUrl + '/youtube/v3/playlistImages').replace(/([^:]\/)\/+/g, '$1'),
|
|
1613
|
+
method: 'POST',
|
|
1614
|
+
}, options),
|
|
1615
|
+
params,
|
|
1616
|
+
requiredParams: [],
|
|
1617
|
+
pathParams: [],
|
|
1618
|
+
context: this.context,
|
|
1619
|
+
};
|
|
1620
|
+
if (callback) {
|
|
1621
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1622
|
+
}
|
|
1623
|
+
else {
|
|
1624
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
list(paramsOrCallback, optionsOrCallback, callback) {
|
|
1628
|
+
let params = (paramsOrCallback ||
|
|
1629
|
+
{});
|
|
1630
|
+
let options = (optionsOrCallback || {});
|
|
1631
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1632
|
+
callback = paramsOrCallback;
|
|
1633
|
+
params = {};
|
|
1634
|
+
options = {};
|
|
1635
|
+
}
|
|
1636
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1637
|
+
callback = optionsOrCallback;
|
|
1638
|
+
options = {};
|
|
1639
|
+
}
|
|
1640
|
+
const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/';
|
|
1641
|
+
const parameters = {
|
|
1642
|
+
options: Object.assign({
|
|
1643
|
+
url: (rootUrl + '/youtube/v3/playlistImages').replace(/([^:]\/)\/+/g, '$1'),
|
|
1644
|
+
method: 'GET',
|
|
1645
|
+
}, options),
|
|
1646
|
+
params,
|
|
1647
|
+
requiredParams: [],
|
|
1648
|
+
pathParams: [],
|
|
1649
|
+
context: this.context,
|
|
1650
|
+
};
|
|
1651
|
+
if (callback) {
|
|
1652
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1653
|
+
}
|
|
1654
|
+
else {
|
|
1655
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
update(paramsOrCallback, optionsOrCallback, callback) {
|
|
1659
|
+
let params = (paramsOrCallback ||
|
|
1660
|
+
{});
|
|
1661
|
+
let options = (optionsOrCallback || {});
|
|
1662
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1663
|
+
callback = paramsOrCallback;
|
|
1664
|
+
params = {};
|
|
1665
|
+
options = {};
|
|
1666
|
+
}
|
|
1667
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1668
|
+
callback = optionsOrCallback;
|
|
1669
|
+
options = {};
|
|
1670
|
+
}
|
|
1671
|
+
const rootUrl = options.rootUrl || 'https://youtube.googleapis.com/';
|
|
1672
|
+
const parameters = {
|
|
1673
|
+
options: Object.assign({
|
|
1674
|
+
url: (rootUrl + '/youtube/v3/playlistImages').replace(/([^:]\/)\/+/g, '$1'),
|
|
1675
|
+
method: 'PUT',
|
|
1676
|
+
}, options),
|
|
1677
|
+
params,
|
|
1678
|
+
requiredParams: [],
|
|
1679
|
+
pathParams: [],
|
|
1680
|
+
context: this.context,
|
|
1681
|
+
};
|
|
1682
|
+
if (callback) {
|
|
1683
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1684
|
+
}
|
|
1685
|
+
else {
|
|
1686
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
youtube_v3.Resource$Playlistimages = Resource$Playlistimages;
|
|
1560
1691
|
class Resource$Playlistitems {
|
|
1561
1692
|
constructor(context) {
|
|
1562
1693
|
this.context = context;
|