google-api-client 0.10.3 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -22,6 +22,30 @@ 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
+ class Ancestor
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class SetIamPolicyRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ListOrganizationsResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
25
49
  class Binding
26
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
51
 
@@ -64,13 +88,13 @@ module Google
64
88
  include Google::Apis::Core::JsonObjectSupport
65
89
  end
66
90
 
67
- class OrganizationOwner
91
+ class GetAncestryResponse
68
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
93
 
70
94
  include Google::Apis::Core::JsonObjectSupport
71
95
  end
72
96
 
73
- class GetAncestryResponse
97
+ class OrganizationOwner
74
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
99
 
76
100
  include Google::Apis::Core::JsonObjectSupport
@@ -106,7 +130,7 @@ module Google
106
130
  include Google::Apis::Core::JsonObjectSupport
107
131
  end
108
132
 
109
- class Policy
133
+ class FolderOperationError
110
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
135
 
112
136
  include Google::Apis::Core::JsonObjectSupport
@@ -118,7 +142,7 @@ module Google
118
142
  include Google::Apis::Core::JsonObjectSupport
119
143
  end
120
144
 
121
- class FolderOperationError
145
+ class Policy
122
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
147
 
124
148
  include Google::Apis::Core::JsonObjectSupport
@@ -131,27 +155,38 @@ module Google
131
155
  end
132
156
 
133
157
  class AuditConfig
134
- class Representation < Google::Apis::Core::JsonRepresentation; end
158
+ # @private
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
135
161
 
136
- include Google::Apis::Core::JsonObjectSupport
162
+ property :service, as: 'service'
163
+ end
137
164
  end
138
165
 
139
166
  class Ancestor
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
167
+ # @private
168
+ class Representation < Google::Apis::Core::JsonRepresentation
169
+ property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
141
170
 
142
- include Google::Apis::Core::JsonObjectSupport
171
+ end
143
172
  end
144
173
 
145
174
  class SetIamPolicyRequest
146
- class Representation < Google::Apis::Core::JsonRepresentation; end
175
+ # @private
176
+ class Representation < Google::Apis::Core::JsonRepresentation
177
+ property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
147
178
 
148
- include Google::Apis::Core::JsonObjectSupport
179
+ property :update_mask, as: 'updateMask'
180
+ end
149
181
  end
150
182
 
151
183
  class ListOrganizationsResponse
152
- class Representation < Google::Apis::Core::JsonRepresentation; end
184
+ # @private
185
+ class Representation < Google::Apis::Core::JsonRepresentation
186
+ collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
153
187
 
154
- include Google::Apis::Core::JsonObjectSupport
188
+ property :next_page_token, as: 'nextPageToken'
189
+ end
155
190
  end
156
191
 
157
192
  class Binding
@@ -177,13 +212,13 @@ module Google
177
212
  class Organization
178
213
  # @private
179
214
  class Representation < Google::Apis::Core::JsonRepresentation
215
+ property :lifecycle_state, as: 'lifecycleState'
216
+ property :display_name, as: 'displayName'
180
217
  property :creation_time, as: 'creationTime'
181
218
  property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
182
219
 
183
220
  property :name, as: 'name'
184
221
  property :organization_id, as: 'organizationId'
185
- property :lifecycle_state, as: 'lifecycleState'
186
- property :display_name, as: 'displayName'
187
222
  end
188
223
  end
189
224
 
@@ -209,35 +244,35 @@ module Google
209
244
  end
210
245
  end
211
246
 
212
- class OrganizationOwner
247
+ class GetAncestryResponse
213
248
  # @private
214
249
  class Representation < Google::Apis::Core::JsonRepresentation
215
- property :directory_customer_id, as: 'directoryCustomerId'
250
+ collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1beta1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1beta1::Ancestor::Representation
251
+
216
252
  end
217
253
  end
218
254
 
219
- class GetAncestryResponse
255
+ class OrganizationOwner
220
256
  # @private
221
257
  class Representation < Google::Apis::Core::JsonRepresentation
222
- collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1beta1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1beta1::Ancestor::Representation
223
-
258
+ property :directory_customer_id, as: 'directoryCustomerId'
224
259
  end
225
260
  end
226
261
 
227
262
  class AuditLogConfig
228
263
  # @private
229
264
  class Representation < Google::Apis::Core::JsonRepresentation
