google-api-client 0.11.3 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/api_names.yaml +32317 -34465
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  14. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  15. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  19. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  20. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  21. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  22. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  23. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  24. data/generated/google/apis/analytics_v3/service.rb +82 -82
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
  27. data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
  28. data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
  29. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  30. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  31. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  32. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  33. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  34. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  35. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  36. data/generated/google/apis/appengine_v1.rb +1 -1
  37. data/generated/google/apis/appengine_v1/classes.rb +825 -817
  38. data/generated/google/apis/appengine_v1/representations.rb +185 -184
  39. data/generated/google/apis/appengine_v1/service.rb +220 -216
  40. data/generated/google/apis/appstate_v1.rb +1 -1
  41. data/generated/google/apis/bigquery_v2.rb +1 -1
  42. data/generated/google/apis/bigquery_v2/classes.rb +9 -7
  43. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  44. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  45. data/generated/google/apis/blogger_v3/service.rb +3 -3
  46. data/generated/google/apis/books_v1/classes.rb +55 -55
  47. data/generated/google/apis/books_v1/representations.rb +67 -67
  48. data/generated/google/apis/books_v1/service.rb +82 -82
  49. data/generated/google/apis/calendar_v3.rb +1 -1
  50. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  51. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  52. data/generated/google/apis/calendar_v3/service.rb +2 -2
  53. data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
  54. data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
  55. data/generated/google/apis/civicinfo_v2/service.rb +8 -8
  56. data/generated/google/apis/classroom_v1.rb +24 -24
  57. data/generated/google/apis/classroom_v1/classes.rb +381 -381
  58. data/generated/google/apis/classroom_v1/representations.rb +108 -108
  59. data/generated/google/apis/classroom_v1/service.rb +503 -503
  60. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  61. data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
  62. data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
  63. data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
  64. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  65. data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
  66. data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
  67. data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
  68. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  69. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
  70. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
  71. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
  72. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  73. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  74. data/generated/google/apis/cloudkms_v1.rb +3 -3
  75. data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
  76. data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
  77. data/generated/google/apis/cloudkms_v1/service.rb +224 -224
  78. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  79. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
  80. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
  81. data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
  85. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  88. data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
  89. data/generated/google/apis/compute_beta.rb +1 -1
  90. data/generated/google/apis/compute_beta/classes.rb +57 -15
  91. data/generated/google/apis/compute_beta/representations.rb +30 -14
  92. data/generated/google/apis/compute_beta/service.rb +52 -52
  93. data/generated/google/apis/compute_v1.rb +1 -1
  94. data/generated/google/apis/compute_v1/classes.rb +223 -10
  95. data/generated/google/apis/compute_v1/representations.rb +85 -16
  96. data/generated/google/apis/compute_v1/service.rb +327 -51
  97. data/generated/google/apis/container_v1/classes.rb +267 -267
  98. data/generated/google/apis/container_v1/representations.rb +61 -61
  99. data/generated/google/apis/container_v1/service.rb +123 -123
  100. data/generated/google/apis/content_v2.rb +1 -1
  101. data/generated/google/apis/content_v2/classes.rb +71 -71
  102. data/generated/google/apis/content_v2/representations.rb +105 -105
  103. data/generated/google/apis/content_v2/service.rb +120 -120
  104. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  105. data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
  106. data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
  107. data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
  108. data/generated/google/apis/dataproc_v1.rb +1 -1
  109. data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
  110. data/generated/google/apis/dataproc_v1/representations.rb +147 -147
  111. data/generated/google/apis/dataproc_v1/service.rb +309 -305
  112. data/generated/google/apis/datastore_v1.rb +1 -1
  113. data/generated/google/apis/datastore_v1/classes.rb +818 -818
  114. data/generated/google/apis/datastore_v1/representations.rb +151 -151
  115. data/generated/google/apis/datastore_v1/service.rb +62 -62
  116. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  117. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  118. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  119. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  120. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  121. data/generated/google/apis/discovery_v1/service.rb +1 -1
  122. data/generated/google/apis/dns_v1.rb +1 -1
  123. data/generated/google/apis/dns_v1/classes.rb +3 -3
  124. data/generated/google/apis/dns_v1/representations.rb +6 -6
  125. data/generated/google/apis/dns_v1/service.rb +12 -12
  126. data/generated/google/apis/dns_v2beta1.rb +1 -1
  127. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  128. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  129. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  130. data/generated/google/apis/drive_v2/service.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +188 -188
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
  136. data/generated/google/apis/firebaserules_v1.rb +1 -1
  137. data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
  138. data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
  139. data/generated/google/apis/firebaserules_v1/service.rb +89 -89
  140. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  143. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  144. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  145. data/generated/google/apis/games_management_v1management.rb +1 -1
  146. data/generated/google/apis/games_v1.rb +1 -1
  147. data/generated/google/apis/games_v1/classes.rb +23 -23
  148. data/generated/google/apis/games_v1/representations.rb +43 -43
  149. data/generated/google/apis/games_v1/service.rb +72 -72
  150. data/generated/google/apis/genomics_v1.rb +7 -7
  151. data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
  152. data/generated/google/apis/genomics_v1/representations.rb +298 -298
  153. data/generated/google/apis/genomics_v1/service.rb +1160 -1160
  154. data/generated/google/apis/groupssettings_v1/service.rb +0 -3
  155. data/generated/google/apis/iam_v1.rb +1 -1
  156. data/generated/google/apis/iam_v1/classes.rb +235 -235
  157. data/generated/google/apis/iam_v1/representations.rb +72 -72
  158. data/generated/google/apis/iam_v1/service.rb +189 -189
  159. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  160. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  161. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  162. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  163. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  164. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  165. data/generated/google/apis/language_v1/classes.rb +220 -220
  166. data/generated/google/apis/language_v1/representations.rb +81 -81
  167. data/generated/google/apis/language_v1/service.rb +43 -43
  168. data/generated/google/apis/language_v1beta1/classes.rb +448 -448
  169. data/generated/google/apis/language_v1beta1/representations.rb +106 -106
  170. data/generated/google/apis/language_v1beta1/service.rb +31 -31
  171. data/generated/google/apis/licensing_v1/service.rb +2 -2
  172. data/generated/google/apis/logging_v2/classes.rb +737 -737
  173. data/generated/google/apis/logging_v2/representations.rb +120 -120
  174. data/generated/google/apis/logging_v2/service.rb +479 -479
  175. data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
  176. data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
  177. data/generated/google/apis/logging_v2beta1/service.rb +349 -349
  178. data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
  179. data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
  180. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  181. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  182. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  183. data/generated/google/apis/mirror_v1/service.rb +20 -20
  184. data/generated/google/apis/ml_v1.rb +1 -1
  185. data/generated/google/apis/ml_v1/classes.rb +1285 -1205
  186. data/generated/google/apis/ml_v1/representations.rb +204 -174
  187. data/generated/google/apis/ml_v1/service.rb +150 -145
  188. data/generated/google/apis/monitoring_v3.rb +1 -1
  189. data/generated/google/apis/monitoring_v3/classes.rb +880 -880
  190. data/generated/google/apis/monitoring_v3/representations.rb +154 -154
  191. data/generated/google/apis/monitoring_v3/service.rb +299 -299
  192. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  193. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  194. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  195. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  196. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  197. data/generated/google/apis/partners_v2.rb +1 -1
  198. data/generated/google/apis/partners_v2/classes.rb +524 -509
  199. data/generated/google/apis/partners_v2/representations.rb +115 -111
  200. data/generated/google/apis/partners_v2/service.rb +287 -287
  201. data/generated/google/apis/people_v1.rb +13 -13
  202. data/generated/google/apis/people_v1/classes.rb +1150 -1150
  203. data/generated/google/apis/people_v1/representations.rb +258 -258
  204. data/generated/google/apis/people_v1/service.rb +7 -7
  205. data/generated/google/apis/plus_domains_v1.rb +1 -1
  206. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  207. data/generated/google/apis/plus_v1.rb +1 -1
  208. data/generated/google/apis/plus_v1/service.rb +1 -1
  209. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  210. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
  211. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
  212. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
  213. data/generated/google/apis/pubsub_v1/classes.rb +228 -228
  214. data/generated/google/apis/pubsub_v1/representations.rb +69 -69
  215. data/generated/google/apis/pubsub_v1/service.rb +182 -182
  216. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  217. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  218. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  219. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  220. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  221. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  222. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  223. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  226. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  227. data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
  228. data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
  229. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  230. data/generated/google/apis/script_v1.rb +9 -9
  231. data/generated/google/apis/script_v1/classes.rb +94 -94
  232. data/generated/google/apis/script_v1/representations.rb +26 -26
  233. data/generated/google/apis/searchconsole_v1.rb +1 -1
  234. data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
  235. data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
  236. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  237. data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
  238. data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
  239. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  240. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  241. data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
  242. data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
  243. data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
  244. data/generated/google/apis/serviceuser_v1.rb +4 -4
  245. data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
  246. data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
  247. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  248. data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
  249. data/generated/google/apis/sheets_v4/representations.rb +324 -324
  250. data/generated/google/apis/sheets_v4/service.rb +49 -49
  251. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  252. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  253. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  254. data/generated/google/apis/slides_v1.rb +4 -4
  255. data/generated/google/apis/slides_v1/classes.rb +2907 -2907
  256. data/generated/google/apis/slides_v1/representations.rb +695 -695
  257. data/generated/google/apis/slides_v1/service.rb +40 -40
  258. data/generated/google/apis/sourcerepo_v1.rb +7 -1
  259. data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
  260. data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
  261. data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
  262. data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
  263. data/generated/google/apis/spanner_v1/representations.rb +205 -205
  264. data/generated/google/apis/spanner_v1/service.rb +525 -525
  265. data/generated/google/apis/speech_v1beta1.rb +1 -1
  266. data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
  267. data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
  268. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  269. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  270. data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
  271. data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
  272. data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
  273. data/generated/google/apis/storage_v1/classes.rb +6 -6
  274. data/generated/google/apis/storage_v1/representations.rb +4 -4
  275. data/generated/google/apis/storage_v1/service.rb +1 -1
  276. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  277. data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
  278. data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
  279. data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
  280. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  281. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  282. data/generated/google/apis/translate_v2.rb +1 -1
  283. data/generated/google/apis/translate_v2/classes.rb +46 -46
  284. data/generated/google/apis/translate_v2/representations.rb +22 -22
  285. data/generated/google/apis/translate_v2/service.rb +81 -74
  286. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  287. data/generated/google/apis/vision_v1/representations.rb +166 -166
  288. data/generated/google/apis/vision_v1/service.rb +6 -6
  289. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  290. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  291. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  292. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  293. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  294. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  295. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  296. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  297. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  298. data/generated/google/apis/youtube_v3/service.rb +80 -80
  299. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  300. data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
  301. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  302. data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
  303. data/google-api-client.gemspec +3 -3
  304. data/lib/google/apis/core/base_service.rb +6 -0
  305. data/lib/google/apis/generator/annotator.rb +2 -2
  306. data/lib/google/apis/generator/model.rb +2 -2
  307. data/lib/google/apis/version.rb +1 -1
  308. metadata +11 -94
  309. data/dl.rb +0 -0
  310. data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
  311. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
  312. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
  313. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
  314. data/generated/google/apis/appengine_v1beta4.rb +0 -35
  315. data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
  316. data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
  317. data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
  318. data/generated/google/apis/appengine_v1beta5.rb +0 -40
  319. data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
  320. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
  321. data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
  322. data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
  323. data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
  324. data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
  325. data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
  326. data/generated/google/apis/classroom_v1beta1.rb +0 -49
  327. data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
  328. data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
  329. data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
  330. data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
  331. data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
  332. data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
  333. data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
  334. data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
  335. data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
  336. data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
  337. data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
  338. data/generated/google/apis/container_v1beta1.rb +0 -35
  339. data/generated/google/apis/container_v1beta1/classes.rb +0 -466
  340. data/generated/google/apis/container_v1beta1/representations.rb +0 -177
  341. data/generated/google/apis/container_v1beta1/service.rb +0 -394
  342. data/generated/google/apis/coordinate_v1.rb +0 -37
  343. data/generated/google/apis/coordinate_v1/classes.rb +0 -669
  344. data/generated/google/apis/coordinate_v1/representations.rb +0 -321
  345. data/generated/google/apis/coordinate_v1/service.rb +0 -678
  346. data/generated/google/apis/datastore_v1beta2.rb +0 -40
  347. data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
  348. data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
  349. data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
  350. data/generated/google/apis/datastore_v1beta3.rb +0 -38
  351. data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
  352. data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
  353. data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
  354. data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
  355. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
  356. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
  357. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
  358. data/generated/google/apis/dfareporting_v2_1.rb +0 -37
  359. data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
  360. data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
  361. data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
  362. data/generated/google/apis/dfareporting_v2_3.rb +0 -37
  363. data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
  364. data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
  365. data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
  366. data/generated/google/apis/dfareporting_v2_5.rb +0 -40
  367. data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
  368. data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
  369. data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
  370. data/generated/google/apis/dfareporting_v2_6.rb +0 -40
  371. data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
  372. data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
  373. data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
  374. data/generated/google/apis/gan_v1beta1.rb +0 -31
  375. data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
  376. data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
  377. data/generated/google/apis/gan_v1beta1/service.rb +0 -682
  378. data/generated/google/apis/genomics_v1beta2.rb +0 -46
  379. data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
  380. data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
  381. data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
  382. data/generated/google/apis/logging_v1beta3.rb +0 -47
  383. data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
  384. data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
  385. data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
  386. data/generated/google/apis/manager_v1beta2.rb +0 -53
  387. data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
  388. data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
  389. data/generated/google/apis/manager_v1beta2/service.rb +0 -372
  390. data/generated/google/apis/pubsub_v1beta2.rb +0 -37
  391. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
  392. data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
  393. data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
  394. data/generated/google/apis/tracing_v1.rb +0 -40
  395. data/generated/google/apis/tracing_v1/classes.rb +0 -664
  396. data/generated/google/apis/tracing_v1/representations.rb +0 -279
  397. data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -22,42 +22,6 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1beta1
