google-api-client 0.11.3 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/api_names.yaml +32317 -34465
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  14. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  15. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  19. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  20. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  21. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  22. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  23. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  24. data/generated/google/apis/analytics_v3/service.rb +82 -82
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
  27. data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
  28. data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
  29. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  30. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  31. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  32. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  33. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  34. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  35. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  36. data/generated/google/apis/appengine_v1.rb +1 -1
  37. data/generated/google/apis/appengine_v1/classes.rb +825 -817
  38. data/generated/google/apis/appengine_v1/representations.rb +185 -184
  39. data/generated/google/apis/appengine_v1/service.rb +220 -216
  40. data/generated/google/apis/appstate_v1.rb +1 -1
  41. data/generated/google/apis/bigquery_v2.rb +1 -1
  42. data/generated/google/apis/bigquery_v2/classes.rb +9 -7
  43. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  44. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  45. data/generated/google/apis/blogger_v3/service.rb +3 -3
  46. data/generated/google/apis/books_v1/classes.rb +55 -55
  47. data/generated/google/apis/books_v1/representations.rb +67 -67
  48. data/generated/google/apis/books_v1/service.rb +82 -82
  49. data/generated/google/apis/calendar_v3.rb +1 -1
  50. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  51. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  52. data/generated/google/apis/calendar_v3/service.rb +2 -2
  53. data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
  54. data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
  55. data/generated/google/apis/civicinfo_v2/service.rb +8 -8
  56. data/generated/google/apis/classroom_v1.rb +24 -24
  57. data/generated/google/apis/classroom_v1/classes.rb +381 -381
  58. data/generated/google/apis/classroom_v1/representations.rb +108 -108
  59. data/generated/google/apis/classroom_v1/service.rb +503 -503
  60. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  61. data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
  62. data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
  63. data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
  64. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  65. data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
  66. data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
  67. data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
  68. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  69. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
  70. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
  71. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
  72. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  73. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  74. data/generated/google/apis/cloudkms_v1.rb +3 -3
  75. data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
  76. data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
  77. data/generated/google/apis/cloudkms_v1/service.rb +224 -224
  78. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  79. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
  80. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
  81. data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
  85. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  88. data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
  89. data/generated/google/apis/compute_beta.rb +1 -1
  90. data/generated/google/apis/compute_beta/classes.rb +57 -15
  91. data/generated/google/apis/compute_beta/representations.rb +30 -14
  92. data/generated/google/apis/compute_beta/service.rb +52 -52
  93. data/generated/google/apis/compute_v1.rb +1 -1
  94. data/generated/google/apis/compute_v1/classes.rb +223 -10
  95. data/generated/google/apis/compute_v1/representations.rb +85 -16
  96. data/generated/google/apis/compute_v1/service.rb +327 -51
  97. data/generated/google/apis/container_v1/classes.rb +267 -267
  98. data/generated/google/apis/container_v1/representations.rb +61 -61
  99. data/generated/google/apis/container_v1/service.rb +123 -123
  100. data/generated/google/apis/content_v2.rb +1 -1
  101. data/generated/google/apis/content_v2/classes.rb +71 -71
  102. data/generated/google/apis/content_v2/representations.rb +105 -105
  103. data/generated/google/apis/content_v2/service.rb +120 -120
  104. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  105. data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
  106. data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
  107. data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
  108. data/generated/google/apis/dataproc_v1.rb +1 -1
  109. data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
  110. data/generated/google/apis/dataproc_v1/representations.rb +147 -147
  111. data/generated/google/apis/dataproc_v1/service.rb +309 -305
  112. data/generated/google/apis/datastore_v1.rb +1 -1
  113. data/generated/google/apis/datastore_v1/classes.rb +818 -818
  114. data/generated/google/apis/datastore_v1/representations.rb +151 -151
  115. data/generated/google/apis/datastore_v1/service.rb +62 -62
  116. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  117. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  118. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  119. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  120. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  121. data/generated/google/apis/discovery_v1/service.rb +1 -1
  122. data/generated/google/apis/dns_v1.rb +1 -1
  123. data/generated/google/apis/dns_v1/classes.rb +3 -3
  124. data/generated/google/apis/dns_v1/representations.rb +6 -6
  125. data/generated/google/apis/dns_v1/service.rb +12 -12
  126. data/generated/google/apis/dns_v2beta1.rb +1 -1
  127. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  128. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  129. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  130. data/generated/google/apis/drive_v2/service.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +188 -188
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
  136. data/generated/google/apis/firebaserules_v1.rb +1 -1
  137. data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
  138. data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
  139. data/generated/google/apis/firebaserules_v1/service.rb +89 -89
  140. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  143. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  144. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  145. data/generated/google/apis/games_management_v1management.rb +1 -1
  146. data/generated/google/apis/games_v1.rb +1 -1
  147. data/generated/google/apis/games_v1/classes.rb +23 -23
  148. data/generated/google/apis/games_v1/representations.rb +43 -43
  149. data/generated/google/apis/games_v1/service.rb +72 -72
  150. data/generated/google/apis/genomics_v1.rb +7 -7
  151. data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
  152. data/generated/google/apis/genomics_v1/representations.rb +298 -298
  153. data/generated/google/apis/genomics_v1/service.rb +1160 -1160
  154. data/generated/google/apis/groupssettings_v1/service.rb +0 -3
  155. data/generated/google/apis/iam_v1.rb +1 -1
  156. data/generated/google/apis/iam_v1/classes.rb +235 -235
  157. data/generated/google/apis/iam_v1/representations.rb +72 -72
  158. data/generated/google/apis/iam_v1/service.rb +189 -189
  159. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  160. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  161. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  162. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  163. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  164. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  165. data/generated/google/apis/language_v1/classes.rb +220 -220
  166. data/generated/google/apis/language_v1/representations.rb +81 -81
  167. data/generated/google/apis/language_v1/service.rb +43 -43
  168. data/generated/google/apis/language_v1beta1/classes.rb +448 -448
  169. data/generated/google/apis/language_v1beta1/representations.rb +106 -106
  170. data/generated/google/apis/language_v1beta1/service.rb +31 -31
  171. data/generated/google/apis/licensing_v1/service.rb +2 -2
  172. data/generated/google/apis/logging_v2/classes.rb +737 -737
  173. data/generated/google/apis/logging_v2/representations.rb +120 -120
  174. data/generated/google/apis/logging_v2/service.rb +479 -479
  175. data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
  176. data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
  177. data/generated/google/apis/logging_v2beta1/service.rb +349 -349
  178. data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
  179. data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
  180. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  181. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  182. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  183. data/generated/google/apis/mirror_v1/service.rb +20 -20
  184. data/generated/google/apis/ml_v1.rb +1 -1
  185. data/generated/google/apis/ml_v1/classes.rb +1285 -1205
  186. data/generated/google/apis/ml_v1/representations.rb +204 -174
  187. data/generated/google/apis/ml_v1/service.rb +150 -145
  188. data/generated/google/apis/monitoring_v3.rb +1 -1
  189. data/generated/google/apis/monitoring_v3/classes.rb +880 -880
  190. data/generated/google/apis/monitoring_v3/representations.rb +154 -154
  191. data/generated/google/apis/monitoring_v3/service.rb +299 -299
  192. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  193. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  194. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  195. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  196. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  197. data/generated/google/apis/partners_v2.rb +1 -1
  198. data/generated/google/apis/partners_v2/classes.rb +524 -509
  199. data/generated/google/apis/partners_v2/representations.rb +115 -111
  200. data/generated/google/apis/partners_v2/service.rb +287 -287
  201. data/generated/google/apis/people_v1.rb +13 -13
  202. data/generated/google/apis/people_v1/classes.rb +1150 -1150
  203. data/generated/google/apis/people_v1/representations.rb +258 -258
  204. data/generated/google/apis/people_v1/service.rb +7 -7
  205. data/generated/google/apis/plus_domains_v1.rb +1 -1
  206. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  207. data/generated/google/apis/plus_v1.rb +1 -1
  208. data/generated/google/apis/plus_v1/service.rb +1 -1
  209. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  210. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
  211. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
  212. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
  213. data/generated/google/apis/pubsub_v1/classes.rb +228 -228
  214. data/generated/google/apis/pubsub_v1/representations.rb +69 -69
  215. data/generated/google/apis/pubsub_v1/service.rb +182 -182
  216. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  217. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  218. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  219. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  220. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  221. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  222. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  223. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  226. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  227. data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
  228. data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
  229. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  230. data/generated/google/apis/script_v1.rb +9 -9
  231. data/generated/google/apis/script_v1/classes.rb +94 -94
  232. data/generated/google/apis/script_v1/representations.rb +26 -26
  233. data/generated/google/apis/searchconsole_v1.rb +1 -1
  234. data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
  235. data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
  236. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  237. data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
  238. data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
  239. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  240. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  241. data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
  242. data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
  243. data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
  244. data/generated/google/apis/serviceuser_v1.rb +4 -4
  245. data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
  246. data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
  247. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  248. data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
  249. data/generated/google/apis/sheets_v4/representations.rb +324 -324
  250. data/generated/google/apis/sheets_v4/service.rb +49 -49
  251. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  252. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  253. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  254. data/generated/google/apis/slides_v1.rb +4 -4
  255. data/generated/google/apis/slides_v1/classes.rb +2907 -2907
  256. data/generated/google/apis/slides_v1/representations.rb +695 -695
  257. data/generated/google/apis/slides_v1/service.rb +40 -40
  258. data/generated/google/apis/sourcerepo_v1.rb +7 -1
  259. data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
  260. data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
  261. data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
  262. data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
  263. data/generated/google/apis/spanner_v1/representations.rb +205 -205
  264. data/generated/google/apis/spanner_v1/service.rb +525 -525
  265. data/generated/google/apis/speech_v1beta1.rb +1 -1
  266. data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
  267. data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
  268. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  269. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  270. data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
  271. data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
  272. data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
  273. data/generated/google/apis/storage_v1/classes.rb +6 -6
  274. data/generated/google/apis/storage_v1/representations.rb +4 -4
  275. data/generated/google/apis/storage_v1/service.rb +1 -1
  276. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  277. data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
  278. data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
  279. data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
  280. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  281. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  282. data/generated/google/apis/translate_v2.rb +1 -1
  283. data/generated/google/apis/translate_v2/classes.rb +46 -46
  284. data/generated/google/apis/translate_v2/representations.rb +22 -22
  285. data/generated/google/apis/translate_v2/service.rb +81 -74
  286. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  287. data/generated/google/apis/vision_v1/representations.rb +166 -166
  288. data/generated/google/apis/vision_v1/service.rb +6 -6
  289. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  290. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  291. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  292. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  293. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  294. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  295. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  296. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  297. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  298. data/generated/google/apis/youtube_v3/service.rb +80 -80
  299. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  300. data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
  301. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  302. data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
  303. data/google-api-client.gemspec +3 -3
  304. data/lib/google/apis/core/base_service.rb +6 -0
  305. data/lib/google/apis/generator/annotator.rb +2 -2
  306. data/lib/google/apis/generator/model.rb +2 -2
  307. data/lib/google/apis/version.rb +1 -1
  308. metadata +11 -94
  309. data/dl.rb +0 -0
  310. data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
  311. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
  312. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
  313. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
  314. data/generated/google/apis/appengine_v1beta4.rb +0 -35
  315. data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
  316. data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
  317. data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
  318. data/generated/google/apis/appengine_v1beta5.rb +0 -40
  319. data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
  320. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
  321. data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
  322. data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
  323. data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
  324. data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
  325. data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
  326. data/generated/google/apis/classroom_v1beta1.rb +0 -49
  327. data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
  328. data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
  329. data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
  330. data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
  331. data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
  332. data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
  333. data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
  334. data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
  335. data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
  336. data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
  337. data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
  338. data/generated/google/apis/container_v1beta1.rb +0 -35
  339. data/generated/google/apis/container_v1beta1/classes.rb +0 -466
  340. data/generated/google/apis/container_v1beta1/representations.rb +0 -177
  341. data/generated/google/apis/container_v1beta1/service.rb +0 -394
  342. data/generated/google/apis/coordinate_v1.rb +0 -37
  343. data/generated/google/apis/coordinate_v1/classes.rb +0 -669
  344. data/generated/google/apis/coordinate_v1/representations.rb +0 -321
  345. data/generated/google/apis/coordinate_v1/service.rb +0 -678
  346. data/generated/google/apis/datastore_v1beta2.rb +0 -40
  347. data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
  348. data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
  349. data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
  350. data/generated/google/apis/datastore_v1beta3.rb +0 -38
  351. data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
  352. data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
  353. data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
  354. data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
  355. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
  356. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
  357. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
  358. data/generated/google/apis/dfareporting_v2_1.rb +0 -37
  359. data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
  360. data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
  361. data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
  362. data/generated/google/apis/dfareporting_v2_3.rb +0 -37
  363. data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
  364. data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
  365. data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
  366. data/generated/google/apis/dfareporting_v2_5.rb +0 -40
  367. data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
  368. data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
  369. data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
  370. data/generated/google/apis/dfareporting_v2_6.rb +0 -40
  371. data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
  372. data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
  373. data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
  374. data/generated/google/apis/gan_v1beta1.rb +0 -31
  375. data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
  376. data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
  377. data/generated/google/apis/gan_v1beta1/service.rb +0 -682
  378. data/generated/google/apis/genomics_v1beta2.rb +0 -46
  379. data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
  380. data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
  381. data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
  382. data/generated/google/apis/logging_v1beta3.rb +0 -47
  383. data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
  384. data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
  385. data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
  386. data/generated/google/apis/manager_v1beta2.rb +0 -53
  387. data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
  388. data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
  389. data/generated/google/apis/manager_v1beta2/service.rb +0 -372
  390. data/generated/google/apis/pubsub_v1beta2.rb +0 -37
  391. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
  392. data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
  393. data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
  394. data/generated/google/apis/tracing_v1.rb +0 -40
  395. data/generated/google/apis/tracing_v1/classes.rb +0 -664
  396. data/generated/google/apis/tracing_v1/representations.rb +0 -279
  397. data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -28,11 +28,11 @@ module Google
28
28
  VERSION = 'V1'
29
29
  REVISION = '20170524'
30
30
 
31
- # View your data across Google Cloud Platform services
32
- AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
33
-
34
31
  # View and manage your data across Google Cloud Platform services
35
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+
34
+ # View your data across Google Cloud Platform services
35
+ AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
36
36
  end
37
37
  end
38
38
  end
@@ -22,17 +22,81 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1
24
24
 
25
- # Request message for `TestIamPermissions` method.
26
- class TestIamPermissionsRequest
25
+ # Defines a Cloud Organization `Policy` which is used to specify `Constraints`
26
+ # for configurations of Cloud Platform resources.
27
+ class OrgPolicy
27
28
  include Google::Apis::Core::Hashable
28
29
 
29
- # The set of permissions to check for the `resource`. Permissions with
30
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
31
- # information see
32
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
33
- # Corresponds to the JSON property `permissions`
34
- # @return [Array<String>]
35
- attr_accessor :permissions
30
+ # The time stamp the `Policy` was previously updated. This is set by the
31
+ # server, not specified by the caller, and represents the last time a call to
32
+ # `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
33
+ # be ignored.
34
+ # Corresponds to the JSON property `updateTime`
35
+ # @return [String]
36
+ attr_accessor :update_time
37
+
38
+ # Version of the `Policy`. Default version is 0;
39
+ # Corresponds to the JSON property `version`
40
+ # @return [Fixnum]
41
+ attr_accessor :version
42
+
43
+ # Ignores policies set above this resource and restores the
44
+ # `constraint_default` enforcement behavior of the specific `Constraint` at
45
+ # this resource.
46
+ # Suppose that `constraint_default` is set to `ALLOW` for the
47
+ # `Constraint` `constraints/serviceuser.services`. Suppose that organization
48
+ # foo.com sets a `Policy` at their Organization resource node that restricts
49
+ # the allowed service activations to deny all service activations. They
50
+ # could then set a `Policy` with the `policy_type` `restore_default` on
51
+ # several experimental projects, restoring the `constraint_default`
52
+ # enforcement of the `Constraint` for only those projects, allowing those
53
+ # projects to have all services activated.
54
+ # Corresponds to the JSON property `restoreDefault`
55
+ # @return [Google::Apis::CloudresourcemanagerV1::RestoreDefault]
56
+ attr_accessor :restore_default
57
+
58
+ # Used in `policy_type` to specify how `list_policy` behaves at this
59
+ # resource.
60
+ # A `ListPolicy` can define specific values that are allowed or denied by
61
+ # setting either the `allowed_values` or `denied_values` fields. It can also
62
+ # be used to allow or deny all values, by setting the `all_values` field. If
63
+ # `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`
64
+ # or `denied_values` must be set (attempting to set both or neither will
65
+ # result in a failed request). If `all_values` is set to either `ALLOW` or
66
+ # `DENY`, `allowed_values` and `denied_values` must be unset.
67
+ # Corresponds to the JSON property `listPolicy`
68
+ # @return [Google::Apis::CloudresourcemanagerV1::ListPolicy]
69
+ attr_accessor :list_policy
70
+
71
+ # An opaque tag indicating the current version of the `Policy`, used for
72
+ # concurrency control.
73
+ # When the `Policy` is returned from either a `GetPolicy` or a
74
+ # `ListOrgPolicy` request, this `etag` indicates the version of the current
75
+ # `Policy` to use when executing a read-modify-write loop.
76
+ # When the `Policy` is returned from a `GetEffectivePolicy` request, the
77
+ # `etag` will be unset.
78
+ # When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value
79
+ # that was returned from a `GetOrgPolicy` request as part of a
80
+ # read-modify-write loop for concurrency control. Not setting the `etag`in a
81
+ # `SetOrgPolicy` request will result in an unconditional write of the
82
+ # `Policy`.
83
+ # Corresponds to the JSON property `etag`
84
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
85
+ # @return [String]
86
+ attr_accessor :etag
87
+
88
+ # The name of the `Constraint` the `Policy` is configuring, for example,
89
+ # `constraints/serviceuser.services`.
90
+ # Immutable after creation.
91
+ # Corresponds to the JSON property `constraint`
92
+ # @return [String]
93
+ attr_accessor :constraint
94
+
95
+ # Used in `policy_type` to specify how `boolean_policy` will behave at this
96
+ # resource.
97
+ # Corresponds to the JSON property `booleanPolicy`
98
+ # @return [Google::Apis::CloudresourcemanagerV1::BooleanPolicy]
99
+ attr_accessor :boolean_policy
36
100
 