230
- collection :exempted_members, as: 'exemptedMembers'
231
265
  property :log_type, as: 'logType'
266
+ collection :exempted_members, as: 'exemptedMembers'
232
267
  end
233
268
  end
234
269
 
235
270
  class ListProjectsResponse
236
271
  # @private
237
272
  class Representation < Google::Apis::Core::JsonRepresentation
238
- property :next_page_token, as: 'nextPageToken'
239
273
  collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1beta1::Project, decorator: Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
240
274
 
275
+ property :next_page_token, as: 'nextPageToken'
241
276
  end
242
277
  end
243
278
 
@@ -250,14 +285,14 @@ module Google
250
285
  class Project
251
286
  # @private
252
287
  class Representation < Google::Apis::Core::JsonRepresentation
253
- property :lifecycle_state, as: 'lifecycleState'
254
- property :project_number, as: 'projectNumber'
255
- property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
256
-
257
- hash :labels, as: 'labels'
258
288
  property :create_time, as: 'createTime'
289
+ hash :labels, as: 'labels'
259
290
  property :name, as: 'name'
260
291
  property :project_id, as: 'projectId'
292
+ property :lifecycle_state, as: 'lifecycleState'
293
+ property :project_number, :numeric_string => true, as: 'projectNumber'
294
+ property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
295
+
261
296
  end
262
297
  end
263
298
 
@@ -268,32 +303,32 @@ module Google
268
303
  end
269
304
  end
270
305
 
271
- class Policy
306
+ class FolderOperationError
272
307
  # @private
273
308
  class Representation < Google::Apis::Core::JsonRepresentation
274
- property :etag, :base64 => true, as: 'etag'
275
- property :version, as: 'version'
276
- collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation
277
-
278
- collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
279
-
309
+ property :error_message_id, as: 'errorMessageId'
280
310
  end
281
311
  end
282
312
 
283
313
  class FolderOperation
284
314
  # @private
285
315
  class Representation < Google::Apis::Core::JsonRepresentation
286
- property :operation_type, as: 'operationType'
287
316
  property :display_name, as: 'displayName'
288
317
  property :source_parent, as: 'sourceParent'
289
318
  property :destination_parent, as: 'destinationParent'
319
+ property :operation_type, as: 'operationType'
290
320
  end
291
321
  end
292
322
 
293
- class FolderOperationError
323
+ class Policy
294
324
  # @private
295
325
  class Representation < Google::Apis::Core::JsonRepresentation
296
- property :error_message_id, as: 'errorMessageId'
326
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditConfig::Representation
327
+
328
+ collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
329
+
330
+ property :etag, :base64 => true, as: 'etag'
331
+ property :version, as: 'version'
297
332
  end
298
333
  end
299
334
 
@@ -304,41 +339,6 @@ module Google
304
339
  property :id, as: 'id'
305
340
  end
306
341
  end
307
-
308
- class AuditConfig
309
- # @private
310
- class Representation < Google::Apis::Core::JsonRepresentation
311
- property :service, as: 'service'
312
- collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::AuditLogConfig::Representation
313
-
314
- end
315
- end
316
-
317
- class Ancestor
318
- # @private
319
- class Representation < Google::Apis::Core::JsonRepresentation
320
- property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
321
-
322
- end
323
- end
324
-
325
- class SetIamPolicyRequest
326
- # @private
327
- class Representation < Google::Apis::Core::JsonRepresentation
328
- property :update_mask, as: 'updateMask'
329
- property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
330
-
331
- end
332
- end
333
-
334
- class ListOrganizationsResponse
335
- # @private
336
- class Representation < Google::Apis::Core::JsonRepresentation
337
- property :next_page_token, as: 'nextPageToken'
338
- collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
339
-
340
- end
341
- end
342
342
  end
343
343
  end
344
344
  end
@@ -45,30 +45,54 @@ module Google
45
45
 
46
46
  def initialize
47
47
  super('https://cloudresourcemanager.googleapis.com/', '')
48
+ @batch_path = 'batch'
48
49
  end
49
50
 