24
24
 
25
- class Project
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class TestIamPermissionsRequest
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class Policy
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class FolderOperation
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class FolderOperationError
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class ResourceId
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
25
  class AuditConfig
62
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
27
 
@@ -70,13 +34,13 @@ module Google
70
34
  include Google::Apis::Core::JsonObjectSupport
71
35
  end
72
36
 
73
- class SetIamPolicyRequest
37
+ class ListOrganizationsResponse
74
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
39
 
76
40
  include Google::Apis::Core::JsonObjectSupport
77
41
  end
78
42
 
79
- class ListOrganizationsResponse
43
+ class SetIamPolicyRequest
80
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
45
 
82
46
  include Google::Apis::Core::JsonObjectSupport
@@ -136,13 +100,13 @@ module Google
136
100
  include Google::Apis::Core::JsonObjectSupport
137
101
  end
138
102
 
139
- class ListProjectsResponse
103
+ class AuditLogConfig
140
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
105
 
142
106
  include Google::Apis::Core::JsonObjectSupport
143
107
  end
144
108
 
145
- class AuditLogConfig
109
+ class ListProjectsResponse
146
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
111
 
148
112
  include Google::Apis::Core::JsonObjectSupport
@@ -155,69 +119,47 @@ module Google
155
119
  end
156
120
 
