OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/yt-analytics.readonly": { | 5 "https://www.googleapis.com/auth/yt-analytics.readonly": { |
6 "description": "View YouTube Analytics reports for your YouT
ube content" | 6 "description": "View YouTube Analytics reports for your YouT
ube content" |
7 }, | 7 }, |
8 "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"
: { | 8 "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"
: { |
9 "description": "View monetary and non-monetary YouTube Analy
tics reports for your YouTube content" | 9 "description": "View monetary and non-monetary YouTube Analy
tics reports for your YouTube content" |
10 } | 10 } |
(...skipping 10 matching lines...) Expand all Loading... |
21 "icons": { | 21 "icons": { |
22 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 22 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
23 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 23 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
24 }, | 24 }, |
25 "id": "youtubereporting:v1", | 25 "id": "youtubereporting:v1", |
26 "kind": "discovery#restDescription", | 26 "kind": "discovery#restDescription", |
27 "name": "youtubereporting", | 27 "name": "youtubereporting", |
28 "ownerDomain": "google.com", | 28 "ownerDomain": "google.com", |
29 "ownerName": "Google", | 29 "ownerName": "Google", |
30 "parameters": { | 30 "parameters": { |
| 31 "alt": { |
| 32 "default": "json", |
| 33 "description": "Data format for response.", |
| 34 "enum": [ |
| 35 "json", |
| 36 "media", |
| 37 "proto" |
| 38 ], |
| 39 "enumDescriptions": [ |
| 40 "Responses with Content-Type of application/json", |
| 41 "Media download with context-dependent Content-Type", |
| 42 "Responses with Content-Type of application/x-protobuf" |
| 43 ], |
| 44 "location": "query", |
| 45 "type": "string" |
| 46 }, |
31 "key": { | 47 "key": { |
32 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | 48 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
33 "location": "query", | 49 "location": "query", |
34 "type": "string" | 50 "type": "string" |
35 }, | 51 }, |
36 "access_token": { | 52 "access_token": { |
37 "description": "OAuth access token.", | 53 "description": "OAuth access token.", |
38 "location": "query", | 54 "location": "query", |
39 "type": "string" | 55 "type": "string" |
40 }, | 56 }, |
41 "quotaUser": { | 57 "quotaUser": { |
42 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | 58 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
43 "location": "query", | 59 "location": "query", |
44 "type": "string" | 60 "type": "string" |
45 }, | 61 }, |
46 "pp": { | 62 "pp": { |
47 "default": "true", | 63 "default": "true", |
48 "description": "Pretty-print response.", | 64 "description": "Pretty-print response.", |
49 "location": "query", | 65 "location": "query", |
50 "type": "boolean" | 66 "type": "boolean" |
51 }, | 67 }, |
| 68 "oauth_token": { |
| 69 "description": "OAuth 2.0 token for the current user.", |
| 70 "location": "query", |
| 71 "type": "string" |
| 72 }, |
52 "bearer_token": { | 73 "bearer_token": { |
53 "description": "OAuth bearer token.", | 74 "description": "OAuth bearer token.", |
54 "location": "query", | 75 "location": "query", |
55 "type": "string" | 76 "type": "string" |
56 }, | 77 }, |
57 "oauth_token": { | |
58 "description": "OAuth 2.0 token for the current user.", | |
59 "location": "query", | |
60 "type": "string" | |
61 }, | |
62 "upload_protocol": { | 78 "upload_protocol": { |
63 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 79 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
64 "location": "query", | 80 "location": "query", |
65 "type": "string" | 81 "type": "string" |
66 }, | 82 }, |
67 "prettyPrint": { | 83 "prettyPrint": { |
68 "default": "true", | 84 "default": "true", |
69 "description": "Returns response with indentations and line breaks."
, | 85 "description": "Returns response with indentations and line breaks."
, |
70 "location": "query", | 86 "location": "query", |
71 "type": "boolean" | 87 "type": "boolean" |
72 }, | 88 }, |
| 89 "fields": { |
| 90 "description": "Selector specifying which fields to include in a par
tial response.", |
| 91 "location": "query", |
| 92 "type": "string" |
| 93 }, |
73 "uploadType": { | 94 "uploadType": { |
74 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 95 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
75 "location": "query", | 96 "location": "query", |
76 "type": "string" | 97 "type": "string" |
77 }, | 98 }, |
78 "fields": { | |
79 "description": "Selector specifying which fields to include in a par
tial response.", | |
80 "location": "query", | |
81 "type": "string" | |
82 }, | |
83 "callback": { | |
84 "description": "JSONP", | |
85 "location": "query", | |
86 "type": "string" | |
87 }, | |
88 "$.xgafv": { | 99 "$.xgafv": { |
89 "description": "V1 error format.", | 100 "description": "V1 error format.", |
90 "enum": [ | 101 "enum": [ |
91 "1", | 102 "1", |
92 "2" | 103 "2" |
93 ], | 104 ], |
94 "enumDescriptions": [ | 105 "enumDescriptions": [ |
95 "v1 error format", | 106 "v1 error format", |
96 "v2 error format" | 107 "v2 error format" |
97 ], | 108 ], |
98 "location": "query", | 109 "location": "query", |
99 "type": "string" | 110 "type": "string" |
100 }, | 111 }, |
101 "alt": { | 112 "callback": { |
102 "default": "json", | 113 "description": "JSONP", |
103 "description": "Data format for response.", | |
104 "enum": [ | |
105 "json", | |
106 "media", | |
107 "proto" | |
108 ], | |
109 "enumDescriptions": [ | |
110 "Responses with Content-Type of application/json", | |
111 "Media download with context-dependent Content-Type", | |
112 "Responses with Content-Type of application/x-protobuf" | |
113 ], | |
114 "location": "query", | 114 "location": "query", |
115 "type": "string" | 115 "type": "string" |
116 } | 116 } |
117 }, | 117 }, |
118 "protocol": "rest", | 118 "protocol": "rest", |
119 "resources": { | 119 "resources": { |
120 "media": { | 120 "jobs": { |
121 "methods": { | 121 "methods": { |
122 "download": { | 122 "create": { |
123 "description": "Method for media download. Download is suppo
rted\non the URI `/v1/media/{+name}?alt=media`.", | 123 "description": "Creates a job and returns it.", |
124 "httpMethod": "GET", | 124 "httpMethod": "POST", |
125 "id": "youtubereporting.media.download", | 125 "id": "youtubereporting.jobs.create", |
126 "parameterOrder": [ | 126 "parameterOrder": [], |
127 "resourceName" | |
128 ], | |
129 "parameters": { | 127 "parameters": { |
130 "resourceName": { | 128 "onBehalfOfContentOwner": { |
131 "description": "Name of the media that is being down
loaded. See\nReadRequest.resource_name.", | 129 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", |
132 "location": "path", | 130 "location": "query", |
133 "pattern": "^.+$", | |
134 "required": true, | |
135 "type": "string" | 131 "type": "string" |
136 } | 132 } |
137 }, | 133 }, |
138 "path": "v1/media/{+resourceName}", | 134 "path": "v1/jobs", |
| 135 "request": { |
| 136 "$ref": "Job" |
| 137 }, |
139 "response": { | 138 "response": { |
140 "$ref": "Media" | 139 "$ref": "Job" |
141 }, | 140 }, |
142 "scopes": [ | 141 "scopes": [ |
143 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", | 142 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", |
144 "https://www.googleapis.com/auth/yt-analytics.readonly" | 143 "https://www.googleapis.com/auth/yt-analytics.readonly" |
145 ], | 144 ] |
146 "supportsMediaDownload": true | 145 }, |
147 } | |
148 } | |
149 }, | |
150 "jobs": { | |
151 "methods": { | |
152 "delete": { | 146 "delete": { |
153 "description": "Deletes a job.", | 147 "description": "Deletes a job.", |
154 "httpMethod": "DELETE", | 148 "httpMethod": "DELETE", |
155 "id": "youtubereporting.jobs.delete", | 149 "id": "youtubereporting.jobs.delete", |
156 "parameterOrder": [ | 150 "parameterOrder": [ |
157 "jobId" | 151 "jobId" |
158 ], | 152 ], |
159 "parameters": { | 153 "parameters": { |
160 "jobId": { | 154 "jobId": { |
161 "description": "The ID of the job to delete.", | 155 "description": "The ID of the job to delete.", |
(...skipping 15 matching lines...) Expand all Loading... |
177 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", | 171 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", |
178 "https://www.googleapis.com/auth/yt-analytics.readonly" | 172 "https://www.googleapis.com/auth/yt-analytics.readonly" |
179 ] | 173 ] |
180 }, | 174 }, |
181 "list": { | 175 "list": { |
182 "description": "Lists jobs.", | 176 "description": "Lists jobs.", |
183 "httpMethod": "GET", | 177 "httpMethod": "GET", |
184 "id": "youtubereporting.jobs.list", | 178 "id": "youtubereporting.jobs.list", |
185 "parameterOrder": [], | 179 "parameterOrder": [], |
186 "parameters": { | 180 "parameters": { |
| 181 "onBehalfOfContentOwner": { |
| 182 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", |
| 183 "location": "query", |
| 184 "type": "string" |
| 185 }, |
187 "pageToken": { | 186 "pageToken": { |
188 "description": "A token identifying a page of result
s the server should return. Typically,\nthis is the value of\nListReportTypesRes
ponse.next_page_token\nreturned in response to the previous call to the `ListJob
s` method.", | 187 "description": "A token identifying a page of result
s the server should return. Typically,\nthis is the value of\nListReportTypesRes
ponse.next_page_token\nreturned in response to the previous call to the `ListJob
s` method.", |
189 "location": "query", | 188 "location": "query", |
190 "type": "string" | 189 "type": "string" |
191 }, | 190 }, |
192 "includeSystemManaged": { | 191 "includeSystemManaged": { |
193 "description": "If set to true, also system-managed
jobs will be returned; otherwise only\nuser-created jobs will be returned. Syste
m-managed jobs can neither be\nmodified nor deleted.", | 192 "description": "If set to true, also system-managed
jobs will be returned; otherwise only\nuser-created jobs will be returned. Syste
m-managed jobs can neither be\nmodified nor deleted.", |
194 "location": "query", | 193 "location": "query", |
195 "type": "boolean" | 194 "type": "boolean" |
196 }, | 195 }, |
197 "pageSize": { | 196 "pageSize": { |
198 "description": "Requested page size. Server may retu
rn fewer jobs than requested.\nIf unspecified, server will pick an appropriate d
efault.", | 197 "description": "Requested page size. Server may retu
rn fewer jobs than requested.\nIf unspecified, server will pick an appropriate d
efault.", |
199 "format": "int32", | 198 "format": "int32", |
200 "location": "query", | 199 "location": "query", |
201 "type": "integer" | 200 "type": "integer" |
202 }, | |
203 "onBehalfOfContentOwner": { | |
204 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", | |
205 "location": "query", | |
206 "type": "string" | |
207 } | 201 } |
208 }, | 202 }, |
209 "path": "v1/jobs", | 203 "path": "v1/jobs", |
210 "response": { | 204 "response": { |
211 "$ref": "ListJobsResponse" | 205 "$ref": "ListJobsResponse" |
212 }, | 206 }, |
213 "scopes": [ | 207 "scopes": [ |
214 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", | 208 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", |
215 "https://www.googleapis.com/auth/yt-analytics.readonly" | 209 "https://www.googleapis.com/auth/yt-analytics.readonly" |
216 ] | 210 ] |
217 }, | 211 }, |
218 "get": { | 212 "get": { |
219 "description": "Gets a job.", | 213 "description": "Gets a job.", |
220 "httpMethod": "GET", | 214 "httpMethod": "GET", |
221 "id": "youtubereporting.jobs.get", | 215 "id": "youtubereporting.jobs.get", |
222 "parameterOrder": [ | 216 "parameterOrder": [ |
223 "jobId" | 217 "jobId" |
224 ], | 218 ], |
225 "parameters": { | 219 "parameters": { |
| 220 "onBehalfOfContentOwner": { |
| 221 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", |
| 222 "location": "query", |
| 223 "type": "string" |
| 224 }, |
226 "jobId": { | 225 "jobId": { |
227 "description": "The ID of the job to retrieve.", | 226 "description": "The ID of the job to retrieve.", |
228 "location": "path", | 227 "location": "path", |
229 "required": true, | 228 "required": true, |
230 "type": "string" | 229 "type": "string" |
231 }, | |
232 "onBehalfOfContentOwner": { | |
233 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", | |
234 "location": "query", | |
235 "type": "string" | |
236 } | 230 } |
237 }, | 231 }, |
238 "path": "v1/jobs/{jobId}", | 232 "path": "v1/jobs/{jobId}", |
239 "response": { | 233 "response": { |
240 "$ref": "Job" | 234 "$ref": "Job" |
241 }, | 235 }, |
242 "scopes": [ | 236 "scopes": [ |
243 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", | 237 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", |
244 "https://www.googleapis.com/auth/yt-analytics.readonly" | 238 "https://www.googleapis.com/auth/yt-analytics.readonly" |
245 ] | 239 ] |
246 }, | |
247 "create": { | |
248 "description": "Creates a job and returns it.", | |
249 "httpMethod": "POST", | |
250 "id": "youtubereporting.jobs.create", | |
251 "parameterOrder": [], | |
252 "parameters": { | |
253 "onBehalfOfContentOwner": { | |
254 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", | |
255 "location": "query", | |
256 "type": "string" | |
257 } | |
258 }, | |
259 "path": "v1/jobs", | |
260 "request": { | |
261 "$ref": "Job" | |
262 }, | |
263 "response": { | |
264 "$ref": "Job" | |
265 }, | |
266 "scopes": [ | |
267 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", | |
268 "https://www.googleapis.com/auth/yt-analytics.readonly" | |
269 ] | |
270 } | 240 } |
271 }, | 241 }, |
272 "resources": { | 242 "resources": { |
273 "reports": { | 243 "reports": { |
274 "methods": { | 244 "methods": { |
275 "list": { | 245 "list": { |
276 "description": "Lists reports created by a specific
job.\nReturns NOT_FOUND if the job does not exist.", | 246 "description": "Lists reports created by a specific
job.\nReturns NOT_FOUND if the job does not exist.", |
277 "httpMethod": "GET", | 247 "httpMethod": "GET", |
278 "id": "youtubereporting.jobs.reports.list", | 248 "id": "youtubereporting.jobs.reports.list", |
279 "parameterOrder": [ | 249 "parameterOrder": [ |
280 "jobId" | 250 "jobId" |
281 ], | 251 ], |
282 "parameters": { | 252 "parameters": { |
283 "onBehalfOfContentOwner": { | |
284 "description": "The content owner's external
ID on which behalf the user is acting on. If\nnot set, the user is acting for h
imself (his own channel).", | |
285 "location": "query", | |
286 "type": "string" | |
287 }, | |
288 "startTimeBefore": { | |
289 "description": "If set, only reports whose s
tart time is smaller than the specified\ndate/time are returned.", | |
290 "format": "google-datetime", | |
291 "location": "query", | |
292 "type": "string" | |
293 }, | |
294 "jobId": { | |
295 "description": "The ID of the job.", | |
296 "location": "path", | |
297 "required": true, | |
298 "type": "string" | |
299 }, | |
300 "createdAfter": { | 253 "createdAfter": { |
301 "description": "If set, only reports created
after the specified date/time are returned.", | 254 "description": "If set, only reports created
after the specified date/time are returned.", |
302 "format": "google-datetime", | 255 "format": "google-datetime", |
303 "location": "query", | 256 "location": "query", |
304 "type": "string" | 257 "type": "string" |
305 }, | 258 }, |
| 259 "pageToken": { |
| 260 "description": "A token identifying a page o
f results the server should return. Typically,\nthis is the value of\nListReport
sResponse.next_page_token\nreturned in response to the previous call to the `Lis
tReports` method.", |
| 261 "location": "query", |
| 262 "type": "string" |
| 263 }, |
306 "startTimeAtOrAfter": { | 264 "startTimeAtOrAfter": { |
307 "description": "If set, only reports whose s
tart time is greater than or equal the\nspecified date/time are returned.", | 265 "description": "If set, only reports whose s
tart time is greater than or equal the\nspecified date/time are returned.", |
308 "format": "google-datetime", | 266 "format": "google-datetime", |
309 "location": "query", | 267 "location": "query", |
310 "type": "string" | 268 "type": "string" |
311 }, | 269 }, |
312 "pageToken": { | |
313 "description": "A token identifying a page o
f results the server should return. Typically,\nthis is the value of\nListReport
sResponse.next_page_token\nreturned in response to the previous call to the `Lis
tReports` method.", | |
314 "location": "query", | |
315 "type": "string" | |
316 }, | |
317 "pageSize": { | 270 "pageSize": { |
318 "description": "Requested page size. Server
may return fewer report types than requested.\nIf unspecified, server will pick
an appropriate default.", | 271 "description": "Requested page size. Server
may return fewer report types than requested.\nIf unspecified, server will pick
an appropriate default.", |
319 "format": "int32", | 272 "format": "int32", |
320 "location": "query", | 273 "location": "query", |
321 "type": "integer" | 274 "type": "integer" |
| 275 }, |
| 276 "onBehalfOfContentOwner": { |
| 277 "description": "The content owner's external
ID on which behalf the user is acting on. If\nnot set, the user is acting for h
imself (his own channel).", |
| 278 "location": "query", |
| 279 "type": "string" |
| 280 }, |
| 281 "startTimeBefore": { |
| 282 "description": "If set, only reports whose s
tart time is smaller than the specified\ndate/time are returned.", |
| 283 "format": "google-datetime", |
| 284 "location": "query", |
| 285 "type": "string" |
| 286 }, |
| 287 "jobId": { |
| 288 "description": "The ID of the job.", |
| 289 "location": "path", |
| 290 "required": true, |
| 291 "type": "string" |
322 } | 292 } |
323 }, | 293 }, |
324 "path": "v1/jobs/{jobId}/reports", | 294 "path": "v1/jobs/{jobId}/reports", |
325 "response": { | 295 "response": { |
326 "$ref": "ListReportsResponse" | 296 "$ref": "ListReportsResponse" |
327 }, | 297 }, |
328 "scopes": [ | 298 "scopes": [ |
329 "https://www.googleapis.com/auth/yt-analytics-mo
netary.readonly", | 299 "https://www.googleapis.com/auth/yt-analytics-mo
netary.readonly", |
330 "https://www.googleapis.com/auth/yt-analytics.re
adonly" | 300 "https://www.googleapis.com/auth/yt-analytics.re
adonly" |
331 ] | 301 ] |
332 }, | 302 }, |
333 "get": { | 303 "get": { |
334 "description": "Gets the metadata of a specific repo
rt.", | 304 "description": "Gets the metadata of a specific repo
rt.", |
335 "httpMethod": "GET", | 305 "httpMethod": "GET", |
336 "id": "youtubereporting.jobs.reports.get", | 306 "id": "youtubereporting.jobs.reports.get", |
337 "parameterOrder": [ | 307 "parameterOrder": [ |
338 "jobId", | 308 "jobId", |
339 "reportId" | 309 "reportId" |
340 ], | 310 ], |
341 "parameters": { | 311 "parameters": { |
342 "jobId": { | |
343 "description": "The ID of the job.", | |
344 "location": "path", | |
345 "required": true, | |
346 "type": "string" | |
347 }, | |
348 "onBehalfOfContentOwner": { | 312 "onBehalfOfContentOwner": { |
349 "description": "The content owner's external
ID on which behalf the user is acting on. If\nnot set, the user is acting for h
imself (his own channel).", | 313 "description": "The content owner's external
ID on which behalf the user is acting on. If\nnot set, the user is acting for h
imself (his own channel).", |
350 "location": "query", | 314 "location": "query", |
351 "type": "string" | 315 "type": "string" |
352 }, | 316 }, |
353 "reportId": { | 317 "reportId": { |
354 "description": "The ID of the report to retr
ieve.", | 318 "description": "The ID of the report to retr
ieve.", |
355 "location": "path", | 319 "location": "path", |
356 "required": true, | 320 "required": true, |
357 "type": "string" | 321 "type": "string" |
| 322 }, |
| 323 "jobId": { |
| 324 "description": "The ID of the job.", |
| 325 "location": "path", |
| 326 "required": true, |
| 327 "type": "string" |
358 } | 328 } |
359 }, | 329 }, |
360 "path": "v1/jobs/{jobId}/reports/{reportId}", | 330 "path": "v1/jobs/{jobId}/reports/{reportId}", |
361 "response": { | 331 "response": { |
362 "$ref": "Report" | 332 "$ref": "Report" |
363 }, | 333 }, |
364 "scopes": [ | 334 "scopes": [ |
365 "https://www.googleapis.com/auth/yt-analytics-mo
netary.readonly", | 335 "https://www.googleapis.com/auth/yt-analytics-mo
netary.readonly", |
366 "https://www.googleapis.com/auth/yt-analytics.re
adonly" | 336 "https://www.googleapis.com/auth/yt-analytics.re
adonly" |
367 ] | 337 ] |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 "path": "v1/reportTypes", | 373 "path": "v1/reportTypes", |
404 "response": { | 374 "response": { |
405 "$ref": "ListReportTypesResponse" | 375 "$ref": "ListReportTypesResponse" |
406 }, | 376 }, |
407 "scopes": [ | 377 "scopes": [ |
408 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", | 378 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", |
409 "https://www.googleapis.com/auth/yt-analytics.readonly" | 379 "https://www.googleapis.com/auth/yt-analytics.readonly" |
410 ] | 380 ] |
411 } | 381 } |
412 } | 382 } |
| 383 }, |
| 384 "media": { |
| 385 "methods": { |
| 386 "download": { |
| 387 "description": "Method for media download. Download is suppo
rted\non the URI `/v1/media/{+name}?alt=media`.", |
| 388 "httpMethod": "GET", |
| 389 "id": "youtubereporting.media.download", |
| 390 "parameterOrder": [ |
| 391 "resourceName" |
| 392 ], |
| 393 "parameters": { |
| 394 "resourceName": { |
| 395 "description": "Name of the media that is being down
loaded. See\nReadRequest.resource_name.", |
| 396 "location": "path", |
| 397 "pattern": "^.+$", |
| 398 "required": true, |
| 399 "type": "string" |
| 400 } |
| 401 }, |
| 402 "path": "v1/media/{+resourceName}", |
| 403 "response": { |
| 404 "$ref": "Media" |
| 405 }, |
| 406 "scopes": [ |
| 407 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", |
| 408 "https://www.googleapis.com/auth/yt-analytics.readonly" |
| 409 ], |
| 410 "supportsMediaDownload": true |
| 411 } |
| 412 } |
413 } | 413 } |
414 }, | 414 }, |
415 "revision": "20170326", | 415 "revision": "20170411", |
416 "rootUrl": "https://youtubereporting.googleapis.com/", | 416 "rootUrl": "https://youtubereporting.googleapis.com/", |
417 "schemas": { | 417 "schemas": { |
418 "ListJobsResponse": { | |
419 "description": "Response message for ReportingService.ListJobs.", | |
420 "id": "ListJobsResponse", | |
421 "properties": { | |
422 "jobs": { | |
423 "description": "The list of jobs.", | |
424 "items": { | |
425 "$ref": "Job" | |
426 }, | |
427 "type": "array" | |
428 }, | |
429 "nextPageToken": { | |
430 "description": "A token to retrieve next page of results.\nP
ass this value in the\nListJobsRequest.page_token\nfield in the subsequent call
to `ListJobs` method to retrieve the next\npage of results.", | |
431 "type": "string" | |
432 } | |
433 }, | |
434 "type": "object" | |
435 }, | |
436 "Job": { | |
437 "description": "A job creating reports of a specific type.", | |
438 "id": "Job", | |
439 "properties": { | |
440 "name": { | |
441 "description": "The name of the job (max. 100 characters).", | |
442 "type": "string" | |
443 }, | |
444 "id": { | |
445 "description": "The server-generated ID of the job (max. 40
characters).", | |
446 "type": "string" | |
447 }, | |
448 "systemManaged": { | |
449 "description": "True if this a system-managed job that canno
t be modified by the user;\notherwise false.", | |
450 "type": "boolean" | |
451 }, | |
452 "createTime": { | |
453 "description": "The creation date/time of the job.", | |
454 "format": "google-datetime", | |
455 "type": "string" | |
456 }, | |
457 "reportTypeId": { | |
458 "description": "The type of reports this job creates. Corres
ponds to the ID of a\nReportType.", | |
459 "type": "string" | |
460 }, | |
461 "expireTime": { | |
462 "description": "The date/time when this job will expire/expi
red. After a job expired, no\nnew reports are generated.", | |
463 "format": "google-datetime", | |
464 "type": "string" | |
465 } | |
466 }, | |
467 "type": "object" | |
468 }, | |
469 "ListReportsResponse": { | 418 "ListReportsResponse": { |
470 "description": "Response message for ReportingService.ListReports.", | 419 "description": "Response message for ReportingService.ListReports.", |
471 "id": "ListReportsResponse", | 420 "id": "ListReportsResponse", |
472 "properties": { | 421 "properties": { |
473 "reports": { | 422 "reports": { |
474 "description": "The list of report types.", | 423 "description": "The list of report types.", |
475 "items": { | 424 "items": { |
476 "$ref": "Report" | 425 "$ref": "Report" |
477 }, | 426 }, |
478 "type": "array" | 427 "type": "array" |
479 }, | 428 }, |
480 "nextPageToken": { | 429 "nextPageToken": { |
481 "description": "A token to retrieve next page of results.\nP
ass this value in the\nListReportsRequest.page_token\nfield in the subsequent ca
ll to `ListReports` method to retrieve the next\npage of results.", | 430 "description": "A token to retrieve next page of results.\nP
ass this value in the\nListReportsRequest.page_token\nfield in the subsequent ca
ll to `ListReports` method to retrieve the next\npage of results.", |
482 "type": "string" | 431 "type": "string" |
483 } | 432 } |
484 }, | 433 }, |
485 "type": "object" | 434 "type": "object" |
486 }, | 435 }, |
487 "Media": { | 436 "Media": { |
488 "description": "Media resource.", | 437 "description": "Media resource.", |
489 "id": "Media", | 438 "id": "Media", |
490 "properties": { | 439 "properties": { |
491 "resourceName": { | 440 "resourceName": { |
492 "description": "Name of the media resource.", | 441 "description": "Name of the media resource.", |
493 "type": "string" | 442 "type": "string" |
494 } | 443 } |
495 }, | 444 }, |
496 "type": "object" | 445 "type": "object" |
497 }, | 446 }, |
| 447 "Report": { |
| 448 "description": "A report's metadata including the URL from which the
report itself can be\ndownloaded.", |
| 449 "id": "Report", |
| 450 "properties": { |
| 451 "createTime": { |
| 452 "description": "The date/time when this report was created."
, |
| 453 "format": "google-datetime", |
| 454 "type": "string" |
| 455 }, |
| 456 "jobId": { |
| 457 "description": "The ID of the job that created this report."
, |
| 458 "type": "string" |
| 459 }, |
| 460 "id": { |
| 461 "description": "The server-generated ID of the report.", |
| 462 "type": "string" |
| 463 }, |
| 464 "endTime": { |
| 465 "description": "The end of the time period that the report i
nstance covers. The value is\nexclusive.", |
| 466 "format": "google-datetime", |
| 467 "type": "string" |
| 468 }, |
| 469 "jobExpireTime": { |
| 470 "description": "The date/time when the job this report belon
gs to will expire/expired.", |
| 471 "format": "google-datetime", |
| 472 "type": "string" |
| 473 }, |
| 474 "downloadUrl": { |
| 475 "description": "The URL from which the report can be downloa
ded (max. 1000 characters).", |
| 476 "type": "string" |
| 477 }, |
| 478 "startTime": { |
| 479 "description": "The start of the time period that the report
instance covers. The value is\ninclusive.", |
| 480 "format": "google-datetime", |
| 481 "type": "string" |
| 482 } |
| 483 }, |
| 484 "type": "object" |
| 485 }, |
498 "Empty": { | 486 "Empty": { |
499 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", | 487 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
500 "id": "Empty", | 488 "id": "Empty", |
501 "properties": {}, | 489 "properties": {}, |
502 "type": "object" | 490 "type": "object" |
503 }, | 491 }, |
504 "ListReportTypesResponse": { | 492 "ListReportTypesResponse": { |
505 "description": "Response message for ReportingService.ListReportType
s.", | 493 "description": "Response message for ReportingService.ListReportType
s.", |
506 "id": "ListReportTypesResponse", | 494 "id": "ListReportTypesResponse", |
507 "properties": { | 495 "properties": { |
| 496 "nextPageToken": { |
| 497 "description": "A token to retrieve next page of results.\nP
ass this value in the\nListReportTypesRequest.page_token\nfield in the subsequen
t call to `ListReportTypes` method to retrieve the next\npage of results.", |
| 498 "type": "string" |
| 499 }, |
508 "reportTypes": { | 500 "reportTypes": { |
509 "description": "The list of report types.", | 501 "description": "The list of report types.", |
510 "items": { | 502 "items": { |
511 "$ref": "ReportType" | 503 "$ref": "ReportType" |
512 }, | 504 }, |
513 "type": "array" | 505 "type": "array" |
514 }, | |
515 "nextPageToken": { | |
516 "description": "A token to retrieve next page of results.\nP
ass this value in the\nListReportTypesRequest.page_token\nfield in the subsequen
t call to `ListReportTypes` method to retrieve the next\npage of results.", | |
517 "type": "string" | |
518 } | 506 } |
519 }, | 507 }, |
520 "type": "object" | 508 "type": "object" |
521 }, | 509 }, |
522 "ReportType": { | 510 "ReportType": { |
523 "description": "A report type.", | 511 "description": "A report type.", |
524 "id": "ReportType", | 512 "id": "ReportType", |
525 "properties": { | 513 "properties": { |
526 "name": { | |
527 "description": "The name of the report type (max. 100 charac
ters).", | |
528 "type": "string" | |
529 }, | |
530 "id": { | 514 "id": { |
531 "description": "The ID of the report type (max. 100 characte
rs).", | 515 "description": "The ID of the report type (max. 100 characte
rs).", |
532 "type": "string" | 516 "type": "string" |
533 }, | 517 }, |
534 "systemManaged": { | 518 "systemManaged": { |
535 "description": "True if this a system-managed report type; o
therwise false. Reporting jobs\nfor system-managed report types are created auto
matically and can thus not\nbe used in the `CreateJob` method.", | 519 "description": "True if this a system-managed report type; o
therwise false. Reporting jobs\nfor system-managed report types are created auto
matically and can thus not\nbe used in the `CreateJob` method.", |
536 "type": "boolean" | 520 "type": "boolean" |
537 }, | 521 }, |
538 "deprecateTime": { | 522 "deprecateTime": { |
539 "description": "The date/time when this report type was/will
be deprecated.", | 523 "description": "The date/time when this report type was/will
be deprecated.", |
540 "format": "google-datetime", | 524 "format": "google-datetime", |
541 "type": "string" | 525 "type": "string" |
| 526 }, |
| 527 "name": { |
| 528 "description": "The name of the report type (max. 100 charac
ters).", |
| 529 "type": "string" |
542 } | 530 } |
543 }, | 531 }, |
544 "type": "object" | 532 "type": "object" |
545 }, | 533 }, |
546 "Report": { | 534 "ListJobsResponse": { |
547 "description": "A report's metadata including the URL from which the
report itself can be\ndownloaded.", | 535 "description": "Response message for ReportingService.ListJobs.", |
548 "id": "Report", | 536 "id": "ListJobsResponse", |
549 "properties": { | 537 "properties": { |
550 "id": { | 538 "jobs": { |
551 "description": "The server-generated ID of the report.", | 539 "description": "The list of jobs.", |
552 "type": "string" | 540 "items": { |
| 541 "$ref": "Job" |
| 542 }, |
| 543 "type": "array" |
553 }, | 544 }, |
554 "endTime": { | 545 "nextPageToken": { |
555 "description": "The end of the time period that the report i
nstance covers. The value is\nexclusive.", | 546 "description": "A token to retrieve next page of results.\nP
ass this value in the\nListJobsRequest.page_token\nfield in the subsequent call
to `ListJobs` method to retrieve the next\npage of results.", |
556 "format": "google-datetime", | |
557 "type": "string" | |
558 }, | |
559 "jobExpireTime": { | |
560 "description": "The date/time when the job this report belon
gs to will expire/expired.", | |
561 "format": "google-datetime", | |
562 "type": "string" | |
563 }, | |
564 "downloadUrl": { | |
565 "description": "The URL from which the report can be downloa
ded (max. 1000 characters).", | |
566 "type": "string" | |
567 }, | |
568 "startTime": { | |
569 "description": "The start of the time period that the report
instance covers. The value is\ninclusive.", | |
570 "format": "google-datetime", | |
571 "type": "string" | |
572 }, | |
573 "createTime": { | |
574 "description": "The date/time when this report was created."
, | |
575 "format": "google-datetime", | |
576 "type": "string" | |
577 }, | |
578 "jobId": { | |
579 "description": "The ID of the job that created this report."
, | |
580 "type": "string" | 547 "type": "string" |
581 } | 548 } |
582 }, | 549 }, |
583 "type": "object" | 550 "type": "object" |
| 551 }, |
| 552 "Job": { |
| 553 "description": "A job creating reports of a specific type.", |
| 554 "id": "Job", |
| 555 "properties": { |
| 556 "createTime": { |
| 557 "description": "The creation date/time of the job.", |
| 558 "format": "google-datetime", |
| 559 "type": "string" |
| 560 }, |
| 561 "reportTypeId": { |
| 562 "description": "The type of reports this job creates. Corres
ponds to the ID of a\nReportType.", |
| 563 "type": "string" |
| 564 }, |
| 565 "expireTime": { |
| 566 "description": "The date/time when this job will expire/expi
red. After a job expired, no\nnew reports are generated.", |
| 567 "format": "google-datetime", |
| 568 "type": "string" |
| 569 }, |
| 570 "name": { |
| 571 "description": "The name of the job (max. 100 characters).", |
| 572 "type": "string" |
| 573 }, |
| 574 "id": { |
| 575 "description": "The server-generated ID of the job (max. 40
characters).", |
| 576 "type": "string" |
| 577 }, |
| 578 "systemManaged": { |
| 579 "description": "True if this a system-managed job that canno
t be modified by the user;\notherwise false.", |
| 580 "type": "boolean" |
| 581 } |
| 582 }, |
| 583 "type": "object" |
584 } | 584 } |
585 }, | 585 }, |
586 "servicePath": "", | 586 "servicePath": "", |
587 "title": "YouTube Reporting API", | 587 "title": "YouTube Reporting API", |
588 "version": "v1" | 588 "version": "v1" |
589 } | 589 } |
OLD | NEW |