50
- # Marks the Project identified by the specified
51
- # `project_id` (for example, `my-project-123`) for deletion.
52
- # This method will only affect the Project if the following criteria are met:
53
- # + The Project does not have a billing account associated with it.
54
- # + The Project has a lifecycle state of
55
- # ACTIVE.
56
- # This method changes the Project's lifecycle state from
57
- # ACTIVE
58
- # to DELETE_REQUESTED.
59
- # The deletion starts at an unspecified time, at which point the project is
60
- # no longer accessible.
61
- # Until the deletion completes, you can check the lifecycle state
62
- # checked by retrieving the Project with GetProject,
63
- # and the Project remains visible to ListProjects.
64
- # However, you cannot update the project.
65
- # After the deletion completes, the Project is not retrievable by
66
- # the GetProject and
67
- # ListProjects methods.
51
+ # Returns the IAM access control policy for the specified Project.
52
+ # Permission is denied if the policy or the resource does not exist.
53
+ # @param [String] resource
54
+ # REQUIRED: The resource for which the policy is being requested.
55
+ # See the operation documentation for the appropriate value for this field.
56
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
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::Policy] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
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_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
76
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
77
+ command.request_object = get_iam_policy_request_object
78
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
79
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
80
+ command.params['resource'] = resource unless resource.nil?
81
+ command.query['fields'] = fields unless fields.nil?
82
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
83
+ execute_or_queue_command(command, &block)
84
+ end
85
+
86
+ # Restores the Project identified by the specified
87
+ # `project_id` (for example, `my-project-123`).
88
+ # You can only use this method for a Project that has a lifecycle state of
89
+ # DELETE_REQUESTED.
90
+ # After deletion starts, the Project cannot be restored.
68
91
  # The caller must have modify permissions for this Project.
69
92
  # @param [String] project_id
70
- # The Project ID (for example, `foo-bar-123`).
93
+ # The project ID (for example, `foo-bar-123`).
71
94
  # Required.
95
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
72
96
  # @param [String] fields
73
97
  # Selector specifying which fields to include in a partial response.
74
98
  # @param [String] quota_user
@@ -86,8 +110,10 @@ module Google
86
110
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
87
111
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
88
112
  # @raise [Google::Apis::AuthorizationError] Authorization is required
89
- def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
90
- command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
113
+ def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
114
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
115
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
116
+ command.request_object = undelete_project_request_object
91
117
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
92
118
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
93
119
  command.params['projectId'] = project_id unless project_id.nil?
@@ -96,36 +122,12 @@ module Google
96
122
  execute_or_queue_command(command, &block)
97
123
  end
98
124
 
99
- # Lists Projects that are visible to the user and satisfy the
100
- # specified filter. This method returns Projects in an unspecified order.
101
- # New Projects do not necessarily appear at the end of the list.
102
- # @param [String] page_token
103
- # A pagination token returned from a previous call to ListProjects
104
- # that indicates from where listing should continue.
105
- # Optional.
106
- # @param [Fixnum] page_size
107
- # The maximum number of Projects to return in the response.
108
- # The server can return fewer Projects than requested.
109
- # If unspecified, server picks an appropriate default.
110
- # Optional.
111
- # @param [String] filter
112
- # An expression for filtering the results of the request. Filter rules are
113
- # case insensitive. The fields eligible for filtering are:
114
- # + `name`
115
- # + `id`
116
- # + <code>labels.<em>key</em></code> where *key* is the name of a label
117
- # Some examples of using labels as filters:
118
- # |Filter|Description|
119
- # |------|-----------|
120
- # |name:*|The project has a name.|
121
- # |name:Howl|The project's name is `Howl` or `howl`.|
122
- # |name:HOWL|Equivalent to above.|
123
- # |NAME:howl|Equivalent to above.|
124
- # |labels.color:*|The project has the label `color`.|
125
- # |labels.color:red|The project's label `color` has the value `red`.|
126
- # |labels.color:red&nbsp;labels.size:big|The project's label `color` has the
127
- # value `red` and its label `size` has the value `big`.
128
- # Optional.
125
+ # Retrieves the Project identified by the specified
126
+ # `project_id` (for example, `my-project-123`).
127
+ # The caller must have read permissions for this Project.
128
+ # @param [String] project_id
129
+ # The Project ID (for example, `my-project-123`).
130
+ # Required.
129
131
  # @param [String] fields
130
132
  # Selector specifying which fields to include in a partial response.
131
133
  # @param [String] quota_user
@@ -135,57 +137,31 @@ module Google
135
137
  # Request-specific options
136
138
  #
137
139
  # @yield [result, err] Result & error if block supplied
138
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
140
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
139
141
  # @yieldparam err [StandardError] error object if request failed
140
142
  #
141
- # @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
143
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
142
144
  #
