google-api-client 0.8.3 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (497) hide show
  1. checksums.yaml +4 -4
  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 +22 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +52 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +35 -1
  11. data/MIGRATING.md +171 -0
  12. data/README.md +181 -148
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1036 -0
  15. data/api_names_out.yaml +26053 -0
  16. data/bin/generate-api +95 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  21. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  24. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  25. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  26. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  27. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  28. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  29. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  30. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  31. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  32. data/generated/google/apis/admin_directory_v1.rb +113 -0
  33. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  34. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  35. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  36. data/generated/google/apis/admin_reports_v1.rb +38 -0
  37. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  38. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  39. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  40. data/generated/google/apis/adsense_v1_4.rb +38 -0
  41. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  42. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  43. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  44. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  45. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  46. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  47. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  48. data/generated/google/apis/analytics_v3.rb +49 -0
  49. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  50. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  51. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  52. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  53. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  54. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  55. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  56. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  57. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  58. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  59. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  60. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  61. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  62. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  63. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  64. data/generated/google/apis/appsactivity_v1.rb +46 -0
  65. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  66. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  67. data/generated/google/apis/appstate_v1/service.rb +260 -0
  68. data/generated/google/apis/appstate_v1.rb +34 -0
  69. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  70. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  71. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  72. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  73. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  74. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  75. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  76. data/generated/google/apis/bigquery_v2.rb +52 -0
  77. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  78. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  79. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  80. data/generated/google/apis/blogger_v3.rb +37 -0
  81. data/generated/google/apis/books_v1/classes.rb +3956 -0
  82. data/generated/google/apis/books_v1/representations.rb +1538 -0
  83. data/generated/google/apis/books_v1/service.rb +2290 -0
  84. data/generated/google/apis/books_v1.rb +34 -0
  85. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  86. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  87. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  88. data/generated/google/apis/calendar_v3.rb +37 -0
  89. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  90. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  91. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  92. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  93. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  94. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  95. data/generated/google/apis/classroom_v1/service.rb +970 -0
  96. data/generated/google/apis/classroom_v1.rb +49 -0
  97. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  98. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  99. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  100. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  101. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  102. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  103. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  104. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  105. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  106. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  107. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  108. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  117. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  118. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  119. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  120. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  121. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  122. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  123. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  124. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  125. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  126. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  127. data/generated/google/apis/compute_beta/service.rb +10154 -0
  128. data/generated/google/apis/compute_beta.rb +49 -0
  129. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  130. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  131. data/generated/google/apis/compute_v1/service.rb +9252 -0
  132. data/generated/google/apis/compute_v1.rb +49 -0
  133. data/generated/google/apis/container_v1/classes.rb +463 -0
  134. data/generated/google/apis/container_v1/representations.rb +175 -0
  135. data/generated/google/apis/container_v1/service.rb +367 -0
  136. data/generated/google/apis/container_v1.rb +35 -0
  137. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  138. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  139. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  140. data/generated/google/apis/container_v1beta1.rb +35 -0
  141. data/generated/google/apis/content_v2/classes.rb +5986 -0
  142. data/generated/google/apis/content_v2/representations.rb +2288 -0
  143. data/generated/google/apis/content_v2/service.rb +2338 -0
  144. data/generated/google/apis/content_v2.rb +35 -0
  145. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  146. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  147. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  148. data/generated/google/apis/coordinate_v1.rb +37 -0
  149. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  150. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  151. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  152. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  153. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  154. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  155. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  156. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  157. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  158. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  159. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  160. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  165. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  166. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  167. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  168. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  169. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  170. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  171. data/generated/google/apis/discovery_v1/service.rb +142 -0
  172. data/generated/google/apis/discovery_v1.rb +32 -0
  173. data/generated/google/apis/dns_v1/classes.rb +406 -0
  174. data/generated/google/apis/dns_v1/representations.rb +151 -0
  175. data/generated/google/apis/dns_v1/service.rb +454 -0
  176. data/generated/google/apis/dns_v1.rb +44 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  181. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  182. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  183. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  184. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  185. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  186. data/generated/google/apis/drive_v2/representations.rb +795 -0
  187. data/generated/google/apis/drive_v2/service.rb +2696 -0
  188. data/generated/google/apis/drive_v2.rb +58 -0
  189. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  190. data/generated/google/apis/drive_v3/representations.rb +497 -0
  191. data/generated/google/apis/drive_v3/service.rb +1541 -0
  192. data/generated/google/apis/drive_v3.rb +55 -0
  193. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  194. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  195. data/generated/google/apis/fitness_v1/service.rb +675 -0
  196. data/generated/google/apis/fitness_v1.rb +49 -0
  197. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  198. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  199. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  200. data/generated/google/apis/fusiontables_v2.rb +37 -0
  201. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  202. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  203. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  204. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  205. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  206. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  207. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  208. data/generated/google/apis/games_management_v1management.rb +37 -0
  209. data/generated/google/apis/games_v1/classes.rb +4617 -0
  210. data/generated/google/apis/games_v1/representations.rb +1584 -0
  211. data/generated/google/apis/games_v1/service.rb +2290 -0
  212. data/generated/google/apis/games_v1.rb +40 -0
  213. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  214. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  215. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  216. data/generated/google/apis/gan_v1beta1.rb +31 -0
  217. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  218. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  219. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  220. data/generated/google/apis/genomics_v1.rb +49 -0
  221. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  222. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  223. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  224. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  225. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  226. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  227. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  228. data/generated/google/apis/gmail_v1.rb +52 -0
  229. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  230. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  231. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  232. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  233. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  234. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  235. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  236. data/generated/google/apis/groupssettings_v1.rb +34 -0
  237. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  238. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  239. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  240. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  241. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  242. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  243. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  244. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  245. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  246. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  247. data/generated/google/apis/licensing_v1/service.rb +369 -0
  248. data/generated/google/apis/licensing_v1.rb +34 -0
  249. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  250. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  251. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  252. data/generated/google/apis/logging_v1beta3.rb +47 -0
  253. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  254. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  255. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  256. data/generated/google/apis/manager_v1beta2.rb +53 -0
  257. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  258. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  259. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  260. data/generated/google/apis/mapsengine_v1.rb +38 -0
  261. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  262. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  263. data/generated/google/apis/mirror_v1/service.rb +977 -0
  264. data/generated/google/apis/mirror_v1.rb +37 -0
  265. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  266. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  267. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  268. data/generated/google/apis/oauth2_v2.rb +43 -0
  269. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  270. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  271. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  272. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  273. data/generated/google/apis/partners_v2/classes.rb +942 -0
  274. data/generated/google/apis/partners_v2/representations.rb +402 -0
  275. data/generated/google/apis/partners_v2/service.rb +400 -0
  276. data/generated/google/apis/partners_v2.rb +32 -0
  277. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  278. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  279. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  280. data/generated/google/apis/plus_domains_v1.rb +61 -0
  281. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  282. data/generated/google/apis/plus_v1/representations.rb +805 -0
  283. data/generated/google/apis/plus_v1/service.rb +470 -0
  284. data/generated/google/apis/plus_v1.rb +43 -0
  285. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  286. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  287. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  288. data/generated/google/apis/prediction_v1_6.rb +44 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  293. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  294. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  295. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  296. data/generated/google/apis/pubsub_v1.rb +37 -0
  297. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  298. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  299. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  300. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  301. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  302. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  303. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  304. data/generated/google/apis/qpx_express_v1.rb +31 -0
  305. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  306. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  307. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  308. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  313. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  314. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  315. data/generated/google/apis/reseller_v1/service.rb +623 -0
  316. data/generated/google/apis/reseller_v1.rb +37 -0
  317. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  318. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  319. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  320. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  321. data/generated/google/apis/script_v1/classes.rb +259 -0
  322. data/generated/google/apis/script_v1/representations.rb +106 -0
  323. data/generated/google/apis/script_v1/service.rb +98 -0
  324. data/generated/google/apis/script_v1.rb +61 -0
  325. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  326. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  327. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  328. data/generated/google/apis/site_verification_v1.rb +37 -0
  329. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  330. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  331. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  332. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  333. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  334. data/generated/google/apis/storage_v1/representations.rb +445 -0
  335. data/generated/google/apis/storage_v1/service.rb +1903 -0
  336. data/generated/google/apis/storage_v1.rb +46 -0
  337. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  338. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  339. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  340. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  341. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  342. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  343. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  344. data/generated/google/apis/tagmanager_v1.rb +52 -0
  345. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  346. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  347. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  348. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  349. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  350. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  351. data/generated/google/apis/tasks_v1/service.rb +643 -0
  352. data/generated/google/apis/tasks_v1.rb +37 -0
  353. data/generated/google/apis/translate_v2/classes.rb +168 -0
  354. data/generated/google/apis/translate_v2/representations.rb +109 -0
  355. data/generated/google/apis/translate_v2/service.rb +182 -0
  356. data/generated/google/apis/translate_v2.rb +31 -0
  357. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  358. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  359. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  360. data/generated/google/apis/urlshortener_v1.rb +34 -0
  361. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  362. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  363. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  364. data/generated/google/apis/webmasters_v3.rb +37 -0
  365. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  366. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  367. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  368. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  369. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  370. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  371. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  372. data/generated/google/apis/youtube_v3.rb +49 -0
  373. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  374. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  375. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  376. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  377. data/google-api-client.gemspec +27 -39
  378. data/lib/google/api_client/auth/installed_app.rb +7 -5
  379. data/lib/google/api_client/auth/key_utils.rb +12 -11
  380. data/lib/google/api_client/auth/storage.rb +5 -2
  381. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  382. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  383. data/lib/google/api_client/client_secrets.rb +4 -5
  384. data/lib/google/apis/core/api_command.rb +135 -0
  385. data/lib/google/apis/core/base_service.rb +317 -0
  386. data/lib/google/apis/core/batch.rb +239 -0
  387. data/lib/google/apis/core/download.rb +94 -0
  388. data/lib/google/apis/core/hashable.rb +44 -0
  389. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  390. data/lib/google/apis/core/http_command.rb +312 -0
  391. data/lib/google/apis/core/json_representation.rb +127 -0
  392. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  393. data/lib/google/apis/core/multipart.rb +187 -0
  394. data/lib/google/apis/core/upload.rb +288 -0
  395. data/lib/google/{api_client → apis}/errors.rb +39 -28
  396. data/lib/google/apis/generator/annotator.rb +295 -0
  397. data/lib/google/apis/generator/helpers.rb +74 -0
  398. data/lib/google/apis/generator/model.rb +143 -0
  399. data/lib/google/apis/generator/template.rb +124 -0
  400. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  401. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  402. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  403. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  404. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  405. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  406. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  407. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  408. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  409. data/lib/google/apis/generator.rb +70 -0
  410. data/lib/google/apis/options.rb +85 -0
  411. data/lib/google/apis/version.rb +39 -0
  412. data/lib/google/apis.rb +48 -0
  413. data/rakelib/metrics.rake +22 -0
  414. data/rakelib/rubocop.rake +10 -0
  415. data/rakelib/spec.rake +11 -0
  416. data/rakelib/yard.rake +11 -0
  417. data/samples/Gemfile +7 -0
  418. data/samples/README.md +51 -0
  419. data/samples/google-api-samples +32 -0
  420. data/samples/lib/base_cli.rb +94 -0
  421. data/samples/lib/samples/analytics.rb +62 -0
  422. data/samples/lib/samples/calendar.rb +83 -0
  423. data/samples/lib/samples/drive.rb +82 -0
  424. data/samples/lib/samples/gmail.rb +50 -0
  425. data/samples/lib/samples/pubsub.rb +114 -0
  426. data/samples/lib/samples/translate.rb +44 -0
  427. data/samples/lib/samples/you_tube.rb +44 -0
  428. data/script/generate +95 -0
  429. data/script/package +8 -0
  430. data/script/release +15 -0
  431. data/spec/fixtures/files/api_names.yaml +3 -0
  432. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  433. data/spec/fixtures/files/child/.gitignore +0 -0
  434. data/spec/fixtures/files/client_secrets.json +1 -0
  435. data/spec/fixtures/files/invalid.json +1 -0
  436. data/spec/fixtures/files/test.blah +1 -0
  437. data/spec/fixtures/files/test.txt +1 -0
  438. data/spec/fixtures/files/test_api.json +440 -0
  439. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  440. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  441. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  442. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  443. data/spec/google/apis/core/api_command_spec.rb +209 -0
  444. data/spec/google/apis/core/batch_spec.rb +142 -0
  445. data/spec/google/apis/core/download_spec.rb +103 -0
  446. data/spec/google/apis/core/hashable_spec.rb +60 -0
  447. data/spec/google/apis/core/http_command_spec.rb +284 -0
  448. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  449. data/spec/google/apis/core/service_spec.rb +247 -0
  450. data/spec/google/apis/core/upload_spec.rb +300 -0
  451. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  452. data/spec/google/apis/generator/generator_spec.rb +272 -0
  453. data/spec/google/apis/logging_spec.rb +45 -0
  454. data/spec/google/apis/options_spec.rb +40 -0
  455. data/spec/integration_tests/adsense_spec.rb +29 -0
  456. data/spec/integration_tests/drive_spec.rb +35 -0
  457. data/spec/integration_tests/pubsub_spec.rb +48 -0
  458. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  459. data/spec/spec_helper/load_path_spec.rb +33 -0
  460. data/spec/spec_helper.rb +131 -44
  461. data/third_party/hurley_patches.rb +103 -0
  462. metadata +533 -170
  463. data/lib/compat/multi_json.rb +0 -19
  464. data/lib/google/api_client/auth/file_storage.rb +0 -59
  465. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  466. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  467. data/lib/google/api_client/batch.rb +0 -325
  468. data/lib/google/api_client/charset.rb +0 -33
  469. data/lib/google/api_client/discovery/api.rb +0 -300
  470. data/lib/google/api_client/discovery/media.rb +0 -77
  471. data/lib/google/api_client/discovery/method.rb +0 -363
  472. data/lib/google/api_client/discovery/resource.rb +0 -156
  473. data/lib/google/api_client/discovery/schema.rb +0 -119
  474. data/lib/google/api_client/environment.rb +0 -42
  475. data/lib/google/api_client/gzip.rb +0 -28
  476. data/lib/google/api_client/logging.rb +0 -32
  477. data/lib/google/api_client/media.rb +0 -259
  478. data/lib/google/api_client/railtie.rb +0 -18
  479. data/lib/google/api_client/request.rb +0 -350
  480. data/lib/google/api_client/result.rb +0 -255
  481. data/lib/google/api_client/service/batch.rb +0 -110
  482. data/lib/google/api_client/service/request.rb +0 -144
  483. data/lib/google/api_client/service/resource.rb +0 -40
  484. data/lib/google/api_client/service/result.rb +0 -162
  485. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  486. data/lib/google/api_client/service/stub_generator.rb +0 -61
  487. data/lib/google/api_client/service.rb +0 -233
  488. data/lib/google/api_client.rb +0 -750
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -662
  491. data/spec/google/api_client/gzip_spec.rb +0 -98
  492. data/spec/google/api_client/media_spec.rb +0 -178
  493. data/spec/google/api_client/result_spec.rb +0 -207
  494. data/spec/google/api_client/service_account_spec.rb +0 -169
  495. data/spec/google/api_client/service_spec.rb +0 -618
  496. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  497. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,1285 @@
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 AdsenseV1_4
24
+
25
+ #
26
+ class Account
27
+ include Google::Apis::Core::Hashable
28
+
29
+ #
30
+ # Corresponds to the JSON property `creation_time`
31
+ # @return [String]
32
+ attr_accessor :creation_time
33
+
34
+ # Unique identifier of this account.
35
+ # Corresponds to the JSON property `id`
36
+ # @return [String]
37
+ attr_accessor :id
38
+
39
+ # Kind of resource this is, in this case adsense#account.
40
+ # Corresponds to the JSON property `kind`
41
+ # @return [String]
42
+ attr_accessor :kind
43
+
44
+ # Name of this account.
45
+ # Corresponds to the JSON property `name`
46
+ # @return [String]
47
+ attr_accessor :name
48
+
49
+ # Whether this account is premium.
50
+ # Corresponds to the JSON property `premium`
51
+ # @return [Boolean]
52
+ attr_accessor :premium
53
+ alias_method :premium?, :premium
54
+
55
+ # Sub accounts of the this account.
56
+ # Corresponds to the JSON property `subAccounts`
57
+ # @return [Array<Google::Apis::AdsenseV1_4::Account>]
58
+ attr_accessor :sub_accounts
59
+
60
+ # AdSense timezone of this account.
61
+ # Corresponds to the JSON property `timezone`
62
+ # @return [String]
63
+ attr_accessor :timezone
64
+
65
+ def initialize(**args)
66
+ update!(**args)
67
+ end
68
+
69
+ # Update properties of this object
70
+ def update!(**args)
71
+ @creation_time = args[:creation_time] unless args[:creation_time].nil?
72
+ @id = args[:id] unless args[:id].nil?
73
+ @kind = args[:kind] unless args[:kind].nil?
74
+ @name = args[:name] unless args[:name].nil?
75
+ @premium = args[:premium] unless args[:premium].nil?
76
+ @sub_accounts = args[:sub_accounts] unless args[:sub_accounts].nil?
77
+ @timezone = args[:timezone] unless args[:timezone].nil?
78
+ end
79
+ end
80
+
81
+ #
82
+ class Accounts
83
+ include Google::Apis::Core::Hashable
84
+
85
+ # ETag of this response for caching purposes.
86
+ # Corresponds to the JSON property `etag`
87
+ # @return [String]
88
+ attr_accessor :etag
89
+
90
+ # The accounts returned in this list response.
91
+ # Corresponds to the JSON property `items`
92
+ # @return [Array<Google::Apis::AdsenseV1_4::Account>]
93
+ attr_accessor :items
94
+
95
+ # Kind of list this is, in this case adsense#accounts.
96
+ # Corresponds to the JSON property `kind`
97
+ # @return [String]
98
+ attr_accessor :kind
99
+
100
+ # Continuation token used to page through accounts. To retrieve the next page of
101
+ # results, set the next request's "pageToken" value to this.
102
+ # Corresponds to the JSON property `nextPageToken`
103
+ # @return [String]
104
+ attr_accessor :next_page_token
105
+
106
+ def initialize(**args)
107
+ update!(**args)
108
+ end
109
+
110
+ # Update properties of this object
111
+ def update!(**args)
112
+ @etag = args[:etag] unless args[:etag].nil?
113
+ @items = args[:items] unless args[:items].nil?
114
+ @kind = args[:kind] unless args[:kind].nil?
115
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
116
+ end
117
+ end
118
+
119
+ #
120
+ class AdClient
121
+ include Google::Apis::Core::Hashable
122
+
123
+ # Whether this ad client is opted in to ARC.
124
+ # Corresponds to the JSON property `arcOptIn`
125
+ # @return [Boolean]
126
+ attr_accessor :arc_opt_in
127
+ alias_method :arc_opt_in?, :arc_opt_in
128
+
129
+ # ARC review mode this ad client is in. Empty if the client is not opted in to
130
+ # ARC. Possible values: POST_REVIEW, AUTOMATIC_PRE_REVIEW.
131
+ # Corresponds to the JSON property `arcReviewMode`
132
+ # @return [String]
133
+ attr_accessor :arc_review_mode
134
+
135
+ # Unique identifier of this ad client.
136
+ # Corresponds to the JSON property `id`
137
+ # @return [String]
138
+ attr_accessor :id
139
+
140
+ # Kind of resource this is, in this case adsense#adClient.
141
+ # Corresponds to the JSON property `kind`
142
+ # @return [String]
143
+ attr_accessor :kind
144
+
145
+ # This ad client's product code, which corresponds to the PRODUCT_CODE report
146
+ # dimension.
147
+ # Corresponds to the JSON property `productCode`
148
+ # @return [String]
149
+ attr_accessor :product_code
150
+
151
+ # Whether this ad client supports being reported on.
152
+ # Corresponds to the JSON property `supportsReporting`
153
+ # @return [Boolean]
154
+ attr_accessor :supports_reporting
155
+ alias_method :supports_reporting?, :supports_reporting
156
+
157
+ def initialize(**args)
158
+ update!(**args)
159
+ end
160
+
161
+ # Update properties of this object
162
+ def update!(**args)
163
+ @arc_opt_in = args[:arc_opt_in] unless args[:arc_opt_in].nil?
164
+ @arc_review_mode = args[:arc_review_mode] unless args[:arc_review_mode].nil?
165
+ @id = args[:id] unless args[:id].nil?
166
+ @kind = args[:kind] unless args[:kind].nil?
167
+ @product_code = args[:product_code] unless args[:product_code].nil?
168
+ @supports_reporting = args[:supports_reporting] unless args[:supports_reporting].nil?
169
+ end
170
+ end
171
+
172
+ #
173
+ class AdClients
174
+ include Google::Apis::Core::Hashable
175
+
176
+ # ETag of this response for caching purposes.
177
+ # Corresponds to the JSON property `etag`
178
+ # @return [String]
179
+ attr_accessor :etag
180
+
181
+ # The ad clients returned in this list response.
182
+ # Corresponds to the JSON property `items`
183
+ # @return [Array<Google::Apis::AdsenseV1_4::AdClient>]
184
+ attr_accessor :items
185
+
186
+ # Kind of list this is, in this case adsense#adClients.
187
+ # Corresponds to the JSON property `kind`
188
+ # @return [String]
189
+ attr_accessor :kind
190
+
191
+ # Continuation token used to page through ad clients. To retrieve the next page
192
+ # of results, set the next request's "pageToken" value to this.
193
+ # Corresponds to the JSON property `nextPageToken`
194
+ # @return [String]
195
+ attr_accessor :next_page_token
196
+
197
+ def initialize(**args)
198
+ update!(**args)
199
+ end
200
+
201
+ # Update properties of this object
202
+ def update!(**args)
203
+ @etag = args[:etag] unless args[:etag].nil?
204
+ @items = args[:items] unless args[:items].nil?
205
+ @kind = args[:kind] unless args[:kind].nil?
206
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
207
+ end
208
+ end
209
+
210
+ #
211
+ class AdCode
212
+ include Google::Apis::Core::Hashable
213
+
214
+ # The ad code snippet.
215
+ # Corresponds to the JSON property `adCode`
216
+ # @return [String]
217
+ attr_accessor :ad_code
218
+
219
+ # Kind this is, in this case adsense#adCode.
220
+ # Corresponds to the JSON property `kind`
221
+ # @return [String]
222
+ attr_accessor :kind
223
+
224
+ def initialize(**args)
225
+ update!(**args)
226
+ end
227
+
228
+ # Update properties of this object
229
+ def update!(**args)
230
+ @ad_code = args[:ad_code] unless args[:ad_code].nil?
231
+ @kind = args[:kind] unless args[:kind].nil?
232
+ end
233
+ end
234
+
235
+ #
236
+ class AdStyle
237
+ include Google::Apis::Core::Hashable
238
+
239
+ # The colors which are included in the style. These are represented as six
240
+ # hexadecimal characters, similar to HTML color codes, but without the leading
241
+ # hash.
242
+ # Corresponds to the JSON property `colors`
243
+ # @return [Google::Apis::AdsenseV1_4::AdStyle::Colors]
244
+ attr_accessor :colors
245
+
246
+ # The style of the corners in the ad.
247
+ # Corresponds to the JSON property `corners`
248
+ # @return [String]
249
+ attr_accessor :corners
250
+
251
+ # The font which is included in the style.
252
+ # Corresponds to the JSON property `font`
253
+ # @return [Google::Apis::AdsenseV1_4::AdStyle::Font]
254
+ attr_accessor :font
255
+
256
+ # Kind this is, in this case adsense#adStyle.
257
+ # Corresponds to the JSON property `kind`
258
+ # @return [String]
259
+ attr_accessor :kind
260
+
261
+ def initialize(**args)
262
+ update!(**args)
263
+ end
264
+
265
+ # Update properties of this object
266
+ def update!(**args)
267
+ @colors = args[:colors] unless args[:colors].nil?
268
+ @corners = args[:corners] unless args[:corners].nil?
269
+ @font = args[:font] unless args[:font].nil?
270
+ @kind = args[:kind] unless args[:kind].nil?
271
+ end
272
+
273
+ # The colors which are included in the style. These are represented as six
274
+ # hexadecimal characters, similar to HTML color codes, but without the leading
275
+ # hash.
276
+ class Colors
277
+ include Google::Apis::Core::Hashable
278
+
279
+ # The color of the ad background.
280
+ # Corresponds to the JSON property `background`
281
+ # @return [String]
282
+ attr_accessor :background
283
+
284
+ # The color of the ad border.
285
+ # Corresponds to the JSON property `border`
286
+ # @return [String]
287
+ attr_accessor :border
288
+
289
+ # The color of the ad text.
290
+ # Corresponds to the JSON property `text`
291
+ # @return [String]
292
+ attr_accessor :text
293
+
294
+ # The color of the ad title.
295
+ # Corresponds to the JSON property `title`
296
+ # @return [String]
297
+ attr_accessor :title
298
+
299
+ # The color of the ad url.
300
+ # Corresponds to the JSON property `url`
301
+ # @return [String]
302
+ attr_accessor :url
303
+
304
+ def initialize(**args)
305
+ update!(**args)
306
+ end
307
+
308
+ # Update properties of this object
309
+ def update!(**args)
310
+ @background = args[:background] unless args[:background].nil?
311
+ @border = args[:border] unless args[:border].nil?
312
+ @text = args[:text] unless args[:text].nil?
313
+ @title = args[:title] unless args[:title].nil?
314
+ @url = args[:url] unless args[:url].nil?
315
+ end
316
+ end
317
+
318
+ # The font which is included in the style.
319
+ class Font
320
+ include Google::Apis::Core::Hashable
321
+
322
+ # The family of the font.
323
+ # Corresponds to the JSON property `family`
324
+ # @return [String]
325
+ attr_accessor :family
326
+
327
+ # The size of the font.
328
+ # Corresponds to the JSON property `size`
329
+ # @return [String]
330
+ attr_accessor :size
331
+
332
+ def initialize(**args)
333
+ update!(**args)
334
+ end
335
+
336
+ # Update properties of this object
337
+ def update!(**args)
338
+ @family = args[:family] unless args[:family].nil?
339
+ @size = args[:size] unless args[:size].nil?
340
+ end
341
+ end
342
+ end
343
+
344
+ #
345
+ class AdUnit
346
+ include Google::Apis::Core::Hashable
347
+
348
+ # Identity code of this ad unit, not necessarily unique across ad clients.
349
+ # Corresponds to the JSON property `code`
350
+ # @return [String]
351
+ attr_accessor :code
352
+
353
+ # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
354
+ # Corresponds to the JSON property `contentAdsSettings`
355
+ # @return [Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings]
356
+ attr_accessor :content_ads_settings
357
+
358
+ # Custom style information specific to this ad unit.
359
+ # Corresponds to the JSON property `customStyle`
360
+ # @return [Google::Apis::AdsenseV1_4::AdStyle]
361
+ attr_accessor :custom_style
362
+
363
+ # Settings specific to feed ads (AFF).
364
+ # Corresponds to the JSON property `feedAdsSettings`
365
+ # @return [Google::Apis::AdsenseV1_4::AdUnit::FeedAdsSettings]
366
+ attr_accessor :feed_ads_settings
367
+
368
+ # Unique identifier of this ad unit. This should be considered an opaque
369
+ # identifier; it is not safe to rely on it being in any particular format.
370
+ # Corresponds to the JSON property `id`
371
+ # @return [String]
372
+ attr_accessor :id
373
+
374
+ # Kind of resource this is, in this case adsense#adUnit.
375
+ # Corresponds to the JSON property `kind`
376
+ # @return [String]
377
+ attr_accessor :kind
378
+
379
+ # Settings specific to WAP mobile content ads (AFMC).
380
+ # Corresponds to the JSON property `mobileContentAdsSettings`
381
+ # @return [Google::Apis::AdsenseV1_4::AdUnit::MobileContentAdsSettings]
382
+ attr_accessor :mobile_content_ads_settings
383
+
384
+ # Name of this ad unit.
385
+ # Corresponds to the JSON property `name`
386
+ # @return [String]
387
+ attr_accessor :name
388
+
389
+ # ID of the saved ad style which holds this ad unit's style information.
390
+ # Corresponds to the JSON property `savedStyleId`
391
+ # @return [String]
392
+ attr_accessor :saved_style_id
393
+
394
+ # Status of this ad unit. Possible values are:
395
+ # NEW: Indicates that the ad unit was created within the last seven days and
396
+ # does not yet have any activity associated with it.
397
+ # ACTIVE: Indicates that there has been activity on this ad unit in the last
398
+ # seven days.
399
+ # INACTIVE: Indicates that there has been no activity on this ad unit in the
400
+ # last seven days.
401
+ # Corresponds to the JSON property `status`
402
+ # @return [String]
403
+ attr_accessor :status
404
+
405
+ def initialize(**args)
406
+ update!(**args)
407
+ end
408
+
409
+ # Update properties of this object
410
+ def update!(**args)
411
+ @code = args[:code] unless args[:code].nil?
412
+ @content_ads_settings = args[:content_ads_settings] unless args[:content_ads_settings].nil?
413
+ @custom_style = args[:custom_style] unless args[:custom_style].nil?
414
+ @feed_ads_settings = args[:feed_ads_settings] unless args[:feed_ads_settings].nil?
415
+ @id = args[:id] unless args[:id].nil?
416
+ @kind = args[:kind] unless args[:kind].nil?
417
+ @mobile_content_ads_settings = args[:mobile_content_ads_settings] unless args[:mobile_content_ads_settings].nil?
418
+ @name = args[:name] unless args[:name].nil?
419
+ @saved_style_id = args[:saved_style_id] unless args[:saved_style_id].nil?
420
+ @status = args[:status] unless args[:status].nil?
421
+ end
422
+
423
+ # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
424
+ class ContentAdsSettings
425
+ include Google::Apis::Core::Hashable
426
+
427
+ # The backup option to be used in instances where no ad is available.
428
+ # Corresponds to the JSON property `backupOption`
429
+ # @return [Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings::BackupOption]
430
+ attr_accessor :backup_option
431
+
432
+ # Size of this ad unit.
433
+ # Corresponds to the JSON property `size`
434
+ # @return [String]
435
+ attr_accessor :size
436
+
437
+ # Type of this ad unit.
438
+ # Corresponds to the JSON property `type`
439
+ # @return [String]
440
+ attr_accessor :type
441
+
442
+ def initialize(**args)
443
+ update!(**args)
444
+ end
445
+
446
+ # Update properties of this object
447
+ def update!(**args)
448
+ @backup_option = args[:backup_option] unless args[:backup_option].nil?
449
+ @size = args[:size] unless args[:size].nil?
450
+ @type = args[:type] unless args[:type].nil?
451
+ end
452
+
453
+ # The backup option to be used in instances where no ad is available.
454
+ class BackupOption
455
+ include Google::Apis::Core::Hashable
456
+
457
+ # Color to use when type is set to COLOR.
458
+ # Corresponds to the JSON property `color`
459
+ # @return [String]
460
+ attr_accessor :color
461
+
462
+ # Type of the backup option. Possible values are BLANK, COLOR and URL.
463
+ # Corresponds to the JSON property `type`
464
+ # @return [String]
465
+ attr_accessor :type
466
+
467
+ # URL to use when type is set to URL.
468
+ # Corresponds to the JSON property `url`
469
+ # @return [String]
470
+ attr_accessor :url
471
+
472
+ def initialize(**args)
473
+ update!(**args)
474
+ end
475
+
476
+ # Update properties of this object
477
+ def update!(**args)
478
+ @color = args[:color] unless args[:color].nil?
479
+ @type = args[:type] unless args[:type].nil?
480
+ @url = args[:url] unless args[:url].nil?
481
+ end
482
+ end
483
+ end
484
+
485
+ # Settings specific to feed ads (AFF).
486
+ class FeedAdsSettings
487
+ include Google::Apis::Core::Hashable
488
+
489
+ # The position of the ads relative to the feed entries.
490
+ # Corresponds to the JSON property `adPosition`
491
+ # @return [String]
492
+ attr_accessor :ad_position
493
+
494
+ # The frequency at which ads should appear in the feed (i.e. every N entries).
495
+ # Corresponds to the JSON property `frequency`
496
+ # @return [Fixnum]
497
+ attr_accessor :frequency
498
+
499
+ # The minimum length an entry should be in order to have attached ads.
500
+ # Corresponds to the JSON property `minimumWordCount`
501
+ # @return [Fixnum]
502
+ attr_accessor :minimum_word_count
503
+
504
+ # The type of ads which should appear.
505
+ # Corresponds to the JSON property `type`
506
+ # @return [String]
507
+ attr_accessor :type
508
+
509
+ def initialize(**args)
510
+ update!(**args)
511
+ end
512
+
513
+ # Update properties of this object
514
+ def update!(**args)
515
+ @ad_position = args[:ad_position] unless args[:ad_position].nil?
516
+ @frequency = args[:frequency] unless args[:frequency].nil?
517
+ @minimum_word_count = args[:minimum_word_count] unless args[:minimum_word_count].nil?
518
+ @type = args[:type] unless args[:type].nil?
519
+ end
520
+ end
521
+
522
+ # Settings specific to WAP mobile content ads (AFMC).
523
+ class MobileContentAdsSettings
524
+ include Google::Apis::Core::Hashable
525
+
526
+ # The markup language to use for this ad unit.
527
+ # Corresponds to the JSON property `markupLanguage`
528
+ # @return [String]
529
+ attr_accessor :markup_language
530
+
531
+ # The scripting language to use for this ad unit.
532
+ # Corresponds to the JSON property `scriptingLanguage`
533
+ # @return [String]
534
+ attr_accessor :scripting_language
535
+
536
+ # Size of this ad unit.
537
+ # Corresponds to the JSON property `size`
538
+ # @return [String]
539
+ attr_accessor :size
540
+
541
+ # Type of this ad unit.
542
+ # Corresponds to the JSON property `type`
543
+ # @return [String]
544
+ attr_accessor :type
545
+
546
+ def initialize(**args)
547
+ update!(**args)
548
+ end
549
+
550
+ # Update properties of this object
551
+ def update!(**args)
552
+ @markup_language = args[:markup_language] unless args[:markup_language].nil?
553
+ @scripting_language = args[:scripting_language] unless args[:scripting_language].nil?
554
+ @size = args[:size] unless args[:size].nil?
555
+ @type = args[:type] unless args[:type].nil?
556
+ end
557
+ end
558
+ end
559
+
560
+ #
561
+ class AdUnits
562
+ include Google::Apis::Core::Hashable
563
+
564
+ # ETag of this response for caching purposes.
565
+ # Corresponds to the JSON property `etag`
566
+ # @return [String]
567
+ attr_accessor :etag
568
+
569
+ # The ad units returned in this list response.
570
+ # Corresponds to the JSON property `items`
571
+ # @return [Array<Google::Apis::AdsenseV1_4::AdUnit>]
572
+ attr_accessor :items
573
+
574
+ # Kind of list this is, in this case adsense#adUnits.
575
+ # Corresponds to the JSON property `kind`
576
+ # @return [String]
577
+ attr_accessor :kind
578
+
579
+ # Continuation token used to page through ad units. To retrieve the next page of
580
+ # results, set the next request's "pageToken" value to this.
581
+ # Corresponds to the JSON property `nextPageToken`
582
+ # @return [String]
583
+ attr_accessor :next_page_token
584
+
585
+ def initialize(**args)
586
+ update!(**args)
587
+ end
588
+
589
+ # Update properties of this object
590
+ def update!(**args)
591
+ @etag = args[:etag] unless args[:etag].nil?
592
+ @items = args[:items] unless args[:items].nil?
593
+ @kind = args[:kind] unless args[:kind].nil?
594
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
595
+ end
596
+ end
597
+
598
+ #
599
+ class GenerateReportResponse
600
+ include Google::Apis::Core::Hashable
601
+
602
+ # The averages of the report. This is the same length as any other row in the
603
+ # report; cells corresponding to dimension columns are empty.
604
+ # Corresponds to the JSON property `averages`
605
+ # @return [Array<String>]
606
+ attr_accessor :averages
607
+
608
+ # The requested end date in yyyy-mm-dd format.
609
+ # Corresponds to the JSON property `endDate`
610
+ # @return [String]
611
+ attr_accessor :end_date
612
+
613
+ # The header information of the columns requested in the report. This is a list
614
+ # of headers; one for each dimension in the request, followed by one for each
615
+ # metric in the request.
616
+ # Corresponds to the JSON property `headers`
617
+ # @return [Array<Google::Apis::AdsenseV1_4::GenerateReportResponse::Header>]
618
+ attr_accessor :headers
619
+
620
+ # Kind this is, in this case adsense#report.
621
+ # Corresponds to the JSON property `kind`
622
+ # @return [String]
623
+ attr_accessor :kind
624
+
625
+ # The output rows of the report. Each row is a list of cells; one for each
626
+ # dimension in the request, followed by one for each metric in the request. The
627
+ # dimension cells contain strings, and the metric cells contain numbers.
628
+ # Corresponds to the JSON property `rows`
629
+ # @return [Array<Array<String>>]
630
+ attr_accessor :rows
631
+
632
+ # The requested start date in yyyy-mm-dd format.
633
+ # Corresponds to the JSON property `startDate`
634
+ # @return [String]
635
+ attr_accessor :start_date
636
+
637
+ # The total number of rows matched by the report request. Fewer rows may be
638
+ # returned in the response due to being limited by the row count requested or
639
+ # the report row limit.
640
+ # Corresponds to the JSON property `totalMatchedRows`
641
+ # @return [String]
642
+ attr_accessor :total_matched_rows
643
+
644
+ # The totals of the report. This is the same length as any other row in the
645
+ # report; cells corresponding to dimension columns are empty.
646
+ # Corresponds to the JSON property `totals`
647
+ # @return [Array<String>]
648
+ attr_accessor :totals
649
+
650
+ # Any warnings associated with generation of the report.
651
+ # Corresponds to the JSON property `warnings`
652
+ # @return [Array<String>]
653
+ attr_accessor :warnings
654
+
655
+ def initialize(**args)
656
+ update!(**args)
657
+ end
658
+
659
+ # Update properties of this object
660
+ def update!(**args)
661
+ @averages = args[:averages] unless args[:averages].nil?
662
+ @end_date = args[:end_date] unless args[:end_date].nil?
663
+ @headers = args[:headers] unless args[:headers].nil?
664
+ @kind = args[:kind] unless args[:kind].nil?
665
+ @rows = args[:rows] unless args[:rows].nil?
666
+ @start_date = args[:start_date] unless args[:start_date].nil?
667
+ @total_matched_rows = args[:total_matched_rows] unless args[:total_matched_rows].nil?
668
+ @totals = args[:totals] unless args[:totals].nil?
669
+ @warnings = args[:warnings] unless args[:warnings].nil?
670
+ end
671
+
672
+ #
673
+ class Header
674
+ include Google::Apis::Core::Hashable
675
+
676
+ # The currency of this column. Only present if the header type is
677
+ # METRIC_CURRENCY.
678
+ # Corresponds to the JSON property `currency`
679
+ # @return [String]
680
+ attr_accessor :currency
681
+
682
+ # The name of the header.
683
+ # Corresponds to the JSON property `name`
684
+ # @return [String]
685
+ attr_accessor :name
686
+
687
+ # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or
688
+ # METRIC_CURRENCY.
689
+ # Corresponds to the JSON property `type`
690
+ # @return [String]
691
+ attr_accessor :type
692
+
693
+ def initialize(**args)
694
+ update!(**args)
695
+ end
696
+
697
+ # Update properties of this object
698
+ def update!(**args)
699
+ @currency = args[:currency] unless args[:currency].nil?
700
+ @name = args[:name] unless args[:name].nil?
701
+ @type = args[:type] unless args[:type].nil?
702
+ end
703
+ end
704
+ end
705
+
706
+ #
707
+ class Alert
708
+ include Google::Apis::Core::Hashable
709
+
710
+ # Unique identifier of this alert. This should be considered an opaque
711
+ # identifier; it is not safe to rely on it being in any particular format.
712
+ # Corresponds to the JSON property `id`
713
+ # @return [String]
714
+ attr_accessor :id
715
+
716
+ # Whether this alert can be dismissed.
717
+ # Corresponds to the JSON property `isDismissible`
718
+ # @return [Boolean]
719
+ attr_accessor :is_dismissible
720
+ alias_method :is_dismissible?, :is_dismissible
721
+
722
+ # Kind of resource this is, in this case adsense#alert.
723
+ # Corresponds to the JSON property `kind`
724
+ # @return [String]
725
+ attr_accessor :kind
726
+
727
+ # The localized alert message.
728
+ # Corresponds to the JSON property `message`
729
+ # @return [String]
730
+ attr_accessor :message
731
+
732
+ # Severity of this alert. Possible values: INFO, WARNING, SEVERE.
733
+ # Corresponds to the JSON property `severity`
734
+ # @return [String]
735
+ attr_accessor :severity
736
+
737
+ # Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3,
738
+ # ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY,
739
+ # GRAYLISTED_PUBLISHER, API_HOLD.
740
+ # Corresponds to the JSON property `type`
741
+ # @return [String]
742
+ attr_accessor :type
743
+
744
+ def initialize(**args)
745
+ update!(**args)
746
+ end
747
+
748
+ # Update properties of this object
749
+ def update!(**args)
750
+ @id = args[:id] unless args[:id].nil?
751
+ @is_dismissible = args[:is_dismissible] unless args[:is_dismissible].nil?
752
+ @kind = args[:kind] unless args[:kind].nil?
753
+ @message = args[:message] unless args[:message].nil?
754
+ @severity = args[:severity] unless args[:severity].nil?
755
+ @type = args[:type] unless args[:type].nil?
756
+ end
757
+ end
758
+
759
+ #
760
+ class Alerts
761
+ include Google::Apis::Core::Hashable
762
+
763
+ # The alerts returned in this list response.
764
+ # Corresponds to the JSON property `items`
765
+ # @return [Array<Google::Apis::AdsenseV1_4::Alert>]
766
+ attr_accessor :items
767
+
768
+ # Kind of list this is, in this case adsense#alerts.
769
+ # Corresponds to the JSON property `kind`
770
+ # @return [String]
771
+ attr_accessor :kind
772
+
773
+ def initialize(**args)
774
+ update!(**args)
775
+ end
776
+
777
+ # Update properties of this object
778
+ def update!(**args)
779
+ @items = args[:items] unless args[:items].nil?
780
+ @kind = args[:kind] unless args[:kind].nil?
781
+ end
782
+ end
783
+
784
+ #
785
+ class CustomChannel
786
+ include Google::Apis::Core::Hashable
787
+
788
+ # Code of this custom channel, not necessarily unique across ad clients.
789
+ # Corresponds to the JSON property `code`
790
+ # @return [String]
791
+ attr_accessor :code
792
+
793
+ # Unique identifier of this custom channel. This should be considered an opaque
794
+ # identifier; it is not safe to rely on it being in any particular format.
795
+ # Corresponds to the JSON property `id`
796
+ # @return [String]
797
+ attr_accessor :id
798
+
799
+ # Kind of resource this is, in this case adsense#customChannel.
800
+ # Corresponds to the JSON property `kind`
801
+ # @return [String]
802
+ attr_accessor :kind
803
+
804
+ # Name of this custom channel.
805
+ # Corresponds to the JSON property `name`
806
+ # @return [String]
807
+ attr_accessor :name
808
+
809
+ # The targeting information of this custom channel, if activated.
810
+ # Corresponds to the JSON property `targetingInfo`
811
+ # @return [Google::Apis::AdsenseV1_4::CustomChannel::TargetingInfo]
812
+ attr_accessor :targeting_info
813
+
814
+ def initialize(**args)
815
+ update!(**args)
816
+ end
817
+
818
+ # Update properties of this object
819
+ def update!(**args)
820
+ @code = args[:code] unless args[:code].nil?
821
+ @id = args[:id] unless args[:id].nil?
822
+ @kind = args[:kind] unless args[:kind].nil?
823
+ @name = args[:name] unless args[:name].nil?
824
+ @targeting_info = args[:targeting_info] unless args[:targeting_info].nil?
825
+ end
826
+
827
+ # The targeting information of this custom channel, if activated.
828
+ class TargetingInfo
829
+ include Google::Apis::Core::Hashable
830
+
831
+ # The name used to describe this channel externally.
832
+ # Corresponds to the JSON property `adsAppearOn`
833
+ # @return [String]
834
+ attr_accessor :ads_appear_on
835
+
836
+ # The external description of the channel.
837
+ # Corresponds to the JSON property `description`
838
+ # @return [String]
839
+ attr_accessor :description
840
+
841
+ # The locations in which ads appear. (Only valid for content and mobile content
842
+ # ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT,
843
+ # MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER,
844
+ # BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are:
845
+ # TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
846
+ # Corresponds to the JSON property `location`
847
+ # @return [String]
848
+ attr_accessor :location
849
+
850
+ # The language of the sites ads will be displayed on.
851
+ # Corresponds to the JSON property `siteLanguage`
852
+ # @return [String]
853
+ attr_accessor :site_language
854
+
855
+ def initialize(**args)
856
+ update!(**args)
857
+ end
858
+
859
+ # Update properties of this object
860
+ def update!(**args)
861
+ @ads_appear_on = args[:ads_appear_on] unless args[:ads_appear_on].nil?
862
+ @description = args[:description] unless args[:description].nil?
863
+ @location = args[:location] unless args[:location].nil?
864
+ @site_language = args[:site_language] unless args[:site_language].nil?
865
+ end
866
+ end
867
+ end
868
+
869
+ #
870
+ class CustomChannels
871
+ include Google::Apis::Core::Hashable
872
+
873
+ # ETag of this response for caching purposes.
874
+ # Corresponds to the JSON property `etag`
875
+ # @return [String]
876
+ attr_accessor :etag
877
+
878
+ # The custom channels returned in this list response.
879
+ # Corresponds to the JSON property `items`
880
+ # @return [Array<Google::Apis::AdsenseV1_4::CustomChannel>]
881
+ attr_accessor :items
882
+
883
+ # Kind of list this is, in this case adsense#customChannels.
884
+ # Corresponds to the JSON property `kind`
885
+ # @return [String]
886
+ attr_accessor :kind
887
+
888
+ # Continuation token used to page through custom channels. To retrieve the next
889
+ # page of results, set the next request's "pageToken" value to this.
890
+ # Corresponds to the JSON property `nextPageToken`
891
+ # @return [String]
892
+ attr_accessor :next_page_token
893
+
894
+ def initialize(**args)
895
+ update!(**args)
896
+ end
897
+
898
+ # Update properties of this object
899
+ def update!(**args)
900
+ @etag = args[:etag] unless args[:etag].nil?
901
+ @items = args[:items] unless args[:items].nil?
902
+ @kind = args[:kind] unless args[:kind].nil?
903
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
904
+ end
905
+ end
906
+
907
+ #
908
+ class Metadata
909
+ include Google::Apis::Core::Hashable
910
+
911
+ #
912
+ # Corresponds to the JSON property `items`
913
+ # @return [Array<Google::Apis::AdsenseV1_4::ReportingMetadataEntry>]
914
+ attr_accessor :items
915
+
916
+ # Kind of list this is, in this case adsense#metadata.
917
+ # Corresponds to the JSON property `kind`
918
+ # @return [String]
919
+ attr_accessor :kind
920
+
921
+ def initialize(**args)
922
+ update!(**args)
923
+ end
924
+
925
+ # Update properties of this object
926
+ def update!(**args)
927
+ @items = args[:items] unless args[:items].nil?
928
+ @kind = args[:kind] unless args[:kind].nil?
929
+ end
930
+ end
931
+
932
+ #
933
+ class Payment
934
+ include Google::Apis::Core::Hashable
935
+
936
+ # Unique identifier of this Payment.
937
+ # Corresponds to the JSON property `id`
938
+ # @return [String]
939
+ attr_accessor :id
940
+
941
+ # Kind of resource this is, in this case adsense#payment.
942
+ # Corresponds to the JSON property `kind`
943
+ # @return [String]
944
+ attr_accessor :kind
945
+
946
+ # The amount to be paid.
947
+ # Corresponds to the JSON property `paymentAmount`
948
+ # @return [String]
949
+ attr_accessor :payment_amount
950
+
951
+ # The currency code for the amount to be paid.
952
+ # Corresponds to the JSON property `paymentAmountCurrencyCode`
953
+ # @return [String]
954
+ attr_accessor :payment_amount_currency_code
955
+
956
+ # The date this payment was/will be credited to the user, or none if the payment
957
+ # threshold has not been met.
958
+ # Corresponds to the JSON property `paymentDate`
959
+ # @return [String]
960
+ attr_accessor :payment_date
961
+
962
+ def initialize(**args)
963
+ update!(**args)
964
+ end
965
+
966
+ # Update properties of this object
967
+ def update!(**args)
968
+ @id = args[:id] unless args[:id].nil?
969
+ @kind = args[:kind] unless args[:kind].nil?
970
+ @payment_amount = args[:payment_amount] unless args[:payment_amount].nil?
971
+ @payment_amount_currency_code = args[:payment_amount_currency_code] unless args[:payment_amount_currency_code].nil?
972
+ @payment_date = args[:payment_date] unless args[:payment_date].nil?
973
+ end
974
+ end
975
+
976
+ #
977
+ class Payments
978
+ include Google::Apis::Core::Hashable
979
+
980
+ # The list of Payments for the account. One or both of a) the account's most
981
+ # recent payment; and b) the account's upcoming payment.
982
+ # Corresponds to the JSON property `items`
983
+ # @return [Array<Google::Apis::AdsenseV1_4::Payment>]
984
+ attr_accessor :items
985
+
986
+ # Kind of list this is, in this case adsense#payments.
987
+ # Corresponds to the JSON property `kind`
988
+ # @return [String]
989
+ attr_accessor :kind
990
+
991
+ def initialize(**args)
992
+ update!(**args)
993
+ end
994
+
995
+ # Update properties of this object
996
+ def update!(**args)
997
+ @items = args[:items] unless args[:items].nil?
998
+ @kind = args[:kind] unless args[:kind].nil?
999
+ end
1000
+ end
1001
+
1002
+ #
1003
+ class ReportingMetadataEntry
1004
+ include Google::Apis::Core::Hashable
1005
+
1006
+ # For metrics this is a list of dimension IDs which the metric is compatible
1007
+ # with, for dimensions it is a list of compatibility groups the dimension
1008
+ # belongs to.
1009
+ # Corresponds to the JSON property `compatibleDimensions`
1010
+ # @return [Array<String>]
1011
+ attr_accessor :compatible_dimensions
1012
+
1013
+ # The names of the metrics the dimension or metric this reporting metadata entry
1014
+ # describes is compatible with.
1015
+ # Corresponds to the JSON property `compatibleMetrics`
1016
+ # @return [Array<String>]
1017
+ attr_accessor :compatible_metrics
1018
+
1019
+ # Unique identifier of this reporting metadata entry, corresponding to the name
1020
+ # of the appropriate dimension or metric.
1021
+ # Corresponds to the JSON property `id`
1022
+ # @return [String]
1023
+ attr_accessor :id
1024
+
1025
+ # Kind of resource this is, in this case adsense#reportingMetadataEntry.
1026
+ # Corresponds to the JSON property `kind`
1027
+ # @return [String]
1028
+ attr_accessor :kind
1029
+
1030
+ # The names of the dimensions which the dimension or metric this reporting
1031
+ # metadata entry describes requires to also be present in order for the report
1032
+ # to be valid. Omitting these will not cause an error or warning, but may result
1033
+ # in data which cannot be correctly interpreted.
1034
+ # Corresponds to the JSON property `requiredDimensions`
1035
+ # @return [Array<String>]
1036
+ attr_accessor :required_dimensions
1037
+
1038
+ # The names of the metrics which the dimension or metric this reporting metadata
1039
+ # entry describes requires to also be present in order for the report to be
1040
+ # valid. Omitting these will not cause an error or warning, but may result in
1041
+ # data which cannot be correctly interpreted.
1042
+ # Corresponds to the JSON property `requiredMetrics`
1043
+ # @return [Array<String>]
1044
+ attr_accessor :required_metrics
1045
+
1046
+ # The codes of the projects supported by the dimension or metric this reporting
1047
+ # metadata entry describes.
1048
+ # Corresponds to the JSON property `supportedProducts`
1049
+ # @return [Array<String>]
1050
+ attr_accessor :supported_products
1051
+
1052
+ def initialize(**args)
1053
+ update!(**args)
1054
+ end
1055
+
1056
+ # Update properties of this object
1057
+ def update!(**args)
1058
+ @compatible_dimensions = args[:compatible_dimensions] unless args[:compatible_dimensions].nil?
1059
+ @compatible_metrics = args[:compatible_metrics] unless args[:compatible_metrics].nil?
1060
+ @id = args[:id] unless args[:id].nil?
1061
+ @kind = args[:kind] unless args[:kind].nil?
1062
+ @required_dimensions = args[:required_dimensions] unless args[:required_dimensions].nil?
1063
+ @required_metrics = args[:required_metrics] unless args[:required_metrics].nil?
1064
+ @supported_products = args[:supported_products] unless args[:supported_products].nil?
1065
+ end
1066
+ end
1067
+
1068
+ #
1069
+ class SavedAdStyle
1070
+ include Google::Apis::Core::Hashable
1071
+
1072
+ # The AdStyle itself.
1073
+ # Corresponds to the JSON property `adStyle`
1074
+ # @return [Google::Apis::AdsenseV1_4::AdStyle]
1075
+ attr_accessor :ad_style
1076
+
1077
+ # Unique identifier of this saved ad style. This should be considered an opaque
1078
+ # identifier; it is not safe to rely on it being in any particular format.
1079
+ # Corresponds to the JSON property `id`
1080
+ # @return [String]
1081
+ attr_accessor :id
1082
+
1083
+ # Kind of resource this is, in this case adsense#savedAdStyle.
1084
+ # Corresponds to the JSON property `kind`
1085
+ # @return [String]
1086
+ attr_accessor :kind
1087
+
1088
+ # The user selected name of this SavedAdStyle.
1089
+ # Corresponds to the JSON property `name`
1090
+ # @return [String]
1091
+ attr_accessor :name
1092
+
1093
+ def initialize(**args)
1094
+ update!(**args)
1095
+ end
1096
+
1097
+ # Update properties of this object
1098
+ def update!(**args)
1099
+ @ad_style = args[:ad_style] unless args[:ad_style].nil?
1100
+ @id = args[:id] unless args[:id].nil?
1101
+ @kind = args[:kind] unless args[:kind].nil?
1102
+ @name = args[:name] unless args[:name].nil?
1103
+ end
1104
+ end
1105
+
1106
+ #
1107
+ class SavedAdStyles
1108
+ include Google::Apis::Core::Hashable
1109
+
1110
+ # ETag of this response for caching purposes.
1111
+ # Corresponds to the JSON property `etag`
1112
+ # @return [String]
1113
+ attr_accessor :etag
1114
+
1115
+ # The saved ad styles returned in this list response.
1116
+ # Corresponds to the JSON property `items`
1117
+ # @return [Array<Google::Apis::AdsenseV1_4::SavedAdStyle>]
1118
+ attr_accessor :items
1119
+
1120
+ # Kind of list this is, in this case adsense#savedAdStyles.
1121
+ # Corresponds to the JSON property `kind`
1122
+ # @return [String]
1123
+ attr_accessor :kind
1124
+
1125
+ # Continuation token used to page through ad units. To retrieve the next page of
1126
+ # results, set the next request's "pageToken" value to this.
1127
+ # Corresponds to the JSON property `nextPageToken`
1128
+ # @return [String]
1129
+ attr_accessor :next_page_token
1130
+
1131
+ def initialize(**args)
1132
+ update!(**args)
1133
+ end
1134
+
1135
+ # Update properties of this object
1136
+ def update!(**args)
1137
+ @etag = args[:etag] unless args[:etag].nil?
1138
+ @items = args[:items] unless args[:items].nil?
1139
+ @kind = args[:kind] unless args[:kind].nil?
1140
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1141
+ end
1142
+ end
1143
+
1144
+ #
1145
+ class SavedReport
1146
+ include Google::Apis::Core::Hashable
1147
+
1148
+ # Unique identifier of this saved report.
1149
+ # Corresponds to the JSON property `id`
1150
+ # @return [String]
1151
+ attr_accessor :id
1152
+
1153
+ # Kind of resource this is, in this case adsense#savedReport.
1154
+ # Corresponds to the JSON property `kind`
1155
+ # @return [String]
1156
+ attr_accessor :kind
1157
+
1158
+ # This saved report's name.
1159
+ # Corresponds to the JSON property `name`
1160
+ # @return [String]
1161
+ attr_accessor :name
1162
+
1163
+ def initialize(**args)
1164
+ update!(**args)
1165
+ end
1166
+
1167
+ # Update properties of this object
1168
+ def update!(**args)
1169
+ @id = args[:id] unless args[:id].nil?
1170
+ @kind = args[:kind] unless args[:kind].nil?
1171
+ @name = args[:name] unless args[:name].nil?
1172
+ end
1173
+ end
1174
+
1175
+ #
1176
+ class SavedReports
1177
+ include Google::Apis::Core::Hashable
1178
+
1179
+ # ETag of this response for caching purposes.
1180
+ # Corresponds to the JSON property `etag`
1181
+ # @return [String]
1182
+ attr_accessor :etag
1183
+
1184
+ # The saved reports returned in this list response.
1185
+ # Corresponds to the JSON property `items`
1186
+ # @return [Array<Google::Apis::AdsenseV1_4::SavedReport>]
1187
+ attr_accessor :items
1188
+
1189
+ # Kind of list this is, in this case adsense#savedReports.
1190
+ # Corresponds to the JSON property `kind`
1191
+ # @return [String]
1192
+ attr_accessor :kind
1193
+
1194
+ # Continuation token used to page through saved reports. To retrieve the next
1195
+ # page of results, set the next request's "pageToken" value to this.
1196
+ # Corresponds to the JSON property `nextPageToken`
1197
+ # @return [String]
1198
+ attr_accessor :next_page_token
1199
+
1200
+ def initialize(**args)
1201
+ update!(**args)
1202
+ end
1203
+
1204
+ # Update properties of this object
1205
+ def update!(**args)
1206
+ @etag = args[:etag] unless args[:etag].nil?
1207
+ @items = args[:items] unless args[:items].nil?
1208
+ @kind = args[:kind] unless args[:kind].nil?
1209
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1210
+ end
1211
+ end
1212
+
1213
+ #
1214
+ class UrlChannel
1215
+ include Google::Apis::Core::Hashable
1216
+
1217
+ # Unique identifier of this URL channel. This should be considered an opaque
1218
+ # identifier; it is not safe to rely on it being in any particular format.
1219
+ # Corresponds to the JSON property `id`
1220
+ # @return [String]
1221
+ attr_accessor :id
1222
+
1223
+ # Kind of resource this is, in this case adsense#urlChannel.
1224
+ # Corresponds to the JSON property `kind`
1225
+ # @return [String]
1226
+ attr_accessor :kind
1227
+
1228
+ # URL Pattern of this URL channel. Does not include "http://" or "https://".
1229
+ # Example: www.example.com/home
1230
+ # Corresponds to the JSON property `urlPattern`
1231
+ # @return [String]
1232
+ attr_accessor :url_pattern
1233
+
1234
+ def initialize(**args)
1235
+ update!(**args)
1236
+ end
1237
+
1238
+ # Update properties of this object
1239
+ def update!(**args)
1240
+ @id = args[:id] unless args[:id].nil?
1241
+ @kind = args[:kind] unless args[:kind].nil?
1242
+ @url_pattern = args[:url_pattern] unless args[:url_pattern].nil?
1243
+ end
1244
+ end
1245
+
1246
+ #
1247
+ class UrlChannels
1248
+ include Google::Apis::Core::Hashable
1249
+
1250
+ # ETag of this response for caching purposes.
1251
+ # Corresponds to the JSON property `etag`
1252
+ # @return [String]
1253
+ attr_accessor :etag
1254
+
1255
+ # The URL channels returned in this list response.
1256
+ # Corresponds to the JSON property `items`
1257
+ # @return [Array<Google::Apis::AdsenseV1_4::UrlChannel>]
1258
+ attr_accessor :items
1259
+
1260
+ # Kind of list this is, in this case adsense#urlChannels.
1261
+ # Corresponds to the JSON property `kind`
1262
+ # @return [String]
1263
+ attr_accessor :kind
1264
+
1265
+ # Continuation token used to page through URL channels. To retrieve the next
1266
+ # page of results, set the next request's "pageToken" value to this.
1267
+ # Corresponds to the JSON property `nextPageToken`
1268
+ # @return [String]
1269
+ attr_accessor :next_page_token
1270
+
1271
+ def initialize(**args)
1272
+ update!(**args)
1273
+ end
1274
+
1275
+ # Update properties of this object
1276
+ def update!(**args)
1277
+ @etag = args[:etag] unless args[:etag].nil?
1278
+ @items = args[:items] unless args[:items].nil?
1279
+ @kind = args[:kind] unless args[:kind].nil?
1280
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1281
+ end
1282
+ end
1283
+ end
1284
+ end
1285
+ end