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