Skip to content

Commit e821464

Browse files
feat(youtube): update the api
#### youtube:v3 The following keys were added: - resources.videoTrainability.methods.get (Total Keys: 9) - schemas.VideoTrainability (Total Keys: 7)
1 parent 4a60ffc commit e821464

File tree

3 files changed

+174
-1
lines changed

3 files changed

+174
-1
lines changed

docs/dyn/youtube_v3.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ <h2>Instance Methods</h2>
214214
</p>
215215
<p class="firstline">Returns the videoCategories Resource.</p>
216216

217+
<p class="toc_element">
218+
<code><a href="youtube_v3.videoTrainability.html">videoTrainability()</a></code>
219+
</p>
220+
<p class="firstline">Returns the videoTrainability Resource.</p>
221+
217222
<p class="toc_element">
218223
<code><a href="youtube_v3.videos.html">videos()</a></code>
219224
</p>
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
<html><body>
2+
<style>
3+
4+
body, h1, h2, h3, div, span, p, pre, a {
5+
margin: 0;
6+
padding: 0;
7+
border: 0;
8+
font-weight: inherit;
9+
font-style: inherit;
10+
font-size: 100%;
11+
font-family: inherit;
12+
vertical-align: baseline;
13+
}
14+
15+
body {
16+
font-size: 13px;
17+
padding: 1em;
18+
}
19+
20+
h1 {
21+
font-size: 26px;
22+
margin-bottom: 1em;
23+
}
24+
25+
h2 {
26+
font-size: 24px;
27+
margin-bottom: 1em;
28+
}
29+
30+
h3 {
31+
font-size: 20px;
32+
margin-bottom: 1em;
33+
margin-top: 1em;
34+
}
35+
36+
pre, code {
37+
line-height: 1.5;
38+
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39+
}
40+
41+
pre {
42+
margin-top: 0.5em;
43+
}
44+
45+
h1, h2, h3, p {
46+
font-family: Arial, sans serif;
47+
}
48+
49+
h1, h2, h3 {
50+
border-bottom: solid #CCC 1px;
51+
}
52+
53+
.toc_element {
54+
margin-top: 0.5em;
55+
}
56+
57+
.firstline {
58+
margin-left: 2 em;
59+
}
60+
61+
.method {
62+
margin-top: 1em;
63+
border: solid 1px #CCC;
64+
padding: 1em;
65+
background: #EEE;
66+
}
67+
68+
.details {
69+
font-weight: bold;
70+
font-size: 14px;
71+
}
72+
73+
</style>
74+
75+
<h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.videoTrainability.html">videoTrainability</a></h1>
76+
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="#close">close()</a></code></p>
79+
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#get">get(id=None, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Returns the trainability status of a video.</p>
83+
<h3>Method Details</h3>
84+
<div class="method">
85+
<code class="details" id="close">close()</code>
86+
<pre>Close httplib2 connections.</pre>
87+
</div>
88+
89+
<div class="method">
90+
<code class="details" id="get">get(id=None, x__xgafv=None)</code>
91+
<pre>Returns the trainability status of a video.
92+
93+
Args:
94+
id: string, The ID of the video to retrieve.
95+
x__xgafv: string, V1 error format.
96+
Allowed values
97+
1 - v1 error format
98+
2 - v2 error format
99+
100+
Returns:
101+
An object of the form:
102+
103+
{ # Specifies who is allowed to train on the video.
104+
&quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
105+
&quot;kind&quot;: &quot;youtube#videoTrainability&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#videoTrainability&quot;.
106+
&quot;permitted&quot;: [ # Specifies who is allowed to train on the video. Valid values are: - a single string &quot;all&quot; - a single string &quot;none&quot; - a list of allowed parties
107+
&quot;A String&quot;,
108+
],
109+
&quot;videoId&quot;: &quot;A String&quot;, # The ID of the video.
110+
}</pre>
111+
</div>
112+
113+
</body></html>

googleapiclient/discovery_cache/documents/youtube.v3.json

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3610,6 +3610,34 @@
36103610
}
36113611
}
36123612
},
3613+
"videoTrainability": {
3614+
"methods": {
3615+
"get": {
3616+
"description": "Returns the trainability status of a video.",
3617+
"flatPath": "youtube/v3/videoTrainability",
3618+
"httpMethod": "GET",
3619+
"id": "youtube.videoTrainability.get",
3620+
"parameterOrder": [],
3621+
"parameters": {
3622+
"id": {
3623+
"description": "The ID of the video to retrieve.",
3624+
"location": "query",
3625+
"type": "string"
3626+
}
3627+
},
3628+
"path": "youtube/v3/videoTrainability",
3629+
"response": {
3630+
"$ref": "VideoTrainability"
3631+
},
3632+
"scopes": [
3633+
"https://www.googleapis.com/auth/youtube",
3634+
"https://www.googleapis.com/auth/youtube.force-ssl",
3635+
"https://www.googleapis.com/auth/youtube.readonly",
3636+
"https://www.googleapis.com/auth/youtubepartner"
3637+
]
3638+
}
3639+
}
3640+
},
36133641
"videos": {
36143642
"methods": {
36153643
"delete": {
@@ -4072,7 +4100,7 @@
40724100
}
40734101
}
40744102
},
4075-
"revision": "20250101",
4103+
"revision": "20250122",
40764104
"rootUrl": "https://youtube.googleapis.com/",
40774105
"schemas": {
40784106
"AbuseReport": {
@@ -12264,6 +12292,33 @@ true
1226412292
},
1226512293
"type": "object"
1226612294
},
12295+
"VideoTrainability": {
12296+
"description": "Specifies who is allowed to train on the video.",
12297+
"id": "VideoTrainability",
12298+
"properties": {
12299+
"etag": {
12300+
"description": "Etag of this resource.",
12301+
"type": "string"
12302+
},
12303+
"kind": {
12304+
"default": "youtube#videoTrainability",
12305+
"description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#videoTrainability\".",
12306+
"type": "string"
12307+
},
12308+
"permitted": {
12309+
"description": "Specifies who is allowed to train on the video. Valid values are: - a single string \"all\" - a single string \"none\" - a list of allowed parties",
12310+
"items": {
12311+
"type": "string"
12312+
},
12313+
"type": "array"
12314+
},
12315+
"videoId": {
12316+
"description": "The ID of the video.",
12317+
"type": "string"
12318+
}
12319+
},
12320+
"type": "object"
12321+
},
1226712322
"WatchSettings": {
1226812323
"description": "Branding properties for the watch. All deprecated.",
1226912324
"id": "WatchSettings",

0 commit comments

Comments
 (0)