google-api-client 0.13.2 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -48,107 +48,71 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Lists all the `Policies` set for a particular resource.
51
+ # Clears a `Policy` from a resource.
52
52
  # @param [String] resource
53
- # Name of the resource to list Policies for.
54
- # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
55
- # @param [String] quota_user
56
- # Available to use for quota purposes for server-side applications. Can be any
57
- # arbitrary string assigned to a user, but should not exceed 40 characters.
53
+ # Name of the resource for the `Policy` to clear.
54
+ # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
58
55
  # @param [String] fields
59
56
  # Selector specifying which fields to include in a partial response.
60
- # @param [Google::Apis::RequestOptions] options
61
- # Request-specific options
62
- #
63
- # @yield [result, err] Result & error if block supplied
64
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
65
- # @yieldparam err [StandardError] error object if request failed
66
- #
67
- # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
68
- #
69
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
- # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def list_organization_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
73
- command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
74
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
75
- command.request_object = list_org_policies_request_object
76
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
77
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
78
- command.params['resource'] = resource unless resource.nil?
79
- command.query['quotaUser'] = quota_user unless quota_user.nil?
80
- command.query['fields'] = fields unless fields.nil?
81
- execute_or_queue_command(command, &block)
82
- end
83
-
84
- # Lists `Constraints` that could be applied on the specified resource.
85
- # @param [String] resource
86
- # Name of the resource to list `Constraints` for.
87
- # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
88
57
  # @param [String] quota_user
89
58
  # Available to use for quota purposes for server-side applications. Can be any
90
59
  # arbitrary string assigned to a user, but should not exceed 40 characters.
91
- # @param [String] fields
92
- # Selector specifying which fields to include in a partial response.
93
60
  # @param [Google::Apis::RequestOptions] options
94
61
  # Request-specific options
95
62
  #
96
63
  # @yield [result, err] Result & error if block supplied
97
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
64
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
98
65
  # @yieldparam err [StandardError] error object if request failed
99
66
  #
100
- # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
67
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
101
68
  #
102
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
103
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
104
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
105
- def list_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
106
- command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
107
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
108
- command.request_object = list_available_org_policy_constraints_request_object
109
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
110
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
72
+ def clear_folder_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
74
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
75
+ command.request_object = clear_org_policy_request_object
76
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
77
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
111
78
  command.params['resource'] = resource unless resource.nil?
112
- command.query['quotaUser'] = quota_user unless quota_user.nil?
113
79
  command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
114
81
  execute_or_queue_command(command, &block)
115
82
  end
116
83
 
117
- # Gets the access control policy for an Organization resource. May be empty
118
- # if no such policy or resource exists. The `resource` field should be the
119
- # organization's resource name, e.g. "organizations/123".
120
- # Authorization requires the Google IAM permission
121
- # `resourcemanager.organizations.getIamPolicy` on the specified organization
84
+ # Gets the effective `Policy` on a resource. This is the result of merging
85
+ # `Policies` in the resource hierarchy. The returned `Policy` will not have
86
+ # an `etag`set because it is a computed `Policy` across multiple resources.
122
87
  # @param [String] resource
123
- # REQUIRED: The resource for which the policy is being requested.
124
- # See the operation documentation for the appropriate value for this field.
125
- # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
88
+ # The name of the resource to start computing the effective `Policy`.
89
+ # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
126
92
  # @param [String] quota_user
127
93
  # Available to use for quota purposes for server-side applications. Can be any
128
94
  # arbitrary string assigned to a user, but should not exceed 40 characters.
129
- # @param [String] fields
130
- # Selector specifying which fields to include in a partial response.
131
95
  # @param [Google::Apis::RequestOptions] options
132
96
  # Request-specific options
133
97
  #
134
98
  # @yield [result, err] Result & error if block supplied
135
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
99
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
136
100
  # @yieldparam err [StandardError] error object if request failed
137
101
  #
138
- # @return [Google::Apis::CloudresourcemanagerV1::Policy]
102
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
139
103
  #
140
104
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
141
105
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
142
106
  # @raise [Google::Apis::AuthorizationError] Authorization is required
143
- def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
144
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
145
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
146
- command.request_object = get_iam_policy_request_object
147
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
148
- command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
107
+ def get_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
109
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
110
+ command.request_object = get_effective_org_policy_request_object
111
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
112
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
149
113
  command.params['resource'] = resource unless resource.nil?
150
- command.query['quotaUser'] = quota_user unless quota_user.nil?
151
114
  command.query['fields'] = fields unless fields.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
152
116
  execute_or_queue_command(command, &block)
153
117
  end
154
118
 
@@ -160,11 +124,11 @@ module Google
160
124
  # @param [String] resource
161
125
  # Name of the resource the `Policy` is set on.
162
126
  # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
127
+ # @param [String] fields
128
+ # Selector specifying which fields to include in a partial response.
163
129
  # @param [String] quota_user
164
130
  # Available to use for quota purposes for server-side applications. Can be any
165
131
  # arbitrary string assigned to a user, but should not exceed 40 characters.
166
- # @param [String] fields
167
- # Selector specifying which fields to include in a partial response.
168
132
  # @param [Google::Apis::RequestOptions] options
169
133
  # Request-specific options
170
134
  #
@@ -177,164 +141,165 @@ module Google
177
141
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
178
142
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
179
143
  # @raise [Google::Apis::AuthorizationError] Authorization is required
