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,294 @@
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/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module DatastoreV1beta2
23
+ # Google Cloud Datastore API
24
+ #
25
+ # API for accessing Google Cloud Datastore.
26
+ #
27
+ # @example
28
+ # require 'google/apis/datastore_v1beta2'
29
+ #
30
+ # Datastore = Google::Apis::DatastoreV1beta2 # Alias the module
31
+ # service = Datastore::DatastoreService.new
32
+ #
33
+ # @see https://developers.google.com/datastore/
34
+ class DatastoreService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ # Overrides userIp if both are provided.
44
+ attr_accessor :quota_user
45
+
46
+ # @return [String]
47
+ # IP address of the site where the request originates. Use this if you want to
48
+ # enforce per-user limits.
49
+ attr_accessor :user_ip
50
+
51
+ def initialize
52
+ super('https://www.googleapis.com/', 'datastore/v1beta2/datasets/')
53
+ end
54
+
55
+ # Allocate IDs for incomplete keys (useful for referencing an entity before it
56
+ # is inserted).
57
+ # @param [String] dataset_id
58
+ # Identifies the dataset.
59
+ # @param [Google::Apis::DatastoreV1beta2::AllocateIdsRequest] allocate_ids_request_object
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
+ # @param [String] quota_user
63
+ # Available to use for quota purposes for server-side applications. Can be any
64
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
65
+ # Overrides userIp if both are provided.
66
+ # @param [String] user_ip
67
+ # IP address of the site where the request originates. Use this if you want to
68
+ # enforce per-user limits.
69
+ # @param [Google::Apis::RequestOptions] options
70
+ # Request-specific options
71
+ #
72
+ # @yield [result, err] Result & error if block supplied
73
+ # @yieldparam result [Google::Apis::DatastoreV1beta2::AllocateIdsResponse] parsed result object
74
+ # @yieldparam err [StandardError] error object if request failed
75
+ #
76
+ # @return [Google::Apis::DatastoreV1beta2::AllocateIdsResponse]
77
+ #
78
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
81
+ def allocate_dataset_ids(dataset_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
82
+ command = make_simple_command(:post, '{datasetId}/allocateIds', options)
83
+ command.request_representation = Google::Apis::DatastoreV1beta2::AllocateIdsRequest::Representation
84
+ command.request_object = allocate_ids_request_object
85
+ command.response_representation = Google::Apis::DatastoreV1beta2::AllocateIdsResponse::Representation
86
+ command.response_class = Google::Apis::DatastoreV1beta2::AllocateIdsResponse
87
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
88
+ command.query['fields'] = fields unless fields.nil?
89
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
90
+ command.query['userIp'] = user_ip unless user_ip.nil?
91
+ execute_or_queue_command(command, &block)
92
+ end
93
+
94
+ # Begin a new transaction.
95
+ # @param [String] dataset_id
96
+ # Identifies the dataset.
97
+ # @param [Google::Apis::DatastoreV1beta2::BeginTransactionRequest] begin_transaction_request_object
98
+ # @param [String] fields
99
+ # Selector specifying which fields to include in a partial response.
100
+ # @param [String] quota_user
101
+ # Available to use for quota purposes for server-side applications. Can be any
102
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
103
+ # Overrides userIp if both are provided.
104
+ # @param [String] user_ip
105
+ # IP address of the site where the request originates. Use this if you want to
106
+ # enforce per-user limits.
107
+ # @param [Google::Apis::RequestOptions] options
108
+ # Request-specific options
109
+ #
110
+ # @yield [result, err] Result & error if block supplied
111
+ # @yieldparam result [Google::Apis::DatastoreV1beta2::BeginTransactionResponse] parsed result object
112
+ # @yieldparam err [StandardError] error object if request failed
113
+ #
114
+ # @return [Google::Apis::DatastoreV1beta2::BeginTransactionResponse]
115
+ #
116
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
117
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
119
+ def begin_dataset_transaction(dataset_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
120
+ command = make_simple_command(:post, '{datasetId}/beginTransaction', options)
121
+ command.request_representation = Google::Apis::DatastoreV1beta2::BeginTransactionRequest::Representation
122
+ command.request_object = begin_transaction_request_object
123
+ command.response_representation = Google::Apis::DatastoreV1beta2::BeginTransactionResponse::Representation
124
+ command.response_class = Google::Apis::DatastoreV1beta2::BeginTransactionResponse
125
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
126
+ command.query['fields'] = fields unless fields.nil?
127
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
128
+ command.query['userIp'] = user_ip unless user_ip.nil?
129
+ execute_or_queue_command(command, &block)
130
+ end
131
+
132
+ # Commit a transaction, optionally creating, deleting or modifying some entities.
133
+ # @param [String] dataset_id
134
+ # Identifies the dataset.
135
+ # @param [Google::Apis::DatastoreV1beta2::CommitRequest] commit_request_object
136
+ # @param [String] fields
137
+ # Selector specifying which fields to include in a partial response.
138
+ # @param [String] quota_user
139
+ # Available to use for quota purposes for server-side applications. Can be any
140
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
141
+ # Overrides userIp if both are provided.
142
+ # @param [String] user_ip
143
+ # IP address of the site where the request originates. Use this if you want to
144
+ # enforce per-user limits.
145
+ # @param [Google::Apis::RequestOptions] options
146
+ # Request-specific options
147
+ #
148
+ # @yield [result, err] Result & error if block supplied
149
+ # @yieldparam result [Google::Apis::DatastoreV1beta2::CommitResponse] parsed result object
150
+ # @yieldparam err [StandardError] error object if request failed
151
+ #
152
+ # @return [Google::Apis::DatastoreV1beta2::CommitResponse]
153
+ #
154
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
155
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
157
+ def commit_dataset(dataset_id, commit_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
158
+ command = make_simple_command(:post, '{datasetId}/commit', options)
159
+ command.request_representation = Google::Apis::DatastoreV1beta2::CommitRequest::Representation
160
+ command.request_object = commit_request_object
161
+ command.response_representation = Google::Apis::DatastoreV1beta2::CommitResponse::Representation
162
+ command.response_class = Google::Apis::DatastoreV1beta2::CommitResponse
163
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
164
+ command.query['fields'] = fields unless fields.nil?
165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
166
+ command.query['userIp'] = user_ip unless user_ip.nil?
167
+ execute_or_queue_command(command, &block)
168
+ end
169
+
170
+ # Look up some entities by key.
171
+ # @param [String] dataset_id
172
+ # Identifies the dataset.
173
+ # @param [Google::Apis::DatastoreV1beta2::LookupRequest] lookup_request_object
174
+ # @param [String] fields
175
+ # Selector specifying which fields to include in a partial response.
176
+ # @param [String] quota_user
177
+ # Available to use for quota purposes for server-side applications. Can be any
178
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
179
+ # Overrides userIp if both are provided.
180
+ # @param [String] user_ip
181
+ # IP address of the site where the request originates. Use this if you want to
182
+ # enforce per-user limits.
183
+ # @param [Google::Apis::RequestOptions] options
184
+ # Request-specific options
185
+ #
186
+ # @yield [result, err] Result & error if block supplied
187
+ # @yieldparam result [Google::Apis::DatastoreV1beta2::LookupResponse] parsed result object
188
+ # @yieldparam err [StandardError] error object if request failed
189
+ #
190
+ # @return [Google::Apis::DatastoreV1beta2::LookupResponse]
191
+ #
192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
195
+ def lookup_dataset(dataset_id, lookup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
196
+ command = make_simple_command(:post, '{datasetId}/lookup', options)
197
+ command.request_representation = Google::Apis::DatastoreV1beta2::LookupRequest::Representation
198
+ command.request_object = lookup_request_object
199
+ command.response_representation = Google::Apis::DatastoreV1beta2::LookupResponse::Representation
200
+ command.response_class = Google::Apis::DatastoreV1beta2::LookupResponse
201
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
202
+ command.query['fields'] = fields unless fields.nil?
203
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
204
+ command.query['userIp'] = user_ip unless user_ip.nil?
205
+ execute_or_queue_command(command, &block)
206
+ end
207
+
208
+ # Roll back a transaction.
209
+ # @param [String] dataset_id
210
+ # Identifies the dataset.
211
+ # @param [Google::Apis::DatastoreV1beta2::RollbackRequest] rollback_request_object
212
+ # @param [String] fields
213
+ # Selector specifying which fields to include in a partial response.
214
+ # @param [String] quota_user
215
+ # Available to use for quota purposes for server-side applications. Can be any
216
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
217
+ # Overrides userIp if both are provided.
218
+ # @param [String] user_ip
219
+ # IP address of the site where the request originates. Use this if you want to
220
+ # enforce per-user limits.
221
+ # @param [Google::Apis::RequestOptions] options
222
+ # Request-specific options
223
+ #
224
+ # @yield [result, err] Result & error if block supplied
225
+ # @yieldparam result [Google::Apis::DatastoreV1beta2::RollbackResponse] parsed result object
226
+ # @yieldparam err [StandardError] error object if request failed
227
+ #
228
+ # @return [Google::Apis::DatastoreV1beta2::RollbackResponse]
229
+ #
230
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
231
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
232
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
233
+ def rollback_dataset(dataset_id, rollback_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
234
+ command = make_simple_command(:post, '{datasetId}/rollback', options)
235
+ command.request_representation = Google::Apis::DatastoreV1beta2::RollbackRequest::Representation
236
+ command.request_object = rollback_request_object
237
+ command.response_representation = Google::Apis::DatastoreV1beta2::RollbackResponse::Representation
238
+ command.response_class = Google::Apis::DatastoreV1beta2::RollbackResponse
239
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
240
+ command.query['fields'] = fields unless fields.nil?
241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
242
+ command.query['userIp'] = user_ip unless user_ip.nil?
243
+ execute_or_queue_command(command, &block)
244
+ end
245
+
246
+ # Query for entities.
247
+ # @param [String] dataset_id
248
+ # Identifies the dataset.
249
+ # @param [Google::Apis::DatastoreV1beta2::RunQueryRequest] run_query_request_object
250
+ # @param [String] fields
251
+ # Selector specifying which fields to include in a partial response.
252
+ # @param [String] quota_user
253
+ # Available to use for quota purposes for server-side applications. Can be any
254
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
255
+ # Overrides userIp if both are provided.
256
+ # @param [String] user_ip
257
+ # IP address of the site where the request originates. Use this if you want to
258
+ # enforce per-user limits.
259
+ # @param [Google::Apis::RequestOptions] options
260
+ # Request-specific options
261
+ #
262
+ # @yield [result, err] Result & error if block supplied
263
+ # @yieldparam result [Google::Apis::DatastoreV1beta2::RunQueryResponse] parsed result object
264
+ # @yieldparam err [StandardError] error object if request failed
265
+ #
266
+ # @return [Google::Apis::DatastoreV1beta2::RunQueryResponse]
267
+ #
268
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
269
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
270
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
271
+ def run_dataset_query(dataset_id, run_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
272
+ command = make_simple_command(:post, '{datasetId}/runQuery', options)
273
+ command.request_representation = Google::Apis::DatastoreV1beta2::RunQueryRequest::Representation
274
+ command.request_object = run_query_request_object
275
+ command.response_representation = Google::Apis::DatastoreV1beta2::RunQueryResponse::Representation
276
+ command.response_class = Google::Apis::DatastoreV1beta2::RunQueryResponse
277
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
278
+ command.query['fields'] = fields unless fields.nil?
279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
+ command.query['userIp'] = user_ip unless user_ip.nil?
281
+ execute_or_queue_command(command, &block)
282
+ end
283
+
284
+ protected
285
+
286
+ def apply_command_defaults(command)
287
+ command.query['key'] = key unless key.nil?
288
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
289
+ command.query['userIp'] = user_ip unless user_ip.nil?
290
+ end
291
+ end
292
+ end
293
+ end
294
+ end
@@ -0,0 +1,44 @@
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/deploymentmanager_v2/service.rb'
16
+ require 'google/apis/deploymentmanager_v2/classes.rb'
17
+ require 'google/apis/deploymentmanager_v2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud Deployment Manager API
22
+ #
23
+ # The Deployment Manager API allows users to declaratively configure, deploy and
24
+ # run complex solutions on the Google Cloud Platform.
25
+ #
26
+ # @see https://cloud.google.com/deployment-manager/
27
+ module DeploymentmanagerV2
28
+ VERSION = 'V2'
29
+ REVISION = '20160104'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+
34
+ # View your data across Google Cloud Platform services
35
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
36
+
37
+ # View and manage your Google Cloud Platform management resources and deployment status information
38
+ AUTH_NDEV_CLOUDMAN = 'https://www.googleapis.com/auth/ndev.cloudman'
39
+
40
+ # View your Google Cloud Platform management resources and deployment status information
41
+ AUTH_NDEV_CLOUDMAN_READONLY = 'https://www.googleapis.com/auth/ndev.cloudman.readonly'
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,1091 @@
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 DeploymentmanagerV2
24
+
25
+ #
26
+ class ConfigFile
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The contents of the file.
30
+ # Corresponds to the JSON property `content`
31
+ # @return [String]
32
+ attr_accessor :content
33
+
34
+ def initialize(**args)
35
+ update!(**args)
36
+ end
37
+
38
+ # Update properties of this object
39
+ def update!(**args)
40
+ @content = args[:content] unless args[:content].nil?
41
+ end
42
+ end
43
+
44
+ #
45
+ class Deployment
46
+ include Google::Apis::Core::Hashable
47
+
48
+ # An optional user-provided description of the deployment.
49
+ # Corresponds to the JSON property `description`
50
+ # @return [String]
51
+ attr_accessor :description
52
+
53
+ # Provides a fingerprint to use in requests to modify a deployment, such as
54
+ # update(), stop(), and cancelPreview() requests. A fingerprint is a randomly
55
+ # generated value that must be provided with update(), stop(), and cancelPreview(
56
+ # ) requests to perform optimistic locking. This ensures optimistic concurrency
57
+ # so that only one request happens at a time.
58
+ # The fingerprint is initially generated by Deployment Manager and changes after
59
+ # every request to modify data. To get the latest fingerprint value, perform a
60
+ # get() request to a deployment.
61
+ # Corresponds to the JSON property `fingerprint`
62
+ # @return [String]
63
+ attr_accessor :fingerprint
64
+
65
+ # [Output Only] Unique identifier for the resource; defined by the server.
66
+ # Corresponds to the JSON property `id`
67
+ # @return [String]
68
+ attr_accessor :id
69
+
70
+ # [Output Only] Timestamp when the deployment was created, in RFC3339 text
71
+ # format .
72
+ # Corresponds to the JSON property `insertTime`
73
+ # @return [String]
74
+ attr_accessor :insert_time
75
+
76
+ # [Output Only] URL of the manifest representing the last manifest that was
77
+ # successfully deployed.
78
+ # Corresponds to the JSON property `manifest`
79
+ # @return [String]
80
+ attr_accessor :manifest
81
+
82
+ # Name of the resource; provided by the client when the resource is created. The
83
+ # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
84
+ # name must be 1-63 characters long and match the regular expression [a-z]([-a-
85
+ # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
86
+ # and all following characters must be a dash, lowercase letter, or digit,
87
+ # except the last character, which cannot be a dash.
88
+ # Corresponds to the JSON property `name`
89
+ # @return [String]
90
+ attr_accessor :name
91
+
92
+ # An Operation resource, used to manage asynchronous API requests.
93
+ # Corresponds to the JSON property `operation`
94
+ # @return [Google::Apis::DeploymentmanagerV2::Operation]
95
+ attr_accessor :operation
96
+
97
+ #
98
+ # Corresponds to the JSON property `target`
99
+ # @return [Google::Apis::DeploymentmanagerV2::TargetConfiguration]
100
+ attr_accessor :target
101
+
102
+ #
103
+ # Corresponds to the JSON property `update`
104
+ # @return [Google::Apis::DeploymentmanagerV2::DeploymentUpdate]
105
+ attr_accessor :update
106
+
107
+ def initialize(**args)
108
+ update!(**args)
109
+ end
110
+
111
+ # Update properties of this object
112
+ def update!(**args)
113
+ @description = args[:description] unless args[:description].nil?
114
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
115
+ @id = args[:id] unless args[:id].nil?
116
+ @insert_time = args[:insert_time] unless args[:insert_time].nil?
117
+ @manifest = args[:manifest] unless args[:manifest].nil?
118
+ @name = args[:name] unless args[:name].nil?
119
+ @operation = args[:operation] unless args[:operation].nil?
120
+ @target = args[:target] unless args[:target].nil?
121
+ @update = args[:update] unless args[:update].nil?
122
+ end
123
+ end
124
+
125
+ #
126
+ class DeploymentUpdate
127
+ include Google::Apis::Core::Hashable
128
+
129
+ # [Output Only] URL of the manifest representing the update configuration of
130
+ # this deployment.
131
+ # Corresponds to the JSON property `manifest`
132
+ # @return [String]
133
+ attr_accessor :manifest
134
+
135
+ def initialize(**args)
136
+ update!(**args)
137
+ end
138
+
139
+ # Update properties of this object
140
+ def update!(**args)
141
+ @manifest = args[:manifest] unless args[:manifest].nil?
142
+ end
143
+ end
144
+
145
+ #
146
+ class DeploymentsCancelPreviewRequest
147
+ include Google::Apis::Core::Hashable
148
+
149
+ # Specifies a fingerprint for cancelPreview() requests. A fingerprint is a
150
+ # randomly generated value that must be provided in cancelPreview() requests to
151
+ # perform optimistic locking. This ensures optimistic concurrency so that the
152
+ # deployment does not have conflicting requests (e.g. if someone attempts to
153
+ # make a new update request while another user attempts to cancel a preview,
154
+ # this would prevent one of the requests).
155
+ # The fingerprint is initially generated by Deployment Manager and changes after
156
+ # every request to modify a deployment. To get the latest fingerprint value,
157
+ # perform a get() request to a deployment.
158
+ # Corresponds to the JSON property `fingerprint`
159
+ # @return [String]
160
+ attr_accessor :fingerprint
161
+
162
+ def initialize(**args)
163
+ update!(**args)
164
+ end
165
+
166
+ # Update properties of this object
167
+ def update!(**args)
168
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
169
+ end
170
+ end
171
+
172
+ # A response containing a partial list of deployments and a page token used to
173
+ # build the next request if the request has been truncated.
174
+ class ListDeploymentsResponse
175
+ include Google::Apis::Core::Hashable
176
+
177
+ # [Output Only] The deployments contained in this response.
178
+ # Corresponds to the JSON property `deployments`
179
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Deployment>]
180
+ attr_accessor :deployments
181
+
182
+ # [Output Only] A token used to continue a truncated list request.
183
+ # Corresponds to the JSON property `nextPageToken`
184
+ # @return [String]
185
+ attr_accessor :next_page_token
186
+
187
+ def initialize(**args)
188
+ update!(**args)
189
+ end
190
+
191
+ # Update properties of this object
192
+ def update!(**args)
193
+ @deployments = args[:deployments] unless args[:deployments].nil?
194
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
195
+ end
196
+ end
197
+
198
+ #
199
+ class DeploymentsStopRequest
200
+ include Google::Apis::Core::Hashable
201
+
202
+ # Specifies a fingerprint for stop() requests. A fingerprint is a randomly
203
+ # generated value that must be provided in stop() requests to perform optimistic
204
+ # locking. This ensures optimistic concurrency so that the deployment does not
205
+ # have conflicting requests (e.g. if someone attempts to make a new update
206
+ # request while another user attempts to stop an ongoing update request, this
207
+ # would prevent a collision).
208
+ # The fingerprint is initially generated by Deployment Manager and changes after
209
+ # every request to modify a deployment. To get the latest fingerprint value,
210
+ # perform a get() request to a deployment.
211
+ # Corresponds to the JSON property `fingerprint`
212
+ # @return [String]
213
+ attr_accessor :fingerprint
214
+
215
+ def initialize(**args)
216
+ update!(**args)
217
+ end
218
+
219
+ # Update properties of this object
220
+ def update!(**args)
221
+ @fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
222
+ end
223
+ end
224
+
225
+ #
226
+ class ImportFile
227
+ include Google::Apis::Core::Hashable
228
+
229
+ # The contents of the file.
230
+ # Corresponds to the JSON property `content`
231
+ # @return [String]
232
+ attr_accessor :content
233
+
234
+ # The name of the file.
235
+ # Corresponds to the JSON property `name`
236
+ # @return [String]
237
+ attr_accessor :name
238
+
239
+ def initialize(**args)
240
+ update!(**args)
241
+ end
242
+
243
+ # Update properties of this object
244
+ def update!(**args)
245
+ @content = args[:content] unless args[:content].nil?
246
+ @name = args[:name] unless args[:name].nil?
247
+ end
248
+ end
249
+
250
+ #
251
+ class Manifest
252
+ include Google::Apis::Core::Hashable
253
+
254
+ #
255
+ # Corresponds to the JSON property `config`
256
+ # @return [Google::Apis::DeploymentmanagerV2::ConfigFile]
257
+ attr_accessor :config
258
+
259
+ # [Output Only] The fully-expanded configuration file, including any templates
260
+ # and references.
261
+ # Corresponds to the JSON property `expandedConfig`
262
+ # @return [String]
263
+ attr_accessor :expanded_config
264
+
265
+ # [Output Only] Unique identifier for the resource; defined by the server.
266
+ # Corresponds to the JSON property `id`
267
+ # @return [String]
268
+ attr_accessor :id
269
+
270
+ # [Output Only] The imported files for this manifest.
271
+ # Corresponds to the JSON property `imports`
272
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ImportFile>]
273
+ attr_accessor :imports
274
+
275
+ # [Output Only] Timestamp when the manifest was created, in RFC3339 text format.
276
+ # Corresponds to the JSON property `insertTime`
277
+ # @return [String]
278
+ attr_accessor :insert_time
279
+
280
+ # [Output Only] The YAML layout for this manifest.
281
+ # Corresponds to the JSON property `layout`
282
+ # @return [String]
283
+ attr_accessor :layout
284
+
285
+ # [Output Only] The name of the manifest.
286
+ # Corresponds to the JSON property `name`
287
+ # @return [String]
288
+ attr_accessor :name
289
+
290
+ # [Output Only] Self link for the manifest.
291
+ # Corresponds to the JSON property `selfLink`
292
+ # @return [String]
293
+ attr_accessor :self_link
294
+
295
+ def initialize(**args)
296
+ update!(**args)
297
+ end
298
+
299
+ # Update properties of this object
300
+ def update!(**args)
301
+ @config = args[:config] unless args[:config].nil?
302
+ @expanded_config = args[:expanded_config] unless args[:expanded_config].nil?
303
+ @id = args[:id] unless args[:id].nil?
304
+ @imports = args[:imports] unless args[:imports].nil?
305
+ @insert_time = args[:insert_time] unless args[:insert_time].nil?
306
+ @layout = args[:layout] unless args[:layout].nil?
307
+ @name = args[:name] unless args[:name].nil?
308
+ @self_link = args[:self_link] unless args[:self_link].nil?
309
+ end
310
+ end
311
+
312
+ # A response containing a partial list of manifests and a page token used to
313
+ # build the next request if the request has been truncated.
314
+ class ListManifestsResponse
315
+ include Google::Apis::Core::Hashable
316
+
317
+ # [Output Only] Manifests contained in this list response.
318
+ # Corresponds to the JSON property `manifests`
319
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Manifest>]
320
+ attr_accessor :manifests
321
+
322
+ # [Output Only] A token used to continue a truncated list request.
323
+ # Corresponds to the JSON property `nextPageToken`
324
+ # @return [String]
325
+ attr_accessor :next_page_token
326
+
327
+ def initialize(**args)
328
+ update!(**args)
329
+ end
330
+
331
+ # Update properties of this object
332
+ def update!(**args)
333
+ @manifests = args[:manifests] unless args[:manifests].nil?
334
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
335
+ end
336
+ end
337
+
338
+ # An Operation resource, used to manage asynchronous API requests.
339
+ class Operation
340
+ include Google::Apis::Core::Hashable
341
+
342
+ # [Output Only] A unique client ID generated by the server.
343
+ # Corresponds to the JSON property `clientOperationId`
344
+ # @return [String]
345
+ attr_accessor :client_operation_id
346
+
347
+ # [Output Only] Creation timestamp in RFC3339 text format.
348
+ # Corresponds to the JSON property `creationTimestamp`
349
+ # @return [String]
350
+ attr_accessor :creation_timestamp
351
+
352
+ # [Output Only] A textual description of the operation, which is set when the
353
+ # operation is created.
354
+ # Corresponds to the JSON property `description`
355
+ # @return [String]
356
+ attr_accessor :description
357
+
358
+ # [Output Only] The time that this operation was completed. This value is in
359
+ # RFC3339 text format.
360
+ # Corresponds to the JSON property `endTime`
361
+ # @return [String]
362
+ attr_accessor :end_time
363
+
364
+ # [Output Only] If errors are generated during processing of the operation, this
365
+ # field will be populated.
366
+ # Corresponds to the JSON property `error`
367
+ # @return [Google::Apis::DeploymentmanagerV2::Operation::Error]
368
+ attr_accessor :error
369
+
370
+ # [Output Only] If the operation fails, this field contains the HTTP error
371
+ # message that was returned, such as NOT FOUND.
372
+ # Corresponds to the JSON property `httpErrorMessage`
373
+ # @return [String]
374
+ attr_accessor :http_error_message
375
+
376
+ # [Output Only] If the operation fails, this field contains the HTTP error
377
+ # status code that was returned. For example, a 404 means the resource was not
378
+ # found.
379
+ # Corresponds to the JSON property `httpErrorStatusCode`
380
+ # @return [Fixnum]
381
+ attr_accessor :http_error_status_code
382
+
383
+ # [Output Only] The unique identifier for the resource. This identifier is
384
+ # defined by the server.
385
+ # Corresponds to the JSON property `id`
386
+ # @return [String]
387
+ attr_accessor :id
388
+
389
+ # [Output Only] The time that this operation was requested. This value is in
390
+ # RFC3339 text format.
391
+ # Corresponds to the JSON property `insertTime`
392
+ # @return [String]
393
+ attr_accessor :insert_time
394
+
395
+ # [Output Only] Type of the resource. Always compute#operation for Operation
396
+ # resources.
397
+ # Corresponds to the JSON property `kind`
398
+ # @return [String]
399
+ attr_accessor :kind
400
+
401
+ # [Output Only] Name of the resource.
402
+ # Corresponds to the JSON property `name`
403
+ # @return [String]
404
+ attr_accessor :name
405
+
406
+ # [Output Only] The type of operation, which can be insert, update, or delete.
407
+ # Corresponds to the JSON property `operationType`
408
+ # @return [String]
409
+ attr_accessor :operation_type
410
+
411
+ # [Output Only] An optional progress indicator that ranges from 0 to 100. There
412
+ # is no requirement that this be linear or support any granularity of operations.
413
+ # This should not be used to guess when the operation will be complete. This
414
+ # number should monotonically increase as the operation progresses.
415
+ # Corresponds to the JSON property `progress`
416
+ # @return [Fixnum]
417
+ attr_accessor :progress
418
+
419
+ # [Output Only] URL of the region where the operation resides. Only available
420
+ # when performing regional operations.
421
+ # Corresponds to the JSON property `region`
422
+ # @return [String]
423
+ attr_accessor :region
424
+
425
+ # [Output Only] Server-defined URL for the resource.
426
+ # Corresponds to the JSON property `selfLink`
427
+ # @return [String]
428
+ attr_accessor :self_link
429
+
430
+ # [Output Only] The time that this operation was started by the server. This
431
+ # value is in RFC3339 text format.
432
+ # Corresponds to the JSON property `startTime`
433
+ # @return [String]
434
+ attr_accessor :start_time
435
+
436
+ # [Output Only] The status of the operation, which can be one of the following:
437
+ # PENDING, RUNNING, or DONE.
438
+ # Corresponds to the JSON property `status`
439
+ # @return [String]
440
+ attr_accessor :status
441
+
442
+ # [Output Only] An optional textual description of the current status of the
443
+ # operation.
444
+ # Corresponds to the JSON property `statusMessage`
445
+ # @return [String]
446
+ attr_accessor :status_message
447
+
448
+ # [Output Only] The unique target ID, which identifies a specific incarnation of
449
+ # the target resource.
450
+ # Corresponds to the JSON property `targetId`
451
+ # @return [String]
452
+ attr_accessor :target_id
453
+
454
+ # [Output Only] The URL of the resource that the operation is modifying.
455
+ # Corresponds to the JSON property `targetLink`
456
+ # @return [String]
457
+ attr_accessor :target_link
458
+
459
+ # [Output Only] User who requested the operation, for example: user@example.com.
460
+ # Corresponds to the JSON property `user`
461
+ # @return [String]
462
+ attr_accessor :user
463
+
464
+ # [Output Only] If warning messages are generated during processing of the
465
+ # operation, this field will be populated.
466
+ # Corresponds to the JSON property `warnings`
467
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning>]
468
+ attr_accessor :warnings
469
+
470
+ # [Output Only] URL of the zone where the operation resides. Only available when
471
+ # performing per-zone operations.
472
+ # Corresponds to the JSON property `zone`
473
+ # @return [String]
474
+ attr_accessor :zone
475
+
476
+ def initialize(**args)
477
+ update!(**args)
478
+ end
479
+
480
+ # Update properties of this object
481
+ def update!(**args)
482
+ @client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil?
483
+ @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
484
+ @description = args[:description] unless args[:description].nil?
485
+ @end_time = args[:end_time] unless args[:end_time].nil?
486
+ @error = args[:error] unless args[:error].nil?
487
+ @http_error_message = args[:http_error_message] unless args[:http_error_message].nil?
488
+ @http_error_status_code = args[:http_error_status_code] unless args[:http_error_status_code].nil?
489
+ @id = args[:id] unless args[:id].nil?
490
+ @insert_time = args[:insert_time] unless args[:insert_time].nil?
491
+ @kind = args[:kind] unless args[:kind].nil?
492
+ @name = args[:name] unless args[:name].nil?
493
+ @operation_type = args[:operation_type] unless args[:operation_type].nil?
494
+ @progress = args[:progress] unless args[:progress].nil?
495
+ @region = args[:region] unless args[:region].nil?
496
+ @self_link = args[:self_link] unless args[:self_link].nil?
497
+ @start_time = args[:start_time] unless args[:start_time].nil?
498
+ @status = args[:status] unless args[:status].nil?
499
+ @status_message = args[:status_message] unless args[:status_message].nil?
500
+ @target_id = args[:target_id] unless args[:target_id].nil?
501
+ @target_link = args[:target_link] unless args[:target_link].nil?
502
+ @user = args[:user] unless args[:user].nil?
503
+ @warnings = args[:warnings] unless args[:warnings].nil?
504
+ @zone = args[:zone] unless args[:zone].nil?
505
+ end
506
+
507
+ # [Output Only] If errors are generated during processing of the operation, this
508
+ # field will be populated.
509
+ class Error
510
+ include Google::Apis::Core::Hashable
511
+
512
+ # [Output Only] The array of errors encountered while processing this operation.
513
+ # Corresponds to the JSON property `errors`
514
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Error::Error>]
515
+ attr_accessor :errors
516
+
517
+ def initialize(**args)
518
+ update!(**args)
519
+ end
520
+
521
+ # Update properties of this object
522
+ def update!(**args)
523
+ @errors = args[:errors] unless args[:errors].nil?
524
+ end
525
+
526
+ #
527
+ class Error
528
+ include Google::Apis::Core::Hashable
529
+
530
+ # [Output Only] The error type identifier for this error.
531
+ # Corresponds to the JSON property `code`
532
+ # @return [String]
533
+ attr_accessor :code
534
+
535
+ # [Output Only] Indicates the field in the request which caused the error. This
536
+ # property is optional.
537
+ # Corresponds to the JSON property `location`
538
+ # @return [String]
539
+ attr_accessor :location
540
+
541
+ # [Output Only] An optional, human-readable error message.
542
+ # Corresponds to the JSON property `message`
543
+ # @return [String]
544
+ attr_accessor :message
545
+
546
+ def initialize(**args)
547
+ update!(**args)
548
+ end
549
+
550
+ # Update properties of this object
551
+ def update!(**args)
552
+ @code = args[:code] unless args[:code].nil?
553
+ @location = args[:location] unless args[:location].nil?
554
+ @message = args[:message] unless args[:message].nil?
555
+ end
556
+ end
557
+ end
558
+
559
+ #
560
+ class Warning
561
+ include Google::Apis::Core::Hashable
562
+
563
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
564
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
565
+ # Corresponds to the JSON property `code`
566
+ # @return [String]
567
+ attr_accessor :code
568
+
569
+ # [Output Only] Metadata about this warning in key: value format. For example:
570
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
571
+ # Corresponds to the JSON property `data`
572
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning::Datum>]
573
+ attr_accessor :data
574
+
575
+ # [Output Only] A human-readable description of the warning code.
576
+ # Corresponds to the JSON property `message`
577
+ # @return [String]
578
+ attr_accessor :message
579
+
580
+ def initialize(**args)
581
+ update!(**args)
582
+ end
583
+
584
+ # Update properties of this object
585
+ def update!(**args)
586
+ @code = args[:code] unless args[:code].nil?
587
+ @data = args[:data] unless args[:data].nil?
588
+ @message = args[:message] unless args[:message].nil?
589
+ end
590
+
591
+ #
592
+ class Datum
593
+ include Google::Apis::Core::Hashable
594
+
595
+ # [Output Only] A key that provides more detail on the warning being returned.
596
+ # For example, for warnings where there are no results in a list request for a
597
+ # particular zone, this key might be scope and the key value might be the zone
598
+ # name. Other examples might be a key indicating a deprecated resource, and a
599
+ # suggested replacement, or a warning about invalid network settings (for
600
+ # example, if an instance attempts to perform IP forwarding but is not enabled
601
+ # for IP forwarding).
602
+ # Corresponds to the JSON property `key`
603
+ # @return [String]
604
+ attr_accessor :key
605
+
606
+ # [Output Only] A warning data value corresponding to the key.
607
+ # Corresponds to the JSON property `value`
608
+ # @return [String]
609
+ attr_accessor :value
610
+
611
+ def initialize(**args)
612
+ update!(**args)
613
+ end
614
+
615
+ # Update properties of this object
616
+ def update!(**args)
617
+ @key = args[:key] unless args[:key].nil?
618
+ @value = args[:value] unless args[:value].nil?
619
+ end
620
+ end
621
+ end
622
+ end
623
+
624
+ # A response containing a partial list of operations and a page token used to
625
+ # build the next request if the request has been truncated.
626
+ class ListOperationsResponse
627
+ include Google::Apis::Core::Hashable
628
+
629
+ # [Output Only] A token used to continue a truncated list request.
630
+ # Corresponds to the JSON property `nextPageToken`
631
+ # @return [String]
632
+ attr_accessor :next_page_token
633
+
634
+ # [Output Only] Operations contained in this list response.
635
+ # Corresponds to the JSON property `operations`
636
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation>]
637
+ attr_accessor :operations
638
+
639
+ def initialize(**args)
640
+ update!(**args)
641
+ end
642
+
643
+ # Update properties of this object
644
+ def update!(**args)
645
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
646
+ @operations = args[:operations] unless args[:operations].nil?
647
+ end
648
+ end
649
+
650
+ #
651
+ class Resource
652
+ include Google::Apis::Core::Hashable
653
+
654
+ # [Output Only] The evaluated properties of the resource with references
655
+ # expanded. Returned as serialized YAML.
656
+ # Corresponds to the JSON property `finalProperties`
657
+ # @return [String]
658
+ attr_accessor :final_properties
659
+
660
+ # [Output Only] Unique identifier for the resource; defined by the server.
661
+ # Corresponds to the JSON property `id`
662
+ # @return [String]
663
+ attr_accessor :id
664
+
665
+ # [Output Only] Timestamp when the resource was created or acquired, in RFC3339
666
+ # text format .
667
+ # Corresponds to the JSON property `insertTime`
668
+ # @return [String]
669
+ attr_accessor :insert_time
670
+
671
+ # [Output Only] URL of the manifest representing the current configuration of
672
+ # this resource.
673
+ # Corresponds to the JSON property `manifest`
674
+ # @return [String]
675
+ attr_accessor :manifest
676
+
677
+ # [Output Only] The name of the resource as it appears in the YAML config.
678
+ # Corresponds to the JSON property `name`
679
+ # @return [String]
680
+ attr_accessor :name
681
+
682
+ # [Output Only] The current properties of the resource before any references
683
+ # have been filled in. Returned as serialized YAML.
684
+ # Corresponds to the JSON property `properties`
685
+ # @return [String]
686
+ attr_accessor :properties
687
+
688
+ # [Output Only] The type of the resource, for example compute.v1.instance, or
689
+ # replicaPools.v1beta2.instanceGroupManager.
690
+ # Corresponds to the JSON property `type`
691
+ # @return [String]
692
+ attr_accessor :type
693
+
694
+ #
695
+ # Corresponds to the JSON property `update`
696
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate]
697
+ attr_accessor :update
698
+
699
+ # [Output Only] Timestamp when the resource was updated, in RFC3339 text format .
700
+ # Corresponds to the JSON property `updateTime`
701
+ # @return [String]
702
+ attr_accessor :update_time
703
+
704
+ # [Output Only] The URL of the actual resource.
705
+ # Corresponds to the JSON property `url`
706
+ # @return [String]
707
+ attr_accessor :url
708
+
709
+ # [Output Only] If warning messages are generated during processing of this
710
+ # resource, this field will be populated.
711
+ # Corresponds to the JSON property `warnings`
712
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Resource::Warning>]
713
+ attr_accessor :warnings
714
+
715
+ def initialize(**args)
716
+ update!(**args)
717
+ end
718
+
719
+ # Update properties of this object
720
+ def update!(**args)
721
+ @final_properties = args[:final_properties] unless args[:final_properties].nil?
722
+ @id = args[:id] unless args[:id].nil?
723
+ @insert_time = args[:insert_time] unless args[:insert_time].nil?
724
+ @manifest = args[:manifest] unless args[:manifest].nil?
725
+ @name = args[:name] unless args[:name].nil?
726
+ @properties = args[:properties] unless args[:properties].nil?
727
+ @type = args[:type] unless args[:type].nil?
728
+ @update = args[:update] unless args[:update].nil?
729
+ @update_time = args[:update_time] unless args[:update_time].nil?
730
+ @url = args[:url] unless args[:url].nil?
731
+ @warnings = args[:warnings] unless args[:warnings].nil?
732
+ end
733
+
734
+ #
735
+ class Warning
736
+ include Google::Apis::Core::Hashable
737
+
738
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
739
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
740
+ # Corresponds to the JSON property `code`
741
+ # @return [String]
742
+ attr_accessor :code
743
+
744
+ # [Output Only] Metadata about this warning in key: value format. For example:
745
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
746
+ # Corresponds to the JSON property `data`
747
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Resource::Warning::Datum>]
748
+ attr_accessor :data
749
+
750
+ # [Output Only] A human-readable description of the warning code.
751
+ # Corresponds to the JSON property `message`
752
+ # @return [String]
753
+ attr_accessor :message
754
+
755
+ def initialize(**args)
756
+ update!(**args)
757
+ end
758
+
759
+ # Update properties of this object
760
+ def update!(**args)
761
+ @code = args[:code] unless args[:code].nil?
762
+ @data = args[:data] unless args[:data].nil?
763
+ @message = args[:message] unless args[:message].nil?
764
+ end
765
+
766
+ #
767
+ class Datum
768
+ include Google::Apis::Core::Hashable
769
+
770
+ # [Output Only] A key that provides more detail on the warning being returned.
771
+ # For example, for warnings where there are no results in a list request for a
772
+ # particular zone, this key might be scope and the key value might be the zone
773
+ # name. Other examples might be a key indicating a deprecated resource, and a
774
+ # suggested replacement, or a warning about invalid network settings (for
775
+ # example, if an instance attempts to perform IP forwarding but is not enabled
776
+ # for IP forwarding).
777
+ # Corresponds to the JSON property `key`
778
+ # @return [String]
779
+ attr_accessor :key
780
+
781
+ # [Output Only] A warning data value corresponding to the key.
782
+ # Corresponds to the JSON property `value`
783
+ # @return [String]
784
+ attr_accessor :value
785
+
786
+ def initialize(**args)
787
+ update!(**args)
788
+ end
789
+
790
+ # Update properties of this object
791
+ def update!(**args)
792
+ @key = args[:key] unless args[:key].nil?
793
+ @value = args[:value] unless args[:value].nil?
794
+ end
795
+ end
796
+ end
797
+ end
798
+
799
+ #
800
+ class ResourceUpdate
801
+ include Google::Apis::Core::Hashable
802
+
803
+ # [Output Only] If errors are generated during update of the resource, this
804
+ # field will be populated.
805
+ # Corresponds to the JSON property `error`
806
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error]
807
+ attr_accessor :error
808
+
809
+ # [Output Only] The expanded properties of the resource with reference values
810
+ # expanded. Returned as serialized YAML.
811
+ # Corresponds to the JSON property `finalProperties`
812
+ # @return [String]
813
+ attr_accessor :final_properties
814
+
815
+ # [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL.
816
+ # Corresponds to the JSON property `intent`
817
+ # @return [String]
818
+ attr_accessor :intent
819
+
820
+ # [Output Only] URL of the manifest representing the update configuration of
821
+ # this resource.
822
+ # Corresponds to the JSON property `manifest`
823
+ # @return [String]
824
+ attr_accessor :manifest
825
+
826
+ # [Output Only] The set of updated properties for this resource, before
827
+ # references are expanded. Returned as serialized YAML.
828
+ # Corresponds to the JSON property `properties`
829
+ # @return [String]
830
+ attr_accessor :properties
831
+
832
+ # [Output Only] The state of the resource.
833
+ # Corresponds to the JSON property `state`
834
+ # @return [String]
835
+ attr_accessor :state
836
+
837
+ # [Output Only] If warning messages are generated during processing of this
838
+ # resource, this field will be populated.
839
+ # Corresponds to the JSON property `warnings`
840
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning>]
841
+ attr_accessor :warnings
842
+
843
+ def initialize(**args)
844
+ update!(**args)
845
+ end
846
+
847
+ # Update properties of this object
848
+ def update!(**args)
849
+ @error = args[:error] unless args[:error].nil?
850
+ @final_properties = args[:final_properties] unless args[:final_properties].nil?
851
+ @intent = args[:intent] unless args[:intent].nil?
852
+ @manifest = args[:manifest] unless args[:manifest].nil?
853
+ @properties = args[:properties] unless args[:properties].nil?
854
+ @state = args[:state] unless args[:state].nil?
855
+ @warnings = args[:warnings] unless args[:warnings].nil?
856
+ end
857
+
858
+ # [Output Only] If errors are generated during update of the resource, this
859
+ # field will be populated.
860
+ class Error
861
+ include Google::Apis::Core::Hashable
862
+
863
+ # [Output Only] The array of errors encountered while processing this operation.
864
+ # Corresponds to the JSON property `errors`
865
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error::Error>]
866
+ attr_accessor :errors
867
+
868
+ def initialize(**args)
869
+ update!(**args)
870
+ end
871
+
872
+ # Update properties of this object
873
+ def update!(**args)
874
+ @errors = args[:errors] unless args[:errors].nil?
875
+ end
876
+
877
+ #
878
+ class Error
879
+ include Google::Apis::Core::Hashable
880
+
881
+ # [Output Only] The error type identifier for this error.
882
+ # Corresponds to the JSON property `code`
883
+ # @return [String]
884
+ attr_accessor :code
885
+
886
+ # [Output Only] Indicates the field in the request which caused the error. This
887
+ # property is optional.
888
+ # Corresponds to the JSON property `location`
889
+ # @return [String]
890
+ attr_accessor :location
891
+
892
+ # [Output Only] An optional, human-readable error message.
893
+ # Corresponds to the JSON property `message`
894
+ # @return [String]
895
+ attr_accessor :message
896
+
897
+ def initialize(**args)
898
+ update!(**args)
899
+ end
900
+
901
+ # Update properties of this object
902
+ def update!(**args)
903
+ @code = args[:code] unless args[:code].nil?
904
+ @location = args[:location] unless args[:location].nil?
905
+ @message = args[:message] unless args[:message].nil?
906
+ end
907
+ end
908
+ end
909
+
910
+ #
911
+ class Warning
912
+ include Google::Apis::Core::Hashable
913
+
914
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
915
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
916
+ # Corresponds to the JSON property `code`
917
+ # @return [String]
918
+ attr_accessor :code
919
+
920
+ # [Output Only] Metadata about this warning in key: value format. For example:
921
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
922
+ # Corresponds to the JSON property `data`
923
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning::Datum>]
924
+ attr_accessor :data
925
+
926
+ # [Output Only] A human-readable description of the warning code.
927
+ # Corresponds to the JSON property `message`
928
+ # @return [String]
929
+ attr_accessor :message
930
+
931
+ def initialize(**args)
932
+ update!(**args)
933
+ end
934
+
935
+ # Update properties of this object
936
+ def update!(**args)
937
+ @code = args[:code] unless args[:code].nil?
938
+ @data = args[:data] unless args[:data].nil?
939
+ @message = args[:message] unless args[:message].nil?
940
+ end
941
+
942
+ #
943
+ class Datum
944
+ include Google::Apis::Core::Hashable
945
+
946
+ # [Output Only] A key that provides more detail on the warning being returned.
947
+ # For example, for warnings where there are no results in a list request for a
948
+ # particular zone, this key might be scope and the key value might be the zone
949
+ # name. Other examples might be a key indicating a deprecated resource, and a
950
+ # suggested replacement, or a warning about invalid network settings (for
951
+ # example, if an instance attempts to perform IP forwarding but is not enabled
952
+ # for IP forwarding).
953
+ # Corresponds to the JSON property `key`
954
+ # @return [String]
955
+ attr_accessor :key
956
+
957
+ # [Output Only] A warning data value corresponding to the key.
958
+ # Corresponds to the JSON property `value`
959
+ # @return [String]
960
+ attr_accessor :value
961
+
962
+ def initialize(**args)
963
+ update!(**args)
964
+ end
965
+
966
+ # Update properties of this object
967
+ def update!(**args)
968
+ @key = args[:key] unless args[:key].nil?
969
+ @value = args[:value] unless args[:value].nil?
970
+ end
971
+ end
972
+ end
973
+ end
974
+
975
+ # A response containing a partial list of resources and a page token used to
976
+ # build the next request if the request has been truncated.
977
+ class ListResourcesResponse
978
+ include Google::Apis::Core::Hashable
979
+
980
+ # A token used to continue a truncated list request.
981
+ # Corresponds to the JSON property `nextPageToken`
982
+ # @return [String]
983
+ attr_accessor :next_page_token
984
+
985
+ # Resources contained in this list response.
986
+ # Corresponds to the JSON property `resources`
987
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Resource>]
988
+ attr_accessor :resources
989
+
990
+ def initialize(**args)
991
+ update!(**args)
992
+ end
993
+
994
+ # Update properties of this object
995
+ def update!(**args)
996
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
997
+ @resources = args[:resources] unless args[:resources].nil?
998
+ end
999
+ end
1000
+
1001
+ #
1002
+ class TargetConfiguration
1003
+ include Google::Apis::Core::Hashable
1004
+
1005
+ #
1006
+ # Corresponds to the JSON property `config`
1007
+ # @return [Google::Apis::DeploymentmanagerV2::ConfigFile]
1008
+ attr_accessor :config
1009
+
1010
+ # Specifies any files to import for this configuration. This can be used to
1011
+ # import templates or other files. For example, you might import a text file in
1012
+ # order to use the file in a template.
1013
+ # Corresponds to the JSON property `imports`
1014
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ImportFile>]
1015
+ attr_accessor :imports
1016
+
1017
+ def initialize(**args)
1018
+ update!(**args)
1019
+ end
1020
+
1021
+ # Update properties of this object
1022
+ def update!(**args)
1023
+ @config = args[:config] unless args[:config].nil?
1024
+ @imports = args[:imports] unless args[:imports].nil?
1025
+ end
1026
+ end
1027
+
1028
+ # A resource type supported by Deployment Manager.
1029
+ class Type
1030
+ include Google::Apis::Core::Hashable
1031
+
1032
+ # [Output Only] Unique identifier for the resource; defined by the server.
1033
+ # Corresponds to the JSON property `id`
1034
+ # @return [String]
1035
+ attr_accessor :id
1036
+
1037
+ # [Output Only] Timestamp when the type was created, in RFC3339 text format.
1038
+ # Corresponds to the JSON property `insertTime`
1039
+ # @return [String]
1040
+ attr_accessor :insert_time
1041
+
1042
+ # Name of the type.
1043
+ # Corresponds to the JSON property `name`
1044
+ # @return [String]
1045
+ attr_accessor :name
1046
+
1047
+ # [Output Only] Self link for the type.
1048
+ # Corresponds to the JSON property `selfLink`
1049
+ # @return [String]
1050
+ attr_accessor :self_link
1051
+
1052
+ def initialize(**args)
1053
+ update!(**args)
1054
+ end
1055
+
1056
+ # Update properties of this object
1057
+ def update!(**args)
1058
+ @id = args[:id] unless args[:id].nil?
1059
+ @insert_time = args[:insert_time] unless args[:insert_time].nil?
1060
+ @name = args[:name] unless args[:name].nil?
1061
+ @self_link = args[:self_link] unless args[:self_link].nil?
1062
+ end
1063
+ end
1064
+
1065
+ # A response that returns all Types supported by Deployment Manager
1066
+ class ListTypesResponse
1067
+ include Google::Apis::Core::Hashable
1068
+
1069
+ # A token used to continue a truncated list request.
1070
+ # Corresponds to the JSON property `nextPageToken`
1071
+ # @return [String]
1072
+ attr_accessor :next_page_token
1073
+
1074
+ # [Output Only] A list of resource types supported by Deployment Manager.
1075
+ # Corresponds to the JSON property `types`
1076
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Type>]
1077
+ attr_accessor :types
1078
+
1079
+ def initialize(**args)
1080
+ update!(**args)
1081
+ end
1082
+
1083
+ # Update properties of this object
1084
+ def update!(**args)
1085
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1086
+ @types = args[:types] unless args[:types].nil?
1087
+ end
1088
+ end
1089
+ end
1090
+ end
1091
+ end