143
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
146
- def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
147
- command = make_simple_command(:get, 'v1beta1/projects', options)
148
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
149
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
150
- command.query['pageToken'] = page_token unless page_token.nil?
151
- command.query['pageSize'] = page_size unless page_size.nil?
152
- command.query['filter'] = filter unless filter.nil?
148
+ def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
149
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
150
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
151
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
152
+ command.params['projectId'] = project_id unless project_id.nil?
153
153
  command.query['fields'] = fields unless fields.nil?
154
154
  command.query['quotaUser'] = quota_user unless quota_user.nil?
155
155
  execute_or_queue_command(command, &block)
156
156
  end
157
157
 
158
- # Sets the IAM access control policy for the specified Project. Replaces
159
- # any existing policy.
160
- # The following constraints apply when using `setIamPolicy()`:
161
- # + Project does not support `allUsers` and `allAuthenticatedUsers` as
162
- # `members` in a `Binding` of a `Policy`.
163
- # + The owner role can be granted only to `user` and `serviceAccount`.
164
- # + Service accounts can be made owners of a project directly
165
- # without any restrictions. However, to be added as an owner, a user must be
166
- # invited via Cloud Platform console and must accept the invitation.
167
- # + A user cannot be granted the owner role using `setIamPolicy()`. The user
168
- # must be granted the owner role using the Cloud Platform Console and must
169
- # explicitly accept the invitation.
170
- # + Invitations to grant the owner role cannot be sent using
171
- # `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
172
- # + Membership changes that leave the project without any owners that have
173
- # accepted the Terms of Service (ToS) will be rejected.
174
- # + There must be at least one owner who has accepted the Terms of
175
- # Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
176
- # remove the last ToS-accepted owner from the policy will fail. This
177
- # restriction also applies to legacy projects that no longer have owners
178
- # who have accepted the ToS. Edits to IAM policies will be rejected until
179
- # the lack of a ToS-accepting owner is rectified.
180
- # + Calling this method requires enabling the App Engine Admin API.
181
- # Note: Removing service accounts from policies or changing their roles
182
- # can render services completely inoperable. It is important to understand
183
- # how the service account is being used before removing or updating its
184
- # roles.
185
- # @param [String] resource
186
- # REQUIRED: The resource for which the policy is being specified.
187
- # See the operation documentation for the appropriate value for this field.
188
- # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
158
+ # Gets a list of ancestors in the resource hierarchy for the Project
159
+ # identified by the specified `project_id` (for example, `my-project-123`).
160
+ # The caller must have read permissions for this Project.
161
+ # @param [String] project_id
162
+ # The Project ID (for example, `my-project-123`).
163
+ # Required.
164
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
189
165
  # @param [String] fields
190
166
  # Selector specifying which fields to include in a partial response.
191
167
  # @param [String] quota_user
@@ -195,35 +171,33 @@ module Google
195
171
  # Request-specific options
196
172
  #
197
173
  # @yield [result, err] Result & error if block supplied
198
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
174
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
199
175
  # @yieldparam err [StandardError] error object if request failed
200
176
  #
201
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
177
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
202
178
  #
203
179
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
204
180
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
205
181
  # @raise [Google::Apis::AuthorizationError] Authorization is required
206
- def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
207
- command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
208
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
209
- command.request_object = set_iam_policy_request_object
210
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
211
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
212
- command.params['resource'] = resource unless resource.nil?
182
+ def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
183
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
184
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
185
+ command.request_object = get_ancestry_request_object
186
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
187
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
188
+ command.params['projectId'] = project_id unless project_id.nil?
213
189
  command.query['fields'] = fields unless fields.nil?
214
190
  command.query['quotaUser'] = quota_user unless quota_user.nil?
215
191
  execute_or_queue_command(command, &block)
216
192
  end
217
193
 
218
- # Creates a Project resource.
219
- # Initially, the Project resource is owned by its creator exclusively.
220
- # The creator can later grant permission to others to read or update the
221
- # Project.
222
- # Several APIs are activated automatically for the Project, including
223
- # Google Cloud Storage.
194
+ # Updates the attributes of the Project identified by the specified
195
+ # `project_id` (for example, `my-project-123`).
196
+ # The caller must have modify permissions for this Project.
197
+ # @param [String] project_id
198
+ # The project ID (for example, `my-project-123`).
199
+ # Required.
224
200
  # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
