lemboy-google-api-client 0.9.26

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.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,37 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/youtube_partner_v1/service.rb'
16
+ require 'google/apis/youtube_partner_v1/classes.rb'
17
+ require 'google/apis/youtube_partner_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Youtube Content ID API
22
+ #
23
+ # API for YouTube partners. To use this API YouTube CMS account is required.
24
+ #
25
+ # @see https://developers.google.com/youtube/partner/
26
+ module YoutubePartnerV1
27
+ VERSION = 'V1'
28
+ REVISION = '20170124'
29
+
30
+ # View and manage your assets and associated content on YouTube
31
+ AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
32
+
33
+ # View content owner account details from YouTube.
34
+ AUTH_YOUTUBEPARTNER_CONTENT_OWNER_READONLY = 'https://www.googleapis.com/auth/youtubepartner-content-owner-readonly'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,3854 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module YoutubePartnerV1
24
+
25
+ #
26
+ class AdBreak
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The time of the ad break specified as the number of seconds after the start of
30
+ # the video when the break occurs.
31
+ # Corresponds to the JSON property `midrollSeconds`
32
+ # @return [Fixnum]
33
+ attr_accessor :midroll_seconds
34
+
35
+ # The point at which the break occurs during the video playback.
36
+ # Corresponds to the JSON property `position`
37
+ # @return [String]
38
+ attr_accessor :position
39
+
40
+ # A list of ad slots that occur in an ad break. Ad slots let you specify the
41
+ # number of ads that should run in each break.
42
+ # Corresponds to the JSON property `slot`
43
+ # @return [Array<Google::Apis::YoutubePartnerV1::AdSlot>]
44
+ attr_accessor :slot
45
+
46
+ def initialize(**args)
47
+ update!(**args)
48
+ end
49
+
50
+ # Update properties of this object
51
+ def update!(**args)
52
+ @midroll_seconds = args[:midroll_seconds] if args.key?(:midroll_seconds)
53
+ @position = args[:position] if args.key?(:position)
54
+ @slot = args[:slot] if args.key?(:slot)
55
+ end
56
+ end
57
+
58
+ #
59
+ class AdSlot
60
+ include Google::Apis::Core::Hashable
61
+
62
+ # A value that identifies the ad slot to the ad server.
63
+ # Corresponds to the JSON property `id`
64
+ # @return [String]
65
+ attr_accessor :id
66
+
67
+ # The type of ad that runs in the slot. The value may affect YouTube's fallback
68
+ # behavior if the third-party platform does not return ads.
69
+ # Corresponds to the JSON property `type`
70
+ # @return [String]
71
+ attr_accessor :type
72
+
73
+ def initialize(**args)
74
+ update!(**args)
75
+ end
76
+
77
+ # Update properties of this object
78
+ def update!(**args)
79
+ @id = args[:id] if args.key?(:id)
80
+ @type = args[:type] if args.key?(:type)
81
+ end
82
+ end
83
+
84
+ #
85
+ class AllowedAdvertisingOptions
86
+ include Google::Apis::Core::Hashable
87
+
88
+ # This setting indicates whether the partner can display ads when videos run in
89
+ # an embedded player.
90
+ # Corresponds to the JSON property `adsOnEmbeds`
91
+ # @return [Boolean]
92
+ attr_accessor :ads_on_embeds
93
+ alias_method :ads_on_embeds?, :ads_on_embeds
94
+
95
+ # This property identifies the resource type. Its value is youtubePartner#
96
+ # allowedAdvertisingOptions.
97
+ # Corresponds to the JSON property `kind`
98
+ # @return [String]
99
+ attr_accessor :kind
100
+
101
+ # A list of ad formats that the partner is allowed to use for its uploaded
102
+ # videos.
103
+ # Corresponds to the JSON property `licAdFormats`
104
+ # @return [Array<String>]
105
+ attr_accessor :lic_ad_formats
106
+
107
+ # A list of ad formats that the partner is allowed to use for claimed, user-
108
+ # uploaded content.
109
+ # Corresponds to the JSON property `ugcAdFormats`
110
+ # @return [Array<String>]
111
+ attr_accessor :ugc_ad_formats
112
+
113
+ def initialize(**args)
114
+ update!(**args)
115
+ end
116
+
117
+ # Update properties of this object
118
+ def update!(**args)
119
+ @ads_on_embeds = args[:ads_on_embeds] if args.key?(:ads_on_embeds)
120
+ @kind = args[:kind] if args.key?(:kind)
121
+ @lic_ad_formats = args[:lic_ad_formats] if args.key?(:lic_ad_formats)
122
+ @ugc_ad_formats = args[:ugc_ad_formats] if args.key?(:ugc_ad_formats)
123
+ end
124
+ end
125
+
126
+ #
127
+ class Asset
128
+ include Google::Apis::Core::Hashable
129
+
130
+ # A list of asset IDs that can be used to refer to the asset. The list contains
131
+ # values if the asset represents multiple constituent assets that have been
132
+ # merged. In that case, any of the asset IDs originally assigned to the
133
+ # constituent assets could be used to update the master, or synthesized, asset.
134
+ # Corresponds to the JSON property `aliasId`
135
+ # @return [Array<String>]
136
+ attr_accessor :alias_id
137
+
138
+ # An ID that YouTube assigns and uses to uniquely identify the asset.
139
+ # Corresponds to the JSON property `id`
140
+ # @return [String]
141
+ attr_accessor :id
142
+
143
+ # The type of the API resource. For asset resources, the value is youtubePartner#
144
+ # asset.
145
+ # Corresponds to the JSON property `kind`
146
+ # @return [String]
147
+ attr_accessor :kind
148
+
149
+ # A list of asset labels on the asset.
150
+ # Corresponds to the JSON property `label`
151
+ # @return [Array<String>]
152
+ attr_accessor :label
153
+
154
+ # The matchPolicy object contains information about the asset's match policy,
155
+ # which YouTube applies to user-uploaded videos that match the asset.
156
+ # Corresponds to the JSON property `matchPolicy`
157
+ # @return [Google::Apis::YoutubePartnerV1::AssetMatchPolicy]
158
+ attr_accessor :match_policy
159
+
160
+ #
161
+ # Corresponds to the JSON property `matchPolicyEffective`
162
+ # @return [Google::Apis::YoutubePartnerV1::AssetMatchPolicy]
163
+ attr_accessor :match_policy_effective
164
+
165
+ #
166
+ # Corresponds to the JSON property `matchPolicyMine`
167
+ # @return [Google::Apis::YoutubePartnerV1::AssetMatchPolicy]
168
+ attr_accessor :match_policy_mine
169
+
170
+ # The metadata object contains information that identifies and describes the
171
+ # asset. This information could be used to search for the asset or to eliminate
172
+ # duplication within YouTube's database.
173
+ # Corresponds to the JSON property `metadata`
174
+ # @return [Google::Apis::YoutubePartnerV1::Metadata]
175
+ attr_accessor :metadata
176
+
177
+ #
178
+ # Corresponds to the JSON property `metadataEffective`
179
+ # @return [Google::Apis::YoutubePartnerV1::Metadata]
180
+ attr_accessor :metadata_effective
181
+
182
+ #
183
+ # Corresponds to the JSON property `metadataMine`
184
+ # @return [Google::Apis::YoutubePartnerV1::Metadata]
185
+ attr_accessor :metadata_mine
186
+
187
+ # The ownership object identifies an asset's owners and provides additional
188
+ # details about their ownership, such as the territories where they own the
189
+ # asset.
190
+ # Corresponds to the JSON property `ownership`
191
+ # @return [Google::Apis::YoutubePartnerV1::RightsOwnership]
192
+ attr_accessor :ownership
193
+
194
+ # The ownershipConflicts object contains information about the asset's ownership
195
+ # conflicts.
196
+ # Corresponds to the JSON property `ownershipConflicts`
197
+ # @return [Google::Apis::YoutubePartnerV1::OwnershipConflicts]
198
+ attr_accessor :ownership_conflicts
199
+
200
+ #
201
+ # Corresponds to the JSON property `ownershipEffective`
202
+ # @return [Google::Apis::YoutubePartnerV1::RightsOwnership]
203
+ attr_accessor :ownership_effective
204
+
205
+ #
206
+ # Corresponds to the JSON property `ownershipMine`
207
+ # @return [Google::Apis::YoutubePartnerV1::RightsOwnership]
208
+ attr_accessor :ownership_mine
209
+
210
+ # The asset's status.
211
+ # Corresponds to the JSON property `status`
212
+ # @return [String]
213
+ attr_accessor :status
214
+
215
+ # The date and time the asset was created. The value is specified in RFC 3339 (
216
+ # YYYY-MM-DDThh:mm:ss.000Z) format.
217
+ # Corresponds to the JSON property `timeCreated`
218
+ # @return [DateTime]
219
+ attr_accessor :time_created
220
+
221
+ # The asset's type. This value determines the metadata fields that you can set
222
+ # for the asset. In addition, certain API functions may only be supported for
223
+ # specific types of assets. For example, composition assets may have more
224
+ # complex ownership data than other types of assets.
225
+ # Corresponds to the JSON property `type`
226
+ # @return [String]
227
+ attr_accessor :type
228
+
229
+ def initialize(**args)
230
+ update!(**args)
231
+ end
232
+
233
+ # Update properties of this object
234
+ def update!(**args)
235
+ @alias_id = args[:alias_id] if args.key?(:alias_id)
236
+ @id = args[:id] if args.key?(:id)
237
+ @kind = args[:kind] if args.key?(:kind)
238
+ @label = args[:label] if args.key?(:label)
239
+ @match_policy = args[:match_policy] if args.key?(:match_policy)
240
+ @match_policy_effective = args[:match_policy_effective] if args.key?(:match_policy_effective)
241
+ @match_policy_mine = args[:match_policy_mine] if args.key?(:match_policy_mine)
242
+ @metadata = args[:metadata] if args.key?(:metadata)
243
+ @metadata_effective = args[:metadata_effective] if args.key?(:metadata_effective)
244
+ @metadata_mine = args[:metadata_mine] if args.key?(:metadata_mine)
245
+ @ownership = args[:ownership] if args.key?(:ownership)
246
+ @ownership_conflicts = args[:ownership_conflicts] if args.key?(:ownership_conflicts)
247
+ @ownership_effective = args[:ownership_effective] if args.key?(:ownership_effective)
248
+ @ownership_mine = args[:ownership_mine] if args.key?(:ownership_mine)
249
+ @status = args[:status] if args.key?(:status)
250
+ @time_created = args[:time_created] if args.key?(:time_created)
251
+ @type = args[:type] if args.key?(:type)
252
+ end
253
+ end
254
+
255
+ #
256
+ class AssetLabel
257
+ include Google::Apis::Core::Hashable
258
+
259
+ # The type of the API resource. For assetLabel resources, this value is
260
+ # youtubePartner#assetLabel.
261
+ # Corresponds to the JSON property `kind`
262
+ # @return [String]
263
+ attr_accessor :kind
264
+
265
+ # Name of the asset label.
266
+ # Corresponds to the JSON property `labelName`
267
+ # @return [String]
268
+ attr_accessor :label_name
269
+
270
+ def initialize(**args)
271
+ update!(**args)
272
+ end
273
+
274
+ # Update properties of this object
275
+ def update!(**args)
276
+ @kind = args[:kind] if args.key?(:kind)
277
+ @label_name = args[:label_name] if args.key?(:label_name)
278
+ end
279
+ end
280
+
281
+ #
282
+ class AssetLabelListResponse
283
+ include Google::Apis::Core::Hashable
284
+
285
+ # A list of assetLabel resources that match the request criteria.
286
+ # Corresponds to the JSON property `items`
287
+ # @return [Array<Google::Apis::YoutubePartnerV1::AssetLabel>]
288
+ attr_accessor :items
289
+
290
+ # The type of the API response. For this operation, the value is youtubePartner#
291
+ # assetLabelList.
292
+ # Corresponds to the JSON property `kind`
293
+ # @return [String]
294
+ attr_accessor :kind
295
+
296
+ def initialize(**args)
297
+ update!(**args)
298
+ end
299
+
300
+ # Update properties of this object
301
+ def update!(**args)
302
+ @items = args[:items] if args.key?(:items)
303
+ @kind = args[:kind] if args.key?(:kind)
304
+ end
305
+ end
306
+
307
+ #
308
+ class AssetListResponse
309
+ include Google::Apis::Core::Hashable
310
+
311
+ # A list of asset resources that match the request criteria.
312
+ # Corresponds to the JSON property `items`
313
+ # @return [Array<Google::Apis::YoutubePartnerV1::Asset>]
314
+ attr_accessor :items
315
+
316
+ # The type of the API response. For this operation, the value is youtubePartner#
317
+ # assetList.
318
+ # Corresponds to the JSON property `kind`
319
+ # @return [String]
320
+ attr_accessor :kind
321
+
322
+ def initialize(**args)
323
+ update!(**args)
324
+ end
325
+
326
+ # Update properties of this object
327
+ def update!(**args)
328
+ @items = args[:items] if args.key?(:items)
329
+ @kind = args[:kind] if args.key?(:kind)
330
+ end
331
+ end
332
+
333
+ #
334
+ class AssetMatchPolicy
335
+ include Google::Apis::Core::Hashable
336
+
337
+ # The type of the API resource. Value: youtubePartner#assetMatchPolicy.
338
+ # Corresponds to the JSON property `kind`
339
+ # @return [String]
340
+ attr_accessor :kind
341
+
342
+ # A value that uniquely identifies the Policy resource that YouTube applies to
343
+ # user-uploaded videos that match the asset.
344
+ # Corresponds to the JSON property `policyId`
345
+ # @return [String]
346
+ attr_accessor :policy_id
347
+
348
+ # A list of rules that collectively define the policy that the content owner
349
+ # wants to apply to user-uploaded videos that match the asset. Each rule
350
+ # specifies the action that YouTube should take and may optionally specify the
351
+ # conditions under which that action is enforced.
352
+ # Corresponds to the JSON property `rules`
353
+ # @return [Array<Google::Apis::YoutubePartnerV1::PolicyRule>]
354
+ attr_accessor :rules
355
+
356
+ def initialize(**args)
357
+ update!(**args)
358
+ end
359
+
360
+ # Update properties of this object
361
+ def update!(**args)
362
+ @kind = args[:kind] if args.key?(:kind)
363
+ @policy_id = args[:policy_id] if args.key?(:policy_id)
364
+ @rules = args[:rules] if args.key?(:rules)
365
+ end
366
+ end
367
+
368
+ #
369
+ class AssetRelationship
370
+ include Google::Apis::Core::Hashable
371
+
372
+ # The ID of the child (contained) asset.
373
+ # Corresponds to the JSON property `childAssetId`
374
+ # @return [String]
375
+ attr_accessor :child_asset_id
376
+
377
+ # A value that YouTube assigns and uses to uniquely identify the asset
378
+ # relationship.
379
+ # Corresponds to the JSON property `id`
380
+ # @return [String]
381
+ attr_accessor :id
382
+
383
+ # The type of the API resource. For this resource, the value is youtubePartner#
384
+ # assetRelationship.
385
+ # Corresponds to the JSON property `kind`
386
+ # @return [String]
387
+ attr_accessor :kind
388
+
389
+ # The ID of the parent (containing) asset.
390
+ # Corresponds to the JSON property `parentAssetId`
391
+ # @return [String]
392
+ attr_accessor :parent_asset_id
393
+
394
+ def initialize(**args)
395
+ update!(**args)
396
+ end
397
+
398
+ # Update properties of this object
399
+ def update!(**args)
400
+ @child_asset_id = args[:child_asset_id] if args.key?(:child_asset_id)
401
+ @id = args[:id] if args.key?(:id)
402
+ @kind = args[:kind] if args.key?(:kind)
403
+ @parent_asset_id = args[:parent_asset_id] if args.key?(:parent_asset_id)
404
+ end
405
+ end
406
+
407
+ #
408
+ class AssetRelationshipListResponse
409
+ include Google::Apis::Core::Hashable
410
+
411
+ # A list of assetRelationship resources that match the request criteria.
412
+ # Corresponds to the JSON property `items`
413
+ # @return [Array<Google::Apis::YoutubePartnerV1::AssetRelationship>]
414
+ attr_accessor :items
415
+
416
+ # The type of the API response. For this operation, the value is youtubePartner#
417
+ # assetRelationshipList.
418
+ # Corresponds to the JSON property `kind`
419
+ # @return [String]
420
+ attr_accessor :kind
421
+
422
+ # The token that can be used as the value of the pageToken parameter to retrieve
423
+ # the next page of results.
424
+ # Corresponds to the JSON property `nextPageToken`
425
+ # @return [String]
426
+ attr_accessor :next_page_token
427
+
428
+ # The pageInfo object encapsulates paging information for the result set.
429
+ # Corresponds to the JSON property `pageInfo`
430
+ # @return [Google::Apis::YoutubePartnerV1::PageInfo]
431
+ attr_accessor :page_info
432
+
433
+ def initialize(**args)
434
+ update!(**args)
435
+ end
436
+
437
+ # Update properties of this object
438
+ def update!(**args)
439
+ @items = args[:items] if args.key?(:items)
440
+ @kind = args[:kind] if args.key?(:kind)
441
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
442
+ @page_info = args[:page_info] if args.key?(:page_info)
443
+ end
444
+ end
445
+
446
+ #
447
+ class AssetSearchResponse
448
+ include Google::Apis::Core::Hashable
449
+
450
+ # A list of asset resources that match the request criteria.
451
+ # Corresponds to the JSON property `items`
452
+ # @return [Array<Google::Apis::YoutubePartnerV1::AssetSnippet>]
453
+ attr_accessor :items
454
+
455
+ # The type of the API response. For this operation, the value is youtubePartner#
456
+ # assetSnippetList.
457
+ # Corresponds to the JSON property `kind`
458
+ # @return [String]
459
+ attr_accessor :kind
460
+
461
+ # The token that can be used as the value of the pageToken parameter to retrieve
462
+ # the next page of results.
463
+ # Corresponds to the JSON property `nextPageToken`
464
+ # @return [String]
465
+ attr_accessor :next_page_token
466
+
467
+ # The pageInfo object encapsulates paging information for the result set.
468
+ # Corresponds to the JSON property `pageInfo`
469
+ # @return [Google::Apis::YoutubePartnerV1::PageInfo]
470
+ attr_accessor :page_info
471
+
472
+ def initialize(**args)
473
+ update!(**args)
474
+ end
475
+
476
+ # Update properties of this object
477
+ def update!(**args)
478
+ @items = args[:items] if args.key?(:items)
479
+ @kind = args[:kind] if args.key?(:kind)
480
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
481
+ @page_info = args[:page_info] if args.key?(:page_info)
482
+ end
483
+ end
484
+
485
+ #
486
+ class AssetShare
487
+ include Google::Apis::Core::Hashable
488
+
489
+ # The type of the API resource. For this resource, the value is youtubePartner#
490
+ # assetShare.
491
+ # Corresponds to the JSON property `kind`
492
+ # @return [String]
493
+ attr_accessor :kind
494
+
495
+ # A value that YouTube assigns and uses to uniquely identify the asset share.
496
+ # Corresponds to the JSON property `shareId`
497
+ # @return [String]
498
+ attr_accessor :share_id
499
+
500
+ # A value that YouTube assigns and uses to uniquely identify the asset view.
501
+ # Corresponds to the JSON property `viewId`
502
+ # @return [String]
503
+ attr_accessor :view_id
504
+
505
+ def initialize(**args)
506
+ update!(**args)
507
+ end
508
+
509
+ # Update properties of this object
510
+ def update!(**args)
511
+ @kind = args[:kind] if args.key?(:kind)
512
+ @share_id = args[:share_id] if args.key?(:share_id)
513
+ @view_id = args[:view_id] if args.key?(:view_id)
514
+ end
515
+ end
516
+
517
+ #
518
+ class AssetShareListResponse
519
+ include Google::Apis::Core::Hashable
520
+
521
+ # An assetShare resource that matches the request criteria.
522
+ # Corresponds to the JSON property `items`
523
+ # @return [Array<Google::Apis::YoutubePartnerV1::AssetShare>]
524
+ attr_accessor :items
525
+
526
+ # The type of the API response. For this operation, the value is youtubePartner#
527
+ # assetShareList.
528
+ # Corresponds to the JSON property `kind`
529
+ # @return [String]
530
+ attr_accessor :kind
531
+
532
+ # The token that can be used as the value of the pageToken parameter to retrieve
533
+ # the next page of results.
534
+ # Corresponds to the JSON property `nextPageToken`
535
+ # @return [String]
536
+ attr_accessor :next_page_token
537
+
538
+ # The pageInfo object encapsulates paging information for the result set.
539
+ # Corresponds to the JSON property `pageInfo`
540
+ # @return [Google::Apis::YoutubePartnerV1::PageInfo]
541
+ attr_accessor :page_info
542
+
543
+ def initialize(**args)
544
+ update!(**args)
545
+ end
546
+
547
+ # Update properties of this object
548
+ def update!(**args)
549
+ @items = args[:items] if args.key?(:items)
550
+ @kind = args[:kind] if args.key?(:kind)
551
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
552
+ @page_info = args[:page_info] if args.key?(:page_info)
553
+ end
554
+ end
555
+
556
+ #
557
+ class AssetSnippet
558
+ include Google::Apis::Core::Hashable
559
+
560
+ # Custom ID assigned by the content owner to this asset.
561
+ # Corresponds to the JSON property `customId`
562
+ # @return [String]
563
+ attr_accessor :custom_id
564
+
565
+ # An ID that YouTube assigns and uses to uniquely identify the asset.
566
+ # Corresponds to the JSON property `id`
567
+ # @return [String]
568
+ attr_accessor :id
569
+
570
+ # The ISRC (International Standard Recording Code) for this asset.
571
+ # Corresponds to the JSON property `isrc`
572
+ # @return [String]
573
+ attr_accessor :isrc
574
+
575
+ # The ISWC (International Standard Musical Work Code) for this asset.
576
+ # Corresponds to the JSON property `iswc`
577
+ # @return [String]
578
+ attr_accessor :iswc
579
+
580
+ # The type of the API resource. For this operation, the value is youtubePartner#
581
+ # assetSnippet.
582
+ # Corresponds to the JSON property `kind`
583
+ # @return [String]
584
+ attr_accessor :kind
585
+
586
+ # The date and time the asset was created. The value is specified in RFC 3339 (
587
+ # YYYY-MM-DDThh:mm:ss.000Z) format.
588
+ # Corresponds to the JSON property `timeCreated`
589
+ # @return [DateTime]
590
+ attr_accessor :time_created
591
+
592
+ # Title of this asset.
593
+ # Corresponds to the JSON property `title`
594
+ # @return [String]
595
+ attr_accessor :title
596
+
597
+ # The asset's type. This value determines which metadata fields might be
598
+ # included in the metadata object.
599
+ # Corresponds to the JSON property `type`
600
+ # @return [String]
601
+ attr_accessor :type
602
+
603
+ def initialize(**args)
604
+ update!(**args)
605
+ end
606
+
607
+ # Update properties of this object
608
+ def update!(**args)
609
+ @custom_id = args[:custom_id] if args.key?(:custom_id)
610
+ @id = args[:id] if args.key?(:id)
611
+ @isrc = args[:isrc] if args.key?(:isrc)
612
+ @iswc = args[:iswc] if args.key?(:iswc)
613
+ @kind = args[:kind] if args.key?(:kind)
614
+ @time_created = args[:time_created] if args.key?(:time_created)
615
+ @title = args[:title] if args.key?(:title)
616
+ @type = args[:type] if args.key?(:type)
617
+ end
618
+ end
619
+
620
+ #
621
+ class Campaign
622
+ include Google::Apis::Core::Hashable
623
+
624
+ # The campaignData object contains details like the campaign's start and end
625
+ # dates, target and source.
626
+ # Corresponds to the JSON property `campaignData`
627
+ # @return [Google::Apis::YoutubePartnerV1::CampaignData]
628
+ attr_accessor :campaign_data
629
+
630
+ # The unique ID that YouTube uses to identify the campaign.
631
+ # Corresponds to the JSON property `id`
632
+ # @return [String]
633
+ attr_accessor :id
634
+
635
+ # The type of the API resource. For campaign resources, this value is
636
+ # youtubePartner#campaign.
637
+ # Corresponds to the JSON property `kind`
638
+ # @return [String]
639
+ attr_accessor :kind
640
+
641
+ # The status of the campaign.
642
+ # Corresponds to the JSON property `status`
643
+ # @return [String]
644
+ attr_accessor :status
645
+
646
+ # The time the campaign was created.
647
+ # Corresponds to the JSON property `timeCreated`
648
+ # @return [DateTime]
649
+ attr_accessor :time_created
650
+
651
+ # The time the campaign was last modified.
652
+ # Corresponds to the JSON property `timeLastModified`
653
+ # @return [DateTime]
654
+ attr_accessor :time_last_modified
655
+
656
+ def initialize(**args)
657
+ update!(**args)
658
+ end
659
+
660
+ # Update properties of this object
661
+ def update!(**args)
662
+ @campaign_data = args[:campaign_data] if args.key?(:campaign_data)
663
+ @id = args[:id] if args.key?(:id)
664
+ @kind = args[:kind] if args.key?(:kind)
665
+ @status = args[:status] if args.key?(:status)
666
+ @time_created = args[:time_created] if args.key?(:time_created)
667
+ @time_last_modified = args[:time_last_modified] if args.key?(:time_last_modified)
668
+ end
669
+ end
670
+
671
+ #
672
+ class CampaignData
673
+ include Google::Apis::Core::Hashable
674
+
675
+ # The campaignSource object contains information about the assets for which the
676
+ # campaign will generate links.
677
+ # Corresponds to the JSON property `campaignSource`
678
+ # @return [Google::Apis::YoutubePartnerV1::CampaignSource]
679
+ attr_accessor :campaign_source
680
+
681
+ # The time at which the campaign should expire. Do not specify a value if the
682
+ # campaign has no expiration time.
683
+ # Corresponds to the JSON property `expireTime`
684
+ # @return [DateTime]
685
+ attr_accessor :expire_time
686
+
687
+ # The user-given name of the campaign.
688
+ # Corresponds to the JSON property `name`
689
+ # @return [String]
690
+ attr_accessor :name
691
+
692
+ # A list of videos or channels that will be linked to from claimed videos that
693
+ # are included in the campaign.
694
+ # Corresponds to the JSON property `promotedContent`
695
+ # @return [Array<Google::Apis::YoutubePartnerV1::PromotedContent>]
696
+ attr_accessor :promoted_content
697
+
698
+ # The time at which the campaign should start. Do not specify a value if the
699
+ # campaign should start immediately.
700
+ # Corresponds to the JSON property `startTime`
701
+ # @return [DateTime]
702
+ attr_accessor :start_time
703
+
704
+ def initialize(**args)
705
+ update!(**args)
706
+ end
707
+
708
+ # Update properties of this object
709
+ def update!(**args)
710
+ @campaign_source = args[:campaign_source] if args.key?(:campaign_source)
711
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
712
+ @name = args[:name] if args.key?(:name)
713
+ @promoted_content = args[:promoted_content] if args.key?(:promoted_content)
714
+ @start_time = args[:start_time] if args.key?(:start_time)
715
+ end
716
+ end
717
+
718
+ #
719
+ class CampaignList
720
+ include Google::Apis::Core::Hashable
721
+
722
+ # A list of campaigns.
723
+ # Corresponds to the JSON property `items`
724
+ # @return [Array<Google::Apis::YoutubePartnerV1::Campaign>]
725
+ attr_accessor :items
726
+
727
+ # The type of the API response. For this operation, the value is youtubePartner#
728
+ # campaignList.
729
+ # Corresponds to the JSON property `kind`
730
+ # @return [String]
731
+ attr_accessor :kind
732
+
733
+ def initialize(**args)
734
+ update!(**args)
735
+ end
736
+
737
+ # Update properties of this object
738
+ def update!(**args)
739
+ @items = args[:items] if args.key?(:items)
740
+ @kind = args[:kind] if args.key?(:kind)
741
+ end
742
+ end
743
+
744
+ #
745
+ class CampaignSource
746
+ include Google::Apis::Core::Hashable
747
+
748
+ # The type of the campaign source.
749
+ # Corresponds to the JSON property `sourceType`
750
+ # @return [String]
751
+ attr_accessor :source_type
752
+
753
+ # A list of values of the campaign source.
754
+ # Corresponds to the JSON property `sourceValue`
755
+ # @return [Array<String>]
756
+ attr_accessor :source_value
757
+
758
+ def initialize(**args)
759
+ update!(**args)
760
+ end
761
+
762
+ # Update properties of this object
763
+ def update!(**args)
764
+ @source_type = args[:source_type] if args.key?(:source_type)
765
+ @source_value = args[:source_value] if args.key?(:source_value)
766
+ end
767
+ end
768
+
769
+ #
770
+ class CampaignTargetLink
771
+ include Google::Apis::Core::Hashable
772
+
773
+ # The channel ID or video ID of the link target.
774
+ # Corresponds to the JSON property `targetId`
775
+ # @return [String]
776
+ attr_accessor :target_id
777
+
778
+ # Indicates whether the link target is a channel or video.
779
+ # Corresponds to the JSON property `targetType`
780
+ # @return [String]
781
+ attr_accessor :target_type
782
+
783
+ def initialize(**args)
784
+ update!(**args)
785
+ end
786
+
787
+ # Update properties of this object
788
+ def update!(**args)
789
+ @target_id = args[:target_id] if args.key?(:target_id)
790
+ @target_type = args[:target_type] if args.key?(:target_type)
791
+ end
792
+ end
793
+
794
+ #
795
+ class Claim
796
+ include Google::Apis::Core::Hashable
797
+
798
+ # The applied policy for the viewing owner on the claim. This might not be the
799
+ # same as the final claim policy on the video as it does not consider other
800
+ # partners' policy of the same claim.
801
+ # Corresponds to the JSON property `appliedPolicy`
802
+ # @return [Google::Apis::YoutubePartnerV1::Policy]
803
+ attr_accessor :applied_policy
804
+
805
+ # The unique YouTube asset ID that identifies the asset associated with the
806
+ # claim.
807
+ # Corresponds to the JSON property `assetId`
808
+ # @return [String]
809
+ attr_accessor :asset_id
810
+
811
+ # Indicates whether or not the claimed video should be blocked anywhere it is
812
+ # not explicitly owned.
813
+ # Corresponds to the JSON property `blockOutsideOwnership`
814
+ # @return [Boolean]
815
+ attr_accessor :block_outside_ownership
816
+ alias_method :block_outside_ownership?, :block_outside_ownership
817
+
818
+ # This value indicates whether the claim covers the audio, video, or audiovisual
819
+ # portion of the claimed content.
820
+ # Corresponds to the JSON property `contentType`
821
+ # @return [String]
822
+ attr_accessor :content_type
823
+
824
+ # The ID that YouTube assigns and uses to uniquely identify the claim.
825
+ # Corresponds to the JSON property `id`
826
+ # @return [String]
827
+ attr_accessor :id
828
+
829
+ # Indicates whether or not the claim is a partner uploaded claim.
830
+ # Corresponds to the JSON property `isPartnerUploaded`
831
+ # @return [Boolean]
832
+ attr_accessor :is_partner_uploaded
833
+ alias_method :is_partner_uploaded?, :is_partner_uploaded
834
+
835
+ # The type of the API resource. For claim resources, this value is
836
+ # youtubePartner#claim.
837
+ # Corresponds to the JSON property `kind`
838
+ # @return [String]
839
+ attr_accessor :kind
840
+
841
+ # If this claim was auto-generated based on a provided reference, this section
842
+ # will provide details of the match that generated the claim.
843
+ # Corresponds to the JSON property `matchInfo`
844
+ # @return [Google::Apis::YoutubePartnerV1::Claim::MatchInfo]
845
+ attr_accessor :match_info
846
+
847
+ #
848
+ # Corresponds to the JSON property `origin`
849
+ # @return [Google::Apis::YoutubePartnerV1::Claim::Origin]
850
+ attr_accessor :origin
851
+
852
+ # The policy provided by the viewing owner on the claim.
853
+ # Corresponds to the JSON property `policy`
854
+ # @return [Google::Apis::YoutubePartnerV1::Policy]
855
+ attr_accessor :policy
856
+
857
+ # The claim's status. When updating a claim, you can update its status from
858
+ # active to inactive to effectively release the claim, but the API does not
859
+ # support other updates to a claim's status.
860
+ # Corresponds to the JSON property `status`
861
+ # @return [String]
862
+ attr_accessor :status
863
+
864
+ # The time the claim was created.
865
+ # Corresponds to the JSON property `timeCreated`
866
+ # @return [DateTime]
867
+ attr_accessor :time_created
868
+
869
+ # The unique YouTube video ID that identifies the video associated with the
870
+ # claim.
871
+ # Corresponds to the JSON property `videoId`
872
+ # @return [String]
873
+ attr_accessor :video_id
874
+
875
+ def initialize(**args)
876
+ update!(**args)
877
+ end
878
+
879
+ # Update properties of this object
880
+ def update!(**args)
881
+ @applied_policy = args[:applied_policy] if args.key?(:applied_policy)
882
+ @asset_id = args[:asset_id] if args.key?(:asset_id)
883
+ @block_outside_ownership = args[:block_outside_ownership] if args.key?(:block_outside_ownership)
884
+ @content_type = args[:content_type] if args.key?(:content_type)
885
+ @id = args[:id] if args.key?(:id)
886
+ @is_partner_uploaded = args[:is_partner_uploaded] if args.key?(:is_partner_uploaded)
887
+ @kind = args[:kind] if args.key?(:kind)
888
+ @match_info = args[:match_info] if args.key?(:match_info)
889
+ @origin = args[:origin] if args.key?(:origin)
890
+ @policy = args[:policy] if args.key?(:policy)
891
+ @status = args[:status] if args.key?(:status)
892
+ @time_created = args[:time_created] if args.key?(:time_created)
893
+ @video_id = args[:video_id] if args.key?(:video_id)
894
+ end
895
+
896
+ # If this claim was auto-generated based on a provided reference, this section
897
+ # will provide details of the match that generated the claim.
898
+ class MatchInfo
899
+ include Google::Apis::Core::Hashable
900
+
901
+ # Details of the longest match between the reference and the user video.
902
+ # Corresponds to the JSON property `longestMatch`
903
+ # @return [Google::Apis::YoutubePartnerV1::Claim::MatchInfo::LongestMatch]
904
+ attr_accessor :longest_match
905
+
906
+ # Details about each match segment. Each item in the list contains information
907
+ # about one match segment associated with the claim. It is possible to have
908
+ # multiple match segments. For example, if the audio and video content of an
909
+ # uploaded video match that of a reference video, there would be two match
910
+ # segments. One segment would describe the audio match and the other would
911
+ # describe the video match.
912
+ # Corresponds to the JSON property `matchSegments`
913
+ # @return [Array<Google::Apis::YoutubePartnerV1::MatchSegment>]
914
+ attr_accessor :match_segments
915
+
916
+ # The reference ID that generated this match.
917
+ # Corresponds to the JSON property `referenceId`
918
+ # @return [String]
919
+ attr_accessor :reference_id
920
+
921
+ # Details of the total amount of reference and user video content which matched
922
+ # each other. Note these two values may differ if either the reference or the
923
+ # user video contains a loop.
924
+ # Corresponds to the JSON property `totalMatch`
925
+ # @return [Google::Apis::YoutubePartnerV1::Claim::MatchInfo::TotalMatch]
926
+ attr_accessor :total_match
927
+
928
+ def initialize(**args)
929
+ update!(**args)
930
+ end
931
+
932
+ # Update properties of this object
933
+ def update!(**args)
934
+ @longest_match = args[:longest_match] if args.key?(:longest_match)
935
+ @match_segments = args[:match_segments] if args.key?(:match_segments)
936
+ @reference_id = args[:reference_id] if args.key?(:reference_id)
937
+ @total_match = args[:total_match] if args.key?(:total_match)
938
+ end
939
+
940
+ # Details of the longest match between the reference and the user video.
941
+ class LongestMatch
942
+ include Google::Apis::Core::Hashable
943
+
944
+ # The duration of the longest match between the reference and the user video.
945
+ # Corresponds to the JSON property `durationSecs`
946
+ # @return [String]
947
+ attr_accessor :duration_secs
948
+
949
+ # The offset in seconds into the reference at which the longest match began.
950
+ # Corresponds to the JSON property `referenceOffset`
951
+ # @return [String]
952
+ attr_accessor :reference_offset
953
+
954
+ # The offset in seconds into the user video at which the longest match began.
955
+ # Corresponds to the JSON property `userVideoOffset`
956
+ # @return [String]
957
+ attr_accessor :user_video_offset
958
+
959
+ def initialize(**args)
960
+ update!(**args)
961
+ end
962
+
963
+ # Update properties of this object
964
+ def update!(**args)
965
+ @duration_secs = args[:duration_secs] if args.key?(:duration_secs)
966
+ @reference_offset = args[:reference_offset] if args.key?(:reference_offset)
967
+ @user_video_offset = args[:user_video_offset] if args.key?(:user_video_offset)
968
+ end
969
+ end
970
+
971
+ # Details of the total amount of reference and user video content which matched
972
+ # each other. Note these two values may differ if either the reference or the
973
+ # user video contains a loop.
974
+ class TotalMatch
975
+ include Google::Apis::Core::Hashable
976
+
977
+ # The total amount of content in the reference which matched the user video in
978
+ # seconds.
979
+ # Corresponds to the JSON property `referenceDurationSecs`
980
+ # @return [String]
981
+ attr_accessor :reference_duration_secs
982
+
983
+ # The total amount of content in the user video which matched the reference in
984
+ # seconds.
985
+ # Corresponds to the JSON property `userVideoDurationSecs`
986
+ # @return [String]
987
+ attr_accessor :user_video_duration_secs
988
+
989
+ def initialize(**args)
990
+ update!(**args)
991
+ end
992
+
993
+ # Update properties of this object
994
+ def update!(**args)
995
+ @reference_duration_secs = args[:reference_duration_secs] if args.key?(:reference_duration_secs)
996
+ @user_video_duration_secs = args[:user_video_duration_secs] if args.key?(:user_video_duration_secs)
997
+ end
998
+ end
999
+ end
1000
+
1001
+ #
1002
+ class Origin
1003
+ include Google::Apis::Core::Hashable
1004
+
1005
+ #
1006
+ # Corresponds to the JSON property `source`
1007
+ # @return [String]
1008
+ attr_accessor :source
1009
+
1010
+ def initialize(**args)
1011
+ update!(**args)
1012
+ end
1013
+
1014
+ # Update properties of this object
1015
+ def update!(**args)
1016
+ @source = args[:source] if args.key?(:source)
1017
+ end
1018
+ end
1019
+ end
1020
+
1021
+ #
1022
+ class ClaimEvent
1023
+ include Google::Apis::Core::Hashable
1024
+
1025
+ # The type of the API resource. For claimEvent resources, this value is
1026
+ # youtubePartner#claimEvent.
1027
+ # Corresponds to the JSON property `kind`
1028
+ # @return [String]
1029
+ attr_accessor :kind
1030
+
1031
+ # Reason of the event.
1032
+ # Corresponds to the JSON property `reason`
1033
+ # @return [String]
1034
+ attr_accessor :reason
1035
+
1036
+ # Data related to source of the event.
1037
+ # Corresponds to the JSON property `source`
1038
+ # @return [Google::Apis::YoutubePartnerV1::ClaimEvent::Source]
1039
+ attr_accessor :source
1040
+
1041
+ # The time when the event occurred.
1042
+ # Corresponds to the JSON property `time`
1043
+ # @return [DateTime]
1044
+ attr_accessor :time
1045
+
1046
+ # Type of the event.
1047
+ # Corresponds to the JSON property `type`
1048
+ # @return [String]
1049
+ attr_accessor :type
1050
+
1051
+ # Details of event's type.
1052
+ # Corresponds to the JSON property `typeDetails`
1053
+ # @return [Google::Apis::YoutubePartnerV1::ClaimEvent::TypeDetails]
1054
+ attr_accessor :type_details
1055
+
1056
+ def initialize(**args)
1057
+ update!(**args)
1058
+ end
1059
+
1060
+ # Update properties of this object
1061
+ def update!(**args)
1062
+ @kind = args[:kind] if args.key?(:kind)
1063
+ @reason = args[:reason] if args.key?(:reason)
1064
+ @source = args[:source] if args.key?(:source)
1065
+ @time = args[:time] if args.key?(:time)
1066
+ @type = args[:type] if args.key?(:type)
1067
+ @type_details = args[:type_details] if args.key?(:type_details)
1068
+ end
1069
+
1070
+ # Data related to source of the event.
1071
+ class Source
1072
+ include Google::Apis::Core::Hashable
1073
+
1074
+ # Id of content owner that initiated the event.
1075
+ # Corresponds to the JSON property `contentOwnerId`
1076
+ # @return [String]
1077
+ attr_accessor :content_owner_id
1078
+
1079
+ # Type of the event source.
1080
+ # Corresponds to the JSON property `type`
1081
+ # @return [String]
1082
+ attr_accessor :type
1083
+
1084
+ # Email of user who initiated the event.
1085
+ # Corresponds to the JSON property `userEmail`
1086
+ # @return [String]
1087
+ attr_accessor :user_email
1088
+
1089
+ def initialize(**args)
1090
+ update!(**args)
1091
+ end
1092
+
1093
+ # Update properties of this object
1094
+ def update!(**args)
1095
+ @content_owner_id = args[:content_owner_id] if args.key?(:content_owner_id)
1096
+ @type = args[:type] if args.key?(:type)
1097
+ @user_email = args[:user_email] if args.key?(:user_email)
1098
+ end
1099
+ end
1100
+
1101
+ # Details of event's type.
1102
+ class TypeDetails
1103
+ include Google::Apis::Core::Hashable
1104
+
1105
+ # Appeal explanations for dispute_appeal event.
1106
+ # Corresponds to the JSON property `appealExplanation`
1107
+ # @return [String]
1108
+ attr_accessor :appeal_explanation
1109
+
1110
+ # Dispute notes for dispute_create events.
1111
+ # Corresponds to the JSON property `disputeNotes`
1112
+ # @return [String]
1113
+ attr_accessor :dispute_notes
1114
+
1115
+ # Dispute reason for dispute_create and dispute_appeal events.
1116
+ # Corresponds to the JSON property `disputeReason`
1117
+ # @return [String]
1118
+ attr_accessor :dispute_reason
1119
+
1120
+ # Status that was a result of update for claim_update event.
1121
+ # Corresponds to the JSON property `updateStatus`
1122
+ # @return [String]
1123
+ attr_accessor :update_status
1124
+
1125
+ def initialize(**args)
1126
+ update!(**args)
1127
+ end
1128
+
1129
+ # Update properties of this object
1130
+ def update!(**args)
1131
+ @appeal_explanation = args[:appeal_explanation] if args.key?(:appeal_explanation)
1132
+ @dispute_notes = args[:dispute_notes] if args.key?(:dispute_notes)
1133
+ @dispute_reason = args[:dispute_reason] if args.key?(:dispute_reason)
1134
+ @update_status = args[:update_status] if args.key?(:update_status)
1135
+ end
1136
+ end
1137
+ end
1138
+
1139
+ #
1140
+ class ClaimHistory
1141
+ include Google::Apis::Core::Hashable
1142
+
1143
+ # A list of claim history events.
1144
+ # Corresponds to the JSON property `event`
1145
+ # @return [Array<Google::Apis::YoutubePartnerV1::ClaimEvent>]
1146
+ attr_accessor :event
1147
+
1148
+ # The ID that YouTube assigns and uses to uniquely identify the claim.
1149
+ # Corresponds to the JSON property `id`
1150
+ # @return [String]
1151
+ attr_accessor :id
1152
+
1153
+ # The type of the API resource. For claimHistory resources, this value is
1154
+ # youtubePartner#claimHistory.
1155
+ # Corresponds to the JSON property `kind`
1156
+ # @return [String]
1157
+ attr_accessor :kind
1158
+
1159
+ # The external channel id of claimed video's uploader.
1160
+ # Corresponds to the JSON property `uploaderChannelId`
1161
+ # @return [String]
1162
+ attr_accessor :uploader_channel_id
1163
+
1164
+ def initialize(**args)
1165
+ update!(**args)
1166
+ end
1167
+
1168
+ # Update properties of this object
1169
+ def update!(**args)
1170
+ @event = args[:event] if args.key?(:event)
1171
+ @id = args[:id] if args.key?(:id)
1172
+ @kind = args[:kind] if args.key?(:kind)
1173
+ @uploader_channel_id = args[:uploader_channel_id] if args.key?(:uploader_channel_id)
1174
+ end
1175
+ end
1176
+
1177
+ #
1178
+ class ClaimListResponse
1179
+ include Google::Apis::Core::Hashable
1180
+
1181
+ # A list of claims that match the request criteria.
1182
+ # Corresponds to the JSON property `items`
1183
+ # @return [Array<Google::Apis::YoutubePartnerV1::Claim>]
1184
+ attr_accessor :items
1185
+
1186
+ # The type of the API response. For this operation, the value is youtubePartner#
1187
+ # claimList.
1188
+ # Corresponds to the JSON property `kind`
1189
+ # @return [String]
1190
+ attr_accessor :kind
1191
+
1192
+ # The token that can be used as the value of the pageToken parameter to retrieve
1193
+ # the next page in the result set.
1194
+ # Corresponds to the JSON property `nextPageToken`
1195
+ # @return [String]
1196
+ attr_accessor :next_page_token
1197
+
1198
+ # The pageInfo object encapsulates paging information for the result set.
1199
+ # Corresponds to the JSON property `pageInfo`
1200
+ # @return [Google::Apis::YoutubePartnerV1::PageInfo]
1201
+ attr_accessor :page_info
1202
+
1203
+ # The token that can be used as the value of the pageToken parameter to retrieve
1204
+ # the previous page in the result set.
1205
+ # Corresponds to the JSON property `previousPageToken`
1206
+ # @return [String]
1207
+ attr_accessor :previous_page_token
1208
+
1209
+ def initialize(**args)
1210
+ update!(**args)
1211
+ end
1212
+
1213
+ # Update properties of this object
1214
+ def update!(**args)
1215
+ @items = args[:items] if args.key?(:items)
1216
+ @kind = args[:kind] if args.key?(:kind)
1217
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1218
+ @page_info = args[:page_info] if args.key?(:page_info)
1219
+ @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
1220
+ end
1221
+ end
1222
+
1223
+ #
1224
+ class ClaimSearchResponse
1225
+ include Google::Apis::Core::Hashable
1226
+
1227
+ # A list of claims that match the request criteria.
1228
+ # Corresponds to the JSON property `items`
1229
+ # @return [Array<Google::Apis::YoutubePartnerV1::ClaimSnippet>]
1230
+ attr_accessor :items
1231
+
1232
+ # The type of the API response. For this operation, the value is youtubePartner#
1233
+ # claimSnippetList.
1234
+ # Corresponds to the JSON property `kind`
1235
+ # @return [String]
1236
+ attr_accessor :kind
1237
+
1238
+ # The token that can be used as the value of the pageToken parameter to retrieve
1239
+ # the next page in the result set.
1240
+ # Corresponds to the JSON property `nextPageToken`
1241
+ # @return [String]
1242
+ attr_accessor :next_page_token
1243
+
1244
+ # The pageInfo object encapsulates paging information for the result set.
1245
+ # Corresponds to the JSON property `pageInfo`
1246
+ # @return [Google::Apis::YoutubePartnerV1::PageInfo]
1247
+ attr_accessor :page_info
1248
+
1249
+ # The token that can be used as the value of the pageToken parameter to retrieve
1250
+ # the previous page in the result set.
1251
+ # Corresponds to the JSON property `previousPageToken`
1252
+ # @return [String]
1253
+ attr_accessor :previous_page_token
1254
+
1255
+ def initialize(**args)
1256
+ update!(**args)
1257
+ end
1258
+
1259
+ # Update properties of this object
1260
+ def update!(**args)
1261
+ @items = args[:items] if args.key?(:items)
1262
+ @kind = args[:kind] if args.key?(:kind)
1263
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1264
+ @page_info = args[:page_info] if args.key?(:page_info)
1265
+ @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
1266
+ end
1267
+ end
1268
+
1269
+ #
1270
+ class ClaimSnippet
1271
+ include Google::Apis::Core::Hashable
1272
+
1273
+ # The unique YouTube asset ID that identifies the asset associated with the
1274
+ # claim.
1275
+ # Corresponds to the JSON property `assetId`
1276
+ # @return [String]
1277
+ attr_accessor :asset_id
1278
+
1279
+ # This value indicates whether the claim covers the audio, video, or audiovisual
1280
+ # portion of the claimed content.
1281
+ # Corresponds to the JSON property `contentType`
1282
+ # @return [String]
1283
+ attr_accessor :content_type
1284
+
1285
+ # The ID that YouTube assigns and uses to uniquely identify the claim.
1286
+ # Corresponds to the JSON property `id`
1287
+ # @return [String]
1288
+ attr_accessor :id
1289
+
1290
+ # Indicates whether or not the claim is a partner uploaded claim.
1291
+ # Corresponds to the JSON property `isPartnerUploaded`
1292
+ # @return [Boolean]
1293
+ attr_accessor :is_partner_uploaded
1294
+ alias_method :is_partner_uploaded?, :is_partner_uploaded
1295
+
1296
+ # The type of the API resource. For this operation, the value is youtubePartner#
1297
+ # claimSnippet.
1298
+ # Corresponds to the JSON property `kind`
1299
+ # @return [String]
1300
+ attr_accessor :kind
1301
+
1302
+ #
1303
+ # Corresponds to the JSON property `origin`
1304
+ # @return [Google::Apis::YoutubePartnerV1::ClaimSnippet::Origin]
1305
+ attr_accessor :origin
1306
+
1307
+ # The claim's status.
1308
+ # Corresponds to the JSON property `status`
1309
+ # @return [String]
1310
+ attr_accessor :status
1311
+
1312
+ # Indicates that this is a third party claim.
1313
+ # Corresponds to the JSON property `thirdPartyClaim`
1314
+ # @return [Boolean]
1315
+ attr_accessor :third_party_claim
1316
+ alias_method :third_party_claim?, :third_party_claim
1317
+
1318
+ # The time the claim was created.
1319
+ # Corresponds to the JSON property `timeCreated`
1320
+ # @return [DateTime]
1321
+ attr_accessor :time_created
1322
+
1323
+ # The time the claim status and/or status detail was last modified.
1324
+ # Corresponds to the JSON property `timeStatusLastModified`
1325
+ # @return [DateTime]
1326
+ attr_accessor :time_status_last_modified
1327
+
1328
+ # The unique YouTube video ID that identifies the video associated with the
1329
+ # claim.
1330
+ # Corresponds to the JSON property `videoId`
1331
+ # @return [String]
1332
+ attr_accessor :video_id
1333
+
1334
+ # The title of the claimed video.
1335
+ # Corresponds to the JSON property `videoTitle`
1336
+ # @return [String]
1337
+ attr_accessor :video_title
1338
+
1339
+ # Number of views for the claimed video.
1340
+ # Corresponds to the JSON property `videoViews`
1341
+ # @return [String]
1342
+ attr_accessor :video_views
1343
+
1344
+ def initialize(**args)
1345
+ update!(**args)
1346
+ end
1347
+
1348
+ # Update properties of this object
1349
+ def update!(**args)
1350
+ @asset_id = args[:asset_id] if args.key?(:asset_id)
1351
+ @content_type = args[:content_type] if args.key?(:content_type)
1352
+ @id = args[:id] if args.key?(:id)
1353
+ @is_partner_uploaded = args[:is_partner_uploaded] if args.key?(:is_partner_uploaded)
1354
+ @kind = args[:kind] if args.key?(:kind)
1355
+ @origin = args[:origin] if args.key?(:origin)
1356
+ @status = args[:status] if args.key?(:status)
1357
+ @third_party_claim = args[:third_party_claim] if args.key?(:third_party_claim)
1358
+ @time_created = args[:time_created] if args.key?(:time_created)
1359
+ @time_status_last_modified = args[:time_status_last_modified] if args.key?(:time_status_last_modified)
1360
+ @video_id = args[:video_id] if args.key?(:video_id)
1361
+ @video_title = args[:video_title] if args.key?(:video_title)
1362
+ @video_views = args[:video_views] if args.key?(:video_views)
1363
+ end
1364
+
1365
+ #
1366
+ class Origin
1367
+ include Google::Apis::Core::Hashable
1368
+
1369
+ #
1370
+ # Corresponds to the JSON property `source`
1371
+ # @return [String]
1372
+ attr_accessor :source
1373
+
1374
+ def initialize(**args)
1375
+ update!(**args)
1376
+ end
1377
+
1378
+ # Update properties of this object
1379
+ def update!(**args)
1380
+ @source = args[:source] if args.key?(:source)
1381
+ end
1382
+ end
1383
+ end
1384
+
1385
+ #
1386
+ class ClaimedVideoDefaults
1387
+ include Google::Apis::Core::Hashable
1388
+
1389
+ # Set this property to true to enable automatically generated breaks for a newly
1390
+ # claimed video longer than 10 minutes. The first partner that claims the video
1391
+ # sets its default advertising options to that video. claimedVideoOptions.
1392
+ # auto_generated_breaks_default
1393
+ # Corresponds to the JSON property `autoGeneratedBreaks`
1394
+ # @return [Boolean]
1395
+ attr_accessor :auto_generated_breaks
1396
+ alias_method :auto_generated_breaks?, :auto_generated_breaks
1397
+
1398
+ # Set this property to true to indicate that the channel's claimedVideoOptions
1399
+ # can override the content owner's claimedVideoOptions.
1400
+ # Corresponds to the JSON property `channelOverride`
1401
+ # @return [Boolean]
1402
+ attr_accessor :channel_override
1403
+ alias_method :channel_override?, :channel_override
1404
+
1405
+ # Identifies this resource as default options for newly claimed video. Value: "
1406
+ # youtubePartner#claimedVideoDefaults".
1407
+ # Corresponds to the JSON property `kind`
1408
+ # @return [String]
1409
+ attr_accessor :kind
1410
+
1411
+ # A list of ad formats that could be used as the default settings for a newly
1412
+ # claimed video. The first partner that claims the video sets its default
1413
+ # advertising options to that video.
1414
+ # Corresponds to the JSON property `newVideoDefaults`
1415
+ # @return [Array<String>]
1416
+ attr_accessor :new_video_defaults
1417
+
1418
+ def initialize(**args)
1419
+ update!(**args)
1420
+ end
1421
+
1422
+ # Update properties of this object
1423
+ def update!(**args)
1424
+ @auto_generated_breaks = args[:auto_generated_breaks] if args.key?(:auto_generated_breaks)
1425
+ @channel_override = args[:channel_override] if args.key?(:channel_override)
1426
+ @kind = args[:kind] if args.key?(:kind)
1427
+ @new_video_defaults = args[:new_video_defaults] if args.key?(:new_video_defaults)
1428
+ end
1429
+ end
1430
+
1431
+ #
1432
+ class Conditions
1433
+ include Google::Apis::Core::Hashable
1434
+
1435
+ # This match condition specifies whether the user- or partner-uploaded content
1436
+ # needs to match the audio, video or audiovisual content of a reference file for
1437
+ # the rule to apply.
1438
+ # Corresponds to the JSON property `contentMatchType`
1439
+ # @return [Array<String>]
1440
+ attr_accessor :content_match_type
1441
+
1442
+ # This match condition specifies an amount of time that the user- or partner-
1443
+ # uploaded content needs to match a reference file for the rule to apply.
1444
+ # Corresponds to the JSON property `matchDuration`
1445
+ # @return [Array<Google::Apis::YoutubePartnerV1::IntervalCondition>]
1446
+ attr_accessor :match_duration
1447
+
1448
+ # This match condition specifies a percentage of the user- or partner-uploaded
1449
+ # content that needs to match a reference file for the rule to apply.
1450
+ # Corresponds to the JSON property `matchPercent`
1451
+ # @return [Array<Google::Apis::YoutubePartnerV1::IntervalCondition>]
1452
+ attr_accessor :match_percent
1453
+
1454
+ # This match condition indicates that the reference must be a certain duration
1455
+ # for the rule to apply.
1456
+ # Corresponds to the JSON property `referenceDuration`
1457
+ # @return [Array<Google::Apis::YoutubePartnerV1::IntervalCondition>]
1458
+ attr_accessor :reference_duration
1459
+
1460
+ # This match condition indicates that the specified percentage of a reference
1461
+ # file must match the user- or partner-uploaded content for the rule to apply.
1462
+ # Corresponds to the JSON property `referencePercent`
1463
+ # @return [Array<Google::Apis::YoutubePartnerV1::IntervalCondition>]
1464
+ attr_accessor :reference_percent
1465
+
1466
+ # This watch condition specifies where users are (or or not) allowed to watch (
1467
+ # or listen to) an asset. YouTube determines whether the condition is satisfied
1468
+ # based on the user's location.
1469
+ # Corresponds to the JSON property `requiredTerritories`
1470
+ # @return [Google::Apis::YoutubePartnerV1::TerritoryCondition]
1471
+ attr_accessor :required_territories
1472
+
1473
+ def initialize(**args)
1474
+ update!(**args)
1475
+ end
1476
+
1477
+ # Update properties of this object
1478
+ def update!(**args)
1479
+ @content_match_type = args[:content_match_type] if args.key?(:content_match_type)
1480
+ @match_duration = args[:match_duration] if args.key?(:match_duration)
1481
+ @match_percent = args[:match_percent] if args.key?(:match_percent)
1482
+ @reference_duration = args[:reference_duration] if args.key?(:reference_duration)
1483
+ @reference_percent = args[:reference_percent] if args.key?(:reference_percent)
1484
+ @required_territories = args[:required_territories] if args.key?(:required_territories)
1485
+ end
1486
+ end
1487
+
1488
+ #
1489
+ class ConflictingOwnership
1490
+ include Google::Apis::Core::Hashable
1491
+
1492
+ # The ID of the conflicting asset's owner.
1493
+ # Corresponds to the JSON property `owner`
1494
+ # @return [String]
1495
+ attr_accessor :owner
1496
+
1497
+ # The percentage of the asset that the owner controls or administers.
1498
+ # Corresponds to the JSON property `ratio`
1499
+ # @return [Float]
1500
+ attr_accessor :ratio
1501
+
1502
+ def initialize(**args)
1503
+ update!(**args)
1504
+ end
1505
+
1506
+ # Update properties of this object
1507
+ def update!(**args)
1508
+ @owner = args[:owner] if args.key?(:owner)
1509
+ @ratio = args[:ratio] if args.key?(:ratio)
1510
+ end
1511
+ end
1512
+
1513
+ #
1514
+ class ContentOwner
1515
+ include Google::Apis::Core::Hashable
1516
+
1517
+ # The email address visible to other partners for use in managing asset
1518
+ # ownership conflicts.
1519
+ # Corresponds to the JSON property `conflictNotificationEmail`
1520
+ # @return [String]
1521
+ attr_accessor :conflict_notification_email
1522
+
1523
+ # The content owner's display name.
1524
+ # Corresponds to the JSON property `displayName`
1525
+ # @return [String]
1526
+ attr_accessor :display_name
1527
+
1528
+ # The email address(es) to which YouTube sends claim dispute notifications and
1529
+ # possible claim notifications.
1530
+ # Corresponds to the JSON property `disputeNotificationEmails`
1531
+ # @return [Array<String>]
1532
+ attr_accessor :dispute_notification_emails
1533
+
1534
+ # The email address(es) to which YouTube sends fingerprint reports.
1535
+ # Corresponds to the JSON property `fingerprintReportNotificationEmails`
1536
+ # @return [Array<String>]
1537
+ attr_accessor :fingerprint_report_notification_emails
1538
+
1539
+ # A unique ID that YouTube uses to identify the content owner.
1540
+ # Corresponds to the JSON property `id`
1541
+ # @return [String]
1542
+ attr_accessor :id
1543
+
1544
+ # The type of the API resource. For content owner resources, the value is
1545
+ # youtubePartner#contentOwner.
1546
+ # Corresponds to the JSON property `kind`
1547
+ # @return [String]
1548
+ attr_accessor :kind
1549
+
1550
+ # The email address(es) to which YouTube sends CMS account details and report
1551
+ # notifications.
1552
+ # Corresponds to the JSON property `primaryNotificationEmails`
1553
+ # @return [Array<String>]
1554
+ attr_accessor :primary_notification_emails
1555
+
1556
+ def initialize(**args)
1557
+ update!(**args)
1558
+ end
1559
+
1560
+ # Update properties of this object
1561
+ def update!(**args)
1562
+ @conflict_notification_email = args[:conflict_notification_email] if args.key?(:conflict_notification_email)
1563
+ @display_name = args[:display_name] if args.key?(:display_name)
1564
+ @dispute_notification_emails = args[:dispute_notification_emails] if args.key?(:dispute_notification_emails)
1565
+ @fingerprint_report_notification_emails = args[:fingerprint_report_notification_emails] if args.key?(:fingerprint_report_notification_emails)
1566
+ @id = args[:id] if args.key?(:id)
1567
+ @kind = args[:kind] if args.key?(:kind)
1568
+ @primary_notification_emails = args[:primary_notification_emails] if args.key?(:primary_notification_emails)
1569
+ end
1570
+ end
1571
+
1572
+ #
1573
+ class ContentOwnerAdvertisingOption
1574
+ include Google::Apis::Core::Hashable
1575
+
1576
+ # This object identifies the ad formats that the content owner is allowed to use.
1577
+ # Corresponds to the JSON property `allowedOptions`
1578
+ # @return [Google::Apis::YoutubePartnerV1::AllowedAdvertisingOptions]
1579
+ attr_accessor :allowed_options
1580
+
1581
+ # This object identifies the advertising options used by default for the content
1582
+ # owner's newly claimed videos.
1583
+ # Corresponds to the JSON property `claimedVideoOptions`
1584
+ # @return [Google::Apis::YoutubePartnerV1::ClaimedVideoDefaults]
1585
+ attr_accessor :claimed_video_options
1586
+
1587
+ # The value that YouTube uses to uniquely identify the content owner.
1588
+ # Corresponds to the JSON property `id`
1589
+ # @return [String]
1590
+ attr_accessor :id
1591
+
1592
+ # The type of the API resource. For this resource, the value is youtubePartner#
1593
+ # contentOwnerAdvertisingOption.
1594
+ # Corresponds to the JSON property `kind`
1595
+ # @return [String]
1596
+ attr_accessor :kind
1597
+
1598
+ def initialize(**args)
1599
+ update!(**args)
1600
+ end
1601
+
1602
+ # Update properties of this object
1603
+ def update!(**args)
1604
+ @allowed_options = args[:allowed_options] if args.key?(:allowed_options)
1605
+ @claimed_video_options = args[:claimed_video_options] if args.key?(:claimed_video_options)
1606
+ @id = args[:id] if args.key?(:id)
1607
+ @kind = args[:kind] if args.key?(:kind)
1608
+ end
1609
+ end
1610
+
1611
+ #
1612
+ class ContentOwnerListResponse
1613
+ include Google::Apis::Core::Hashable
1614
+
1615
+ # A list of content owners that match the request criteria.
1616
+ # Corresponds to the JSON property `items`
1617
+ # @return [Array<Google::Apis::YoutubePartnerV1::ContentOwner>]
1618
+ attr_accessor :items
1619
+
1620
+ # The type of the API response. For this operation, the value is youtubePartner#
1621
+ # contentOwnerList.
1622
+ # Corresponds to the JSON property `kind`
1623
+ # @return [String]
1624
+ attr_accessor :kind
1625
+
1626
+ def initialize(**args)
1627
+ update!(**args)
1628
+ end
1629
+
1630
+ # Update properties of this object
1631
+ def update!(**args)
1632
+ @items = args[:items] if args.key?(:items)
1633
+ @kind = args[:kind] if args.key?(:kind)
1634
+ end
1635
+ end
1636
+
1637
+ #
1638
+ class CountriesRestriction
1639
+ include Google::Apis::Core::Hashable
1640
+
1641
+ # A list of ad formats that can be used in the specified countries.
1642
+ # Corresponds to the JSON property `adFormats`
1643
+ # @return [Array<String>]
1644
+ attr_accessor :ad_formats
1645
+
1646
+ # A list of ISO 3166-1 alpha-2 country codes that identify the countries where
1647
+ # ads are enabled.
1648
+ # Corresponds to the JSON property `territories`
1649
+ # @return [Array<String>]
1650
+ attr_accessor :territories
1651
+
1652
+ def initialize(**args)
1653
+ update!(**args)
1654
+ end
1655
+
1656
+ # Update properties of this object
1657
+ def update!(**args)
1658
+ @ad_formats = args[:ad_formats] if args.key?(:ad_formats)
1659
+ @territories = args[:territories] if args.key?(:territories)
1660
+ end
1661
+ end
1662
+
1663
+ #
1664
+ class CuepointSettings
1665
+ include Google::Apis::Core::Hashable
1666
+
1667
+ # The cuepoint's type. See the Getting started guide for an explanation of the
1668
+ # different types of cuepoints. Also see the Life of a broadcast document for
1669
+ # best practices about inserting cuepoints during your broadcast.
1670
+ # Corresponds to the JSON property `cueType`
1671
+ # @return [String]
1672
+ attr_accessor :cue_type
1673
+
1674
+ # The cuepoint's duration, in seconds. This value must be specified if the
1675
+ # cueType is ad and is ignored otherwise.
1676
+ # Corresponds to the JSON property `durationSecs`
1677
+ # @return [Fixnum]
1678
+ attr_accessor :duration_secs
1679
+
1680
+ # This value specifies a point in time in the video when viewers should see an
1681
+ # ad or in-stream slate. The property value identifies a time offset, in
1682
+ # milliseconds, from the beginning of the monitor stream. Though measured in
1683
+ # milliseconds, the value is actually an approximation, and YouTube will insert
1684
+ # the cuepoint as closely as possible to that time. You should not specify a
1685
+ # value for this parameter if your broadcast does not have a monitor stream.
1686
+ # This property's default value is 0, which indicates that the cuepoint should
1687
+ # be inserted as soon as possible. If your broadcast stream is not delayed, then
1688
+ # 0 is also the only valid value. However, if your broadcast stream is delayed,
1689
+ # then the property value can specify the time when the cuepoint should be
1690
+ # inserted. See the Getting started guide for more details.
1691
+ # Note: If your broadcast had a testing phase, the offset is measured from the
1692
+ # time that the testing phase began.
1693
+ # Corresponds to the JSON property `offsetTimeMs`
1694
+ # @return [String]
1695
+ attr_accessor :offset_time_ms
1696
+
1697
+ # This value specifies the wall clock time at which the cuepoint should be
1698
+ # inserted. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format.
1699
+ # Corresponds to the JSON property `walltime`
1700
+ # @return [DateTime]
1701
+ attr_accessor :walltime
1702
+
1703
+ def initialize(**args)
1704
+ update!(**args)
1705
+ end
1706
+
1707
+ # Update properties of this object
1708
+ def update!(**args)
1709
+ @cue_type = args[:cue_type] if args.key?(:cue_type)
1710
+ @duration_secs = args[:duration_secs] if args.key?(:duration_secs)
1711
+ @offset_time_ms = args[:offset_time_ms] if args.key?(:offset_time_ms)
1712
+ @walltime = args[:walltime] if args.key?(:walltime)
1713
+ end
1714
+ end
1715
+
1716
+ #
1717
+ class Date
1718
+ include Google::Apis::Core::Hashable
1719
+
1720
+ # The date's day. The value should be an integer between 1 and 31. Note that
1721
+ # some day-month combinations are not valid.
1722
+ # Corresponds to the JSON property `day`
1723
+ # @return [Fixnum]
1724
+ attr_accessor :day
1725
+
1726
+ # The date's month. The value should be an integer between 1 and 12.
1727
+ # Corresponds to the JSON property `month`
1728
+ # @return [Fixnum]
1729
+ attr_accessor :month
1730
+
1731
+ # The date's year in the Gregorian Calendar. Assumed to be A.D.
1732
+ # Corresponds to the JSON property `year`
1733
+ # @return [Fixnum]
1734
+ attr_accessor :year
1735
+
1736
+ def initialize(**args)
1737
+ update!(**args)
1738
+ end
1739
+
1740
+ # Update properties of this object
1741
+ def update!(**args)
1742
+ @day = args[:day] if args.key?(:day)
1743
+ @month = args[:month] if args.key?(:month)
1744
+ @year = args[:year] if args.key?(:year)
1745
+ end
1746
+ end
1747
+
1748
+ #
1749
+ class DateRange
1750
+ include Google::Apis::Core::Hashable
1751
+
1752
+ # The end date (inclusive) for the date range. This value is required for video-
1753
+ # on-demand (VOD) orders and optional for electronic sell-through (EST) orders.
1754
+ # Corresponds to the JSON property `end`
1755
+ # @return [Google::Apis::YoutubePartnerV1::Date]
1756
+ attr_accessor :end
1757
+
1758
+ # Identifies this resource as order date range. Value: "youtubePartner#dateRange"
1759
+ # .
1760
+ # Corresponds to the JSON property `kind`
1761
+ # @return [String]
1762
+ attr_accessor :kind
1763
+
1764
+ # The start date for the date range. This value is required for all date ranges.
1765
+ # Corresponds to the JSON property `start`
1766
+ # @return [Google::Apis::YoutubePartnerV1::Date]
1767
+ attr_accessor :start
1768
+
1769
+ def initialize(**args)
1770
+ update!(**args)
1771
+ end
1772
+
1773
+ # Update properties of this object
1774
+ def update!(**args)
1775
+ @end = args[:end] if args.key?(:end)
1776
+ @kind = args[:kind] if args.key?(:kind)
1777
+ @start = args[:start] if args.key?(:start)
1778
+ end
1779
+ end
1780
+
1781
+ #
1782
+ class ExcludedInterval
1783
+ include Google::Apis::Core::Hashable
1784
+
1785
+ # The end (inclusive) time in seconds of the time window. The value can be any
1786
+ # value greater than low. If high is greater than the length of the reference,
1787
+ # the interval between low and the end of the reference will be excluded. Every
1788
+ # interval must specify a value for this field.
1789
+ # Corresponds to the JSON property `high`
1790
+ # @return [Float]
1791
+ attr_accessor :high
1792
+
1793
+ # The start (inclusive) time in seconds of the time window. The value can be any
1794
+ # value between 0 and high. Every interval must specify a value for this field.
1795
+ # Corresponds to the JSON property `low`
1796
+ # @return [Float]
1797
+ attr_accessor :low
1798
+
1799
+ # The source of the request to exclude the interval from Content ID matching.
1800
+ # Corresponds to the JSON property `origin`
1801
+ # @return [String]
1802
+ attr_accessor :origin
1803
+
1804
+ # The date and time that the exclusion was created. The value is specified in
1805
+ # RFC 3339 (YYYY-MM-DDThh:mm:ss.000Z) format.
1806
+ # Corresponds to the JSON property `timeCreated`
1807
+ # @return [DateTime]
1808
+ attr_accessor :time_created
1809
+
1810
+ def initialize(**args)
1811
+ update!(**args)
1812
+ end
1813
+
1814
+ # Update properties of this object
1815
+ def update!(**args)
1816
+ @high = args[:high] if args.key?(:high)
1817
+ @low = args[:low] if args.key?(:low)
1818
+ @origin = args[:origin] if args.key?(:origin)
1819
+ @time_created = args[:time_created] if args.key?(:time_created)
1820
+ end
1821
+ end
1822
+
1823
+ #
1824
+ class IntervalCondition
1825
+ include Google::Apis::Core::Hashable
1826
+
1827
+ # The maximum (inclusive) allowed value for the condition to be satisfied. The
1828
+ # default value is ∞.
1829
+ # Corresponds to the JSON property `high`
1830
+ # @return [Float]
1831
+ attr_accessor :high
1832
+
1833
+ # The minimum (inclusive) allowed value for the condition to be satisfied. The
1834
+ # default value is -∞.
1835
+ # Corresponds to the JSON property `low`
1836
+ # @return [Float]
1837
+ attr_accessor :low
1838
+
1839
+ def initialize(**args)
1840
+ update!(**args)
1841
+ end
1842
+
1843
+ # Update properties of this object
1844
+ def update!(**args)
1845
+ @high = args[:high] if args.key?(:high)
1846
+ @low = args[:low] if args.key?(:low)
1847
+ end
1848
+ end
1849
+
1850
+ #
1851
+ class LiveCuepoint
1852
+ include Google::Apis::Core::Hashable
1853
+
1854
+ # The ID that YouTube assigns to uniquely identify the broadcast into which the
1855
+ # cuepoint is being inserted.
1856
+ # Corresponds to the JSON property `broadcastId`
1857
+ # @return [String]
1858
+ attr_accessor :broadcast_id
1859
+
1860
+ # A value that YouTube assigns to uniquely identify the cuepoint.
1861
+ # Corresponds to the JSON property `id`
1862
+ # @return [String]
1863
+ attr_accessor :id
1864
+
1865
+ # The type of the API resource. For liveCuepoint resources, the value is
1866
+ # youtubePartner#liveCuepoint.
1867
+ # Corresponds to the JSON property `kind`
1868
+ # @return [String]
1869
+ attr_accessor :kind
1870
+
1871
+ # The settings object defines the cuepoint's settings.
1872
+ # Corresponds to the JSON property `settings`
1873
+ # @return [Google::Apis::YoutubePartnerV1::CuepointSettings]
1874
+ attr_accessor :settings
1875
+
1876
+ def initialize(**args)
1877
+ update!(**args)
1878
+ end
1879
+
1880
+ # Update properties of this object
1881
+ def update!(**args)
1882
+ @broadcast_id = args[:broadcast_id] if args.key?(:broadcast_id)
1883
+ @id = args[:id] if args.key?(:id)
1884
+ @kind = args[:kind] if args.key?(:kind)
1885
+ @settings = args[:settings] if args.key?(:settings)
1886
+ end
1887
+ end
1888
+
1889
+ #
1890
+ class MatchSegment
1891
+ include Google::Apis::Core::Hashable
1892
+
1893
+ # Identifies the manner in which the claimed video matches the reference video.
1894
+ # Corresponds to the JSON property `channel`
1895
+ # @return [String]
1896
+ attr_accessor :channel
1897
+
1898
+ # The reference_segment object contains information about the matched portion of
1899
+ # the reference content.
1900
+ # Corresponds to the JSON property `reference_segment`
1901
+ # @return [Google::Apis::YoutubePartnerV1::Segment]
1902
+ attr_accessor :reference_segment
1903
+
1904
+ # The video_segment object contains information about the matched portion of the
1905
+ # claimed video.
1906
+ # Corresponds to the JSON property `video_segment`
1907
+ # @return [Google::Apis::YoutubePartnerV1::Segment]
1908
+ attr_accessor :video_segment
1909
+
1910
+ def initialize(**args)
1911
+ update!(**args)
1912
+ end
1913
+
1914
+ # Update properties of this object
1915
+ def update!(**args)
1916
+ @channel = args[:channel] if args.key?(:channel)
1917
+ @reference_segment = args[:reference_segment] if args.key?(:reference_segment)
1918
+ @video_segment = args[:video_segment] if args.key?(:video_segment)
1919
+ end
1920
+ end
1921
+
1922
+ #
1923
+ class Metadata
1924
+ include Google::Apis::Core::Hashable
1925
+
1926
+ # A list that identifies actors associated with the asset. You can specify up to
1927
+ # 50 actors for an asset.
1928
+ # Corresponds to the JSON property `actor`
1929
+ # @return [Array<String>]
1930
+ attr_accessor :actor
1931
+
1932
+ # The album on which a sound recording asset is included. This field is only
1933
+ # valid for sound recording assets and has a maximum length of 255 bytes.
1934
+ # Corresponds to the JSON property `album`
1935
+ # @return [String]
1936
+ attr_accessor :album
1937
+
1938
+ # The artist associated with a music video or sound recording asset. This field
1939
+ # is only valid for music video and sound recording assets. It is required for
1940
+ # sound recordings included in the AudioSwap program.
1941
+ # Corresponds to the JSON property `artist`
1942
+ # @return [Array<String>]
1943
+ attr_accessor :artist
1944
+
1945
+ # Identifies the network or channel that originally broadcast a show or a season
1946
+ # of a show. This field should only be included for an asset if the broadcaster
1947
+ # associated with the asset is different from the partner uploading the asset to
1948
+ # YouTube. Note that a show may have multiple broadcasters; for example, a show
1949
+ # may switch networks between seasons.
1950
+ # Corresponds to the JSON property `broadcaster`
1951
+ # @return [Array<String>]
1952
+ attr_accessor :broadcaster
1953
+
1954
+ # Category of this asset.
1955
+ # Corresponds to the JSON property `category`
1956
+ # @return [String]
1957
+ attr_accessor :category
1958
+
1959
+ # The type of video content that the asset represents. This field is only valid
1960
+ # for movie and episode assets, and is required for the following types of those
1961
+ # assets:
1962
+ # - Episode assets that are linked to a show
1963
+ # - Movie assets that appear in YouTube's Movies category
1964
+ # Corresponds to the JSON property `contentType`
1965
+ # @return [String]
1966
+ attr_accessor :content_type
1967
+
1968
+ # The date copyright for this asset was established. *
1969
+ # Corresponds to the JSON property `copyrightDate`
1970
+ # @return [Google::Apis::YoutubePartnerV1::Date]
1971
+ attr_accessor :copyright_date
1972
+
1973
+ # A unique value that you, the metadata provider, use to identify an asset. The
1974
+ # value could be a unique ID that you created for the asset or a standard
1975
+ # identifier, such as an ISRC. The value has a maximum length of 64 bytes and
1976
+ # may contain alphanumeric characters, hyphens (-), underscores (_), periods (.),
1977
+ # "at" symbols (@), or forward slashes (/).
1978
+ # Corresponds to the JSON property `customId`
1979
+ # @return [String]
1980
+ attr_accessor :custom_id
1981
+
1982
+ # A description of the asset. The description may be displayed on YouTube or in
1983
+ # CMS. This field has a maximum length of 5,000 bytes.
1984
+ # Corresponds to the JSON property `description`
1985
+ # @return [String]
1986
+ attr_accessor :description
1987
+
1988
+ # A list that identifies directors associated with the asset. You can specify up
1989
+ # to 50 directors for an asset.
1990
+ # Corresponds to the JSON property `director`
1991
+ # @return [Array<String>]
1992
+ attr_accessor :director
1993
+
1994
+ # The Entertainment Identifier Registry (EIDR) assigned to an asset. This value
1995
+ # is only used for episode and movie assets and is optional in both cases. The
1996
+ # value contains a standard prefix for EIDR registry, followed by a forward
1997
+ # slash, a 20-character hexadecimal string, and an alphanumeric (0-9A-Z) check
1998
+ # character.
1999
+ # Corresponds to the JSON property `eidr`
2000
+ # @return [String]
2001
+ attr_accessor :eidr
2002
+
2003
+ # The last year that a television show aired. This value is only used for show
2004
+ # assets, for which it is optional. Do not specify a value if new show episodes
2005
+ # are still being created.
2006
+ # Corresponds to the JSON property `endYear`
2007
+ # @return [Fixnum]
2008
+ attr_accessor :end_year
2009
+
2010
+ # The episode number associated with an episode asset. This field is required
2011
+ # for and only used for episode assets that are linked to show assets. It has a
2012
+ # maximum length of 5 bytes.
2013
+ # Corresponds to the JSON property `episodeNumber`
2014
+ # @return [String]
2015
+ attr_accessor :episode_number
2016
+
2017
+ # This value indicates that the episodes associated with a particular show asset
2018
+ # or a particular season asset are untitled. An untitled show (or season) has
2019
+ # episodes which are identified by their episode number or date. If this field
2020
+ # is set to true, then YouTube will optimize the title displayed for associated
2021
+ # episodes.
2022
+ # Corresponds to the JSON property `episodesAreUntitled`
2023
+ # @return [Boolean]
2024
+ attr_accessor :episodes_are_untitled
2025
+ alias_method :episodes_are_untitled?, :episodes_are_untitled
2026
+
2027
+ # This field specifies a genre that can be used to categorize an asset. Assets
2028
+ # may be categorized in more than one genre, and YouTube uses different sets of
2029
+ # genres to categorize different types of assets. For example, Soaps might be a
2030
+ # valid genre for a show but not for a movie or sound recording.
2031
+ # - Show assets
2032
+ # - Movie assets that appear in YouTube's Movies category
2033
+ # - Sound recordings included in the AudioSwap program
2034
+ # Corresponds to the JSON property `genre`
2035
+ # @return [Array<String>]
2036
+ attr_accessor :genre
2037
+
2038
+ # The GRID (Global Release Identifier) of a music video or sound recording. This
2039
+ # field's value must contain exactly 18 alphanumeric characters.
2040
+ # Corresponds to the JSON property `grid`
2041
+ # @return [String]
2042
+ attr_accessor :grid
2043
+
2044
+ # The six-character Harry Fox Agency (HFA) song code issued to uniquely identify
2045
+ # a composition. This value is only valid for composition assets.
2046
+ # Corresponds to the JSON property `hfa`
2047
+ # @return [String]
2048
+ attr_accessor :hfa
2049
+
2050
+ # An official URL associated with the asset. This field has a maximum length of
2051
+ # 1536 bytes. Please do not submit a 1537-byte URL. Your efforts would be futile.
2052
+ # Corresponds to the JSON property `infoUrl`
2053
+ # @return [String]
2054
+ attr_accessor :info_url
2055
+
2056
+ # The ISAN (International Standard Audiovisual Number) for the asset. This value
2057
+ # is only used for episode and movie assets and is optional in both cases. The
2058
+ # value contains 26 characters, which includes the 24 hexadecimal characters of
2059
+ # the ISAN as well as two check characters, in the following format:
2060
+ # - The first 16 characters in the tag value contain hexadecimal characters
2061
+ # specifying the 'root' and 'episode' components of the ISAN.
2062
+ # - The seventeenth character is a check character (a letter from A-Z).
2063
+ # - Characters 18 to 25 are the remaining eight characters of the ISAN, which
2064
+ # specify the 'version' component of the ISAN.
2065
+ # - The twenty-sixth character is another check character (A-Z).
2066
+ # Corresponds to the JSON property `isan`
2067
+ # @return [String]
2068
+ attr_accessor :isan
2069
+
2070
+ # The ISRC (International Standard Recording Code) of a music video or sound
2071
+ # recording asset. This field's value must contain exactly 12 alphanumeric
2072
+ # characters.
2073
+ # Corresponds to the JSON property `isrc`
2074
+ # @return [String]
2075
+ attr_accessor :isrc
2076
+
2077
+ # The ISWC (International Standard Musical Work Code) for a composition asset.
2078
+ # The field's value must contain exactly 11 characters in the format of a letter
2079
+ # (T) followed by 10 digits.
2080
+ # Corresponds to the JSON property `iswc`
2081
+ # @return [String]
2082
+ attr_accessor :iswc
2083
+
2084
+ # A list of up to 100 keywords associated with a show asset. This field is
2085
+ # required for and also only used for show assets.
2086
+ # Corresponds to the JSON property `keyword`
2087
+ # @return [Array<String>]
2088
+ attr_accessor :keyword
2089
+
2090
+ # The record label that released a sound recording asset. This field is only
2091
+ # valid for sound recording assets and has a maximum length of 255 bytes.
2092
+ # Corresponds to the JSON property `label`
2093
+ # @return [String]
2094
+ attr_accessor :label
2095
+
2096
+ # Additional information that does not map directly to one of the other metadata
2097
+ # fields. This field has a maximum length of 255 bytes.
2098
+ # Corresponds to the JSON property `notes`
2099
+ # @return [String]
2100
+ attr_accessor :notes
2101
+
2102
+ # The method by which people first had the opportunity to see a video asset.
2103
+ # This value is only used for episode and movie assets. It is required for the
2104
+ # assets listed below and otherwise optional:
2105
+ # - Episode assets that are linked to a show
2106
+ # - Movie assets that appear in YouTube's Movies category
2107
+ # Corresponds to the JSON property `originalReleaseMedium`
2108
+ # @return [String]
2109
+ attr_accessor :original_release_medium
2110
+
2111
+ # A list that identifies producers of the asset. You can specify up to 50
2112
+ # producers for an asset.
2113
+ # Corresponds to the JSON property `producer`
2114
+ # @return [Array<String>]
2115
+ attr_accessor :producer
2116
+
2117
+ # A list of ratings that an asset received. The rating must be valid under the
2118
+ # specified rating system.
2119
+ # Corresponds to the JSON property `ratings`
2120
+ # @return [Array<Google::Apis::YoutubePartnerV1::Rating>]
2121
+ attr_accessor :ratings
2122
+
2123
+ # The date that an asset was publicly released. For season assets, this value
2124
+ # specifies the first date that the season aired. Dates prior to the year 1902
2125
+ # are not supported. This value is valid for episode, season, movie, music video,
2126
+ # and sound recording assets. It is required for the assets listed below and
2127
+ # otherwise optional:
2128
+ # - Episode assets that are linked to a show
2129
+ # - Movie assets that appear in YouTube's Movies category
2130
+ # Corresponds to the JSON property `releaseDate`
2131
+ # @return [Google::Apis::YoutubePartnerV1::Date]
2132
+ attr_accessor :release_date
2133
+
2134
+ # The season number that identifies a season asset, or the season number that is
2135
+ # associated with an episode asset. This field has a maximum length of 5 bytes.
2136
+ # Corresponds to the JSON property `seasonNumber`
2137
+ # @return [String]
2138
+ attr_accessor :season_number
2139
+
2140
+ # The customId of the show asset that a season or episode asset is associated
2141
+ # with. It is required for season and episode assets that appear in the Shows
2142
+ # category on YouTube, and it is not valid for other types of assets. This field
2143
+ # has a maximum length of 64 bytes and may contain alphanumeric characters,
2144
+ # hyphens (-), underscores (_), periods (.), "at" symbols (@), or forward
2145
+ # slashes (/).
2146
+ # Corresponds to the JSON property `showCustomId`
2147
+ # @return [String]
2148
+ attr_accessor :show_custom_id
2149
+
2150
+ # The name of the show that an episode asset is associated with. Note: This tag
2151
+ # is only used for and valid for episodes that are not associated with show
2152
+ # assets and enables those assets to still display a show title in the asset
2153
+ # metadata section of CMS. This field has a maximum length of 120 bytes.
2154
+ # Corresponds to the JSON property `showTitle`
2155
+ # @return [String]
2156
+ attr_accessor :show_title
2157
+
2158
+ # The video's primary spoken language. The value can be any ISO 639-1 two-letter
2159
+ # language code. This value is only used for episode and movie assets and is not
2160
+ # valid for other types of assets.
2161
+ # Corresponds to the JSON property `spokenLanguage`
2162
+ # @return [String]
2163
+ attr_accessor :spoken_language
2164
+
2165
+ # The first year that a television show aired. This value is required for and
2166
+ # also only used for show assets.
2167
+ # Corresponds to the JSON property `startYear`
2168
+ # @return [Fixnum]
2169
+ attr_accessor :start_year
2170
+
2171
+ # A list of languages for which the video has either a separate caption track or
2172
+ # burnt-in captions that are part of the video. Each value in the list should be
2173
+ # an ISO 639-1 two-letter language code. This value is only used for episode and
2174
+ # movie assets and is not valid for other types of assets.
2175
+ # Corresponds to the JSON property `subtitledLanguage`
2176
+ # @return [Array<String>]
2177
+ attr_accessor :subtitled_language
2178
+
2179
+ # The asset's title or name. The value has a maximum length of 255 bytes. This
2180
+ # value is required for the assets listed below and optional for all other
2181
+ # assets:
2182
+ # - Show assets
2183
+ # - Episode assets that are linked to a show
2184
+ # - Movie assets that appear in YouTube's Movies category
2185
+ # - Sound recordings included in the AudioSwap program
2186
+ # Corresponds to the JSON property `title`
2187
+ # @return [String]
2188
+ attr_accessor :title
2189
+
2190
+ # TMS (Tribune Media Systems) ID for the asset.
2191
+ # Corresponds to the JSON property `tmsId`
2192
+ # @return [String]
2193
+ attr_accessor :tms_id
2194
+
2195
+ # Specifies the total number of full-length episodes in the season. This value
2196
+ # is used only for season assets.
2197
+ # Corresponds to the JSON property `totalEpisodesExpected`
2198
+ # @return [Fixnum]
2199
+ attr_accessor :total_episodes_expected
2200
+
2201
+ # The UPC (Universal Product Code) associated with the asset.
2202
+ # Corresponds to the JSON property `upc`
2203
+ # @return [String]
2204
+ attr_accessor :upc
2205
+
2206
+ # A list that identifies writers associated with the asset. You can specify up
2207
+ # to 50 writers for an asset.
2208
+ # Corresponds to the JSON property `writer`
2209
+ # @return [Array<String>]
2210
+ attr_accessor :writer
2211
+
2212
+ def initialize(**args)
2213
+ update!(**args)
2214
+ end
2215
+
2216
+ # Update properties of this object
2217
+ def update!(**args)
2218
+ @actor = args[:actor] if args.key?(:actor)
2219
+ @album = args[:album] if args.key?(:album)
2220
+ @artist = args[:artist] if args.key?(:artist)
2221
+ @broadcaster = args[:broadcaster] if args.key?(:broadcaster)
2222
+ @category = args[:category] if args.key?(:category)
2223
+ @content_type = args[:content_type] if args.key?(:content_type)
2224
+ @copyright_date = args[:copyright_date] if args.key?(:copyright_date)
2225
+ @custom_id = args[:custom_id] if args.key?(:custom_id)
2226
+ @description = args[:description] if args.key?(:description)
2227
+ @director = args[:director] if args.key?(:director)
2228
+ @eidr = args[:eidr] if args.key?(:eidr)
2229
+ @end_year = args[:end_year] if args.key?(:end_year)
2230
+ @episode_number = args[:episode_number] if args.key?(:episode_number)
2231
+ @episodes_are_untitled = args[:episodes_are_untitled] if args.key?(:episodes_are_untitled)
2232
+ @genre = args[:genre] if args.key?(:genre)
2233
+ @grid = args[:grid] if args.key?(:grid)
2234
+ @hfa = args[:hfa] if args.key?(:hfa)
2235
+ @info_url = args[:info_url] if args.key?(:info_url)
2236
+ @isan = args[:isan] if args.key?(:isan)
2237
+ @isrc = args[:isrc] if args.key?(:isrc)
2238
+ @iswc = args[:iswc] if args.key?(:iswc)
2239
+ @keyword = args[:keyword] if args.key?(:keyword)
2240
+ @label = args[:label] if args.key?(:label)
2241
+ @notes = args[:notes] if args.key?(:notes)
2242
+ @original_release_medium = args[:original_release_medium] if args.key?(:original_release_medium)
2243
+ @producer = args[:producer] if args.key?(:producer)
2244
+ @ratings = args[:ratings] if args.key?(:ratings)
2245
+ @release_date = args[:release_date] if args.key?(:release_date)
2246
+ @season_number = args[:season_number] if args.key?(:season_number)
2247
+ @show_custom_id = args[:show_custom_id] if args.key?(:show_custom_id)
2248
+ @show_title = args[:show_title] if args.key?(:show_title)
2249
+ @spoken_language = args[:spoken_language] if args.key?(:spoken_language)
2250
+ @start_year = args[:start_year] if args.key?(:start_year)
2251
+ @subtitled_language = args[:subtitled_language] if args.key?(:subtitled_language)
2252
+ @title = args[:title] if args.key?(:title)
2253
+ @tms_id = args[:tms_id] if args.key?(:tms_id)
2254
+ @total_episodes_expected = args[:total_episodes_expected] if args.key?(:total_episodes_expected)
2255
+ @upc = args[:upc] if args.key?(:upc)
2256
+ @writer = args[:writer] if args.key?(:writer)
2257
+ end
2258
+ end
2259
+
2260
+ #
2261
+ class MetadataHistory
2262
+ include Google::Apis::Core::Hashable
2263
+
2264
+ # The type of the API resource. For metadata history resources, the value is
2265
+ # youtubePartner#metadataHistory.
2266
+ # Corresponds to the JSON property `kind`
2267
+ # @return [String]
2268
+ attr_accessor :kind
2269
+
2270
+ # The metadata object contains the metadata provided by the specified source (
2271
+ # origination) at the specified time (timeProvided).
2272
+ # Corresponds to the JSON property `metadata`
2273
+ # @return [Google::Apis::YoutubePartnerV1::Metadata]
2274
+ attr_accessor :metadata
2275
+
2276
+ # The origination object contains information that describes the metadata source.
2277
+ # Corresponds to the JSON property `origination`
2278
+ # @return [Google::Apis::YoutubePartnerV1::Origination]
2279
+ attr_accessor :origination
2280
+
2281
+ # The time the metadata was provided.
2282
+ # Corresponds to the JSON property `timeProvided`
2283
+ # @return [DateTime]
2284
+ attr_accessor :time_provided
2285
+
2286
+ def initialize(**args)
2287
+ update!(**args)
2288
+ end
2289
+
2290
+ # Update properties of this object
2291
+ def update!(**args)
2292
+ @kind = args[:kind] if args.key?(:kind)
2293
+ @metadata = args[:metadata] if args.key?(:metadata)
2294
+ @origination = args[:origination] if args.key?(:origination)
2295
+ @time_provided = args[:time_provided] if args.key?(:time_provided)
2296
+ end
2297
+ end
2298
+
2299
+ #
2300
+ class MetadataHistoryListResponse
2301
+ include Google::Apis::Core::Hashable
2302
+
2303
+ # A list of metadata history (youtubePartner#metadataHistory) resources that
2304
+ # match the request criteria.
2305
+ # Corresponds to the JSON property `items`
2306
+ # @return [Array<Google::Apis::YoutubePartnerV1::MetadataHistory>]
2307
+ attr_accessor :items
2308
+
2309
+ # The type of the API response. For this operation, the value is youtubePartner#
2310
+ # metadataHistoryList.
2311
+ # Corresponds to the JSON property `kind`
2312
+ # @return [String]
2313
+ attr_accessor :kind
2314
+
2315
+ def initialize(**args)
2316
+ update!(**args)
2317
+ end
2318
+
2319
+ # Update properties of this object
2320
+ def update!(**args)
2321
+ @items = args[:items] if args.key?(:items)
2322
+ @kind = args[:kind] if args.key?(:kind)
2323
+ end
2324
+ end
2325
+
2326
+ #
2327
+ class Order
2328
+ include Google::Apis::Core::Hashable
2329
+
2330
+ # Links an order to the avails associated with it.
2331
+ # Corresponds to the JSON property `availGroupId`
2332
+ # @return [String]
2333
+ attr_accessor :avail_group_id
2334
+
2335
+ # Channel ID - identifies the channel this order and video are associated with
2336
+ # Corresponds to the JSON property `channelId`
2337
+ # @return [String]
2338
+ attr_accessor :channel_id
2339
+
2340
+ # Type of content possible values are
2341
+ # - MOVIE
2342
+ # - SHOW
2343
+ # Corresponds to the JSON property `contentType`
2344
+ # @return [String]
2345
+ attr_accessor :content_type
2346
+
2347
+ # Two letter country code for the order only countries where YouTube does
2348
+ # transactional business are allowed.
2349
+ # Corresponds to the JSON property `country`
2350
+ # @return [String]
2351
+ attr_accessor :country
2352
+
2353
+ # Secondary id to be used to identify content in other systems like partner
2354
+ # database
2355
+ # Corresponds to the JSON property `customId`
2356
+ # @return [String]
2357
+ attr_accessor :custom_id
2358
+
2359
+ # Date when this content was first made available on DVD
2360
+ # Corresponds to the JSON property `dvdReleaseDate`
2361
+ # @return [Google::Apis::YoutubePartnerV1::Date]
2362
+ attr_accessor :dvd_release_date
2363
+
2364
+ # Range of time content is to be available for rental.
2365
+ # Corresponds to the JSON property `estDates`
2366
+ # @return [Google::Apis::YoutubePartnerV1::DateRange]
2367
+ attr_accessor :est_dates
2368
+
2369
+ # History log of events for this order
2370
+ # Corresponds to the JSON property `events`
2371
+ # @return [Array<Google::Apis::YoutubePartnerV1::StateCompleted>]
2372
+ attr_accessor :events
2373
+
2374
+ # Order Id unique identifier for an order.
2375
+ # Corresponds to the JSON property `id`
2376
+ # @return [String]
2377
+ attr_accessor :id
2378
+
2379
+ # Identifies this resource as order. Value: "youtubePartner#order".
2380
+ # Corresponds to the JSON property `kind`
2381
+ # @return [String]
2382
+ attr_accessor :kind
2383
+
2384
+ # Title if the order is type movie.
2385
+ # Corresponds to the JSON property `movie`
2386
+ # @return [String]
2387
+ attr_accessor :movie
2388
+
2389
+ # Date when this content was first made available to the public
2390
+ # Corresponds to the JSON property `originalReleaseDate`
2391
+ # @return [Google::Apis::YoutubePartnerV1::Date]
2392
+ attr_accessor :original_release_date
2393
+
2394
+ # The priority for the order in the QC review queue once the content is ready
2395
+ # for QC.
2396
+ # Corresponds to the JSON property `priority`
2397
+ # @return [String]
2398
+ attr_accessor :priority
2399
+
2400
+ # Post production house that is to process this order
2401
+ # Corresponds to the JSON property `productionHouse`
2402
+ # @return [String]
2403
+ attr_accessor :production_house
2404
+
2405
+ # Youtube purchase order reference for the post production house.
2406
+ # Corresponds to the JSON property `purchaseOrder`
2407
+ # @return [String]
2408
+ attr_accessor :purchase_order
2409
+
2410
+ # Minumim set of requirements for this order to be complete such as is a trailer
2411
+ # required.
2412
+ # Corresponds to the JSON property `requirements`
2413
+ # @return [Google::Apis::YoutubePartnerV1::Requirements]
2414
+ attr_accessor :requirements
2415
+
2416
+ # Details of a show, show name, season number, episode etc.
2417
+ # Corresponds to the JSON property `show`
2418
+ # @return [Google::Apis::YoutubePartnerV1::ShowDetails]
2419
+ attr_accessor :show
2420
+
2421
+ # The order's status.
2422
+ # Corresponds to the JSON property `status`
2423
+ # @return [String]
2424
+ attr_accessor :status
2425
+
2426
+ # Video ID the video that this order is associated with if any.
2427
+ # Corresponds to the JSON property `videoId`
2428
+ # @return [String]
2429
+ attr_accessor :video_id
2430
+
2431
+ # Range of time content is to be available for purchase.
2432
+ # Corresponds to the JSON property `vodDates`
2433
+ # @return [Google::Apis::YoutubePartnerV1::DateRange]
2434
+ attr_accessor :vod_dates
2435
+
2436
+ def initialize(**args)
2437
+ update!(**args)
2438
+ end
2439
+
2440
+ # Update properties of this object
2441
+ def update!(**args)
2442
+ @avail_group_id = args[:avail_group_id] if args.key?(:avail_group_id)
2443
+ @channel_id = args[:channel_id] if args.key?(:channel_id)
2444
+ @content_type = args[:content_type] if args.key?(:content_type)
2445
+ @country = args[:country] if args.key?(:country)
2446
+ @custom_id = args[:custom_id] if args.key?(:custom_id)
2447
+ @dvd_release_date = args[:dvd_release_date] if args.key?(:dvd_release_date)
2448
+ @est_dates = args[:est_dates] if args.key?(:est_dates)
2449
+ @events = args[:events] if args.key?(:events)
2450
+ @id = args[:id] if args.key?(:id)
2451
+ @kind = args[:kind] if args.key?(:kind)
2452
+ @movie = args[:movie] if args.key?(:movie)
2453
+ @original_release_date = args[:original_release_date] if args.key?(:original_release_date)
2454
+ @priority = args[:priority] if args.key?(:priority)
2455
+ @production_house = args[:production_house] if args.key?(:production_house)
2456
+ @purchase_order = args[:purchase_order] if args.key?(:purchase_order)
2457
+ @requirements = args[:requirements] if args.key?(:requirements)
2458
+ @show = args[:show] if args.key?(:show)
2459
+ @status = args[:status] if args.key?(:status)
2460
+ @video_id = args[:video_id] if args.key?(:video_id)
2461
+ @vod_dates = args[:vod_dates] if args.key?(:vod_dates)
2462
+ end
2463
+ end
2464
+
2465
+ #
2466
+ class OrderListResponse
2467
+ include Google::Apis::Core::Hashable
2468
+
2469
+ # A list of orders that match the request criteria.
2470
+ # Corresponds to the JSON property `items`
2471
+ # @return [Array<Google::Apis::YoutubePartnerV1::Order>]
2472
+ attr_accessor :items
2473
+
2474
+ # The type of the API response. For this operation, the value is youtubePartner#
2475
+ # orderList.
2476
+ # Corresponds to the JSON property `kind`
2477
+ # @return [String]
2478
+ attr_accessor :kind
2479
+
2480
+ # The token that can be used as the value of the pageToken parameter to retrieve
2481
+ # the next page in the result set.
2482
+ # Corresponds to the JSON property `nextPageToken`
2483
+ # @return [String]
2484
+ attr_accessor :next_page_token
2485
+
2486
+ # The pageInfo object encapsulates paging information for the result set.
2487
+ # Corresponds to the JSON property `pageInfo`
2488
+ # @return [Google::Apis::YoutubePartnerV1::PageInfo]
2489
+ attr_accessor :page_info
2490
+
2491
+ # The token that can be used as the value of the pageToken parameter to retrieve
2492
+ # the previous page in the result set.
2493
+ # Corresponds to the JSON property `previousPageToken`
2494
+ # @return [String]
2495
+ attr_accessor :previous_page_token
2496
+
2497
+ def initialize(**args)
2498
+ update!(**args)
2499
+ end
2500
+
2501
+ # Update properties of this object
2502
+ def update!(**args)
2503
+ @items = args[:items] if args.key?(:items)
2504
+ @kind = args[:kind] if args.key?(:kind)
2505
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2506
+ @page_info = args[:page_info] if args.key?(:page_info)
2507
+ @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
2508
+ end
2509
+ end
2510
+
2511
+ #
2512
+ class Origination
2513
+ include Google::Apis::Core::Hashable
2514
+
2515
+ # The content owner who provided the metadata or ownership information.
2516
+ # Corresponds to the JSON property `owner`
2517
+ # @return [String]
2518
+ attr_accessor :owner
2519
+
2520
+ # The mechanism by which the piece of metadata, ownership or relationship
2521
+ # information was provided.
2522
+ # Corresponds to the JSON property `source`
2523
+ # @return [String]
2524
+ attr_accessor :source
2525
+
2526
+ def initialize(**args)
2527
+ update!(**args)
2528
+ end
2529
+
2530
+ # Update properties of this object
2531
+ def update!(**args)
2532
+ @owner = args[:owner] if args.key?(:owner)
2533
+ @source = args[:source] if args.key?(:source)
2534
+ end
2535
+ end
2536
+
2537
+ #
2538
+ class OwnershipConflicts
2539
+ include Google::Apis::Core::Hashable
2540
+
2541
+ # A list that identifies ownership conflicts of an asset and the territories
2542
+ # where conflicting ownership is inserted.
2543
+ # Corresponds to the JSON property `general`
2544
+ # @return [Array<Google::Apis::YoutubePartnerV1::TerritoryConflicts>]
2545
+ attr_accessor :general
2546
+
2547
+ # The type of the API resource. For ownershipConflicts resources, the value is
2548
+ # youtubePartner#ownershipConflicts.
2549
+ # Corresponds to the JSON property `kind`
2550
+ # @return [String]
2551
+ attr_accessor :kind
2552
+
2553
+ # A list that identifies ownership conflicts of the mechanical rights for a
2554
+ # composition asset and the territories where conflicting ownership is inserted.
2555
+ # Corresponds to the JSON property `mechanical`
2556
+ # @return [Array<Google::Apis::YoutubePartnerV1::TerritoryConflicts>]
2557
+ attr_accessor :mechanical
2558
+
2559
+ # A list that identifies ownership conflicts of the performance rights for a
2560
+ # composition asset and the territories where conflicting ownership is inserted.
2561
+ # Corresponds to the JSON property `performance`
2562
+ # @return [Array<Google::Apis::YoutubePartnerV1::TerritoryConflicts>]
2563
+ attr_accessor :performance
2564
+
2565
+ # A list that identifies ownership conflicts of the synchronization rights for a
2566
+ # composition asset and the territories where conflicting ownership is inserted.
2567
+ # Corresponds to the JSON property `synchronization`
2568
+ # @return [Array<Google::Apis::YoutubePartnerV1::TerritoryConflicts>]
2569
+ attr_accessor :synchronization
2570
+
2571
+ def initialize(**args)
2572
+ update!(**args)
2573
+ end
2574
+
2575
+ # Update properties of this object
2576
+ def update!(**args)
2577
+ @general = args[:general] if args.key?(:general)
2578
+ @kind = args[:kind] if args.key?(:kind)
2579
+ @mechanical = args[:mechanical] if args.key?(:mechanical)
2580
+ @performance = args[:performance] if args.key?(:performance)
2581
+ @synchronization = args[:synchronization] if args.key?(:synchronization)
2582
+ end
2583
+ end
2584
+
2585
+ #
2586
+ class OwnershipHistoryListResponse
2587
+ include Google::Apis::Core::Hashable
2588
+
2589
+ # A list of ownership history (youtubePartner#ownershipHistory) resources that
2590
+ # match the request criteria.
2591
+ # Corresponds to the JSON property `items`
2592
+ # @return [Array<Google::Apis::YoutubePartnerV1::RightsOwnershipHistory>]
2593
+ attr_accessor :items
2594
+
2595
+ # The type of the API response. For this operation, the value is youtubePartner#
2596
+ # ownershipHistoryList.
2597
+ # Corresponds to the JSON property `kind`
2598
+ # @return [String]
2599
+ attr_accessor :kind
2600
+
2601
+ def initialize(**args)
2602
+ update!(**args)
2603
+ end
2604
+
2605
+ # Update properties of this object
2606
+ def update!(**args)
2607
+ @items = args[:items] if args.key?(:items)
2608
+ @kind = args[:kind] if args.key?(:kind)
2609
+ end
2610
+ end
2611
+
2612
+ #
2613
+ class PageInfo
2614
+ include Google::Apis::Core::Hashable
2615
+
2616
+ # The number of results included in the API response.
2617
+ # Corresponds to the JSON property `resultsPerPage`
2618
+ # @return [Fixnum]
2619
+ attr_accessor :results_per_page
2620
+
2621
+ # The index of the first item in the API response.
2622
+ # Corresponds to the JSON property `startIndex`
2623
+ # @return [Fixnum]
2624
+ attr_accessor :start_index
2625
+
2626
+ # The total number of results in the result set.
2627
+ # Corresponds to the JSON property `totalResults`
2628
+ # @return [Fixnum]
2629
+ attr_accessor :total_results
2630
+
2631
+ def initialize(**args)
2632
+ update!(**args)
2633
+ end
2634
+
2635
+ # Update properties of this object
2636
+ def update!(**args)
2637
+ @results_per_page = args[:results_per_page] if args.key?(:results_per_page)
2638
+ @start_index = args[:start_index] if args.key?(:start_index)
2639
+ @total_results = args[:total_results] if args.key?(:total_results)
2640
+ end
2641
+ end
2642
+
2643
+ #
2644
+ class Policy
2645
+ include Google::Apis::Core::Hashable
2646
+
2647
+ # The policy's description.
2648
+ # Corresponds to the JSON property `description`
2649
+ # @return [String]
2650
+ attr_accessor :description
2651
+
2652
+ # A value that YouTube assigns and uses to uniquely identify the policy.
2653
+ # Corresponds to the JSON property `id`
2654
+ # @return [String]
2655
+ attr_accessor :id
2656
+
2657
+ # Identifies this as a policy. Value: "youtubePartner#policy"
2658
+ # Corresponds to the JSON property `kind`
2659
+ # @return [String]
2660
+ attr_accessor :kind
2661
+
2662
+ # The policy's name.
2663
+ # Corresponds to the JSON property `name`
2664
+ # @return [String]
2665
+ attr_accessor :name
2666
+
2667
+ # A list of rules that specify the action that YouTube should take and may
2668
+ # optionally specify the conditions under which that action is enforced.
2669
+ # Corresponds to the JSON property `rules`
2670
+ # @return [Array<Google::Apis::YoutubePartnerV1::PolicyRule>]
2671
+ attr_accessor :rules
2672
+
2673
+ # The time the policy was updated.
2674
+ # Corresponds to the JSON property `timeUpdated`
2675
+ # @return [DateTime]
2676
+ attr_accessor :time_updated
2677
+
2678
+ def initialize(**args)
2679
+ update!(**args)
2680
+ end
2681
+
2682
+ # Update properties of this object
2683
+ def update!(**args)
2684
+ @description = args[:description] if args.key?(:description)
2685
+ @id = args[:id] if args.key?(:id)
2686
+ @kind = args[:kind] if args.key?(:kind)
2687
+ @name = args[:name] if args.key?(:name)
2688
+ @rules = args[:rules] if args.key?(:rules)
2689
+ @time_updated = args[:time_updated] if args.key?(:time_updated)
2690
+ end
2691
+ end
2692
+
2693
+ #
2694
+ class PolicyList
2695
+ include Google::Apis::Core::Hashable
2696
+
2697
+ # A list of saved policies.
2698
+ # Corresponds to the JSON property `items`
2699
+ # @return [Array<Google::Apis::YoutubePartnerV1::Policy>]
2700
+ attr_accessor :items
2701
+
2702
+ # The type of the API response. For this operation, the value is youtubePartner#
2703
+ # policyList.
2704
+ # Corresponds to the JSON property `kind`
2705
+ # @return [String]
2706
+ attr_accessor :kind
2707
+
2708
+ def initialize(**args)
2709
+ update!(**args)
2710
+ end
2711
+
2712
+ # Update properties of this object
2713
+ def update!(**args)
2714
+ @items = args[:items] if args.key?(:items)
2715
+ @kind = args[:kind] if args.key?(:kind)
2716
+ end
2717
+ end
2718
+
2719
+ #
2720
+ class PolicyRule
2721
+ include Google::Apis::Core::Hashable
2722
+
2723
+ # The policy that YouTube should enforce if the rule's conditions are all valid
2724
+ # for an asset or for an attempt to view that asset on YouTube.
2725
+ # Corresponds to the JSON property `action`
2726
+ # @return [String]
2727
+ attr_accessor :action
2728
+
2729
+ # A set of conditions that must be met for the rule's action (and subactions) to
2730
+ # be enforced. For a rule to be valid, all of its conditions must be met.
2731
+ # Corresponds to the JSON property `conditions`
2732
+ # @return [Google::Apis::YoutubePartnerV1::Conditions]
2733
+ attr_accessor :conditions
2734
+
2735
+ # A list of additional actions that YouTube should take if the conditions in the
2736
+ # rule are met.
2737
+ # Corresponds to the JSON property `subaction`
2738
+ # @return [Array<String>]
2739
+ attr_accessor :subaction
2740
+
2741
+ def initialize(**args)
2742
+ update!(**args)
2743
+ end
2744
+
2745
+ # Update properties of this object
2746
+ def update!(**args)
2747
+ @action = args[:action] if args.key?(:action)
2748
+ @conditions = args[:conditions] if args.key?(:conditions)
2749
+ @subaction = args[:subaction] if args.key?(:subaction)
2750
+ end
2751
+ end
2752
+
2753
+ #
2754
+ class PromotedContent
2755
+ include Google::Apis::Core::Hashable
2756
+
2757
+ # A list of link targets that will be used to generate the annotation link that
2758
+ # appears on videos included in the campaign. If more than one link is
2759
+ # specified, the link that is displayed to viewers will be randomly selected
2760
+ # from the list.
2761
+ # Corresponds to the JSON property `link`
2762
+ # @return [Array<Google::Apis::YoutubePartnerV1::CampaignTargetLink>]
2763
+ attr_accessor :link
2764
+
2765
+ def initialize(**args)
2766
+ update!(**args)
2767
+ end
2768
+
2769
+ # Update properties of this object
2770
+ def update!(**args)
2771
+ @link = args[:link] if args.key?(:link)
2772
+ end
2773
+ end
2774
+
2775
+ #
2776
+ class Publisher
2777
+ include Google::Apis::Core::Hashable
2778
+
2779
+ # The publisher's unique CAE (Compositeur, Auteur and Editeur) number.
2780
+ # Corresponds to the JSON property `caeNumber`
2781
+ # @return [String]
2782
+ attr_accessor :cae_number
2783
+
2784
+ # A value that YouTube assigns and uses to uniquely identify the publisher.
2785
+ # Corresponds to the JSON property `id`
2786
+ # @return [String]
2787
+ attr_accessor :id
2788
+
2789
+ # The publisher's unique IPI (Interested Parties Information) code.
2790
+ # Corresponds to the JSON property `ipiNumber`
2791
+ # @return [String]
2792
+ attr_accessor :ipi_number
2793
+
2794
+ # The type of the API resource. For this resource, the value is youtubePartner#
2795
+ # publisher.
2796
+ # Corresponds to the JSON property `kind`
2797
+ # @return [String]
2798
+ attr_accessor :kind
2799
+
2800
+ # The publisher's name.
2801
+ # Corresponds to the JSON property `name`
2802
+ # @return [String]
2803
+ attr_accessor :name
2804
+
2805
+ def initialize(**args)
2806
+ update!(**args)
2807
+ end
2808
+
2809
+ # Update properties of this object
2810
+ def update!(**args)
2811
+ @cae_number = args[:cae_number] if args.key?(:cae_number)
2812
+ @id = args[:id] if args.key?(:id)
2813
+ @ipi_number = args[:ipi_number] if args.key?(:ipi_number)
2814
+ @kind = args[:kind] if args.key?(:kind)
2815
+ @name = args[:name] if args.key?(:name)
2816
+ end
2817
+ end
2818
+
2819
+ #
2820
+ class PublisherList
2821
+ include Google::Apis::Core::Hashable
2822
+
2823
+ # A list of publishers that match the request criteria.
2824
+ # Corresponds to the JSON property `items`
2825
+ # @return [Array<Google::Apis::YoutubePartnerV1::Publisher>]
2826
+ attr_accessor :items
2827
+
2828
+ # The type of the API response. For this operation, the value is youtubePartner#
2829
+ # publisherList.
2830
+ # Corresponds to the JSON property `kind`
2831
+ # @return [String]
2832
+ attr_accessor :kind
2833
+
2834
+ # The token that can be used as the value of the pageToken parameter to retrieve
2835
+ # the next page in the result set.
2836
+ # Corresponds to the JSON property `nextPageToken`
2837
+ # @return [String]
2838
+ attr_accessor :next_page_token
2839
+
2840
+ # The pageInfo object encapsulates paging information for the result set.
2841
+ # Corresponds to the JSON property `pageInfo`
2842
+ # @return [Google::Apis::YoutubePartnerV1::PageInfo]
2843
+ attr_accessor :page_info
2844
+
2845
+ def initialize(**args)
2846
+ update!(**args)
2847
+ end
2848
+
2849
+ # Update properties of this object
2850
+ def update!(**args)
2851
+ @items = args[:items] if args.key?(:items)
2852
+ @kind = args[:kind] if args.key?(:kind)
2853
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2854
+ @page_info = args[:page_info] if args.key?(:page_info)
2855
+ end
2856
+ end
2857
+
2858
+ #
2859
+ class Rating
2860
+ include Google::Apis::Core::Hashable
2861
+
2862
+ # The rating that the asset received.
2863
+ # Corresponds to the JSON property `rating`
2864
+ # @return [String]
2865
+ attr_accessor :rating
2866
+
2867
+ # The rating system associated with the rating.
2868
+ # Corresponds to the JSON property `ratingSystem`
2869
+ # @return [String]
2870
+ attr_accessor :rating_system
2871
+
2872
+ def initialize(**args)
2873
+ update!(**args)
2874
+ end
2875
+
2876
+ # Update properties of this object
2877
+ def update!(**args)
2878
+ @rating = args[:rating] if args.key?(:rating)
2879
+ @rating_system = args[:rating_system] if args.key?(:rating_system)
2880
+ end
2881
+ end
2882
+
2883
+ #
2884
+ class Reference
2885
+ include Google::Apis::Core::Hashable
2886
+
2887
+ # The ID that uniquely identifies the asset that the reference is associated
2888
+ # with.
2889
+ # Corresponds to the JSON property `assetId`
2890
+ # @return [String]
2891
+ attr_accessor :asset_id
2892
+
2893
+ # Set this field's value to true to indicate that the reference content should
2894
+ # be included in YouTube's AudioSwap program.
2895
+ # Corresponds to the JSON property `audioswapEnabled`
2896
+ # @return [Boolean]
2897
+ attr_accessor :audioswap_enabled
2898
+ alias_method :audioswap_enabled?, :audioswap_enabled
2899
+
2900
+ # This field is present if the reference was created by associating an asset
2901
+ # with an existing YouTube video that was uploaded to a YouTube channel linked
2902
+ # to your CMS account. In that case, this field contains the ID of the claim
2903
+ # representing the resulting association between the asset and the video.
2904
+ # Corresponds to the JSON property `claimId`
2905
+ # @return [String]
2906
+ attr_accessor :claim_id
2907
+
2908
+ # The type of content that the reference represents.
2909
+ # Corresponds to the JSON property `contentType`
2910
+ # @return [String]
2911
+ attr_accessor :content_type
2912
+
2913
+ # The ID that uniquely identifies the reference that this reference duplicates.
2914
+ # This field is only present if the reference's status is duplicate_on_hold.
2915
+ # Corresponds to the JSON property `duplicateLeader`
2916
+ # @return [String]
2917
+ attr_accessor :duplicate_leader
2918
+
2919
+ # The list of time intervals from this reference that will be ignored during the
2920
+ # match process.
2921
+ # Corresponds to the JSON property `excludedIntervals`
2922
+ # @return [Array<Google::Apis::YoutubePartnerV1::ExcludedInterval>]
2923
+ attr_accessor :excluded_intervals
2924
+
2925
+ # When uploading a reference, set this value to true to indicate that the
2926
+ # reference is a pre-generated fingerprint.
2927
+ # Corresponds to the JSON property `fpDirect`
2928
+ # @return [Boolean]
2929
+ attr_accessor :fp_direct
2930
+ alias_method :fp_direct?, :fp_direct
2931
+
2932
+ # The MD5 hashcode of the reference content.
2933
+ # Corresponds to the JSON property `hashCode`
2934
+ # @return [String]
2935
+ attr_accessor :hash_code
2936
+
2937
+ # A value that YouTube assigns and uses to uniquely identify a reference.
2938
+ # Corresponds to the JSON property `id`
2939
+ # @return [String]
2940
+ attr_accessor :id
2941
+
2942
+ # Set this value to true to indicate that the reference should not be used to
2943
+ # generate claims. This field is only used on AudioSwap references.
2944
+ # Corresponds to the JSON property `ignoreFpMatch`
2945
+ # @return [Boolean]
2946
+ attr_accessor :ignore_fp_match
2947
+ alias_method :ignore_fp_match?, :ignore_fp_match
2948
+
2949
+ # The type of the API resource. For reference resources, the value is
2950
+ # youtubePartner#reference.
2951
+ # Corresponds to the JSON property `kind`
2952
+ # @return [String]
2953
+ attr_accessor :kind
2954
+
2955
+ # The length of the reference in seconds.
2956
+ # Corresponds to the JSON property `length`
2957
+ # @return [Float]
2958
+ attr_accessor :length
2959
+
2960
+ # The origination object contains information that describes the reference
2961
+ # source.
2962
+ # Corresponds to the JSON property `origination`
2963
+ # @return [Google::Apis::YoutubePartnerV1::Origination]
2964
+ attr_accessor :origination
2965
+
2966
+ # The reference's status.
2967
+ # Corresponds to the JSON property `status`
2968
+ # @return [String]
2969
+ attr_accessor :status
2970
+
2971
+ # An explanation of how a reference entered its current state. This value is
2972
+ # only present if the reference's status is either inactive or deleted.
2973
+ # Corresponds to the JSON property `statusReason`
2974
+ # @return [String]
2975
+ attr_accessor :status_reason
2976
+
2977
+ # Set this value to true to indicate that YouTube should prioritize Content ID
2978
+ # processing for a video file. YouTube processes urgent video files before other
2979
+ # files that are not marked as urgent. This setting is primarily used for videos
2980
+ # of live events or other videos that require time-sensitive processing. The
2981
+ # sooner YouTube completes Content ID processing for a video, the sooner YouTube
2982
+ # can match user-uploaded videos to that video.
2983
+ # Note that marking all of your files as urgent could delay processing for those
2984
+ # files.
2985
+ # Corresponds to the JSON property `urgent`
2986
+ # @return [Boolean]
2987
+ attr_accessor :urgent
2988
+ alias_method :urgent?, :urgent
2989
+
2990
+ # This field is present if the reference was created by associating an asset
2991
+ # with an existing YouTube video that was uploaded to a YouTube channel linked
2992
+ # to your CMS account. In that case, this field contains the ID of the source
2993
+ # video.
2994
+ # Corresponds to the JSON property `videoId`
2995
+ # @return [String]
2996
+ attr_accessor :video_id
2997
+
2998
+ def initialize(**args)
2999
+ update!(**args)
3000
+ end
3001
+
3002
+ # Update properties of this object
3003
+ def update!(**args)
3004
+ @asset_id = args[:asset_id] if args.key?(:asset_id)
3005
+ @audioswap_enabled = args[:audioswap_enabled] if args.key?(:audioswap_enabled)
3006
+ @claim_id = args[:claim_id] if args.key?(:claim_id)
3007
+ @content_type = args[:content_type] if args.key?(:content_type)
3008
+ @duplicate_leader = args[:duplicate_leader] if args.key?(:duplicate_leader)
3009
+ @excluded_intervals = args[:excluded_intervals] if args.key?(:excluded_intervals)
3010
+ @fp_direct = args[:fp_direct] if args.key?(:fp_direct)
3011
+ @hash_code = args[:hash_code] if args.key?(:hash_code)
3012
+ @id = args[:id] if args.key?(:id)
3013
+ @ignore_fp_match = args[:ignore_fp_match] if args.key?(:ignore_fp_match)
3014
+ @kind = args[:kind] if args.key?(:kind)
3015
+ @length = args[:length] if args.key?(:length)
3016
+ @origination = args[:origination] if args.key?(:origination)
3017
+ @status = args[:status] if args.key?(:status)
3018
+ @status_reason = args[:status_reason] if args.key?(:status_reason)
3019
+ @urgent = args[:urgent] if args.key?(:urgent)
3020
+ @video_id = args[:video_id] if args.key?(:video_id)
3021
+ end
3022
+ end
3023
+
3024
+ #
3025
+ class ReferenceConflict
3026
+ include Google::Apis::Core::Hashable
3027
+
3028
+ # An id of a conflicting reference.
3029
+ # Corresponds to the JSON property `conflictingReferenceId`
3030
+ # @return [String]
3031
+ attr_accessor :conflicting_reference_id
3032
+
3033
+ # Conflict review expiry time.
3034
+ # Corresponds to the JSON property `expiryTime`
3035
+ # @return [DateTime]
3036
+ attr_accessor :expiry_time
3037
+
3038
+ # A value that YouTube assigns and uses to uniquely identify a reference
3039
+ # conflict.
3040
+ # Corresponds to the JSON property `id`
3041
+ # @return [String]
3042
+ attr_accessor :id
3043
+
3044
+ # The type of the API resource. For referenceConflict resources, the value is
3045
+ # youtubePartner#referenceConflict.
3046
+ # Corresponds to the JSON property `kind`
3047
+ # @return [String]
3048
+ attr_accessor :kind
3049
+
3050
+ # The list of matches between conflicting and original references at the time of
3051
+ # conflict creation.
3052
+ # Corresponds to the JSON property `matches`
3053
+ # @return [Array<Google::Apis::YoutubePartnerV1::ReferenceConflictMatch>]
3054
+ attr_accessor :matches
3055
+
3056
+ # An id of an original reference.
3057
+ # Corresponds to the JSON property `originalReferenceId`
3058
+ # @return [String]
3059
+ attr_accessor :original_reference_id
3060
+
3061
+ # The referenceConflict's status.
3062
+ # Corresponds to the JSON property `status`
3063
+ # @return [String]
3064
+ attr_accessor :status
3065
+
3066
+ def initialize(**args)
3067
+ update!(**args)
3068
+ end
3069
+
3070
+ # Update properties of this object
3071
+ def update!(**args)
3072
+ @conflicting_reference_id = args[:conflicting_reference_id] if args.key?(:conflicting_reference_id)
3073
+ @expiry_time = args[:expiry_time] if args.key?(:expiry_time)
3074
+ @id = args[:id] if args.key?(:id)
3075
+ @kind = args[:kind] if args.key?(:kind)
3076
+ @matches = args[:matches] if args.key?(:matches)
3077
+ @original_reference_id = args[:original_reference_id] if args.key?(:original_reference_id)
3078
+ @status = args[:status] if args.key?(:status)
3079
+ end
3080
+ end
3081
+
3082
+ #
3083
+ class ReferenceConflictListResponse
3084
+ include Google::Apis::Core::Hashable
3085
+
3086
+ # A list of reference conflicts that match the request criteria.
3087
+ # Corresponds to the JSON property `items`
3088
+ # @return [Array<Google::Apis::YoutubePartnerV1::ReferenceConflict>]
3089
+ attr_accessor :items
3090
+
3091
+ # The type of the API response. For this operation, the value is youtubePartner#
3092
+ # referenceConflictList.
3093
+ # Corresponds to the JSON property `kind`
3094
+ # @return [String]
3095
+ attr_accessor :kind
3096
+
3097
+ # The token that can be used as the value of the pageToken parameter to retrieve
3098
+ # the next page in the result set.
3099
+ # Corresponds to the JSON property `nextPageToken`
3100
+ # @return [String]
3101
+ attr_accessor :next_page_token
3102
+
3103
+ # The pageInfo object encapsulates paging information for the result set.
3104
+ # Corresponds to the JSON property `pageInfo`
3105
+ # @return [Google::Apis::YoutubePartnerV1::PageInfo]
3106
+ attr_accessor :page_info
3107
+
3108
+ def initialize(**args)
3109
+ update!(**args)
3110
+ end
3111
+
3112
+ # Update properties of this object
3113
+ def update!(**args)
3114
+ @items = args[:items] if args.key?(:items)
3115
+ @kind = args[:kind] if args.key?(:kind)
3116
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3117
+ @page_info = args[:page_info] if args.key?(:page_info)
3118
+ end
3119
+ end
3120
+
3121
+ #
3122
+ class ReferenceConflictMatch
3123
+ include Google::Apis::Core::Hashable
3124
+
3125
+ # Conflicting reference offset in milliseconds.
3126
+ # Corresponds to the JSON property `conflicting_reference_offset_ms`
3127
+ # @return [String]
3128
+ attr_accessor :conflicting_reference_offset_ms
3129
+
3130
+ # Match length in milliseconds.
3131
+ # Corresponds to the JSON property `length_ms`
3132
+ # @return [String]
3133
+ attr_accessor :length_ms
3134
+
3135
+ # Original reference offset in milliseconds.
3136
+ # Corresponds to the JSON property `original_reference_offset_ms`
3137
+ # @return [String]
3138
+ attr_accessor :original_reference_offset_ms
3139
+
3140
+ # The referenceConflictMatch's type.
3141
+ # Corresponds to the JSON property `type`
3142
+ # @return [String]
3143
+ attr_accessor :type
3144
+
3145
+ def initialize(**args)
3146
+ update!(**args)
3147
+ end
3148
+
3149
+ # Update properties of this object
3150
+ def update!(**args)
3151
+ @conflicting_reference_offset_ms = args[:conflicting_reference_offset_ms] if args.key?(:conflicting_reference_offset_ms)
3152
+ @length_ms = args[:length_ms] if args.key?(:length_ms)
3153
+ @original_reference_offset_ms = args[:original_reference_offset_ms] if args.key?(:original_reference_offset_ms)
3154
+ @type = args[:type] if args.key?(:type)
3155
+ end
3156
+ end
3157
+
3158
+ #
3159
+ class ReferenceListResponse
3160
+ include Google::Apis::Core::Hashable
3161
+
3162
+ # A list of references that match the request criteria.
3163
+ # Corresponds to the JSON property `items`
3164
+ # @return [Array<Google::Apis::YoutubePartnerV1::Reference>]
3165
+ attr_accessor :items
3166
+
3167
+ # The type of the API response. For this operation, the value is youtubePartner#
3168
+ # referenceList.
3169
+ # Corresponds to the JSON property `kind`
3170
+ # @return [String]
3171
+ attr_accessor :kind
3172
+
3173
+ # The token that can be used as the value of the pageToken parameter to retrieve
3174
+ # the next page in the result set.
3175
+ # Corresponds to the JSON property `nextPageToken`
3176
+ # @return [String]
3177
+ attr_accessor :next_page_token
3178
+
3179
+ # The pageInfo object encapsulates paging information for the result set.
3180
+ # Corresponds to the JSON property `pageInfo`
3181
+ # @return [Google::Apis::YoutubePartnerV1::PageInfo]
3182
+ attr_accessor :page_info
3183
+
3184
+ def initialize(**args)
3185
+ update!(**args)
3186
+ end
3187
+
3188
+ # Update properties of this object
3189
+ def update!(**args)
3190
+ @items = args[:items] if args.key?(:items)
3191
+ @kind = args[:kind] if args.key?(:kind)
3192
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3193
+ @page_info = args[:page_info] if args.key?(:page_info)
3194
+ end
3195
+ end
3196
+
3197
+ #
3198
+ class Requirements
3199
+ include Google::Apis::Core::Hashable
3200
+
3201
+ # This value indicates whether the order requires closed captions.
3202
+ # Corresponds to the JSON property `caption`
3203
+ # @return [Boolean]
3204
+ attr_accessor :caption
3205
+ alias_method :caption?, :caption
3206
+
3207
+ # This value indicates whether the order requires HD-quality video.
3208
+ # Corresponds to the JSON property `hdTranscode`
3209
+ # @return [Boolean]
3210
+ attr_accessor :hd_transcode
3211
+ alias_method :hd_transcode?, :hd_transcode
3212
+
3213
+ # This value indicates whether the order requires poster artwork.
3214
+ # Corresponds to the JSON property `posterArt`
3215
+ # @return [Boolean]
3216
+ attr_accessor :poster_art
3217
+ alias_method :poster_art?, :poster_art
3218
+
3219
+ # This value indicates whether the order requires spotlight artwork.
3220
+ # Corresponds to the JSON property `spotlightArt`
3221
+ # @return [Boolean]
3222
+ attr_accessor :spotlight_art
3223
+ alias_method :spotlight_art?, :spotlight_art
3224
+
3225
+ # This value indicates whether the spotlight artwork for the order needs to be
3226
+ # reviewed.
3227
+ # Corresponds to the JSON property `spotlightReview`
3228
+ # @return [Boolean]
3229
+ attr_accessor :spotlight_review
3230
+ alias_method :spotlight_review?, :spotlight_review
3231
+
3232
+ # This value indicates whether the order requires a trailer.
3233
+ # Corresponds to the JSON property `trailer`
3234
+ # @return [Boolean]
3235
+ attr_accessor :trailer
3236
+ alias_method :trailer?, :trailer
3237
+
3238
+ def initialize(**args)
3239
+ update!(**args)
3240
+ end
3241
+
3242
+ # Update properties of this object
3243
+ def update!(**args)
3244
+ @caption = args[:caption] if args.key?(:caption)
3245
+ @hd_transcode = args[:hd_transcode] if args.key?(:hd_transcode)
3246
+ @poster_art = args[:poster_art] if args.key?(:poster_art)
3247
+ @spotlight_art = args[:spotlight_art] if args.key?(:spotlight_art)
3248
+ @spotlight_review = args[:spotlight_review] if args.key?(:spotlight_review)
3249
+ @trailer = args[:trailer] if args.key?(:trailer)
3250
+ end
3251
+ end
3252
+
3253
+ #
3254
+ class RightsOwnership
3255
+ include Google::Apis::Core::Hashable
3256
+
3257
+ # A list that identifies the owners of an asset and the territories where each
3258
+ # owner has ownership. General asset ownership is used for all types of assets
3259
+ # and is the only type of ownership data that can be provided for assets that
3260
+ # are not compositions.
3261
+ # Note: You cannot specify general ownership rights and also specify either
3262
+ # mechanical, performance, or synchronization rights.
3263
+ # Corresponds to the JSON property `general`
3264
+ # @return [Array<Google::Apis::YoutubePartnerV1::TerritoryOwners>]
3265
+ attr_accessor :general
3266
+
3267
+ # The type of the API resource. For rightsOwnership resources, the value is
3268
+ # youtubePartner#rightsOwnership.
3269
+ # Corresponds to the JSON property `kind`
3270
+ # @return [String]
3271
+ attr_accessor :kind
3272
+
3273
+ # A list that identifies owners of the mechanical rights for a composition asset.
3274
+ # Corresponds to the JSON property `mechanical`
3275
+ # @return [Array<Google::Apis::YoutubePartnerV1::TerritoryOwners>]
3276
+ attr_accessor :mechanical
3277
+
3278
+ # A list that identifies owners of the performance rights for a composition
3279
+ # asset.
3280
+ # Corresponds to the JSON property `performance`
3281
+ # @return [Array<Google::Apis::YoutubePartnerV1::TerritoryOwners>]
3282
+ attr_accessor :performance
3283
+
3284
+ # A list that identifies owners of the synchronization rights for a composition
3285
+ # asset.
3286
+ # Corresponds to the JSON property `synchronization`
3287
+ # @return [Array<Google::Apis::YoutubePartnerV1::TerritoryOwners>]
3288
+ attr_accessor :synchronization
3289
+
3290
+ def initialize(**args)
3291
+ update!(**args)
3292
+ end
3293
+
3294
+ # Update properties of this object
3295
+ def update!(**args)
3296
+ @general = args[:general] if args.key?(:general)
3297
+ @kind = args[:kind] if args.key?(:kind)
3298
+ @mechanical = args[:mechanical] if args.key?(:mechanical)
3299
+ @performance = args[:performance] if args.key?(:performance)
3300
+ @synchronization = args[:synchronization] if args.key?(:synchronization)
3301
+ end
3302
+ end
3303
+
3304
+ #
3305
+ class RightsOwnershipHistory
3306
+ include Google::Apis::Core::Hashable
3307
+
3308
+ # The type of the API resource. For ownership history resources, the value is
3309
+ # youtubePartner#rightsOwnershipHistory.
3310
+ # Corresponds to the JSON property `kind`
3311
+ # @return [String]
3312
+ attr_accessor :kind
3313
+
3314
+ # The origination object contains information that describes the metadata source.
3315
+ # Corresponds to the JSON property `origination`
3316
+ # @return [Google::Apis::YoutubePartnerV1::Origination]
3317
+ attr_accessor :origination
3318
+
3319
+ # The ownership object contains the ownership data provided by the specified
3320
+ # source (origination) at the specified time (timeProvided).
3321
+ # Corresponds to the JSON property `ownership`
3322
+ # @return [Google::Apis::YoutubePartnerV1::RightsOwnership]
3323
+ attr_accessor :ownership
3324
+
3325
+ # The time that the ownership data was provided.
3326
+ # Corresponds to the JSON property `timeProvided`
3327
+ # @return [DateTime]
3328
+ attr_accessor :time_provided
3329
+
3330
+ def initialize(**args)
3331
+ update!(**args)
3332
+ end
3333
+
3334
+ # Update properties of this object
3335
+ def update!(**args)
3336
+ @kind = args[:kind] if args.key?(:kind)
3337
+ @origination = args[:origination] if args.key?(:origination)
3338
+ @ownership = args[:ownership] if args.key?(:ownership)
3339
+ @time_provided = args[:time_provided] if args.key?(:time_provided)
3340
+ end
3341
+ end
3342
+
3343
+ #
3344
+ class Segment
3345
+ include Google::Apis::Core::Hashable
3346
+
3347
+ # The duration of the segment in milliseconds.
3348
+ # Corresponds to the JSON property `duration`
3349
+ # @return [String]
3350
+ attr_accessor :duration
3351
+
3352
+ # The type of the API resource. For segment resources, the value is
3353
+ # youtubePartner#segment.
3354
+ # Corresponds to the JSON property `kind`
3355
+ # @return [String]
3356
+ attr_accessor :kind
3357
+
3358
+ # The start time of the segment, measured in milliseconds from the beginning.
3359
+ # Corresponds to the JSON property `start`
3360
+ # @return [String]
3361
+ attr_accessor :start
3362
+
3363
+ def initialize(**args)
3364
+ update!(**args)
3365
+ end
3366
+
3367
+ # Update properties of this object
3368
+ def update!(**args)
3369
+ @duration = args[:duration] if args.key?(:duration)
3370
+ @kind = args[:kind] if args.key?(:kind)
3371
+ @start = args[:start] if args.key?(:start)
3372
+ end
3373
+ end
3374
+
3375
+ #
3376
+ class ShowDetails
3377
+ include Google::Apis::Core::Hashable
3378
+
3379
+ # The episode number associated with the episode.
3380
+ # Corresponds to the JSON property `episodeNumber`
3381
+ # @return [String]
3382
+ attr_accessor :episode_number
3383
+
3384
+ # The episode's title.
3385
+ # Corresponds to the JSON property `episodeTitle`
3386
+ # @return [String]
3387
+ attr_accessor :episode_title
3388
+
3389
+ # The season number associated with the episode.
3390
+ # Corresponds to the JSON property `seasonNumber`
3391
+ # @return [String]
3392
+ attr_accessor :season_number
3393
+
3394
+ # The show's title
3395
+ # Corresponds to the JSON property `title`
3396
+ # @return [String]
3397
+ attr_accessor :title
3398
+
3399
+ def initialize(**args)
3400
+ update!(**args)
3401
+ end
3402
+
3403
+ # Update properties of this object
3404
+ def update!(**args)
3405
+ @episode_number = args[:episode_number] if args.key?(:episode_number)
3406
+ @episode_title = args[:episode_title] if args.key?(:episode_title)
3407
+ @season_number = args[:season_number] if args.key?(:season_number)
3408
+ @title = args[:title] if args.key?(:title)
3409
+ end
3410
+ end
3411
+
3412
+ #
3413
+ class StateCompleted
3414
+ include Google::Apis::Core::Hashable
3415
+
3416
+ # The state that the order entered.
3417
+ # Corresponds to the JSON property `state`
3418
+ # @return [String]
3419
+ attr_accessor :state
3420
+
3421
+ # The time that the state transition occurred.
3422
+ # Corresponds to the JSON property `timeCompleted`
3423
+ # @return [String]
3424
+ attr_accessor :time_completed
3425
+
3426
+ def initialize(**args)
3427
+ update!(**args)
3428
+ end
3429
+
3430
+ # Update properties of this object
3431
+ def update!(**args)
3432
+ @state = args[:state] if args.key?(:state)
3433
+ @time_completed = args[:time_completed] if args.key?(:time_completed)
3434
+ end
3435
+ end
3436
+
3437
+ #
3438
+ class TerritoryCondition
3439
+ include Google::Apis::Core::Hashable
3440
+
3441
+ # A list of territories. Each territory is an ISO 3166 two-letter country code..
3442
+ # Corresponds to the JSON property `territories`
3443
+ # @return [Array<String>]
3444
+ attr_accessor :territories
3445
+
3446
+ # This field indicates whether the associated policy rule is or is not valid in
3447
+ # the specified territories.
3448
+ # Corresponds to the JSON property `type`
3449
+ # @return [String]
3450
+ attr_accessor :type
3451
+
3452
+ def initialize(**args)
3453
+ update!(**args)
3454
+ end
3455
+
3456
+ # Update properties of this object
3457
+ def update!(**args)
3458
+ @territories = args[:territories] if args.key?(:territories)
3459
+ @type = args[:type] if args.key?(:type)
3460
+ end
3461
+ end
3462
+
3463
+ #
3464
+ class TerritoryConflicts
3465
+ include Google::Apis::Core::Hashable
3466
+
3467
+ # A list of conflicting ownerships.
3468
+ # Corresponds to the JSON property `conflictingOwnership`
3469
+ # @return [Array<Google::Apis::YoutubePartnerV1::ConflictingOwnership>]
3470
+ attr_accessor :conflicting_ownership
3471
+
3472
+ # A territories where the ownership conflict is present. Territory is an ISO
3473
+ # 3166 two-letter country code..
3474
+ # Corresponds to the JSON property `territory`
3475
+ # @return [String]
3476
+ attr_accessor :territory
3477
+
3478
+ def initialize(**args)
3479
+ update!(**args)
3480
+ end
3481
+
3482
+ # Update properties of this object
3483
+ def update!(**args)
3484
+ @conflicting_ownership = args[:conflicting_ownership] if args.key?(:conflicting_ownership)
3485
+ @territory = args[:territory] if args.key?(:territory)
3486
+ end
3487
+ end
3488
+
3489
+ #
3490
+ class TerritoryOwners
3491
+ include Google::Apis::Core::Hashable
3492
+
3493
+ # The name of the asset's owner or rights administrator.
3494
+ # Corresponds to the JSON property `owner`
3495
+ # @return [String]
3496
+ attr_accessor :owner
3497
+
3498
+ # The name of the asset's publisher. This field is only used for composition
3499
+ # assets, and it is used when the asset owner is not known to have a formal
3500
+ # relationship established with YouTube.
3501
+ # Corresponds to the JSON property `publisher`
3502
+ # @return [String]
3503
+ attr_accessor :publisher
3504
+
3505
+ # The percentage of the asset that the owner controls or administers. For
3506
+ # composition assets, the value can be any value between 0 and 100 inclusive.
3507
+ # For all other assets, the only valid values are 100, which indicates that the
3508
+ # owner completely owns the asset in the specified territories, and 0, which
3509
+ # indicates that you are removing ownership of the asset in the specified
3510
+ # territories.
3511
+ # Corresponds to the JSON property `ratio`
3512
+ # @return [Float]
3513
+ attr_accessor :ratio
3514
+
3515
+ # A list of territories where the owner owns (or does not own) the asset. Each
3516
+ # territory is an ISO 3166 two-letter country code..
3517
+ # Corresponds to the JSON property `territories`
3518
+ # @return [Array<String>]
3519
+ attr_accessor :territories
3520
+
3521
+ # This field indicates whether the ownership data applies or does not apply in
3522
+ # the specified territories.
3523
+ # Corresponds to the JSON property `type`
3524
+ # @return [String]
3525
+ attr_accessor :type
3526
+
3527
+ def initialize(**args)
3528
+ update!(**args)
3529
+ end
3530
+
3531
+ # Update properties of this object
3532
+ def update!(**args)
3533
+ @owner = args[:owner] if args.key?(:owner)
3534
+ @publisher = args[:publisher] if args.key?(:publisher)
3535
+ @ratio = args[:ratio] if args.key?(:ratio)
3536
+ @territories = args[:territories] if args.key?(:territories)
3537
+ @type = args[:type] if args.key?(:type)
3538
+ end
3539
+ end
3540
+
3541
+ #
3542
+ class ValidateError
3543
+ include Google::Apis::Core::Hashable
3544
+
3545
+ # The column name where the error occurred.
3546
+ # Corresponds to the JSON property `columnName`
3547
+ # @return [String]
3548
+ attr_accessor :column_name
3549
+
3550
+ # The column number where the error occurred (1-based).
3551
+ # Corresponds to the JSON property `columnNumber`
3552
+ # @return [Fixnum]
3553
+ attr_accessor :column_number
3554
+
3555
+ # The line number where the error occurred (1-based).
3556
+ # Corresponds to the JSON property `lineNumber`
3557
+ # @return [Fixnum]
3558
+ attr_accessor :line_number
3559
+
3560
+ # The error message.
3561
+ # Corresponds to the JSON property `message`
3562
+ # @return [String]
3563
+ attr_accessor :message
3564
+
3565
+ # The code for the error message (if one exists).
3566
+ # Corresponds to the JSON property `messageCode`
3567
+ # @return [Fixnum]
3568
+ attr_accessor :message_code
3569
+
3570
+ # The error severity.
3571
+ # Corresponds to the JSON property `severity`
3572
+ # @return [String]
3573
+ attr_accessor :severity
3574
+
3575
+ def initialize(**args)
3576
+ update!(**args)
3577
+ end
3578
+
3579
+ # Update properties of this object
3580
+ def update!(**args)
3581
+ @column_name = args[:column_name] if args.key?(:column_name)
3582
+ @column_number = args[:column_number] if args.key?(:column_number)
3583
+ @line_number = args[:line_number] if args.key?(:line_number)
3584
+ @message = args[:message] if args.key?(:message)
3585
+ @message_code = args[:message_code] if args.key?(:message_code)
3586
+ @severity = args[:severity] if args.key?(:severity)
3587
+ end
3588
+ end
3589
+
3590
+ #
3591
+ class ValidateRequest
3592
+ include Google::Apis::Core::Hashable
3593
+
3594
+ # The metadata file contents.
3595
+ # Corresponds to the JSON property `content`
3596
+ # @return [String]
3597
+ attr_accessor :content
3598
+
3599
+ # The type of the API resource. For this operation, the value is youtubePartner#
3600
+ # validateRequest.
3601
+ # Corresponds to the JSON property `kind`
3602
+ # @return [String]
3603
+ attr_accessor :kind
3604
+
3605
+ # The desired locale of the error messages as defined in BCP 47 (http://tools.
3606
+ # ietf.org/html/bcp47). For example, "en-US" or "de". If not specified we will
3607
+ # return the error messages in English ("en").
3608
+ # Corresponds to the JSON property `locale`
3609
+ # @return [String]
3610
+ attr_accessor :locale
3611
+
3612
+ # The uploader name.
3613
+ # Corresponds to the JSON property `uploaderName`
3614
+ # @return [String]
3615
+ attr_accessor :uploader_name
3616
+
3617
+ def initialize(**args)
3618
+ update!(**args)
3619
+ end
3620
+
3621
+ # Update properties of this object
3622
+ def update!(**args)
3623
+ @content = args[:content] if args.key?(:content)
3624
+ @kind = args[:kind] if args.key?(:kind)
3625
+ @locale = args[:locale] if args.key?(:locale)
3626
+ @uploader_name = args[:uploader_name] if args.key?(:uploader_name)
3627
+ end
3628
+ end
3629
+
3630
+ #
3631
+ class ValidateResponse
3632
+ include Google::Apis::Core::Hashable
3633
+
3634
+ # The list of errors and/or warnings.
3635
+ # Corresponds to the JSON property `errors`
3636
+ # @return [Array<Google::Apis::YoutubePartnerV1::ValidateError>]
3637
+ attr_accessor :errors
3638
+
3639
+ # The type of the API resource. For this operation, the value is youtubePartner#
3640
+ # validateResponse.
3641
+ # Corresponds to the JSON property `kind`
3642
+ # @return [String]
3643
+ attr_accessor :kind
3644
+
3645
+ # The validation status.
3646
+ # Corresponds to the JSON property `status`
3647
+ # @return [String]
3648
+ attr_accessor :status
3649
+
3650
+ def initialize(**args)
3651
+ update!(**args)
3652
+ end
3653
+
3654
+ # Update properties of this object
3655
+ def update!(**args)
3656
+ @errors = args[:errors] if args.key?(:errors)
3657
+ @kind = args[:kind] if args.key?(:kind)
3658
+ @status = args[:status] if args.key?(:status)
3659
+ end
3660
+ end
3661
+
3662
+ #
3663
+ class VideoAdvertisingOption
3664
+ include Google::Apis::Core::Hashable
3665
+
3666
+ # A list of times when YouTube can show an in-stream advertisement during
3667
+ # playback of the video.
3668
+ # Corresponds to the JSON property `adBreaks`
3669
+ # @return [Array<Google::Apis::YoutubePartnerV1::AdBreak>]
3670
+ attr_accessor :ad_breaks
3671
+
3672
+ # A list of ad formats that the video is allowed to show.
3673
+ # Corresponds to the JSON property `adFormats`
3674
+ # @return [Array<String>]
3675
+ attr_accessor :ad_formats
3676
+
3677
+ # Enables this video for automatically generated midroll breaks.
3678
+ # Corresponds to the JSON property `autoGeneratedBreaks`
3679
+ # @return [Boolean]
3680
+ attr_accessor :auto_generated_breaks
3681
+ alias_method :auto_generated_breaks?, :auto_generated_breaks
3682
+
3683
+ # The point at which the break occurs during the video playback.
3684
+ # Corresponds to the JSON property `breakPosition`
3685
+ # @return [Array<String>]
3686
+ attr_accessor :break_position
3687
+
3688
+ # The ID that YouTube uses to uniquely identify the video associated with the
3689
+ # advertising settings.
3690
+ # Corresponds to the JSON property `id`
3691
+ # @return [String]
3692
+ attr_accessor :id
3693
+
3694
+ # The type of the API resource. For this resource, the value is youtubePartner#
3695
+ # videoAdvertisingOption.
3696
+ # Corresponds to the JSON property `kind`
3697
+ # @return [String]
3698
+ attr_accessor :kind
3699
+
3700
+ # A value that uniquely identifies the video to the third-party ad server.
3701
+ # Corresponds to the JSON property `tpAdServerVideoId`
3702
+ # @return [String]
3703
+ attr_accessor :tp_ad_server_video_id
3704
+
3705
+ # The base URL for a third-party ad server from which YouTube can retrieve in-
3706
+ # stream ads for the video.
3707
+ # Corresponds to the JSON property `tpTargetingUrl`
3708
+ # @return [String]
3709
+ attr_accessor :tp_targeting_url
3710
+
3711
+ # A parameter string to append to the end of the request to the third-party ad
3712
+ # server.
3713
+ # Corresponds to the JSON property `tpUrlParameters`
3714
+ # @return [String]
3715
+ attr_accessor :tp_url_parameters
3716
+
3717
+ def initialize(**args)
3718
+ update!(**args)
3719
+ end
3720
+
3721
+ # Update properties of this object
3722
+ def update!(**args)
3723
+ @ad_breaks = args[:ad_breaks] if args.key?(:ad_breaks)
3724
+ @ad_formats = args[:ad_formats] if args.key?(:ad_formats)
3725
+ @auto_generated_breaks = args[:auto_generated_breaks] if args.key?(:auto_generated_breaks)
3726
+ @break_position = args[:break_position] if args.key?(:break_position)
3727
+ @id = args[:id] if args.key?(:id)
3728
+ @kind = args[:kind] if args.key?(:kind)
3729
+ @tp_ad_server_video_id = args[:tp_ad_server_video_id] if args.key?(:tp_ad_server_video_id)
3730
+ @tp_targeting_url = args[:tp_targeting_url] if args.key?(:tp_targeting_url)
3731
+ @tp_url_parameters = args[:tp_url_parameters] if args.key?(:tp_url_parameters)
3732
+ end
3733
+ end
3734
+
3735
+ #
3736
+ class VideoAdvertisingOptionGetEnabledAdsResponse
3737
+ include Google::Apis::Core::Hashable
3738
+
3739
+ # A list of ad breaks that occur in a claimed YouTube video.
3740
+ # Corresponds to the JSON property `adBreaks`
3741
+ # @return [Array<Google::Apis::YoutubePartnerV1::AdBreak>]
3742
+ attr_accessor :ad_breaks
3743
+
3744
+ # This field indicates whether YouTube can show ads when the video is played in
3745
+ # an embedded player.
3746
+ # Corresponds to the JSON property `adsOnEmbeds`
3747
+ # @return [Boolean]
3748
+ attr_accessor :ads_on_embeds
3749
+ alias_method :ads_on_embeds?, :ads_on_embeds
3750
+
3751
+ # A list that identifies the countries where ads can run and the types of ads
3752
+ # allowed in those countries.
3753
+ # Corresponds to the JSON property `countriesRestriction`
3754
+ # @return [Array<Google::Apis::YoutubePartnerV1::CountriesRestriction>]
3755
+ attr_accessor :countries_restriction
3756
+
3757
+ # The ID that YouTube uses to uniquely identify the claimed video.
3758
+ # Corresponds to the JSON property `id`
3759
+ # @return [String]
3760
+ attr_accessor :id
3761
+
3762
+ # The type of the API resource. For this resource, the value is youtubePartner#
3763
+ # videoAdvertisingOptionGetEnabledAds.
3764
+ # Corresponds to the JSON property `kind`
3765
+ # @return [String]
3766
+ attr_accessor :kind
3767
+
3768
+ def initialize(**args)
3769
+ update!(**args)
3770
+ end
3771
+
3772
+ # Update properties of this object
3773
+ def update!(**args)
3774
+ @ad_breaks = args[:ad_breaks] if args.key?(:ad_breaks)
3775
+ @ads_on_embeds = args[:ads_on_embeds] if args.key?(:ads_on_embeds)
3776
+ @countries_restriction = args[:countries_restriction] if args.key?(:countries_restriction)
3777
+ @id = args[:id] if args.key?(:id)
3778
+ @kind = args[:kind] if args.key?(:kind)
3779
+ end
3780
+ end
3781
+
3782
+ #
3783
+ class Whitelist
3784
+ include Google::Apis::Core::Hashable
3785
+
3786
+ # The YouTube channel ID that uniquely identifies the whitelisted channel.
3787
+ # Corresponds to the JSON property `id`
3788
+ # @return [String]
3789
+ attr_accessor :id
3790
+
3791
+ # The type of the API resource. For whitelist resources, this value is
3792
+ # youtubePartner#whitelist.
3793
+ # Corresponds to the JSON property `kind`
3794
+ # @return [String]
3795
+ attr_accessor :kind
3796
+
3797
+ # Title of the whitelisted YouTube channel.
3798
+ # Corresponds to the JSON property `title`
3799
+ # @return [String]
3800
+ attr_accessor :title
3801
+
3802
+ def initialize(**args)
3803
+ update!(**args)
3804
+ end
3805
+
3806
+ # Update properties of this object
3807
+ def update!(**args)
3808
+ @id = args[:id] if args.key?(:id)
3809
+ @kind = args[:kind] if args.key?(:kind)
3810
+ @title = args[:title] if args.key?(:title)
3811
+ end
3812
+ end
3813
+
3814
+ #
3815
+ class WhitelistListResponse
3816
+ include Google::Apis::Core::Hashable
3817
+
3818
+ # A list of whitelist resources that match the request criteria.
3819
+ # Corresponds to the JSON property `items`
3820
+ # @return [Array<Google::Apis::YoutubePartnerV1::Whitelist>]
3821
+ attr_accessor :items
3822
+
3823
+ # The type of the API response. For this operation, the value is youtubePartner#
3824
+ # whitelistList.
3825
+ # Corresponds to the JSON property `kind`
3826
+ # @return [String]
3827
+ attr_accessor :kind
3828
+
3829
+ # The token that can be used as the value of the pageToken parameter to retrieve
3830
+ # the next page of results.
3831
+ # Corresponds to the JSON property `nextPageToken`
3832
+ # @return [String]
3833
+ attr_accessor :next_page_token
3834
+
3835
+ # The pageInfo object encapsulates paging information for the result set.
3836
+ # Corresponds to the JSON property `pageInfo`
3837
+ # @return [Google::Apis::YoutubePartnerV1::PageInfo]
3838
+ attr_accessor :page_info
3839
+
3840
+ def initialize(**args)
3841
+ update!(**args)
3842
+ end
3843
+
3844
+ # Update properties of this object
3845
+ def update!(**args)
3846
+ @items = args[:items] if args.key?(:items)
3847
+ @kind = args[:kind] if args.key?(:kind)
3848
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3849
+ @page_info = args[:page_info] if args.key?(:page_info)
3850
+ end
3851
+ end
3852
+ end
3853
+ end
3854
+ end