37
101
  def initialize(**args)
38
102
  update!(**args)
@@ -40,27 +104,63 @@ module Google
40
104
 
41
105
  # Update properties of this object
42
106
  def update!(**args)
43
- @permissions = args[:permissions] if args.key?(:permissions)
107
+ @update_time = args[:update_time] if args.key?(:update_time)
108
+ @version = args[:version] if args.key?(:version)
109
+ @restore_default = args[:restore_default] if args.key?(:restore_default)
110
+ @list_policy = args[:list_policy] if args.key?(:list_policy)
111
+ @etag = args[:etag] if args.key?(:etag)
112
+ @constraint = args[:constraint] if args.key?(:constraint)
113
+ @boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy)
44
114
  end
45
115
  end
46
116
 
47
- # The request sent to the [ListAvailableOrgPolicyConstraints]
48
- # google.cloud.OrgPolicy.v1.ListAvailableOrgPolicyConstraints] method.
49
- class ListAvailableOrgPolicyConstraintsRequest
117
+ # Used in `policy_type` to specify how `boolean_policy` will behave at this
118
+ # resource.
119
+ class BooleanPolicy
50
120
  include Google::Apis::Core::Hashable
51
121
 
52
- # Page token used to retrieve the next page. This is currently unsupported
53
- # and will be ignored. The server may at any point start using this field.
54
- # Corresponds to the JSON property `pageToken`
55
- # @return [String]
56
- attr_accessor :page_token
57
-
58
- # Size of the pages to be returned. This is currently unsupported and will
59
- # be ignored. The server may at any point start using this field to limit
60
- # page size.
61
- # Corresponds to the JSON property `pageSize`
62
- # @return [Fixnum]
63
- attr_accessor :page_size
122
+ # If `true`, then the `Policy` is enforced. If `false`, then any
123
+ # configuration is acceptable.
124
+ # Suppose you have a `Constraint` `constraints/compute.disableSerialPortAccess`
125
+ # with `constraint_default` set to `ALLOW`. A `Policy` for that
126
+ # `Constraint` exhibits the following behavior:
127
+ # - If the `Policy` at this resource has enforced set to `false`, serial
128
+ # port connection attempts will be allowed.
129
+ # - If the `Policy` at this resource has enforced set to `true`, serial
130
+ # port connection attempts will be refused.
131
+ # - If the `Policy` at this resource is `RestoreDefault`, serial port
132
+ # connection attempts will be allowed.
133
+ # - If no `Policy` is set at this resource or anywhere higher in the
134
+ # resource hierarchy, serial port connection attempts will be allowed.
135
+ # - If no `Policy` is set at this resource, but one exists higher in the
136
+ # resource hierarchy, the behavior is as if the`Policy` were set at
137
+ # this resource.
138
+ # The following examples demonstrate the different possible layerings:
139
+ # Example 1 (nearest `Constraint` wins):
140
+ # `organizations/foo` has a `Policy` with:
141
+ # `enforced: false`
142
+ # `projects/bar` has no `Policy` set.
143
+ # The constraint at `projects/bar` and `organizations/foo` will not be
144
+ # enforced.
145
+ # Example 2 (enforcement gets replaced):
146
+ # `organizations/foo` has a `Policy` with:
147
+ # `enforced: false`
148
+ # `projects/bar` has a `Policy` with:
149
+ # `enforced: true`
150
+ # The constraint at `organizations/foo` is not enforced.
151
+ # The constraint at `projects/bar` is enforced.
152
+ # Example 3 (RestoreDefault):
153
+ # `organizations/foo` has a `Policy` with:
154
+ # `enforced: true`
155
+ # `projects/bar` has a `Policy` with:
156
+ # `RestoreDefault: ```
157
+ # The constraint at `organizations/foo` is enforced.
158
+ # The constraint at `projects/bar` is not enforced, because
159
+ # `constraint_default` for the `Constraint` is `ALLOW`.
160
+ # Corresponds to the JSON property `enforced`
161
+ # @return [Boolean]
162
+ attr_accessor :enforced
163
+ alias_method :enforced?, :enforced
64
164
 
65
165
  def initialize(**args)
66
166
  update!(**args)
@@ -68,36 +168,56 @@ module Google
68
168
 
69
169
  # Update properties of this object
70
170
  def update!(**args)
71
- @page_token = args[:page_token] if args.key?(:page_token)
72
- @page_size = args[:page_size] if args.key?(:page_size)
171
+ @enforced = args[:enforced] if args.key?(:enforced)
73
172
  end
74
173
  end
75
174
 
76
- # Metadata describing a long running folder operation
77
- class FolderOperation
175
+ # A Lien represents an encumbrance on the actions that can be performed on a
176
+ # resource.
177
+ class Lien
78
178
  include Google::Apis::Core::Hashable
79
179
 
80
- # The resource name of the folder or organization we are either creating
81
- # the folder under or moving the folder to.
82
- # Corresponds to the JSON property `destinationParent`
180
+ # A system-generated unique identifier for this Lien.
181
+ # Example: `liens/1234abcd`
182
+ # Corresponds to the JSON property `name`
83
183
  # @return [String]
84
- attr_accessor :destination_parent
184
+ attr_accessor :name
85
185
 
86
- # The type of this operation.
87
- # Corresponds to the JSON property `operationType`
186
+ # Concise user-visible strings indicating why an action cannot be performed
187
+ # on a resource. Maximum lenth of 200 characters.
188
+ # Example: 'Holds production API key'
189
+ # Corresponds to the JSON property `reason`
88
190
  # @return [String]
89
- attr_accessor :operation_type
191
+ attr_accessor :reason
90
192
 
91
- # The display name of the folder.
92
- # Corresponds to the JSON property `displayName`
193
+ # A stable, user-visible/meaningful string identifying the origin of the
194
+ # Lien, intended to be inspected programmatically. Maximum length of 200
195
+ # characters.
196
+ # Example: 'compute.googleapis.com'
197
+ # Corresponds to the JSON property `origin`
93
198
  # @return [String]
94
- attr_accessor :display_name
199
+ attr_accessor :origin
95
200
 
96
- # The resource name of the folder's parent.
97
- # Only applicable when the operation_type is MOVE.
98
- # Corresponds to the JSON property `sourceParent`
201
+ # The types of operations which should be blocked as a result of this Lien.
202
+ # Each value should correspond to an IAM permission. The server will
203
+ # validate the permissions against those for which Liens are supported.
204
+ # An empty list is meaningless and will be rejected.
205
+ # Example: ['resourcemanager.projects.delete']
206
+ # Corresponds to the JSON property `restrictions`
207
+ # @return [Array<String>]
208
+ attr_accessor :restrictions
209
+
210
+ # A reference to the resource this Lien is attached to. The server will
211
+ # validate the parent against those for which Liens are supported.
212
+ # Example: `projects/1234`
213
+ # Corresponds to the JSON property `parent`
99
214
  # @return [String]
100
- attr_accessor :source_parent
215
+ attr_accessor :parent
216
+
217
+ # The creation time of this Lien.
218
+ # Corresponds to the JSON property `createTime`
219
+ # @return [String]
220
+ attr_accessor :create_time
101
221
 
102
222
  def initialize(**args)
103
223
  update!(**args)
@@ -105,72 +225,26 @@ module Google
105
225
 
106
226
  # Update properties of this object
107
227
  def update!(**args)
108
- @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
109
- @operation_type = args[:operation_type] if args.key?(:operation_type)
110
- @display_name = args[:display_name] if args.key?(:display_name)
111
- @source_parent = args[:source_parent] if args.key?(:source_parent)
228
+ @name = args[:name] if args.key?(:name)
229
+ @reason = args[:reason] if args.key?(:reason)
230
+ @origin = args[:origin] if args.key?(:origin)
231
+ @restrictions = args[:restrictions] if args.key?(:restrictions)
232
+ @parent = args[:parent] if args.key?(:parent)
233
+ @create_time = args[:create_time] if args.key?(:create_time)
112
234
  end
113
235
  end
114
236
 
115
- # Defines an Identity and Access Management (IAM) policy. It is used to
116
- # specify access control policies for Cloud Platform resources.
117
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
118
- # `members` to a `role`, where the members can be user accounts, Google groups,
119
- # Google domains, and service accounts. A `role` is a named list of permissions
120
- # defined by IAM.
121
- # **Example**
122
- # `
123
- # "bindings": [
124
- # `
125
- # "role": "roles/owner",
126
- # "members": [
127
- # "user:mike@example.com",
128
- # "group:admins@example.com",
129
- # "domain:google.com",
130
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
131
- # ]
132
- # `,
133
- # `
134
- # "role": "roles/viewer",
135
- # "members": ["user:sean@example.com"]
136
- # `
137
- # ]
138
- # `
139
- # For a description of IAM and its features, see the
140
- # [IAM developer's guide](https://cloud.google.com/iam).
141
- class Policy
237
+ # Identifying information for a single ancestor of a project.
238
+ class Ancestor
142
239
  include Google::Apis::Core::Hashable
143
240
 
144
- # `etag` is used for optimistic concurrency control as a way to help
145
- # prevent simultaneous updates of a policy from overwriting each other.
146
- # It is strongly suggested that systems make use of the `etag` in the
147
- # read-modify-write cycle to perform policy updates in order to avoid race
148
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
149
- # systems are expected to put that etag in the request to `setIamPolicy` to
150
- # ensure that their change will be applied to the same version of the policy.
151
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
152
- # policy is overwritten blindly.
153
- # Corresponds to the JSON property `etag`
154
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
155
- # @return [String]
156
- attr_accessor :etag
157
-
158
- # Version of the `Policy`. The default version is 0.
159
- # Corresponds to the JSON property `version`
160
- # @return [Fixnum]
161
- attr_accessor :version
162
-
163
- # Specifies cloud audit logging configuration for this policy.
164
- # Corresponds to the JSON property `auditConfigs`
165
- # @return [Array<Google::Apis::CloudresourcemanagerV1::AuditConfig>]
166
- attr_accessor :audit_configs
167
-
168
- # Associates a list of `members` to a `role`.
169
- # Multiple `bindings` must not be specified for the same `role`.
170
- # `bindings` with no members will result in an error.
171
- # Corresponds to the JSON property `bindings`
172
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Binding>]
173
- attr_accessor :bindings
241
+ # A container to reference an id for any resource type. A `resource` in Google
242
+ # Cloud Platform is a generic term for something you (a developer) may want to
243
+ # interact with through one of our API's. Some examples are an App Engine app,
244
+ # a Compute Engine instance, a Cloud SQL database, and so on.
245
+ # Corresponds to the JSON property `resourceId`
246
+ # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
247
+ attr_accessor :resource_id
174
248
 
175
249
  def initialize(**args)
176
250
  update!(**args)
@@ -178,31 +252,20 @@ module Google
178
252
 
179
253
  # Update properties of this object
180
254
  def update!(**args)
181
- @etag = args[:etag] if args.key?(:etag)
182
- @version = args[:version] if args.key?(:version)
183
- @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
184
- @bindings = args[:bindings] if args.key?(:bindings)
255
+ @resource_id = args[:resource_id] if args.key?(:resource_id)
185
256
  end
186
257
  end
187
258
 
188
- # A container to reference an id for any resource type. A `resource` in Google
189
- # Cloud Platform is a generic term for something you (a developer) may want to
190
- # interact with through one of our API's. Some examples are an App Engine app,
191
- # a Compute Engine instance, a Cloud SQL database, and so on.
192
- class ResourceId
259
+ # A `Constraint` that allows or disallows a list of string values, which are
260
+ # configured by an Organization's policy administrator with a `Policy`.
261
+ class ListConstraint
193
262
  include Google::Apis::Core::Hashable
194
263
 
195
- # Required field representing the resource type this id is for.
196
- # At present, the valid types are: "organization"
197
- # Corresponds to the JSON property `type`
198
- # @return [String]
199
- attr_accessor :type
200
-
201
- # Required field for the type-specific id. This should correspond to the id
202
- # used in the type-specific API's.
203
- # Corresponds to the JSON property `id`
264
+ # Optional. The Google Cloud Console will try to default to a configuration
265
+ # that matches the value specified in this `Constraint`.
266
+ # Corresponds to the JSON property `suggestedValue`
204
267
  # @return [String]
205
- attr_accessor :id
268
+ attr_accessor :suggested_value
206
269
 
207
270
  def initialize(**args)
208
271
  update!(**args)
@@ -210,19 +273,19 @@ module Google
210
273
 
211
274
  # Update properties of this object
212
275
  def update!(**args)
213
- @type = args[:type] if args.key?(:type)
214
- @id = args[:id] if args.key?(:id)
276
+ @suggested_value = args[:suggested_value] if args.key?(:suggested_value)
215
277
  end
216
278
  end
217
279
 
218
- # The request sent to the GetEffectiveOrgPolicy method.
219
- class GetEffectiveOrgPolicyRequest
280
+ # The request sent to the SetOrgPolicyRequest method.
281
+ class SetOrgPolicyRequest
220
282
  include Google::Apis::Core::Hashable
221
283
 
222
- # The name of the `Constraint` to compute the effective `Policy`.
223
- # Corresponds to the JSON property `constraint`
224
- # @return [String]
225
- attr_accessor :constraint
284
+ # Defines a Cloud Organization `Policy` which is used to specify `Constraints`
285
+ # for configurations of Cloud Platform resources.
286
+ # Corresponds to the JSON property `policy`
287
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
288
+ attr_accessor :policy
226
289
 
227
290
  def initialize(**args)
228
291
  update!(**args)
@@ -230,26 +293,52 @@ module Google
230
293
 
231
294
  # Update properties of this object
232
295
  def update!(**args)
233
- @constraint = args[:constraint] if args.key?(:constraint)
296
+ @policy = args[:policy] if args.key?(:policy)
234
297
  end
235
298
  end
236
299
 
237
- # The request sent to the ListOrgPolicies method.
238
- class ListOrgPoliciesRequest
300
+ # Request message for `SetIamPolicy` method.
301
+ class SetIamPolicyRequest
239
302
  include Google::Apis::Core::Hashable
240
303
 
241
- # Page token used to retrieve the next page. This is currently unsupported
242
- # and will be ignored. The server may at any point start using this field.
243
- # Corresponds to the JSON property `pageToken`
304
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
305
+ # the fields in the mask will be modified. If no mask is provided, the
306
+ # following default mask is used:
307
+ # paths: "bindings, etag"
308
+ # This field is only used by Cloud IAM.
309
+ # Corresponds to the JSON property `updateMask`
244
310
  # @return [String]
245
- attr_accessor :page_token
311
+ attr_accessor :update_mask
246
312
 
247
- # Size of the pages to be returned. This is currently unsupported and will
248
- # be ignored. The server may at any point start using this field to limit
249
- # page size.
250
- # Corresponds to the JSON property `pageSize`
251
- # @return [Fixnum]
252
- attr_accessor :page_size
313
+ # Defines an Identity and Access Management (IAM) policy. It is used to
314
+ # specify access control policies for Cloud Platform resources.
315
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
316
+ # `members` to a `role`, where the members can be user accounts, Google groups,
317
+ # Google domains, and service accounts. A `role` is a named list of permissions
318
+ # defined by IAM.
319
+ # **Example**
320
+ # `
321
+ # "bindings": [
322
+ # `
323
+ # "role": "roles/owner",
324
+ # "members": [
325
+ # "user:mike@example.com",
326
+ # "group:admins@example.com",
327
+ # "domain:google.com",
328
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
329
+ # ]
330
+ # `,
331
+ # `
332
+ # "role": "roles/viewer",
333
+ # "members": ["user:sean@example.com"]
334
+ # `
335
+ # ]
336
+ # `
337
+ # For a description of IAM and its features, see the
338
+ # [IAM developer's guide](https://cloud.google.com/iam).
339
+ # Corresponds to the JSON property `policy`
340
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
341
+ attr_accessor :policy
253
342
 
254
343
  def initialize(**args)
255
344
  update!(**args)
@@ -257,93 +346,69 @@ module Google
257
346
 
258
347
  # Update properties of this object
259
348
  def update!(**args)
260
- @page_token = args[:page_token] if args.key?(:page_token)
261
- @page_size = args[:page_size] if args.key?(:page_size)
349
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
350
+ @policy = args[:policy] if args.key?(:policy)
262
351
  end
263
352
  end
264
353
 