225
- # @param [Boolean] use_legacy_stack
226
- # A safety hatch to opt out of the new reliable project creation process.
227
201
  # @param [String] fields
228
202
  # Selector specifying which fields to include in a partial response.
229
203
  # @param [String] quota_user
@@ -241,24 +215,23 @@ module Google
241
215
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
242
216
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
243
217
  # @raise [Google::Apis::AuthorizationError] Authorization is required
244
- def create_project(project_object = nil, use_legacy_stack: nil, fields: nil, quota_user: nil, options: nil, &block)
245
- command = make_simple_command(:post, 'v1beta1/projects', options)
218
+ def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
219
+ command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
246
220
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
247
221
  command.request_object = project_object
248
222
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
249
223
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
250
- command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
224
+ command.params['projectId'] = project_id unless project_id.nil?
251
225
  command.query['fields'] = fields unless fields.nil?
252
226
  command.query['quotaUser'] = quota_user unless quota_user.nil?
253
227
  execute_or_queue_command(command, &block)
254
228
  end
255
229
 
256
- # Returns the IAM access control policy for the specified Project.
257
- # Permission is denied if the policy or the resource does not exist.
230
+ # Returns permissions that a caller has on the specified Project.
258
231
  # @param [String] resource
259
- # REQUIRED: The resource for which the policy is being requested.
232
+ # REQUIRED: The resource for which the policy detail is being requested.
260
233
  # See the operation documentation for the appropriate value for this field.
261
- # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
234
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
262
235
  # @param [String] fields
263
236
  # Selector specifying which fields to include in a partial response.
264
237
  # @param [String] quota_user
@@ -268,36 +241,48 @@ module Google
268
241
  # Request-specific options
269
242
  #
270
243
  # @yield [result, err] Result & error if block supplied
271
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
244
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
272
245
  # @yieldparam err [StandardError] error object if request failed
273
246
  #
274
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
247
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
275
248
  #
276
249
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
277
250
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
278
251
  # @raise [Google::Apis::AuthorizationError] Authorization is required
279
- def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
280
- command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
281
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
282
- command.request_object = get_iam_policy_request_object
283
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
284
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
252
+ def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
253
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
254
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
255
+ command.request_object = test_iam_permissions_request_object
256
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
257
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
285
258
  command.params['resource'] = resource unless resource.nil?
286
259
  command.query['fields'] = fields unless fields.nil?
287
260
  command.query['quotaUser'] = quota_user unless quota_user.nil?
288
261
  execute_or_queue_command(command, &block)
289
262
  end
290
263
 
291
- # Restores the Project identified by the specified
292
- # `project_id` (for example, `my-project-123`).
293
- # You can only use this method for a Project that has a lifecycle state of
294
- # DELETE_REQUESTED.
295
- # After deletion starts, the Project cannot be restored.
264
+ # Marks the Project identified by the specified
265
+ # `project_id` (for example, `my-project-123`) for deletion.
266
+ # This method will only affect the Project if the following criteria are met:
267
+ # + The Project does not have a billing account associated with it.
268
+ # + The Project has a lifecycle state of
269
+ # ACTIVE.
270
+ # This method changes the Project's lifecycle state from
271
+ # ACTIVE
272
+ # to DELETE_REQUESTED.
273
+ # The deletion starts at an unspecified time, at which point the project is
274
+ # no longer accessible.
275
+ # Until the deletion completes, you can check the lifecycle state
276
+ # checked by retrieving the Project with GetProject,
277
+ # and the Project remains visible to ListProjects.
278
+ # However, you cannot update the project.
279
+ # After the deletion completes, the Project is not retrievable by
280
+ # the GetProject and
281
+ # ListProjects methods.
296
282
  # The caller must have modify permissions for this Project.
297
283
  # @param [String] project_id
298
- # The project ID (for example, `foo-bar-123`).
284
+ # The Project ID (for example, `foo-bar-123`).
299
285
  # Required.
300
- # @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
301
286
  # @param [String] fields
302
287
  # Selector specifying which fields to include in a partial response.
303
288
  # @param [String] quota_user
@@ -315,10 +300,8 @@ module Google
315
300
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
316
301
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
317
302
  # @raise [Google::Apis::AuthorizationError] Authorization is required
318
- def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
319
- command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
320
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
321
- command.request_object = undelete_project_request_object
303
+ def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
304
+ command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
322
305
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
323
306
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
324
307
  command.params['projectId'] = project_id unless project_id.nil?