157
121
  class Project
158
- # @private
159
- class Representation < Google::Apis::Core::JsonRepresentation
160
- property :project_number, :numeric_string => true, as: 'projectNumber'
161
- property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
162
123
 
163
- property :create_time, as: 'createTime'
164
- hash :labels, as: 'labels'
165
- property :name, as: 'name'
166
- property :project_id, as: 'projectId'
167
- property :lifecycle_state, as: 'lifecycleState'
168
- end
124
+ include Google::Apis::Core::JsonObjectSupport
169
125
  end
170
126
 
171
127
  class TestIamPermissionsRequest
172
- # @private
173
- class Representation < Google::Apis::Core::JsonRepresentation
174
- collection :permissions, as: 'permissions'
175
- end
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
176
131
  end
177
132
 
178
133
  class Policy
179
- # @private
180
- class Representation < Google::Apis::Core::JsonRepresentation
181
- property :etag, :base64 => true, as: 'etag'
182
- property :version, as: 'version'
183
- collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation
184
-
185
- collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
186
135
 
187
- end
136
+ include Google::Apis::Core::JsonObjectSupport
188
137
  end
189
138
 
190
139
  class FolderOperation
191
- # @private
192
- class Representation < Google::Apis::Core::JsonRepresentation
193
- property :destination_parent, as: 'destinationParent'
194
- property :operation_type, as: 'operationType'
195
- property :display_name, as: 'displayName'
196
- property :source_parent, as: 'sourceParent'
197
- end
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
198
143
  end
199
144
 
200
145
  class FolderOperationError
201
- # @private
202
- class Representation < Google::Apis::Core::JsonRepresentation
203
- property :error_message_id, as: 'errorMessageId'
204
- end
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
205
149
  end
206
150
 
207
151
  class ResourceId
208
- # @private
209
- class Representation < Google::Apis::Core::JsonRepresentation
210
- property :id, as: 'id'
211
- property :type, as: 'type'
212
- end
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
213
155
  end
214
156
 
215
157
  class AuditConfig
216
158
  # @private
217
159
  class Representation < Google::Apis::Core::JsonRepresentation
218
- property :service, as: 'service'
219
160
  collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig::Representation
220
161
 
162
+ property :service, as: 'service'
221
163
  end
222
164
  end
223
165
 
@@ -229,21 +171,21 @@ module Google
229
171
  end
230
172
  end
231
173
 
232
- class SetIamPolicyRequest
174
+ class ListOrganizationsResponse
233
175
  # @private
234
176
  class Representation < Google::Apis::Core::JsonRepresentation
235
- property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
177
+ property :next_page_token, as: 'nextPageToken'
178
+ collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
236
179
 
237
- property :update_mask, as: 'updateMask'
238
180
  end
239
181
  end
240
182
 
241
- class ListOrganizationsResponse
183
+ class SetIamPolicyRequest
242
184
  # @private
243
185
  class Representation < Google::Apis::Core::JsonRepresentation
244
- collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
186
+ property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
245
187
 
246
- property :next_page_token, as: 'nextPageToken'
188
+ property :update_mask, as: 'updateMask'
247
189
  end
248
190
  end
249
191
 
@@ -264,13 +206,13 @@ module Google
264
206
  class Organization
265
207
  # @private
266
208
  class Representation < Google::Apis::Core::JsonRepresentation
209
+ property :creation_time, as: 'creationTime'
210
+ property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
211
+
267
212
  property :name, as: 'name'
268
213
  property :organization_id, as: 'organizationId'
269
214
  property :lifecycle_state, as: 'lifecycleState'
270
215
  property :display_name, as: 'displayName'
271
- property :creation_time, as: 'creationTime'
272
- property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
273
-
274
216
  end
275
217
  end
276
218
 
@@ -317,6 +259,14 @@ module Google
317
259
  end
318
260
  end
319
261
 
262
+ class AuditLogConfig
263
+ # @private
264
+ class Representation < Google::Apis::Core::JsonRepresentation
265
+ collection :exempted_members, as: 'exemptedMembers'
266
+ property :log_type, as: 'logType'
267
+ end
268
+ end
269
+
320
270
  class ListProjectsResponse
321
271
  # @private
322
272
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -326,17 +276,67 @@ module Google
326
276
  end
327
277
  end
328
278
 
329
- class AuditLogConfig
279
+ class GetAncestryRequest
330
280
  # @private
331
281
  class Representation < Google::Apis::Core::JsonRepresentation
332
- collection :exempted_members, as: 'exemptedMembers'
333
- property :log_type, as: 'logType'
334
282
  end
335
283
  end
336
284
 
337
- class GetAncestryRequest
285
+ class Project
286
+ # @private
287
+ class Representation < Google::Apis::Core::JsonRepresentation
288
+ property :lifecycle_state, as: 'lifecycleState'
289
+ property :project_number, :numeric_string => true, as: 'projectNumber'
290
+ property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
291
+
292
+ property :create_time, as: 'createTime'
293
+ hash :labels, as: 'labels'
294
+ property :name, as: 'name'
295
+ property :project_id, as: 'projectId'
296
+ end
297
+ end
298
+
299
+ class TestIamPermissionsRequest
300
+ # @private
301
+ class Representation < Google::Apis::Core::JsonRepresentation
302
+ collection :permissions, as: 'permissions'
303
+ end
304
+ end
305
+
306
+ class Policy
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ property :version, as: 'version'
310
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation
311
+
312
+ collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
313
+
314
+ property :etag, :base64 => true, as: 'etag'
315
+ end
316
+ end
317
+
318
+ class FolderOperation
338
319
  # @private
339
320
  class Representation < Google::Apis::Core::JsonRepresentation
321
+ property :display_name, as: 'displayName'
322
+ property :source_parent, as: 'sourceParent'
323
+ property :destination_parent, as: 'destinationParent'
324
+ property :operation_type, as: 'operationType'
325
+ end
326
+ end
327
+
328
+ class FolderOperationError
329
+ # @private
330
+ class Representation < Google::Apis::Core::JsonRepresentation
331
+ property :error_message_id, as: 'errorMessageId'
332
+ end
333
+ end
334
+
335
+ class ResourceId
336
+ # @private
337
+ class Representation < Google::Apis::Core::JsonRepresentation
338
+ property :type, as: 'type'
339
+ property :id, as: 'id'
340
340
  end
