google-api-client 0.12.0 → 0.13.0

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