@@ -327,12 +310,36 @@ module Google
327
310
  execute_or_queue_command(command, &block)
328
311
  end
329
312
 
330
- # Retrieves the Project identified by the specified
331
- # `project_id` (for example, `my-project-123`).
332
- # The caller must have read permissions for this Project.
333
- # @param [String] project_id
334
- # The Project ID (for example, `my-project-123`).
335
- # Required.
313
+ # Lists Projects that are visible to the user and satisfy the
314
+ # specified filter. This method returns Projects in an unspecified order.
315
+ # New Projects do not necessarily appear at the end of the list.
316
+ # @param [String] page_token
317
+ # A pagination token returned from a previous call to ListProjects
318
+ # that indicates from where listing should continue.
319
+ # Optional.
320
+ # @param [Fixnum] page_size
321
+ # The maximum number of Projects to return in the response.
322
+ # The server can return fewer Projects than requested.
323
+ # If unspecified, server picks an appropriate default.
324
+ # Optional.
325
+ # @param [String] filter
326
+ # An expression for filtering the results of the request. Filter rules are
327
+ # case insensitive. The fields eligible for filtering are:
328
+ # + `name`
329
+ # + `id`
330
+ # + <code>labels.<em>key</em></code> where *key* is the name of a label
331
+ # Some examples of using labels as filters:
332
+ # |Filter|Description|
333
+ # |------|-----------|
334
+ # |name:*|The project has a name.|
335
+ # |name:Howl|The project's name is `Howl` or `howl`.|
336
+ # |name:HOWL|Equivalent to above.|
337
+ # |NAME:howl|Equivalent to above.|
338
+ # |labels.color:*|The project has the label `color`.|
339
+ # |labels.color:red|The project's label `color` has the value `red`.|
340
+ # |labels.color:red&nbsp;labels.size:big|The project's label `color` has the
341
+ # value `red` and its label `size` has the value `big`.
342
+ # Optional.
336
343
  # @param [String] fields
337
344
  # Selector specifying which fields to include in a partial response.
338
345
  # @param [String] quota_user
@@ -342,31 +349,35 @@ module Google
342
349
  # Request-specific options
343
350
  #
344
351
  # @yield [result, err] Result & error if block supplied
345
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
352
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
346
353
  # @yieldparam err [StandardError] error object if request failed
347
354
  #
348
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
355
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
349
356
  #
350
357
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
351
358
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
352
359
  # @raise [Google::Apis::AuthorizationError] Authorization is required
353
- def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
354
- command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
355
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
356
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
357
- command.params['projectId'] = project_id unless project_id.nil?
360
+ def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
361
+ command = make_simple_command(:get, 'v1beta1/projects', options)
362
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
363
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
364
+ command.query['pageToken'] = page_token unless page_token.nil?
365
+ command.query['pageSize'] = page_size unless page_size.nil?
366
+ command.query['filter'] = filter unless filter.nil?
358
367
  command.query['fields'] = fields unless fields.nil?
359
368
  command.query['quotaUser'] = quota_user unless quota_user.nil?
360
369
  execute_or_queue_command(command, &block)
361
370
  end
362
371
 
363
- # Updates the attributes of the Project identified by the specified
364
- # `project_id` (for example, `my-project-123`).
365
- # The caller must have modify permissions for this Project.
366
- # @param [String] project_id
367
- # The project ID (for example, `my-project-123`).
368
- # Required.
372
+ # Creates a Project resource.
373
+ # Initially, the Project resource is owned by its creator exclusively.
374
+ # The creator can later grant permission to others to read or update the
375
+ # Project.
376
+ # Several APIs are activated automatically for the Project, including
377
+ # Google Cloud Storage.
369
378
  # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
379
+ # @param [Boolean] use_legacy_stack
380
+ # A safety hatch to opt out of the new reliable project creation process.
370
381
  # @param [String] fields
371
382
  # Selector specifying which fields to include in a partial response.
372
383
  # @param [String] quota_user
@@ -384,25 +395,49 @@ module Google
384
395
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
385
396
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
386
397
  # @raise [Google::Apis::AuthorizationError] Authorization is required
387
- def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
388
- command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
398
+ def create_project(project_object = nil, use_legacy_stack: nil, fields: nil, quota_user: nil, options: nil, &block)
399
+ command = make_simple_command(:post, 'v1beta1/projects', options)
389
400
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
390
401
  command.request_object = project_object