265
- # This resource represents a long-running operation that is the result of a
266
- # network API call.
267
- class Operation
354
+ # A generic empty message that you can re-use to avoid defining duplicated
355
+ # empty messages in your APIs. A typical example is to use it as the request
356
+ # or the response type of an API method. For instance:
357
+ # service Foo `
358
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
359
+ # `
360
+ # The JSON representation for `Empty` is empty JSON object ````.
361
+ class Empty
268
362
  include Google::Apis::Core::Hashable
269
363
 
270
- # The normal response of the operation in case of success. If the original
271
- # method returns no data on success, such as `Delete`, the response is
272
- # `google.protobuf.Empty`. If the original method is standard
273
- # `Get`/`Create`/`Update`, the response should be the resource. For other
274
- # methods, the response should have the type `XxxResponse`, where `Xxx`
275
- # is the original method name. For example, if the original method name
276
- # is `TakeSnapshot()`, the inferred response type is
277
- # `TakeSnapshotResponse`.
278
- # Corresponds to the JSON property `response`
279
- # @return [Hash<String,Object>]
280
- attr_accessor :response
364
+ def initialize(**args)
365
+ update!(**args)
366
+ end
281
367
 
282
- # The server-assigned name, which is only unique within the same service that
283
- # originally returns it. If you use the default HTTP mapping, the
284
- # `name` should have the format of `operations/some/unique/name`.
285
- # Corresponds to the JSON property `name`
368
+ # Update properties of this object
369
+ def update!(**args)
370
+ end
371
+ end
372
+
373
+ # The root node in the resource hierarchy to which a particular entity's
374
+ # (e.g., company) resources belong.
375
+ class Organization
376
+ include Google::Apis::Core::Hashable
377
+
378
+ # Timestamp when the Organization was created. Assigned by the server.
379
+ # @OutputOnly
380
+ # Corresponds to the JSON property `creationTime`
286
381
  # @return [String]
287
- attr_accessor :name
382
+ attr_accessor :creation_time
288
383
 
289
- # The `Status` type defines a logical error model that is suitable for different
290
- # programming environments, including REST APIs and RPC APIs. It is used by
291
- # [gRPC](https://github.com/grpc). The error model is designed to be:
292
- # - Simple to use and understand for most users
293
- # - Flexible enough to meet unexpected needs
294
- # # Overview
295
- # The `Status` message contains three pieces of data: error code, error message,
296
- # and error details. The error code should be an enum value of
297
- # google.rpc.Code, but it may accept additional error codes if needed. The
298
- # error message should be a developer-facing English message that helps
299
- # developers *understand* and *resolve* the error. If a localized user-facing
300
- # error message is needed, put the localized message in the error details or
301
- # localize it in the client. The optional error details may contain arbitrary
302
- # information about the error. There is a predefined set of error detail types
303
- # in the package `google.rpc` that can be used for common error conditions.
304
- # # Language mapping
305
- # The `Status` message is the logical representation of the error model, but it
306
- # is not necessarily the actual wire format. When the `Status` message is
307
- # exposed in different client libraries and different wire protocols, it can be
308
- # mapped differently. For example, it will likely be mapped to some exceptions
309
- # in Java, but more likely mapped to some error codes in C.
310
- # # Other uses
311
- # The error model and the `Status` message can be used in a variety of
312
- # environments, either with or without APIs, to provide a
313
- # consistent developer experience across different environments.
314
- # Example uses of this error model include:
315
- # - Partial errors. If a service needs to return partial errors to the client,
316
- # it may embed the `Status` in the normal response to indicate the partial
317
- # errors.
318
- # - Workflow errors. A typical workflow has multiple steps. Each step may
319
- # have a `Status` message for error reporting.
320
- # - Batch operations. If a client uses batch request and batch response, the
321
- # `Status` message should be used directly inside batch response, one for
322
- # each error sub-response.
323
- # - Asynchronous operations. If an API call embeds asynchronous operation
324
- # results in its response, the status of those operations should be
325
- # represented directly using the `Status` message.
326
- # - Logging. If some API errors are stored in logs, the message `Status` could
327
- # be used directly after any stripping needed for security/privacy reasons.
328
- # Corresponds to the JSON property `error`
329
- # @return [Google::Apis::CloudresourcemanagerV1::Status]
330
- attr_accessor :error
384
+ # The entity that owns an Organization. The lifetime of the Organization and
385
+ # all of its descendants are bound to the `OrganizationOwner`. If the
386
+ # `OrganizationOwner` is deleted, the Organization and all its descendants will
387
+ # be deleted.
388
+ # Corresponds to the JSON property `owner`
389
+ # @return [Google::Apis::CloudresourcemanagerV1::OrganizationOwner]
390
+ attr_accessor :owner
331
391
 
332
- # Service-specific metadata associated with the operation. It typically
333
- # contains progress information and common metadata such as create time.
334
- # Some services might not provide such metadata. Any method that returns a
335
- # long-running operation should document the metadata type, if any.
336
- # Corresponds to the JSON property `metadata`
337
- # @return [Hash<String,Object>]
338
- attr_accessor :metadata
392
+ # The organization's current lifecycle state. Assigned by the server.
393
+ # @OutputOnly
394
+ # Corresponds to the JSON property `lifecycleState`
395
+ # @return [String]
396
+ attr_accessor :lifecycle_state
339
397
 
340
- # If the value is `false`, it means the operation is still in progress.
341
- # If true, the operation is completed, and either `error` or `response` is
342
- # available.
343
- # Corresponds to the JSON property `done`
344
- # @return [Boolean]
345
- attr_accessor :done
346
- alias_method :done?, :done
398
+ # Output Only. The resource name of the organization. This is the
399
+ # organization's relative path in the API. Its format is
400
+ # "organizations/[organization_id]". For example, "organizations/1234".
401
+ # Corresponds to the JSON property `name`
402
+ # @return [String]
403
+ attr_accessor :name
404
+
405
+ # A friendly string to be used to refer to the Organization in the UI.
406
+ # Assigned by the server, set to the primary domain of the G Suite
407
+ # customer that owns the organization.
408
+ # @OutputOnly
409
+ # Corresponds to the JSON property `displayName`
410
+ # @return [String]
411
+ attr_accessor :display_name
347
412
 
348
413
  def initialize(**args)
349
414
  update!(**args)
@@ -351,76 +416,30 @@ module Google
351
416
 
352
417
  # Update properties of this object
353
418
  def update!(**args)
354
- @response = args[:response] if args.key?(:response)
419
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
420
+ @owner = args[:owner] if args.key?(:owner)
421
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
355
422
  @name = args[:name] if args.key?(:name)
356
- @error = args[:error] if args.key?(:error)
357
- @metadata = args[:metadata] if args.key?(:metadata)
358
- @done = args[:done] if args.key?(:done)
423
+ @display_name = args[:display_name] if args.key?(:display_name)
359
424
  end
360
425
  end
361
426
 
362
- # Specifies the audit configuration for a service.
363
- # The configuration determines which permission types are logged, and what
364
- # identities, if any, are exempted from logging.
365
- # An AuditConfig must have one or more AuditLogConfigs.
366
- # If there are AuditConfigs for both `allServices` and a specific service,
367
- # the union of the two AuditConfigs is used for that service: the log_types
368
- # specified in each AuditConfig are enabled, and the exempted_members in each
369
- # AuditConfig are exempted.
370
- # Example Policy with multiple AuditConfigs:
371
- # `
372
- # "audit_configs": [
373
- # `
374
- # "service": "allServices"
375
- # "audit_log_configs": [
376
- # `
377
- # "log_type": "DATA_READ",
378
- # "exempted_members": [
379
- # "user:foo@gmail.com"
380
- # ]
381
- # `,
382
- # `
383
- # "log_type": "DATA_WRITE",
384
- # `,
385
- # `
386
- # "log_type": "ADMIN_READ",
387
- # `
388
- # ]
389
- # `,
390
- # `
391
- # "service": "fooservice.googleapis.com"
392
- # "audit_log_configs": [
393
- # `
394
- # "log_type": "DATA_READ",
395
- # `,
396
- # `
397
- # "log_type": "DATA_WRITE",
398
- # "exempted_members": [
399
- # "user:bar@gmail.com"
400
- # ]
401
- # `
402
- # ]
403
- # `
404
- # ]
405
- # `
406
- # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
407
- # logging. It also exempts foo@gmail.com from DATA_READ logging, and
408
- # bar@gmail.com from DATA_WRITE logging.
409
- class AuditConfig
427
+ # The response returned from the ListAvailableOrgPolicyConstraints method.
428
+ # Returns all `Constraints` that could be set at this level of the hierarchy
429
+ # (contrast with the response from `ListPolicies`, which returns all policies
430
+ # which are set).
431
+ class ListAvailableOrgPolicyConstraintsResponse
410
432
  include Google::Apis::Core::Hashable
411
433
 
412
- # Specifies a service that will be enabled for audit logging.
413
- # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
414
- # `allServices` is a special value that covers all services.
415
- # Corresponds to the JSON property `service`
434
+ # Page token used to retrieve the next page. This is currently not used.
435
+ # Corresponds to the JSON property `nextPageToken`
416
436
  # @return [String]
417
- attr_accessor :service
437
+ attr_accessor :next_page_token
418
438
 
419
- # The configuration for logging of each type of permission.
420
- # Next ID: 4
421
- # Corresponds to the JSON property `auditLogConfigs`
422
- # @return [Array<Google::Apis::CloudresourcemanagerV1::AuditLogConfig>]
423
- attr_accessor :audit_log_configs
439
+ # The collection of constraints that are settable on the request resource.
440
+ # Corresponds to the JSON property `constraints`
441
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Constraint>]
442
+ attr_accessor :constraints
424
443
 
425
444
  def initialize(**args)
426
445
  update!(**args)
@@ -428,70 +447,125 @@ module Google
428
447
 
429
448
  # Update properties of this object
430
449
  def update!(**args)
431
- @service = args[:service] if args.key?(:service)
432
- @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
450
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
451
+ @constraints = args[:constraints] if args.key?(:constraints)
433
452
  end
434
453
  end
435
454
 
436
- # The `Status` type defines a logical error model that is suitable for different
437
- # programming environments, including REST APIs and RPC APIs. It is used by
438
- # [gRPC](https://github.com/grpc). The error model is designed to be:
439
- # - Simple to use and understand for most users
440
- # - Flexible enough to meet unexpected needs
441
- # # Overview
442
- # The `Status` message contains three pieces of data: error code, error message,
443
- # and error details. The error code should be an enum value of
444
- # google.rpc.Code, but it may accept additional error codes if needed. The
445
- # error message should be a developer-facing English message that helps
446
- # developers *understand* and *resolve* the error. If a localized user-facing
447
- # error message is needed, put the localized message in the error details or
448
- # localize it in the client. The optional error details may contain arbitrary
449
- # information about the error. There is a predefined set of error detail types
450
- # in the package `google.rpc` that can be used for common error conditions.
451
- # # Language mapping
452
- # The `Status` message is the logical representation of the error model, but it
453
- # is not necessarily the actual wire format. When the `Status` message is
454
- # exposed in different client libraries and different wire protocols, it can be
455
- # mapped differently. For example, it will likely be mapped to some exceptions
456
- # in Java, but more likely mapped to some error codes in C.
457
- # # Other uses
458
- # The error model and the `Status` message can be used in a variety of
459
- # environments, either with or without APIs, to provide a
460
- # consistent developer experience across different environments.
461
- # Example uses of this error model include:
462
- # - Partial errors. If a service needs to return partial errors to the client,
463
- # it may embed the `Status` in the normal response to indicate the partial
464
- # errors.
465
- # - Workflow errors. A typical workflow has multiple steps. Each step may
466
- # have a `Status` message for error reporting.
467
- # - Batch operations. If a client uses batch request and batch response, the
468
- # `Status` message should be used directly inside batch response, one for
469
- # each error sub-response.
470
- # - Asynchronous operations. If an API call embeds asynchronous operation
471
- # results in its response, the status of those operations should be
472
- # represented directly using the `Status` message.
473
- # - Logging. If some API errors are stored in logs, the message `Status` could
474
- # be used directly after any stripping needed for security/privacy reasons.
475
- class Status
455
+ # Used in `policy_type` to specify how `list_policy` behaves at this
456
+ # resource.
457
+ # A `ListPolicy` can define specific values that are allowed or denied by
458
+ # setting either the `allowed_values` or `denied_values` fields. It can also
459
+ # be used to allow or deny all values, by setting the `all_values` field. If
460
+ # `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`
461
+ # or `denied_values` must be set (attempting to set both or neither will
462
+ # result in a failed request). If `all_values` is set to either `ALLOW` or
463
+ # `DENY`, `allowed_values` and `denied_values` must be unset.
464
+ class ListPolicy
476
465
  include Google::Apis::Core::Hashable
477
466
 
478
- # The status code, which should be an enum value of google.rpc.Code.
479
- # Corresponds to the JSON property `code`
480
- # @return [Fixnum]
481
- attr_accessor :code
467
+ # List of values allowed at this resource. an only be set if no values are
468
+ # set for `denied_values` and `all_values` is set to
469
+ # `ALL_VALUES_UNSPECIFIED`.
470
+ # Corresponds to the JSON property `allowedValues`
471
+ # @return [Array<String>]
472
+ attr_accessor :allowed_values
482
473
 
483
- # A developer-facing error message, which should be in English. Any
484
- # user-facing error message should be localized and sent in the
485
- # google.rpc.Status.details field, or localized by the client.
486
- # Corresponds to the JSON property `message`
474
+ # Optional. The Google Cloud Console will try to default to a configuration
475
+ # that matches the value specified in this `Policy`. If `suggested_value`
476
+ # is not set, it will inherit the value specified higher in the hierarchy,
477
+ # unless `inherit_from_parent` is `false`.
478
+ # Corresponds to the JSON property `suggestedValue`
487
479
  # @return [String]
488
- attr_accessor :message
480
+ attr_accessor :suggested_value
489
481
 
490
- # A list of messages that carry the error details. There will be a
491
- # common set of message types for APIs to use.
492
- # Corresponds to the JSON property `details`
493
- # @return [Array<Hash<String,Object>>]
494
- attr_accessor :details
482
+ # Determines the inheritance behavior for this `Policy`.
483
+ # By default, a `ListPolicy` set at a resource supercedes any `Policy` set
484
+ # anywhere up the resource hierarchy. However, if `inherit_from_parent` is
485
+ # set to `true`, then the values from the effective `Policy` of the parent
486
+ # resource are inherited, meaning the values set in this `Policy` are
487
+ # added to the values inherited up the hierarchy.
488
+ # Setting `Policy` hierarchies that inherit both allowed values and denied
489
+ # values isn't recommended in most circumstances to keep the configuration
490
+ # simple and understandable. However, it is possible to set a `Policy` with
491
+ # `allowed_values` set that inherits a `Policy` with `denied_values` set.
492
+ # In this case, the values that are allowed must be in `allowed_values` and
493
+ # not present in `denied_values`.
494
+ # For example, suppose you have a `Constraint`
495
+ # `constraints/serviceuser.services`, which has a `constraint_type` of
496
+ # `list_constraint`, and with `constraint_default` set to `ALLOW`.
497
+ # Suppose that at the Organization level, a `Policy` is applied that
498
+ # restricts the allowed API activations to ``E1`, `E2``. Then, if a
499
+ # `Policy` is applied to a project below the Organization that has
500
+ # `inherit_from_parent` set to `false` and field all_values set to DENY,
501
+ # then an attempt to activate any API will be denied.
502
+ # The following examples demonstrate different possible layerings:
503
+ # Example 1 (no inherited values):
504
+ # `organizations/foo` has a `Policy` with values:
505
+ # `allowed_values: “E1” allowed_values:”E2”`
506
+ # ``projects/bar`` has `inherit_from_parent` `false` and values:
507
+ # `allowed_values: "E3" allowed_values: "E4"`
508
+ # The accepted values at `organizations/foo` are `E1`, `E2`.
509
+ # The accepted values at `projects/bar` are `E3`, and `E4`.
510
+ # Example 2 (inherited values):
511
+ # `organizations/foo` has a `Policy` with values:
512
+ # `allowed_values: “E1” allowed_values:”E2”`
513
+ # `projects/bar` has a `Policy` with values:
514
+ # `value: “E3” value: ”E4” inherit_from_parent: true`
515
+ # The accepted values at `organizations/foo` are `E1`, `E2`.
516
+ # The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`.
517
+ # Example 3 (inheriting both allowed and denied values):
518
+ # `organizations/foo` has a `Policy` with values:
519
+ # `allowed_values: "E1" allowed_values: "E2"`
520
+ # `projects/bar` has a `Policy` with:
521
+ # `denied_values: "E1"`
522
+ # The accepted values at `organizations/foo` are `E1`, `E2`.
523
+ # The value accepted at `projects/bar` is `E2`.
524
+ # Example 4 (RestoreDefault):
525
+ # `organizations/foo` has a `Policy` with values:
526
+ # `allowed_values: “E1” allowed_values:”E2”`
527
+ # `projects/bar` has a `Policy` with values:
528
+ # `RestoreDefault: ```
529
+ # The accepted values at `organizations/foo` are `E1`, `E2`.
530
+ # The accepted values at `projects/bar` are either all or none depending on
531
+ # the value of `constraint_default` (if `ALLOW`, all; if
532
+ # `DENY`, none).
533
+ # Example 5 (no policy inherits parent policy):
534
+ # `organizations/foo` has no `Policy` set.
535
+ # `projects/bar` has no `Policy` set.
536
+ # The accepted values at both levels are either all or none depending on
537
+ # the value of `constraint_default` (if `ALLOW`, all; if
538
+ # `DENY`, none).
539
+ # Example 6 (ListConstraint allowing all):
540
+ # `organizations/foo` has a `Policy` with values:
541
+ # `allowed_values: “E1” allowed_values: ”E2”`
542
+ # `projects/bar` has a `Policy` with:
543
+ # `all: ALLOW`
544
+ # The accepted values at `organizations/foo` are `E1`, E2`.
545
+ # Any value is accepted at `projects/bar`.
546
+ # Example 7 (ListConstraint allowing none):
547
+ # `organizations/foo` has a `Policy` with values:
548
+ # `allowed_values: “E1” allowed_values: ”E2”`
549
+ # `projects/bar` has a `Policy` with:
550
+ # `all: DENY`
551
+ # The accepted values at `organizations/foo` are `E1`, E2`.
552
+ # No value is accepted at `projects/bar`.
553
+ # Corresponds to the JSON property `inheritFromParent`
554
+ # @return [Boolean]
555
+ attr_accessor :inherit_from_parent
556
+ alias_method :inherit_from_parent?, :inherit_from_parent
557
+
558
+ # List of values denied at this resource. Can only be set if no values are
559
+ # set for `allowed_values` and `all_values` is set to
560
+ # `ALL_VALUES_UNSPECIFIED`.
561
+ # Corresponds to the JSON property `deniedValues`
562
+ # @return [Array<String>]
563
+ attr_accessor :denied_values
564
+
565
+ # The policy all_values state.
566
+ # Corresponds to the JSON property `allValues`
567
+ # @return [String]
568
+ attr_accessor :all_values
495
569
 