180
- def get_organization_org_policy(resource, get_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
144
+ def get_folder_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
181
145
  command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
182
146
  command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
183
147
  command.request_object = get_org_policy_request_object
184
148
  command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
185
149
  command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
186
150
  command.params['resource'] = resource unless resource.nil?
187
- command.query['quotaUser'] = quota_user unless quota_user.nil?
188
151
  command.query['fields'] = fields unless fields.nil?
152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
189
153
  execute_or_queue_command(command, &block)
190
154
  end
191
155
 
192
- # Searches Organization resources that are visible to the user and satisfy
193
- # the specified filter. This method returns Organizations in an unspecified
194
- # order. New Organizations do not necessarily appear at the end of the
195
- # results.
196
- # Search will only return organizations on which the user has the permission
197
- # `resourcemanager.organizations.get`
198
- # @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
156
+ # Lists `Constraints` that could be applied on the specified resource.
157
+ # @param [String] resource
158
+ # Name of the resource to list `Constraints` for.
159
+ # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
160
+ # @param [String] fields
161
+ # Selector specifying which fields to include in a partial response.
199
162
  # @param [String] quota_user
200
163
  # Available to use for quota purposes for server-side applications. Can be any
201
164
  # arbitrary string assigned to a user, but should not exceed 40 characters.
202
- # @param [String] fields
203
- # Selector specifying which fields to include in a partial response.
204
165
  # @param [Google::Apis::RequestOptions] options
205
166
  # Request-specific options
206
167
  #
207
168
  # @yield [result, err] Result & error if block supplied
208
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
169
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
209
170
  # @yieldparam err [StandardError] error object if request failed
210
171
  #
211
- # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
172
+ # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
212
173
  #
213
174
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
214
175
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
215
176
  # @raise [Google::Apis::AuthorizationError] Authorization is required
216
- def search_organizations(search_organizations_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
217
- command = make_simple_command(:post, 'v1/organizations:search', options)
218
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
219
- command.request_object = search_organizations_request_object
220
- command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
221
- command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
222
- command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ def list_folder_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
178
+ command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
179
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
180
+ command.request_object = list_available_org_policy_constraints_request_object
181
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
182
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
183
+ command.params['resource'] = resource unless resource.nil?
223
184
  command.query['fields'] = fields unless fields.nil?
185
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
224
186
  execute_or_queue_command(command, &block)
225
187
  end
226
188
 
227
- # Gets the effective `Policy` on a resource. This is the result of merging
228
- # `Policies` in the resource hierarchy. The returned `Policy` will not have
229
- # an `etag`set because it is a computed `Policy` across multiple resources.
189
+ # Lists all the `Policies` set for a particular resource.
230
190
  # @param [String] resource
231
- # The name of the resource to start computing the effective `Policy`.
232
- # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
191
+ # Name of the resource to list Policies for.
192
+ # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
193
+ # @param [String] fields
194
+ # Selector specifying which fields to include in a partial response.
233
195
  # @param [String] quota_user
234
196
  # Available to use for quota purposes for server-side applications. Can be any
235
197
  # arbitrary string assigned to a user, but should not exceed 40 characters.
236
- # @param [String] fields
237
- # Selector specifying which fields to include in a partial response.
238
198
  # @param [Google::Apis::RequestOptions] options
239
199
  # Request-specific options
240
200
  #
241
201
  # @yield [result, err] Result & error if block supplied
242
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
202
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
243
203
  # @yieldparam err [StandardError] error object if request failed
244
204
  #
245
- # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
205
+ # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
246
206
  #
247
207
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
248
208
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
249
209
  # @raise [Google::Apis::AuthorizationError] Authorization is required
250
- def get_organization_effective_org_policy(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
251
- command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
252
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
253
- command.request_object = get_effective_org_policy_request_object
254
- command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
255
- command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
210
+ def list_folder_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
211
+ command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
212
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
213
+ command.request_object = list_org_policies_request_object
214
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
215
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
256
216
  command.params['resource'] = resource unless resource.nil?
257
- command.query['quotaUser'] = quota_user unless quota_user.nil?
258
217
  command.query['fields'] = fields unless fields.nil?
218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
259
219
  execute_or_queue_command(command, &block)
260
220
  end
261
221
 
262
- # Fetches an Organization resource identified by the specified resource name.
263
- # @param [String] name
264
- # The resource name of the Organization to fetch, e.g. "organizations/1234".
222
+ # Updates the specified `Policy` on the resource. Creates a new `Policy` for
223
+ # that `Constraint` on the resource if one does not exist.
224
+ # Not supplying an `etag` on the request `Policy` results in an unconditional
225
+ # write of the `Policy`.
226
+ # @param [String] resource
227
+ # Resource name of the resource to attach the `Policy`.
228
+ # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
229
+ # @param [String] fields
230
+ # Selector specifying which fields to include in a partial response.
265
231
  # @param [String] quota_user
266
232
  # Available to use for quota purposes for server-side applications. Can be any
267
233
  # arbitrary string assigned to a user, but should not exceed 40 characters.
268
- # @param [String] fields
269
- # Selector specifying which fields to include in a partial response.
270
234
  # @param [Google::Apis::RequestOptions] options
271
235
  # Request-specific options
272
236
  #
273
237
  # @yield [result, err] Result & error if block supplied
274
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
238
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
275
239
  # @yieldparam err [StandardError] error object if request failed
276
240
  #
277
- # @return [Google::Apis::CloudresourcemanagerV1::Organization]
241
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
278
242
  #
279
243
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280
244
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
245
  # @raise [Google::Apis::AuthorizationError] Authorization is required
282
- def get_organization(name, quota_user: nil, fields: nil, options: nil, &block)
283
- command = make_simple_command(:get, 'v1/{+name}', options)
284
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
285
- command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
286
- command.params['name'] = name unless name.nil?
287
- command.query['quotaUser'] = quota_user unless quota_user.nil?
246
+ def set_folder_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
247
+ command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
248
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
249
+ command.request_object = set_org_policy_request_object
250
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
251
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
252
+ command.params['resource'] = resource unless resource.nil?
288
253
  command.query['fields'] = fields unless fields.nil?
254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
289
255
  execute_or_queue_command(command, &block)
290
256
  end
291
257
 
292
- # Returns permissions that a caller has on the specified Organization.
293
- # The `resource` field should be the organization's resource name,
294
- # e.g. "organizations/123".
295
- # There are no permissions required for making this API call.
296
- # @param [String] resource
297
- # REQUIRED: The resource for which the policy detail is being requested.
298
- # See the operation documentation for the appropriate value for this field.
299
- # @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
258
+ # Create a Lien which applies to the resource denoted by the `parent` field.
259
+ # Callers of this method will require permission on the `parent` resource.
260
+ # For example, applying to `projects/1234` requires permission
261
+ # `resourcemanager.projects.updateLiens`.
262
+ # NOTE: Some resources may limit the number of Liens which may be applied.
263
+ # @param [Google::Apis::CloudresourcemanagerV1::Lien] lien_object
264
+ # @param [String] fields
265
+ # Selector specifying which fields to include in a partial response.
300
266
  # @param [String] quota_user
301
267
  # Available to use for quota purposes for server-side applications. Can be any
302
268
  # arbitrary string assigned to a user, but should not exceed 40 characters.
303
- # @param [String] fields
304
- # Selector specifying which fields to include in a partial response.
305
269
  # @param [Google::Apis::RequestOptions] options
306
270
  # Request-specific options
307
271
  #
308
272
  # @yield [result, err] Result & error if block supplied
309
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
273
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Lien] parsed result object
310
274
  # @yieldparam err [StandardError] error object if request failed
311
275
  #
312
- # @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
276
+ # @return [Google::Apis::CloudresourcemanagerV1::Lien]
313
277
  #
314
278
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
315
279
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
316
280
  # @raise [Google::Apis::AuthorizationError] Authorization is required
317
- def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
318
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
319
- command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
320
- command.request_object = test_iam_permissions_request_object
321
- command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
322
- command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
323
- command.params['resource'] = resource unless resource.nil?
324
- command.query['quotaUser'] = quota_user unless quota_user.nil?
281
+ def create_lien(lien_object = nil, fields: nil, quota_user: nil, options: nil, &block)
282
+ command = make_simple_command(:post, 'v1/liens', options)
283
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
284
+ command.request_object = lien_object
285
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
286
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Lien
325
287
  command.query['fields'] = fields unless fields.nil?
288
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
326
289
  execute_or_queue_command(command, &block)
327
290
  end
328
291
 
329
- # Clears a `Policy` from a resource.
330
- # @param [String] resource
331
- # Name of the resource for the `Policy` to clear.
332
- # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
292
+ # Delete a Lien by `name`.
293
+ # Callers of this method will require permission on the `parent` resource.
294
+ # For example, a Lien with a `parent` of `projects/1234` requires permission
295
+ # `resourcemanager.projects.updateLiens`.
296
+ # @param [String] name
297
+ # The name/identifier of the Lien to delete.
298
+ # @param [String] fields
299
+ # Selector specifying which fields to include in a partial response.
333
300
  # @param [String] quota_user
334
301
  # Available to use for quota purposes for server-side applications. Can be any
335
302
  # arbitrary string assigned to a user, but should not exceed 40 characters.
336
- # @param [String] fields
337
- # Selector specifying which fields to include in a partial response.
338
303
  # @param [Google::Apis::RequestOptions] options
339
304
  # Request-specific options
340
305
  #
@@ -347,89 +312,53 @@ module Google
347
312
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
348
313
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
349
314
  # @raise [Google::Apis::AuthorizationError] Authorization is required
350
- def clear_organization_org_policy(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
351
- command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
352
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
353
- command.request_object = clear_org_policy_request_object
315
+ def delete_lien(name, fields: nil, quota_user: nil, options: nil, &block)
316
+ command = make_simple_command(:delete, 'v1/{+name}', options)
354
317
  command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
355
318
  command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
356
- command.params['resource'] = resource unless resource.nil?
357
- command.query['quotaUser'] = quota_user unless quota_user.nil?
319
+ command.params['name'] = name unless name.nil?
358
320
  command.query['fields'] = fields unless fields.nil?
321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
359
322
  execute_or_queue_command(command, &block)
360
323
  end
361
324
 
362
- # Updates the specified `Policy` on the resource. Creates a new `Policy` for
363
- # that `Constraint` on the resource if one does not exist.
364
- # Not supplying an `etag` on the request `Policy` results in an unconditional
365
- # write of the `Policy`.
366
- # @param [String] resource
367
- # Resource name of the resource to attach the `Policy`.
368
- # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
369
- # @param [String] quota_user
370
- # Available to use for quota purposes for server-side applications. Can be any
371
- # arbitrary string assigned to a user, but should not exceed 40 characters.
372
- # @param [String] fields
373
- # Selector specifying which fields to include in a partial response.
374
- # @param [Google::Apis::RequestOptions] options
375
- # Request-specific options
376
- #
377
- # @yield [result, err] Result & error if block supplied
378
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
379
- # @yieldparam err [StandardError] error object if request failed
380
- #
381
- # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
382
- #
383
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
384
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
385
- # @raise [Google::Apis::AuthorizationError] Authorization is required
386
- def set_organization_org_policy(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
387
- command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
388
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
389
- command.request_object = set_org_policy_request_object
390
- command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
391
- command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
392
- command.params['resource'] = resource unless resource.nil?
393
- command.query['quotaUser'] = quota_user unless quota_user.nil?
394
- command.query['fields'] = fields unless fields.nil?
395
- execute_or_queue_command(command, &block)
396
- end
397
-
398
- # Sets the access control policy on an Organization resource. Replaces any
399
- # existing policy. The `resource` field should be the organization's resource
400
- # name, e.g. "organizations/123".
401
- # Authorization requires the Google IAM permission
402
- # `resourcemanager.organizations.setIamPolicy` on the specified organization
403
- # @param [String] resource
404
- # REQUIRED: The resource for which the policy is being specified.
405
- # See the operation documentation for the appropriate value for this field.
406
- # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
325
+ # List all Liens applied to the `parent` resource.
326
+ # Callers of this method will require permission on the `parent` resource.
327
+ # For example, a Lien with a `parent` of `projects/1234` requires permission
328
+ # `resourcemanager.projects.get`.
329
+ # @param [Fixnum] page_size
330
+ # The maximum number of items to return. This is a suggestion for the server.
331
+ # @param [String] page_token
332
+ # The `next_page_token` value returned from a previous List request, if any.
333
+ # @param [String] parent
334
+ # The name of the resource to list all attached Liens.
335
+ # For example, `projects/1234`.
336
+ # @param [String] fields
337
+ # Selector specifying which fields to include in a partial response.
407
338
  # @param [String] quota_user
408
339
  # Available to use for quota purposes for server-side applications. Can be any
409
340
  # arbitrary string assigned to a user, but should not exceed 40 characters.
410
- # @param [String] fields
411
- # Selector specifying which fields to include in a partial response.
412
341
  # @param [Google::Apis::RequestOptions] options
413
342
  # Request-specific options
414
343
  #
415
344
  # @yield [result, err] Result & error if block supplied
416
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
345
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListLiensResponse] parsed result object
417
346
  # @yieldparam err [StandardError] error object if request failed
418
347
  #
419
- # @return [Google::Apis::CloudresourcemanagerV1::Policy]
348
+ # @return [Google::Apis::CloudresourcemanagerV1::ListLiensResponse]
420
349
  #
421
350
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
422
351
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
423
352
  # @raise [Google::Apis::AuthorizationError] Authorization is required
424
- def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
425
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
426
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
427
- command.request_object = set_iam_policy_request_object
428
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
429
- command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
430
- command.params['resource'] = resource unless resource.nil?
431
- command.query['quotaUser'] = quota_user unless quota_user.nil?
353
+ def list_liens(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
354
+ command = make_simple_command(:get, 'v1/liens', options)
355
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation
356
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse
357
+ command.query['pageSize'] = page_size unless page_size.nil?
358
+ command.query['pageToken'] = page_token unless page_token.nil?
359
+ command.query['parent'] = parent unless parent.nil?
432
360
  command.query['fields'] = fields unless fields.nil?
361
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
433
362
  execute_or_queue_command(command, &block)
434
363
  end
435
364
 
@@ -438,11 +367,11 @@ module Google
438
367
  # service.
439
368
  # @param [String] name
440
369
  # The name of the operation resource.
370
+ # @param [String] fields
371
+ # Selector specifying which fields to include in a partial response.
441
372
  # @param [String] quota_user
442
373
  # Available to use for quota purposes for server-side applications. Can be any
443
374
  # arbitrary string assigned to a user, but should not exceed 40 characters.
444
- # @param [String] fields
445
- # Selector specifying which fields to include in a partial response.
446
375
  # @param [Google::Apis::RequestOptions] options
447
376
  # Request-specific options
448
377
  #
@@ -455,27 +384,25 @@ module Google
455
384
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
456
385
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
457
386
  # @raise [Google::Apis::AuthorizationError] Authorization is required
458
- def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
387
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
459
388
  command = make_simple_command(:get, 'v1/{+name}', options)
460
389
  command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
461
390
  command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
462
391
  command.params['name'] = name unless name.nil?
463
- command.query['quotaUser'] = quota_user unless quota_user.nil?
464
392
  command.query['fields'] = fields unless fields.nil?
393
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
465
394
  execute_or_queue_command(command, &block)
466
395
  end
467
396
 
468
- # Delete a Lien by `name`.
469
- # Callers of this method will require permission on the `parent` resource.
470
- # For example, a Lien with a `parent` of `projects/1234` requires permission
471
- # `resourcemanager.projects.updateLiens`.
472
- # @param [String] name
473
- # The name/identifier of the Lien to delete.
397
+ # Clears a `Policy` from a resource.
398
+ # @param [String] resource
399
+ # Name of the resource for the `Policy` to clear.
400
+ # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
401
+ # @param [String] fields
402
+ # Selector specifying which fields to include in a partial response.
474
403
  # @param [String] quota_user
475
404
  # Available to use for quota purposes for server-side applications. Can be any
476
405
  # arbitrary string assigned to a user, but should not exceed 40 characters.
477
- # @param [String] fields
478
- # Selector specifying which fields to include in a partial response.
479
406
  # @param [Google::Apis::RequestOptions] options
480
407
  # Request-specific options
481
408
  #
@@ -488,135 +415,134 @@ module Google
488
415
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
489
416
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
490
417
  # @raise [Google::Apis::AuthorizationError] Authorization is required
491
- def delete_lien(name, quota_user: nil, fields: nil, options: nil, &block)
492
- command = make_simple_command(:delete, 'v1/{+name}', options)
418
+ def clear_organization_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
419
+ command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
420
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
421
+ command.request_object = clear_org_policy_request_object
493
422
  command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
494
423
  command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
495
- command.params['name'] = name unless name.nil?
496
- command.query['quotaUser'] = quota_user unless quota_user.nil?
424
+ command.params['resource'] = resource unless resource.nil?
497
425
  command.query['fields'] = fields unless fields.nil?
426
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
498
427
  execute_or_queue_command(command, &block)
499
428
  end
500
429
 
501
- # List all Liens applied to the `parent` resource.
502
- # Callers of this method will require permission on the `parent` resource.
503
- # For example, a Lien with a `parent` of `projects/1234` requires permission
504
- # `resourcemanager.projects.get`.
505
- # @param [String] parent
506
- # The name of the resource to list all attached Liens.
507
- # For example, `projects/1234`.
508
- # @param [String] page_token
509
- # The `next_page_token` value returned from a previous List request, if any.
510
- # @param [Fixnum] page_size
511
- # The maximum number of items to return. This is a suggestion for the server.
430
+ # Fetches an Organization resource identified by the specified resource name.
431
+ # @param [String] name
432
+ # The resource name of the Organization to fetch, e.g. "organizations/1234".
433
+ # @param [String] fields
434
+ # Selector specifying which fields to include in a partial response.
512
435
  # @param [String] quota_user
513
436
  # Available to use for quota purposes for server-side applications. Can be any
514
437
  # arbitrary string assigned to a user, but should not exceed 40 characters.
515
- # @param [String] fields
516
- # Selector specifying which fields to include in a partial response.
517
438
  # @param [Google::Apis::RequestOptions] options
518
439
  # Request-specific options
519
440
  #
520
441
  # @yield [result, err] Result & error if block supplied
521
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListLiensResponse] parsed result object
442
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
522
443
  # @yieldparam err [StandardError] error object if request failed
523
444
  #
524
- # @return [Google::Apis::CloudresourcemanagerV1::ListLiensResponse]
445
+ # @return [Google::Apis::CloudresourcemanagerV1::Organization]
525
446
  #
526
447
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
527
448
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
528
449
  # @raise [Google::Apis::AuthorizationError] Authorization is required
529
- def list_liens(parent: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
530
- command = make_simple_command(:get, 'v1/liens', options)
531
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation
532
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse
533
- command.query['parent'] = parent unless parent.nil?
534
- command.query['pageToken'] = page_token unless page_token.nil?
535
- command.query['pageSize'] = page_size unless page_size.nil?
536
- command.query['quotaUser'] = quota_user unless quota_user.nil?
450
+ def get_organization(name, fields: nil, quota_user: nil, options: nil, &block)
451
+ command = make_simple_command(:get, 'v1/{+name}', options)
452
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
453
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
454
+ command.params['name'] = name unless name.nil?
537
455
  command.query['fields'] = fields unless fields.nil?
456
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
538
457
  execute_or_queue_command(command, &block)
539
458
  end
540
459
 
541
- # Create a Lien which applies to the resource denoted by the `parent` field.
542
- # Callers of this method will require permission on the `parent` resource.
543
- # For example, applying to `projects/1234` requires permission
544
- # `resourcemanager.projects.updateLiens`.
545
- # NOTE: Some resources may limit the number of Liens which may be applied.
546
- # @param [Google::Apis::CloudresourcemanagerV1::Lien] lien_object
460
+ # Gets the effective `Policy` on a resource. This is the result of merging
461
+ # `Policies` in the resource hierarchy. The returned `Policy` will not have
462
+ # an `etag`set because it is a computed `Policy` across multiple resources.
463
+ # @param [String] resource
464
+ # The name of the resource to start computing the effective `Policy`.
465
+ # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
466
+ # @param [String] fields
467
+ # Selector specifying which fields to include in a partial response.
547
468
  # @param [String] quota_user
548
469
  # Available to use for quota purposes for server-side applications. Can be any
549
470
  # arbitrary string assigned to a user, but should not exceed 40 characters.
550
- # @param [String] fields
551
- # Selector specifying which fields to include in a partial response.
552
471
  # @param [Google::Apis::RequestOptions] options
553
472
  # Request-specific options
554
473
  #
555
474
  # @yield [result, err] Result & error if block supplied
556
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Lien] parsed result object
475
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
557
476
  # @yieldparam err [StandardError] error object if request failed
558
477
  #
559
- # @return [Google::Apis::CloudresourcemanagerV1::Lien]
478
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
560
479
  #
561
480
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
562
481
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
563
482
  # @raise [Google::Apis::AuthorizationError] Authorization is required
564
- def create_lien(lien_object = nil, quota_user: nil, fields: nil, options: nil, &block)
565
- command = make_simple_command(:post, 'v1/liens', options)
566
- command.request_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
567
- command.request_object = lien_object
568
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
569
- command.response_class = Google::Apis::CloudresourcemanagerV1::Lien
570
- command.query['quotaUser'] = quota_user unless quota_user.nil?
483
+ def get_organization_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
484
+ command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
485
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
486
+ command.request_object = get_effective_org_policy_request_object
487
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
488
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
489
+ command.params['resource'] = resource unless resource.nil?
571
490
  command.query['fields'] = fields unless fields.nil?
491
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
572
492
  execute_or_queue_command(command, &block)
573
493
  end
574
494
 
575
- # Clears a `Policy` from a resource.
495
+ # Gets the access control policy for an Organization resource. May be empty
496
+ # if no such policy or resource exists. The `resource` field should be the
497
+ # organization's resource name, e.g. "organizations/123".
498
+ # Authorization requires the Google IAM permission
499
+ # `resourcemanager.organizations.getIamPolicy` on the specified organization
576
500
  # @param [String] resource
577
- # Name of the resource for the `Policy` to clear.
578
- # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
501
+ # REQUIRED: The resource for which the policy is being requested.
502
+ # See the operation documentation for the appropriate value for this field.
503
+ # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
504
+ # @param [String] fields
505
+ # Selector specifying which fields to include in a partial response.
579
506
  # @param [String] quota_user
580
507
  # Available to use for quota purposes for server-side applications. Can be any
581
508
  # arbitrary string assigned to a user, but should not exceed 40 characters.
582
- # @param [String] fields
583
- # Selector specifying which fields to include in a partial response.
584
509
  # @param [Google::Apis::RequestOptions] options
585
510
  # Request-specific options
586
511
  #
587
512
  # @yield [result, err] Result & error if block supplied
588
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
513
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
589
514
  # @yieldparam err [StandardError] error object if request failed
590
515
  #
591
- # @return [Google::Apis::CloudresourcemanagerV1::Empty]
516
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
592
517
  #
593
518
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
594
519
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
595
520
  # @raise [Google::Apis::AuthorizationError] Authorization is required
596
- def clear_folder_org_policy(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
597
- command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
598
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
599
- command.request_object = clear_org_policy_request_object
600
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
601
- command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
521
+ def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
522
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
523
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
524
+ command.request_object = get_iam_policy_request_object
525
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
526
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
602
527
  command.params['resource'] = resource unless resource.nil?
603
- command.query['quotaUser'] = quota_user unless quota_user.nil?
604
528
  command.query['fields'] = fields unless fields.nil?
529
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
605
530
  execute_or_queue_command(command, &block)
606
531
  end
607
532
 
608
- # Updates the specified `Policy` on the resource. Creates a new `Policy` for
609
- # that `Constraint` on the resource if one does not exist.
610
- # Not supplying an `etag` on the request `Policy` results in an unconditional
611
- # write of the `Policy`.
533
+ # Gets a `Policy` on a resource.
534
+ # If no `Policy` is set on the resource, a `Policy` is returned with default
535
+ # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
536
+ # `etag` value can be used with `SetOrgPolicy()` to create or update a
537
+ # `Policy` during read-modify-write.
612
538
  # @param [String] resource
613
- # Resource name of the resource to attach the `Policy`.
614
- # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
539
+ # Name of the resource the `Policy` is set on.
540
+ # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
541
+ # @param [String] fields
542
+ # Selector specifying which fields to include in a partial response.
615
543
  # @param [String] quota_user
616
544
  # Available to use for quota purposes for server-side applications. Can be any
617
545
  # arbitrary string assigned to a user, but should not exceed 40 characters.
618
- # @param [String] fields
619
- # Selector specifying which fields to include in a partial response.
620
546
  # @param [Google::Apis::RequestOptions] options
621
547
  # Request-specific options
622
548
  #
@@ -629,15 +555,15 @@ module Google
629
555
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
630
556
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
631
557
  # @raise [Google::Apis::AuthorizationError] Authorization is required
632
- def set_folder_org_policy(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
633
- command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
634
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
635
- command.request_object = set_org_policy_request_object
558
+ def get_organization_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
559
+ command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
560
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
561
+ command.request_object = get_org_policy_request_object
636
562
  command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
637
563
  command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
638
564
  command.params['resource'] = resource unless resource.nil?
639
- command.query['quotaUser'] = quota_user unless quota_user.nil?
640
565
  command.query['fields'] = fields unless fields.nil?
566
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
641
567
  execute_or_queue_command(command, &block)
642
568
  end
643
569
 
@@ -645,11 +571,11 @@ module Google
645
571
  # @param [String] resource
646
572
  # Name of the resource to list `Constraints` for.
647
573
  # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
574
+ # @param [String] fields
575
+ # Selector specifying which fields to include in a partial response.
648
576
  # @param [String] quota_user
649
577
  # Available to use for quota purposes for server-side applications. Can be any
650
578
  # arbitrary string assigned to a user, but should not exceed 40 characters.
651
- # @param [String] fields
652
- # Selector specifying which fields to include in a partial response.
653
579
  # @param [Google::Apis::RequestOptions] options
654
580
  # Request-specific options
655
581
  #
@@ -662,15 +588,15 @@ module Google
662
588
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
663
589
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
664
590
  # @raise [Google::Apis::AuthorizationError] Authorization is required
665
- def list_folder_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
591
+ def list_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
666
592
  command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
667
593
  command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
668
594
  command.request_object = list_available_org_policy_constraints_request_object
669
595
  command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
670
596
  command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
671
597
  command.params['resource'] = resource unless resource.nil?
672
- command.query['quotaUser'] = quota_user unless quota_user.nil?
673
598
  command.query['fields'] = fields unless fields.nil?
599
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
674
600
  execute_or_queue_command(command, &block)
675
601
  end
676
602
 
@@ -678,11 +604,11 @@ module Google
678
604
  # @param [String] resource
679
605
  # Name of the resource to list Policies for.
680
606
  # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
607
+ # @param [String] fields
608
+ # Selector specifying which fields to include in a partial response.
681
609
  # @param [String] quota_user
682
610
  # Available to use for quota purposes for server-side applications. Can be any
683
611
  # arbitrary string assigned to a user, but should not exceed 40 characters.
684
- # @param [String] fields
685
- # Selector specifying which fields to include in a partial response.
686
612
  # @param [Google::Apis::RequestOptions] options
687
613
  # Request-specific options
688
614
  #
@@ -695,66 +621,103 @@ module Google
695
621
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
696
622
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
697
623
  # @raise [Google::Apis::AuthorizationError] Authorization is required
698
- def list_folder_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
624
+ def list_organization_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
699
625
  command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
700
626
  command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
701
627
  command.request_object = list_org_policies_request_object
702
628
  command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
703
629
  command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
704
630
  command.params['resource'] = resource unless resource.nil?
705
- command.query['quotaUser'] = quota_user unless quota_user.nil?
706
631
  command.query['fields'] = fields unless fields.nil?
632
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
707
633
  execute_or_queue_command(command, &block)
708
634
  end
709
635
 
710
- # Gets a `Policy` on a resource.
711
- # If no `Policy` is set on the resource, a `Policy` is returned with default
712
- # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
713
- # `etag` value can be used with `SetOrgPolicy()` to create or update a
714
- # `Policy` during read-modify-write.
715
- # @param [String] resource
716
- # Name of the resource the `Policy` is set on.
717
- # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
636
+ # Searches Organization resources that are visible to the user and satisfy
637
+ # the specified filter. This method returns Organizations in an unspecified
638
+ # order. New Organizations do not necessarily appear at the end of the
639
+ # results.
640
+ # Search will only return organizations on which the user has the permission
641
+ # `resourcemanager.organizations.get`
642
+ # @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
643
+ # @param [String] fields
644
+ # Selector specifying which fields to include in a partial response.
718
645
  # @param [String] quota_user
719
646
  # Available to use for quota purposes for server-side applications. Can be any
720
647
  # arbitrary string assigned to a user, but should not exceed 40 characters.
721
- # @param [String] fields
722
- # Selector specifying which fields to include in a partial response.
723
648
  # @param [Google::Apis::RequestOptions] options
724
649
  # Request-specific options
725
650
  #
726
651
  # @yield [result, err] Result & error if block supplied
727
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
652
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
728
653
  # @yieldparam err [StandardError] error object if request failed
729
654
  #
730
- # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
655
+ # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
731
656
  #
732
657
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
733
658
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
734
659
  # @raise [Google::Apis::AuthorizationError] Authorization is required
735
- def get_folder_org_policy(resource, get_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
736
- command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
737
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
738
- command.request_object = get_org_policy_request_object
739
- command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
740
- command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
741
- command.params['resource'] = resource unless resource.nil?
742
- command.query['quotaUser'] = quota_user unless quota_user.nil?
743
- command.query['fields'] = fields unless fields.nil?
744
- execute_or_queue_command(command, &block)
660
+ def search_organizations(search_organizations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
661
+ command = make_simple_command(:post, 'v1/organizations:search', options)
662
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
663
+ command.request_object = search_organizations_request_object
664
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
665
+ command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
666
+ command.query['fields'] = fields unless fields.nil?
667
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
668
+ execute_or_queue_command(command, &block)
745
669
  end
746
670
 
747
- # Gets the effective `Policy` on a resource. This is the result of merging
748
- # `Policies` in the resource hierarchy. The returned `Policy` will not have
749
- # an `etag`set because it is a computed `Policy` across multiple resources.
671
+ # Sets the access control policy on an Organization resource. Replaces any
672
+ # existing policy. The `resource` field should be the organization's resource
673
+ # name, e.g. "organizations/123".
674
+ # Authorization requires the Google IAM permission
675
+ # `resourcemanager.organizations.setIamPolicy` on the specified organization
750
676
  # @param [String] resource
751
- # The name of the resource to start computing the effective `Policy`.
752
- # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
677
+ # REQUIRED: The resource for which the policy is being specified.
678
+ # See the operation documentation for the appropriate value for this field.
679
+ # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
680
+ # @param [String] fields
681
+ # Selector specifying which fields to include in a partial response.
753
682
  # @param [String] quota_user
754
683
  # Available to use for quota purposes for server-side applications. Can be any
755
684
  # arbitrary string assigned to a user, but should not exceed 40 characters.
685
+ # @param [Google::Apis::RequestOptions] options
686
+ # Request-specific options
687
+ #
688
+ # @yield [result, err] Result & error if block supplied
689
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
690
+ # @yieldparam err [StandardError] error object if request failed
691
+ #
692
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
693
+ #
694
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
695
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
696
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
697
+ def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
698
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
699
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
700
+ command.request_object = set_iam_policy_request_object
701
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
702
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
703
+ command.params['resource'] = resource unless resource.nil?
704
+ command.query['fields'] = fields unless fields.nil?
705
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
706
+ execute_or_queue_command(command, &block)
707
+ end
708
+
709
+ # Updates the specified `Policy` on the resource. Creates a new `Policy` for
710
+ # that `Constraint` on the resource if one does not exist.
711
+ # Not supplying an `etag` on the request `Policy` results in an unconditional
712
+ # write of the `Policy`.
713
+ # @param [String] resource
714
+ # Resource name of the resource to attach the `Policy`.
715
+ # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
756
716
  # @param [String] fields
757
717
  # Selector specifying which fields to include in a partial response.
718
+ # @param [String] quota_user
719
+ # Available to use for quota purposes for server-side applications. Can be any
720
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
758
721
  # @param [Google::Apis::RequestOptions] options
759
722
  # Request-specific options
760
723
  #
@@ -767,225 +730,242 @@ module Google
767
730
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
768
731
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
769
732
  # @raise [Google::Apis::AuthorizationError] Authorization is required
770
- def get_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
771
- command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
772
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
773
- command.request_object = get_effective_org_policy_request_object
733
+ def set_organization_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
734
+ command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
735
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
736
+ command.request_object = set_org_policy_request_object
774
737
  command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
775
738
  command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
776
739
  command.params['resource'] = resource unless resource.nil?
777
- command.query['quotaUser'] = quota_user unless quota_user.nil?
778
740
  command.query['fields'] = fields unless fields.nil?
741
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
779
742
  execute_or_queue_command(command, &block)
780
743
  end
781
744
 
782
- # Sets the IAM access control policy for the specified Project. Replaces
783
- # any existing policy.
784
- # The following constraints apply when using `setIamPolicy()`:
785
- # + Project does not support `allUsers` and `allAuthenticatedUsers` as
786
- # `members` in a `Binding` of a `Policy`.
787
- # + The owner role can be granted only to `user` and `serviceAccount`.
788
- # + Service accounts can be made owners of a project directly
789
- # without any restrictions. However, to be added as an owner, a user must be
790
- # invited via Cloud Platform console and must accept the invitation.
791
- # + A user cannot be granted the owner role using `setIamPolicy()`. The user
792
- # must be granted the owner role using the Cloud Platform Console and must
793
- # explicitly accept the invitation.
794
- # + Invitations to grant the owner role cannot be sent using
795
- # `setIamPolicy()`;
796
- # they must be sent only using the Cloud Platform Console.
797
- # + Membership changes that leave the project without any owners that have
798
- # accepted the Terms of Service (ToS) will be rejected.
799
- # + If the project is not part of an organization, there must be at least
800
- # one owner who has accepted the Terms of Service (ToS) agreement in the
801
- # policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner
802
- # from the policy will fail. This restriction also applies to legacy
803
- # projects that no longer have owners who have accepted the ToS. Edits to
804
- # IAM policies will be rejected until the lack of a ToS-accepting owner is
805
- # rectified.
806
- # + Calling this method requires enabling the App Engine Admin API.
807
- # Note: Removing service accounts from policies or changing their roles
808
- # can render services completely inoperable. It is important to understand
809
- # how the service account is being used before removing or updating its
810
- # roles.
811
- # Authorization requires the Google IAM permission
812
- # `resourcemanager.projects.setIamPolicy` on the project
745
+ # Returns permissions that a caller has on the specified Organization.
746
+ # The `resource` field should be the organization's resource name,
747
+ # e.g. "organizations/123".
748
+ # There are no permissions required for making this API call.
813
749
  # @param [String] resource
814
- # REQUIRED: The resource for which the policy is being specified.
750
+ # REQUIRED: The resource for which the policy detail is being requested.
815
751
  # See the operation documentation for the appropriate value for this field.
816
- # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
752
+ # @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
753
+ # @param [String] fields
754
+ # Selector specifying which fields to include in a partial response.
817
755
  # @param [String] quota_user
818
756
  # Available to use for quota purposes for server-side applications. Can be any
819
757
  # arbitrary string assigned to a user, but should not exceed 40 characters.
820
- # @param [String] fields
821
- # Selector specifying which fields to include in a partial response.
822
758
  # @param [Google::Apis::RequestOptions] options
823
759
  # Request-specific options
824
760
  #
825
761
  # @yield [result, err] Result & error if block supplied
826
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
762
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
827
763
  # @yieldparam err [StandardError] error object if request failed
828
764
  #
829
- # @return [Google::Apis::CloudresourcemanagerV1::Policy]
765
+ # @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
830
766
  #
831
767
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
832
768
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
833
769
  # @raise [Google::Apis::AuthorizationError] Authorization is required
834
- def set_project_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
835
- command = make_simple_command(:post, 'v1/projects/{resource}:setIamPolicy', options)
836
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
837
- command.request_object = set_iam_policy_request_object
838
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
839
- command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
770
+ def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
771
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
772
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
773
+ command.request_object = test_iam_permissions_request_object
774
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
775
+ command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
840
776
  command.params['resource'] = resource unless resource.nil?
841
- command.query['quotaUser'] = quota_user unless quota_user.nil?
842
777
  command.query['fields'] = fields unless fields.nil?
778
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
843
779
  execute_or_queue_command(command, &block)
844
780
  end
845
781
 
846
- # Lists `Constraints` that could be applied on the specified resource.
782
+ # Clears a `Policy` from a resource.
847
783
  # @param [String] resource
848
- # Name of the resource to list `Constraints` for.
849
- # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
784
+ # Name of the resource for the `Policy` to clear.
785
+ # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
786
+ # @param [String] fields
787
+ # Selector specifying which fields to include in a partial response.
850
788
  # @param [String] quota_user
851
789
  # Available to use for quota purposes for server-side applications. Can be any
852
790
  # arbitrary string assigned to a user, but should not exceed 40 characters.
853
- # @param [String] fields
854
- # Selector specifying which fields to include in a partial response.
855
791
  # @param [Google::Apis::RequestOptions] options
856
792
  # Request-specific options
857
793
  #
858
794
  # @yield [result, err] Result & error if block supplied
859
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
795
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
860
796
  # @yieldparam err [StandardError] error object if request failed
861
797
  #
862
- # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
798
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
863
799
  #
864
800
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
865
801
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
866
802
  # @raise [Google::Apis::AuthorizationError] Authorization is required
867
- def list_project_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
868
- command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
869
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
870
- command.request_object = list_available_org_policy_constraints_request_object
871
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
872
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
803
+ def clear_project_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
804
+ command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
805
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
806
+ command.request_object = clear_org_policy_request_object
807
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
808
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
873
809
  command.params['resource'] = resource unless resource.nil?
874
- command.query['quotaUser'] = quota_user unless quota_user.nil?
875
810
  command.query['fields'] = fields unless fields.nil?
811
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
876
812
  execute_or_queue_command(command, &block)
877
813
  end
878
814
 
879
- # Returns the IAM access control policy for the specified Project.
880
- # Permission is denied if the policy or the resource does not exist.
815
+ # Request that a new Project be created. The result is an Operation which
816
+ # can be used to track the creation process. It is automatically deleted
817
+ # after a few hours, so there is no need to call DeleteOperation.
818
+ # Our SLO permits Project creation to take up to 30 seconds at the 90th
819
+ # percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
820
+ # latency. 95th percentile latency is around 11 seconds. We recommend
821
+ # polling at the 5th second with an exponential backoff.
881
822
  # Authorization requires the Google IAM permission
882
- # `resourcemanager.projects.getIamPolicy` on the project
883
- # @param [String] resource
884
- # REQUIRED: The resource for which the policy is being requested.
885
- # See the operation documentation for the appropriate value for this field.
886
- # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
823
+ # `resourcemanager.projects.create` on the specified parent for the new
824
+ # project.
825
+ # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
826
+ # @param [String] fields
827
+ # Selector specifying which fields to include in a partial response.
887
828
  # @param [String] quota_user
888
829
  # Available to use for quota purposes for server-side applications. Can be any
889
830
  # arbitrary string assigned to a user, but should not exceed 40 characters.
890
- # @param [String] fields
891
- # Selector specifying which fields to include in a partial response.
892
831
  # @param [Google::Apis::RequestOptions] options
893
832
  # Request-specific options
894
833
  #
895
834
  # @yield [result, err] Result & error if block supplied
896
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
835
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
897
836
  # @yieldparam err [StandardError] error object if request failed
898
837
  #
899
- # @return [Google::Apis::CloudresourcemanagerV1::Policy]
838
+ # @return [Google::Apis::CloudresourcemanagerV1::Operation]
900
839
  #
901
840
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
902
841
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
903
842
  # @raise [Google::Apis::AuthorizationError] Authorization is required
904
- def get_project_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
905
- command = make_simple_command(:post, 'v1/projects/{resource}:getIamPolicy', options)
906
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
907
- command.request_object = get_iam_policy_request_object
908
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
909
- command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
910
- command.params['resource'] = resource unless resource.nil?
911
- command.query['quotaUser'] = quota_user unless quota_user.nil?
843
+ def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
844
+ command = make_simple_command(:post, 'v1/projects', options)
845
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
846
+ command.request_object = project_object
847
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
848
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
912
849
  command.query['fields'] = fields unless fields.nil?
850
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
913
851
  execute_or_queue_command(command, &block)
914
852
  end
915
853
 
916
- # Gets a `Policy` on a resource.
917
- # If no `Policy` is set on the resource, a `Policy` is returned with default
918
- # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
919
- # `etag` value can be used with `SetOrgPolicy()` to create or update a
920
- # `Policy` during read-modify-write.
921
- # @param [String] resource
922
- # Name of the resource the `Policy` is set on.
923
- # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
854
+ # Marks the Project identified by the specified
855
+ # `project_id` (for example, `my-project-123`) for deletion.
856
+ # This method will only affect the Project if the following criteria are met:
857
+ # + The Project does not have a billing account associated with it.
858
+ # + The Project has a lifecycle state of
859
+ # ACTIVE.
860
+ # This method changes the Project's lifecycle state from
861
+ # ACTIVE
862
+ # to DELETE_REQUESTED.
863
+ # The deletion starts at an unspecified time,
864
+ # at which point the Project is no longer accessible.
865
+ # Until the deletion completes, you can check the lifecycle state
866
+ # checked by retrieving the Project with GetProject,
867
+ # and the Project remains visible to ListProjects.
868
+ # However, you cannot update the project.
869
+ # After the deletion completes, the Project is not retrievable by
870
+ # the GetProject and
871
+ # ListProjects methods.
872
+ # The caller must have modify permissions for this Project.
873
+ # @param [String] project_id
874
+ # The Project ID (for example, `foo-bar-123`).
875
+ # Required.
876
+ # @param [String] fields
877
+ # Selector specifying which fields to include in a partial response.
924
878
  # @param [String] quota_user
925
879
  # Available to use for quota purposes for server-side applications. Can be any
926
880
  # arbitrary string assigned to a user, but should not exceed 40 characters.
927
- # @param [String] fields
928
- # Selector specifying which fields to include in a partial response.
929
881
  # @param [Google::Apis::RequestOptions] options
930
882
  # Request-specific options
931
883
  #
932
884
  # @yield [result, err] Result & error if block supplied
933
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
885
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
934
886
  # @yieldparam err [StandardError] error object if request failed
935
887
  #
936
- # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
888
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
937
889
  #
938
890
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
939
891
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
940
892
  # @raise [Google::Apis::AuthorizationError] Authorization is required
941
- def get_project_org_policy(resource, get_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
942
- command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
943
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
944
- command.request_object = get_org_policy_request_object
945
- command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
946
- command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
947
- command.params['resource'] = resource unless resource.nil?
948
- command.query['quotaUser'] = quota_user unless quota_user.nil?
893
+ def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
894
+ command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
895
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
896
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
897
+ command.params['projectId'] = project_id unless project_id.nil?
949
898
  command.query['fields'] = fields unless fields.nil?
899
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
950
900
  execute_or_queue_command(command, &block)
951
901
  end
952
902
 
953
- # Restores the Project identified by the specified
903
+ # Retrieves the Project identified by the specified
954
904
  # `project_id` (for example, `my-project-123`).
955
- # You can only use this method for a Project that has a lifecycle state of
956
- # DELETE_REQUESTED.
957
- # After deletion starts, the Project cannot be restored.
958
- # The caller must have modify permissions for this Project.
905
+ # The caller must have read permissions for this Project.
959
906
  # @param [String] project_id
960
- # The project ID (for example, `foo-bar-123`).
907
+ # The Project ID (for example, `my-project-123`).
961
908
  # Required.
962
- # @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
909
+ # @param [String] fields
910
+ # Selector specifying which fields to include in a partial response.
963
911
  # @param [String] quota_user
964
912
  # Available to use for quota purposes for server-side applications. Can be any
965
913
  # arbitrary string assigned to a user, but should not exceed 40 characters.
914
+ # @param [Google::Apis::RequestOptions] options
915
+ # Request-specific options
916
+ #
917
+ # @yield [result, err] Result & error if block supplied
918
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
919
+ # @yieldparam err [StandardError] error object if request failed
920
+ #
921
+ # @return [Google::Apis::CloudresourcemanagerV1::Project]
922
+ #
923
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
924
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
925
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
926
+ def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
927
+ command = make_simple_command(:get, 'v1/projects/{projectId}', options)
928
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
929
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Project
930
+ command.params['projectId'] = project_id unless project_id.nil?
931
+ command.query['fields'] = fields unless fields.nil?
932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
933
+ execute_or_queue_command(command, &block)
934
+ end
935
+
936
+ # Gets a list of ancestors in the resource hierarchy for the Project
937
+ # identified by the specified `project_id` (for example, `my-project-123`).
938
+ # The caller must have read permissions for this Project.
939
+ # @param [String] project_id
940
+ # The Project ID (for example, `my-project-123`).
941
+ # Required.
942
+ # @param [Google::Apis::CloudresourcemanagerV1::GetAncestryRequest] get_ancestry_request_object
966
943
  # @param [String] fields
967
944
  # Selector specifying which fields to include in a partial response.
945
+ # @param [String] quota_user
946
+ # Available to use for quota purposes for server-side applications. Can be any
947
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
968
948
  # @param [Google::Apis::RequestOptions] options
969
949
  # Request-specific options
970
950
  #
971
951
  # @yield [result, err] Result & error if block supplied
972
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
952
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse] parsed result object
973
953
  # @yieldparam err [StandardError] error object if request failed
974
954
  #
975
- # @return [Google::Apis::CloudresourcemanagerV1::Empty]
955
+ # @return [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse]
976
956
  #
977
957
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
978
958
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
979
959
  # @raise [Google::Apis::AuthorizationError] Authorization is required
980
- def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
981
- command = make_simple_command(:post, 'v1/projects/{projectId}:undelete', options)
982
- command.request_representation = Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest::Representation
983
- command.request_object = undelete_project_request_object
984
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
985
- command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
960
+ def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
961
+ command = make_simple_command(:post, 'v1/projects/{projectId}:getAncestry', options)
962
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryRequest::Representation
963
+ command.request_object = get_ancestry_request_object
964
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse::Representation
965
+ command.response_class = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse
986
966
  command.params['projectId'] = project_id unless project_id.nil?
987
- command.query['quotaUser'] = quota_user unless quota_user.nil?
988
967
  command.query['fields'] = fields unless fields.nil?
968
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
989
969
  execute_or_queue_command(command, &block)
990
970
  end
991
971
 
@@ -995,11 +975,11 @@ module Google
995
975
  # @param [String] resource
996
976
  # The name of the resource to start computing the effective `Policy`.
997
977
  # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
978
+ # @param [String] fields
979
+ # Selector specifying which fields to include in a partial response.
998
980
  # @param [String] quota_user
999
981
  # Available to use for quota purposes for server-side applications. Can be any
1000
982
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1001
- # @param [String] fields
1002
- # Selector specifying which fields to include in a partial response.
1003
983
  # @param [Google::Apis::RequestOptions] options
1004
984
  # Request-specific options
1005
985
  #
@@ -1012,62 +992,95 @@ module Google
1012
992
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1013
993
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1014
994
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1015
- def get_project_effective_org_policy(resource, get_effective_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
995
+ def get_project_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1016
996
  command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
1017
997
  command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
1018
998
  command.request_object = get_effective_org_policy_request_object
1019
999
  command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
1020
1000
  command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
1021
1001
  command.params['resource'] = resource unless resource.nil?
1022
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1023
1002
  command.query['fields'] = fields unless fields.nil?
1003
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1024
1004
  execute_or_queue_command(command, &block)
1025
1005
  end
1026
1006
 
1027
- # Updates the attributes of the Project identified by the specified
1028
- # `project_id` (for example, `my-project-123`).
1029
- # The caller must have modify permissions for this Project.
1030
- # @param [String] project_id
1031
- # The project ID (for example, `my-project-123`).
1032
- # Required.
1033
- # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
1007
+ # Returns the IAM access control policy for the specified Project.
1008
+ # Permission is denied if the policy or the resource does not exist.
1009
+ # Authorization requires the Google IAM permission
1010
+ # `resourcemanager.projects.getIamPolicy` on the project
1011
+ # @param [String] resource
1012
+ # REQUIRED: The resource for which the policy is being requested.
1013
+ # See the operation documentation for the appropriate value for this field.
1014
+ # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
1015
+ # @param [String] fields
1016
+ # Selector specifying which fields to include in a partial response.
1034
1017
  # @param [String] quota_user
1035
1018
  # Available to use for quota purposes for server-side applications. Can be any
1036
1019
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1020
+ # @param [Google::Apis::RequestOptions] options
1021
+ # Request-specific options
1022
+ #
1023
+ # @yield [result, err] Result & error if block supplied
1024
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
1025
+ # @yieldparam err [StandardError] error object if request failed
1026
+ #
1027
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
1028
+ #
1029
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1030
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1031
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1032
+ def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1033
+ command = make_simple_command(:post, 'v1/projects/{resource}:getIamPolicy', options)
1034
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
1035
+ command.request_object = get_iam_policy_request_object
1036
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
1037
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
1038
+ command.params['resource'] = resource unless resource.nil?
1039
+ command.query['fields'] = fields unless fields.nil?
1040
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1041
+ execute_or_queue_command(command, &block)
1042
+ end
1043
+
1044
+ # Gets a `Policy` on a resource.
1045
+ # If no `Policy` is set on the resource, a `Policy` is returned with default
1046
+ # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
1047
+ # `etag` value can be used with `SetOrgPolicy()` to create or update a
1048
+ # `Policy` during read-modify-write.
1049
+ # @param [String] resource
1050
+ # Name of the resource the `Policy` is set on.
1051
+ # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
1037
1052
  # @param [String] fields
1038
1053
  # Selector specifying which fields to include in a partial response.
1054
+ # @param [String] quota_user
1055
+ # Available to use for quota purposes for server-side applications. Can be any
1056
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1039
1057
  # @param [Google::Apis::RequestOptions] options
1040
1058
  # Request-specific options
1041
1059
  #
1042
1060
  # @yield [result, err] Result & error if block supplied
1043
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
1061
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
1044
1062
  # @yieldparam err [StandardError] error object if request failed
1045
1063
  #
1046
- # @return [Google::Apis::CloudresourcemanagerV1::Project]
1064
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
1047
1065
  #
1048
1066
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1049
1067
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1050
1068
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1051
- def update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1052
- command = make_simple_command(:put, 'v1/projects/{projectId}', options)
1053
- command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
1054
- command.request_object = project_object
1055
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
1056
- command.response_class = Google::Apis::CloudresourcemanagerV1::Project
1057
- command.params['projectId'] = project_id unless project_id.nil?
1058
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1069
+ def get_project_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1070
+ command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
1071
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
1072
+ command.request_object = get_org_policy_request_object
1073
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
1074
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
1075
+ command.params['resource'] = resource unless resource.nil?
1059
1076
  command.query['fields'] = fields unless fields.nil?
1077
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1060
1078
  execute_or_queue_command(command, &block)
1061
1079
  end
1062
1080
 
1063
1081
  # Lists Projects that are visible to the user and satisfy the
1064
1082
  # specified filter. This method returns Projects in an unspecified order.
1065
1083
  # New Projects do not necessarily appear at the end of the list.
1066
- # @param [Fixnum] page_size
1067
- # The maximum number of Projects to return in the response.
1068
- # The server can return fewer Projects than requested.
1069
- # If unspecified, server picks an appropriate default.
1070
- # Optional.
1071
1084
  # @param [String] filter
1072
1085
  # An expression for filtering the results of the request. Filter rules are
1073
1086
  # case insensitive. The fields eligible for filtering are:
@@ -1094,15 +1107,20 @@ module Google
1094
1107
  # filters have been applied. If no filter is specified, the call will return
1095
1108
  # projects for which the user has `resourcemanager.projects.get` permissions.
1096
1109
  # Optional.
1110
+ # @param [Fixnum] page_size
1111
+ # The maximum number of Projects to return in the response.
1112
+ # The server can return fewer Projects than requested.
1113
+ # If unspecified, server picks an appropriate default.
1114
+ # Optional.
1097
1115
  # @param [String] page_token
1098
1116
  # A pagination token returned from a previous call to ListProjects
1099
1117
  # that indicates from where listing should continue.
1100
1118
  # Optional.
1119
+ # @param [String] fields
1120
+ # Selector specifying which fields to include in a partial response.
1101
1121
  # @param [String] quota_user
1102
1122
  # Available to use for quota purposes for server-side applications. Can be any
1103
1123
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1104
- # @param [String] fields
1105
- # Selector specifying which fields to include in a partial response.
1106
1124
  # @param [Google::Apis::RequestOptions] options
1107
1125
  # Request-specific options
1108
1126
  #
@@ -1115,90 +1133,48 @@ module Google
1115
1133
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1116
1134
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1117
1135
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1118
- def list_projects(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
1136
+ def list_projects(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1119
1137
  command = make_simple_command(:get, 'v1/projects', options)
1120
1138
  command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation
1121
1139
  command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse
1122
- command.query['pageSize'] = page_size unless page_size.nil?
1123
1140
  command.query['filter'] = filter unless filter.nil?
1141
+ command.query['pageSize'] = page_size unless page_size.nil?
1124
1142
  command.query['pageToken'] = page_token unless page_token.nil?
1125
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1126
1143
  command.query['fields'] = fields unless fields.nil?
1144
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1127
1145
  execute_or_queue_command(command, &block)
1128
1146
  end
1129
1147
 
1130
- # Updates the specified `Policy` on the resource. Creates a new `Policy` for
1131
- # that `Constraint` on the resource if one does not exist.
1132
- # Not supplying an `etag` on the request `Policy` results in an unconditional
1133
- # write of the `Policy`.
1148
+ # Lists `Constraints` that could be applied on the specified resource.
1134
1149
  # @param [String] resource
1135
- # Resource name of the resource to attach the `Policy`.
1136
- # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
1137
- # @param [String] quota_user
1138
- # Available to use for quota purposes for server-side applications. Can be any
1139
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1150
+ # Name of the resource to list `Constraints` for.
1151
+ # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
1140
1152
  # @param [String] fields
1141
1153
  # Selector specifying which fields to include in a partial response.
1142
- # @param [Google::Apis::RequestOptions] options
1143
- # Request-specific options
1144
- #
1145
- # @yield [result, err] Result & error if block supplied
1146
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
1147
- # @yieldparam err [StandardError] error object if request failed
1148
- #
1149
- # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
1150
- #
1151
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1152
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1153
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1154
- def set_project_org_policy(resource, set_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1155
- command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
1156
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
1157
- command.request_object = set_org_policy_request_object
1158
- command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
1159
- command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
1160
- command.params['resource'] = resource unless resource.nil?
1161
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1162
- command.query['fields'] = fields unless fields.nil?
1163
- execute_or_queue_command(command, &block)
1164
- end
1165
-
1166
- # Request that a new Project be created. The result is an Operation which
1167
- # can be used to track the creation process. It is automatically deleted
1168
- # after a few hours, so there is no need to call DeleteOperation.
1169
- # Our SLO permits Project creation to take up to 30 seconds at the 90th
1170
- # percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
1171
- # latency. 95th percentile latency is around 11 seconds. We recommend
1172
- # polling at the 5th second with an exponential backoff.
1173
- # Authorization requires the Google IAM permission
1174
- # `resourcemanager.projects.create` on the specified parent for the new
1175
- # project.
1176
- # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
1177
1154
  # @param [String] quota_user
1178
1155
  # Available to use for quota purposes for server-side applications. Can be any
1179
1156
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1180
- # @param [String] fields
1181
- # Selector specifying which fields to include in a partial response.
1182
1157
  # @param [Google::Apis::RequestOptions] options
1183
1158
  # Request-specific options
1184
1159
  #
1185
1160
  # @yield [result, err] Result & error if block supplied
1186
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
1161
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
1187
1162
  # @yieldparam err [StandardError] error object if request failed
1188
1163
  #
1189
- # @return [Google::Apis::CloudresourcemanagerV1::Operation]
1164
+ # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
1190
1165
  #
1191
1166
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1192
1167
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1193
1168
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1194
- def create_project(project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1195
- command = make_simple_command(:post, 'v1/projects', options)
1196
- command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
1197
- command.request_object = project_object
1198
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
1199
- command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
1200
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1169
+ def list_project_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1170
+ command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
1171
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
1172
+ command.request_object = list_available_org_policy_constraints_request_object
1173
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
1174
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
1175
+ command.params['resource'] = resource unless resource.nil?
1201
1176
  command.query['fields'] = fields unless fields.nil?
1177
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1202
1178
  execute_or_queue_command(command, &block)
1203
1179
  end
1204
1180
 
@@ -1206,11 +1182,11 @@ module Google
1206
1182
  # @param [String] resource
1207
1183
  # Name of the resource to list Policies for.
1208
1184
  # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
1185
+ # @param [String] fields
1186
+ # Selector specifying which fields to include in a partial response.
1209
1187
  # @param [String] quota_user
1210
1188
  # Available to use for quota purposes for server-side applications. Can be any
1211
1189
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1212
- # @param [String] fields
1213
- # Selector specifying which fields to include in a partial response.
1214
1190
  # @param [Google::Apis::RequestOptions] options
1215
1191
  # Request-specific options
1216
1192
  #
@@ -1223,84 +1199,115 @@ module Google
1223
1199
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1224
1200
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1225
1201
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1226
- def list_project_org_policies(resource, list_org_policies_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1202
+ def list_project_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1227
1203
  command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
1228
1204
  command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
1229
1205
  command.request_object = list_org_policies_request_object
1230
1206
  command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
1231
1207
  command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
1232
1208
  command.params['resource'] = resource unless resource.nil?
1233
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1234
1209
  command.query['fields'] = fields unless fields.nil?
1210
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1235
1211
  execute_or_queue_command(command, &block)
1236
1212
  end
1237
1213
 
1238
- # Retrieves the Project identified by the specified
1239
- # `project_id` (for example, `my-project-123`).
1240
- # The caller must have read permissions for this Project.
1241
- # @param [String] project_id
1242
- # The Project ID (for example, `my-project-123`).
1243
- # Required.
1214
+ # Sets the IAM access control policy for the specified Project. Replaces
1215
+ # any existing policy.
1216
+ # The following constraints apply when using `setIamPolicy()`:
1217
+ # + Project does not support `allUsers` and `allAuthenticatedUsers` as
1218
+ # `members` in a `Binding` of a `Policy`.
1219
+ # + The owner role can be granted only to `user` and `serviceAccount`.
1220
+ # + Service accounts can be made owners of a project directly
1221
+ # without any restrictions. However, to be added as an owner, a user must be
1222
+ # invited via Cloud Platform console and must accept the invitation.
1223
+ # + A user cannot be granted the owner role using `setIamPolicy()`. The user
1224
+ # must be granted the owner role using the Cloud Platform Console and must
1225
+ # explicitly accept the invitation.
1226
+ # + Invitations to grant the owner role cannot be sent using
1227
+ # `setIamPolicy()`;
1228
+ # they must be sent only using the Cloud Platform Console.
1229
+ # + Membership changes that leave the project without any owners that have
1230
+ # accepted the Terms of Service (ToS) will be rejected.
1231
+ # + If the project is not part of an organization, there must be at least
1232
+ # one owner who has accepted the Terms of Service (ToS) agreement in the
1233
+ # policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner
1234
+ # from the policy will fail. This restriction also applies to legacy
1235
+ # projects that no longer have owners who have accepted the ToS. Edits to
1236
+ # IAM policies will be rejected until the lack of a ToS-accepting owner is
1237
+ # rectified.
1238
+ # + Calling this method requires enabling the App Engine Admin API.
1239
+ # Note: Removing service accounts from policies or changing their roles
1240
+ # can render services completely inoperable. It is important to understand
1241
+ # how the service account is being used before removing or updating its
1242
+ # roles.
1243
+ # Authorization requires the Google IAM permission
1244
+ # `resourcemanager.projects.setIamPolicy` on the project
1245
+ # @param [String] resource
1246
+ # REQUIRED: The resource for which the policy is being specified.
1247
+ # See the operation documentation for the appropriate value for this field.
1248
+ # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
1249
+ # @param [String] fields
1250
+ # Selector specifying which fields to include in a partial response.
1244
1251
  # @param [String] quota_user
1245
1252
  # Available to use for quota purposes for server-side applications. Can be any
1246
1253
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1247
- # @param [String] fields
1248
- # Selector specifying which fields to include in a partial response.
1249
1254
  # @param [Google::Apis::RequestOptions] options
1250
1255
  # Request-specific options
1251
1256
  #
1252
1257
  # @yield [result, err] Result & error if block supplied
1253
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
1258
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
1254
1259
  # @yieldparam err [StandardError] error object if request failed
1255
1260
  #
1256
- # @return [Google::Apis::CloudresourcemanagerV1::Project]
1261
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
1257
1262
  #
1258
1263
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1259
1264
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1260
1265
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1261
- def get_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
1262
- command = make_simple_command(:get, 'v1/projects/{projectId}', options)
1263
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
1264
- command.response_class = Google::Apis::CloudresourcemanagerV1::Project
1265
- command.params['projectId'] = project_id unless project_id.nil?
1266
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1266
+ def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1267
+ command = make_simple_command(:post, 'v1/projects/{resource}:setIamPolicy', options)
1268
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
1269
+ command.request_object = set_iam_policy_request_object
1270
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
1271
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
1272
+ command.params['resource'] = resource unless resource.nil?
1267
1273
  command.query['fields'] = fields unless fields.nil?
1274
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1268
1275
  execute_or_queue_command(command, &block)
1269
1276
  end
1270
1277
 
1271
- # Gets a list of ancestors in the resource hierarchy for the Project
1272
- # identified by the specified `project_id` (for example, `my-project-123`).
1273
- # The caller must have read permissions for this Project.
1274
- # @param [String] project_id
1275
- # The Project ID (for example, `my-project-123`).
1276
- # Required.
1277
- # @param [Google::Apis::CloudresourcemanagerV1::GetAncestryRequest] get_ancestry_request_object
1278
+ # Updates the specified `Policy` on the resource. Creates a new `Policy` for
1279
+ # that `Constraint` on the resource if one does not exist.
1280
+ # Not supplying an `etag` on the request `Policy` results in an unconditional
1281
+ # write of the `Policy`.
1282
+ # @param [String] resource
1283
+ # Resource name of the resource to attach the `Policy`.
1284
+ # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
1285
+ # @param [String] fields
1286
+ # Selector specifying which fields to include in a partial response.
1278
1287
  # @param [String] quota_user
1279
1288
  # Available to use for quota purposes for server-side applications. Can be any
1280
1289
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1281
- # @param [String] fields
1282
- # Selector specifying which fields to include in a partial response.
1283
1290
  # @param [Google::Apis::RequestOptions] options
1284
1291
  # Request-specific options
1285
1292
  #
1286
1293
  # @yield [result, err] Result & error if block supplied
1287
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse] parsed result object
1294
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
1288
1295
  # @yieldparam err [StandardError] error object if request failed
1289
1296
  #
1290
- # @return [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse]
1297
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
1291
1298
  #
1292
1299
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1293
1300
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1294
1301
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1295
- def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1296
- command = make_simple_command(:post, 'v1/projects/{projectId}:getAncestry', options)
1297
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryRequest::Representation
1298
- command.request_object = get_ancestry_request_object
1299
- command.response_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse::Representation
1300
- command.response_class = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse
1301
- command.params['projectId'] = project_id unless project_id.nil?
1302
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1302
+ def set_project_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1303
+ command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
1304
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
1305
+ command.request_object = set_org_policy_request_object
1306
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
1307
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
1308
+ command.params['resource'] = resource unless resource.nil?
1303
1309
  command.query['fields'] = fields unless fields.nil?
1310
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1304
1311
  execute_or_queue_command(command, &block)
1305
1312
  end
1306
1313
 
@@ -1310,11 +1317,11 @@ module Google
1310
1317
  # REQUIRED: The resource for which the policy detail is being requested.
1311
1318
  # See the operation documentation for the appropriate value for this field.
1312
1319
  # @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1320
+ # @param [String] fields
1321
+ # Selector specifying which fields to include in a partial response.
1313
1322
  # @param [String] quota_user
1314
1323
  # Available to use for quota purposes for server-side applications. Can be any
1315
1324
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1316
- # @param [String] fields
1317
- # Selector specifying which fields to include in a partial response.
1318
1325
  # @param [Google::Apis::RequestOptions] options
1319
1326
  # Request-specific options
1320
1327
  #
@@ -1327,45 +1334,33 @@ module Google
1327
1334
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1328
1335
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1329
1336
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1330
- def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1337
+ def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1331
1338
  command = make_simple_command(:post, 'v1/projects/{resource}:testIamPermissions', options)
1332
1339
  command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
1333
1340
  command.request_object = test_iam_permissions_request_object
1334
1341
  command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
1335
1342
  command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
1336
1343
  command.params['resource'] = resource unless resource.nil?
1337
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1338
1344
  command.query['fields'] = fields unless fields.nil?
1345
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1339
1346
  execute_or_queue_command(command, &block)
1340
1347
  end
1341
1348
 
1342
- # Marks the Project identified by the specified
1343
- # `project_id` (for example, `my-project-123`) for deletion.
1344
- # This method will only affect the Project if the following criteria are met:
1345
- # + The Project does not have a billing account associated with it.
1346
- # + The Project has a lifecycle state of
1347
- # ACTIVE.
1348
- # This method changes the Project's lifecycle state from
1349
- # ACTIVE
1350
- # to DELETE_REQUESTED.
1351
- # The deletion starts at an unspecified time,
1352
- # at which point the Project is no longer accessible.
1353
- # Until the deletion completes, you can check the lifecycle state
1354
- # checked by retrieving the Project with GetProject,
1355
- # and the Project remains visible to ListProjects.
1356
- # However, you cannot update the project.
1357
- # After the deletion completes, the Project is not retrievable by
1358
- # the GetProject and
1359
- # ListProjects methods.
1349
+ # Restores the Project identified by the specified
1350
+ # `project_id` (for example, `my-project-123`).
1351
+ # You can only use this method for a Project that has a lifecycle state of
1352
+ # DELETE_REQUESTED.
1353
+ # After deletion starts, the Project cannot be restored.
1360
1354
  # The caller must have modify permissions for this Project.
1361
1355
  # @param [String] project_id
1362
- # The Project ID (for example, `foo-bar-123`).
1356
+ # The project ID (for example, `foo-bar-123`).
1363
1357
  # Required.
1358
+ # @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
1359
+ # @param [String] fields
1360
+ # Selector specifying which fields to include in a partial response.
1364
1361
  # @param [String] quota_user
1365
1362
  # Available to use for quota purposes for server-side applications. Can be any
1366
1363
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1367
- # @param [String] fields
1368
- # Selector specifying which fields to include in a partial response.
1369
1364
  # @param [Google::Apis::RequestOptions] options
1370
1365
  # Request-specific options
1371
1366
  #
@@ -1378,46 +1373,51 @@ module Google
1378
1373
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1379
1374
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1380
1375
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1381
- def delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
1382
- command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
1376
+ def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1377
+ command = make_simple_command(:post, 'v1/projects/{projectId}:undelete', options)
1378
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest::Representation
1379
+ command.request_object = undelete_project_request_object
1383
1380
  command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
1384
1381
  command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
1385
1382
  command.params['projectId'] = project_id unless project_id.nil?
1386
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1387
1383
  command.query['fields'] = fields unless fields.nil?
1384
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1388
1385
  execute_or_queue_command(command, &block)
1389
1386
  end
1390
1387
 
1391
- # Clears a `Policy` from a resource.
1392
- # @param [String] resource
1393
- # Name of the resource for the `Policy` to clear.
1394
- # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
1388
+ # Updates the attributes of the Project identified by the specified
1389
+ # `project_id` (for example, `my-project-123`).
1390
+ # The caller must have modify permissions for this Project.
1391
+ # @param [String] project_id
1392
+ # The project ID (for example, `my-project-123`).
1393
+ # Required.
1394
+ # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
1395
+ # @param [String] fields
1396
+ # Selector specifying which fields to include in a partial response.
1395
1397
  # @param [String] quota_user
1396
1398
  # Available to use for quota purposes for server-side applications. Can be any
1397
1399
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1398
- # @param [String] fields
1399
- # Selector specifying which fields to include in a partial response.
1400
1400
  # @param [Google::Apis::RequestOptions] options
1401
1401
  # Request-specific options
1402
1402
  #
1403
1403
  # @yield [result, err] Result & error if block supplied
1404
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
1404
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
1405
1405
  # @yieldparam err [StandardError] error object if request failed
1406
1406
  #
1407
- # @return [Google::Apis::CloudresourcemanagerV1::Empty]
1407
+ # @return [Google::Apis::CloudresourcemanagerV1::Project]
1408
1408
  #
1409
1409
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1410
1410
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1411
1411
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1412
- def clear_project_org_policy(resource, clear_org_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1413
- command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
1414
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
1415
- command.request_object = clear_org_policy_request_object
1416
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
1417
- command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
1418
- command.params['resource'] = resource unless resource.nil?
1419
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1412
+ def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1413
+ command = make_simple_command(:put, 'v1/projects/{projectId}', options)
1414
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
1415
+ command.request_object = project_object
1416
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
1417
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Project
1418
+ command.params['projectId'] = project_id unless project_id.nil?
1420
1419
  command.query['fields'] = fields unless fields.nil?
1420
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1421
1421
  execute_or_queue_command(command, &block)
1422
1422
  end
1423
1423