391
402
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
392
403
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
393
- command.params['projectId'] = project_id unless project_id.nil?
404
+ command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
394
405
  command.query['fields'] = fields unless fields.nil?
395
406
  command.query['quotaUser'] = quota_user unless quota_user.nil?
396
407
  execute_or_queue_command(command, &block)
397
408
  end
398
409
 
399
- # Gets a list of ancestors in the resource hierarchy for the Project
400
- # identified by the specified `project_id` (for example, `my-project-123`).
401
- # The caller must have read permissions for this Project.
402
- # @param [String] project_id
403
- # The Project ID (for example, `my-project-123`).
404
- # Required.
405
- # @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
410
+ # Sets the IAM access control policy for the specified Project. Replaces
411
+ # any existing policy.
412
+ # The following constraints apply when using `setIamPolicy()`:
413
+ # + Project does not support `allUsers` and `allAuthenticatedUsers` as
414
+ # `members` in a `Binding` of a `Policy`.
415
+ # + The owner role can be granted only to `user` and `serviceAccount`.
416
+ # + Service accounts can be made owners of a project directly
417
+ # without any restrictions. However, to be added as an owner, a user must be
418
+ # invited via Cloud Platform console and must accept the invitation.
419
+ # + A user cannot be granted the owner role using `setIamPolicy()`. The user
420
+ # must be granted the owner role using the Cloud Platform Console and must
421
+ # explicitly accept the invitation.
422
+ # + Invitations to grant the owner role cannot be sent using
423
+ # `setIamPolicy()`; they must be sent only using the Cloud Platform Console.
424
+ # + Membership changes that leave the project without any owners that have
425
+ # accepted the Terms of Service (ToS) will be rejected.
426
+ # + There must be at least one owner who has accepted the Terms of
427
+ # Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
428
+ # remove the last ToS-accepted owner from the policy will fail. This
429
+ # restriction also applies to legacy projects that no longer have owners
430
+ # who have accepted the ToS. Edits to IAM policies will be rejected until
431
+ # the lack of a ToS-accepting owner is rectified.
432
+ # + Calling this method requires enabling the App Engine Admin API.
433
+ # Note: Removing service accounts from policies or changing their roles
434
+ # can render services completely inoperable. It is important to understand
435
+ # how the service account is being used before removing or updating its
436
+ # roles.
437
+ # @param [String] resource
438
+ # REQUIRED: The resource for which the policy is being specified.
439
+ # See the operation documentation for the appropriate value for this field.
440
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
406
441
  # @param [String] fields
407
442
  # Selector specifying which fields to include in a partial response.
408
443
  # @param [String] quota_user
@@ -412,31 +447,47 @@ module Google
412
447
  # Request-specific options
413
448
  #
414
449
  # @yield [result, err] Result & error if block supplied
415
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
450
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
416
451
  # @yieldparam err [StandardError] error object if request failed
417
452
  #
418
- # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
453
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
419
454
  #
420
455
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
421
456
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
422
457
  # @raise [Google::Apis::AuthorizationError] Authorization is required
423
- def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
424
- command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
425
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
426
- command.request_object = get_ancestry_request_object
427
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
428
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
429
- command.params['projectId'] = project_id unless project_id.nil?
458
+ def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
459
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
460
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
461
+ command.request_object = set_iam_policy_request_object
462
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
463
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
464
+ command.params['resource'] = resource unless resource.nil?
430
465
  command.query['fields'] = fields unless fields.nil?
431
466
  command.query['quotaUser'] = quota_user unless quota_user.nil?
432
467
  execute_or_queue_command(command, &block)
433
468
  end
434
469
 