496
570
  def initialize(**args)
497
571
  update!(**args)
@@ -499,26 +573,24 @@ module Google
499
573
 
500
574
  # Update properties of this object
501
575
  def update!(**args)
502
- @code = args[:code] if args.key?(:code)
503
- @message = args[:message] if args.key?(:message)
504
- @details = args[:details] if args.key?(:details)
576
+ @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
577
+ @suggested_value = args[:suggested_value] if args.key?(:suggested_value)
578
+ @inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent)
579
+ @denied_values = args[:denied_values] if args.key?(:denied_values)
580
+ @all_values = args[:all_values] if args.key?(:all_values)
505
581
  end
506
582
  end
507
583
 
508
- # The response message for Liens.ListLiens.
509
- class ListLiensResponse
584
+ # Response from the GetAncestry method.
585
+ class GetAncestryResponse
510
586
  include Google::Apis::Core::Hashable
511
587
 
512
- # A list of Liens.
513
- # Corresponds to the JSON property `liens`
514
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Lien>]
515
- attr_accessor :liens
516
-
517
- # Token to retrieve the next page of results, or empty if there are no more
518
- # results in the list.
519
- # Corresponds to the JSON property `nextPageToken`
520
- # @return [String]
521
- attr_accessor :next_page_token
588
+ # Ancestors are ordered from bottom to top of the resource hierarchy. The
589
+ # first ancestor is the project itself, followed by the project's parent,
590
+ # etc.
591
+ # Corresponds to the JSON property `ancestor`
592
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Ancestor>]
593
+ attr_accessor :ancestor
522
594
 
523
595
  def initialize(**args)
524
596
  update!(**args)
@@ -526,69 +598,41 @@ module Google
526
598
 
527
599
  # Update properties of this object
528
600
  def update!(**args)
529
- @liens = args[:liens] if args.key?(:liens)
530
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
601
+ @ancestor = args[:ancestor] if args.key?(:ancestor)
531
602
  end
532
603
  end
533
604
 
534
- # A `Constraint` describes a way in which a resource's configuration can be
535
- # restricted. For example, it controls which cloud services can be activated
536
- # across an organization, or whether a Compute Engine instance can have
537
- # serial port connections established. `Constraints` can be configured by the
538
- # organization's policy adminstrator to fit the needs of the organzation by
539
- # setting Policies for `Constraints` at different locations in the
540
- # organization's resource hierarchy. Policies are inherited down the resource
541
- # hierarchy from higher levels, but can also be overridden. For details about
542
- # the inheritance rules please read about
543
- # Policies.
544
- # `Constraints` have a default behavior determined by the `constraint_default`
545
- # field, which is the enforcement behavior that is used in the absence of a
546
- # `Policy` being defined or inherited for the resource in question.
547
- class Constraint
605
+ # Provides the configuration for logging a type of permissions.
606
+ # Example:
607
+ # `
608
+ # "audit_log_configs": [
609
+ # `
610
+ # "log_type": "DATA_READ",
611
+ # "exempted_members": [
612
+ # "user:foo@gmail.com"
613
+ # ]
614
+ # `,
615
+ # `
616
+ # "log_type": "DATA_WRITE",
617
+ # `
618
+ # ]
619
+ # `
620
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
621
+ # foo@gmail.com from DATA_READ logging.
622
+ class AuditLogConfig
548
623
  include Google::Apis::Core::Hashable
549
624
 
550
- # A `Constraint` that allows or disallows a list of string values, which are
551
- # configured by an Organization's policy administrator with a `Policy`.
552
- # Corresponds to the JSON property `listConstraint`
553
- # @return [Google::Apis::CloudresourcemanagerV1::ListConstraint]
554
- attr_accessor :list_constraint
555
-
556
- # Version of the `Constraint`. Default version is 0;
557
- # Corresponds to the JSON property `version`
558
- # @return [Fixnum]
559
- attr_accessor :version
560
-
561
- # The human readable name.
562
- # Mutable.
563
- # Corresponds to the JSON property `displayName`
564
- # @return [String]
565
- attr_accessor :display_name
566
-
567
- # Detailed description of what this `Constraint` controls as well as how and
568
- # where it is enforced.
569
- # Mutable.
570
- # Corresponds to the JSON property `description`
571
- # @return [String]
572
- attr_accessor :description
573
-
574
- # A `Constraint` that is either enforced or not.
575
- # For example a constraint `constraints/compute.disableSerialPortAccess`.
576
- # If it is enforced on a VM instance, serial port connections will not be
577
- # opened to that instance.
578
- # Corresponds to the JSON property `booleanConstraint`
579
- # @return [Google::Apis::CloudresourcemanagerV1::BooleanConstraint]
580
- attr_accessor :boolean_constraint
581
-
582
- # The evaluation behavior of this constraint in the absense of 'Policy'.
583
- # Corresponds to the JSON property `constraintDefault`
584
- # @return [String]
585
- attr_accessor :constraint_default
625
+ # Specifies the identities that do not cause logging for this type of
626
+ # permission.
627
+ # Follows the same format of Binding.members.
628
+ # Corresponds to the JSON property `exemptedMembers`
629
+ # @return [Array<String>]
630
+ attr_accessor :exempted_members
586
631
 
587
- # Immutable value, required to globally be unique. For example,
588
- # `constraints/serviceuser.services`
589
- # Corresponds to the JSON property `name`
632
+ # The log type that this config enables.
633
+ # Corresponds to the JSON property `logType`
590
634
  # @return [String]
591
- attr_accessor :name
635
+ attr_accessor :log_type
592
636
 
593
637
  def initialize(**args)
594
638
  update!(**args)
@@ -596,44 +640,41 @@ module Google
596
640
 
597
641
  # Update properties of this object
598
642
  def update!(**args)
599
- @list_constraint = args[:list_constraint] if args.key?(:list_constraint)
600
- @version = args[:version] if args.key?(:version)
601
- @display_name = args[:display_name] if args.key?(:display_name)
602
- @description = args[:description] if args.key?(:description)
603
- @boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint)
604
- @constraint_default = args[:constraint_default] if args.key?(:constraint_default)
605
- @name = args[:name] if args.key?(:name)
643
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
644
+ @log_type = args[:log_type] if args.key?(:log_type)
606
645
  end
607
646
  end
608
647
 
609
- # Associates `members` with a `role`.
610
- class Binding
648
+ # The request sent to the `SearchOrganizations` method.
649
+ class SearchOrganizationsRequest
611
650
  include Google::Apis::Core::Hashable
612
651
 
613
- # Specifies the identities requesting access for a Cloud Platform resource.
614
- # `members` can have the following values:
615
- # * `allUsers`: A special identifier that represents anyone who is
616
- # on the internet; with or without a Google account.
617
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
618
- # who is authenticated with a Google account or a service account.
619
- # * `user:`emailid``: An email address that represents a specific Google
620
- # account. For example, `alice@gmail.com` or `joe@example.com`.
621
- # * `serviceAccount:`emailid``: An email address that represents a service
622
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
623
- # * `group:`emailid``: An email address that represents a Google group.
624
- # For example, `admins@example.com`.
625
- # * `domain:`domain``: A Google Apps domain name that represents all the
626
- # users of that domain. For example, `google.com` or `example.com`.
627
- # Corresponds to the JSON property `members`
628
- # @return [Array<String>]
629
- attr_accessor :members
652
+ # An optional query string used to filter the Organizations to return in
653
+ # the response. Filter rules are case-insensitive.
654
+ # Organizations may be filtered by `owner.directoryCustomerId` or by
655
+ # `domain`, where the domain is a Google for Work domain, for example:
656
+ # |Filter|Description|
657
+ # |------|-----------|
658
+ # |owner.directorycustomerid:123456789|Organizations with
659
+ # `owner.directory_customer_id` equal to `123456789`.|
660
+ # |domain:google.com|Organizations corresponding to the domain `google.com`.|
661
+ # This field is optional.
662
+ # Corresponds to the JSON property `filter`
663
+ # @return [String]
664
+ attr_accessor :filter
630
665
 
631
- # Role that is assigned to `members`.
632
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
633
- # Required
634
- # Corresponds to the JSON property `role`
666
+ # A pagination token returned from a previous call to `SearchOrganizations`
667
+ # that indicates from where listing should continue.
668
+ # This field is optional.
669
+ # Corresponds to the JSON property `pageToken`
635
670
  # @return [String]
636
- attr_accessor :role
671
+ attr_accessor :page_token
672
+
673
+ # The maximum number of Organizations to return in the response.
674
+ # This field is optional.
675
+ # Corresponds to the JSON property `pageSize`
676
+ # @return [Fixnum]
677
+ attr_accessor :page_size
637
678
 
638
679
  def initialize(**args)
639
680
  update!(**args)
@@ -641,84 +682,74 @@ module Google
641
682
 
642
683
  # Update properties of this object
643
684
  def update!(**args)
644
- @members = args[:members] if args.key?(:members)
645
- @role = args[:role] if args.key?(:role)
685
+ @filter = args[:filter] if args.key?(:filter)
686
+ @page_token = args[:page_token] if args.key?(:page_token)
687
+ @page_size = args[:page_size] if args.key?(:page_size)
646
688
  end
647
689
  end
648
690
 
649
- # The request sent to the GetOrgPolicy method.
650
- class GetOrgPolicyRequest
691
+ # The request sent to the
692
+ # GetAncestry
693
+ # method.
694
+ class GetAncestryRequest
651
695
  include Google::Apis::Core::Hashable
652
696
 
653
- # Name of the `Constraint` to get the `Policy`.
654
- # Corresponds to the JSON property `constraint`
655
- # @return [String]
656
- attr_accessor :constraint
657
-
658
697
  def initialize(**args)
659
698
  update!(**args)
660
699
  end
661
700
 
662
701
  # Update properties of this object
663
702
  def update!(**args)
664
- @constraint = args[:constraint] if args.key?(:constraint)
665
703
  end
666
704
  end
667
705
 
668
- # Ignores policies set above this resource and restores the
669
- # `constraint_default` enforcement behavior of the specific `Constraint` at
670
- # this resource.
671
- # Suppose that `constraint_default` is set to `ALLOW` for the
672
- # `Constraint` `constraints/serviceuser.services`. Suppose that organization
673
- # foo.com sets a `Policy` at their Organization resource node that restricts
674
- # the allowed service activations to deny all service activations. They
675
- # could then set a `Policy` with the `policy_type` `restore_default` on
676
- # several experimental projects, restoring the `constraint_default`
677
- # enforcement of the `Constraint` for only those projects, allowing those
678
- # projects to have all services activated.
679
- class RestoreDefault
706
+ # Request message for `TestIamPermissions` method.
707
+ class TestIamPermissionsRequest
680
708
  include Google::Apis::Core::Hashable
681
709
 
710
+ # The set of permissions to check for the `resource`. Permissions with
711
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
712
+ # information see
713
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
714
+ # Corresponds to the JSON property `permissions`
715
+ # @return [Array<String>]
716
+ attr_accessor :permissions
717
+
682
718
  def initialize(**args)
683
719
  update!(**args)
684
720
  end
685
721
 
686
722
  # Update properties of this object
687
723
  def update!(**args)
724
+ @permissions = args[:permissions] if args.key?(:permissions)
688
725
  end
689
726
  end
690
727
 
691
- # The request sent to the ClearOrgPolicy method.
692
- class ClearOrgPolicyRequest
728
+ # Metadata describing a long running folder operation
729
+ class FolderOperation
693
730
  include Google::Apis::Core::Hashable
694
731
 
695
- # The current version, for concurrency control. Not sending an `etag`
696
- # will cause the `Policy` to be cleared blindly.
697
- # Corresponds to the JSON property `etag`
698
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
732
+ # The type of this operation.
733
+ # Corresponds to the JSON property `operationType`
699
734
  # @return [String]
700
- attr_accessor :etag
735
+ attr_accessor :operation_type
701
736
 
702
- # Name of the `Constraint` of the `Policy` to clear.
703
- # Corresponds to the JSON property `constraint`
737
+ # The display name of the folder.
738
+ # Corresponds to the JSON property `displayName`
704
739
  # @return [String]
705
- attr_accessor :constraint
706
-
707
- def initialize(**args)
708
- update!(**args)
709
- end
740
+ attr_accessor :display_name
710
741
 
711
- # Update properties of this object
712
- def update!(**args)
713
- @etag = args[:etag] if args.key?(:etag)
714
- @constraint = args[:constraint] if args.key?(:constraint)
715
- end
716
- end
742
+ # The resource name of the folder's parent.
743
+ # Only applicable when the operation_type is MOVE.
744
+ # Corresponds to the JSON property `sourceParent`
745
+ # @return [String]
746
+ attr_accessor :source_parent
717
747
 
718
- # The request sent to the UndeleteProject
719
- # method.
720
- class UndeleteProjectRequest
721
- include Google::Apis::Core::Hashable
748
+ # The resource name of the folder or organization we are either creating
749
+ # the folder under or moving the folder to.
750
+ # Corresponds to the JSON property `destinationParent`
751
+ # @return [String]
752
+ attr_accessor :destination_parent
722
753
 
723
754
  def initialize(**args)
724
755
  update!(**args)
@@ -726,52 +757,72 @@ module Google
726
757
 
727
758
  # Update properties of this object
728
759
  def update!(**args)
760
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
761
+ @display_name = args[:display_name] if args.key?(:display_name)
762
+ @source_parent = args[:source_parent] if args.key?(:source_parent)
763
+ @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
729
764
  end
730
765
  end
731
766
 
732
- # A status object which is used as the `metadata` field for the Operation
733
- # returned by CreateProject. It provides insight for when significant phases of
734
- # Project creation have completed.
735
- class ProjectCreationStatus
736
- include Google::Apis::Core::Hashable
737
-
738
- # True if the project creation process is complete.
739
- # Corresponds to the JSON property `ready`
740
- # @return [Boolean]
741
- attr_accessor :ready
742
- alias_method :ready?, :ready
743
-
744
- # Creation time of the project creation workflow.
745
- # Corresponds to the JSON property `createTime`
746
- # @return [String]
747
- attr_accessor :create_time
767
+ # Defines an Identity and Access Management (IAM) policy. It is used to
768
+ # specify access control policies for Cloud Platform resources.
769
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
770
+ # `members` to a `role`, where the members can be user accounts, Google groups,
771
+ # Google domains, and service accounts. A `role` is a named list of permissions
772
+ # defined by IAM.
773
+ # **Example**
774
+ # `
775
+ # "bindings": [
776
+ # `
777
+ # "role": "roles/owner",
778
+ # "members": [
779
+ # "user:mike@example.com",
780
+ # "group:admins@example.com",
781
+ # "domain:google.com",
782
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
783
+ # ]
784
+ # `,
785
+ # `
786
+ # "role": "roles/viewer",
787
+ # "members": ["user:sean@example.com"]
788
+ # `
789
+ # ]
790
+ # `
791
+ # For a description of IAM and its features, see the
792
+ # [IAM developer's guide](https://cloud.google.com/iam).
793
+ class Policy
794
+ include Google::Apis::Core::Hashable
748
795
 
749
- # True if the project can be retrieved using GetProject. No other operations
750
- # on the project are guaranteed to work until the project creation is
751
- # complete.
752
- # Corresponds to the JSON property `gettable`
753
- # @return [Boolean]
754
- attr_accessor :gettable
755
- alias_method :gettable?, :gettable
796
+ # `etag` is used for optimistic concurrency control as a way to help
797
+ # prevent simultaneous updates of a policy from overwriting each other.
798
+ # It is strongly suggested that systems make use of the `etag` in the
799
+ # read-modify-write cycle to perform policy updates in order to avoid race
800
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
801
+ # systems are expected to put that etag in the request to `setIamPolicy` to
802
+ # ensure that their change will be applied to the same version of the policy.
803
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
804
+ # policy is overwritten blindly.
805
+ # Corresponds to the JSON property `etag`
806
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
807
+ # @return [String]
808
+ attr_accessor :etag
756
809
 
