lemboy-google-api-client 0.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,259 @@
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 DatastoreV1beta3
23
+ # Google Cloud Datastore API
24
+ #
25
+ # Accesses the schemaless NoSQL database to provide fully managed, robust,
26
+ # scalable storage for your application.
27
+ #
28
+ # @example
29
+ # require 'google/apis/datastore_v1beta3'
30
+ #
31
+ # Datastore = Google::Apis::DatastoreV1beta3 # Alias the module
32
+ # service = Datastore::DatastoreService.new
33
+ #
34
+ # @see https://cloud.google.com/datastore/
35
+ class DatastoreService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://datastore.googleapis.com/', '')
48
+ end
49
+
50
+ # Queries for entities.
51
+ # @param [String] project_id
52
+ # The ID of the project against which to make the request.
53
+ # @param [Google::Apis::DatastoreV1beta3::RunQueryRequest] run_query_request_object
54
+ # @param [String] quota_user
55
+ # Available to use for quota purposes for server-side applications. Can be any
56
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::DatastoreV1beta3::RunQueryResponse] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::DatastoreV1beta3::RunQueryResponse]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def run_project_query(project_id, run_query_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
72
+ command = make_simple_command(:post, 'v1beta3/projects/{projectId}:runQuery', options)
73
+ command.request_representation = Google::Apis::DatastoreV1beta3::RunQueryRequest::Representation
74
+ command.request_object = run_query_request_object
75
+ command.response_representation = Google::Apis::DatastoreV1beta3::RunQueryResponse::Representation
76
+ command.response_class = Google::Apis::DatastoreV1beta3::RunQueryResponse
77
+ command.params['projectId'] = project_id unless project_id.nil?
78
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
+ execute_or_queue_command(command, &block)
81
+ end
82
+
83
+ # Begins a new transaction.
84
+ # @param [String] project_id
85
+ # The ID of the project against which to make the request.
86
+ # @param [Google::Apis::DatastoreV1beta3::BeginTransactionRequest] begin_transaction_request_object
87
+ # @param [String] quota_user
88
+ # Available to use for quota purposes for server-side applications. Can be any
89
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [Google::Apis::RequestOptions] options
93
+ # Request-specific options
94
+ #
95
+ # @yield [result, err] Result & error if block supplied
96
+ # @yieldparam result [Google::Apis::DatastoreV1beta3::BeginTransactionResponse] parsed result object
97
+ # @yieldparam err [StandardError] error object if request failed
98
+ #
99
+ # @return [Google::Apis::DatastoreV1beta3::BeginTransactionResponse]
100
+ #
101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
104
+ def begin_project_transaction(project_id, begin_transaction_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
105
+ command = make_simple_command(:post, 'v1beta3/projects/{projectId}:beginTransaction', options)
106
+ command.request_representation = Google::Apis::DatastoreV1beta3::BeginTransactionRequest::Representation
107
+ command.request_object = begin_transaction_request_object
108
+ command.response_representation = Google::Apis::DatastoreV1beta3::BeginTransactionResponse::Representation
109
+ command.response_class = Google::Apis::DatastoreV1beta3::BeginTransactionResponse
110
+ command.params['projectId'] = project_id unless project_id.nil?
111
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
112
+ command.query['fields'] = fields unless fields.nil?
113
+ execute_or_queue_command(command, &block)
114
+ end
115
+
116
+ # Allocates IDs for the given keys, which is useful for referencing an entity
117
+ # before it is inserted.
118
+ # @param [String] project_id
119
+ # The ID of the project against which to make the request.
120
+ # @param [Google::Apis::DatastoreV1beta3::AllocateIdsRequest] allocate_ids_request_object
121
+ # @param [String] quota_user
122
+ # Available to use for quota purposes for server-side applications. Can be any
123
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
124
+ # @param [String] fields
125
+ # Selector specifying which fields to include in a partial response.
126
+ # @param [Google::Apis::RequestOptions] options
127
+ # Request-specific options
128
+ #
129
+ # @yield [result, err] Result & error if block supplied
130
+ # @yieldparam result [Google::Apis::DatastoreV1beta3::AllocateIdsResponse] parsed result object
131
+ # @yieldparam err [StandardError] error object if request failed
132
+ #
133
+ # @return [Google::Apis::DatastoreV1beta3::AllocateIdsResponse]
134
+ #
135
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
138
+ def allocate_project_ids(project_id, allocate_ids_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
139
+ command = make_simple_command(:post, 'v1beta3/projects/{projectId}:allocateIds', options)
140
+ command.request_representation = Google::Apis::DatastoreV1beta3::AllocateIdsRequest::Representation
141
+ command.request_object = allocate_ids_request_object
142
+ command.response_representation = Google::Apis::DatastoreV1beta3::AllocateIdsResponse::Representation
143
+ command.response_class = Google::Apis::DatastoreV1beta3::AllocateIdsResponse
144
+ command.params['projectId'] = project_id unless project_id.nil?
145
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
146
+ command.query['fields'] = fields unless fields.nil?
147
+ execute_or_queue_command(command, &block)
148
+ end
149
+
150
+ # Looks up entities by key.
151
+ # @param [String] project_id
152
+ # The ID of the project against which to make the request.
153
+ # @param [Google::Apis::DatastoreV1beta3::LookupRequest] lookup_request_object
154
+ # @param [String] quota_user
155
+ # Available to use for quota purposes for server-side applications. Can be any
156
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
157
+ # @param [String] fields
158
+ # Selector specifying which fields to include in a partial response.
159
+ # @param [Google::Apis::RequestOptions] options
160
+ # Request-specific options
161
+ #
162
+ # @yield [result, err] Result & error if block supplied
163
+ # @yieldparam result [Google::Apis::DatastoreV1beta3::LookupResponse] parsed result object
164
+ # @yieldparam err [StandardError] error object if request failed
165
+ #
166
+ # @return [Google::Apis::DatastoreV1beta3::LookupResponse]
167
+ #
168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
171
+ def lookup_project(project_id, lookup_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
172
+ command = make_simple_command(:post, 'v1beta3/projects/{projectId}:lookup', options)
173
+ command.request_representation = Google::Apis::DatastoreV1beta3::LookupRequest::Representation
174
+ command.request_object = lookup_request_object
175
+ command.response_representation = Google::Apis::DatastoreV1beta3::LookupResponse::Representation
176
+ command.response_class = Google::Apis::DatastoreV1beta3::LookupResponse
177
+ command.params['projectId'] = project_id unless project_id.nil?
178
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
179
+ command.query['fields'] = fields unless fields.nil?
180
+ execute_or_queue_command(command, &block)
181
+ end
182
+
183
+ # Commits a transaction, optionally creating, deleting or modifying some
184
+ # entities.
185
+ # @param [String] project_id
186
+ # The ID of the project against which to make the request.
187
+ # @param [Google::Apis::DatastoreV1beta3::CommitRequest] commit_request_object
188
+ # @param [String] quota_user
189
+ # Available to use for quota purposes for server-side applications. Can be any
190
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
191
+ # @param [String] fields
192
+ # Selector specifying which fields to include in a partial response.
193
+ # @param [Google::Apis::RequestOptions] options
194
+ # Request-specific options
195
+ #
196
+ # @yield [result, err] Result & error if block supplied
197
+ # @yieldparam result [Google::Apis::DatastoreV1beta3::CommitResponse] parsed result object
198
+ # @yieldparam err [StandardError] error object if request failed
199
+ #
200
+ # @return [Google::Apis::DatastoreV1beta3::CommitResponse]
201
+ #
202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
205
+ def commit_project(project_id, commit_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
206
+ command = make_simple_command(:post, 'v1beta3/projects/{projectId}:commit', options)
207
+ command.request_representation = Google::Apis::DatastoreV1beta3::CommitRequest::Representation
208
+ command.request_object = commit_request_object
209
+ command.response_representation = Google::Apis::DatastoreV1beta3::CommitResponse::Representation
210
+ command.response_class = Google::Apis::DatastoreV1beta3::CommitResponse
211
+ command.params['projectId'] = project_id unless project_id.nil?
212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
213
+ command.query['fields'] = fields unless fields.nil?
214
+ execute_or_queue_command(command, &block)
215
+ end
216
+
217
+ # Rolls back a transaction.
218
+ # @param [String] project_id
219
+ # The ID of the project against which to make the request.
220
+ # @param [Google::Apis::DatastoreV1beta3::RollbackRequest] rollback_request_object
221
+ # @param [String] quota_user
222
+ # Available to use for quota purposes for server-side applications. Can be any
223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
224
+ # @param [String] fields
225
+ # Selector specifying which fields to include in a partial response.
226
+ # @param [Google::Apis::RequestOptions] options
227
+ # Request-specific options
228
+ #
229
+ # @yield [result, err] Result & error if block supplied
230
+ # @yieldparam result [Google::Apis::DatastoreV1beta3::RollbackResponse] parsed result object
231
+ # @yieldparam err [StandardError] error object if request failed
232
+ #
233
+ # @return [Google::Apis::DatastoreV1beta3::RollbackResponse]
234
+ #
235
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
236
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
237
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
238
+ def rollback_project(project_id, rollback_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
239
+ command = make_simple_command(:post, 'v1beta3/projects/{projectId}:rollback', options)
240
+ command.request_representation = Google::Apis::DatastoreV1beta3::RollbackRequest::Representation
241
+ command.request_object = rollback_request_object
242
+ command.response_representation = Google::Apis::DatastoreV1beta3::RollbackResponse::Representation
243
+ command.response_class = Google::Apis::DatastoreV1beta3::RollbackResponse
244
+ command.params['projectId'] = project_id unless project_id.nil?
245
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
246
+ command.query['fields'] = fields unless fields.nil?
247
+ execute_or_queue_command(command, &block)
248
+ end
249
+
250
+ protected
251
+
252
+ def apply_command_defaults(command)
253
+ command.query['key'] = key unless key.nil?
254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
255
+ end
256
+ end
257
+ end
258
+ end
259
+ end
@@ -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/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
+ # Declares, configures, and deploys complex solutions on Google Cloud Platform.
24
+ #
25
+ # @see https://cloud.google.com/deployment-manager/
26
+ module DeploymentmanagerV2
27
+ VERSION = 'V2'
28
+ REVISION = '20161221'
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
+ # View and manage your Google Cloud Platform management resources and deployment status information
37
+ AUTH_NDEV_CLOUDMAN = 'https://www.googleapis.com/auth/ndev.cloudman'
38
+
39
+ # View your Google Cloud Platform management resources and deployment status information
40
+ AUTH_NDEV_CLOUDMAN_READONLY = 'https://www.googleapis.com/auth/ndev.cloudman.readonly'
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,1582 @@
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
+ # Provides the configuration for non-admin_activity logging for a service.
26
+ # Controls exemptions and specific log sub-types.
27
+ class AuditConfig
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # The configuration for each type of logging
31
+ # Corresponds to the JSON property `auditLogConfigs`
32
+ # @return [Array<Google::Apis::DeploymentmanagerV2::AuditLogConfig>]
33
+ attr_accessor :audit_log_configs
34
+
35
+ # Specifies the identities that are exempted from "data access" audit logging
36
+ # for the `service` specified above. Follows the same format of Binding.members.
37
+ # Corresponds to the JSON property `exemptedMembers`
38
+ # @return [Array<String>]
39
+ attr_accessor :exempted_members
40
+
41
+ # Specifies a service that will be enabled for audit logging. For example, `
42
+ # resourcemanager`, `storage`, `compute`. `allServices` is a special value that
43
+ # covers all services.
44
+ # Corresponds to the JSON property `service`
45
+ # @return [String]
46
+ attr_accessor :service
47
+
48
+ def initialize(**args)
49
+ update!(**args)
50
+ end
51
+
52
+ # Update properties of this object
53
+ def update!(**args)
54
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
55
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
56
+ @service = args[:service] if args.key?(:service)
57
+ end
58
+ end
59
+
60
+ # Provides the configuration for a sub-type of logging.
61
+ class AuditLogConfig
62
+ include Google::Apis::Core::Hashable
63
+
64
+ # Specifies the identities that are exempted from this type of logging Follows
65
+ # the same format of Binding.members.
66
+ # Corresponds to the JSON property `exemptedMembers`
67
+ # @return [Array<String>]
68
+ attr_accessor :exempted_members
69
+
70
+ # The log type that this config enables.
71
+ # Corresponds to the JSON property `logType`
72
+ # @return [String]
73
+ attr_accessor :log_type
74
+
75
+ def initialize(**args)
76
+ update!(**args)
77
+ end
78
+
79
+ # Update properties of this object
80
+ def update!(**args)
81
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
82
+ @log_type = args[:log_type] if args.key?(:log_type)
83
+ end
84
+ end
85
+
86
+ # Associates `members` with a `role`.
87
+ class Binding
88
+ include Google::Apis::Core::Hashable
89
+
90
+ # Specifies the identities requesting access for a Cloud Platform resource. `
91
+ # members` can have the following values:
92
+ # * `allUsers`: A special identifier that represents anyone who is on the
93
+ # internet; with or without a Google account.
94
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone who is
95
+ # authenticated with a Google account or a service account.
96
+ # * `user:`emailid``: An email address that represents a specific Google account.
97
+ # For example, `alice@gmail.com` or `joe@example.com`.
98
+ # * `serviceAccount:`emailid``: An email address that represents a service
99
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
100
+ # * `group:`emailid``: An email address that represents a Google group. For
101
+ # example, `admins@example.com`.
102
+ # * `domain:`domain``: A Google Apps domain name that represents all the users
103
+ # of that domain. For example, `google.com` or `example.com`.
104
+ # Corresponds to the JSON property `members`
105
+ # @return [Array<String>]
106
+ attr_accessor :members
107
+
108
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
109
+ # , or `roles/owner`.
110
+ # Corresponds to the JSON property `role`
111
+ # @return [String]
112
+ attr_accessor :role
113
+
114
+ def initialize(**args)
115
+ update!(**args)
116
+ end
117
+
118
+ # Update properties of this object
119
+ def update!(**args)
120
+ @members = args[:members] if args.key?(:members)
121
+ @role = args[:role] if args.key?(:role)
122
+ end
123
+ end
124
+
125
+ # A condition to be met.
126
+ class Condition
127
+ include Google::Apis::Core::Hashable
128
+
129
+ # Trusted attributes supplied by the IAM system.
130
+ # Corresponds to the JSON property `iam`
131
+ # @return [String]
132
+ attr_accessor :iam
133
+
134
+ # An operator to apply the subject with.
135
+ # Corresponds to the JSON property `op`
136
+ # @return [String]
137
+ attr_accessor :op
138
+
139
+ # Trusted attributes discharged by the service.
140
+ # Corresponds to the JSON property `svc`
141
+ # @return [String]
142
+ attr_accessor :svc
143
+
144
+ # Trusted attributes supplied by any service that owns resources and uses the
145
+ # IAM system for access control.
146
+ # Corresponds to the JSON property `sys`
147
+ # @return [String]
148
+ attr_accessor :sys
149
+
150
+ # DEPRECATED. Use 'values' instead.
151
+ # Corresponds to the JSON property `value`
152
+ # @return [String]
153
+ attr_accessor :value
154
+
155
+ # The objects of the condition. This is mutually exclusive with 'value'.
156
+ # Corresponds to the JSON property `values`
157
+ # @return [Array<String>]
158
+ attr_accessor :values
159
+
160
+ def initialize(**args)
161
+ update!(**args)
162
+ end
163
+
164
+ # Update properties of this object
165
+ def update!(**args)
166
+ @iam = args[:iam] if args.key?(:iam)
167
+ @op = args[:op] if args.key?(:op)
168
+ @svc = args[:svc] if args.key?(:svc)
169
+ @sys = args[:sys] if args.key?(:sys)
170
+ @value = args[:value] if args.key?(:value)
171
+ @values = args[:values] if args.key?(:values)
172
+ end
173
+ end
174
+
175
+ #
176
+ class ConfigFile
177
+ include Google::Apis::Core::Hashable
178
+
179
+ # The contents of the file.
180
+ # Corresponds to the JSON property `content`
181
+ # @return [String]
182
+ attr_accessor :content
183
+
184
+ def initialize(**args)
185
+ update!(**args)
186
+ end
187
+
188
+ # Update properties of this object
189
+ def update!(**args)
190
+ @content = args[:content] if args.key?(:content)
191
+ end
192
+ end
193
+
194
+ #
195
+ class Deployment
196
+ include Google::Apis::Core::Hashable
197
+
198
+ # An optional user-provided description of the deployment.
199
+ # Corresponds to the JSON property `description`
200
+ # @return [String]
201
+ attr_accessor :description
202
+
203
+ # Provides a fingerprint to use in requests to modify a deployment, such as
204
+ # update(), stop(), and cancelPreview() requests. A fingerprint is a randomly
205
+ # generated value that must be provided with update(), stop(), and cancelPreview(
206
+ # ) requests to perform optimistic locking. This ensures optimistic concurrency
207
+ # so that only one request happens at a time.
208
+ # The fingerprint is initially generated by Deployment Manager and changes after
209
+ # every request to modify data. To get the latest fingerprint value, perform a
210
+ # get() request to a deployment.
211
+ # Corresponds to the JSON property `fingerprint`
212
+ # @return [String]
213
+ attr_accessor :fingerprint
214
+
215
+ # [Output Only] Unique identifier for the resource; defined by the server.
216
+ # Corresponds to the JSON property `id`
217
+ # @return [String]
218
+ attr_accessor :id
219
+
220
+ # [Output Only] Timestamp when the deployment was created, in RFC3339 text
221
+ # format .
222
+ # Corresponds to the JSON property `insertTime`
223
+ # @return [String]
224
+ attr_accessor :insert_time
225
+
226
+ # Map of labels; provided by the client when the resource is created or updated.
227
+ # Specifically: Label keys must be between 1 and 63 characters long and must
228
+ # conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])? Label
229
+ # values must be between 0 and 63 characters long and must conform to the
230
+ # regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
231
+ # Corresponds to the JSON property `labels`
232
+ # @return [Array<Google::Apis::DeploymentmanagerV2::DeploymentLabelEntry>]
233
+ attr_accessor :labels
234
+
235
+ # [Output Only] URL of the manifest representing the last manifest that was
236
+ # successfully deployed.
237
+ # Corresponds to the JSON property `manifest`
238
+ # @return [String]
239
+ attr_accessor :manifest
240
+
241
+ # Name of the resource; provided by the client when the resource is created. The
242
+ # name must be 1-63 characters long, and comply with RFC1035. Specifically, the
243
+ # name must be 1-63 characters long and match the regular expression [a-z]([-a-
244
+ # z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
245
+ # and all following characters must be a dash, lowercase letter, or digit,
246
+ # except the last character, which cannot be a dash.
247
+ # Corresponds to the JSON property `name`
248
+ # @return [String]
249
+ attr_accessor :name
250
+
251
+ # An Operation resource, used to manage asynchronous API requests.
252
+ # Corresponds to the JSON property `operation`
253
+ # @return [Google::Apis::DeploymentmanagerV2::Operation]
254
+ attr_accessor :operation
255
+
256
+ # [Output Only] Self link for the deployment.
257
+ # Corresponds to the JSON property `selfLink`
258
+ # @return [String]
259
+ attr_accessor :self_link
260
+
261
+ #
262
+ # Corresponds to the JSON property `target`
263
+ # @return [Google::Apis::DeploymentmanagerV2::TargetConfiguration]
264
+ attr_accessor :target
265
+
266
+ #
267
+ # Corresponds to the JSON property `update`
268
+ # @return [Google::Apis::DeploymentmanagerV2::DeploymentUpdate]
269
+ attr_accessor :update
270
+
271
+ def initialize(**args)
272
+ update!(**args)
273
+ end
274
+
275
+ # Update properties of this object
276
+ def update!(**args)
277
+ @description = args[:description] if args.key?(:description)
278
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
279
+ @id = args[:id] if args.key?(:id)
280
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
281
+ @labels = args[:labels] if args.key?(:labels)
282
+ @manifest = args[:manifest] if args.key?(:manifest)
283
+ @name = args[:name] if args.key?(:name)
284
+ @operation = args[:operation] if args.key?(:operation)
285
+ @self_link = args[:self_link] if args.key?(:self_link)
286
+ @target = args[:target] if args.key?(:target)
287
+ @update = args[:update] if args.key?(:update)
288
+ end
289
+ end
290
+
291
+ #
292
+ class DeploymentLabelEntry
293
+ include Google::Apis::Core::Hashable
294
+
295
+ #
296
+ # Corresponds to the JSON property `key`
297
+ # @return [String]
298
+ attr_accessor :key
299
+
300
+ #
301
+ # Corresponds to the JSON property `value`
302
+ # @return [String]
303
+ attr_accessor :value
304
+
305
+ def initialize(**args)
306
+ update!(**args)
307
+ end
308
+
309
+ # Update properties of this object
310
+ def update!(**args)
311
+ @key = args[:key] if args.key?(:key)
312
+ @value = args[:value] if args.key?(:value)
313
+ end
314
+ end
315
+
316
+ #
317
+ class DeploymentUpdate
318
+ include Google::Apis::Core::Hashable
319
+
320
+ # [Output Only] Map of labels; provided by the client when the resource is
321
+ # created or updated. Specifically: Label keys must be between 1 and 63
322
+ # characters long and must conform to the following regular expression: [a-z]([-
323
+ # a-z0-9]*[a-z0-9])? Label values must be between 0 and 63 characters long and
324
+ # must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
325
+ # Corresponds to the JSON property `labels`
326
+ # @return [Array<Google::Apis::DeploymentmanagerV2::DeploymentUpdateLabelEntry>]
327
+ attr_accessor :labels
328
+
329
+ # [Output Only] URL of the manifest representing the update configuration of
330
+ # this deployment.
331
+ # Corresponds to the JSON property `manifest`
332
+ # @return [String]
333
+ attr_accessor :manifest
334
+
335
+ def initialize(**args)
336
+ update!(**args)
337
+ end
338
+
339
+ # Update properties of this object
340
+ def update!(**args)
341
+ @labels = args[:labels] if args.key?(:labels)
342
+ @manifest = args[:manifest] if args.key?(:manifest)
343
+ end
344
+ end
345
+
346
+ #
347
+ class DeploymentUpdateLabelEntry
348
+ include Google::Apis::Core::Hashable
349
+
350
+ #
351
+ # Corresponds to the JSON property `key`
352
+ # @return [String]
353
+ attr_accessor :key
354
+
355
+ #
356
+ # Corresponds to the JSON property `value`
357
+ # @return [String]
358
+ attr_accessor :value
359
+
360
+ def initialize(**args)
361
+ update!(**args)
362
+ end
363
+
364
+ # Update properties of this object
365
+ def update!(**args)
366
+ @key = args[:key] if args.key?(:key)
367
+ @value = args[:value] if args.key?(:value)
368
+ end
369
+ end
370
+
371
+ #
372
+ class DeploymentsCancelPreviewRequest
373
+ include Google::Apis::Core::Hashable
374
+
375
+ # Specifies a fingerprint for cancelPreview() requests. A fingerprint is a
376
+ # randomly generated value that must be provided in cancelPreview() requests to
377
+ # perform optimistic locking. This ensures optimistic concurrency so that the
378
+ # deployment does not have conflicting requests (e.g. if someone attempts to
379
+ # make a new update request while another user attempts to cancel a preview,
380
+ # this would prevent one of the requests).
381
+ # The fingerprint is initially generated by Deployment Manager and changes after
382
+ # every request to modify a deployment. To get the latest fingerprint value,
383
+ # perform a get() request on the deployment.
384
+ # Corresponds to the JSON property `fingerprint`
385
+ # @return [String]
386
+ attr_accessor :fingerprint
387
+
388
+ def initialize(**args)
389
+ update!(**args)
390
+ end
391
+
392
+ # Update properties of this object
393
+ def update!(**args)
394
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
395
+ end
396
+ end
397
+
398
+ # A response containing a partial list of deployments and a page token used to
399
+ # build the next request if the request has been truncated.
400
+ class ListDeploymentsResponse
401
+ include Google::Apis::Core::Hashable
402
+
403
+ # [Output Only] The deployments contained in this response.
404
+ # Corresponds to the JSON property `deployments`
405
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Deployment>]
406
+ attr_accessor :deployments
407
+
408
+ # [Output Only] A token used to continue a truncated list request.
409
+ # Corresponds to the JSON property `nextPageToken`
410
+ # @return [String]
411
+ attr_accessor :next_page_token
412
+
413
+ def initialize(**args)
414
+ update!(**args)
415
+ end
416
+
417
+ # Update properties of this object
418
+ def update!(**args)
419
+ @deployments = args[:deployments] if args.key?(:deployments)
420
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
421
+ end
422
+ end
423
+
424
+ #
425
+ class DeploymentsStopRequest
426
+ include Google::Apis::Core::Hashable
427
+
428
+ # Specifies a fingerprint for stop() requests. A fingerprint is a randomly
429
+ # generated value that must be provided in stop() requests to perform optimistic
430
+ # locking. This ensures optimistic concurrency so that the deployment does not
431
+ # have conflicting requests (e.g. if someone attempts to make a new update
432
+ # request while another user attempts to stop an ongoing update request, this
433
+ # would prevent a collision).
434
+ # The fingerprint is initially generated by Deployment Manager and changes after
435
+ # every request to modify a deployment. To get the latest fingerprint value,
436
+ # perform a get() request on the deployment.
437
+ # Corresponds to the JSON property `fingerprint`
438
+ # @return [String]
439
+ attr_accessor :fingerprint
440
+
441
+ def initialize(**args)
442
+ update!(**args)
443
+ end
444
+
445
+ # Update properties of this object
446
+ def update!(**args)
447
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
448
+ end
449
+ end
450
+
451
+ #
452
+ class ImportFile
453
+ include Google::Apis::Core::Hashable
454
+
455
+ # The contents of the file.
456
+ # Corresponds to the JSON property `content`
457
+ # @return [String]
458
+ attr_accessor :content
459
+
460
+ # The name of the file.
461
+ # Corresponds to the JSON property `name`
462
+ # @return [String]
463
+ attr_accessor :name
464
+
465
+ def initialize(**args)
466
+ update!(**args)
467
+ end
468
+
469
+ # Update properties of this object
470
+ def update!(**args)
471
+ @content = args[:content] if args.key?(:content)
472
+ @name = args[:name] if args.key?(:name)
473
+ end
474
+ end
475
+
476
+ # Specifies what kind of log the caller must write
477
+ class LogConfig
478
+ include Google::Apis::Core::Hashable
479
+
480
+ # Options for counters
481
+ # Corresponds to the JSON property `counter`
482
+ # @return [Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions]
483
+ attr_accessor :counter
484
+
485
+ def initialize(**args)
486
+ update!(**args)
487
+ end
488
+
489
+ # Update properties of this object
490
+ def update!(**args)
491
+ @counter = args[:counter] if args.key?(:counter)
492
+ end
493
+ end
494
+
495
+ # Options for counters
496
+ class LogConfigCounterOptions
497
+ include Google::Apis::Core::Hashable
498
+
499
+ # The field value to attribute.
500
+ # Corresponds to the JSON property `field`
501
+ # @return [String]
502
+ attr_accessor :field
503
+
504
+ # The metric to update.
505
+ # Corresponds to the JSON property `metric`
506
+ # @return [String]
507
+ attr_accessor :metric
508
+
509
+ def initialize(**args)
510
+ update!(**args)
511
+ end
512
+
513
+ # Update properties of this object
514
+ def update!(**args)
515
+ @field = args[:field] if args.key?(:field)
516
+ @metric = args[:metric] if args.key?(:metric)
517
+ end
518
+ end
519
+
520
+ #
521
+ class Manifest
522
+ include Google::Apis::Core::Hashable
523
+
524
+ #
525
+ # Corresponds to the JSON property `config`
526
+ # @return [Google::Apis::DeploymentmanagerV2::ConfigFile]
527
+ attr_accessor :config
528
+
529
+ # [Output Only] The fully-expanded configuration file, including any templates
530
+ # and references.
531
+ # Corresponds to the JSON property `expandedConfig`
532
+ # @return [String]
533
+ attr_accessor :expanded_config
534
+
535
+ # [Output Only] Unique identifier for the resource; defined by the server.
536
+ # Corresponds to the JSON property `id`
537
+ # @return [String]
538
+ attr_accessor :id
539
+
540
+ # [Output Only] The imported files for this manifest.
541
+ # Corresponds to the JSON property `imports`
542
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ImportFile>]
543
+ attr_accessor :imports
544
+
545
+ # [Output Only] Timestamp when the manifest was created, in RFC3339 text format.
546
+ # Corresponds to the JSON property `insertTime`
547
+ # @return [String]
548
+ attr_accessor :insert_time
549
+
550
+ # [Output Only] The YAML layout for this manifest.
551
+ # Corresponds to the JSON property `layout`
552
+ # @return [String]
553
+ attr_accessor :layout
554
+
555
+ # [Output Only] The name of the manifest.
556
+ # Corresponds to the JSON property `name`
557
+ # @return [String]
558
+ attr_accessor :name
559
+
560
+ # [Output Only] Self link for the manifest.
561
+ # Corresponds to the JSON property `selfLink`
562
+ # @return [String]
563
+ attr_accessor :self_link
564
+
565
+ def initialize(**args)
566
+ update!(**args)
567
+ end
568
+
569
+ # Update properties of this object
570
+ def update!(**args)
571
+ @config = args[:config] if args.key?(:config)
572
+ @expanded_config = args[:expanded_config] if args.key?(:expanded_config)
573
+ @id = args[:id] if args.key?(:id)
574
+ @imports = args[:imports] if args.key?(:imports)
575
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
576
+ @layout = args[:layout] if args.key?(:layout)
577
+ @name = args[:name] if args.key?(:name)
578
+ @self_link = args[:self_link] if args.key?(:self_link)
579
+ end
580
+ end
581
+
582
+ # A response containing a partial list of manifests and a page token used to
583
+ # build the next request if the request has been truncated.
584
+ class ListManifestsResponse
585
+ include Google::Apis::Core::Hashable
586
+
587
+ # [Output Only] Manifests contained in this list response.
588
+ # Corresponds to the JSON property `manifests`
589
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Manifest>]
590
+ attr_accessor :manifests
591
+
592
+ # [Output Only] A token used to continue a truncated list request.
593
+ # Corresponds to the JSON property `nextPageToken`
594
+ # @return [String]
595
+ attr_accessor :next_page_token
596
+
597
+ def initialize(**args)
598
+ update!(**args)
599
+ end
600
+
601
+ # Update properties of this object
602
+ def update!(**args)
603
+ @manifests = args[:manifests] if args.key?(:manifests)
604
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
605
+ end
606
+ end
607
+
608
+ # An Operation resource, used to manage asynchronous API requests.
609
+ class Operation
610
+ include Google::Apis::Core::Hashable
611
+
612
+ # [Output Only] Reserved for future use.
613
+ # Corresponds to the JSON property `clientOperationId`
614
+ # @return [String]
615
+ attr_accessor :client_operation_id
616
+
617
+ # [Output Only] Creation timestamp in RFC3339 text format.
618
+ # Corresponds to the JSON property `creationTimestamp`
619
+ # @return [String]
620
+ attr_accessor :creation_timestamp
621
+
622
+ # [Output Only] A textual description of the operation, which is set when the
623
+ # operation is created.
624
+ # Corresponds to the JSON property `description`
625
+ # @return [String]
626
+ attr_accessor :description
627
+
628
+ # [Output Only] The time that this operation was completed. This value is in
629
+ # RFC3339 text format.
630
+ # Corresponds to the JSON property `endTime`
631
+ # @return [String]
632
+ attr_accessor :end_time
633
+
634
+ # [Output Only] If errors are generated during processing of the operation, this
635
+ # field will be populated.
636
+ # Corresponds to the JSON property `error`
637
+ # @return [Google::Apis::DeploymentmanagerV2::Operation::Error]
638
+ attr_accessor :error
639
+
640
+ # [Output Only] If the operation fails, this field contains the HTTP error
641
+ # message that was returned, such as NOT FOUND.
642
+ # Corresponds to the JSON property `httpErrorMessage`
643
+ # @return [String]
644
+ attr_accessor :http_error_message
645
+
646
+ # [Output Only] If the operation fails, this field contains the HTTP error
647
+ # status code that was returned. For example, a 404 means the resource was not
648
+ # found.
649
+ # Corresponds to the JSON property `httpErrorStatusCode`
650
+ # @return [Fixnum]
651
+ attr_accessor :http_error_status_code
652
+
653
+ # [Output Only] The unique identifier for the resource. This identifier is
654
+ # defined by the server.
655
+ # Corresponds to the JSON property `id`
656
+ # @return [String]
657
+ attr_accessor :id
658
+
659
+ # [Output Only] The time that this operation was requested. This value is in
660
+ # RFC3339 text format.
661
+ # Corresponds to the JSON property `insertTime`
662
+ # @return [String]
663
+ attr_accessor :insert_time
664
+
665
+ # [Output Only] Type of the resource. Always compute#operation for Operation
666
+ # resources.
667
+ # Corresponds to the JSON property `kind`
668
+ # @return [String]
669
+ attr_accessor :kind
670
+
671
+ # [Output Only] Name of the resource.
672
+ # Corresponds to the JSON property `name`
673
+ # @return [String]
674
+ attr_accessor :name
675
+
676
+ # [Output Only] The type of operation, such as insert, update, or delete, and so
677
+ # on.
678
+ # Corresponds to the JSON property `operationType`
679
+ # @return [String]
680
+ attr_accessor :operation_type
681
+
682
+ # [Output Only] An optional progress indicator that ranges from 0 to 100. There
683
+ # is no requirement that this be linear or support any granularity of operations.
684
+ # This should not be used to guess when the operation will be complete. This
685
+ # number should monotonically increase as the operation progresses.
686
+ # Corresponds to the JSON property `progress`
687
+ # @return [Fixnum]
688
+ attr_accessor :progress
689
+
690
+ # [Output Only] The URL of the region where the operation resides. Only
691
+ # available when performing regional operations.
692
+ # Corresponds to the JSON property `region`
693
+ # @return [String]
694
+ attr_accessor :region
695
+
696
+ # [Output Only] Server-defined URL for the resource.
697
+ # Corresponds to the JSON property `selfLink`
698
+ # @return [String]
699
+ attr_accessor :self_link
700
+
701
+ # [Output Only] The time that this operation was started by the server. This
702
+ # value is in RFC3339 text format.
703
+ # Corresponds to the JSON property `startTime`
704
+ # @return [String]
705
+ attr_accessor :start_time
706
+
707
+ # [Output Only] The status of the operation, which can be one of the following:
708
+ # PENDING, RUNNING, or DONE.
709
+ # Corresponds to the JSON property `status`
710
+ # @return [String]
711
+ attr_accessor :status
712
+
713
+ # [Output Only] An optional textual description of the current status of the
714
+ # operation.
715
+ # Corresponds to the JSON property `statusMessage`
716
+ # @return [String]
717
+ attr_accessor :status_message
718
+
719
+ # [Output Only] The unique target ID, which identifies a specific incarnation of
720
+ # the target resource.
721
+ # Corresponds to the JSON property `targetId`
722
+ # @return [String]
723
+ attr_accessor :target_id
724
+
725
+ # [Output Only] The URL of the resource that the operation modifies. For
726
+ # operations related to creating a snapshot, this points to the persistent disk
727
+ # that the snapshot was created from.
728
+ # Corresponds to the JSON property `targetLink`
729
+ # @return [String]
730
+ attr_accessor :target_link
731
+
732
+ # [Output Only] User who requested the operation, for example: user@example.com.
733
+ # Corresponds to the JSON property `user`
734
+ # @return [String]
735
+ attr_accessor :user
736
+
737
+ # [Output Only] If warning messages are generated during processing of the
738
+ # operation, this field will be populated.
739
+ # Corresponds to the JSON property `warnings`
740
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning>]
741
+ attr_accessor :warnings
742
+
743
+ # [Output Only] The URL of the zone where the operation resides. Only available
744
+ # when performing per-zone operations.
745
+ # Corresponds to the JSON property `zone`
746
+ # @return [String]
747
+ attr_accessor :zone
748
+
749
+ def initialize(**args)
750
+ update!(**args)
751
+ end
752
+
753
+ # Update properties of this object
754
+ def update!(**args)
755
+ @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
756
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
757
+ @description = args[:description] if args.key?(:description)
758
+ @end_time = args[:end_time] if args.key?(:end_time)
759
+ @error = args[:error] if args.key?(:error)
760
+ @http_error_message = args[:http_error_message] if args.key?(:http_error_message)
761
+ @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code)
762
+ @id = args[:id] if args.key?(:id)
763
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
764
+ @kind = args[:kind] if args.key?(:kind)
765
+ @name = args[:name] if args.key?(:name)
766
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
767
+ @progress = args[:progress] if args.key?(:progress)
768
+ @region = args[:region] if args.key?(:region)
769
+ @self_link = args[:self_link] if args.key?(:self_link)
770
+ @start_time = args[:start_time] if args.key?(:start_time)
771
+ @status = args[:status] if args.key?(:status)
772
+ @status_message = args[:status_message] if args.key?(:status_message)
773
+ @target_id = args[:target_id] if args.key?(:target_id)
774
+ @target_link = args[:target_link] if args.key?(:target_link)
775
+ @user = args[:user] if args.key?(:user)
776
+ @warnings = args[:warnings] if args.key?(:warnings)
777
+ @zone = args[:zone] if args.key?(:zone)
778
+ end
779
+
780
+ # [Output Only] If errors are generated during processing of the operation, this
781
+ # field will be populated.
782
+ class Error
783
+ include Google::Apis::Core::Hashable
784
+
785
+ # [Output Only] The array of errors encountered while processing this operation.
786
+ # Corresponds to the JSON property `errors`
787
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Error::Error>]
788
+ attr_accessor :errors
789
+
790
+ def initialize(**args)
791
+ update!(**args)
792
+ end
793
+
794
+ # Update properties of this object
795
+ def update!(**args)
796
+ @errors = args[:errors] if args.key?(:errors)
797
+ end
798
+
799
+ #
800
+ class Error
801
+ include Google::Apis::Core::Hashable
802
+
803
+ # [Output Only] The error type identifier for this error.
804
+ # Corresponds to the JSON property `code`
805
+ # @return [String]
806
+ attr_accessor :code
807
+
808
+ # [Output Only] Indicates the field in the request that caused the error. This
809
+ # property is optional.
810
+ # Corresponds to the JSON property `location`
811
+ # @return [String]
812
+ attr_accessor :location
813
+
814
+ # [Output Only] An optional, human-readable error message.
815
+ # Corresponds to the JSON property `message`
816
+ # @return [String]
817
+ attr_accessor :message
818
+
819
+ def initialize(**args)
820
+ update!(**args)
821
+ end
822
+
823
+ # Update properties of this object
824
+ def update!(**args)
825
+ @code = args[:code] if args.key?(:code)
826
+ @location = args[:location] if args.key?(:location)
827
+ @message = args[:message] if args.key?(:message)
828
+ end
829
+ end
830
+ end
831
+
832
+ #
833
+ class Warning
834
+ include Google::Apis::Core::Hashable
835
+
836
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
837
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
838
+ # Corresponds to the JSON property `code`
839
+ # @return [String]
840
+ attr_accessor :code
841
+
842
+ # [Output Only] Metadata about this warning in key: value format. For example:
843
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
844
+ # Corresponds to the JSON property `data`
845
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning::Datum>]
846
+ attr_accessor :data
847
+
848
+ # [Output Only] A human-readable description of the warning code.
849
+ # Corresponds to the JSON property `message`
850
+ # @return [String]
851
+ attr_accessor :message
852
+
853
+ def initialize(**args)
854
+ update!(**args)
855
+ end
856
+
857
+ # Update properties of this object
858
+ def update!(**args)
859
+ @code = args[:code] if args.key?(:code)
860
+ @data = args[:data] if args.key?(:data)
861
+ @message = args[:message] if args.key?(:message)
862
+ end
863
+
864
+ #
865
+ class Datum
866
+ include Google::Apis::Core::Hashable
867
+
868
+ # [Output Only] A key that provides more detail on the warning being returned.
869
+ # For example, for warnings where there are no results in a list request for a
870
+ # particular zone, this key might be scope and the key value might be the zone
871
+ # name. Other examples might be a key indicating a deprecated resource and a
872
+ # suggested replacement, or a warning about invalid network settings (for
873
+ # example, if an instance attempts to perform IP forwarding but is not enabled
874
+ # for IP forwarding).
875
+ # Corresponds to the JSON property `key`
876
+ # @return [String]
877
+ attr_accessor :key
878
+
879
+ # [Output Only] A warning data value corresponding to the key.
880
+ # Corresponds to the JSON property `value`
881
+ # @return [String]
882
+ attr_accessor :value
883
+
884
+ def initialize(**args)
885
+ update!(**args)
886
+ end
887
+
888
+ # Update properties of this object
889
+ def update!(**args)
890
+ @key = args[:key] if args.key?(:key)
891
+ @value = args[:value] if args.key?(:value)
892
+ end
893
+ end
894
+ end
895
+ end
896
+
897
+ # A response containing a partial list of operations and a page token used to
898
+ # build the next request if the request has been truncated.
899
+ class ListOperationsResponse
900
+ include Google::Apis::Core::Hashable
901
+
902
+ # [Output Only] A token used to continue a truncated list request.
903
+ # Corresponds to the JSON property `nextPageToken`
904
+ # @return [String]
905
+ attr_accessor :next_page_token
906
+
907
+ # [Output Only] Operations contained in this list response.
908
+ # Corresponds to the JSON property `operations`
909
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Operation>]
910
+ attr_accessor :operations
911
+
912
+ def initialize(**args)
913
+ update!(**args)
914
+ end
915
+
916
+ # Update properties of this object
917
+ def update!(**args)
918
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
919
+ @operations = args[:operations] if args.key?(:operations)
920
+ end
921
+ end
922
+
923
+ # Defines an Identity and Access Management (IAM) policy. It is used to specify
924
+ # access control policies for Cloud Platform resources.
925
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of `
926
+ # members` to a `role`, where the members can be user accounts, Google groups,
927
+ # Google domains, and service accounts. A `role` is a named list of permissions
928
+ # defined by IAM.
929
+ # **Example**
930
+ # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com",
931
+ # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
932
+ # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
933
+ # sean@example.com"] ` ] `
934
+ # For a description of IAM and its features, see the [IAM developer's guide](
935
+ # https://cloud.google.com/iam).
936
+ class Policy
937
+ include Google::Apis::Core::Hashable
938
+
939
+ # Specifies audit logging configs for "data access". "data access": generally
940
+ # refers to data reads/writes and admin reads. "admin activity": generally
941
+ # refers to admin writes.
942
+ # Note: `AuditConfig` doesn't apply to "admin activity", which always enables
943
+ # audit logging.
944
+ # Corresponds to the JSON property `auditConfigs`
945
+ # @return [Array<Google::Apis::DeploymentmanagerV2::AuditConfig>]
946
+ attr_accessor :audit_configs
947
+
948
+ # Associates a list of `members` to a `role`. Multiple `bindings` must not be
949
+ # specified for the same `role`. `bindings` with no members will result in an
950
+ # error.
951
+ # Corresponds to the JSON property `bindings`
952
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Binding>]
953
+ attr_accessor :bindings
954
+
955
+ # `etag` is used for optimistic concurrency control as a way to help prevent
956
+ # simultaneous updates of a policy from overwriting each other. It is strongly
957
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
958
+ # to perform policy updates in order to avoid race conditions: An `etag` is
959
+ # returned in the response to `getIamPolicy`, and systems are expected to put
960
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
961
+ # applied to the same version of the policy.
962
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
963
+ # policy is overwritten blindly.
964
+ # Corresponds to the JSON property `etag`
965
+ # @return [String]
966
+ attr_accessor :etag
967
+
968
+ #
969
+ # Corresponds to the JSON property `iamOwned`
970
+ # @return [Boolean]
971
+ attr_accessor :iam_owned
972
+ alias_method :iam_owned?, :iam_owned
973
+
974
+ # If more than one rule is specified, the rules are applied in the following
975
+ # manner: - All matching LOG rules are always applied. - If any DENY/
976
+ # DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if
977
+ # one or more matching rule requires logging. - Otherwise, if any ALLOW/
978
+ # ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if
979
+ # one or more matching rule requires logging. - Otherwise, if no rule applies,
980
+ # permission is denied.
981
+ # Corresponds to the JSON property `rules`
982
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Rule>]
983
+ attr_accessor :rules
984
+
985
+ # Version of the `Policy`. The default version is 0.
986
+ # Corresponds to the JSON property `version`
987
+ # @return [Fixnum]
988
+ attr_accessor :version
989
+
990
+ def initialize(**args)
991
+ update!(**args)
992
+ end
993
+
994
+ # Update properties of this object
995
+ def update!(**args)
996
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
997
+ @bindings = args[:bindings] if args.key?(:bindings)
998
+ @etag = args[:etag] if args.key?(:etag)
999
+ @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
1000
+ @rules = args[:rules] if args.key?(:rules)
1001
+ @version = args[:version] if args.key?(:version)
1002
+ end
1003
+ end
1004
+
1005
+ #
1006
+ class Resource
1007
+ include Google::Apis::Core::Hashable
1008
+
1009
+ # The access controls set on the resource.
1010
+ # Corresponds to the JSON property `accessControl`
1011
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceAccessControl]
1012
+ attr_accessor :access_control
1013
+
1014
+ # [Output Only] The evaluated properties of the resource with references
1015
+ # expanded. Returned as serialized YAML.
1016
+ # Corresponds to the JSON property `finalProperties`
1017
+ # @return [String]
1018
+ attr_accessor :final_properties
1019
+
1020
+ # [Output Only] Unique identifier for the resource; defined by the server.
1021
+ # Corresponds to the JSON property `id`
1022
+ # @return [String]
1023
+ attr_accessor :id
1024
+
1025
+ # [Output Only] Timestamp when the resource was created or acquired, in RFC3339
1026
+ # text format .
1027
+ # Corresponds to the JSON property `insertTime`
1028
+ # @return [String]
1029
+ attr_accessor :insert_time
1030
+
1031
+ # [Output Only] URL of the manifest representing the current configuration of
1032
+ # this resource.
1033
+ # Corresponds to the JSON property `manifest`
1034
+ # @return [String]
1035
+ attr_accessor :manifest
1036
+
1037
+ # [Output Only] The name of the resource as it appears in the YAML config.
1038
+ # Corresponds to the JSON property `name`
1039
+ # @return [String]
1040
+ attr_accessor :name
1041
+
1042
+ # [Output Only] The current properties of the resource before any references
1043
+ # have been filled in. Returned as serialized YAML.
1044
+ # Corresponds to the JSON property `properties`
1045
+ # @return [String]
1046
+ attr_accessor :properties
1047
+
1048
+ # [Output Only] The type of the resource, for example compute.v1.instance, or
1049
+ # cloudfunctions.v1beta1.function.
1050
+ # Corresponds to the JSON property `type`
1051
+ # @return [String]
1052
+ attr_accessor :type
1053
+
1054
+ #
1055
+ # Corresponds to the JSON property `update`
1056
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate]
1057
+ attr_accessor :update
1058
+
1059
+ # [Output Only] Timestamp when the resource was updated, in RFC3339 text format .
1060
+ # Corresponds to the JSON property `updateTime`
1061
+ # @return [String]
1062
+ attr_accessor :update_time
1063
+
1064
+ # [Output Only] The URL of the actual resource.
1065
+ # Corresponds to the JSON property `url`
1066
+ # @return [String]
1067
+ attr_accessor :url
1068
+
1069
+ # [Output Only] If warning messages are generated during processing of this
1070
+ # resource, this field will be populated.
1071
+ # Corresponds to the JSON property `warnings`
1072
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Resource::Warning>]
1073
+ attr_accessor :warnings
1074
+
1075
+ def initialize(**args)
1076
+ update!(**args)
1077
+ end
1078
+
1079
+ # Update properties of this object
1080
+ def update!(**args)
1081
+ @access_control = args[:access_control] if args.key?(:access_control)
1082
+ @final_properties = args[:final_properties] if args.key?(:final_properties)
1083
+ @id = args[:id] if args.key?(:id)
1084
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
1085
+ @manifest = args[:manifest] if args.key?(:manifest)
1086
+ @name = args[:name] if args.key?(:name)
1087
+ @properties = args[:properties] if args.key?(:properties)
1088
+ @type = args[:type] if args.key?(:type)
1089
+ @update = args[:update] if args.key?(:update)
1090
+ @update_time = args[:update_time] if args.key?(:update_time)
1091
+ @url = args[:url] if args.key?(:url)
1092
+ @warnings = args[:warnings] if args.key?(:warnings)
1093
+ end
1094
+
1095
+ #
1096
+ class Warning
1097
+ include Google::Apis::Core::Hashable
1098
+
1099
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
1100
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
1101
+ # Corresponds to the JSON property `code`
1102
+ # @return [String]
1103
+ attr_accessor :code
1104
+
1105
+ # [Output Only] Metadata about this warning in key: value format. For example:
1106
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
1107
+ # Corresponds to the JSON property `data`
1108
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Resource::Warning::Datum>]
1109
+ attr_accessor :data
1110
+
1111
+ # [Output Only] A human-readable description of the warning code.
1112
+ # Corresponds to the JSON property `message`
1113
+ # @return [String]
1114
+ attr_accessor :message
1115
+
1116
+ def initialize(**args)
1117
+ update!(**args)
1118
+ end
1119
+
1120
+ # Update properties of this object
1121
+ def update!(**args)
1122
+ @code = args[:code] if args.key?(:code)
1123
+ @data = args[:data] if args.key?(:data)
1124
+ @message = args[:message] if args.key?(:message)
1125
+ end
1126
+
1127
+ #
1128
+ class Datum
1129
+ include Google::Apis::Core::Hashable
1130
+
1131
+ # [Output Only] A key that provides more detail on the warning being returned.
1132
+ # For example, for warnings where there are no results in a list request for a
1133
+ # particular zone, this key might be scope and the key value might be the zone
1134
+ # name. Other examples might be a key indicating a deprecated resource and a
1135
+ # suggested replacement, or a warning about invalid network settings (for
1136
+ # example, if an instance attempts to perform IP forwarding but is not enabled
1137
+ # for IP forwarding).
1138
+ # Corresponds to the JSON property `key`
1139
+ # @return [String]
1140
+ attr_accessor :key
1141
+
1142
+ # [Output Only] A warning data value corresponding to the key.
1143
+ # Corresponds to the JSON property `value`
1144
+ # @return [String]
1145
+ attr_accessor :value
1146
+
1147
+ def initialize(**args)
1148
+ update!(**args)
1149
+ end
1150
+
1151
+ # Update properties of this object
1152
+ def update!(**args)
1153
+ @key = args[:key] if args.key?(:key)
1154
+ @value = args[:value] if args.key?(:value)
1155
+ end
1156
+ end
1157
+ end
1158
+ end
1159
+
1160
+ # The access controls set on the resource.
1161
+ class ResourceAccessControl
1162
+ include Google::Apis::Core::Hashable
1163
+
1164
+ # The GCP IAM Policy to set on the resource.
1165
+ # Corresponds to the JSON property `gcpIamPolicy`
1166
+ # @return [String]
1167
+ attr_accessor :gcp_iam_policy
1168
+
1169
+ def initialize(**args)
1170
+ update!(**args)
1171
+ end
1172
+
1173
+ # Update properties of this object
1174
+ def update!(**args)
1175
+ @gcp_iam_policy = args[:gcp_iam_policy] if args.key?(:gcp_iam_policy)
1176
+ end
1177
+ end
1178
+
1179
+ #
1180
+ class ResourceUpdate
1181
+ include Google::Apis::Core::Hashable
1182
+
1183
+ # The access controls set on the resource.
1184
+ # Corresponds to the JSON property `accessControl`
1185
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceAccessControl]
1186
+ attr_accessor :access_control
1187
+
1188
+ # [Output Only] If errors are generated during update of the resource, this
1189
+ # field will be populated.
1190
+ # Corresponds to the JSON property `error`
1191
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error]
1192
+ attr_accessor :error
1193
+
1194
+ # [Output Only] The expanded properties of the resource with reference values
1195
+ # expanded. Returned as serialized YAML.
1196
+ # Corresponds to the JSON property `finalProperties`
1197
+ # @return [String]
1198
+ attr_accessor :final_properties
1199
+
1200
+ # [Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL.
1201
+ # Corresponds to the JSON property `intent`
1202
+ # @return [String]
1203
+ attr_accessor :intent
1204
+
1205
+ # [Output Only] URL of the manifest representing the update configuration of
1206
+ # this resource.
1207
+ # Corresponds to the JSON property `manifest`
1208
+ # @return [String]
1209
+ attr_accessor :manifest
1210
+
1211
+ # [Output Only] The set of updated properties for this resource, before
1212
+ # references are expanded. Returned as serialized YAML.
1213
+ # Corresponds to the JSON property `properties`
1214
+ # @return [String]
1215
+ attr_accessor :properties
1216
+
1217
+ # [Output Only] The state of the resource.
1218
+ # Corresponds to the JSON property `state`
1219
+ # @return [String]
1220
+ attr_accessor :state
1221
+
1222
+ # [Output Only] If warning messages are generated during processing of this
1223
+ # resource, this field will be populated.
1224
+ # Corresponds to the JSON property `warnings`
1225
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning>]
1226
+ attr_accessor :warnings
1227
+
1228
+ def initialize(**args)
1229
+ update!(**args)
1230
+ end
1231
+
1232
+ # Update properties of this object
1233
+ def update!(**args)
1234
+ @access_control = args[:access_control] if args.key?(:access_control)
1235
+ @error = args[:error] if args.key?(:error)
1236
+ @final_properties = args[:final_properties] if args.key?(:final_properties)
1237
+ @intent = args[:intent] if args.key?(:intent)
1238
+ @manifest = args[:manifest] if args.key?(:manifest)
1239
+ @properties = args[:properties] if args.key?(:properties)
1240
+ @state = args[:state] if args.key?(:state)
1241
+ @warnings = args[:warnings] if args.key?(:warnings)
1242
+ end
1243
+
1244
+ # [Output Only] If errors are generated during update of the resource, this
1245
+ # field will be populated.
1246
+ class Error
1247
+ include Google::Apis::Core::Hashable
1248
+
1249
+ # [Output Only] The array of errors encountered while processing this operation.
1250
+ # Corresponds to the JSON property `errors`
1251
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error::Error>]
1252
+ attr_accessor :errors
1253
+
1254
+ def initialize(**args)
1255
+ update!(**args)
1256
+ end
1257
+
1258
+ # Update properties of this object
1259
+ def update!(**args)
1260
+ @errors = args[:errors] if args.key?(:errors)
1261
+ end
1262
+
1263
+ #
1264
+ class Error
1265
+ include Google::Apis::Core::Hashable
1266
+
1267
+ # [Output Only] The error type identifier for this error.
1268
+ # Corresponds to the JSON property `code`
1269
+ # @return [String]
1270
+ attr_accessor :code
1271
+
1272
+ # [Output Only] Indicates the field in the request that caused the error. This
1273
+ # property is optional.
1274
+ # Corresponds to the JSON property `location`
1275
+ # @return [String]
1276
+ attr_accessor :location
1277
+
1278
+ # [Output Only] An optional, human-readable error message.
1279
+ # Corresponds to the JSON property `message`
1280
+ # @return [String]
1281
+ attr_accessor :message
1282
+
1283
+ def initialize(**args)
1284
+ update!(**args)
1285
+ end
1286
+
1287
+ # Update properties of this object
1288
+ def update!(**args)
1289
+ @code = args[:code] if args.key?(:code)
1290
+ @location = args[:location] if args.key?(:location)
1291
+ @message = args[:message] if args.key?(:message)
1292
+ end
1293
+ end
1294
+ end
1295
+
1296
+ #
1297
+ class Warning
1298
+ include Google::Apis::Core::Hashable
1299
+
1300
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
1301
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
1302
+ # Corresponds to the JSON property `code`
1303
+ # @return [String]
1304
+ attr_accessor :code
1305
+
1306
+ # [Output Only] Metadata about this warning in key: value format. For example:
1307
+ # "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
1308
+ # Corresponds to the JSON property `data`
1309
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning::Datum>]
1310
+ attr_accessor :data
1311
+
1312
+ # [Output Only] A human-readable description of the warning code.
1313
+ # Corresponds to the JSON property `message`
1314
+ # @return [String]
1315
+ attr_accessor :message
1316
+
1317
+ def initialize(**args)
1318
+ update!(**args)
1319
+ end
1320
+
1321
+ # Update properties of this object
1322
+ def update!(**args)
1323
+ @code = args[:code] if args.key?(:code)
1324
+ @data = args[:data] if args.key?(:data)
1325
+ @message = args[:message] if args.key?(:message)
1326
+ end
1327
+
1328
+ #
1329
+ class Datum
1330
+ include Google::Apis::Core::Hashable
1331
+
1332
+ # [Output Only] A key that provides more detail on the warning being returned.
1333
+ # For example, for warnings where there are no results in a list request for a
1334
+ # particular zone, this key might be scope and the key value might be the zone
1335
+ # name. Other examples might be a key indicating a deprecated resource and a
1336
+ # suggested replacement, or a warning about invalid network settings (for
1337
+ # example, if an instance attempts to perform IP forwarding but is not enabled
1338
+ # for IP forwarding).
1339
+ # Corresponds to the JSON property `key`
1340
+ # @return [String]
1341
+ attr_accessor :key
1342
+
1343
+ # [Output Only] A warning data value corresponding to the key.
1344
+ # Corresponds to the JSON property `value`
1345
+ # @return [String]
1346
+ attr_accessor :value
1347
+
1348
+ def initialize(**args)
1349
+ update!(**args)
1350
+ end
1351
+
1352
+ # Update properties of this object
1353
+ def update!(**args)
1354
+ @key = args[:key] if args.key?(:key)
1355
+ @value = args[:value] if args.key?(:value)
1356
+ end
1357
+ end
1358
+ end
1359
+ end
1360
+
1361
+ # A response containing a partial list of resources and a page token used to
1362
+ # build the next request if the request has been truncated.
1363
+ class ListResourcesResponse
1364
+ include Google::Apis::Core::Hashable
1365
+
1366
+ # A token used to continue a truncated list request.
1367
+ # Corresponds to the JSON property `nextPageToken`
1368
+ # @return [String]
1369
+ attr_accessor :next_page_token
1370
+
1371
+ # Resources contained in this list response.
1372
+ # Corresponds to the JSON property `resources`
1373
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Resource>]
1374
+ attr_accessor :resources
1375
+
1376
+ def initialize(**args)
1377
+ update!(**args)
1378
+ end
1379
+
1380
+ # Update properties of this object
1381
+ def update!(**args)
1382
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1383
+ @resources = args[:resources] if args.key?(:resources)
1384
+ end
1385
+ end
1386
+
1387
+ # A rule to be applied in a Policy.
1388
+ class Rule
1389
+ include Google::Apis::Core::Hashable
1390
+
1391
+ # Required
1392
+ # Corresponds to the JSON property `action`
1393
+ # @return [String]
1394
+ attr_accessor :action
1395
+
1396
+ # Additional restrictions that must be met
1397
+ # Corresponds to the JSON property `conditions`
1398
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Condition>]
1399
+ attr_accessor :conditions
1400
+
1401
+ # Human-readable description of the rule.
1402
+ # Corresponds to the JSON property `description`
1403
+ # @return [String]
1404
+ attr_accessor :description
1405
+
1406
+ # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/
1407
+ # AUTHORITY_SELECTOR is in at least one of these entries.
1408
+ # Corresponds to the JSON property `ins`
1409
+ # @return [Array<String>]
1410
+ attr_accessor :ins
1411
+
1412
+ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
1413
+ # that match the LOG action.
1414
+ # Corresponds to the JSON property `logConfigs`
1415
+ # @return [Array<Google::Apis::DeploymentmanagerV2::LogConfig>]
1416
+ attr_accessor :log_configs
1417
+
1418
+ # If one or more 'not_in' clauses are specified, the rule matches if the
1419
+ # PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
1420
+ # Corresponds to the JSON property `notIns`
1421
+ # @return [Array<String>]
1422
+ attr_accessor :not_ins
1423
+
1424
+ # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value
1425
+ # of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.
1426
+ # *') matches all verbs.
1427
+ # Corresponds to the JSON property `permissions`
1428
+ # @return [Array<String>]
1429
+ attr_accessor :permissions
1430
+
1431
+ def initialize(**args)
1432
+ update!(**args)
1433
+ end
1434
+
1435
+ # Update properties of this object
1436
+ def update!(**args)
1437
+ @action = args[:action] if args.key?(:action)
1438
+ @conditions = args[:conditions] if args.key?(:conditions)
1439
+ @description = args[:description] if args.key?(:description)
1440
+ @ins = args[:ins] if args.key?(:ins)
1441
+ @log_configs = args[:log_configs] if args.key?(:log_configs)
1442
+ @not_ins = args[:not_ins] if args.key?(:not_ins)
1443
+ @permissions = args[:permissions] if args.key?(:permissions)
1444
+ end
1445
+ end
1446
+
1447
+ #
1448
+ class TargetConfiguration
1449
+ include Google::Apis::Core::Hashable
1450
+
1451
+ #
1452
+ # Corresponds to the JSON property `config`
1453
+ # @return [Google::Apis::DeploymentmanagerV2::ConfigFile]
1454
+ attr_accessor :config
1455
+
1456
+ # Specifies any files to import for this configuration. This can be used to
1457
+ # import templates or other files. For example, you might import a text file in
1458
+ # order to use the file in a template.
1459
+ # Corresponds to the JSON property `imports`
1460
+ # @return [Array<Google::Apis::DeploymentmanagerV2::ImportFile>]
1461
+ attr_accessor :imports
1462
+
1463
+ def initialize(**args)
1464
+ update!(**args)
1465
+ end
1466
+
1467
+ # Update properties of this object
1468
+ def update!(**args)
1469
+ @config = args[:config] if args.key?(:config)
1470
+ @imports = args[:imports] if args.key?(:imports)
1471
+ end
1472
+ end
1473
+
1474
+ #
1475
+ class TestPermissionsRequest
1476
+ include Google::Apis::Core::Hashable
1477
+
1478
+ # The set of permissions to check for the 'resource'. Permissions with wildcards
1479
+ # (such as '*' or 'storage.*') are not allowed.
1480
+ # Corresponds to the JSON property `permissions`
1481
+ # @return [Array<String>]
1482
+ attr_accessor :permissions
1483
+
1484
+ def initialize(**args)
1485
+ update!(**args)
1486
+ end
1487
+
1488
+ # Update properties of this object
1489
+ def update!(**args)
1490
+ @permissions = args[:permissions] if args.key?(:permissions)
1491
+ end
1492
+ end
1493
+
1494
+ #
1495
+ class TestPermissionsResponse
1496
+ include Google::Apis::Core::Hashable
1497
+
1498
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1499
+ # Corresponds to the JSON property `permissions`
1500
+ # @return [Array<String>]
1501
+ attr_accessor :permissions
1502
+
1503
+ def initialize(**args)
1504
+ update!(**args)
1505
+ end
1506
+
1507
+ # Update properties of this object
1508
+ def update!(**args)
1509
+ @permissions = args[:permissions] if args.key?(:permissions)
1510
+ end
1511
+ end
1512
+
1513
+ # A resource type supported by Deployment Manager.
1514
+ class Type
1515
+ include Google::Apis::Core::Hashable
1516
+
1517
+ # [Output Only] Unique identifier for the resource; defined by the server.
1518
+ # Corresponds to the JSON property `id`
1519
+ # @return [String]
1520
+ attr_accessor :id
1521
+
1522
+ # [Output Only] Timestamp when the type was created, in RFC3339 text format.
1523
+ # Corresponds to the JSON property `insertTime`
1524
+ # @return [String]
1525
+ attr_accessor :insert_time
1526
+
1527
+ # Name of the type.
1528
+ # Corresponds to the JSON property `name`
1529
+ # @return [String]
1530
+ attr_accessor :name
1531
+
1532
+ # An Operation resource, used to manage asynchronous API requests.
1533
+ # Corresponds to the JSON property `operation`
1534
+ # @return [Google::Apis::DeploymentmanagerV2::Operation]
1535
+ attr_accessor :operation
1536
+
1537
+ # [Output Only] Self link for the type.
1538
+ # Corresponds to the JSON property `selfLink`
1539
+ # @return [String]
1540
+ attr_accessor :self_link
1541
+
1542
+ def initialize(**args)
1543
+ update!(**args)
1544
+ end
1545
+
1546
+ # Update properties of this object
1547
+ def update!(**args)
1548
+ @id = args[:id] if args.key?(:id)
1549
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
1550
+ @name = args[:name] if args.key?(:name)
1551
+ @operation = args[:operation] if args.key?(:operation)
1552
+ @self_link = args[:self_link] if args.key?(:self_link)
1553
+ end
1554
+ end
1555
+
1556
+ # A response that returns all Types supported by Deployment Manager
1557
+ class ListTypesResponse
1558
+ include Google::Apis::Core::Hashable
1559
+
1560
+ # A token used to continue a truncated list request.
1561
+ # Corresponds to the JSON property `nextPageToken`
1562
+ # @return [String]
1563
+ attr_accessor :next_page_token
1564
+
1565
+ # [Output Only] A list of resource types supported by Deployment Manager.
1566
+ # Corresponds to the JSON property `types`
1567
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Type>]
1568
+ attr_accessor :types
1569
+
1570
+ def initialize(**args)
1571
+ update!(**args)
1572
+ end
1573
+
1574
+ # Update properties of this object
1575
+ def update!(**args)
1576
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1577
+ @types = args[:types] if args.key?(:types)
1578
+ end
1579
+ end
1580
+ end
1581
+ end
1582
+ end