google-api-client 0.8.6 → 0.9

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 (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 +41 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +32 -2
  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.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  25. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  26. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  27. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  28. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  29. data/generated/google/apis/admin_directory_v1.rb +113 -0
  30. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  31. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  32. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  33. data/generated/google/apis/admin_reports_v1.rb +38 -0
  34. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  35. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  36. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  37. data/generated/google/apis/adsense_v1_4.rb +38 -0
  38. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  39. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  40. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  41. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  42. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  43. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  44. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  45. data/generated/google/apis/analytics_v3.rb +49 -0
  46. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  47. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  48. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  49. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  50. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  51. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  52. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  53. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  54. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  55. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  56. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  57. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  58. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  59. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  60. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  61. data/generated/google/apis/appsactivity_v1.rb +46 -0
  62. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  63. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  64. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  65. data/generated/google/apis/appstate_v1.rb +34 -0
  66. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  67. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  68. data/generated/google/apis/appstate_v1/service.rb +260 -0
  69. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  70. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  71. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  72. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  73. data/generated/google/apis/bigquery_v2.rb +52 -0
  74. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  75. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  76. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  77. data/generated/google/apis/blogger_v3.rb +37 -0
  78. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  79. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  80. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  81. data/generated/google/apis/books_v1.rb +34 -0
  82. data/generated/google/apis/books_v1/classes.rb +3956 -0
  83. data/generated/google/apis/books_v1/representations.rb +1538 -0
  84. data/generated/google/apis/books_v1/service.rb +2290 -0
  85. data/generated/google/apis/calendar_v3.rb +37 -0
  86. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  87. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  88. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  89. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  90. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  91. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  92. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  93. data/generated/google/apis/classroom_v1.rb +49 -0
  94. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  95. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  96. data/generated/google/apis/classroom_v1/service.rb +970 -0
  97. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  98. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  99. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  100. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  101. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  102. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  103. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  104. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  105. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  106. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  107. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  108. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  117. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  118. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  119. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  120. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  121. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  122. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  123. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  124. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  125. data/generated/google/apis/compute_beta.rb +49 -0
  126. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  127. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  128. data/generated/google/apis/compute_beta/service.rb +10154 -0
  129. data/generated/google/apis/compute_v1.rb +49 -0
  130. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  131. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  132. data/generated/google/apis/compute_v1/service.rb +9252 -0
  133. data/generated/google/apis/container_v1.rb +35 -0
  134. data/generated/google/apis/container_v1/classes.rb +463 -0
  135. data/generated/google/apis/container_v1/representations.rb +175 -0
  136. data/generated/google/apis/container_v1/service.rb +367 -0
  137. data/generated/google/apis/container_v1beta1.rb +35 -0
  138. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  139. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  140. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  141. data/generated/google/apis/content_v2.rb +35 -0
  142. data/generated/google/apis/content_v2/classes.rb +5986 -0
  143. data/generated/google/apis/content_v2/representations.rb +2288 -0
  144. data/generated/google/apis/content_v2/service.rb +2338 -0
  145. data/generated/google/apis/coordinate_v1.rb +37 -0
  146. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  147. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  148. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  149. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  150. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  151. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  152. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  153. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  154. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  155. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  156. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  157. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  158. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  159. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  160. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  165. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  166. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  167. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  168. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  169. data/generated/google/apis/discovery_v1.rb +32 -0
  170. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  171. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  172. data/generated/google/apis/discovery_v1/service.rb +142 -0
  173. data/generated/google/apis/dns_v1.rb +44 -0
  174. data/generated/google/apis/dns_v1/classes.rb +406 -0
  175. data/generated/google/apis/dns_v1/representations.rb +151 -0
  176. data/generated/google/apis/dns_v1/service.rb +454 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  181. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  182. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  183. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  184. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  185. data/generated/google/apis/drive_v2.rb +58 -0
  186. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  187. data/generated/google/apis/drive_v2/representations.rb +795 -0
  188. data/generated/google/apis/drive_v2/service.rb +2696 -0
  189. data/generated/google/apis/drive_v3.rb +55 -0
  190. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  191. data/generated/google/apis/drive_v3/representations.rb +497 -0
  192. data/generated/google/apis/drive_v3/service.rb +1541 -0
  193. data/generated/google/apis/fitness_v1.rb +49 -0
  194. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  195. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  196. data/generated/google/apis/fitness_v1/service.rb +675 -0
  197. data/generated/google/apis/fusiontables_v2.rb +37 -0
  198. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  199. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  200. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  201. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  202. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  203. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  204. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  205. data/generated/google/apis/games_management_v1management.rb +37 -0
  206. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  207. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  208. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  209. data/generated/google/apis/games_v1.rb +40 -0
  210. data/generated/google/apis/games_v1/classes.rb +4617 -0
  211. data/generated/google/apis/games_v1/representations.rb +1584 -0
  212. data/generated/google/apis/games_v1/service.rb +2290 -0
  213. data/generated/google/apis/gan_v1beta1.rb +31 -0
  214. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  215. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  216. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  217. data/generated/google/apis/genomics_v1.rb +49 -0
  218. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  219. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  220. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  221. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  222. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  223. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  224. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  225. data/generated/google/apis/gmail_v1.rb +52 -0
  226. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  227. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  228. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  229. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  230. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  231. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  232. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  233. data/generated/google/apis/groupssettings_v1.rb +34 -0
  234. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  235. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  236. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  237. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  238. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  239. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  240. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  241. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  242. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  243. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  244. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  245. data/generated/google/apis/licensing_v1.rb +34 -0
  246. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  247. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  248. data/generated/google/apis/licensing_v1/service.rb +369 -0
  249. data/generated/google/apis/logging_v1beta3.rb +47 -0
  250. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  251. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  252. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  253. data/generated/google/apis/manager_v1beta2.rb +53 -0
  254. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  255. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  256. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  257. data/generated/google/apis/mapsengine_v1.rb +38 -0
  258. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  259. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  260. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  261. data/generated/google/apis/mirror_v1.rb +37 -0
  262. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  263. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  264. data/generated/google/apis/mirror_v1/service.rb +977 -0
  265. data/generated/google/apis/oauth2_v2.rb +43 -0
  266. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  267. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  268. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  269. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  270. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  271. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  272. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  273. data/generated/google/apis/partners_v2.rb +32 -0
  274. data/generated/google/apis/partners_v2/classes.rb +942 -0
  275. data/generated/google/apis/partners_v2/representations.rb +402 -0
  276. data/generated/google/apis/partners_v2/service.rb +400 -0
  277. data/generated/google/apis/plus_domains_v1.rb +61 -0
  278. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  279. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  280. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  281. data/generated/google/apis/plus_v1.rb +43 -0
  282. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  283. data/generated/google/apis/plus_v1/representations.rb +805 -0
  284. data/generated/google/apis/plus_v1/service.rb +470 -0
  285. data/generated/google/apis/prediction_v1_6.rb +44 -0
  286. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  287. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  288. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  293. data/generated/google/apis/pubsub_v1.rb +37 -0
  294. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  295. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  296. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  297. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  298. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  299. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  300. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  301. data/generated/google/apis/qpx_express_v1.rb +31 -0
  302. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  303. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  304. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  305. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  306. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  307. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  308. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  313. data/generated/google/apis/reseller_v1.rb +37 -0
  314. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  315. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  316. data/generated/google/apis/reseller_v1/service.rb +623 -0
  317. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  318. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  319. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  320. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  321. data/generated/google/apis/script_v1.rb +61 -0
  322. data/generated/google/apis/script_v1/classes.rb +259 -0
  323. data/generated/google/apis/script_v1/representations.rb +106 -0
  324. data/generated/google/apis/script_v1/service.rb +98 -0
  325. data/generated/google/apis/site_verification_v1.rb +37 -0
  326. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  327. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  328. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  329. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  330. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  331. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  332. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  333. data/generated/google/apis/storage_v1.rb +46 -0
  334. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  335. data/generated/google/apis/storage_v1/representations.rb +445 -0
  336. data/generated/google/apis/storage_v1/service.rb +1903 -0
  337. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  338. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  339. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  340. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  341. data/generated/google/apis/tagmanager_v1.rb +52 -0
  342. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  343. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  344. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  345. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  346. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  347. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  348. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  349. data/generated/google/apis/tasks_v1.rb +37 -0
  350. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  351. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  352. data/generated/google/apis/tasks_v1/service.rb +643 -0
  353. data/generated/google/apis/translate_v2.rb +31 -0
  354. data/generated/google/apis/translate_v2/classes.rb +168 -0
  355. data/generated/google/apis/translate_v2/representations.rb +109 -0
  356. data/generated/google/apis/translate_v2/service.rb +182 -0
  357. data/generated/google/apis/urlshortener_v1.rb +34 -0
  358. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  359. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  360. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  361. data/generated/google/apis/webmasters_v3.rb +37 -0
  362. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  363. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  364. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  365. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  366. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  367. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  368. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  369. data/generated/google/apis/youtube_v3.rb +49 -0
  370. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  371. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  372. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  373. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  374. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  375. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  376. data/generated/google/apis/youtubereporting_v1/service.rb +364 -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 +1 -0
  380. data/lib/google/api_client/auth/storage.rb +4 -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.rb +48 -0
  385. data/lib/google/apis/core/api_command.rb +135 -0
  386. data/lib/google/apis/core/base_service.rb +317 -0
  387. data/lib/google/apis/core/batch.rb +239 -0
  388. data/lib/google/apis/core/download.rb +94 -0
  389. data/lib/google/apis/core/hashable.rb +44 -0
  390. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  391. data/lib/google/apis/core/http_command.rb +312 -0
  392. data/lib/google/apis/core/json_representation.rb +127 -0
  393. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  394. data/lib/google/apis/core/multipart.rb +187 -0
  395. data/lib/google/apis/core/upload.rb +288 -0
  396. data/lib/google/{api_client → apis}/errors.rb +39 -28
  397. data/lib/google/apis/generator.rb +70 -0
  398. data/lib/google/apis/generator/annotator.rb +295 -0
  399. data/lib/google/apis/generator/helpers.rb +74 -0
  400. data/lib/google/apis/generator/model.rb +143 -0
  401. data/lib/google/apis/generator/template.rb +124 -0
  402. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  403. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  404. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  405. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  406. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  407. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  408. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  409. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  410. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  411. data/lib/google/apis/options.rb +85 -0
  412. data/lib/google/apis/version.rb +39 -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.rb +131 -44
  460. data/spec/spec_helper/load_path_spec.rb +33 -0
  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.rb +0 -750
  465. data/lib/google/api_client/auth/file_storage.rb +0 -59
  466. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  467. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  468. data/lib/google/api_client/batch.rb +0 -326
  469. data/lib/google/api_client/charset.rb +0 -33
  470. data/lib/google/api_client/discovery/api.rb +0 -310
  471. data/lib/google/api_client/discovery/media.rb +0 -77
  472. data/lib/google/api_client/discovery/method.rb +0 -363
  473. data/lib/google/api_client/discovery/resource.rb +0 -156
  474. data/lib/google/api_client/discovery/schema.rb +0 -117
  475. data/lib/google/api_client/environment.rb +0 -42
  476. data/lib/google/api_client/gzip.rb +0 -28
  477. data/lib/google/api_client/logging.rb +0 -32
  478. data/lib/google/api_client/media.rb +0 -259
  479. data/lib/google/api_client/railtie.rb +0 -18
  480. data/lib/google/api_client/request.rb +0 -350
  481. data/lib/google/api_client/result.rb +0 -255
  482. data/lib/google/api_client/service.rb +0 -233
  483. data/lib/google/api_client/service/batch.rb +0 -110
  484. data/lib/google/api_client/service/request.rb +0 -144
  485. data/lib/google/api_client/service/resource.rb +0 -40
  486. data/lib/google/api_client/service/result.rb +0 -162
  487. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  488. data/lib/google/api_client/service/stub_generator.rb +0 -61
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -708
  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,43 @@
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/clouduseraccounts_beta/service.rb'
16
+ require 'google/apis/clouduseraccounts_beta/classes.rb'
17
+ require 'google/apis/clouduseraccounts_beta/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Cloud User Accounts API
22
+ #
23
+ # API for the Google Cloud User Accounts service.
24
+ #
25
+ # @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
26
+ module ClouduseraccountsBeta
27
+ VERSION = 'Beta'
28
+ REVISION = '20150924'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+
33
+ # View your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
35
+
36
+ # Manage your Google Cloud User Accounts
37
+ AUTH_CLOUD_USERACCOUNTS = 'https://www.googleapis.com/auth/cloud.useraccounts'
38
+
39
+ # View your Google Cloud User Accounts
40
+ AUTH_CLOUD_USERACCOUNTS_READONLY = 'https://www.googleapis.com/auth/cloud.useraccounts.readonly'
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,823 @@
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 ClouduseraccountsBeta
24
+
25
+ # A list of authorized public keys for a user account.
26
+ class AuthorizedKeysView
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # [Output Only] The list of authorized public keys in SSH format.
30
+ # Corresponds to the JSON property `keys`
31
+ # @return [Array<String>]
32
+ attr_accessor :keys
33
+
34
+ # [Output Only] Whether the user has the ability to elevate on the instance that
35
+ # requested the authorized keys.
36
+ # Corresponds to the JSON property `sudoer`
37
+ # @return [Boolean]
38
+ attr_accessor :sudoer
39
+ alias_method :sudoer?, :sudoer
40
+
41
+ def initialize(**args)
42
+ update!(**args)
43
+ end
44
+
45
+ # Update properties of this object
46
+ def update!(**args)
47
+ @keys = args[:keys] unless args[:keys].nil?
48
+ @sudoer = args[:sudoer] unless args[:sudoer].nil?
49
+ end
50
+ end
51
+
52
+ # A Group resource.
53
+ class Group
54
+ include Google::Apis::Core::Hashable
55
+
56
+ # [Output Only] Creation timestamp in RFC3339 text format.
57
+ # Corresponds to the JSON property `creationTimestamp`
58
+ # @return [String]
59
+ attr_accessor :creation_timestamp
60
+
61
+ # An optional textual description of the resource; provided by the client when
62
+ # the resource is created.
63
+ # Corresponds to the JSON property `description`
64
+ # @return [String]
65
+ attr_accessor :description
66
+
67
+ # [Output Only] Unique identifier for the resource; defined by the server.
68
+ # Corresponds to the JSON property `id`
69
+ # @return [String]
70
+ attr_accessor :id
71
+
72
+ # [Output Only] Type of the resource. Always clouduseraccounts#group for groups.
73
+ # Corresponds to the JSON property `kind`
74
+ # @return [String]
75
+ attr_accessor :kind
76
+
77
+ # [Output Only] A list of URLs to User resources who belong to the group. Users
78
+ # may only be members of groups in the same project.
79
+ # Corresponds to the JSON property `members`
80
+ # @return [Array<String>]
81
+ attr_accessor :members
82
+
83
+ # Name of the resource; provided by the client when the resource is created.
84
+ # Corresponds to the JSON property `name`
85
+ # @return [String]
86
+ attr_accessor :name
87
+
88
+ # [Output Only] Server defined URL for the resource.
89
+ # Corresponds to the JSON property `selfLink`
90
+ # @return [String]
91
+ attr_accessor :self_link
92
+
93
+ def initialize(**args)
94
+ update!(**args)
95
+ end
96
+
97
+ # Update properties of this object
98
+ def update!(**args)
99
+ @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
100
+ @description = args[:description] unless args[:description].nil?
101
+ @id = args[:id] unless args[:id].nil?
102
+ @kind = args[:kind] unless args[:kind].nil?
103
+ @members = args[:members] unless args[:members].nil?
104
+ @name = args[:name] unless args[:name].nil?
105
+ @self_link = args[:self_link] unless args[:self_link].nil?
106
+ end
107
+ end
108
+
109
+ #
110
+ class GroupList
111
+ include Google::Apis::Core::Hashable
112
+
113
+ # [Output Only] Unique identifier for the resource; defined by the server.
114
+ # Corresponds to the JSON property `id`
115
+ # @return [String]
116
+ attr_accessor :id
117
+
118
+ # [Output Only] A list of Group resources.
119
+ # Corresponds to the JSON property `items`
120
+ # @return [Array<Google::Apis::ClouduseraccountsBeta::Group>]
121
+ attr_accessor :items
122
+
123
+ # [Output Only] Type of resource. Always clouduseraccounts#groupList for lists
124
+ # of groups.
125
+ # Corresponds to the JSON property `kind`
126
+ # @return [String]
127
+ attr_accessor :kind
128
+
129
+ # [Output Only] A token used to continue a truncated list request.
130
+ # Corresponds to the JSON property `nextPageToken`
131
+ # @return [String]
132
+ attr_accessor :next_page_token
133
+
134
+ # [Output Only] Server defined URL for this resource.
135
+ # Corresponds to the JSON property `selfLink`
136
+ # @return [String]
137
+ attr_accessor :self_link
138
+
139
+ def initialize(**args)
140
+ update!(**args)
141
+ end
142
+
143
+ # Update properties of this object
144
+ def update!(**args)
145
+ @id = args[:id] unless args[:id].nil?
146
+ @items = args[:items] unless args[:items].nil?
147
+ @kind = args[:kind] unless args[:kind].nil?
148
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
149
+ @self_link = args[:self_link] unless args[:self_link].nil?
150
+ end
151
+ end
152
+
153
+ #
154
+ class GroupsAddMemberRequest
155
+ include Google::Apis::Core::Hashable
156
+
157
+ # Fully-qualified URLs of the User resources to add.
158
+ # Corresponds to the JSON property `users`
159
+ # @return [Array<String>]
160
+ attr_accessor :users
161
+
162
+ def initialize(**args)
163
+ update!(**args)
164
+ end
165
+
166
+ # Update properties of this object
167
+ def update!(**args)
168
+ @users = args[:users] unless args[:users].nil?
169
+ end
170
+ end
171
+
172
+ #
173
+ class GroupsRemoveMemberRequest
174
+ include Google::Apis::Core::Hashable
175
+
176
+ # Fully-qualified URLs of the User resources to remove.
177
+ # Corresponds to the JSON property `users`
178
+ # @return [Array<String>]
179
+ attr_accessor :users
180
+
181
+ def initialize(**args)
182
+ update!(**args)
183
+ end
184
+
185
+ # Update properties of this object
186
+ def update!(**args)
187
+ @users = args[:users] unless args[:users].nil?
188
+ end
189
+ end
190
+
191
+ # A list of all Linux accounts for this project. This API is only used by
192
+ # Compute Engine virtual machines to get information about user accounts for a
193
+ # project or instance. Linux resources are read-only views into users and groups
194
+ # managed by the Compute Engine Accounts API.
195
+ class LinuxAccountViews
196
+ include Google::Apis::Core::Hashable
197
+
198
+ # [Output Only] A list of all groups within a project.
199
+ # Corresponds to the JSON property `groupViews`
200
+ # @return [Array<Google::Apis::ClouduseraccountsBeta::LinuxGroupView>]
201
+ attr_accessor :group_views
202
+
203
+ # [Output Only] Type of the resource. Always clouduseraccounts#linuxAccountViews
204
+ # for Linux resources.
205
+ # Corresponds to the JSON property `kind`
206
+ # @return [String]
207
+ attr_accessor :kind
208
+
209
+ # [Output Only] A list of all users within a project.
210
+ # Corresponds to the JSON property `userViews`
211
+ # @return [Array<Google::Apis::ClouduseraccountsBeta::LinuxUserView>]
212
+ attr_accessor :user_views
213
+
214
+ def initialize(**args)
215
+ update!(**args)
216
+ end
217
+
218
+ # Update properties of this object
219
+ def update!(**args)
220
+ @group_views = args[:group_views] unless args[:group_views].nil?
221
+ @kind = args[:kind] unless args[:kind].nil?
222
+ @user_views = args[:user_views] unless args[:user_views].nil?
223
+ end
224
+ end
225
+
226
+ #
227
+ class LinuxGetAuthorizedKeysViewResponse
228
+ include Google::Apis::Core::Hashable
229
+
230
+ # A list of authorized public keys for a user account.
231
+ # Corresponds to the JSON property `resource`
232
+ # @return [Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView]
233
+ attr_accessor :resource
234
+
235
+ def initialize(**args)
236
+ update!(**args)
237
+ end
238
+
239
+ # Update properties of this object
240
+ def update!(**args)
241
+ @resource = args[:resource] unless args[:resource].nil?
242
+ end
243
+ end
244
+
245
+ #
246
+ class LinuxGetLinuxAccountViewsResponse
247
+ include Google::Apis::Core::Hashable
248
+
249
+ # A list of all Linux accounts for this project. This API is only used by
250
+ # Compute Engine virtual machines to get information about user accounts for a
251
+ # project or instance. Linux resources are read-only views into users and groups
252
+ # managed by the Compute Engine Accounts API.
253
+ # Corresponds to the JSON property `resource`
254
+ # @return [Google::Apis::ClouduseraccountsBeta::LinuxAccountViews]
255
+ attr_accessor :resource
256
+
257
+ def initialize(**args)
258
+ update!(**args)
259
+ end
260
+
261
+ # Update properties of this object
262
+ def update!(**args)
263
+ @resource = args[:resource] unless args[:resource].nil?
264
+ end
265
+ end
266
+
267
+ # A detailed view of a Linux group.
268
+ class LinuxGroupView
269
+ include Google::Apis::Core::Hashable
270
+
271
+ # [Output Only] The Group ID.
272
+ # Corresponds to the JSON property `gid`
273
+ # @return [Fixnum]
274
+ attr_accessor :gid
275
+
276
+ # [Output Only] Group name.
277
+ # Corresponds to the JSON property `groupName`
278
+ # @return [String]
279
+ attr_accessor :group_name
280
+
281
+ # [Output Only] List of user accounts that belong to the group.
282
+ # Corresponds to the JSON property `members`
283
+ # @return [Array<String>]
284
+ attr_accessor :members
285
+
286
+ def initialize(**args)
287
+ update!(**args)
288
+ end
289
+
290
+ # Update properties of this object
291
+ def update!(**args)
292
+ @gid = args[:gid] unless args[:gid].nil?
293
+ @group_name = args[:group_name] unless args[:group_name].nil?
294
+ @members = args[:members] unless args[:members].nil?
295
+ end
296
+ end
297
+
298
+ # A detailed view of a Linux user account.
299
+ class LinuxUserView
300
+ include Google::Apis::Core::Hashable
301
+
302
+ # [Output Only] The GECOS (user information) entry for this account.
303
+ # Corresponds to the JSON property `gecos`
304
+ # @return [String]
305
+ attr_accessor :gecos
306
+
307
+ # [Output Only] User's default group ID.
308
+ # Corresponds to the JSON property `gid`
309
+ # @return [Fixnum]
310
+ attr_accessor :gid
311
+
312
+ # [Output Only] The path to the home directory for this account.
313
+ # Corresponds to the JSON property `homeDirectory`
314
+ # @return [String]
315
+ attr_accessor :home_directory
316
+
317
+ # [Output Only] The path to the login shell for this account.
318
+ # Corresponds to the JSON property `shell`
319
+ # @return [String]
320
+ attr_accessor :shell
321
+
322
+ # [Output Only] User ID.
323
+ # Corresponds to the JSON property `uid`
324
+ # @return [Fixnum]
325
+ attr_accessor :uid
326
+
327
+ # [Output Only] The username of the account.
328
+ # Corresponds to the JSON property `username`
329
+ # @return [String]
330
+ attr_accessor :username
331
+
332
+ def initialize(**args)
333
+ update!(**args)
334
+ end
335
+
336
+ # Update properties of this object
337
+ def update!(**args)
338
+ @gecos = args[:gecos] unless args[:gecos].nil?
339
+ @gid = args[:gid] unless args[:gid].nil?
340
+ @home_directory = args[:home_directory] unless args[:home_directory].nil?
341
+ @shell = args[:shell] unless args[:shell].nil?
342
+ @uid = args[:uid] unless args[:uid].nil?
343
+ @username = args[:username] unless args[:username].nil?
344
+ end
345
+ end
346
+
347
+ # An Operation resource, used to manage asynchronous API requests.
348
+ class Operation
349
+ include Google::Apis::Core::Hashable
350
+
351
+ # [Output Only] An optional identifier specified by the client when the mutation
352
+ # was initiated. Must be unique for all Operation resources in the project.
353
+ # Corresponds to the JSON property `clientOperationId`
354
+ # @return [String]
355
+ attr_accessor :client_operation_id
356
+
357
+ # [Output Only] Creation timestamp in RFC3339 text format.
358
+ # Corresponds to the JSON property `creationTimestamp`
359
+ # @return [String]
360
+ attr_accessor :creation_timestamp
361
+
362
+ # [Output Only] The time that this operation was completed. This is in RFC3339
363
+ # text format.
364
+ # Corresponds to the JSON property `endTime`
365
+ # @return [String]
366
+ attr_accessor :end_time
367
+
368
+ # [Output Only] If errors are generated during processing of the operation, this
369
+ # field will be populated.
370
+ # Corresponds to the JSON property `error`
371
+ # @return [Google::Apis::ClouduseraccountsBeta::Operation::Error]
372
+ attr_accessor :error
373
+
374
+ # [Output Only] If the operation fails, this field contains the HTTP error
375
+ # message that was returned, such as NOT FOUND.
376
+ # Corresponds to the JSON property `httpErrorMessage`
377
+ # @return [String]
378
+ attr_accessor :http_error_message
379
+
380
+ # [Output Only] If the operation fails, this field contains the HTTP error
381
+ # message that was returned, such as 404.
382
+ # Corresponds to the JSON property `httpErrorStatusCode`
383
+ # @return [Fixnum]
384
+ attr_accessor :http_error_status_code
385
+
386
+ # [Output Only] Unique identifier for the resource; defined by the server.
387
+ # Corresponds to the JSON property `id`
388
+ # @return [String]
389
+ attr_accessor :id
390
+
391
+ # [Output Only] The time that this operation was requested. This is in RFC3339
392
+ # text format.
393
+ # Corresponds to the JSON property `insertTime`
394
+ # @return [String]
395
+ attr_accessor :insert_time
396
+
397
+ # [Output Only] Type of the resource. Always compute#operation for Operation
398
+ # resources.
399
+ # Corresponds to the JSON property `kind`
400
+ # @return [String]
401
+ attr_accessor :kind
402
+
403
+ # [Output Only] Name of the resource.
404
+ # Corresponds to the JSON property `name`
405
+ # @return [String]
406
+ attr_accessor :name
407
+
408
+ # [Output Only] Type of the operation, such as insert, compute.instanceGroups.
409
+ # update, or compute.instanceGroups.delete.
410
+ # Corresponds to the JSON property `operationType`
411
+ # @return [String]
412
+ attr_accessor :operation_type
413
+
414
+ # [Output Only] An optional progress indicator that ranges from 0 to 100. There
415
+ # is no requirement that this be linear or support any granularity of operations.
416
+ # This should not be used to guess at when the operation will be complete. This
417
+ # number should monotonically increase as the operation progresses.
418
+ # Corresponds to the JSON property `progress`
419
+ # @return [Fixnum]
420
+ attr_accessor :progress
421
+
422
+ # [Output Only] URL of the region where the operation resides. Only applicable
423
+ # for regional resources.
424
+ # Corresponds to the JSON property `region`
425
+ # @return [String]
426
+ attr_accessor :region
427
+
428
+ # [Output Only] Server-defined URL for the resource.
429
+ # Corresponds to the JSON property `selfLink`
430
+ # @return [String]
431
+ attr_accessor :self_link
432
+
433
+ # [Output Only] The time that this operation was started by the server. This is
434
+ # in RFC3339 text format.
435
+ # Corresponds to the JSON property `startTime`
436
+ # @return [String]
437
+ attr_accessor :start_time
438
+
439
+ # [Output Only] Status of the operation. Can be one of the following: PENDING,
440
+ # RUNNING, or DONE.
441
+ # Corresponds to the JSON property `status`
442
+ # @return [String]
443
+ attr_accessor :status
444
+
445
+ # [Output Only] An optional textual description of the current status of the
446
+ # operation.
447
+ # Corresponds to the JSON property `statusMessage`
448
+ # @return [String]
449
+ attr_accessor :status_message
450
+
451
+ # [Output Only] Unique target ID which identifies a particular incarnation of
452
+ # the target.
453
+ # Corresponds to the JSON property `targetId`
454
+ # @return [String]
455
+ attr_accessor :target_id
456
+
457
+ # [Output Only] URL of the resource the operation is mutating.
458
+ # Corresponds to the JSON property `targetLink`
459
+ # @return [String]
460
+ attr_accessor :target_link
461
+
462
+ # [Output Only] User who requested the operation, for example: user@example.com.
463
+ # Corresponds to the JSON property `user`
464
+ # @return [String]
465
+ attr_accessor :user
466
+
467
+ # [Output Only] If warning messages are generated during processing of the
468
+ # operation, this field will be populated.
469
+ # Corresponds to the JSON property `warnings`
470
+ # @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Warning>]
471
+ attr_accessor :warnings
472
+
473
+ # [Output Only] URL of the zone where the operation resides.
474
+ # Corresponds to the JSON property `zone`
475
+ # @return [String]
476
+ attr_accessor :zone
477
+
478
+ def initialize(**args)
479
+ update!(**args)
480
+ end
481
+
482
+ # Update properties of this object
483
+ def update!(**args)
484
+ @client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil?
485
+ @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
486
+ @end_time = args[:end_time] unless args[:end_time].nil?
487
+ @error = args[:error] unless args[:error].nil?
488
+ @http_error_message = args[:http_error_message] unless args[:http_error_message].nil?
489
+ @http_error_status_code = args[:http_error_status_code] unless args[:http_error_status_code].nil?
490
+ @id = args[:id] unless args[:id].nil?
491
+ @insert_time = args[:insert_time] unless args[:insert_time].nil?
492
+ @kind = args[:kind] unless args[:kind].nil?
493
+ @name = args[:name] unless args[:name].nil?
494
+ @operation_type = args[:operation_type] unless args[:operation_type].nil?
495
+ @progress = args[:progress] unless args[:progress].nil?
496
+ @region = args[:region] unless args[:region].nil?
497
+ @self_link = args[:self_link] unless args[:self_link].nil?
498
+ @start_time = args[:start_time] unless args[:start_time].nil?
499
+ @status = args[:status] unless args[:status].nil?
500
+ @status_message = args[:status_message] unless args[:status_message].nil?
501
+ @target_id = args[:target_id] unless args[:target_id].nil?
502
+ @target_link = args[:target_link] unless args[:target_link].nil?
503
+ @user = args[:user] unless args[:user].nil?
504
+ @warnings = args[:warnings] unless args[:warnings].nil?
505
+ @zone = args[:zone] unless args[:zone].nil?
506
+ end
507
+
508
+ # [Output Only] If errors are generated during processing of the operation, this
509
+ # field will be populated.
510
+ class Error
511
+ include Google::Apis::Core::Hashable
512
+
513
+ # [Output Only] The array of errors encountered while processing this operation.
514
+ # Corresponds to the JSON property `errors`
515
+ # @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Error::Error>]
516
+ attr_accessor :errors
517
+
518
+ def initialize(**args)
519
+ update!(**args)
520
+ end
521
+
522
+ # Update properties of this object
523
+ def update!(**args)
524
+ @errors = args[:errors] unless args[:errors].nil?
525
+ end
526
+
527
+ #
528
+ class Error
529
+ include Google::Apis::Core::Hashable
530
+
531
+ # [Output Only] The error type identifier for this error.
532
+ # Corresponds to the JSON property `code`
533
+ # @return [String]
534
+ attr_accessor :code
535
+
536
+ # [Output Only] Indicates the field in the request which caused the error. This
537
+ # property is optional.
538
+ # Corresponds to the JSON property `location`
539
+ # @return [String]
540
+ attr_accessor :location
541
+
542
+ # [Output Only] An optional, human-readable error message.
543
+ # Corresponds to the JSON property `message`
544
+ # @return [String]
545
+ attr_accessor :message
546
+
547
+ def initialize(**args)
548
+ update!(**args)
549
+ end
550
+
551
+ # Update properties of this object
552
+ def update!(**args)
553
+ @code = args[:code] unless args[:code].nil?
554
+ @location = args[:location] unless args[:location].nil?
555
+ @message = args[:message] unless args[:message].nil?
556
+ end
557
+ end
558
+ end
559
+
560
+ #
561
+ class Warning
562
+ include Google::Apis::Core::Hashable
563
+
564
+ # [Output Only] The warning type identifier for this warning.
565
+ # Corresponds to the JSON property `code`
566
+ # @return [String]
567
+ attr_accessor :code
568
+
569
+ # [Output Only] Metadata for this warning in key: value format.
570
+ # Corresponds to the JSON property `data`
571
+ # @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Warning::Datum>]
572
+ attr_accessor :data
573
+
574
+ # [Output Only] Optional human-readable details for this warning.
575
+ # Corresponds to the JSON property `message`
576
+ # @return [String]
577
+ attr_accessor :message
578
+
579
+ def initialize(**args)
580
+ update!(**args)
581
+ end
582
+
583
+ # Update properties of this object
584
+ def update!(**args)
585
+ @code = args[:code] unless args[:code].nil?
586
+ @data = args[:data] unless args[:data].nil?
587
+ @message = args[:message] unless args[:message].nil?
588
+ end
589
+
590
+ #
591
+ class Datum
592
+ include Google::Apis::Core::Hashable
593
+
594
+ # [Output Only] A key for the warning data.
595
+ # Corresponds to the JSON property `key`
596
+ # @return [String]
597
+ attr_accessor :key
598
+
599
+ # [Output Only] A warning data value corresponding to the key.
600
+ # Corresponds to the JSON property `value`
601
+ # @return [String]
602
+ attr_accessor :value
603
+
604
+ def initialize(**args)
605
+ update!(**args)
606
+ end
607
+
608
+ # Update properties of this object
609
+ def update!(**args)
610
+ @key = args[:key] unless args[:key].nil?
611
+ @value = args[:value] unless args[:value].nil?
612
+ end
613
+ end
614
+ end
615
+ end
616
+
617
+ # Contains a list of Operation resources.
618
+ class OperationList
619
+ include Google::Apis::Core::Hashable
620
+
621
+ # [Output Only] Unique identifier for the resource; defined by the server.
622
+ # Corresponds to the JSON property `id`
623
+ # @return [String]
624
+ attr_accessor :id
625
+
626
+ # [Output Only] The Operation resources.
627
+ # Corresponds to the JSON property `items`
628
+ # @return [Array<Google::Apis::ClouduseraccountsBeta::Operation>]
629
+ attr_accessor :items
630
+
631
+ # [Output Only] Type of resource. Always compute#operations for Operations
632
+ # resource.
633
+ # Corresponds to the JSON property `kind`
634
+ # @return [String]
635
+ attr_accessor :kind
636
+
637
+ # [Output Only] A token used to continue a truncate.
638
+ # Corresponds to the JSON property `nextPageToken`
639
+ # @return [String]
640
+ attr_accessor :next_page_token
641
+
642
+ # [Output Only] Server-defined URL for this resource.
643
+ # Corresponds to the JSON property `selfLink`
644
+ # @return [String]
645
+ attr_accessor :self_link
646
+
647
+ def initialize(**args)
648
+ update!(**args)
649
+ end
650
+
651
+ # Update properties of this object
652
+ def update!(**args)
653
+ @id = args[:id] unless args[:id].nil?
654
+ @items = args[:items] unless args[:items].nil?
655
+ @kind = args[:kind] unless args[:kind].nil?
656
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
657
+ @self_link = args[:self_link] unless args[:self_link].nil?
658
+ end
659
+ end
660
+
661
+ # A public key for authenticating to guests.
662
+ class PublicKey
663
+ include Google::Apis::Core::Hashable
664
+
665
+ # [Output Only] Creation timestamp in RFC3339 text format.
666
+ # Corresponds to the JSON property `creationTimestamp`
667
+ # @return [String]
668
+ attr_accessor :creation_timestamp
669
+
670
+ # An optional textual description of the resource; provided by the client when
671
+ # the resource is created.
672
+ # Corresponds to the JSON property `description`
673
+ # @return [String]
674
+ attr_accessor :description
675
+
676
+ # Optional expiration timestamp. If provided, the timestamp must be in RFC3339
677
+ # text format. If not provided, the public key never expires.
678
+ # Corresponds to the JSON property `expirationTimestamp`
679
+ # @return [String]
680
+ attr_accessor :expiration_timestamp
681
+
682
+ # [Output Only] The fingerprint of the key is defined by RFC4716 to be the MD5
683
+ # digest of the public key.
684
+ # Corresponds to the JSON property `fingerprint`
685
+ # @return [String]
686
+ attr_accessor :fingerprint
687
+
688
+ # Public key text in SSH format, defined by RFC4253 section 6.6.
689
+ # Corresponds to the JSON property `key`
690
+ # @return [String]
691
+ attr_accessor :key
692
+
693
+ def initialize(**args)
694
+ update!(**args)
695
+ end
696
+
697
+ # Update properties of this object
698
+ def update!(**args)
699
+ @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
700
+ @description = args[:description] unless args[:description].nil?
701
+ @expiration_timestamp = args[:expiration_timestamp] unless args[:expiration_timestamp].nil?
702
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
703
+ @key = args[:key] unless args[:key].nil?
704
+ end
705
+ end
706
+
707
+ # A User resource.
708
+ class User
709
+ include Google::Apis::Core::Hashable
710
+
711
+ # [Output Only] Creation timestamp in RFC3339 text format.
712
+ # Corresponds to the JSON property `creationTimestamp`
713
+ # @return [String]
714
+ attr_accessor :creation_timestamp
715
+
716
+ # An optional textual description of the resource; provided by the client when
717
+ # the resource is created.
718
+ # Corresponds to the JSON property `description`
719
+ # @return [String]
720
+ attr_accessor :description
721
+
722
+ # [Output Only] A list of URLs to Group resources who contain the user. Users
723
+ # are only members of groups in the same project.
724
+ # Corresponds to the JSON property `groups`
725
+ # @return [Array<String>]
726
+ attr_accessor :groups
727
+
728
+ # [Output Only] Unique identifier for the resource; defined by the server.
729
+ # Corresponds to the JSON property `id`
730
+ # @return [String]
731
+ attr_accessor :id
732
+
733
+ # [Output Only] Type of the resource. Always clouduseraccounts#user for users.
734
+ # Corresponds to the JSON property `kind`
735
+ # @return [String]
736
+ attr_accessor :kind
737
+
738
+ # Name of the resource; provided by the client when the resource is created.
739
+ # Corresponds to the JSON property `name`
740
+ # @return [String]
741
+ attr_accessor :name
742
+
743
+ # Email address of account's owner. This account will be validated to make sure
744
+ # it exists. The email can belong to any domain, but it must be tied to a Google
745
+ # account.
746
+ # Corresponds to the JSON property `owner`
747
+ # @return [String]
748
+ attr_accessor :owner
749
+
750
+ # [Output Only] Public keys that this user may use to login.
751
+ # Corresponds to the JSON property `publicKeys`
752
+ # @return [Array<Google::Apis::ClouduseraccountsBeta::PublicKey>]
753
+ attr_accessor :public_keys
754
+
755
+ # [Output Only] Server defined URL for the resource.
756
+ # Corresponds to the JSON property `selfLink`
757
+ # @return [String]
758
+ attr_accessor :self_link
759
+
760
+ def initialize(**args)
761
+ update!(**args)
762
+ end
763
+
764
+ # Update properties of this object
765
+ def update!(**args)
766
+ @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
767
+ @description = args[:description] unless args[:description].nil?
768
+ @groups = args[:groups] unless args[:groups].nil?
769
+ @id = args[:id] unless args[:id].nil?
770
+ @kind = args[:kind] unless args[:kind].nil?
771
+ @name = args[:name] unless args[:name].nil?
772
+ @owner = args[:owner] unless args[:owner].nil?
773
+ @public_keys = args[:public_keys] unless args[:public_keys].nil?
774
+ @self_link = args[:self_link] unless args[:self_link].nil?
775
+ end
776
+ end
777
+
778
+ #
779
+ class UserList
780
+ include Google::Apis::Core::Hashable
781
+
782
+ # [Output Only] Unique identifier for the resource; defined by the server.
783
+ # Corresponds to the JSON property `id`
784
+ # @return [String]
785
+ attr_accessor :id
786
+
787
+ # [Output Only] A list of User resources.
788
+ # Corresponds to the JSON property `items`
789
+ # @return [Array<Google::Apis::ClouduseraccountsBeta::User>]
790
+ attr_accessor :items
791
+
792
+ # [Output Only] Type of resource. Always clouduseraccounts#userList for lists of
793
+ # users.
794
+ # Corresponds to the JSON property `kind`
795
+ # @return [String]
796
+ attr_accessor :kind
797
+
798
+ # [Output Only] A token used to continue a truncated list request.
799
+ # Corresponds to the JSON property `nextPageToken`
800
+ # @return [String]
801
+ attr_accessor :next_page_token
802
+
803
+ # [Output Only] Server defined URL for this resource.
804
+ # Corresponds to the JSON property `selfLink`
805
+ # @return [String]
806
+ attr_accessor :self_link
807
+
808
+ def initialize(**args)
809
+ update!(**args)
810
+ end
811
+
812
+ # Update properties of this object
813
+ def update!(**args)
814
+ @id = args[:id] unless args[:id].nil?
815
+ @items = args[:items] unless args[:items].nil?
816
+ @kind = args[:kind] unless args[:kind].nil?
817
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
818
+ @self_link = args[:self_link] unless args[:self_link].nil?
819
+ end
820
+ end
821
+ end
822
+ end
823
+ end