google-api-client 0.9.pre3 → 0.9.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -26,6 +26,10 @@ module Google
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
  end
28
28
 
29
+ class ResourceId
30
+ class Representation < Google::Apis::Core::JsonRepresentation; end
31
+ end
32
+
29
33
  class ListProjectsResponse
30
34
  class Representation < Google::Apis::Core::JsonRepresentation; end
31
35
  end
@@ -46,39 +50,27 @@ module Google
46
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
47
51
  end
48
52
 
49
- class Rule
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
- end
52
-
53
- class Condition
54
- class Representation < Google::Apis::Core::JsonRepresentation; end
55
- end
56
-
57
- class LogConfig
53
+ class SetIamPolicyRequest
58
54
  class Representation < Google::Apis::Core::JsonRepresentation; end
59
55
  end
60
56
 
61
- class CounterOptions
57
+ class TestIamPermissionsRequest
62
58
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
59
  end
64
60
 
65
- class DataAccessOptions
61
+ class TestIamPermissionsResponse
66
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
67
63
  end
68
64
 
69
- class CloudAuditOptions
65
+ class ListOrganizationsResponse
70
66
  class Representation < Google::Apis::Core::JsonRepresentation; end
71
67
  end
72
68
 
73
- class SetIamPolicyRequest
69
+ class Organization
74
70
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
71
  end
76
72
 
77
- class TestIamPermissionsRequest
78
- class Representation < Google::Apis::Core::JsonRepresentation; end
79
- end
80
-
81
- class TestIamPermissionsResponse
73
+ class OrganizationOwner
82
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
83
75
  end
84
76
 
@@ -91,6 +83,16 @@ module Google
91
83
  property :name, as: 'name'
92
84
  property :create_time, as: 'createTime'
93
85
  hash :labels, as: 'labels'
86
+ property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
87
+
88
+ end
89
+ end
90
+
91
+ class ResourceId
92
+ # @private
93
+ class Representation < Google::Apis::Core::JsonRepresentation
94
+ property :type, as: 'type'
95
+ property :id, as: 'id'
94
96
  end
95
97
  end
96
98
 
@@ -121,8 +123,6 @@ module Google
121
123
  property :version, as: 'version'
122
124
  collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
123
125
 
124
- collection :rules, as: 'rules', class: Google::Apis::CloudresourcemanagerV1beta1::Rule, decorator: Google::Apis::CloudresourcemanagerV1beta1::Rule::Representation
125
-
126
126
  property :etag, :base64 => true, as: 'etag'
127
127
  end
128
128
  end
@@ -135,84 +135,52 @@ module Google
135
135
  end
136
136
  end
137
137
 
138
- class Rule
138
+ class SetIamPolicyRequest
139
139
  # @private
140
140
  class Representation < Google::Apis::Core::JsonRepresentation
141
- property :description, as: 'description'
142
- collection :permissions, as: 'permissions'
143
- property :action, as: 'action'
144
- collection :in, as: 'in'
145
- collection :not_in, as: 'notIn'
146
- collection :conditions, as: 'conditions', class: Google::Apis::CloudresourcemanagerV1beta1::Condition, decorator: Google::Apis::CloudresourcemanagerV1beta1::Condition::Representation
147
-
148
- collection :log_config, as: 'logConfig', class: Google::Apis::CloudresourcemanagerV1beta1::LogConfig, decorator: Google::Apis::CloudresourcemanagerV1beta1::LogConfig::Representation
149
-
150
- end
151
- end
141
+ property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
152
142
 
153
- class Condition
154
- # @private
155
- class Representation < Google::Apis::Core::JsonRepresentation
156
- property :iam, as: 'iam'
157
- property :sys, as: 'sys'
158
- property :svc, as: 'svc'
159
- property :op, as: 'op'
160
- property :value, as: 'value'
161
- collection :values, as: 'values'
162
143
  end
163
144
  end
164
145
 
165
- class LogConfig
146
+ class TestIamPermissionsRequest
166
147
  # @private
167
148
  class Representation < Google::Apis::Core::JsonRepresentation