757
- def initialize(**args)
758
- update!(**args)
759
- end
810
+ # Version of the `Policy`. The default version is 0.
811
+ # Corresponds to the JSON property `version`
812
+ # @return [Fixnum]
813
+ attr_accessor :version
760
814
 
761
- # Update properties of this object
762
- def update!(**args)
763
- @ready = args[:ready] if args.key?(:ready)
764
- @create_time = args[:create_time] if args.key?(:create_time)
765
- @gettable = args[:gettable] if args.key?(:gettable)
766
- end
767
- end
815
+ # Specifies cloud audit logging configuration for this policy.
816
+ # Corresponds to the JSON property `auditConfigs`
817
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::AuditConfig>]
818
+ attr_accessor :audit_configs
768
819
 
769
- # A `Constraint` that is either enforced or not.
770
- # For example a constraint `constraints/compute.disableSerialPortAccess`.
771
- # If it is enforced on a VM instance, serial port connections will not be
772
- # opened to that instance.
773
- class BooleanConstraint
774
- include Google::Apis::Core::Hashable
820
+ # Associates a list of `members` to a `role`.
821
+ # Multiple `bindings` must not be specified for the same `role`.
822
+ # `bindings` with no members will result in an error.
823
+ # Corresponds to the JSON property `bindings`
824
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Binding>]
825
+ attr_accessor :bindings
775
826
 
776
827
  def initialize(**args)
777
828
  update!(**args)
@@ -779,31 +830,60 @@ module Google
779
830
 
780
831
  # Update properties of this object
781
832
  def update!(**args)
833
+ @etag = args[:etag] if args.key?(:etag)
834
+ @version = args[:version] if args.key?(:version)
835
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
836
+ @bindings = args[:bindings] if args.key?(:bindings)
782
837
  end
783
838
  end
784
839
 
785
- # Request message for `GetIamPolicy` method.
786
- class GetIamPolicyRequest
840
+ # The request sent to the [ListAvailableOrgPolicyConstraints]
841
+ # google.cloud.OrgPolicy.v1.ListAvailableOrgPolicyConstraints] method.
842
+ class ListAvailableOrgPolicyConstraintsRequest
787
843
  include Google::Apis::Core::Hashable
788
844
 
845
+ # Page token used to retrieve the next page. This is currently unsupported
846
+ # and will be ignored. The server may at any point start using this field.
847
+ # Corresponds to the JSON property `pageToken`
848
+ # @return [String]
849
+ attr_accessor :page_token
850
+
851
+ # Size of the pages to be returned. This is currently unsupported and will
852
+ # be ignored. The server may at any point start using this field to limit
853
+ # page size.
854
+ # Corresponds to the JSON property `pageSize`
855
+ # @return [Fixnum]
856
+ attr_accessor :page_size
857
+
789
858
  def initialize(**args)
790
859
  update!(**args)
791
860
  end
792
861
 
793
862
  # Update properties of this object
794
863
  def update!(**args)
864
+ @page_token = args[:page_token] if args.key?(:page_token)
865
+ @page_size = args[:page_size] if args.key?(:page_size)
795
866
  end
796
867
  end
797
868
 
798
- # Response message for `TestIamPermissions` method.
799
- class TestIamPermissionsResponse
869
+ # A container to reference an id for any resource type. A `resource` in Google
870
+ # Cloud Platform is a generic term for something you (a developer) may want to
871
+ # interact with through one of our API's. Some examples are an App Engine app,
872
+ # a Compute Engine instance, a Cloud SQL database, and so on.
873
+ class ResourceId
800
874
  include Google::Apis::Core::Hashable
801
875
 
802
- # A subset of `TestPermissionsRequest.permissions` that the caller is
803
- # allowed.
804
- # Corresponds to the JSON property `permissions`
805
- # @return [Array<String>]
806
- attr_accessor :permissions
876
+ # Required field for the type-specific id. This should correspond to the id
877
+ # used in the type-specific API's.
878
+ # Corresponds to the JSON property `id`
879
+ # @return [String]
880
+ attr_accessor :id
881
+
882
+ # Required field representing the resource type this id is for.
883
+ # At present, the valid types are: "organization"
884
+ # Corresponds to the JSON property `type`
885
+ # @return [String]
886
+ attr_accessor :type
807
887
 
808
888
  def initialize(**args)
809
889
  update!(**args)
@@ -811,21 +891,19 @@ module Google
811
891
 
812
892
  # Update properties of this object
813
893
  def update!(**args)
814
- @permissions = args[:permissions] if args.key?(:permissions)
894
+ @id = args[:id] if args.key?(:id)
895
+ @type = args[:type] if args.key?(:type)
815
896
  end
816
897
  end
817
898
 
818
- # The entity that owns an Organization. The lifetime of the Organization and
819
- # all of its descendants are bound to the `OrganizationOwner`. If the
820
- # `OrganizationOwner` is deleted, the Organization and all its descendants will
821
- # be deleted.
822
- class OrganizationOwner
899
+ # The request sent to the GetEffectiveOrgPolicy method.
900
+ class GetEffectiveOrgPolicyRequest
823
901
  include Google::Apis::Core::Hashable
824
902
 
825
- # The Google for Work customer id used in the Directory API.
826
- # Corresponds to the JSON property `directoryCustomerId`
903
+ # The name of the `Constraint` to compute the effective `Policy`.
904
+ # Corresponds to the JSON property `constraint`
827
905
  # @return [String]
828
- attr_accessor :directory_customer_id
906
+ attr_accessor :constraint
829
907
 
830
908
  def initialize(**args)
831
909
  update!(**args)
@@ -833,36 +911,26 @@ module Google
833
911
 
834
912
  # Update properties of this object
835
913
  def update!(**args)
836
- @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
914
+ @constraint = args[:constraint] if args.key?(:constraint)
837
915
  end
838
916
  end
839
917
 
840
- # A page of the response received from the
841
- # ListProjects
842
- # method.
843
- # A paginated response where more pages are available has
844
- # `next_page_token` set. This token can be used in a subsequent request to
845
- # retrieve the next request page.
846
- class ListProjectsResponse
918
+ # The request sent to the ListOrgPolicies method.
919
+ class ListOrgPoliciesRequest
847
920
  include Google::Apis::Core::Hashable
848
921
 
849
- # The list of Projects that matched the list filter. This list can
850
- # be paginated.
851
- # Corresponds to the JSON property `projects`
852
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Project>]
853
- attr_accessor :projects
854
-
855
- # Pagination token.
856
- # If the result set is too large to fit in a single response, this token
857
- # is returned. It encodes the position of the current result cursor.
858
- # Feeding this value into a new list request with the `page_token` parameter
859
- # gives the next page of the results.
860
- # When `next_page_token` is not filled in, there is no next page and
861
- # the list returned is the last page in the result set.
862
- # Pagination tokens have a limited lifetime.
863
- # Corresponds to the JSON property `nextPageToken`
922
+ # Page token used to retrieve the next page. This is currently unsupported
923
+ # and will be ignored. The server may at any point start using this field.
924
+ # Corresponds to the JSON property `pageToken`
864
925
  # @return [String]
865
- attr_accessor :next_page_token
926
+ attr_accessor :page_token
927
+
928
+ # Size of the pages to be returned. This is currently unsupported and will
929
+ # be ignored. The server may at any point start using this field to limit
930
+ # page size.
931
+ # Corresponds to the JSON property `pageSize`
932
+ # @return [Fixnum]
933
+ attr_accessor :page_size
866
934
 
867
935
  def initialize(**args)
868
936
  update!(**args)
@@ -870,77 +938,93 @@ module Google
870
938
 
871
939
  # Update properties of this object
872
940
  def update!(**args)
873
- @projects = args[:projects] if args.key?(:projects)
874
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
941
+ @page_token = args[:page_token] if args.key?(:page_token)
942
+ @page_size = args[:page_size] if args.key?(:page_size)
875
943
  end
876
944
  end
877
945
 
878
- # A Project is a high-level Google Cloud Platform entity. It is a
879
- # container for ACLs, APIs, App Engine Apps, VMs, and other
880
- # Google Cloud Platform resources.
881
- class Project
946
+ # This resource represents a long-running operation that is the result of a
947
+ # network API call.
948
+ class Operation
882
949
  include Google::Apis::Core::Hashable
883
950
 
884
- # The number uniquely identifying the project.
885
- # Example: <code>415104041262</code>
886
- # Read-only.
887
- # Corresponds to the JSON property `projectNumber`
888
- # @return [Fixnum]
889
- attr_accessor :project_number
890
-
891
- # A container to reference an id for any resource type. A `resource` in Google
892
- # Cloud Platform is a generic term for something you (a developer) may want to
893
- # interact with through one of our API's. Some examples are an App Engine app,
894
- # a Compute Engine instance, a Cloud SQL database, and so on.
895
- # Corresponds to the JSON property `parent`
896
- # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
897
- attr_accessor :parent
898
-
899
- # Creation time.
900
- # Read-only.
901
- # Corresponds to the JSON property `createTime`
902
- # @return [String]
903
- attr_accessor :create_time
951
+ # If the value is `false`, it means the operation is still in progress.
952
+ # If true, the operation is completed, and either `error` or `response` is
953
+ # available.
954
+ # Corresponds to the JSON property `done`
955
+ # @return [Boolean]
956
+ attr_accessor :done
957
+ alias_method :done?, :done
904
958
 
905
- # The labels associated with this Project.
906
- # Label keys must be between 1 and 63 characters long and must conform
907
- # to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
908
- # Label values must be between 0 and 63 characters long and must conform
909
- # to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
910
- # No more than 256 labels can be associated with a given resource.
911
- # Clients should store labels in a representation such as JSON that does not
912
- # depend on specific characters being disallowed.
913
- # Example: <code>"environment" : "dev"</code>
914
- # Read-write.
915
- # Corresponds to the JSON property `labels`
916
- # @return [Hash<String,String>]
917
- attr_accessor :labels
959
+ # The normal response of the operation in case of success. If the original
960
+ # method returns no data on success, such as `Delete`, the response is
961
+ # `google.protobuf.Empty`. If the original method is standard
962
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
963
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
964
+ # is the original method name. For example, if the original method name
965
+ # is `TakeSnapshot()`, the inferred response type is
966
+ # `TakeSnapshotResponse`.
967
+ # Corresponds to the JSON property `response`
968
+ # @return [Hash<String,Object>]
969
+ attr_accessor :response
918
970
 
919
- # The user-assigned display name of the Project.
920
- # It must be 4 to 30 characters.
921
- # Allowed characters are: lowercase and uppercase letters, numbers,
922
- # hyphen, single-quote, double-quote, space, and exclamation point.
923
- # Example: <code>My Project</code>
924
- # Read-write.
971
+ # The server-assigned name, which is only unique within the same service that
972
+ # originally returns it. If you use the default HTTP mapping, the
973
+ # `name` should have the format of `operations/some/unique/name`.
925
974
  # Corresponds to the JSON property `name`
926
975
  # @return [String]
927
976
  attr_accessor :name
928
977
 
929
- # The unique, user-assigned ID of the Project.
930
- # It must be 6 to 30 lowercase letters, digits, or hyphens.
931
- # It must start with a letter.
932
- # Trailing hyphens are prohibited.
933
- # Example: <code>tokyo-rain-123</code>
934
- # Read-only after creation.
935
- # Corresponds to the JSON property `projectId`
936
- # @return [String]
937
- attr_accessor :project_id
978
+ # The `Status` type defines a logical error model that is suitable for different
979
+ # programming environments, including REST APIs and RPC APIs. It is used by
980
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
981
+ # - Simple to use and understand for most users
982
+ # - Flexible enough to meet unexpected needs
983
+ # # Overview
984
+ # The `Status` message contains three pieces of data: error code, error message,
985
+ # and error details. The error code should be an enum value of
986
+ # google.rpc.Code, but it may accept additional error codes if needed. The
987
+ # error message should be a developer-facing English message that helps
988
+ # developers *understand* and *resolve* the error. If a localized user-facing
989
+ # error message is needed, put the localized message in the error details or
990
+ # localize it in the client. The optional error details may contain arbitrary
991
+ # information about the error. There is a predefined set of error detail types
992
+ # in the package `google.rpc` that can be used for common error conditions.
993
+ # # Language mapping
994
+ # The `Status` message is the logical representation of the error model, but it
995
+ # is not necessarily the actual wire format. When the `Status` message is
996
+ # exposed in different client libraries and different wire protocols, it can be
997
+ # mapped differently. For example, it will likely be mapped to some exceptions
998
+ # in Java, but more likely mapped to some error codes in C.
999
+ # # Other uses
1000
+ # The error model and the `Status` message can be used in a variety of
1001
+ # environments, either with or without APIs, to provide a
1002
+ # consistent developer experience across different environments.
1003
+ # Example uses of this error model include:
1004
+ # - Partial errors. If a service needs to return partial errors to the client,
1005
+ # it may embed the `Status` in the normal response to indicate the partial
1006
+ # errors.
1007
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1008
+ # have a `Status` message for error reporting.
1009
+ # - Batch operations. If a client uses batch request and batch response, the
1010
+ # `Status` message should be used directly inside batch response, one for
1011
+ # each error sub-response.
1012
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1013
+ # results in its response, the status of those operations should be
1014
+ # represented directly using the `Status` message.
1015
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1016
+ # be used directly after any stripping needed for security/privacy reasons.
1017
+ # Corresponds to the JSON property `error`
1018
+ # @return [Google::Apis::CloudresourcemanagerV1::Status]
1019
+ attr_accessor :error
938
1020
 
939
- # The Project lifecycle state.
940
- # Read-only.
941
- # Corresponds to the JSON property `lifecycleState`
942
- # @return [String]
943
- attr_accessor :lifecycle_state
1021
+ # Service-specific metadata associated with the operation. It typically
1022
+ # contains progress information and common metadata such as create time.
1023
+ # Some services might not provide such metadata. Any method that returns a
1024
+ # long-running operation should document the metadata type, if any.
1025
+ # Corresponds to the JSON property `metadata`
1026
+ # @return [Hash<String,Object>]
1027
+ attr_accessor :metadata
944
1028
 
945
1029
  def initialize(**args)
946
1030
  update!(**args)
@@ -948,168 +1032,76 @@ module Google
948
1032
 
949
1033
  # Update properties of this object
950
1034
  def update!(**args)
951
- @project_number = args[:project_number] if args.key?(:project_number)
952
- @parent = args[:parent] if args.key?(:parent)
953
- @create_time = args[:create_time] if args.key?(:create_time)
954
- @labels = args[:labels] if args.key?(:labels)
1035
+ @done = args[:done] if args.key?(:done)
1036
+ @response = args[:response] if args.key?(:response)
955
1037
  @name = args[:name] if args.key?(:name)
956
- @project_id = args[:project_id] if args.key?(:project_id)
957
- @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
958
- end
959
- end
960
-
961
- # The response returned from the `SearchOrganizations` method.
962
- class SearchOrganizationsResponse
963
- include Google::Apis::Core::Hashable
964
-
965
- # A pagination token to be used to retrieve the next page of results. If the
966
- # result is too large to fit within the page size specified in the request,
967
- # this field will be set with a token that can be used to fetch the next page
968
- # of results. If this field is empty, it indicates that this response
969
- # contains the last page of results.
970
- # Corresponds to the JSON property `nextPageToken`
971
- # @return [String]
972
- attr_accessor :next_page_token
973
-
974
- # The list of Organizations that matched the search query, possibly
975
- # paginated.
976
- # Corresponds to the JSON property `organizations`
977
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Organization>]
978
- attr_accessor :organizations
979
-
980
- def initialize(**args)
981
- update!(**args)
982
- end
983
-
984
- # Update properties of this object
985
- def update!(**args)
986
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
987
- @organizations = args[:organizations] if args.key?(:organizations)
988
- end
989
- end
990
-
991
- # The response returned from the ListOrgPolicies method. It will be empty
992
- # if no `Policies` are set on the resource.
993
- class ListOrgPoliciesResponse
994
- include Google::Apis::Core::Hashable
995
-
996
- # The `Policies` that are set on the resource. It will be empty if no
997
- # `Policies` are set.
998
- # Corresponds to the JSON property `policies`
999
- # @return [Array<Google::Apis::CloudresourcemanagerV1::OrgPolicy>]
1000
- attr_accessor :policies
1001
-
1002
- # Page token used to retrieve the next page. This is currently not used, but
1003
- # the server may at any point start supplying a valid token.
1004
- # Corresponds to the JSON property `nextPageToken`
1005
- # @return [String]
1006
- attr_accessor :next_page_token
1007
-
1008
- def initialize(**args)
1009
- update!(**args)
1010
- end
1011
-
1012
- # Update properties of this object
1013
- def update!(**args)
1014
- @policies = args[:policies] if args.key?(:policies)
1015
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1016
- end
1017
- end
1018
-
1019
- # A classification of the Folder Operation error.
1020
- class FolderOperationError
1021
- include Google::Apis::Core::Hashable
1022
-
1023
- # The type of operation error experienced.
1024
- # Corresponds to the JSON property `errorMessageId`
1025
- # @return [String]
1026
- attr_accessor :error_message_id
1027
-
1028
- def initialize(**args)
1029
- update!(**args)
1030
- end
1031
-
1032
- # Update properties of this object
1033
- def update!(**args)
1034
- @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
1038
+ @error = args[:error] if args.key?(:error)
1039
+ @metadata = args[:metadata] if args.key?(:metadata)
1035
1040
  end
1036
1041
  end
1037
1042
 