341
341
  end
342
342
  end
@@ -48,63 +48,28 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Lists Organization resources that are visible to the user and satisfy
52
- # the specified filter. This method returns Organizations in an unspecified
53
- # order. New Organizations do not necessarily appear at the end of the list.
54
- # @param [String] filter
55
- # An optional query string used to filter the Organizations to return in
56
- # the response. Filter rules are case-insensitive.
57
- # Organizations may be filtered by `owner.directoryCustomerId` or by
58
- # `domain`, where the domain is a Google for Work domain, for example:
59
- # |Filter|Description|
60
- # |------|-----------|
61
- # |owner.directorycustomerid:123456789|Organizations with `owner.
62
- # directory_customer_id` equal to `123456789`.|
63
- # |domain:google.com|Organizations corresponding to the domain `google.com`.|
64
- # This field is optional.
65
- # @param [String] page_token
66
- # A pagination token returned from a previous call to `ListOrganizations`
67
- # that indicates from where listing should continue.
68
- # This field is optional.
69
- # @param [Fixnum] page_size
70
- # The maximum number of Organizations to return in the response.
71
- # This field is optional.
72
- # @param [String] quota_user
73
- # Available to use for quota purposes for server-side applications. Can be any
74
- # arbitrary string assigned to a user, but should not exceed 40 characters.
75
- # @param [String] fields
76
- # Selector specifying which fields to include in a partial response.
77
- # @param [Google::Apis::RequestOptions] options
78
- # Request-specific options
79
- #
80
- # @yield [result, err] Result & error if block supplied
81
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
82
- # @yieldparam err [StandardError] error object if request failed
83
- #
84
- # @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
85
- #
86
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
87
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
88
- # @raise [Google::Apis::AuthorizationError] Authorization is required
89
- def list_organizations(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
90
- command = make_simple_command(:get, 'v1beta1/organizations', options)
91
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
92
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
93
- command.query['filter'] = filter unless filter.nil?
94
- command.query['pageToken'] = page_token unless page_token.nil?
95
- command.query['pageSize'] = page_size unless page_size.nil?
96
- command.query['quotaUser'] = quota_user unless quota_user.nil?
97
- command.query['fields'] = fields unless fields.nil?
98
- execute_or_queue_command(command, &block)
99
- end
100
-
101
- # Sets the access control policy on an Organization resource. Replaces any
102
- # existing policy. The `resource` field should be the organization's resource
103
- # name, e.g. "organizations/123".
104
- # @param [String] resource
105
- # REQUIRED: The resource for which the policy is being specified.
106
- # See the operation documentation for the appropriate value for this field.
107
- # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
51
+ # Marks the Project identified by the specified
52
+ # `project_id` (for example, `my-project-123`) for deletion.
53
+ # This method will only affect the Project if the following criteria are met:
54
+ # + The Project does not have a billing account associated with it.
55
+ # + The Project has a lifecycle state of
56
+ # ACTIVE.
57
+ # This method changes the Project's lifecycle state from
58
+ # ACTIVE
59
+ # to DELETE_REQUESTED.
60
+ # The deletion starts at an unspecified time, at which point the project is
61
+ # no longer accessible.
62
+ # Until the deletion completes, you can check the lifecycle state
63
+ # checked by retrieving the Project with GetProject,
64
+ # and the Project remains visible to ListProjects.
65
+ # However, you cannot update the project.
66
+ # After the deletion completes, the Project is not retrievable by
67
+ # the GetProject and
68
+ # ListProjects methods.
69
+ # The caller must have modify permissions for this Project.
70
+ # @param [String] project_id
71
+ # The Project ID (for example, `foo-bar-123`).
72
+ # Required.
108
73
  # @param [String] quota_user
109
74
  # Available to use for quota purposes for server-side applications. Can be any
110
75
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -114,33 +79,54 @@ module Google
114
79
  # Request-specific options
115
80
  #
116
81
  # @yield [result, err] Result & error if block supplied
117
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
82
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
118
83
  # @yieldparam err [StandardError] error object if request failed
119
84
  #
120
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
85
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
121
86
  #
122
87
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
123
88
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
124
89
  # @raise [Google::Apis::AuthorizationError] Authorization is required
125
- def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
126
- command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
127
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
128
- command.request_object = set_iam_policy_request_object
129
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
130
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
131
- command.params['resource'] = resource unless resource.nil?
90
+ def delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
91
+ command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
92
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
93
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
94
+ command.params['projectId'] = project_id unless project_id.nil?
132
95
  command.query['quotaUser'] = quota_user unless quota_user.nil?
133
96
  command.query['fields'] = fields unless fields.nil?
134
97
  execute_or_queue_command(command, &block)
135
98
  end
136
99
 
137
- # Gets the access control policy for an Organization resource. May be empty
138
- # if no such policy or resource exists. The `resource` field should be the
139
- # organization's resource name, e.g. "organizations/123".
140
- # @param [String] resource
141
- # REQUIRED: The resource for which the policy is being requested.
142
- # See the operation documentation for the appropriate value for this field.
143
- # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
100
+ # Lists Projects that are visible to the user and satisfy the
101
+ # specified filter. This method returns Projects in an unspecified order.
102
+ # New Projects do not necessarily appear at the end of the list.
103
+ # @param [String] filter
104
+ # An expression for filtering the results of the request. Filter rules are
105
+ # case insensitive. The fields eligible for filtering are:
106
+ # + `name`
107
+ # + `id`
108
+ # + <code>labels.<em>key</em></code> where *key* is the name of a label
109
+ # Some examples of using labels as filters:
110
+ # |Filter|Description|
111
+ # |------|-----------|
112
+ # |name:how*|The project's name starts with "how".|
113
+ # |name:Howl|The project's name is `Howl` or `howl`.|
114
+ # |name:HOWL|Equivalent to above.|
115
+ # |NAME:howl|Equivalent to above.|
116
+ # |labels.color:*|The project has the label `color`.|
117
+ # |labels.color:red|The project's label `color` has the value `red`.|
118
+ # |labels.color:red&nbsp;labels.size:big|The project's label `color` has the
119
+ # value `red` and its label `size` has the value `big`.
120
+ # Optional.
121
+ # @param [String] page_token
122
+ # A pagination token returned from a previous call to ListProjects
123
+ # that indicates from where listing should continue.
124
+ # Optional.
125
+ # @param [Fixnum] page_size
126
+ # The maximum number of Projects to return in the response.
127
+ # The server can return fewer Projects than requested.
128
+ # If unspecified, server picks an appropriate default.
129
+ # Optional.
144
130
  # @param [String] quota_user
145
131
  # Available to use for quota purposes for server-side applications. Can be any
146
132
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -150,32 +136,35 @@ module Google
150
136
  # Request-specific options
151
137
  #
152
138
  # @yield [result, err] Result & error if block supplied
153
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
139
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
154
140
  # @yieldparam err [StandardError] error object if request failed
155
141
  #
156
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
142
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
157
143
  #
158
144
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
159
145
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
160
146
  # @raise [Google::Apis::AuthorizationError] Authorization is required
161
- def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
162
- command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
163
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
164
- command.request_object = get_iam_policy_request_object
165
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
166
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
167
- command.params['resource'] = resource unless resource.nil?
147
+ def list_projects(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
148
+ command = make_simple_command(:get, 'v1beta1/projects', options)
149
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
150
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
151
+ command.query['filter'] = filter unless filter.nil?
152
+ command.query['pageToken'] = page_token unless page_token.nil?
153
+ command.query['pageSize'] = page_size unless page_size.nil?
168
154
  command.query['quotaUser'] = quota_user unless quota_user.nil?
169
155
  command.query['fields'] = fields unless fields.nil?
170
156
  execute_or_queue_command(command, &block)
171
157
  end
172
158
 
173
- # Fetches an Organization resource identified by the specified resource name.
174
- # @param [String] name
175
- # The resource name of the Organization to fetch, e.g. "organizations/1234".
176
- # @param [String] organization_id
177
- # The id of the Organization resource to fetch.
178
- # This field is deprecated and will be removed in v1. Use name instead.
159
+ # Creates a Project resource.
160
+ # Initially, the Project resource is owned by its creator exclusively.
161
+ # The creator can later grant permission to others to read or update the
162
+ # Project.
163
+ # Several APIs are activated automatically for the Project, including
164
+ # Google Cloud Storage.
165
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
166
+ # @param [Boolean] use_legacy_stack
167
+ # A safety hatch to opt out of the new reliable project creation process.
179
168
  # @param [String] quota_user
180
169
  # Available to use for quota purposes for server-side applications. Can be any
181
170
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -185,31 +174,57 @@ module Google
185
174
  # Request-specific options
186
175
  #
187
176
  # @yield [result, err] Result & error if block supplied
188
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
177
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
189
178
  # @yieldparam err [StandardError] error object if request failed
190
179
  #
191
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
180
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
192
181
  #
193
182
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
194
183
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
195
184
  # @raise [Google::Apis::AuthorizationError] Authorization is required
196
- def get_organization(name, organization_id: nil, quota_user: nil, fields: nil, options: nil, &block)
197
- command = make_simple_command(:get, 'v1beta1/{+name}', options)
198
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
199
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
200
- command.params['name'] = name unless name.nil?
201
- command.query['organizationId'] = organization_id unless organization_id.nil?
185
+ def create_project(project_object = nil, use_legacy_stack: nil, quota_user: nil, fields: nil, options: nil, &block)
186
+ command = make_simple_command(:post, 'v1beta1/projects', options)
187
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
188
+ command.request_object = project_object
189
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
190
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
191
+ command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
202
192
  command.query['quotaUser'] = quota_user unless quota_user.nil?
203
193
  command.query['fields'] = fields unless fields.nil?
204
194
  execute_or_queue_command(command, &block)
205
195
  end
206
196
 
207
- # Updates an Organization resource identified by the specified resource name.
208
- # @param [String] name
209
- # Output Only. The resource name of the organization. This is the
210
- # organization's relative path in the API. Its format is
211
- # "organizations/[organization_id]". For example, "organizations/1234".
212
- # @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
197
+ # Sets the IAM access control policy for the specified Project. Replaces
198
+ # any existing policy.
199
+ # The following constraints apply when using `setIamPolicy()`:
200
+ # + Project does not support `allUsers` and `allAuthenticatedUsers` as
201
+ # `members` in a `Binding` of a `Policy`.
202
+ # + The owner role can be granted only to `user` and `serviceAccount`.
203
+ # + Service accounts can be made owners of a project directly
204
+ # without any restrictions. However, to be added as an owner, a user must be
205
+ # invited via Cloud Platform console and must accept the invitation.
206
+ # + A user cannot be granted the owner role using `setIamPolicy()`. The user
207
+ # must be granted the owner role using the Cloud Platform Console and must
208
+ # explicitly accept the invitation.
209
+ # + Invitations to grant the owner role cannot be sent using
210
+ # `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
211
+ # + Membership changes that leave the project without any owners that have
212
+ # accepted the Terms of Service (ToS) will be rejected.
213
+ # + There must be at least one owner who has accepted the Terms of
214
+ # Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
215
+ # remove the last ToS-accepted owner from the policy will fail. This
216
+ # restriction also applies to legacy projects that no longer have owners
217
+ # who have accepted the ToS. Edits to IAM policies will be rejected until
218
+ # the lack of a ToS-accepting owner is rectified.
219
+ # + Calling this method requires enabling the App Engine Admin API.
220
+ # Note: Removing service accounts from policies or changing their roles
221
+ # can render services completely inoperable. It is important to understand
222
+ # how the service account is being used before removing or updating its
223
+ # roles.
224
+ # @param [String] resource
225
+ # REQUIRED: The resource for which the policy is being specified.
226
+ # See the operation documentation for the appropriate value for this field.
227
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
213
228
  # @param [String] quota_user
214
229
  # Available to use for quota purposes for server-side applications. Can be any
215
230
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -219,33 +234,32 @@ module Google
219
234
  # Request-specific options
220
235
  #
221
236
  # @yield [result, err] Result & error if block supplied
222
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
237
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
223
238
  # @yieldparam err [StandardError] error object if request failed
224
239
  #
225
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
240
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
226
241
  #
227
242
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
228
243
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
229
244
  # @raise [Google::Apis::AuthorizationError] Authorization is required
230
- def update_organization(name, organization_object = nil, quota_user: nil, fields: nil, options: nil, &block)
231
- command = make_simple_command(:put, 'v1beta1/{+name}', options)
232
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
233
- command.request_object = organization_object
234
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
235
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
236
- command.params['name'] = name unless name.nil?
245
+ def set_project_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
246
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
247
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
248
+ command.request_object = set_iam_policy_request_object
249
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
250
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
251
+ command.params['resource'] = resource unless resource.nil?
237
252
  command.query['quotaUser'] = quota_user unless quota_user.nil?
238
253
  command.query['fields'] = fields unless fields.nil?
239
254
  execute_or_queue_command(command, &block)
240
255
  end
241
256
 
242
- # Returns permissions that a caller has on the specified Organization.
243
- # The `resource` field should be the organization's resource name,
244
- # e.g. "organizations/123".
257
+ # Returns the IAM access control policy for the specified Project.
258
+ # Permission is denied if the policy or the resource does not exist.
245
259
  # @param [String] resource
246
- # REQUIRED: The resource for which the policy detail is being requested.
260
+ # REQUIRED: The resource for which the policy is being requested.
247
261
  # See the operation documentation for the appropriate value for this field.
248
- # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
262
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
249
263
  # @param [String] quota_user
250
264
  # Available to use for quota purposes for server-side applications. Can be any
251
265
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -255,57 +269,36 @@ module Google
255
269
  # Request-specific options
256
270
  #
257
271
  # @yield [result, err] Result & error if block supplied
258
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
272
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
259
273
  # @yieldparam err [StandardError] error object if request failed
260
274
  #
261
- # @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
275
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
262
276
  #
263
277
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
264
278
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
265
279
  # @raise [Google::Apis::AuthorizationError] Authorization is required
266
- def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
267
- command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
268
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
269
- command.request_object = test_iam_permissions_request_object
270
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
271
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
280
+ def get_project_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
281
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
282
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
283
+ command.request_object = get_iam_policy_request_object
284
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
285
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
272
286
  command.params['resource'] = resource unless resource.nil?
273
287
  command.query['quotaUser'] = quota_user unless quota_user.nil?
274
288
  command.query['fields'] = fields unless fields.nil?
275
289
  execute_or_queue_command(command, &block)
276
290
  end
277
291
 
278
- # Sets the IAM access control policy for the specified Project. Replaces
279
- # any existing policy.
280
- # The following constraints apply when using `setIamPolicy()`:
281
- # + Project does not support `allUsers` and `allAuthenticatedUsers` as
282
- # `members` in a `Binding` of a `Policy`.
283
- # + The owner role can be granted only to `user` and `serviceAccount`.
284
- # + Service accounts can be made owners of a project directly
285
- # without any restrictions. However, to be added as an owner, a user must be
286
- # invited via Cloud Platform console and must accept the invitation.
287
- # + A user cannot be granted the owner role using `setIamPolicy()`. The user
288
- # must be granted the owner role using the Cloud Platform Console and must
289
- # explicitly accept the invitation.
290
- # + Invitations to grant the owner role cannot be sent using
291
- # `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
292
- # + Membership changes that leave the project without any owners that have
293
- # accepted the Terms of Service (ToS) will be rejected.
294
- # + There must be at least one owner who has accepted the Terms of
295
- # Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
296
- # remove the last ToS-accepted owner from the policy will fail. This
297
- # restriction also applies to legacy projects that no longer have owners
298
- # who have accepted the ToS. Edits to IAM policies will be rejected until
299
- # the lack of a ToS-accepting owner is rectified.
300
- # + Calling this method requires enabling the App Engine Admin API.
301
- # Note: Removing service accounts from policies or changing their roles
302
- # can render services completely inoperable. It is important to understand
303
- # how the service account is being used before removing or updating its
304
- # roles.
305
- # @param [String] resource
306
- # REQUIRED: The resource for which the policy is being specified.
307
- # See the operation documentation for the appropriate value for this field.
308
- # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
292
+ # Restores the Project identified by the specified
293
+ # `project_id` (for example, `my-project-123`).
294
+ # You can only use this method for a Project that has a lifecycle state of
295
+ # DELETE_REQUESTED.
296
+ # After deletion starts, the Project cannot be restored.
297
+ # The caller must have modify permissions for this Project.
298
+ # @param [String] project_id
299
+ # The project ID (for example, `foo-bar-123`).
300
+ # Required.
301
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
309
302
  # @param [String] quota_user
310
303
  # Available to use for quota purposes for server-side applications. Can be any
311
304
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -315,35 +308,32 @@ module Google
315
308
  # Request-specific options
316
309
  #
317
310
  # @yield [result, err] Result & error if block supplied
318
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
311
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
319
312
  # @yieldparam err [StandardError] error object if request failed
320
313
  #
321
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
314
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
322
315
  #
323
316
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
324
317
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
325
318
  # @raise [Google::Apis::AuthorizationError] Authorization is required
326
- def set_project_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
327
- command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
328
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
329
- command.request_object = set_iam_policy_request_object
330
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
331
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
332
- command.params['resource'] = resource unless resource.nil?
319
+ def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
320
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
321
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
322
+ command.request_object = undelete_project_request_object
323
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
324
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
325
+ command.params['projectId'] = project_id unless project_id.nil?
333
326
  command.query['quotaUser'] = quota_user unless quota_user.nil?
334
327
  command.query['fields'] = fields unless fields.nil?
335
328
  execute_or_queue_command(command, &block)
336
329
  end
337
330
 
338
- # Creates a Project resource.
339
- # Initially, the Project resource is owned by its creator exclusively.
340
- # The creator can later grant permission to others to read or update the
341
- # Project.
342
- # Several APIs are activated automatically for the Project, including
343
- # Google Cloud Storage.
344
- # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
345
- # @param [Boolean] use_legacy_stack
346
- # A safety hatch to opt out of the new reliable project creation process.
331
+ # Retrieves the Project identified by the specified
332
+ # `project_id` (for example, `my-project-123`).
333
+ # The caller must have read permissions for this Project.
334
+ # @param [String] project_id
335
+ # The Project ID (for example, `my-project-123`).
336
+ # Required.
347
337
  # @param [String] quota_user
348
338
  # Available to use for quota purposes for server-side applications. Can be any
349
339
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -361,24 +351,23 @@ module Google
361
351
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
362
352
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
363
353
  # @raise [Google::Apis::AuthorizationError] Authorization is required
364
- def create_project(project_object = nil, use_legacy_stack: nil, quota_user: nil, fields: nil, options: nil, &block)
365
- command = make_simple_command(:post, 'v1beta1/projects', options)
366
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
367
- command.request_object = project_object
354
+ def get_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
355
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
368
356
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
369
357
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
370
- command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
358
+ command.params['projectId'] = project_id unless project_id.nil?
371
359
  command.query['quotaUser'] = quota_user unless quota_user.nil?
372
360
  command.query['fields'] = fields unless fields.nil?
373
361
  execute_or_queue_command(command, &block)
374
362
  end
375
363
 
376
- # Returns the IAM access control policy for the specified Project.
377
- # Permission is denied if the policy or the resource does not exist.
378
- # @param [String] resource
379
- # REQUIRED: The resource for which the policy is being requested.
380
- # See the operation documentation for the appropriate value for this field.
381
- # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
364
+ # Gets a list of ancestors in the resource hierarchy for the Project
365
+ # identified by the specified `project_id` (for example, `my-project-123`).
366
+ # The caller must have read permissions for this Project.
367
+ # @param [String] project_id
368
+ # The Project ID (for example, `my-project-123`).
369
+ # Required.
370
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
382
371
  # @param [String] quota_user
383
372
  # Available to use for quota purposes for server-side applications. Can be any
384
373
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -388,32 +377,33 @@ module Google
388
377
  # Request-specific options
389
378
  #
390
379
  # @yield [result, err] Result & error if block supplied
391
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
380
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
392
381
  # @yieldparam err [StandardError] error object if request failed
393
382
  #
394
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
383
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
395
384
  #
396
385
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
397
386
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
398
387
  # @raise [Google::Apis::AuthorizationError] Authorization is required
399
- def get_project_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
400
- command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
401
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
402
- command.request_object = get_iam_policy_request_object
403
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
404
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
405
- command.params['resource'] = resource unless resource.nil?
388
+ def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
389
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
390
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
391
+ command.request_object = get_ancestry_request_object
392
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
393
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
394
+ command.params['projectId'] = project_id unless project_id.nil?
406
395
  command.query['quotaUser'] = quota_user unless quota_user.nil?
407
396
  command.query['fields'] = fields unless fields.nil?
408
397
  execute_or_queue_command(command, &block)
409
398
  end
410
399
 
411
- # Retrieves the Project identified by the specified
400
+ # Updates the attributes of the Project identified by the specified
412
401
  # `project_id` (for example, `my-project-123`).
413
- # The caller must have read permissions for this Project.
402
+ # The caller must have modify permissions for this Project.
414
403
  # @param [String] project_id
415
- # The Project ID (for example, `my-project-123`).
404
+ # The project ID (for example, `my-project-123`).
416
405
  # Required.
406
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
417
407
  # @param [String] quota_user
418
408
  # Available to use for quota purposes for server-side applications. Can be any
419
409
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -431,8 +421,10 @@ module Google
431
421
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
432
422
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
433
423
  # @raise [Google::Apis::AuthorizationError] Authorization is required
434
- def get_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
435
- command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
424
+ def update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
425
+ command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
426
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
427
+ command.request_object = project_object
436
428
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
437
429
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
438
430
  command.params['projectId'] = project_id unless project_id.nil?
@@ -441,16 +433,11 @@ module Google
441
433
  execute_or_queue_command(command, &block)
442
434
  end
443
435
 
444
- # Restores the Project identified by the specified
445
- # `project_id` (for example, `my-project-123`).
446
- # You can only use this method for a Project that has a lifecycle state of
447
- # DELETE_REQUESTED.
448
- # After deletion starts, the Project cannot be restored.
449
- # The caller must have modify permissions for this Project.
450
- # @param [String] project_id
451
- # The project ID (for example, `foo-bar-123`).
452
- # Required.
453
- # @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
436
+ # Returns permissions that a caller has on the specified Project.
437
+ # @param [String] resource
438
+ # REQUIRED: The resource for which the policy detail is being requested.
439
+ # See the operation documentation for the appropriate value for this field.
440
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
454
441
  # @param [String] quota_user
455
442
  # Available to use for quota purposes for server-side applications. Can be any
456
443
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -460,33 +447,33 @@ module Google
460
447
  # Request-specific options
461
448
  #
462
449
  # @yield [result, err] Result & error if block supplied
463
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
450
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
464
451
  # @yieldparam err [StandardError] error object if request failed
465
452
  #
466
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
453
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
467
454
  #
468
455
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
469
456
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
470
457
  # @raise [Google::Apis::AuthorizationError] Authorization is required
471
- def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
472
- command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
473
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
474
- command.request_object = undelete_project_request_object
475
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
476
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
477
- command.params['projectId'] = project_id unless project_id.nil?
458
+ def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
459
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
460
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
461
+ command.request_object = test_iam_permissions_request_object
462
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
463
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
464
+ command.params['resource'] = resource unless resource.nil?
478
465
  command.query['quotaUser'] = quota_user unless quota_user.nil?
479
466
  command.query['fields'] = fields unless fields.nil?
480
467
  execute_or_queue_command(command, &block)
481
468
  end
482
469
 
483
- # Updates the attributes of the Project identified by the specified
484
- # `project_id` (for example, `my-project-123`).
485
- # The caller must have modify permissions for this Project.
486
- # @param [String] project_id
487
- # The project ID (for example, `my-project-123`).
488
- # Required.
489
- # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
470
+ # Gets the access control policy for an Organization resource. May be empty
471
+ # if no such policy or resource exists. The `resource` field should be the
472
+ # organization's resource name, e.g. "organizations/123".
473
+ # @param [String] resource
474
+ # REQUIRED: The resource for which the policy is being requested.
475
+ # See the operation documentation for the appropriate value for this field.
476
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
490
477
  # @param [String] quota_user
491
478
  # Available to use for quota purposes for server-side applications. Can be any
492
479
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -496,33 +483,32 @@ module Google
496
483
  # Request-specific options
497
484
  #
498
485
  # @yield [result, err] Result & error if block supplied
499
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
486
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
500
487
  # @yieldparam err [StandardError] error object if request failed
501
488
  #
502
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
489
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
503
490
  #
504
491
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
505
492
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
506
493
  # @raise [Google::Apis::AuthorizationError] Authorization is required
507
- def update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
508
- command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
509
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
510
- command.request_object = project_object
511
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
512
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
513
- command.params['projectId'] = project_id unless project_id.nil?
494
+ def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
495
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
496
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
497
+ command.request_object = get_iam_policy_request_object
498
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
499
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
500
+ command.params['resource'] = resource unless resource.nil?
514
501
  command.query['quotaUser'] = quota_user unless quota_user.nil?
515
502
  command.query['fields'] = fields unless fields.nil?
516
503
  execute_or_queue_command(command, &block)
517
504
  end
518
505
 
519
- # Gets a list of ancestors in the resource hierarchy for the Project
520
- # identified by the specified `project_id` (for example, `my-project-123`).
521
- # The caller must have read permissions for this Project.
522
- # @param [String] project_id
523
- # The Project ID (for example, `my-project-123`).
524
- # Required.
525
- # @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
506
+ # Fetches an Organization resource identified by the specified resource name.
507
+ # @param [String] name
508
+ # The resource name of the Organization to fetch, e.g. "organizations/1234".
509
+ # @param [String] organization_id
510
+ # The id of the Organization resource to fetch.
511
+ # This field is deprecated and will be removed in v1. Use name instead.
526
512
  # @param [String] quota_user
527
513
  # Available to use for quota purposes for server-side applications. Can be any
528
514
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -532,27 +518,63 @@ module Google
532
518
  # Request-specific options
533
519
  #
534
520
  # @yield [result, err] Result & error if block supplied
535
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
521
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
536
522
  # @yieldparam err [StandardError] error object if request failed
537
523
  #
538
- # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
524
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
539
525
  #
540
526
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
541
527
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
542
528
  # @raise [Google::Apis::AuthorizationError] Authorization is required
543
- def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
544
- command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
545
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
546
- command.request_object = get_ancestry_request_object
547
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
548
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
549
- command.params['projectId'] = project_id unless project_id.nil?
529
+ def get_organization(name, organization_id: nil, quota_user: nil, fields: nil, options: nil, &block)
530
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
531
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
532
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
533
+ command.params['name'] = name unless name.nil?
534
+ command.query['organizationId'] = organization_id unless organization_id.nil?
550
535
  command.query['quotaUser'] = quota_user unless quota_user.nil?
551
536
  command.query['fields'] = fields unless fields.nil?
552
537
  execute_or_queue_command(command, &block)
553
538
  end
554
539
 
555
- # Returns permissions that a caller has on the specified Project.
540
+ # Updates an Organization resource identified by the specified resource name.
541
+ # @param [String] name
542
+ # Output Only. The resource name of the organization. This is the
543
+ # organization's relative path in the API. Its format is
544
+ # "organizations/[organization_id]". For example, "organizations/1234".
545
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
546
+ # @param [String] quota_user
547
+ # Available to use for quota purposes for server-side applications. Can be any
548
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
549
+ # @param [String] fields
550
+ # Selector specifying which fields to include in a partial response.
551
+ # @param [Google::Apis::RequestOptions] options
552
+ # Request-specific options
553
+ #
554
+ # @yield [result, err] Result & error if block supplied
555
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
556
+ # @yieldparam err [StandardError] error object if request failed
557
+ #
558
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
559
+ #
560
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
561
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
562
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
563
+ def update_organization(name, organization_object = nil, quota_user: nil, fields: nil, options: nil, &block)
564
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
565
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
566
+ command.request_object = organization_object
567
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
568
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
569
+ command.params['name'] = name unless name.nil?
570
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
571
+ command.query['fields'] = fields unless fields.nil?
572
+ execute_or_queue_command(command, &block)
573
+ end
574
+
575
+ # Returns permissions that a caller has on the specified Organization.
576
+ # The `resource` field should be the organization's resource name,
577
+ # e.g. "organizations/123".
556
578
  # @param [String] resource
557
579
  # REQUIRED: The resource for which the policy detail is being requested.
558
580
  # See the operation documentation for the appropriate value for this field.
@@ -574,8 +596,8 @@ module Google
574
596
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
575
597
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
576
598
  # @raise [Google::Apis::AuthorizationError] Authorization is required
577
- def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
578
- command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
599
+ def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
600
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
579
601
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
580
602
  command.request_object = test_iam_permissions_request_object
581
603
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
@@ -586,28 +608,27 @@ module Google
586
608
  execute_or_queue_command(command, &block)
587
609
  end
588
610
 
589
- # Marks the Project identified by the specified
590
- # `project_id` (for example, `my-project-123`) for deletion.
591
- # This method will only affect the Project if the following criteria are met:
592
- # + The Project does not have a billing account associated with it.
593
- # + The Project has a lifecycle state of
594
- # ACTIVE.
595
- # This method changes the Project's lifecycle state from
596
- # ACTIVE
597
- # to DELETE_REQUESTED.
598
- # The deletion starts at an unspecified time, at which point the project is
599
- # no longer accessible.
600
- # Until the deletion completes, you can check the lifecycle state
601
- # checked by retrieving the Project with GetProject,
602
- # and the Project remains visible to ListProjects.
603
- # However, you cannot update the project.
604
- # After the deletion completes, the Project is not retrievable by
605
- # the GetProject and
606
- # ListProjects methods.
607
- # The caller must have modify permissions for this Project.
608
- # @param [String] project_id
609
- # The Project ID (for example, `foo-bar-123`).
610
- # Required.
611
+ # Lists Organization resources that are visible to the user and satisfy
612
+ # the specified filter. This method returns Organizations in an unspecified
613
+ # order. New Organizations do not necessarily appear at the end of the list.
614
+ # @param [String] page_token
615
+ # A pagination token returned from a previous call to `ListOrganizations`
616
+ # that indicates from where listing should continue.
617
+ # This field is optional.
618
+ # @param [Fixnum] page_size
619
+ # The maximum number of Organizations to return in the response.
620
+ # This field is optional.
621
+ # @param [String] filter
622
+ # An optional query string used to filter the Organizations to return in
623
+ # the response. Filter rules are case-insensitive.
624
+ # Organizations may be filtered by `owner.directoryCustomerId` or by
625
+ # `domain`, where the domain is a Google for Work domain, for example:
626
+ # |Filter|Description|
627
+ # |------|-----------|
628
+ # |owner.directorycustomerid:123456789|Organizations with `owner.
629
+ # directory_customer_id` equal to `123456789`.|
630
+ # |domain:google.com|Organizations corresponding to the domain `google.com`.|
631
+ # This field is optional.
611
632
  # @param [String] quota_user
612
633
  # Available to use for quota purposes for server-side applications. Can be any
613
634
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -617,54 +638,33 @@ module Google
617
638
  # Request-specific options
618
639
  #
619
640
  # @yield [result, err] Result & error if block supplied
620
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
641
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
621
642
  # @yieldparam err [StandardError] error object if request failed
622
643
  #
623
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
644
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
624
645
  #
625
646
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
626
647
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
627
648
  # @raise [Google::Apis::AuthorizationError] Authorization is required
628
- def delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
629
- command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
630
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
631
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
632
- command.params['projectId'] = project_id unless project_id.nil?
649
+ def list_organizations(page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
650
+ command = make_simple_command(:get, 'v1beta1/organizations', options)
651
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
652
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
653
+ command.query['pageToken'] = page_token unless page_token.nil?
654
+ command.query['pageSize'] = page_size unless page_size.nil?
655
+ command.query['filter'] = filter unless filter.nil?
633
656
  command.query['quotaUser'] = quota_user unless quota_user.nil?
634
657
  command.query['fields'] = fields unless fields.nil?
635
658
  execute_or_queue_command(command, &block)
636
659
  end
637
660
 
638
- # Lists Projects that are visible to the user and satisfy the
639
- # specified filter. This method returns Projects in an unspecified order.
640
- # New Projects do not necessarily appear at the end of the list.
641
- # @param [String] page_token
642
- # A pagination token returned from a previous call to ListProjects
643
- # that indicates from where listing should continue.
644
- # Optional.
645
- # @param [Fixnum] page_size
646
- # The maximum number of Projects to return in the response.
647
- # The server can return fewer Projects than requested.
648
- # If unspecified, server picks an appropriate default.
649
- # Optional.
650
- # @param [String] filter
651
- # An expression for filtering the results of the request. Filter rules are
652
- # case insensitive. The fields eligible for filtering are:
653
- # + `name`
654
- # + `id`
655
- # + <code>labels.<em>key</em></code> where *key* is the name of a label
656
- # Some examples of using labels as filters:
657
- # |Filter|Description|
658
- # |------|-----------|
659
- # |name:how*|The project's name starts with "how".|
660
- # |name:Howl|The project's name is `Howl` or `howl`.|
661
- # |name:HOWL|Equivalent to above.|
662
- # |NAME:howl|Equivalent to above.|
663
- # |labels.color:*|The project has the label `color`.|
664
- # |labels.color:red|The project's label `color` has the value `red`.|
665
- # |labels.color:red&nbsp;labels.size:big|The project's label `color` has the
666
- # value `red` and its label `size` has the value `big`.
667
- # Optional.
661
+ # Sets the access control policy on an Organization resource. Replaces any
662
+ # existing policy. The `resource` field should be the organization's resource
663
+ # name, e.g. "organizations/123".
664
+ # @param [String] resource
665
+ # REQUIRED: The resource for which the policy is being specified.
666
+ # See the operation documentation for the appropriate value for this field.
667
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
668
668
  # @param [String] quota_user
669
669
  # Available to use for quota purposes for server-side applications. Can be any
670
670
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -674,21 +674,21 @@ module Google
674
674
  # Request-specific options
675
675
  #
676
676
  # @yield [result, err] Result & error if block supplied
677
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
677
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
678
678
  # @yieldparam err [StandardError] error object if request failed
679
679
  #
680
- # @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
680
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
681
681
  #
682
682
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
683
683
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
684
684
  # @raise [Google::Apis::AuthorizationError] Authorization is required
685
- def list_projects(page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
686
- command = make_simple_command(:get, 'v1beta1/projects', options)
687
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
688
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
689
- command.query['pageToken'] = page_token unless page_token.nil?
690
- command.query['pageSize'] = page_size unless page_size.nil?
691
- command.query['filter'] = filter unless filter.nil?
685
+ def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
686
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
687
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
688
+ command.request_object = set_iam_policy_request_object
689
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
690
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
691
+ command.params['resource'] = resource unless resource.nil?
692
692
  command.query['quotaUser'] = quota_user unless quota_user.nil?
693
693
  command.query['fields'] = fields unless fields.nil?
694
694
  execute_or_queue_command(command, &block)