435
- # Returns permissions that a caller has on the specified Project.
436
- # @param [String] resource
437
- # REQUIRED: The resource for which the policy detail is being requested.
438
- # See the operation documentation for the appropriate value for this field.
439
- # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
470
+ # Lists Organization resources that are visible to the user and satisfy
471
+ # the specified filter. This method returns Organizations in an unspecified
472
+ # order. New Organizations do not necessarily appear at the end of the list.
473
+ # @param [String] page_token
474
+ # A pagination token returned from a previous call to `ListOrganizations`
475
+ # that indicates from where listing should continue.
476
+ # This field is optional.
477
+ # @param [Fixnum] page_size
478
+ # The maximum number of Organizations to return in the response.
479
+ # This field is optional.
480
+ # @param [String] filter
481
+ # An optional query string used to filter the Organizations to return in
482
+ # the response. Filter rules are case-insensitive.
483
+ # Organizations may be filtered by `owner.directoryCustomerId` or by
484
+ # `domain`, where the domain is a Google for Work domain, for example:
485
+ # |Filter|Description|
486
+ # |------|-----------|
487
+ # |owner.directorycustomerid:123456789|Organizations with `owner.
488
+ # directory_customer_id` equal to `123456789`.|
489
+ # |domain:google.com|Organizations corresponding to the domain `google.com`.|
490
+ # This field is optional.
440
491
  # @param [String] fields
441
492
  # Selector specifying which fields to include in a partial response.
442
493
  # @param [String] quota_user
@@ -446,21 +497,21 @@ module Google
446
497
  # Request-specific options
447
498
  #
448
499
  # @yield [result, err] Result & error if block supplied
449
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
500
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
450
501
  # @yieldparam err [StandardError] error object if request failed
451
502
  #
452
- # @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
503
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
453
504
  #
454
505
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
455
506
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
456
507
  # @raise [Google::Apis::AuthorizationError] Authorization is required
457
- def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
458
- command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
459
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
460
- command.request_object = test_iam_permissions_request_object
461
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
462
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
463
- command.params['resource'] = resource unless resource.nil?
508
+ def list_organizations(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
509
+ command = make_simple_command(:get, 'v1beta1/organizations', options)
510
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
511
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
512
+ command.query['pageToken'] = page_token unless page_token.nil?
513
+ command.query['pageSize'] = page_size unless page_size.nil?
514
+ command.query['filter'] = filter unless filter.nil?
464
515
  command.query['fields'] = fields unless fields.nil?
465
516
  command.query['quotaUser'] = quota_user unless quota_user.nil?
466
517
  execute_or_queue_command(command, &block)
@@ -642,56 +693,6 @@ module Google
642
693
  command.query['quotaUser'] = quota_user unless quota_user.nil?
643
694
  execute_or_queue_command(command, &block)
644
695
  end
645
-
646
- # Lists Organization resources that are visible to the user and satisfy
647
- # the specified filter. This method returns Organizations in an unspecified
648
- # order. New Organizations do not necessarily appear at the end of the list.
649
- # @param [String] filter
650
- # An optional query string used to filter the Organizations to return in
651
- # the response. Filter rules are case-insensitive.
652
- # Organizations may be filtered by `owner.directoryCustomerId` or by
653
- # `domain`, where the domain is a Google for Work domain, for example:
654
- # |Filter|Description|
655
- # |------|-----------|
656
- # |owner.directorycustomerid:123456789|Organizations with `owner.
657
- # directory_customer_id` equal to `123456789`.|
658
- # |domain:google.com|Organizations corresponding to the domain `google.com`.|
659
- # This field is optional.
660
- # @param [String] page_token
661
- # A pagination token returned from a previous call to `ListOrganizations`
662
- # that indicates from where listing should continue.
663
- # This field is optional.
664
- # @param [Fixnum] page_size
665
- # The maximum number of Organizations to return in the response.
666
- # This field is optional.
667
- # @param [String] fields
668
- # Selector specifying which fields to include in a partial response.
669
- # @param [String] quota_user
670
- # Available to use for quota purposes for server-side applications. Can be any
671
- # arbitrary string assigned to a user, but should not exceed 40 characters.
672
- # @param [Google::Apis::RequestOptions] options
673
- # Request-specific options
674
- #
675
- # @yield [result, err] Result & error if block supplied
676
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
677
- # @yieldparam err [StandardError] error object if request failed
678
- #
679
- # @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
680
- #
681
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
682
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
683
- # @raise [Google::Apis::AuthorizationError] Authorization is required
684
- def list_organizations(filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
685
- command = make_simple_command(:get, 'v1beta1/organizations', options)
686
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
687
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
688
- command.query['filter'] = filter unless filter.nil?
689
- command.query['pageToken'] = page_token unless page_token.nil?
690
- command.query['pageSize'] = page_size unless page_size.nil?
691
- command.query['fields'] = fields unless fields.nil?
692
- command.query['quotaUser'] = quota_user unless quota_user.nil?
693
- execute_or_queue_command(command, &block)
694
- end
695
696
 
696
697
  protected
697
698