1038
- # Defines a Cloud Organization `Policy` which is used to specify `Constraints`
1039
- # for configurations of Cloud Platform resources.
1040
- class OrgPolicy
1043
+ # Specifies the audit configuration for a service.
1044
+ # The configuration determines which permission types are logged, and what
1045
+ # identities, if any, are exempted from logging.
1046
+ # An AuditConfig must have one or more AuditLogConfigs.
1047
+ # If there are AuditConfigs for both `allServices` and a specific service,
1048
+ # the union of the two AuditConfigs is used for that service: the log_types
1049
+ # specified in each AuditConfig are enabled, and the exempted_members in each
1050
+ # AuditConfig are exempted.
1051
+ # Example Policy with multiple AuditConfigs:
1052
+ # `
1053
+ # "audit_configs": [
1054
+ # `
1055
+ # "service": "allServices"
1056
+ # "audit_log_configs": [
1057
+ # `
1058
+ # "log_type": "DATA_READ",
1059
+ # "exempted_members": [
1060
+ # "user:foo@gmail.com"
1061
+ # ]
1062
+ # `,
1063
+ # `
1064
+ # "log_type": "DATA_WRITE",
1065
+ # `,
1066
+ # `
1067
+ # "log_type": "ADMIN_READ",
1068
+ # `
1069
+ # ]
1070
+ # `,
1071
+ # `
1072
+ # "service": "fooservice.googleapis.com"
1073
+ # "audit_log_configs": [
1074
+ # `
1075
+ # "log_type": "DATA_READ",
1076
+ # `,
1077
+ # `
1078
+ # "log_type": "DATA_WRITE",
1079
+ # "exempted_members": [
1080
+ # "user:bar@gmail.com"
1081
+ # ]
1082
+ # `
1083
+ # ]
1084
+ # `
1085
+ # ]
1086
+ # `
1087
+ # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
1088
+ # logging. It also exempts foo@gmail.com from DATA_READ logging, and
1089
+ # bar@gmail.com from DATA_WRITE logging.
1090
+ class AuditConfig
1041
1091
  include Google::Apis::Core::Hashable
1042
1092
 
1043
- # The time stamp the `Policy` was previously updated. This is set by the
1044
- # server, not specified by the caller, and represents the last time a call to
1045
- # `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
1046
- # be ignored.
1047
- # Corresponds to the JSON property `updateTime`
1048
- # @return [String]
1049
- attr_accessor :update_time
1050
-
1051
- # Version of the `Policy`. Default version is 0;
1052
- # Corresponds to the JSON property `version`
1053
- # @return [Fixnum]
1054
- attr_accessor :version
1055
-
1056
- # Ignores policies set above this resource and restores the
1057
- # `constraint_default` enforcement behavior of the specific `Constraint` at
1058
- # this resource.
1059
- # Suppose that `constraint_default` is set to `ALLOW` for the
1060
- # `Constraint` `constraints/serviceuser.services`. Suppose that organization
1061
- # foo.com sets a `Policy` at their Organization resource node that restricts
1062
- # the allowed service activations to deny all service activations. They
1063
- # could then set a `Policy` with the `policy_type` `restore_default` on
1064
- # several experimental projects, restoring the `constraint_default`
1065
- # enforcement of the `Constraint` for only those projects, allowing those
1066
- # projects to have all services activated.
1067
- # Corresponds to the JSON property `restoreDefault`
1068
- # @return [Google::Apis::CloudresourcemanagerV1::RestoreDefault]
1069
- attr_accessor :restore_default
1070
-
1071
- # Used in `policy_type` to specify how `list_policy` behaves at this
1072
- # resource.
1073
- # A `ListPolicy` can define specific values that are allowed or denied by
1074
- # setting either the `allowed_values` or `denied_values` fields. It can also
1075
- # be used to allow or deny all values, by setting the `all_values` field. If
1076
- # `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`
1077
- # or `denied_values` must be set (attempting to set both or neither will
1078
- # result in a failed request). If `all_values` is set to either `ALLOW` or
1079
- # `DENY`, `allowed_values` and `denied_values` must be unset.
1080
- # Corresponds to the JSON property `listPolicy`
1081
- # @return [Google::Apis::CloudresourcemanagerV1::ListPolicy]
1082
- attr_accessor :list_policy
1083
-
1084
- # An opaque tag indicating the current version of the `Policy`, used for
1085
- # concurrency control.
1086
- # When the `Policy` is returned from either a `GetPolicy` or a
1087
- # `ListOrgPolicy` request, this `etag` indicates the version of the current
1088
- # `Policy` to use when executing a read-modify-write loop.
1089
- # When the `Policy` is returned from a `GetEffectivePolicy` request, the
1090
- # `etag` will be unset.
1091
- # When the `Policy` is used in a `SetOrgPolicy` method, use the `etag` value
1092
- # that was returned from a `GetOrgPolicy` request as part of a
1093
- # read-modify-write loop for concurrency control. Not setting the `etag`in a
1094
- # `SetOrgPolicy` request will result in an unconditional write of the
1095
- # `Policy`.
1096
- # Corresponds to the JSON property `etag`
1097
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
1093
+ # Specifies a service that will be enabled for audit logging.
1094
+ # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
1095
+ # `allServices` is a special value that covers all services.
1096
+ # Corresponds to the JSON property `service`
1098
1097
  # @return [String]
1099
- attr_accessor :etag
1100
-
1101
- # Used in `policy_type` to specify how `boolean_policy` will behave at this
1102
- # resource.
1103
- # Corresponds to the JSON property `booleanPolicy`
1104
- # @return [Google::Apis::CloudresourcemanagerV1::BooleanPolicy]
1105
- attr_accessor :boolean_policy
1098
+ attr_accessor :service
1106
1099
 
1107
- # The name of the `Constraint` the `Policy` is configuring, for example,
1108
- # `constraints/serviceuser.services`.
1109
- # Immutable after creation.
1110
- # Corresponds to the JSON property `constraint`
1111
- # @return [String]
1112
- attr_accessor :constraint
1100
+ # The configuration for logging of each type of permission.
1101
+ # Next ID: 4
1102
+ # Corresponds to the JSON property `auditLogConfigs`
1103
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::AuditLogConfig>]
1104
+ attr_accessor :audit_log_configs
1113
1105
 
1114
1106
  def initialize(**args)
1115
1107
  update!(**args)
@@ -1117,63 +1109,70 @@ module Google
1117
1109
 
1118
1110
  # Update properties of this object
1119
1111
  def update!(**args)
1120
- @update_time = args[:update_time] if args.key?(:update_time)
1121
- @version = args[:version] if args.key?(:version)
1122
- @restore_default = args[:restore_default] if args.key?(:restore_default)
1123
- @list_policy = args[:list_policy] if args.key?(:list_policy)
1124
- @etag = args[:etag] if args.key?(:etag)
1125
- @boolean_policy = args[:boolean_policy] if args.key?(:boolean_policy)
1126
- @constraint = args[:constraint] if args.key?(:constraint)
1112
+ @service = args[:service] if args.key?(:service)
1113
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
1127
1114
  end
1128
1115
  end
1129
1116
 
1130
- # Used in `policy_type` to specify how `boolean_policy` will behave at this
1131
- # resource.
1132
- class BooleanPolicy
1133
- include Google::Apis::Core::Hashable
1134
-
1135
- # If `true`, then the `Policy` is enforced. If `false`, then any
1136
- # configuration is acceptable.
1137
- # Suppose you have a `Constraint` `constraints/compute.disableSerialPortAccess`
1138
- # with `constraint_default` set to `ALLOW`. A `Policy` for that
1139
- # `Constraint` exhibits the following behavior:
1140
- # - If the `Policy` at this resource has enforced set to `false`, serial
1141
- # port connection attempts will be allowed.
1142
- # - If the `Policy` at this resource has enforced set to `true`, serial
1143
- # port connection attempts will be refused.
1144
- # - If the `Policy` at this resource is `RestoreDefault`, serial port
1145
- # connection attempts will be allowed.
1146
- # - If no `Policy` is set at this resource or anywhere higher in the
1147
- # resource hierarchy, serial port connection attempts will be allowed.
1148
- # - If no `Policy` is set at this resource, but one exists higher in the
1149
- # resource hierarchy, the behavior is as if the`Policy` were set at
1150
- # this resource.
1151
- # The following examples demonstrate the different possible layerings:
1152
- # Example 1 (nearest `Constraint` wins):
1153
- # `organizations/foo` has a `Policy` with:
1154
- # `enforced: false`
1155
- # `projects/bar` has no `Policy` set.
1156
- # The constraint at `projects/bar` and `organizations/foo` will not be
1157
- # enforced.
1158
- # Example 2 (enforcement gets replaced):
1159
- # `organizations/foo` has a `Policy` with:
1160
- # `enforced: false`
1161
- # `projects/bar` has a `Policy` with:
1162
- # `enforced: true`
1163
- # The constraint at `organizations/foo` is not enforced.
1164
- # The constraint at `projects/bar` is enforced.
1165
- # Example 3 (RestoreDefault):
1166
- # `organizations/foo` has a `Policy` with:
1167
- # `enforced: true`
1168
- # `projects/bar` has a `Policy` with:
1169
- # `RestoreDefault: ```
1170
- # The constraint at `organizations/foo` is enforced.
1171
- # The constraint at `projects/bar` is not enforced, because
1172
- # `constraint_default` for the `Constraint` is `ALLOW`.
1173
- # Corresponds to the JSON property `enforced`
1174
- # @return [Boolean]
1175
- attr_accessor :enforced
1176
- alias_method :enforced?, :enforced
1117
+ # The `Status` type defines a logical error model that is suitable for different
1118
+ # programming environments, including REST APIs and RPC APIs. It is used by
1119
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1120
+ # - Simple to use and understand for most users
1121
+ # - Flexible enough to meet unexpected needs
1122
+ # # Overview
1123
+ # The `Status` message contains three pieces of data: error code, error message,
1124
+ # and error details. The error code should be an enum value of
1125
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1126
+ # error message should be a developer-facing English message that helps
1127
+ # developers *understand* and *resolve* the error. If a localized user-facing
1128
+ # error message is needed, put the localized message in the error details or
1129
+ # localize it in the client. The optional error details may contain arbitrary
1130
+ # information about the error. There is a predefined set of error detail types
1131
+ # in the package `google.rpc` that can be used for common error conditions.
1132
+ # # Language mapping
1133
+ # The `Status` message is the logical representation of the error model, but it
1134
+ # is not necessarily the actual wire format. When the `Status` message is
1135
+ # exposed in different client libraries and different wire protocols, it can be
1136
+ # mapped differently. For example, it will likely be mapped to some exceptions
1137
+ # in Java, but more likely mapped to some error codes in C.
1138
+ # # Other uses
1139
+ # The error model and the `Status` message can be used in a variety of
1140
+ # environments, either with or without APIs, to provide a
1141
+ # consistent developer experience across different environments.
1142
+ # Example uses of this error model include:
1143
+ # - Partial errors. If a service needs to return partial errors to the client,
1144
+ # it may embed the `Status` in the normal response to indicate the partial
1145
+ # errors.
1146
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1147
+ # have a `Status` message for error reporting.
1148
+ # - Batch operations. If a client uses batch request and batch response, the
1149
+ # `Status` message should be used directly inside batch response, one for
1150
+ # each error sub-response.
1151
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1152
+ # results in its response, the status of those operations should be
1153
+ # represented directly using the `Status` message.
1154
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1155
+ # be used directly after any stripping needed for security/privacy reasons.
1156
+ class Status
1157
+ include Google::Apis::Core::Hashable
1158
+
1159
+ # A list of messages that carry the error details. There will be a
1160
+ # common set of message types for APIs to use.
1161
+ # Corresponds to the JSON property `details`
1162
+ # @return [Array<Hash<String,Object>>]
1163
+ attr_accessor :details
1164
+
1165
+ # The status code, which should be an enum value of google.rpc.Code.
1166
+ # Corresponds to the JSON property `code`
1167
+ # @return [Fixnum]
1168
+ attr_accessor :code
1169
+
1170
+ # A developer-facing error message, which should be in English. Any
1171
+ # user-facing error message should be localized and sent in the
1172
+ # google.rpc.Status.details field, or localized by the client.
1173
+ # Corresponds to the JSON property `message`
1174
+ # @return [String]
1175
+ attr_accessor :message
1177
1176
 
1178
1177
  def initialize(**args)
1179
1178
  update!(**args)
@@ -1181,56 +1180,26 @@ module Google
1181
1180
 
1182
1181
  # Update properties of this object
1183
1182
  def update!(**args)
1184
- @enforced = args[:enforced] if args.key?(:enforced)
1183
+ @details = args[:details] if args.key?(:details)
1184
+ @code = args[:code] if args.key?(:code)
1185
+ @message = args[:message] if args.key?(:message)
1185
1186
  end
1186
1187
  end
1187
1188
 
1188
- # A Lien represents an encumbrance on the actions that can be performed on a
1189
- # resource.
1190
- class Lien
1189
+ # The response message for Liens.ListLiens.
1190
+ class ListLiensResponse
1191
1191
  include Google::Apis::Core::Hashable
1192
1192
 
1193
- # A system-generated unique identifier for this Lien.
1194
- # Example: `liens/1234abcd`
1195
- # Corresponds to the JSON property `name`
1196
- # @return [String]
1197
- attr_accessor :name
1198
-
1199
- # Concise user-visible strings indicating why an action cannot be performed
1200
- # on a resource. Maximum lenth of 200 characters.
1201
- # Example: 'Holds production API key'
1202
- # Corresponds to the JSON property `reason`
1203
- # @return [String]
1204
- attr_accessor :reason
1205
-
1206
- # A stable, user-visible/meaningful string identifying the origin of the
1207
- # Lien, intended to be inspected programmatically. Maximum length of 200
1208
- # characters.
1209
- # Example: 'compute.googleapis.com'
1210
- # Corresponds to the JSON property `origin`
1211
- # @return [String]
1212
- attr_accessor :origin
1213
-
1214
- # The types of operations which should be blocked as a result of this Lien.
1215
- # Each value should correspond to an IAM permission. The server will
1216
- # validate the permissions against those for which Liens are supported.
1217
- # An empty list is meaningless and will be rejected.
1218
- # Example: ['resourcemanager.projects.delete']
1219
- # Corresponds to the JSON property `restrictions`
1220
- # @return [Array<String>]
1221
- attr_accessor :restrictions
1222
-
1223
- # A reference to the resource this Lien is attached to. The server will
1224
- # validate the parent against those for which Liens are supported.
1225
- # Example: `projects/1234`
1226
- # Corresponds to the JSON property `parent`
1193
+ # Token to retrieve the next page of results, or empty if there are no more
1194
+ # results in the list.
1195
+ # Corresponds to the JSON property `nextPageToken`
1227
1196
  # @return [String]
1228
- attr_accessor :parent
1197
+ attr_accessor :next_page_token
1229
1198
 
1230
- # The creation time of this Lien.
1231
- # Corresponds to the JSON property `createTime`
1232
- # @return [String]
1233
- attr_accessor :create_time
1199
+ # A list of Liens.
1200
+ # Corresponds to the JSON property `liens`
1201
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Lien>]
1202
+ attr_accessor :liens
1234
1203
 
1235
1204
  def initialize(**args)
1236
1205
  update!(**args)
@@ -1238,47 +1207,69 @@ module Google
1238
1207
 
1239
1208
  # Update properties of this object
1240
1209
  def update!(**args)
1241
- @name = args[:name] if args.key?(:name)
1242
- @reason = args[:reason] if args.key?(:reason)
1243
- @origin = args[:origin] if args.key?(:origin)
1244
- @restrictions = args[:restrictions] if args.key?(:restrictions)
1245
- @parent = args[:parent] if args.key?(:parent)
1246
- @create_time = args[:create_time] if args.key?(:create_time)
1210
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1211
+ @liens = args[:liens] if args.key?(:liens)
1247
1212
  end
1248
1213
  end
1249
1214
 
1250
- # Identifying information for a single ancestor of a project.
1251
- class Ancestor
1215
+ # A `Constraint` describes a way in which a resource's configuration can be
1216
+ # restricted. For example, it controls which cloud services can be activated
1217
+ # across an organization, or whether a Compute Engine instance can have
1218
+ # serial port connections established. `Constraints` can be configured by the
1219
+ # organization's policy adminstrator to fit the needs of the organzation by
1220
+ # setting Policies for `Constraints` at different locations in the
1221
+ # organization's resource hierarchy. Policies are inherited down the resource
1222
+ # hierarchy from higher levels, but can also be overridden. For details about
1223
+ # the inheritance rules please read about
1224
+ # Policies.
1225
+ # `Constraints` have a default behavior determined by the `constraint_default`
1226
+ # field, which is the enforcement behavior that is used in the absence of a
1227
+ # `Policy` being defined or inherited for the resource in question.
1228
+ class Constraint
1252
1229
  include Google::Apis::Core::Hashable
1253
1230
 
1254
- # A container to reference an id for any resource type. A `resource` in Google
1255
- # Cloud Platform is a generic term for something you (a developer) may want to
1256
- # interact with through one of our API's. Some examples are an App Engine app,
1257
- # a Compute Engine instance, a Cloud SQL database, and so on.
1258
- # Corresponds to the JSON property `resourceId`
1259
- # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
1260
- attr_accessor :resource_id
1231
+ # The human readable name.
1232
+ # Mutable.
1233
+ # Corresponds to the JSON property `displayName`
1234
+ # @return [String]
1235
+ attr_accessor :display_name
1261
1236
 