168
- property :counter, as: 'counter', class: Google::Apis::CloudresourcemanagerV1beta1::CounterOptions, decorator: Google::Apis::CloudresourcemanagerV1beta1::CounterOptions::Representation
169
-
170
- property :data_access, as: 'dataAccess', class: Google::Apis::CloudresourcemanagerV1beta1::DataAccessOptions, decorator: Google::Apis::CloudresourcemanagerV1beta1::DataAccessOptions::Representation
171
-
172
- property :cloud_audit, as: 'cloudAudit', class: Google::Apis::CloudresourcemanagerV1beta1::CloudAuditOptions, decorator: Google::Apis::CloudresourcemanagerV1beta1::CloudAuditOptions::Representation
173
-
149
+ collection :permissions, as: 'permissions'
174
150
  end
175
151
  end
176
152
 
177
- class CounterOptions
153
+ class TestIamPermissionsResponse
178
154
  # @private
179
155
  class Representation < Google::Apis::Core::JsonRepresentation
180
- property :metric, as: 'metric'
181
- property :field, as: 'field'
156
+ collection :permissions, as: 'permissions'
182
157
  end
183
158
  end
184
159
 
185
- class DataAccessOptions
160
+ class ListOrganizationsResponse
186
161
  # @private
187
162
  class Representation < Google::Apis::Core::JsonRepresentation
188
- end
189
- end
163
+ collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
190
164
 
191
- class CloudAuditOptions
192
- # @private
193
- class Representation < Google::Apis::Core::JsonRepresentation
165
+ property :next_page_token, as: 'nextPageToken'
194
166
  end
195
167
  end
196
168
 
197
- class SetIamPolicyRequest
169
+ class Organization
198
170
  # @private
199
171
  class Representation < Google::Apis::Core::JsonRepresentation
200
- property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
201
-
202
- end
203
- end
172
+ property :organization_id, as: 'organizationId'
173
+ property :display_name, as: 'displayName'
174
+ property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
204
175
 
205
- class TestIamPermissionsRequest
206
- # @private
207
- class Representation < Google::Apis::Core::JsonRepresentation
208
- collection :permissions, as: 'permissions'
176
+ property :creation_time, as: 'creationTime'
209
177
  end
210
178
  end
211
179
 
212
- class TestIamPermissionsResponse
180
+ class OrganizationOwner
213
181
  # @private
214
182
  class Representation < Google::Apis::Core::JsonRepresentation
215
- collection :permissions, as: 'permissions'
183
+ property :directory_customer_id, as: 'directoryCustomerId'
216
184
  end
217
185
  end
218
186
  end
@@ -23,7 +23,7 @@ module Google
23
23
  # Google Cloud Resource Manager API
24
24
  #
25
25
  # The Google Cloud Resource Manager API provides methods for creating, reading,
26
- # and updating of project metadata.
26
+ # and updating project metadata.
27
27
  #
28
28
  # @example
29
29
  # require 'google/apis/cloudresourcemanager_v1beta1'
