You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1001 lines
32 KiB

  1. {
  2. "auth": {
  3. "oauth2": {
  4. "scopes": {
  5. "https://www.googleapis.com/auth/yt-analytics-monetary.readonly": {
  6. "description": "View monetary and non-monetary YouTube Analytics reports for your YouTube content"
  7. },
  8. "https://www.googleapis.com/auth/yt-analytics.readonly": {
  9. "description": "View YouTube Analytics reports for your YouTube content"
  10. }
  11. }
  12. }
  13. },
  14. "basePath": "",
  15. "baseUrl": "https://youtubereporting.googleapis.com/",
  16. "batchPath": "batch",
  17. "canonicalName": "YouTube Reporting",
  18. "description": "Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files.",
  19. "discoveryVersion": "v1",
  20. "documentationLink": "https://developers.google.com/youtube/reporting/v1/reports/",
  21. "icons": {
  22. "x16": "http://www.google.com/images/icons/product/search-16.gif",
  23. "x32": "http://www.google.com/images/icons/product/search-32.gif"
  24. },
  25. "id": "youtubereporting:v1",
  26. "kind": "discovery#restDescription",
  27. "name": "youtubereporting",
  28. "ownerDomain": "google.com",
  29. "ownerName": "Google",
  30. "parameters": {
  31. "$.xgafv": {
  32. "description": "V1 error format.",
  33. "enum": [
  34. "1",
  35. "2"
  36. ],
  37. "enumDescriptions": [
  38. "v1 error format",
  39. "v2 error format"
  40. ],
  41. "location": "query",
  42. "type": "string"
  43. },
  44. "access_token": {
  45. "description": "OAuth access token.",
  46. "location": "query",
  47. "type": "string"
  48. },
  49. "alt": {
  50. "default": "json",
  51. "description": "Data format for response.",
  52. "enum": [
  53. "json",
  54. "media",
  55. "proto"
  56. ],
  57. "enumDescriptions": [
  58. "Responses with Content-Type of application/json",
  59. "Media download with context-dependent Content-Type",
  60. "Responses with Content-Type of application/x-protobuf"
  61. ],
  62. "location": "query",
  63. "type": "string"
  64. },
  65. "callback": {
  66. "description": "JSONP",
  67. "location": "query",
  68. "type": "string"
  69. },
  70. "fields": {
  71. "description": "Selector specifying which fields to include in a partial response.",
  72. "location": "query",
  73. "type": "string"
  74. },
  75. "key": {
  76. "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
  77. "location": "query",
  78. "type": "string"
  79. },
  80. "oauth_token": {
  81. "description": "OAuth 2.0 token for the current user.",
  82. "location": "query",
  83. "type": "string"
  84. },
  85. "prettyPrint": {
  86. "default": "true",
  87. "description": "Returns response with indentations and line breaks.",
  88. "location": "query",
  89. "type": "boolean"
  90. },
  91. "quotaUser": {
  92. "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
  93. "location": "query",
  94. "type": "string"
  95. },
  96. "uploadType": {
  97. "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
  98. "location": "query",
  99. "type": "string"
  100. },
  101. "upload_protocol": {
  102. "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
  103. "location": "query",
  104. "type": "string"
  105. }
  106. },
  107. "protocol": "rest",
  108. "resources": {
  109. "jobs": {
  110. "methods": {
  111. "create": {
  112. "description": "Creates a job and returns it.",
  113. "flatPath": "v1/jobs",
  114. "httpMethod": "POST",
  115. "id": "youtubereporting.jobs.create",
  116. "parameterOrder": [],
  117. "parameters": {
  118. "onBehalfOfContentOwner": {
  119. "description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel).",
  120. "location": "query",
  121. "type": "string"
  122. }
  123. },
  124. "path": "v1/jobs",
  125. "request": {
  126. "$ref": "Job"
  127. },
  128. "response": {
  129. "$ref": "Job"
  130. },
  131. "scopes": [
  132. "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
  133. "https://www.googleapis.com/auth/yt-analytics.readonly"
  134. ]
  135. },
  136. "delete": {
  137. "description": "Deletes a job.",
  138. "flatPath": "v1/jobs/{jobId}",
  139. "httpMethod": "DELETE",
  140. "id": "youtubereporting.jobs.delete",
  141. "parameterOrder": [
  142. "jobId"
  143. ],
  144. "parameters": {
  145. "jobId": {
  146. "description": "The ID of the job to delete.",
  147. "location": "path",
  148. "required": true,
  149. "type": "string"
  150. },
  151. "onBehalfOfContentOwner": {
  152. "description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel).",
  153. "location": "query",
  154. "type": "string"
  155. }
  156. },
  157. "path": "v1/jobs/{jobId}",
  158. "response": {
  159. "$ref": "Empty"
  160. },
  161. "scopes": [
  162. "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
  163. "https://www.googleapis.com/auth/yt-analytics.readonly"
  164. ]
  165. },
  166. "get": {
  167. "description": "Gets a job.",
  168. "flatPath": "v1/jobs/{jobId}",
  169. "httpMethod": "GET",
  170. "id": "youtubereporting.jobs.get",
  171. "parameterOrder": [
  172. "jobId"
  173. ],
  174. "parameters": {
  175. "jobId": {
  176. "description": "The ID of the job to retrieve.",
  177. "location": "path",
  178. "required": true,
  179. "type": "string"
  180. },
  181. "onBehalfOfContentOwner": {
  182. "description": "The content owner's external ID on which 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. }
  186. },
  187. "path": "v1/jobs/{jobId}",
  188. "response": {
  189. "$ref": "Job"
  190. },
  191. "scopes": [
  192. "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
  193. "https://www.googleapis.com/auth/yt-analytics.readonly"
  194. ]
  195. },
  196. "list": {
  197. "description": "Lists jobs.",
  198. "flatPath": "v1/jobs",
  199. "httpMethod": "GET",
  200. "id": "youtubereporting.jobs.list",
  201. "parameterOrder": [],
  202. "parameters": {
  203. "includeSystemManaged": {
  204. "description": "If set to true, also system-managed jobs will be returned; otherwise only\nuser-created jobs will be returned. System-managed jobs can neither be\nmodified nor deleted.",
  205. "location": "query",
  206. "type": "boolean"
  207. },
  208. "onBehalfOfContentOwner": {
  209. "description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel).",
  210. "location": "query",
  211. "type": "string"
  212. },
  213. "pageSize": {
  214. "description": "Requested page size. Server may return fewer jobs than requested.\nIf unspecified, server will pick an appropriate default.",
  215. "format": "int32",
  216. "location": "query",
  217. "type": "integer"
  218. },
  219. "pageToken": {
  220. "description": "A token identifying a page of results the server should return. Typically,\nthis is the value of\nListReportTypesResponse.next_page_token\nreturned in response to the previous call to the `ListJobs` method.",
  221. "location": "query",
  222. "type": "string"
  223. }
  224. },
  225. "path": "v1/jobs",
  226. "response": {
  227. "$ref": "ListJobsResponse"
  228. },
  229. "scopes": [
  230. "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
  231. "https://www.googleapis.com/auth/yt-analytics.readonly"
  232. ]
  233. }
  234. },
  235. "resources": {
  236. "reports": {
  237. "methods": {
  238. "get": {
  239. "description": "Gets the metadata of a specific report.",
  240. "flatPath": "v1/jobs/{jobId}/reports/{reportId}",
  241. "httpMethod": "GET",
  242. "id": "youtubereporting.jobs.reports.get",
  243. "parameterOrder": [
  244. "jobId",
  245. "reportId"
  246. ],
  247. "parameters": {
  248. "jobId": {
  249. "description": "The ID of the job.",
  250. "location": "path",
  251. "required": true,
  252. "type": "string"
  253. },
  254. "onBehalfOfContentOwner": {
  255. "description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel).",
  256. "location": "query",
  257. "type": "string"
  258. },
  259. "reportId": {
  260. "description": "The ID of the report to retrieve.",
  261. "location": "path",
  262. "required": true,
  263. "type": "string"
  264. }
  265. },
  266. "path": "v1/jobs/{jobId}/reports/{reportId}",
  267. "response": {
  268. "$ref": "Report"
  269. },
  270. "scopes": [
  271. "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
  272. "https://www.googleapis.com/auth/yt-analytics.readonly"
  273. ]
  274. },
  275. "list": {
  276. "description": "Lists reports created by a specific job.\nReturns NOT_FOUND if the job does not exist.",
  277. "flatPath": "v1/jobs/{jobId}/reports",
  278. "httpMethod": "GET",
  279. "id": "youtubereporting.jobs.reports.list",
  280. "parameterOrder": [
  281. "jobId"
  282. ],
  283. "parameters": {
  284. "createdAfter": {
  285. "description": "If set, only reports created after the specified date/time are returned.",
  286. "format": "google-datetime",
  287. "location": "query",
  288. "type": "string"
  289. },
  290. "jobId": {
  291. "description": "The ID of the job.",
  292. "location": "path",
  293. "required": true,
  294. "type": "string"
  295. },
  296. "onBehalfOfContentOwner": {
  297. "description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel).",
  298. "location": "query",
  299. "type": "string"
  300. },
  301. "pageSize": {
  302. "description": "Requested page size. Server may return fewer report types than requested.\nIf unspecified, server will pick an appropriate default.",
  303. "format": "int32",
  304. "location": "query",
  305. "type": "integer"
  306. },
  307. "pageToken": {
  308. "description": "A token identifying a page of results the server should return. Typically,\nthis is the value of\nListReportsResponse.next_page_token\nreturned in response to the previous call to the `ListReports` method.",
  309. "location": "query",
  310. "type": "string"
  311. },
  312. "startTimeAtOrAfter": {
  313. "description": "If set, only reports whose start time is greater than or equal the\nspecified date/time are returned.",
  314. "format": "google-datetime",
  315. "location": "query",
  316. "type": "string"
  317. },
  318. "startTimeBefore": {
  319. "description": "If set, only reports whose start time is smaller than the specified\ndate/time are returned.",
  320. "format": "google-datetime",
  321. "location": "query",
  322. "type": "string"
  323. }
  324. },
  325. "path": "v1/jobs/{jobId}/reports",
  326. "response": {
  327. "$ref": "ListReportsResponse"
  328. },
  329. "scopes": [
  330. "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
  331. "https://www.googleapis.com/auth/yt-analytics.readonly"
  332. ]
  333. }
  334. }
  335. }
  336. }
  337. },
  338. "media": {
  339. "methods": {
  340. "download": {
  341. "description": "Method for media download. Download is supported\non the URI `/v1/media/{+name}?alt=media`.",
  342. "flatPath": "v1/media/{mediaId}",
  343. "httpMethod": "GET",
  344. "id": "youtubereporting.media.download",
  345. "parameterOrder": [
  346. "resourceName"
  347. ],
  348. "parameters": {
  349. "resourceName": {
  350. "description": "Name of the media that is being downloaded.",
  351. "location": "path",
  352. "pattern": "^.+$",
  353. "required": true,
  354. "type": "string"
  355. }
  356. },
  357. "path": "v1/media/{+resourceName}",
  358. "response": {
  359. "$ref": "GdataMedia"
  360. },
  361. "scopes": [
  362. "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
  363. "https://www.googleapis.com/auth/yt-analytics.readonly"
  364. ],
  365. "supportsMediaDownload": true,
  366. "useMediaDownloadService": true
  367. }
  368. }
  369. },
  370. "reportTypes": {
  371. "methods": {
  372. "list": {
  373. "description": "Lists report types.",
  374. "flatPath": "v1/reportTypes",
  375. "httpMethod": "GET",
  376. "id": "youtubereporting.reportTypes.list",
  377. "parameterOrder": [],
  378. "parameters": {
  379. "includeSystemManaged": {
  380. "description": "If set to true, also system-managed report types will be returned;\notherwise only the report types that can be used to create new reporting\njobs will be returned.",
  381. "location": "query",
  382. "type": "boolean"
  383. },
  384. "onBehalfOfContentOwner": {
  385. "description": "The content owner's external ID on which behalf the user is acting on. If\nnot set, the user is acting for himself (his own channel).",
  386. "location": "query",
  387. "type": "string"
  388. },
  389. "pageSize": {
  390. "description": "Requested page size. Server may return fewer report types than requested.\nIf unspecified, server will pick an appropriate default.",
  391. "format": "int32",
  392. "location": "query",
  393. "type": "integer"
  394. },
  395. "pageToken": {
  396. "description": "A token identifying a page of results the server should return. Typically,\nthis is the value of\nListReportTypesResponse.next_page_token\nreturned in response to the previous call to the `ListReportTypes` method.",
  397. "location": "query",
  398. "type": "string"
  399. }
  400. },
  401. "path": "v1/reportTypes",
  402. "response": {
  403. "$ref": "ListReportTypesResponse"
  404. },
  405. "scopes": [
  406. "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
  407. "https://www.googleapis.com/auth/yt-analytics.readonly"
  408. ]
  409. }
  410. }
  411. }
  412. },
  413. "revision": "20190227",
  414. "rootUrl": "https://youtubereporting.googleapis.com/",
  415. "schemas": {
  416. "Empty": {
  417. "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 it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
  418. "id": "Empty",
  419. "properties": {},
  420. "type": "object"
  421. },
  422. "GdataBlobstore2Info": {
  423. "description": "gdata",
  424. "id": "GdataBlobstore2Info",
  425. "properties": {
  426. "blobGeneration": {
  427. "description": "gdata",
  428. "format": "int64",
  429. "type": "string"
  430. },
  431. "blobId": {
  432. "description": "gdata",
  433. "type": "string"
  434. },
  435. "downloadReadHandle": {
  436. "description": "gdata",
  437. "format": "byte",
  438. "type": "string"
  439. },
  440. "readToken": {
  441. "description": "gdata",
  442. "type": "string"
  443. },
  444. "uploadMetadataContainer": {
  445. "description": "gdata",
  446. "format": "byte",
  447. "type": "string"
  448. }
  449. },
  450. "type": "object"
  451. },
  452. "GdataCompositeMedia": {
  453. "description": "gdata",
  454. "id": "GdataCompositeMedia",
  455. "properties": {
  456. "blobRef": {
  457. "description": "gdata",
  458. "format": "byte",
  459. "type": "string"
  460. },
  461. "blobstore2Info": {
  462. "$ref": "GdataBlobstore2Info",
  463. "description": "gdata"
  464. },
  465. "cosmoBinaryReference": {
  466. "description": "gdata",
  467. "format": "byte",
  468. "type": "string"
  469. },
  470. "crc32cHash": {
  471. "description": "gdata",
  472. "format": "uint32",
  473. "type": "integer"
  474. },
  475. "inline": {
  476. "description": "gdata",
  477. "format": "byte",
  478. "type": "string"
  479. },
  480. "length": {
  481. "description": "gdata",
  482. "format": "int64",
  483. "type": "string"
  484. },
  485. "md5Hash": {
  486. "description": "gdata",
  487. "format": "byte",
  488. "type": "string"
  489. },
  490. "objectId": {
  491. "$ref": "GdataObjectId",
  492. "description": "gdata"
  493. },
  494. "path": {
  495. "description": "gdata",
  496. "type": "string"
  497. },
  498. "referenceType": {
  499. "description": "gdata",
  500. "enum": [
  501. "PATH",
  502. "BLOB_REF",
  503. "INLINE",
  504. "BIGSTORE_REF",
  505. "COSMO_BINARY_REFERENCE"
  506. ],
  507. "enumDescriptions": [
  508. "gdata",
  509. "gdata",
  510. "gdata",
  511. "gdata",
  512. "gdata"
  513. ],
  514. "type": "string"
  515. },
  516. "sha1Hash": {
  517. "description": "gdata",
  518. "format": "byte",
  519. "type": "string"
  520. }
  521. },
  522. "type": "object"
  523. },
  524. "GdataContentTypeInfo": {
  525. "description": "gdata",
  526. "id": "GdataContentTypeInfo",
  527. "properties": {
  528. "bestGuess": {
  529. "description": "gdata",
  530. "type": "string"
  531. },
  532. "fromBytes": {
  533. "description": "gdata",
  534. "type": "string"
  535. },
  536. "fromFileName": {
  537. "description": "gdata",
  538. "type": "string"
  539. },
  540. "fromHeader": {
  541. "description": "gdata",
  542. "type": "string"
  543. },
  544. "fromUrlPath": {
  545. "description": "gdata",
  546. "type": "string"
  547. }
  548. },
  549. "type": "object"
  550. },
  551. "GdataDiffChecksumsResponse": {
  552. "description": "gdata",
  553. "id": "GdataDiffChecksumsResponse",
  554. "properties": {
  555. "checksumsLocation": {
  556. "$ref": "GdataCompositeMedia",
  557. "description": "gdata"
  558. },
  559. "chunkSizeBytes": {
  560. "description": "gdata",
  561. "format": "int64",
  562. "type": "string"
  563. },
  564. "objectLocation": {
  565. "$ref": "GdataCompositeMedia",
  566. "description": "gdata"
  567. },
  568. "objectSizeBytes": {
  569. "description": "gdata",
  570. "format": "int64",
  571. "type": "string"
  572. },
  573. "objectVersion": {
  574. "description": "gdata",
  575. "type": "string"
  576. }
  577. },
  578. "type": "object"
  579. },
  580. "GdataDiffDownloadResponse": {
  581. "description": "gdata",
  582. "id": "GdataDiffDownloadResponse",
  583. "properties": {
  584. "objectLocation": {
  585. "$ref": "GdataCompositeMedia",
  586. "description": "gdata"
  587. }
  588. },
  589. "type": "object"
  590. },
  591. "GdataDiffUploadRequest": {
  592. "description": "gdata",
  593. "id": "GdataDiffUploadRequest",
  594. "properties": {
  595. "checksumsInfo": {
  596. "$ref": "GdataCompositeMedia",
  597. "description": "gdata"
  598. },
  599. "objectInfo": {
  600. "$ref": "GdataCompositeMedia",
  601. "description": "gdata"
  602. },
  603. "objectVersion": {
  604. "description": "gdata",
  605. "type": "string"
  606. }
  607. },
  608. "type": "object"
  609. },
  610. "GdataDiffUploadResponse": {
  611. "description": "gdata",
  612. "id": "GdataDiffUploadResponse",
  613. "properties": {
  614. "objectVersion": {
  615. "description": "gdata",
  616. "type": "string"
  617. },
  618. "originalObject": {
  619. "$ref": "GdataCompositeMedia",
  620. "description": "gdata"
  621. }
  622. },
  623. "type": "object"
  624. },
  625. "GdataDiffVersionResponse": {
  626. "description": "gdata",
  627. "id": "GdataDiffVersionResponse",
  628. "properties": {
  629. "objectSizeBytes": {
  630. "description": "gdata",
  631. "format": "int64",
  632. "type": "string"
  633. },
  634. "objectVersion": {
  635. "description": "gdata",
  636. "type": "string"
  637. }
  638. },
  639. "type": "object"
  640. },
  641. "GdataDownloadParameters": {
  642. "description": "gdata",
  643. "id": "GdataDownloadParameters",
  644. "properties": {
  645. "allowGzipCompression": {
  646. "description": "gdata",
  647. "type": "boolean"
  648. },
  649. "ignoreRange": {
  650. "description": "gdata",
  651. "type": "boolean"
  652. }
  653. },
  654. "type": "object"
  655. },
  656. "GdataMedia": {
  657. "description": "gdata",
  658. "id": "GdataMedia",
  659. "properties": {
  660. "algorithm": {
  661. "description": "gdata",
  662. "type": "string"
  663. },
  664. "bigstoreObjectRef": {
  665. "description": "gdata",
  666. "format": "byte",
  667. "type": "string"
  668. },
  669. "blobRef": {
  670. "description": "gdata",
  671. "format": "byte",
  672. "type": "string"
  673. },
  674. "blobstore2Info": {
  675. "$ref": "GdataBlobstore2Info",
  676. "description": "gdata"
  677. },
  678. "compositeMedia": {
  679. "description": "gdata",
  680. "items": {
  681. "$ref": "GdataCompositeMedia"
  682. },
  683. "type": "array"
  684. },
  685. "contentType": {
  686. "description": "gdata",
  687. "type": "string"
  688. },
  689. "contentTypeInfo": {
  690. "$ref": "GdataContentTypeInfo",
  691. "description": "gdata"
  692. },
  693. "cosmoBinaryReference": {
  694. "description": "gdata",
  695. "format": "byte",
  696. "type": "string"
  697. },
  698. "crc32cHash": {
  699. "description": "gdata",
  700. "format": "uint32",
  701. "type": "integer"
  702. },
  703. "diffChecksumsResponse": {
  704. "$ref": "GdataDiffChecksumsResponse",
  705. "description": "gdata"
  706. },
  707. "diffDownloadResponse": {
  708. "$ref": "GdataDiffDownloadResponse",
  709. "description": "gdata"
  710. },
  711. "diffUploadRequest": {
  712. "$ref": "GdataDiffUploadRequest",
  713. "description": "gdata"
  714. },
  715. "diffUploadResponse": {
  716. "$ref": "GdataDiffUploadResponse",
  717. "description": "gdata"
  718. },
  719. "diffVersionResponse": {
  720. "$ref": "GdataDiffVersionResponse",
  721. "description": "gdata"
  722. },
  723. "downloadParameters": {
  724. "$ref": "GdataDownloadParameters",
  725. "description": "gdata"
  726. },
  727. "filename": {
  728. "description": "gdata",
  729. "type": "string"
  730. },
  731. "hash": {
  732. "description": "gdata",
  733. "type": "string"
  734. },
  735. "hashVerified": {
  736. "description": "gdata",
  737. "type": "boolean"
  738. },
  739. "inline": {
  740. "description": "gdata",
  741. "format": "byte",
  742. "type": "string"
  743. },
  744. "isPotentialRetry": {
  745. "description": "gdata",
  746. "type": "boolean"
  747. },
  748. "length": {
  749. "description": "gdata",
  750. "format": "int64",
  751. "type": "string"
  752. },
  753. "md5Hash": {
  754. "description": "gdata",
  755. "format": "byte",
  756. "type": "string"
  757. },
  758. "mediaId": {
  759. "description": "gdata",
  760. "format": "byte",
  761. "type": "string"
  762. },
  763. "objectId": {
  764. "$ref": "GdataObjectId",
  765. "description": "gdata"
  766. },
  767. "path": {
  768. "description": "gdata",
  769. "type": "string"
  770. },
  771. "referenceType": {
  772. "description": "gdata",
  773. "enum": [
  774. "PATH",
  775. "BLOB_REF",
  776. "INLINE",
  777. "GET_MEDIA",
  778. "COMPOSITE_MEDIA",
  779. "BIGSTORE_REF",
  780. "DIFF_VERSION_RESPONSE",
  781. "DIFF_CHECKSUMS_RESPONSE",
  782. "DIFF_DOWNLOAD_RESPONSE",
  783. "DIFF_UPLOAD_REQUEST",
  784. "DIFF_UPLOAD_RESPONSE",
  785. "COSMO_BINARY_REFERENCE",
  786. "ARBITRARY_BYTES"
  787. ],
  788. "enumDescriptions": [
  789. "gdata",
  790. "gdata",
  791. "gdata",
  792. "gdata",
  793. "gdata",
  794. "gdata",
  795. "gdata",
  796. "gdata",
  797. "gdata",
  798. "gdata",
  799. "gdata",
  800. "gdata",
  801. "gdata"
  802. ],
  803. "type": "string"
  804. },
  805. "sha1Hash": {
  806. "description": "gdata",
  807. "format": "byte",
  808. "type": "string"
  809. },
  810. "sha256Hash": {
  811. "description": "gdata",
  812. "format": "byte",
  813. "type": "string"
  814. },
  815. "timestamp": {
  816. "description": "gdata",
  817. "format": "uint64",
  818. "type": "string"
  819. },
  820. "token": {
  821. "description": "gdata",
  822. "type": "string"
  823. }
  824. },
  825. "type": "object"
  826. },
  827. "GdataObjectId": {
  828. "description": "gdata",
  829. "id": "GdataObjectId",
  830. "properties": {
  831. "bucketName": {
  832. "description": "gdata",
  833. "type": "string"
  834. },
  835. "generation": {
  836. "description": "gdata",
  837. "format": "int64",
  838. "type": "string"
  839. },
  840. "objectName": {
  841. "description": "gdata",
  842. "type": "string"
  843. }
  844. },
  845. "type": "object"
  846. },
  847. "Job": {
  848. "description": "A job creating reports of a specific type.",
  849. "id": "Job",
  850. "properties": {
  851. "createTime": {
  852. "description": "The creation date/time of the job.",
  853. "format": "google-datetime",
  854. "type": "string"
  855. },
  856. "expireTime": {
  857. "description": "The date/time when this job will expire/expired. After a job expired, no\nnew reports are generated.",
  858. "format": "google-datetime",
  859. "type": "string"
  860. },
  861. "id": {
  862. "description": "The server-generated ID of the job (max. 40 characters).",
  863. "type": "string"
  864. },
  865. "name": {
  866. "description": "The name of the job (max. 100 characters).",
  867. "type": "string"
  868. },
  869. "reportTypeId": {
  870. "description": "The type of reports this job creates. Corresponds to the ID of a\nReportType.",
  871. "type": "string"
  872. },
  873. "systemManaged": {
  874. "description": "True if this a system-managed job that cannot be modified by the user;\notherwise false.",
  875. "type": "boolean"
  876. }
  877. },
  878. "type": "object"
  879. },
  880. "ListJobsResponse": {
  881. "description": "Response message for ReportingService.ListJobs.",
  882. "id": "ListJobsResponse",
  883. "properties": {
  884. "jobs": {
  885. "description": "The list of jobs.",
  886. "items": {
  887. "$ref": "Job"
  888. },
  889. "type": "array"
  890. },
  891. "nextPageToken": {
  892. "description": "A token to retrieve next page of results.\nPass this value in the\nListJobsRequest.page_token\nfield in the subsequent call to `ListJobs` method to retrieve the next\npage of results.",
  893. "type": "string"
  894. }
  895. },
  896. "type": "object"
  897. },
  898. "ListReportTypesResponse": {
  899. "description": "Response message for ReportingService.ListReportTypes.",
  900. "id": "ListReportTypesResponse",
  901. "properties": {
  902. "nextPageToken": {
  903. "description": "A token to retrieve next page of results.\nPass this value in the\nListReportTypesRequest.page_token\nfield in the subsequent call to `ListReportTypes` method to retrieve the next\npage of results.",
  904. "type": "string"
  905. },
  906. "reportTypes": {
  907. "description": "The list of report types.",
  908. "items": {
  909. "$ref": "ReportType"
  910. },
  911. "type": "array"
  912. }
  913. },
  914. "type": "object"
  915. },
  916. "ListReportsResponse": {
  917. "description": "Response message for ReportingService.ListReports.",
  918. "id": "ListReportsResponse",
  919. "properties": {
  920. "nextPageToken": {
  921. "description": "A token to retrieve next page of results.\nPass this value in the\nListReportsRequest.page_token\nfield in the subsequent call to `ListReports` method to retrieve the next\npage of results.",
  922. "type": "string"
  923. },
  924. "reports": {
  925. "description": "The list of report types.",
  926. "items": {
  927. "$ref": "Report"
  928. },
  929. "type": "array"
  930. }
  931. },
  932. "type": "object"
  933. },
  934. "Report": {
  935. "description": "A report's metadata including the URL from which the report itself can be\ndownloaded.",
  936. "id": "Report",
  937. "properties": {
  938. "createTime": {
  939. "description": "The date/time when this report was created.",
  940. "format": "google-datetime",
  941. "type": "string"
  942. },
  943. "downloadUrl": {
  944. "description": "The URL from which the report can be downloaded (max. 1000 characters).",
  945. "type": "string"
  946. },
  947. "endTime": {
  948. "description": "The end of the time period that the report instance covers. The value is\nexclusive.",
  949. "format": "google-datetime",
  950. "type": "string"
  951. },
  952. "id": {
  953. "description": "The server-generated ID of the report.",
  954. "type": "string"
  955. },
  956. "jobExpireTime": {
  957. "description": "The date/time when the job this report belongs to will expire/expired.",
  958. "format": "google-datetime",
  959. "type": "string"
  960. },
  961. "jobId": {
  962. "description": "The ID of the job that created this report.",
  963. "type": "string"
  964. },
  965. "startTime": {
  966. "description": "The start of the time period that the report instance covers. The value is\ninclusive.",
  967. "format": "google-datetime",
  968. "type": "string"
  969. }
  970. },
  971. "type": "object"
  972. },
  973. "ReportType": {
  974. "description": "A report type.",
  975. "id": "ReportType",
  976. "properties": {
  977. "deprecateTime": {
  978. "description": "The date/time when this report type was/will be deprecated.",
  979. "format": "google-datetime",
  980. "type": "string"
  981. },
  982. "id": {
  983. "description": "The ID of the report type (max. 100 characters).",
  984. "type": "string"
  985. },
  986. "name": {
  987. "description": "The name of the report type (max. 100 characters).",
  988. "type": "string"
  989. },
  990. "systemManaged": {
  991. "description": "True if this a system-managed report type; otherwise false. Reporting jobs\nfor system-managed report types are created automatically and can thus not\nbe used in the `CreateJob` method.",
  992. "type": "boolean"
  993. }
  994. },
  995. "type": "object"
  996. }
  997. },
  998. "servicePath": "",
  999. "title": "YouTube Reporting API",
  1000. "version": "v1"
  1001. }