1262
- def initialize(**args)
1263
- update!(**args)
1264
- end
1237
+ # Detailed description of what this `Constraint` controls as well as how and
1238
+ # where it is enforced.
1239
+ # Mutable.
1240
+ # Corresponds to the JSON property `description`
1241
+ # @return [String]
1242
+ attr_accessor :description
1265
1243
 
1266
- # Update properties of this object
1267
- def update!(**args)
1268
- @resource_id = args[:resource_id] if args.key?(:resource_id)
1269
- end
1270
- end
1244
+ # A `Constraint` that is either enforced or not.
1245
+ # For example a constraint `constraints/compute.disableSerialPortAccess`.
1246
+ # If it is enforced on a VM instance, serial port connections will not be
1247
+ # opened to that instance.
1248
+ # Corresponds to the JSON property `booleanConstraint`
1249
+ # @return [Google::Apis::CloudresourcemanagerV1::BooleanConstraint]
1250
+ attr_accessor :boolean_constraint
1271
1251
 
1272
- # A `Constraint` that allows or disallows a list of string values, which are
1273
- # configured by an Organization's policy administrator with a `Policy`.
1274
- class ListConstraint
1275
- include Google::Apis::Core::Hashable
1252
+ # The evaluation behavior of this constraint in the absense of 'Policy'.
1253
+ # Corresponds to the JSON property `constraintDefault`
1254
+ # @return [String]
1255
+ attr_accessor :constraint_default
1276
1256
 
1277
- # Optional. The Google Cloud Console will try to default to a configuration
1278
- # that matches the value specified in this `Constraint`.
1279
- # Corresponds to the JSON property `suggestedValue`
1257
+ # Immutable value, required to globally be unique. For example,
1258
+ # `constraints/serviceuser.services`
1259
+ # Corresponds to the JSON property `name`
1280
1260
  # @return [String]
1281
- attr_accessor :suggested_value
1261
+ attr_accessor :name
1262
+
1263
+ # Version of the `Constraint`. Default version is 0;
1264
+ # Corresponds to the JSON property `version`
1265
+ # @return [Fixnum]
1266
+ attr_accessor :version
1267
+
1268
+ # A `Constraint` that allows or disallows a list of string values, which are
1269
+ # configured by an Organization's policy administrator with a `Policy`.
1270
+ # Corresponds to the JSON property `listConstraint`
1271
+ # @return [Google::Apis::CloudresourcemanagerV1::ListConstraint]
1272
+ attr_accessor :list_constraint
1282
1273
 
1283
1274
  def initialize(**args)
1284
1275
  update!(**args)
@@ -1286,19 +1277,44 @@ module Google
1286
1277
 
1287
1278
  # Update properties of this object
1288
1279
  def update!(**args)
1289
- @suggested_value = args[:suggested_value] if args.key?(:suggested_value)
1280
+ @display_name = args[:display_name] if args.key?(:display_name)
1281
+ @description = args[:description] if args.key?(:description)
1282
+ @boolean_constraint = args[:boolean_constraint] if args.key?(:boolean_constraint)
1283
+ @constraint_default = args[:constraint_default] if args.key?(:constraint_default)
1284
+ @name = args[:name] if args.key?(:name)
1285
+ @version = args[:version] if args.key?(:version)
1286
+ @list_constraint = args[:list_constraint] if args.key?(:list_constraint)
1290
1287
  end
1291
1288
  end
1292
1289
 
1293
- # The request sent to the SetOrgPolicyRequest method.
1294
- class SetOrgPolicyRequest
1290
+ # Associates `members` with a `role`.
1291
+ class Binding
1295
1292
  include Google::Apis::Core::Hashable
1296
1293
 
1297
- # Defines a Cloud Organization `Policy` which is used to specify `Constraints`
1298
- # for configurations of Cloud Platform resources.
1299
- # Corresponds to the JSON property `policy`
1300
- # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
1301
- attr_accessor :policy
1294
+ # Specifies the identities requesting access for a Cloud Platform resource.
1295
+ # `members` can have the following values:
1296
+ # * `allUsers`: A special identifier that represents anyone who is
1297
+ # on the internet; with or without a Google account.
1298
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
1299
+ # who is authenticated with a Google account or a service account.
1300
+ # * `user:`emailid``: An email address that represents a specific Google
1301
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
1302
+ # * `serviceAccount:`emailid``: An email address that represents a service
1303
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1304
+ # * `group:`emailid``: An email address that represents a Google group.
1305
+ # For example, `admins@example.com`.
1306
+ # * `domain:`domain``: A Google Apps domain name that represents all the
1307
+ # users of that domain. For example, `google.com` or `example.com`.
1308
+ # Corresponds to the JSON property `members`
1309
+ # @return [Array<String>]
1310
+ attr_accessor :members
1311
+
1312
+ # Role that is assigned to `members`.
1313
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1314
+ # Required
1315
+ # Corresponds to the JSON property `role`
1316
+ # @return [String]
1317
+ attr_accessor :role
1302
1318
 
1303
1319
  def initialize(**args)
1304
1320
  update!(**args)
@@ -1306,52 +1322,19 @@ module Google
1306
1322
 
1307
1323
  # Update properties of this object
1308
1324
  def update!(**args)
1309
- @policy = args[:policy] if args.key?(:policy)
1325
+ @members = args[:members] if args.key?(:members)
1326
+ @role = args[:role] if args.key?(:role)
1310
1327
  end
1311
1328
  end
1312
1329
 
1313
- # Request message for `SetIamPolicy` method.
1314
- class SetIamPolicyRequest
1315
- include Google::Apis::Core::Hashable
1316
-
1317
- # Defines an Identity and Access Management (IAM) policy. It is used to
1318
- # specify access control policies for Cloud Platform resources.
1319
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
1320
- # `members` to a `role`, where the members can be user accounts, Google groups,
1321
- # Google domains, and service accounts. A `role` is a named list of permissions
1322
- # defined by IAM.
1323
- # **Example**
1324
- # `
1325
- # "bindings": [
1326
- # `
1327
- # "role": "roles/owner",
1328
- # "members": [
1329
- # "user:mike@example.com",
1330
- # "group:admins@example.com",
1331
- # "domain:google.com",
1332
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
1333
- # ]
1334
- # `,
1335
- # `
1336
- # "role": "roles/viewer",
1337
- # "members": ["user:sean@example.com"]
1338
- # `
1339
- # ]
1340
- # `
1341
- # For a description of IAM and its features, see the
1342
- # [IAM developer's guide](https://cloud.google.com/iam).
1343
- # Corresponds to the JSON property `policy`
1344
- # @return [Google::Apis::CloudresourcemanagerV1::Policy]
1345
- attr_accessor :policy
1330
+ # The request sent to the GetOrgPolicy method.
1331
+ class GetOrgPolicyRequest
1332
+ include Google::Apis::Core::Hashable
1346
1333
 
1347
- # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1348
- # the fields in the mask will be modified. If no mask is provided, the
1349
- # following default mask is used:
1350
- # paths: "bindings, etag"
1351
- # This field is only used by Cloud IAM.
1352
- # Corresponds to the JSON property `updateMask`
1334
+ # Name of the `Constraint` to get the `Policy`.
1335
+ # Corresponds to the JSON property `constraint`
1353
1336
  # @return [String]
1354
- attr_accessor :update_mask
1337
+ attr_accessor :constraint
1355
1338
 
1356
1339
  def initialize(**args)
1357
1340
  update!(**args)
@@ -1359,19 +1342,22 @@ module Google
1359
1342
 
1360
1343
  # Update properties of this object
1361
1344
  def update!(**args)
1362
- @policy = args[:policy] if args.key?(:policy)
1363
- @update_mask = args[:update_mask] if args.key?(:update_mask)
1345
+ @constraint = args[:constraint] if args.key?(:constraint)
1364
1346
  end
1365
1347
  end
1366
1348
 
1367
- # A generic empty message that you can re-use to avoid defining duplicated
1368
- # empty messages in your APIs. A typical example is to use it as the request
1369
- # or the response type of an API method. For instance:
1370
- # service Foo `
1371
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1372
- # `
1373
- # The JSON representation for `Empty` is empty JSON object ````.
1374
- class Empty
1349
+ # Ignores policies set above this resource and restores the
1350
+ # `constraint_default` enforcement behavior of the specific `Constraint` at
1351
+ # this resource.
1352
+ # Suppose that `constraint_default` is set to `ALLOW` for the
1353
+ # `Constraint` `constraints/serviceuser.services`. Suppose that organization
1354
+ # foo.com sets a `Policy` at their Organization resource node that restricts
1355
+ # the allowed service activations to deny all service activations. They
1356
+ # could then set a `Policy` with the `policy_type` `restore_default` on
1357
+ # several experimental projects, restoring the `constraint_default`
1358
+ # enforcement of the `Constraint` for only those projects, allowing those
1359
+ # projects to have all services activated.
1360
+ class RestoreDefault
1375
1361
  include Google::Apis::Core::Hashable
1376
1362
 
1377
1363
  def initialize(**args)
@@ -1383,45 +1369,37 @@ module Google
1383
1369
  end
1384
1370
  end
1385
1371
 
1386
- # The root node in the resource hierarchy to which a particular entity's
1387
- # (e.g., company) resources belong.
1388
- class Organization
1372
+ # The request sent to the ClearOrgPolicy method.
1373
+ class ClearOrgPolicyRequest
1389
1374
  include Google::Apis::Core::Hashable
1390
1375
 
1391
- # The entity that owns an Organization. The lifetime of the Organization and
1392
- # all of its descendants are bound to the `OrganizationOwner`. If the
1393
- # `OrganizationOwner` is deleted, the Organization and all its descendants will
1394
- # be deleted.
1395
- # Corresponds to the JSON property `owner`
1396
- # @return [Google::Apis::CloudresourcemanagerV1::OrganizationOwner]
1397
- attr_accessor :owner
1398
-
1399
- # The organization's current lifecycle state. Assigned by the server.
1400
- # @OutputOnly
1401
- # Corresponds to the JSON property `lifecycleState`
1376
+ # The current version, for concurrency control. Not sending an `etag`
1377
+ # will cause the `Policy` to be cleared blindly.
1378
+ # Corresponds to the JSON property `etag`
1379
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1402
1380
  # @return [String]
1403
- attr_accessor :lifecycle_state
1381
+ attr_accessor :etag
1404
1382
 
1405
- # Output Only. The resource name of the organization. This is the
1406
- # organization's relative path in the API. Its format is
1407
- # "organizations/[organization_id]". For example, "organizations/1234".
1408
- # Corresponds to the JSON property `name`
1383
+ # Name of the `Constraint` of the `Policy` to clear.
1384
+ # Corresponds to the JSON property `constraint`
1409
1385
  # @return [String]
1410
- attr_accessor :name
1386
+ attr_accessor :constraint
1411
1387
 
1412
- # A friendly string to be used to refer to the Organization in the UI.
1413
- # Assigned by the server, set to the primary domain of the G Suite
1414
- # customer that owns the organization.
1415
- # @OutputOnly
1416
- # Corresponds to the JSON property `displayName`
1417
- # @return [String]
1418
- attr_accessor :display_name
1388
+ def initialize(**args)
1389
+ update!(**args)
1390
+ end
1419
1391
 
1420
- # Timestamp when the Organization was created. Assigned by the server.
1421
- # @OutputOnly
1422
- # Corresponds to the JSON property `creationTime`
1423
- # @return [String]
1424
- attr_accessor :creation_time
1392
+ # Update properties of this object
1393
+ def update!(**args)
1394
+ @etag = args[:etag] if args.key?(:etag)
1395
+ @constraint = args[:constraint] if args.key?(:constraint)
1396
+ end
1397
+ end
1398
+
1399
+ # The request sent to the UndeleteProject
1400
+ # method.
1401
+ class UndeleteProjectRequest
1402
+ include Google::Apis::Core::Hashable
1425
1403
 
1426
1404
  def initialize(**args)
1427
1405
  update!(**args)
@@ -1429,30 +1407,33 @@ module Google
1429
1407
 
1430
1408
  # Update properties of this object
1431
1409
  def update!(**args)
1432
- @owner = args[:owner] if args.key?(:owner)
1433
- @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
1434
- @name = args[:name] if args.key?(:name)
1435
- @display_name = args[:display_name] if args.key?(:display_name)
1436
- @creation_time = args[:creation_time] if args.key?(:creation_time)
1437
1410
  end
1438
1411
  end
1439
1412
 
1440
- # The response returned from the ListAvailableOrgPolicyConstraints method.
1441
- # Returns all `Constraints` that could be set at this level of the hierarchy
1442
- # (contrast with the response from `ListPolicies`, which returns all policies
1443
- # which are set).
1444
- class ListAvailableOrgPolicyConstraintsResponse
1413
+ # A status object which is used as the `metadata` field for the Operation
1414
+ # returned by CreateProject. It provides insight for when significant phases of
1415
+ # Project creation have completed.
1416
+ class ProjectCreationStatus
1445
1417
  include Google::Apis::Core::Hashable
1446
1418
 
1447
- # The collection of constraints that are settable on the request resource.
1448
- # Corresponds to the JSON property `constraints`
1449
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Constraint>]
1450
- attr_accessor :constraints
1419
+ # True if the project creation process is complete.
1420
+ # Corresponds to the JSON property `ready`
1421
+ # @return [Boolean]
1422
+ attr_accessor :ready
1423
+ alias_method :ready?, :ready
1451
1424
 
1452
- # Page token used to retrieve the next page. This is currently not used.
1453
- # Corresponds to the JSON property `nextPageToken`
1425
+ # Creation time of the project creation workflow.
1426
+ # Corresponds to the JSON property `createTime`
1454
1427
  # @return [String]
1455
- attr_accessor :next_page_token
1428
+ attr_accessor :create_time
1429
+
1430
+ # True if the project can be retrieved using GetProject. No other operations
1431
+ # on the project are guaranteed to work until the project creation is
1432
+ # complete.
1433
+ # Corresponds to the JSON property `gettable`
1434
+ # @return [Boolean]
1435
+ attr_accessor :gettable
1436
+ alias_method :gettable?, :gettable
1456
1437
 
1457
1438
  def initialize(**args)
1458
1439
  update!(**args)
@@ -1460,125 +1441,50 @@ module Google
1460
1441
 
1461
1442
  # Update properties of this object
1462
1443
  def update!(**args)
1463
- @constraints = args[:constraints] if args.key?(:constraints)
1464
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1444
+ @ready = args[:ready] if args.key?(:ready)
1445
+ @create_time = args[:create_time] if args.key?(:create_time)
1446
+ @gettable = args[:gettable] if args.key?(:gettable)
1465
1447
  end
1466
1448
  end
1467
1449
 
1468
- # Used in `policy_type` to specify how `list_policy` behaves at this
1469
- # resource.
1470
- # A `ListPolicy` can define specific values that are allowed or denied by
1471
- # setting either the `allowed_values` or `denied_values` fields. It can also
1472
- # be used to allow or deny all values, by setting the `all_values` field. If
1473
- # `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`
1474
- # or `denied_values` must be set (attempting to set both or neither will
1475
- # result in a failed request). If `all_values` is set to either `ALLOW` or
1476
- # `DENY`, `allowed_values` and `denied_values` must be unset.
1477
- class ListPolicy
1450
+ # A `Constraint` that is either enforced or not.
1451
+ # For example a constraint `constraints/compute.disableSerialPortAccess`.
1452
+ # If it is enforced on a VM instance, serial port connections will not be
1453
+ # opened to that instance.
1454
+ class BooleanConstraint
1478
1455
  include Google::Apis::Core::Hashable
1479
1456
 
1480
- # The policy all_values state.
1481
- # Corresponds to the JSON property `allValues`
1482
- # @return [String]
1483
- attr_accessor :all_values
1457
+ def initialize(**args)
1458
+ update!(**args)
1459
+ end
1484
1460
 
1485
- # List of values allowed at this resource. an only be set if no values are
1486
- # set for `denied_values` and `all_values` is set to
1487
- # `ALL_VALUES_UNSPECIFIED`.
1488
- # Corresponds to the JSON property `allowedValues`
1489
- # @return [Array<String>]
1490
- attr_accessor :allowed_values
1461
+ # Update properties of this object
1462
+ def update!(**args)
1463
+ end
1464
+ end
1491
1465
 
1492
- # Optional. The Google Cloud Console will try to default to a configuration
1493
- # that matches the value specified in this `Policy`. If `suggested_value`
1494
- # is not set, it will inherit the value specified higher in the hierarchy,
1495
- # unless `inherit_from_parent` is `false`.
1496
- # Corresponds to the JSON property `suggestedValue`
1497
- # @return [String]
1498
- attr_accessor :suggested_value
1466
+ # Request message for `GetIamPolicy` method.
1467
+ class GetIamPolicyRequest
1468
+ include Google::Apis::Core::Hashable
1499
1469
 
1500
- # Determines the inheritance behavior for this `Policy`.
1501
- # By default, a `ListPolicy` set at a resource supercedes any `Policy` set
1502
- # anywhere up the resource hierarchy. However, if `inherit_from_parent` is
1503
- # set to `true`, then the values from the effective `Policy` of the parent
1504
- # resource are inherited, meaning the values set in this `Policy` are
1505
- # added to the values inherited up the hierarchy.
1506
- # Setting `Policy` hierarchies that inherit both allowed values and denied
1507
- # values isn't recommended in most circumstances to keep the configuration
1508
- # simple and understandable. However, it is possible to set a `Policy` with
1509
- # `allowed_values` set that inherits a `Policy` with `denied_values` set.
1510
- # In this case, the values that are allowed must be in `allowed_values` and
1511
- # not present in `denied_values`.
1512
- # For example, suppose you have a `Constraint`
1513
- # `constraints/serviceuser.services`, which has a `constraint_type` of
1514
- # `list_constraint`, and with `constraint_default` set to `ALLOW`.
1515
- # Suppose that at the Organization level, a `Policy` is applied that
1516
- # restricts the allowed API activations to ``E1`, `E2``. Then, if a
1517
- # `Policy` is applied to a project below the Organization that has
1518
- # `inherit_from_parent` set to `false` and field all_values set to DENY,
1519
- # then an attempt to activate any API will be denied.
1520
- # The following examples demonstrate different possible layerings:
1521
- # Example 1 (no inherited values):
1522
- # `organizations/foo` has a `Policy` with values:
1523
- # `allowed_values: “E1” allowed_values:”E2”`
1524
- # ``projects/bar`` has `inherit_from_parent` `false` and values:
1525
- # `allowed_values: "E3" allowed_values: "E4"`
1526
- # The accepted values at `organizations/foo` are `E1`, `E2`.
1527
- # The accepted values at `projects/bar` are `E3`, and `E4`.
1528
- # Example 2 (inherited values):
1529
- # `organizations/foo` has a `Policy` with values:
1530
- # `allowed_values: “E1” allowed_values:”E2”`
1531
- # `projects/bar` has a `Policy` with values:
1532
- # `value: “E3” value: ”E4” inherit_from_parent: true`
1533
- # The accepted values at `organizations/foo` are `E1`, `E2`.
1534
- # The accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`.
1535
- # Example 3 (inheriting both allowed and denied values):
1536
- # `organizations/foo` has a `Policy` with values:
1537
- # `allowed_values: "E1" allowed_values: "E2"`
1538
- # `projects/bar` has a `Policy` with:
1539
- # `denied_values: "E1"`
1540
- # The accepted values at `organizations/foo` are `E1`, `E2`.
1541
- # The value accepted at `projects/bar` is `E2`.
1542
- # Example 4 (RestoreDefault):
1543
- # `organizations/foo` has a `Policy` with values:
1544
- # `allowed_values: “E1” allowed_values:”E2”`
1545
- # `projects/bar` has a `Policy` with values:
1546
- # `RestoreDefault: ```
1547
- # The accepted values at `organizations/foo` are `E1`, `E2`.
1548
- # The accepted values at `projects/bar` are either all or none depending on
1549
- # the value of `constraint_default` (if `ALLOW`, all; if
1550
- # `DENY`, none).
1551
- # Example 5 (no policy inherits parent policy):
1552
- # `organizations/foo` has no `Policy` set.
1553
- # `projects/bar` has no `Policy` set.
1554
- # The accepted values at both levels are either all or none depending on
1555
- # the value of `constraint_default` (if `ALLOW`, all; if
1556
- # `DENY`, none).
1557
- # Example 6 (ListConstraint allowing all):
1558
- # `organizations/foo` has a `Policy` with values:
1559
- # `allowed_values: “E1” allowed_values: ”E2”`
1560
- # `projects/bar` has a `Policy` with:
1561
- # `all: ALLOW`
1562
- # The accepted values at `organizations/foo` are `E1`, E2`.
1563
- # Any value is accepted at `projects/bar`.
1564
- # Example 7 (ListConstraint allowing none):
1565
- # `organizations/foo` has a `Policy` with values:
1566
- # `allowed_values: “E1” allowed_values: ”E2”`
1567
- # `projects/bar` has a `Policy` with:
1568
- # `all: DENY`
1569
- # The accepted values at `organizations/foo` are `E1`, E2`.
1570
- # No value is accepted at `projects/bar`.
1571
- # Corresponds to the JSON property `inheritFromParent`
1572
- # @return [Boolean]
1573
- attr_accessor :inherit_from_parent
1574
- alias_method :inherit_from_parent?, :inherit_from_parent
1470
+ def initialize(**args)
1471
+ update!(**args)
1472
+ end
1473
+
1474
+ # Update properties of this object
1475
+ def update!(**args)
1476
+ end
1477
+ end
1575
1478
 
1576
- # List of values denied at this resource. Can only be set if no values are
1577
- # set for `allowed_values` and `all_values` is set to
1578
- # `ALL_VALUES_UNSPECIFIED`.
1579
- # Corresponds to the JSON property `deniedValues`
1479
+ # Response message for `TestIamPermissions` method.
1480
+ class TestIamPermissionsResponse
1481
+ include Google::Apis::Core::Hashable
1482
+
1483
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
1484
+ # allowed.
1485
+ # Corresponds to the JSON property `permissions`
1580
1486
  # @return [Array<String>]
1581
- attr_accessor :denied_values
1487
+ attr_accessor :permissions
1582
1488
 
1583
1489
  def initialize(**args)
1584
1490
  update!(**args)
@@ -1586,24 +1492,21 @@ module Google
1586
1492
 
1587
1493
  # Update properties of this object
1588
1494
  def update!(**args)
1589
- @all_values = args[:all_values] if args.key?(:all_values)
1590
- @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
1591
- @suggested_value = args[:suggested_value] if args.key?(:suggested_value)
1592
- @inherit_from_parent = args[:inherit_from_parent] if args.key?(:inherit_from_parent)
1593
- @denied_values = args[:denied_values] if args.key?(:denied_values)
1495
+ @permissions = args[:permissions] if args.key?(:permissions)
1594
1496
  end
1595
1497
  end
1596
1498
 
1597
- # Response from the GetAncestry method.
1598
- class GetAncestryResponse
1499
+ # The entity that owns an Organization. The lifetime of the Organization and
1500
+ # all of its descendants are bound to the `OrganizationOwner`. If the
1501
+ # `OrganizationOwner` is deleted, the Organization and all its descendants will
1502
+ # be deleted.
1503
+ class OrganizationOwner
1599
1504
  include Google::Apis::Core::Hashable
1600
1505
 
1601
- # Ancestors are ordered from bottom to top of the resource hierarchy. The
1602
- # first ancestor is the project itself, followed by the project's parent,
1603
- # etc.
1604
- # Corresponds to the JSON property `ancestor`
1605
- # @return [Array<Google::Apis::CloudresourcemanagerV1::Ancestor>]
1606
- attr_accessor :ancestor
1506
+ # The Google for Work customer id used in the Directory API.
1507
+ # Corresponds to the JSON property `directoryCustomerId`
1508
+ # @return [String]
1509
+ attr_accessor :directory_customer_id
1607
1510
 
1608
1511
  def initialize(**args)
1609
1512
  update!(**args)
@@ -1611,41 +1514,36 @@ module Google
1611
1514
 
1612
1515
  # Update properties of this object
1613
1516
  def update!(**args)
1614
- @ancestor = args[:ancestor] if args.key?(:ancestor)
1517
+ @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id)
1615
1518
  end
1616
1519
  end
1617
1520
 
1618
- # Provides the configuration for logging a type of permissions.
1619
- # Example:
1620
- # `
1621
- # "audit_log_configs": [
1622
- # `
1623
- # "log_type": "DATA_READ",
1624
- # "exempted_members": [
1625
- # "user:foo@gmail.com"
1626
- # ]
1627
- # `,
1628
- # `
1629
- # "log_type": "DATA_WRITE",
1630
- # `
1631
- # ]
1632
- # `
1633
- # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
1634
- # foo@gmail.com from DATA_READ logging.
1635
- class AuditLogConfig
1521
+ # A page of the response received from the
1522
+ # ListProjects
1523
+ # method.
1524
+ # A paginated response where more pages are available has
1525
+ # `next_page_token` set. This token can be used in a subsequent request to
1526
+ # retrieve the next request page.
1527
+ class ListProjectsResponse
1636
1528
  include Google::Apis::Core::Hashable
1637
1529
 
1638
- # The log type that this config enables.
1639
- # Corresponds to the JSON property `logType`
1530
+ # Pagination token.
1531
+ # If the result set is too large to fit in a single response, this token
1532
+ # is returned. It encodes the position of the current result cursor.
1533
+ # Feeding this value into a new list request with the `page_token` parameter
1534
+ # gives the next page of the results.
1535
+ # When `next_page_token` is not filled in, there is no next page and
1536
+ # the list returned is the last page in the result set.
1537
+ # Pagination tokens have a limited lifetime.
1538
+ # Corresponds to the JSON property `nextPageToken`
1640
1539
  # @return [String]
1641
- attr_accessor :log_type
1540
+ attr_accessor :next_page_token
1642
1541
 
1643
- # Specifies the identities that do not cause logging for this type of
1644
- # permission.
1645
- # Follows the same format of Binding.members.
1646
- # Corresponds to the JSON property `exemptedMembers`
1647
- # @return [Array<String>]
1648
- attr_accessor :exempted_members
1542
+ # The list of Projects that matched the list filter. This list can
1543
+ # be paginated.
1544
+ # Corresponds to the JSON property `projects`
1545
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Project>]
1546
+ attr_accessor :projects
1649
1547
 
1650
1548
  def initialize(**args)
1651
1549
  update!(**args)
@@ -1653,41 +1551,77 @@ module Google
1653
1551
 
1654
1552
  # Update properties of this object
1655
1553
  def update!(**args)
1656
- @log_type = args[:log_type] if args.key?(:log_type)
1657
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
1554
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1555
+ @projects = args[:projects] if args.key?(:projects)
1658
1556
  end
1659
1557
  end
1660
1558
 
1661
- # The request sent to the `SearchOrganizations` method.
1662
- class SearchOrganizationsRequest
1559
+ # A Project is a high-level Google Cloud Platform entity. It is a
1560
+ # container for ACLs, APIs, App Engine Apps, VMs, and other
1561
+ # Google Cloud Platform resources.
1562
+ class Project
1663
1563
  include Google::Apis::Core::Hashable
1664
1564
 
1665
- # A pagination token returned from a previous call to `SearchOrganizations`
1666
- # that indicates from where listing should continue.
1667
- # This field is optional.
1668
- # Corresponds to the JSON property `pageToken`
1565
+ # The user-assigned display name of the Project.
1566
+ # It must be 4 to 30 characters.
1567
+ # Allowed characters are: lowercase and uppercase letters, numbers,
1568
+ # hyphen, single-quote, double-quote, space, and exclamation point.
1569
+ # Example: <code>My Project</code>
1570
+ # Read-write.
1571
+ # Corresponds to the JSON property `name`
1669
1572
  # @return [String]
1670
- attr_accessor :page_token
1573
+ attr_accessor :name
1671
1574
 
1672
- # The maximum number of Organizations to return in the response.
1673
- # This field is optional.
1674
- # Corresponds to the JSON property `pageSize`
1575
+ # The unique, user-assigned ID of the Project.
1576
+ # It must be 6 to 30 lowercase letters, digits, or hyphens.
1577
+ # It must start with a letter.
1578
+ # Trailing hyphens are prohibited.
1579
+ # Example: <code>tokyo-rain-123</code>
1580
+ # Read-only after creation.
1581
+ # Corresponds to the JSON property `projectId`
1582
+ # @return [String]
1583
+ attr_accessor :project_id
1584
+
1585
+ # The Project lifecycle state.
1586
+ # Read-only.
1587
+ # Corresponds to the JSON property `lifecycleState`
1588
+ # @return [String]
1589
+ attr_accessor :lifecycle_state
1590
+
1591
+ # The number uniquely identifying the project.
1592
+ # Example: <code>415104041262</code>
1593
+ # Read-only.
1594
+ # Corresponds to the JSON property `projectNumber`
1675
1595
  # @return [Fixnum]
1676
- attr_accessor :page_size
1596
+ attr_accessor :project_number
1677
1597
 
1678
- # An optional query string used to filter the Organizations to return in
1679
- # the response. Filter rules are case-insensitive.
1680
- # Organizations may be filtered by `owner.directoryCustomerId` or by
1681
- # `domain`, where the domain is a Google for Work domain, for example:
1682
- # |Filter|Description|
1683
- # |------|-----------|
1684
- # |owner.directorycustomerid:123456789|Organizations with
1685
- # `owner.directory_customer_id` equal to `123456789`.|
1686
- # |domain:google.com|Organizations corresponding to the domain `google.com`.|
1687
- # This field is optional.
1688
- # Corresponds to the JSON property `filter`
1598
+ # A container to reference an id for any resource type. A `resource` in Google
1599
+ # Cloud Platform is a generic term for something you (a developer) may want to
1600
+ # interact with through one of our API's. Some examples are an App Engine app,
1601
+ # a Compute Engine instance, a Cloud SQL database, and so on.
1602
+ # Corresponds to the JSON property `parent`
1603
+ # @return [Google::Apis::CloudresourcemanagerV1::ResourceId]
1604
+ attr_accessor :parent
1605
+
1606
+ # The labels associated with this Project.
1607
+ # Label keys must be between 1 and 63 characters long and must conform
1608
+ # to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
1609
+ # Label values must be between 0 and 63 characters long and must conform
1610
+ # to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
1611
+ # No more than 256 labels can be associated with a given resource.
1612
+ # Clients should store labels in a representation such as JSON that does not
1613
+ # depend on specific characters being disallowed.
1614
+ # Example: <code>"environment" : "dev"</code>
1615
+ # Read-write.
1616
+ # Corresponds to the JSON property `labels`
1617
+ # @return [Hash<String,String>]
1618
+ attr_accessor :labels
1619
+
1620
+ # Creation time.
1621
+ # Read-only.
1622
+ # Corresponds to the JSON property `createTime`
1689
1623
  # @return [String]
1690
- attr_accessor :filter
1624
+ attr_accessor :create_time
1691
1625
 
1692
1626
  def initialize(**args)
1693
1627
  update!(**args)
@@ -1695,24 +1629,90 @@ module Google
1695
1629
 
1696
1630
  # Update properties of this object
1697
1631
  def update!(**args)
1698
- @page_token = args[:page_token] if args.key?(:page_token)
1699
- @page_size = args[:page_size] if args.key?(:page_size)
1700
- @filter = args[:filter] if args.key?(:filter)
1632
+ @name = args[:name] if args.key?(:name)
1633
+ @project_id = args[:project_id] if args.key?(:project_id)
1634
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
1635
+ @project_number = args[:project_number] if args.key?(:project_number)
1636
+ @parent = args[:parent] if args.key?(:parent)
1637
+ @labels = args[:labels] if args.key?(:labels)
1638
+ @create_time = args[:create_time] if args.key?(:create_time)
1701
1639
  end
1702
1640
  end
1703
1641
 
1704
- # The request sent to the
1705
- # GetAncestry
1706
- # method.
1707
- class GetAncestryRequest
1642
+ # The response returned from the ListOrgPolicies method. It will be empty
1643
+ # if no `Policies` are set on the resource.
1644
+ class ListOrgPoliciesResponse
1645
+ include Google::Apis::Core::Hashable
1646
+
1647
+ # Page token used to retrieve the next page. This is currently not used, but
1648
+ # the server may at any point start supplying a valid token.
1649
+ # Corresponds to the JSON property `nextPageToken`
1650
+ # @return [String]
1651
+ attr_accessor :next_page_token
1652
+
1653
+ # The `Policies` that are set on the resource. It will be empty if no
1654
+ # `Policies` are set.
1655
+ # Corresponds to the JSON property `policies`
1656
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::OrgPolicy>]
1657
+ attr_accessor :policies
1658
+
1659
+ def initialize(**args)
1660
+ update!(**args)
1661
+ end
1662
+
1663
+ # Update properties of this object
1664
+ def update!(**args)
1665
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1666
+ @policies = args[:policies] if args.key?(:policies)
1667
+ end
1668
+ end
1669
+
1670
+ # The response returned from the `SearchOrganizations` method.
1671
+ class SearchOrganizationsResponse
1672
+ include Google::Apis::Core::Hashable
1673
+
1674
+ # A pagination token to be used to retrieve the next page of results. If the
1675
+ # result is too large to fit within the page size specified in the request,
1676
+ # this field will be set with a token that can be used to fetch the next page
1677
+ # of results. If this field is empty, it indicates that this response
1678
+ # contains the last page of results.
1679
+ # Corresponds to the JSON property `nextPageToken`
1680
+ # @return [String]
1681
+ attr_accessor :next_page_token
1682
+
1683
+ # The list of Organizations that matched the search query, possibly
1684
+ # paginated.
1685
+ # Corresponds to the JSON property `organizations`
1686
+ # @return [Array<Google::Apis::CloudresourcemanagerV1::Organization>]
1687
+ attr_accessor :organizations
1688
+
1689
+ def initialize(**args)
1690
+ update!(**args)
1691
+ end
1692
+
1693
+ # Update properties of this object
1694
+ def update!(**args)
1695
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1696
+ @organizations = args[:organizations] if args.key?(:organizations)
1697
+ end
1698
+ end
1699
+
1700
+ # A classification of the Folder Operation error.
1701
+ class FolderOperationError
1708
1702
  include Google::Apis::Core::Hashable
1709
1703
 
1704
+ # The type of operation error experienced.
1705
+ # Corresponds to the JSON property `errorMessageId`
1706
+ # @return [String]
1707
+ attr_accessor :error_message_id
1708
+
1710
1709
  def initialize(**args)
1711
1710
  update!(**args)
1712
1711
  end
1713
1712
 
1714
1713
  # Update properties of this object
1715
1714
  def update!(**args)
1715
+ @error_message_id = args[:error_message_id] if args.key?(:error_message_id)
1716
1716
  end
1717
1717
  end
1718
1718
  end