@@ -47,10 +47,10 @@ module Google
47
47
  super('https://cloudresourcemanager.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Creates a project resource. Initially, the project resource is owned by its
50
+ # Creates a Project resource. Initially, the Project resource is owned by its
51
51
  # creator exclusively. The creator can later grant permission to others to read
52
- # or update the project. Several APIs are activated automatically for the
53
- # project, including Google Cloud Storage.
52
+ # or update the Project. Several APIs are activated automatically for the
53
+ # Project, including Google Cloud Storage.
54
54
  # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
55
55
  # @param [String] fields
56
56
  # Selector specifying which fields to include in a partial response.
@@ -70,8 +70,7 @@ module Google
70
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
72
72
  def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
- path = 'v1beta1/projects'
74
- command = make_simple_command(:post, path, options)
73
+ command = make_simple_command(:post, 'v1beta1/projects', options)
75
74
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
76
75
  command.request_object = project_object
77
76
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
@@ -81,18 +80,16 @@ module Google
81
80
  execute_or_queue_command(command, &block)
82
81
  end
83
82
 
84
- # Lists projects that are visible to the user and satisfy the specified filter.
85
- # This method returns projects in an unspecified order. New projects do not
83
+ # Lists Projects that are visible to the user and satisfy the specified filter.
84
+ # This method returns Projects in an unspecified order. New Projects do not
86
85
  # necessarily appear at the end of the list.
87
86
  # @param [String] page_token
88
- # A pagination token returned from a previous call to ListProject that indicates
89
- # from where listing should continue. Note: pagination is not yet supported; the
90
- # server ignores this field. Optional.
87
+ # A pagination token returned from a previous call to ListProjects that
88
+ # indicates from where listing should continue. Optional.
91
89
  # @param [Fixnum] page_size
92
90
  # The maximum number of Projects to return in the response. The server can
93
- # return fewer projects than requested. If unspecified, server picks an
94
- # appropriate default. Note: pagination is not yet supported; the server ignores
95
- # this field. Optional.
91
+ # return fewer Projects than requested. If unspecified, server picks an
92
+ # appropriate default. Optional.
96
93
  # @param [String] filter
97
94
  # An expression for filtering the results of the request. Filter rules are case
98
95
  # insensitive. The fields eligible for filtering are: + `name` + `id` + labels.
@@ -121,8 +118,7 @@ module Google
121
118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
122
119
  # @raise [Google::Apis::AuthorizationError] Authorization is required
123
120
  def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
124
- path = 'v1beta1/projects'
125
- command = make_simple_command(:get, path, options)
121
+ command = make_simple_command(:get, 'v1beta1/projects', options)
126
122
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
127
123
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
128
124
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -133,10 +129,10 @@ module Google
133
129
  execute_or_queue_command(command, &block)
134
130
  end
135
131
 
136
- # Retrieves the project identified by the specified `project_id` (for example, `
137
- # my-project-123`). The caller must have read permissions for this project.
132
+ # Retrieves the Project identified by the specified `project_id` (for example, `
133
+ # my-project-123`). The caller must have read permissions for this Project.
138
134
  # @param [String] project_id
139
- # The project ID (for example, `my-project-123`). Required.
135
+ # The Project ID (for example, `my-project-123`). Required.
140
136
  # @param [String] fields
141
137
  # Selector specifying which fields to include in a partial response.
142
138
  # @param [String] quota_user
@@ -155,8 +151,7 @@ module Google
155
151
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
152
  # @raise [Google::Apis::AuthorizationError] Authorization is required
157
153
  def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
158
- path = 'v1beta1/projects/{projectId}'
159
- command = make_simple_command(:get, path, options)
154
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
160
155
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
161
156
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
162
157
  command.params['projectId'] = project_id unless project_id.nil?
@@ -165,9 +160,9 @@ module Google
165
160
  execute_or_queue_command(command, &block)
166
161
  end
167
162
 
168
- # Updates the attributes of the project identified by the specified `project_id`
163
+ # Updates the attributes of the Project identified by the specified `project_id`
169
164
  # (for example, `my-project-123`). The caller must have modify permissions for
170
- # this project.
165
+ # this Project.
171
166
  # @param [String] project_id
172
167
  # The project ID (for example, `my-project-123`). Required.
173
168
  # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
@@ -189,8 +184,7 @@ module Google
189
184
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
190
185
  # @raise [Google::Apis::AuthorizationError] Authorization is required
191
186
  def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
192
- path = 'v1beta1/projects/{projectId}'
193
- command = make_simple_command(:put, path, options)
187
+ command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
194
188
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
195
189
  command.request_object = project_object
196
190
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
@@ -201,29 +195,20 @@ module Google
201
195
  execute_or_queue_command(command, &block)
202
196
  end
203
197
 
204
- # Marks the project identified by the specified `project_id` (for example, `my-
205
- # project-123`) for deletion. This method will only affect the project if the
206
- # following criteria are met: + The project does not have a billing account
207
- # associated with it. + The project has a lifecycle state of [ACTIVE][google.
208
- # cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE]. This method
209
- # changes the project's lifecycle state from [ACTIVE][google.
210
- # cloudresourcemanager.projects.v1beta1.LifecycleState.ACTIVE] to [
211
- # DELETE_REQUESTED] [google.cloudresourcemanager.projects.v1beta1.LifecycleState.
212
- # DELETE_REQUESTED]. The deletion starts at an unspecified time, at which point
213
- # the lifecycle state changes to [DELETE_IN_PROGRESS] [google.
214
- # cloudresourcemanager.projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS].
215
- # Until the deletion completes, you can check the lifecycle state checked by
216
- # retrieving the project with [GetProject] [google.cloudresourcemanager.projects.
217
- # v1beta1.DeveloperProjects.GetProject], and the project remains visible to [
218
- # ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.
219
- # ListProjects]. However, you cannot update the project. After the deletion
220
- # completes, the project is not retrievable by the [GetProject] [google.
221
- # cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject] and [
222
- # ListProjects] [google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.
223
- # ListProjects] methods. The caller must have modify permissions for this
224
- # project.
198
+ # Marks the Project identified by the specified `project_id` (for example, `my-
199
+ # project-123`) for deletion. This method will only affect the Project if the
200
+ # following criteria are met: + The Project does not have a billing account
201
+ # associated with it. + The Project has a lifecycle state of ACTIVE. This method
202
+ # changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The
203
+ # deletion starts at an unspecified time, at which point the lifecycle state
204
+ # changes to DELETE_IN_PROGRESS. Until the deletion completes, you can check the
205
+ # lifecycle state checked by retrieving the Project with GetProject, and the
206
+ # Project remains visible to ListProjects. However, you cannot update the
207
+ # project. After the deletion completes, the Project is not retrievable by the
208
+ # GetProject and ListProjects methods. The caller must have modify permissions
209
+ # for this Project.
225
210
  # @param [String] project_id
226
- # The project ID (for example, `foo-bar-123`). Required.
211
+ # The Project ID (for example, `foo-bar-123`). Required.
227
212
  # @param [String] fields
228
213
  # Selector specifying which fields to include in a partial response.
229
214
  # @param [String] quota_user
@@ -242,8 +227,7 @@ module Google
242
227
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
243
228
  # @raise [Google::Apis::AuthorizationError] Authorization is required
244
229
  def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
245
- path = 'v1beta1/projects/{projectId}'
246
- command = make_simple_command(:delete, path, options)
230
+ command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
247
231
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
248
232
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
249
233
  command.params['projectId'] = project_id unless project_id.nil?
@@ -252,13 +236,11 @@ module Google
252
236
  execute_or_queue_command(command, &block)
253
237
  end
254
238
 
255
- # Restores the project identified by the specified `project_id` (for example, `
256
- # my-project-123`). You can only use this method for a project that has a
257
- # lifecycle state of [DELETE_REQUESTED] [google.cloudresourcemanager.projects.
258
- # v1beta1.LifecycleState.DELETE_REQUESTED]. After deletion starts, as indicated
259
- # by a lifecycle state of [DELETE_IN_PROGRESS] [google.cloudresourcemanager.
260
- # projects.v1beta1.LifecycleState.DELETE_IN_PROGRESS], the project cannot be
261
- # restored. The caller must have modify permissions for this project.
239
+ # Restores the Project identified by the specified `project_id` (for example, `
240
+ # my-project-123`). You can only use this method for a Project that has a
241
+ # lifecycle state of DELETE_REQUESTED. After deletion starts, as indicated by a
242
+ # lifecycle state of DELETE_IN_PROGRESS, the Project cannot be restored. The
243
+ # caller must have modify permissions for this Project.
262
244
  # @param [String] project_id
263
245
  # The project ID (for example, `foo-bar-123`). Required.
264
246
  # @param [String] fields
@@ -279,8 +261,7 @@ module Google
279
261
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
280
262
  # @raise [Google::Apis::AuthorizationError] Authorization is required
281
263
  def undelete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
282
- path = 'v1beta1/projects/{projectId}:undelete'
283
- command = make_simple_command(:post, path, options)
264
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
284
265
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
285
266
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
286
267
  command.params['projectId'] = project_id unless project_id.nil?
@@ -289,10 +270,13 @@ module Google
289
270
  execute_or_queue_command(command, &block)
290
271
  end
291
272
 
292
- # Returns the IAM access control policy for specified project.
273
+ # Returns the IAM access control policy for the specified Project. Permission is
274
+ # denied if the policy or the resource does not exist.
293
275
  # @param [String] resource
294
- # REQUIRED: The resource for which policy is being requested. Resource is
295
- # usually specified as a path, such as, projects/`project`.
276
+ # REQUIRED: The resource for which policy is being requested. `resource` is
277
+ # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
278
+ # disk``. The format for the path specified in this value is resource specific
279
+ # and is specified in the `getIamPolicy` documentation.
296
280
  # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
297
281
  # @param [String] fields
298
282
  # Selector specifying which fields to include in a partial response.
@@ -311,9 +295,8 @@ module Google
311
295
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
312
296
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
313
297
  # @raise [Google::Apis::AuthorizationError] Authorization is required
314
- def get_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
315
- path = 'v1beta1/projects/{resource}:getIamPolicy'
316
- command = make_simple_command(:post, path, options)
298
+ def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
299
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
317
300
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
318
301
  command.request_object = get_iam_policy_request_object
319
302
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
@@ -324,13 +307,24 @@ module Google
324
307
  execute_or_queue_command(command, &block)
325
308
  end
326
309
 
327
- # Sets the IAM access control policy for the specified project. We do not
328
- # currently support 'domain:' prefixed members in a Binding of a Policy. Calling
329
- # this method requires enabling the App Engine Admin API.
310
+ # Sets the IAM access control policy for the specified Project. Replaces any
311
+ # existing policy. The following constraints apply when using `setIamPolicy()`: +
312
+ # Project currently supports only `user:`emailid`` and `serviceAccount:`emailid`
313
+ # ` members in a `Binding` of a `Policy`. + To be added as an `owner`, a user
314
+ # must be invited via Cloud Platform console and must accept the invitation. +
315
+ # Members cannot be added to more than one role in the same policy. + There must
316
+ # be at least one owner who has accepted the Terms of Service (ToS) agreement in
317
+ # the policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner
318
+ # from the policy will fail. + Calling this method requires enabling the App
319
+ # Engine Admin API. Note: Removing service accounts from policies or changing
320
+ # their roles can render services completely inoperable. It is important to
321
+ # understand how the service account is being used before removing or updating
322
+ # its roles.
330
323
  # @param [String] resource
331
- # REQUIRED: The resource for which policy is being specified. Resource is
332
- # usually specified as a path, such as, projects/`project`/zones/`zone`/disks/`
333
- # disk`.
324
+ # REQUIRED: The resource for which policy is being specified. `resource` is
325
+ # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
326
+ # disk``. The format for the path specified in this value is resource specific
327
+ # and is specified in the `setIamPolicy` documentation.
334
328
  # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
335
329
  # @param [String] fields
336
330
  # Selector specifying which fields to include in a partial response.
@@ -349,9 +343,8 @@ module Google
349
343
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
350
344
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
351
345
  # @raise [Google::Apis::AuthorizationError] Authorization is required
352
- def set_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
353
- path = 'v1beta1/projects/{resource}:setIamPolicy'
354
- command = make_simple_command(:post, path, options)
346
+ def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
347
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
355
348
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
356
349
  command.request_object = set_iam_policy_request_object
357
350
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
@@ -362,11 +355,232 @@ module Google
362
355
  execute_or_queue_command(command, &block)
363
356
  end
364
357
 
365
- # Tests the specified permissions against the IAM access control policy for the
366
- # specified project.
358
+ # Returns permissions that a caller has on the specified Project.
359
+ # @param [String] resource
360
+ # REQUIRED: The resource for which policy detail is being requested. `resource`
361
+ # is usually specified as a path, such as, `projects/`project`/zones/`zone`/
362
+ # disks/`disk``. The format for the path specified in this value is resource
363
+ # specific and is specified in the `testIamPermissions` documentation. rpc.
364
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
365
+ # @param [String] fields
366
+ # Selector specifying which fields to include in a partial response.
367
+ # @param [String] quota_user
368
+ # Available to use for quota purposes for server-side applications. Can be any
369
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
370
+ # @param [Google::Apis::RequestOptions] options
371
+ # Request-specific options
372
+ #
373
+ # @yield [result, err] Result & error if block supplied
374
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse] parsed result object
375
+ # @yieldparam err [StandardError] error object if request failed
376
+ #
377
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse]
378
+ #
379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
382
+ def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
383
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
384
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
385
+ command.request_object = test_iam_permissions_request_object
386
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
387
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
388
+ command.params['resource'] = resource unless resource.nil?
389
+ command.query['fields'] = fields unless fields.nil?
390
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
391
+ execute_or_queue_command(command, &block)
392
+ end
393
+
394
+ # Lists Organization resources that are visible to the user and satisfy the
395
+ # specified filter. This method returns Organizations in an unspecified order.
396
+ # New Organizations do not necessarily appear at the end of the list.
397
+ # @param [Fixnum] page_size
398
+ # The maximum number of Organizations to return in the response. This field is
399
+ # optional.
400
+ # @param [String] page_token
401
+ # A pagination token returned from a previous call to `ListOrganizations` that
402
+ # indicates from where listing should continue. This field is optional.
403
+ # @param [String] filter
404
+ # An optional query string used to filter the Organizations to return in the
405
+ # response. Filter rules are case-insensitive. Organizations may be filtered by `
406
+ # owner.directoryCustomerId` or by `domain`, where the domain is a Google for
407
+ # Work domain, for example: |Filter|Description| |------|-----------| |owner.
408
+ # directorycustomerid:123456789|Organizations with `owner.directory_customer_id`
409
+ # equal to `123456789`.| |domain:google.com|Organizations corresponding to the
410
+ # domain `google.com`.| This field is optional.
411
+ # @param [String] fields
412
+ # Selector specifying which fields to include in a partial response.
413
+ # @param [String] quota_user
414
+ # Available to use for quota purposes for server-side applications. Can be any
415
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
416
+ # @param [Google::Apis::RequestOptions] options
417
+ # Request-specific options
418
+ #
419
+ # @yield [result, err] Result & error if block supplied
420
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse] parsed result object
421
+ # @yieldparam err [StandardError] error object if request failed
422
+ #
423
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse]
424
+ #
425
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
426
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
427
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
428
+ def list_organizations(page_size: nil, page_token: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
429
+ command = make_simple_command(:get, 'v1beta1/organizations', options)
430
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
431
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
432
+ command.query['pageSize'] = page_size unless page_size.nil?
433
+ command.query['pageToken'] = page_token unless page_token.nil?
434
+ command.query['filter'] = filter unless filter.nil?
435
+ command.query['fields'] = fields unless fields.nil?
436
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
437
+ execute_or_queue_command(command, &block)
438
+ end
439
+
440
+ # Fetches an Organization resource identified by the specified `organization_id`.
441
+ # @param [String] organization_id
442
+ # The id of the Organization resource to fetch.
443
+ # @param [String] fields
444
+ # Selector specifying which fields to include in a partial response.
445
+ # @param [String] quota_user
446
+ # Available to use for quota purposes for server-side applications. Can be any
447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
448
+ # @param [Google::Apis::RequestOptions] options
449
+ # Request-specific options
450
+ #
451
+ # @yield [result, err] Result & error if block supplied
452
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
453
+ # @yieldparam err [StandardError] error object if request failed
454
+ #
455
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
456
+ #
457
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
458
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
459
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
460
+ def get_organization(organization_id, fields: nil, quota_user: nil, options: nil, &block)
461
+ command = make_simple_command(:get, 'v1beta1/organizations/{organizationId}', options)
462
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
463
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
464
+ command.params['organizationId'] = organization_id unless organization_id.nil?
465
+ command.query['fields'] = fields unless fields.nil?
466
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
467
+ execute_or_queue_command(command, &block)
468
+ end
469
+
470
+ # Updates an Organization resource identified by the specified `organization_id`.
471
+ # @param [String] organization_id
472
+ # An immutable id for the Organization that is assigned on creation. This should
473
+ # be omitted when creating a new Organization. This field is read-only.
474
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
475
+ # @param [String] fields
476
+ # Selector specifying which fields to include in a partial response.
477
+ # @param [String] quota_user
478
+ # Available to use for quota purposes for server-side applications. Can be any
479
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
480
+ # @param [Google::Apis::RequestOptions] options
481
+ # Request-specific options
482
+ #
483
+ # @yield [result, err] Result & error if block supplied
484
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Organization] parsed result object
485
+ # @yieldparam err [StandardError] error object if request failed
486
+ #
487
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Organization]
488
+ #
489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
492
+ def update_organization(organization_id, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block)
493
+ command = make_simple_command(:put, 'v1beta1/organizations/{organizationId}', options)
494
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
495
+ command.request_object = organization_object
496
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
497
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
498
+ command.params['organizationId'] = organization_id unless organization_id.nil?
499
+ command.query['fields'] = fields unless fields.nil?
500
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
501
+ execute_or_queue_command(command, &block)
502
+ end
503
+
504
+ # Sets the access control policy on an Organization resource. Replaces any
505
+ # existing policy.
506
+ # @param [String] resource
507
+ # REQUIRED: The resource for which policy is being specified. `resource` is
508
+ # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
509
+ # disk``. The format for the path specified in this value is resource specific
510
+ # and is specified in the `setIamPolicy` documentation.
511
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
512
+ # @param [String] fields
513
+ # Selector specifying which fields to include in a partial response.
514
+ # @param [String] quota_user
515
+ # Available to use for quota purposes for server-side applications. Can be any
516
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
517
+ # @param [Google::Apis::RequestOptions] options
518
+ # Request-specific options
519
+ #
520
+ # @yield [result, err] Result & error if block supplied
521
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
522
+ # @yieldparam err [StandardError] error object if request failed
523
+ #
524
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
525
+ #
526
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
527
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
528
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
529
+ def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
530
+ command = make_simple_command(:post, 'v1beta1/organizations/{resource}:setIamPolicy', options)
531
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
532
+ command.request_object = set_iam_policy_request_object
533
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
534
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
535
+ command.params['resource'] = resource unless resource.nil?
536
+ command.query['fields'] = fields unless fields.nil?
537
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
538
+ execute_or_queue_command(command, &block)
539
+ end
540
+
541
+ # Gets the access control policy for an Organization resource. May be empty if
542
+ # no such policy or resource exists.
543
+ # @param [String] resource
544
+ # REQUIRED: The resource for which policy is being requested. `resource` is
545
+ # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
546
+ # disk``. The format for the path specified in this value is resource specific
547
+ # and is specified in the `getIamPolicy` documentation.
548
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
549
+ # @param [String] fields
550
+ # Selector specifying which fields to include in a partial response.
551
+ # @param [String] quota_user
552
+ # Available to use for quota purposes for server-side applications. Can be any
553
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
554
+ # @param [Google::Apis::RequestOptions] options
555
+ # Request-specific options
556
+ #
557
+ # @yield [result, err] Result & error if block supplied
558
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
559
+ # @yieldparam err [StandardError] error object if request failed
560
+ #
561
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
562
+ #
563
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
564
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
565
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
566
+ def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
567
+ command = make_simple_command(:post, 'v1beta1/organizations/{resource}:getIamPolicy', options)
568
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
569
+ command.request_object = get_iam_policy_request_object
570
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
571
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
572
+ command.params['resource'] = resource unless resource.nil?
573
+ command.query['fields'] = fields unless fields.nil?
574
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
575
+ execute_or_queue_command(command, &block)
576
+ end
577
+
578
+ # Returns permissions that a caller has on the specified Organization.
367
579
  # @param [String] resource
368
- # REQUIRED: The resource for which policy detail is being requested. Resource is
369
- # usually specified as a path, such as, projects/`project`.
580
+ # REQUIRED: The resource for which policy detail is being requested. `resource`
581
+ # is usually specified as a path, such as, `projects/`project`/zones/`zone`/
582
+ # disks/`disk``. The format for the path specified in this value is resource
583
+ # specific and is specified in the `testIamPermissions` documentation. rpc.
370
584
  # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
371
585
  # @param [String] fields
372
586
  # Selector specifying which fields to include in a partial response.
@@ -385,9 +599,8 @@ module Google
385
599
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
386
600
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
387
601
  # @raise [Google::Apis::AuthorizationError] Authorization is required
388
- def test_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
389
- path = 'v1beta1/projects/{resource}:testIamPermissions'
390
- command = make_simple_command(:post, path, options)
602
+ def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
603
+ command = make_simple_command(:post, 'v1beta1/organizations/{resource}:testIamPermissions', options)
391
604
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
392
605
  command.request_object = test_iam_permissions_request_object
393
606
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation