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
@@ -47,36 +47,6 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
- # Gets the latest version of the specified presentation.
51
- # @param [String] presentation_id
52
- # The ID of the presentation to retrieve.
53
- # @param [String] fields
54
- # Selector specifying which fields to include in a partial response.
55
- # @param [String] quota_user
56
- # Available to use for quota purposes for server-side applications. Can be any
57
- # arbitrary string assigned to a user, but should not exceed 40 characters.
58
- # @param [Google::Apis::RequestOptions] options
59
- # Request-specific options
60
- #
61
- # @yield [result, err] Result & error if block supplied
62
- # @yieldparam result [Google::Apis::SlidesV1::Presentation] parsed result object
63
- # @yieldparam err [StandardError] error object if request failed
64
- #
65
- # @return [Google::Apis::SlidesV1::Presentation]
66
- #
67
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
- # @raise [Google::Apis::AuthorizationError] Authorization is required
70
- def get_presentation(presentation_id, fields: nil, quota_user: nil, options: nil, &block)
71
- command = make_simple_command(:get, 'v1/presentations/{+presentationId}', options)
72
- command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
73
- command.response_class = Google::Apis::SlidesV1::Presentation
74
- command.params['presentationId'] = presentation_id unless presentation_id.nil?
75
- command.query['fields'] = fields unless fields.nil?
76
- command.query['quotaUser'] = quota_user unless quota_user.nil?
77
- execute_or_queue_command(command, &block)
78
- end
79
-
80
50
  # Creates a new presentation using the title given in the request. Other
81
51
  # fields in the request are ignored.
82
52
  # Returns the created presentation.
@@ -158,11 +128,9 @@ module Google
158
128
  execute_or_queue_command(command, &block)
159
129
  end
160
130
 
161
- # Gets the latest version of the specified page in the presentation.
131
+ # Gets the latest version of the specified presentation.
162
132
  # @param [String] presentation_id
163
133
  # The ID of the presentation to retrieve.
164
- # @param [String] page_object_id
165
- # The object ID of the page to retrieve.
166
134
  # @param [String] fields
167
135
  # Selector specifying which fields to include in a partial response.
168
136
  # @param [String] quota_user
@@ -172,20 +140,19 @@ module Google
172
140
  # Request-specific options
173
141
  #
174
142
  # @yield [result, err] Result & error if block supplied
175
- # @yieldparam result [Google::Apis::SlidesV1::Page] parsed result object
143
+ # @yieldparam result [Google::Apis::SlidesV1::Presentation] parsed result object
176
144
  # @yieldparam err [StandardError] error object if request failed
177
145
  #
178
- # @return [Google::Apis::SlidesV1::Page]
146
+ # @return [Google::Apis::SlidesV1::Presentation]
179
147
  #
180
148
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
181
149
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
182
150
  # @raise [Google::Apis::AuthorizationError] Authorization is required
183
- def get_presentation_page(presentation_id, page_object_id, fields: nil, quota_user: nil, options: nil, &block)
184
- command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}', options)
185
- command.response_representation = Google::Apis::SlidesV1::Page::Representation
186
- command.response_class = Google::Apis::SlidesV1::Page
151
+ def get_presentation(presentation_id, fields: nil, quota_user: nil, options: nil, &block)
152
+ command = make_simple_command(:get, 'v1/presentations/{+presentationId}', options)
153
+ command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
154
+ command.response_class = Google::Apis::SlidesV1::Presentation
187
155
  command.params['presentationId'] = presentation_id unless presentation_id.nil?
188
- command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
189
156
  command.query['fields'] = fields unless fields.nil?
190
157
  command.query['quotaUser'] = quota_user unless quota_user.nil?
191
158
  execute_or_queue_command(command, &block)
@@ -233,6 +200,39 @@ module Google
233
200
  command.query['quotaUser'] = quota_user unless quota_user.nil?
234
201
  execute_or_queue_command(command, &block)
235
202
  end
203
+
204
+ # Gets the latest version of the specified page in the presentation.
205
+ # @param [String] presentation_id
206
+ # The ID of the presentation to retrieve.
207
+ # @param [String] page_object_id
208
+ # The object ID of the page to retrieve.
209
+ # @param [String] fields
210
+ # Selector specifying which fields to include in a partial response.
211
+ # @param [String] quota_user
212
+ # Available to use for quota purposes for server-side applications. Can be any
213
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
214
+ # @param [Google::Apis::RequestOptions] options
215
+ # Request-specific options
216
+ #
217
+ # @yield [result, err] Result & error if block supplied
218
+ # @yieldparam result [Google::Apis::SlidesV1::Page] parsed result object
219
+ # @yieldparam err [StandardError] error object if request failed
220
+ #
221
+ # @return [Google::Apis::SlidesV1::Page]
222
+ #
223
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
224
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
225
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
226
+ def get_presentation_page(presentation_id, page_object_id, fields: nil, quota_user: nil, options: nil, &block)
227
+ command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}', options)
228
+ command.response_representation = Google::Apis::SlidesV1::Page::Representation
229
+ command.response_class = Google::Apis::SlidesV1::Page
230
+ command.params['presentationId'] = presentation_id unless presentation_id.nil?
231
+ command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
232
+ command.query['fields'] = fields unless fields.nil?
233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
234
+ execute_or_queue_command(command, &block)
235
+ end
236
236
 
237
237
  protected
238
238
 
@@ -25,7 +25,13 @@ module Google
25
25
  # @see https://cloud.google.com/source-repositories/docs/apis
26
26
  module SourcerepoV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170502'
28
+ REVISION = '20170528'
29
+
30
+ # View the contents of your source code repositories
31
+ AUTH_SOURCE_READ_ONLY = 'https://www.googleapis.com/auth/source.read_only'
32
+
33
+ # Manage the contents of your source code repositories
34
+ AUTH_SOURCE_READ_WRITE = 'https://www.googleapis.com/auth/source.read_write'
29
35
 
30
36
  # View and manage your data across Google Cloud Platform services
31
37
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,32 +22,106 @@ module Google
22
22
  module Apis
23
23
  module SourcerepoV1
24
24
 
25
- # A repository (or repo) is a Git repository storing versioned source content.
26
- class Repo
25
+ # Request message for `TestIamPermissions` method.
26
+ class TestIamPermissionsRequest
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # Configuration to automatically mirror a repository from another
30
- # hosting service, for example GitHub or BitBucket.
31
- # Corresponds to the JSON property `mirrorConfig`
32
- # @return [Google::Apis::SourcerepoV1::MirrorConfig]
33
- attr_accessor :mirror_config
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
34
36
 
35
- # URL to clone the repository from Google Cloud Source Repositories.
36
- # Corresponds to the JSON property `url`
37
- # @return [String]
38
- attr_accessor :url
37
+ def initialize(**args)
38
+ update!(**args)
39
+ end
39
40
 
40
- # The disk usage of the repo, in bytes.
41
- # Only returned by GetRepo.
42
- # Corresponds to the JSON property `size`
41
+ # Update properties of this object
42
+ def update!(**args)
43
+ @permissions = args[:permissions] if args.key?(:permissions)
44
+ end
45
+ end
46
+
47
+ # Defines an Identity and Access Management (IAM) policy. It is used to
48
+ # specify access control policies for Cloud Platform resources.
49
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
50
+ # `members` to a `role`, where the members can be user accounts, Google groups,
51
+ # Google domains, and service accounts. A `role` is a named list of permissions
52
+ # defined by IAM.
53
+ # **Example**
54
+ # `
55
+ # "bindings": [
56
+ # `
57
+ # "role": "roles/owner",
58
+ # "members": [
59
+ # "user:mike@example.com",
60
+ # "group:admins@example.com",
61
+ # "domain:google.com",
62
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
63
+ # ]
64
+ # `,
65
+ # `
66
+ # "role": "roles/viewer",
67
+ # "members": ["user:sean@example.com"]
68
+ # `
69
+ # ]
70
+ # `
71
+ # For a description of IAM and its features, see the
72
+ # [IAM developer's guide](https://cloud.google.com/iam).
73
+ class Policy
74
+ include Google::Apis::Core::Hashable
75
+
76
+ # Version of the `Policy`. The default version is 0.
77
+ # Corresponds to the JSON property `version`
43
78
  # @return [Fixnum]
44
- attr_accessor :size
79
+ attr_accessor :version
45
80
 
46
- # Resource name of the repository, of the form
47
- # `projects/<project>/repos/<repo>`.
48
- # Corresponds to the JSON property `name`
81
+ # Specifies cloud audit logging configuration for this policy.
82
+ # Corresponds to the JSON property `auditConfigs`
83
+ # @return [Array<Google::Apis::SourcerepoV1::AuditConfig>]
84
+ attr_accessor :audit_configs
85
+
86
+ # Associates a list of `members` to a `role`.
87
+ # Multiple `bindings` must not be specified for the same `role`.
88
+ # `bindings` with no members will result in an error.
89
+ # Corresponds to the JSON property `bindings`
90
+ # @return [Array<Google::Apis::SourcerepoV1::Binding>]
91
+ attr_accessor :bindings
92
+
93
+ # `etag` is used for optimistic concurrency control as a way to help
94
+ # prevent simultaneous updates of a policy from overwriting each other.
95
+ # It is strongly suggested that systems make use of the `etag` in the
96
+ # read-modify-write cycle to perform policy updates in order to avoid race
97
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
98
+ # systems are expected to put that etag in the request to `setIamPolicy` to
99
+ # ensure that their change will be applied to the same version of the policy.
100
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
101
+ # policy is overwritten blindly.
102
+ # Corresponds to the JSON property `etag`
103
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
49
104
  # @return [String]
50
- attr_accessor :name
105
+ attr_accessor :etag
106
+
107
+ #
108
+ # Corresponds to the JSON property `iamOwned`
109
+ # @return [Boolean]
110
+ attr_accessor :iam_owned
111
+ alias_method :iam_owned?, :iam_owned
112
+
113
+ # If more than one rule is specified, the rules are applied in the following
114
+ # manner:
115
+ # - All matching LOG rules are always applied.
116
+ # - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
117
+ # Logging will be applied if one or more matching rule requires logging.
118
+ # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
119
+ # granted.
120
+ # Logging will be applied if one or more matching rule requires logging.
121
+ # - Otherwise, if no rule applies, permission is denied.
122
+ # Corresponds to the JSON property `rules`
123
+ # @return [Array<Google::Apis::SourcerepoV1::Rule>]
124
+ attr_accessor :rules
51
125
 
52
126
  def initialize(**args)
53
127
  update!(**args)
@@ -55,47 +129,95 @@ module Google
55
129
 
56
130
  # Update properties of this object
57
131
  def update!(**args)
58
- @mirror_config = args[:mirror_config] if args.key?(:mirror_config)
59
- @url = args[:url] if args.key?(:url)
60
- @size = args[:size] if args.key?(:size)
61
- @name = args[:name] if args.key?(:name)
132
+ @version = args[:version] if args.key?(:version)
133
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
134
+ @bindings = args[:bindings] if args.key?(:bindings)
135
+ @etag = args[:etag] if args.key?(:etag)
136
+ @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
137
+ @rules = args[:rules] if args.key?(:rules)
62
138
  end
63
139
  end
64
140
 
65
- # A condition to be met.
66
- class Condition
141
+ # Write a Data Access (Gin) log
142
+ class DataAccessOptions
67
143
  include Google::Apis::Core::Hashable
68
144
 
69
- # Trusted attributes supplied by any service that owns resources and uses
70
- # the IAM system for access control.
71
- # Corresponds to the JSON property `sys`
72
- # @return [String]
73
- attr_accessor :sys
74
-
75
- # DEPRECATED. Use 'values' instead.
76
- # Corresponds to the JSON property `value`
77
- # @return [String]
78
- attr_accessor :value
145
+ def initialize(**args)
146
+ update!(**args)
147
+ end
79
148
 
80
- # Trusted attributes supplied by the IAM system.
81
- # Corresponds to the JSON property `iam`
82
- # @return [String]
83
- attr_accessor :iam
149
+ # Update properties of this object
150
+ def update!(**args)
151
+ end
152
+ end
84
153
 
85
- # The objects of the condition. This is mutually exclusive with 'value'.
86
- # Corresponds to the JSON property `values`
87
- # @return [Array<String>]
88
- attr_accessor :values
154
+ # Specifies the audit configuration for a service.
155
+ # The configuration determines which permission types are logged, and what
156
+ # identities, if any, are exempted from logging.
157
+ # An AuditConfig must have one or more AuditLogConfigs.
158
+ # If there are AuditConfigs for both `allServices` and a specific service,
159
+ # the union of the two AuditConfigs is used for that service: the log_types
160
+ # specified in each AuditConfig are enabled, and the exempted_members in each
161
+ # AuditConfig are exempted.
162
+ # Example Policy with multiple AuditConfigs:
163
+ # `
164
+ # "audit_configs": [
165
+ # `
166
+ # "service": "allServices"
167
+ # "audit_log_configs": [
168
+ # `
169
+ # "log_type": "DATA_READ",
170
+ # "exempted_members": [
171
+ # "user:foo@gmail.com"
172
+ # ]
173
+ # `,
174
+ # `
175
+ # "log_type": "DATA_WRITE",
176
+ # `,
177
+ # `
178
+ # "log_type": "ADMIN_READ",
179
+ # `
180
+ # ]
181
+ # `,
182
+ # `
183
+ # "service": "fooservice.googleapis.com"
184
+ # "audit_log_configs": [
185
+ # `
186
+ # "log_type": "DATA_READ",
187
+ # `,
188
+ # `
189
+ # "log_type": "DATA_WRITE",
190
+ # "exempted_members": [
191
+ # "user:bar@gmail.com"
192
+ # ]
193
+ # `
194
+ # ]
195
+ # `
196
+ # ]
197
+ # `
198
+ # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
199
+ # logging. It also exempts foo@gmail.com from DATA_READ logging, and
200
+ # bar@gmail.com from DATA_WRITE logging.
201
+ class AuditConfig
202
+ include Google::Apis::Core::Hashable
89
203
 
90
- # An operator to apply the subject with.
91
- # Corresponds to the JSON property `op`
204
+ # Specifies a service that will be enabled for audit logging.
205
+ # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
206
+ # `allServices` is a special value that covers all services.
207
+ # Corresponds to the JSON property `service`
92
208
  # @return [String]
93
- attr_accessor :op
209
+ attr_accessor :service
94
210
 
95
- # Trusted attributes discharged by the service.
96
- # Corresponds to the JSON property `svc`
97
- # @return [String]
98
- attr_accessor :svc
211
+ # The configuration for logging of each type of permission.
212
+ # Next ID: 4
213
+ # Corresponds to the JSON property `auditLogConfigs`
214
+ # @return [Array<Google::Apis::SourcerepoV1::AuditLogConfig>]
215
+ attr_accessor :audit_log_configs
216
+
217
+ #
218
+ # Corresponds to the JSON property `exemptedMembers`
219
+ # @return [Array<String>]
220
+ attr_accessor :exempted_members
99
221
 
100
222
  def initialize(**args)
101
223
  update!(**args)
@@ -103,30 +225,54 @@ module Google
103
225
 
104
226
  # Update properties of this object
105
227
  def update!(**args)
106
- @sys = args[:sys] if args.key?(:sys)
107
- @value = args[:value] if args.key?(:value)
108
- @iam = args[:iam] if args.key?(:iam)
109
- @values = args[:values] if args.key?(:values)
110
- @op = args[:op] if args.key?(:op)
111
- @svc = args[:svc] if args.key?(:svc)
228
+ @service = args[:service] if args.key?(:service)
229
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
230
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
112
231
  end
113
232
  end
114
233
 
115
- # Response for ListRepos.
116
- class ListReposResponse
234
+ # Request message for `SetIamPolicy` method.
235
+ class SetIamPolicyRequest
117
236
  include Google::Apis::Core::Hashable
118
237
 
119
- # If non-empty, additional repositories exist within the project. These
120
- # can be retrieved by including this value in the next ListReposRequest's
121
- # page_token field.
122
- # Corresponds to the JSON property `nextPageToken`
123
- # @return [String]
124
- attr_accessor :next_page_token
238
+ # Defines an Identity and Access Management (IAM) policy. It is used to
239
+ # specify access control policies for Cloud Platform resources.
240
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
241
+ # `members` to a `role`, where the members can be user accounts, Google groups,
242
+ # Google domains, and service accounts. A `role` is a named list of permissions
243
+ # defined by IAM.
244
+ # **Example**
245
+ # `
246
+ # "bindings": [
247
+ # `
248
+ # "role": "roles/owner",
249
+ # "members": [
250
+ # "user:mike@example.com",
251
+ # "group:admins@example.com",
252
+ # "domain:google.com",
253
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
254
+ # ]
255
+ # `,
256
+ # `
257
+ # "role": "roles/viewer",
258
+ # "members": ["user:sean@example.com"]
259
+ # `
260
+ # ]
261
+ # `
262
+ # For a description of IAM and its features, see the
263
+ # [IAM developer's guide](https://cloud.google.com/iam).
264
+ # Corresponds to the JSON property `policy`
265
+ # @return [Google::Apis::SourcerepoV1::Policy]
266
+ attr_accessor :policy
125
267
 
126
- # The listed repos.
127
- # Corresponds to the JSON property `repos`
128
- # @return [Array<Google::Apis::SourcerepoV1::Repo>]
129
- attr_accessor :repos
268
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
269
+ # the fields in the mask will be modified. If no mask is provided, the
270
+ # following default mask is used:
271
+ # paths: "bindings, etag"
272
+ # This field is only used by Cloud IAM.
273
+ # Corresponds to the JSON property `updateMask`
274
+ # @return [String]
275
+ attr_accessor :update_mask
130
276
 
131
277
  def initialize(**args)
132
278
  update!(**args)
@@ -134,20 +280,19 @@ module Google
134
280
 
135
281
  # Update properties of this object
136
282
  def update!(**args)
137
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
138
- @repos = args[:repos] if args.key?(:repos)
283
+ @policy = args[:policy] if args.key?(:policy)
284
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
139
285
  end
140
286
  end
141
287
 
142
- # Response message for `TestIamPermissions` method.
143
- class TestIamPermissionsResponse
288
+ # Write a Cloud Audit log
289
+ class CloudAuditOptions
144
290
  include Google::Apis::Core::Hashable
145
291
 
146
- # A subset of `TestPermissionsRequest.permissions` that the caller is
147
- # allowed.
148
- # Corresponds to the JSON property `permissions`
149
- # @return [Array<String>]
150
- attr_accessor :permissions
292
+ # The log_name to populate in the Cloud Audit Record.
293
+ # Corresponds to the JSON property `logName`
294
+ # @return [String]
295
+ attr_accessor :log_name
151
296
 
152
297
  def initialize(**args)
153
298
  update!(**args)
@@ -155,23 +300,38 @@ module Google
155
300
 
156
301
  # Update properties of this object
157
302
  def update!(**args)
158
- @permissions = args[:permissions] if args.key?(:permissions)
303
+ @log_name = args[:log_name] if args.key?(:log_name)
159
304
  end
160
305
  end
161
306
 
162
- # Options for counters
163
- class CounterOptions
307
+ # Associates `members` with a `role`.
308
+ class Binding
164
309
  include Google::Apis::Core::Hashable
165
310
 
166
- # The metric to update.
167
- # Corresponds to the JSON property `metric`
168
- # @return [String]
169
- attr_accessor :metric
311
+ # Specifies the identities requesting access for a Cloud Platform resource.
312
+ # `members` can have the following values:
313
+ # * `allUsers`: A special identifier that represents anyone who is
314
+ # on the internet; with or without a Google account.
315
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
316
+ # who is authenticated with a Google account or a service account.
317
+ # * `user:`emailid``: An email address that represents a specific Google
318
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
319
+ # * `serviceAccount:`emailid``: An email address that represents a service
320
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
321
+ # * `group:`emailid``: An email address that represents a Google group.
322
+ # For example, `admins@example.com`.
323
+ # * `domain:`domain``: A Google Apps domain name that represents all the
324
+ # users of that domain. For example, `google.com` or `example.com`.
325
+ # Corresponds to the JSON property `members`
326
+ # @return [Array<String>]
327
+ attr_accessor :members
170
328
 
171
- # The field value to attribute.
172
- # Corresponds to the JSON property `field`
329
+ # Role that is assigned to `members`.
330
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
331
+ # Required
332
+ # Corresponds to the JSON property `role`
173
333
  # @return [String]
174
- attr_accessor :field
334
+ attr_accessor :role
175
335
 
176
336
  def initialize(**args)
177
337
  update!(**args)
@@ -179,42 +339,57 @@ module Google
179
339
 
180
340
  # Update properties of this object
181
341
  def update!(**args)
182
- @metric = args[:metric] if args.key?(:metric)
183
- @field = args[:field] if args.key?(:field)
342
+ @members = args[:members] if args.key?(:members)
343
+ @role = args[:role] if args.key?(:role)
184
344
  end
185
345
  end
186
346
 
187
- # Provides the configuration for logging a type of permissions.
188
- # Example:
189
- # `
190
- # "audit_log_configs": [
191
- # `
192
- # "log_type": "DATA_READ",
193
- # "exempted_members": [
194
- # "user:foo@gmail.com"
195
- # ]
196
- # `,
197
- # `
198
- # "log_type": "DATA_WRITE",
199
- # `
200
- # ]
201
- # `
202
- # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
203
- # foo@gmail.com from DATA_READ logging.
204
- class AuditLogConfig
347
+ # Configuration to automatically mirror a repository from another
348
+ # hosting service, for example GitHub or BitBucket.
349
+ class MirrorConfig
205
350
  include Google::Apis::Core::Hashable
206
351
 
207
- # Specifies the identities that do not cause logging for this type of
208
- # permission.
209
- # Follows the same format of Binding.members.
210
- # Corresponds to the JSON property `exemptedMembers`
211
- # @return [Array<String>]
212
- attr_accessor :exempted_members
352
+ # URL of the main repository at the other hosting service.
353
+ # Corresponds to the JSON property `url`
354
+ # @return [String]
355
+ attr_accessor :url
213
356
 
214
- # The log type that this config enables.
215
- # Corresponds to the JSON property `logType`
357
+ # ID of the webhook listening to updates to trigger mirroring.
358
+ # Removing this webook from the other hosting service will stop
359
+ # Google Cloud Source Repositories from receiving notifications,
360
+ # and thereby disabling mirroring.
361
+ # Corresponds to the JSON property `webhookId`
216
362
  # @return [String]
217
- attr_accessor :log_type
363
+ attr_accessor :webhook_id
364
+
365
+ # ID of the SSH deploy key at the other hosting service.
366
+ # Removing this key from the other service would deauthorize
367
+ # Google Cloud Source Repositories from mirroring.
368
+ # Corresponds to the JSON property `deployKeyId`
369
+ # @return [String]
370
+ attr_accessor :deploy_key_id
371
+
372
+ def initialize(**args)
373
+ update!(**args)
374
+ end
375
+
376
+ # Update properties of this object
377
+ def update!(**args)
378
+ @url = args[:url] if args.key?(:url)
379
+ @webhook_id = args[:webhook_id] if args.key?(:webhook_id)
380
+ @deploy_key_id = args[:deploy_key_id] if args.key?(:deploy_key_id)
381
+ end
382
+ end
383
+
384
+ # A generic empty message that you can re-use to avoid defining duplicated
385
+ # empty messages in your APIs. A typical example is to use it as the request
386
+ # or the response type of an API method. For instance:
387
+ # service Foo `
388
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
389
+ # `
390
+ # The JSON representation for `Empty` is empty JSON object ````.
391
+ class Empty
392
+ include Google::Apis::Core::Hashable
218
393
 
219
394
  def initialize(**args)
220
395
  update!(**args)
@@ -222,56 +397,36 @@ module Google
222
397
 
223
398
  # Update properties of this object
224
399
  def update!(**args)
225
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
226
- @log_type = args[:log_type] if args.key?(:log_type)
227
400
  end
228
401
  end
229
402
 
230
- # A rule to be applied in a Policy.
231
- class Rule
403
+ # A repository (or repo) is a Git repository storing versioned source content.
404
+ class Repo
232
405
  include Google::Apis::Core::Hashable
233
406
 
234
- # If one or more 'not_in' clauses are specified, the rule matches
235
- # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
236
- # The format for in and not_in entries is the same as for members in a
237
- # Binding (see google/iam/v1/policy.proto).
238
- # Corresponds to the JSON property `notIn`
239
- # @return [Array<String>]
240
- attr_accessor :not_in
241
-
242
- # Human-readable description of the rule.
243
- # Corresponds to the JSON property `description`
407
+ # URL to clone the repository from Google Cloud Source Repositories.
408
+ # Corresponds to the JSON property `url`
244
409
  # @return [String]
245
- attr_accessor :description
246
-
247
- # Additional restrictions that must be met
248
- # Corresponds to the JSON property `conditions`
249
- # @return [Array<Google::Apis::SourcerepoV1::Condition>]
250
- attr_accessor :conditions
251
-
252
- # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
253
- # that match the LOG action.
254
- # Corresponds to the JSON property `logConfig`
255
- # @return [Array<Google::Apis::SourcerepoV1::LogConfig>]
256
- attr_accessor :log_config
257
-
258
- # If one or more 'in' clauses are specified, the rule matches if
259
- # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
260
- # Corresponds to the JSON property `in`
261
- # @return [Array<String>]
262
- attr_accessor :in
410
+ attr_accessor :url
263
411
 
264
- # A permission is a string of form '<service>.<resource type>.<verb>'
265
- # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
266
- # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
267
- # Corresponds to the JSON property `permissions`
268
- # @return [Array<String>]
269
- attr_accessor :permissions
412
+ # The disk usage of the repo, in bytes.
413
+ # Only returned by GetRepo.
414
+ # Corresponds to the JSON property `size`
415
+ # @return [Fixnum]
416
+ attr_accessor :size
270
417
 
271
- # Required
272
- # Corresponds to the JSON property `action`
418
+ # Resource name of the repository, of the form
419
+ # `projects/<project>/repos/<repo>`. The repo name may contain slashes.
420
+ # eg, `projects/myproject/repos/name/with/slash`
421
+ # Corresponds to the JSON property `name`
273
422
  # @return [String]
274
- attr_accessor :action
423
+ attr_accessor :name
424
+
425
+ # Configuration to automatically mirror a repository from another
426
+ # hosting service, for example GitHub or BitBucket.
427
+ # Corresponds to the JSON property `mirrorConfig`
428
+ # @return [Google::Apis::SourcerepoV1::MirrorConfig]
429
+ attr_accessor :mirror_config
275
430
 
276
431
  def initialize(**args)
277
432
  update!(**args)
@@ -279,34 +434,28 @@ module Google
279
434
 
280
435
  # Update properties of this object
281
436
  def update!(**args)
282
- @not_in = args[:not_in] if args.key?(:not_in)
283
- @description = args[:description] if args.key?(:description)
284
- @conditions = args[:conditions] if args.key?(:conditions)
285
- @log_config = args[:log_config] if args.key?(:log_config)
286
- @in = args[:in] if args.key?(:in)
287
- @permissions = args[:permissions] if args.key?(:permissions)
288
- @action = args[:action] if args.key?(:action)
437
+ @url = args[:url] if args.key?(:url)
438
+ @size = args[:size] if args.key?(:size)
439
+ @name = args[:name] if args.key?(:name)
440
+ @mirror_config = args[:mirror_config] if args.key?(:mirror_config)
289
441
  end
290
442
  end
291
443
 
292
- # Specifies what kind of log the caller must write
293
- class LogConfig
444
+ # Response for ListRepos. The size is not set in the returned repositories.
445
+ class ListReposResponse
294
446
  include Google::Apis::Core::Hashable
295
447
 
296
- # Write a Data Access (Gin) log
297
- # Corresponds to the JSON property `dataAccess`
298
- # @return [Google::Apis::SourcerepoV1::DataAccessOptions]
299
- attr_accessor :data_access
300
-
301
- # Write a Cloud Audit log
302
- # Corresponds to the JSON property `cloudAudit`
303
- # @return [Google::Apis::SourcerepoV1::CloudAuditOptions]
304
- attr_accessor :cloud_audit
448
+ # The listed repos.
449
+ # Corresponds to the JSON property `repos`
450
+ # @return [Array<Google::Apis::SourcerepoV1::Repo>]
451
+ attr_accessor :repos
305
452
 
306
- # Options for counters
307
- # Corresponds to the JSON property `counter`
308
- # @return [Google::Apis::SourcerepoV1::CounterOptions]
309
- attr_accessor :counter
453
+ # If non-empty, additional repositories exist within the project. These
454
+ # can be retrieved by including this value in the next ListReposRequest's
455
+ # page_token field.
456
+ # Corresponds to the JSON property `nextPageToken`
457
+ # @return [String]
458
+ attr_accessor :next_page_token
310
459
 
311
460
  def initialize(**args)
312
461
  update!(**args)
@@ -314,23 +463,45 @@ module Google
314
463
 
315
464
  # Update properties of this object
316
465
  def update!(**args)
317
- @data_access = args[:data_access] if args.key?(:data_access)
318
- @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
319
- @counter = args[:counter] if args.key?(:counter)
466
+ @repos = args[:repos] if args.key?(:repos)
467
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
320
468
  end
321
469
  end
322
470
 
323
- # Request message for `TestIamPermissions` method.
324
- class TestIamPermissionsRequest
471
+ # A condition to be met.
472
+ class Condition
325
473
  include Google::Apis::Core::Hashable
326
474
 
327
- # The set of permissions to check for the `resource`. Permissions with
328
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
329
- # information see
330
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
331
- # Corresponds to the JSON property `permissions`
475
+ # An operator to apply the subject with.
476
+ # Corresponds to the JSON property `op`
477
+ # @return [String]
478
+ attr_accessor :op
479
+
480
+ # Trusted attributes discharged by the service.
481
+ # Corresponds to the JSON property `svc`
482
+ # @return [String]
483
+ attr_accessor :svc
484
+
485
+ # DEPRECATED. Use 'values' instead.
486
+ # Corresponds to the JSON property `value`
487
+ # @return [String]
488
+ attr_accessor :value
489
+
490
+ # Trusted attributes supplied by any service that owns resources and uses
491
+ # the IAM system for access control.
492
+ # Corresponds to the JSON property `sys`
493
+ # @return [String]
494
+ attr_accessor :sys
495
+
496
+ # Trusted attributes supplied by the IAM system.
497
+ # Corresponds to the JSON property `iam`
498
+ # @return [String]
499
+ attr_accessor :iam
500
+
501
+ # The objects of the condition. This is mutually exclusive with 'value'.
502
+ # Corresponds to the JSON property `values`
332
503
  # @return [Array<String>]
333
- attr_accessor :permissions
504
+ attr_accessor :values
334
505
 
335
506
  def initialize(**args)
336
507
  update!(**args)
@@ -338,88 +509,24 @@ module Google
338
509
 
339
510
  # Update properties of this object
340
511
  def update!(**args)
341
- @permissions = args[:permissions] if args.key?(:permissions)
512
+ @op = args[:op] if args.key?(:op)
513
+ @svc = args[:svc] if args.key?(:svc)
514
+ @value = args[:value] if args.key?(:value)
515
+ @sys = args[:sys] if args.key?(:sys)
516
+ @iam = args[:iam] if args.key?(:iam)
517
+ @values = args[:values] if args.key?(:values)
342
518
  end
343
519
  end
344
520
 
345
- # Defines an Identity and Access Management (IAM) policy. It is used to
346
- # specify access control policies for Cloud Platform resources.
347
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
348
- # `members` to a `role`, where the members can be user accounts, Google groups,
349
- # Google domains, and service accounts. A `role` is a named list of permissions
350
- # defined by IAM.
351
- # **Example**
352
- # `
353
- # "bindings": [
354
- # `
355
- # "role": "roles/owner",
356
- # "members": [
357
- # "user:mike@example.com",
358
- # "group:admins@example.com",
359
- # "domain:google.com",
360
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
361
- # ]
362
- # `,
363
- # `
364
- # "role": "roles/viewer",
365
- # "members": ["user:sean@example.com"]
366
- # `
367
- # ]
368
- # `
369
- # For a description of IAM and its features, see the
370
- # [IAM developer's guide](https://cloud.google.com/iam).
371
- class Policy
521
+ # Response message for `TestIamPermissions` method.
522
+ class TestIamPermissionsResponse
372
523
  include Google::Apis::Core::Hashable
373
524
 
374
- # Associates a list of `members` to a `role`.
375
- # Multiple `bindings` must not be specified for the same `role`.
376
- # `bindings` with no members will result in an error.
377
- # Corresponds to the JSON property `bindings`
378
- # @return [Array<Google::Apis::SourcerepoV1::Binding>]
379
- attr_accessor :bindings
380
-
381
- # `etag` is used for optimistic concurrency control as a way to help
382
- # prevent simultaneous updates of a policy from overwriting each other.
383
- # It is strongly suggested that systems make use of the `etag` in the
384
- # read-modify-write cycle to perform policy updates in order to avoid race
385
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
386
- # systems are expected to put that etag in the request to `setIamPolicy` to
387
- # ensure that their change will be applied to the same version of the policy.
388
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
389
- # policy is overwritten blindly.
390
- # Corresponds to the JSON property `etag`
391
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
392
- # @return [String]
393
- attr_accessor :etag
394
-
395
- #
396
- # Corresponds to the JSON property `iamOwned`
397
- # @return [Boolean]
398
- attr_accessor :iam_owned
399
- alias_method :iam_owned?, :iam_owned
400
-
401
- # If more than one rule is specified, the rules are applied in the following
402
- # manner:
403
- # - All matching LOG rules are always applied.
404
- # - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
405
- # Logging will be applied if one or more matching rule requires logging.
406
- # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
407
- # granted.
408
- # Logging will be applied if one or more matching rule requires logging.
409
- # - Otherwise, if no rule applies, permission is denied.
410
- # Corresponds to the JSON property `rules`
411
- # @return [Array<Google::Apis::SourcerepoV1::Rule>]
412
- attr_accessor :rules
413
-
414
- # Version of the `Policy`. The default version is 0.
415
- # Corresponds to the JSON property `version`
416
- # @return [Fixnum]
417
- attr_accessor :version
418
-
419
- # Specifies cloud audit logging configuration for this policy.
420
- # Corresponds to the JSON property `auditConfigs`
421
- # @return [Array<Google::Apis::SourcerepoV1::AuditConfig>]
422
- attr_accessor :audit_configs
525
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
526
+ # allowed.
527
+ # Corresponds to the JSON property `permissions`
528
+ # @return [Array<String>]
529
+ attr_accessor :permissions
423
530
 
424
531
  def initialize(**args)
425
532
  update!(**args)
@@ -427,18 +534,23 @@ module Google
427
534
 
428
535
  # Update properties of this object
429
536
  def update!(**args)
430
- @bindings = args[:bindings] if args.key?(:bindings)
431
- @etag = args[:etag] if args.key?(:etag)
432
- @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
433
- @rules = args[:rules] if args.key?(:rules)
434
- @version = args[:version] if args.key?(:version)
435
- @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
537
+ @permissions = args[:permissions] if args.key?(:permissions)
436
538
  end
437
539
  end
438
540
 
439
- # Write a Data Access (Gin) log
440
- class DataAccessOptions
441
- include Google::Apis::Core::Hashable
541
+ # Options for counters
542
+ class CounterOptions
543
+ include Google::Apis::Core::Hashable
544
+
545
+ # The metric to update.
546
+ # Corresponds to the JSON property `metric`
547
+ # @return [String]
548
+ attr_accessor :metric
549
+
550
+ # The field value to attribute.
551
+ # Corresponds to the JSON property `field`
552
+ # @return [String]
553
+ attr_accessor :field
442
554
 
443
555
  def initialize(**args)
444
556
  update!(**args)
@@ -446,22 +558,14 @@ module Google
446
558
 
447
559
  # Update properties of this object
448
560
  def update!(**args)
561
+ @metric = args[:metric] if args.key?(:metric)
562
+ @field = args[:field] if args.key?(:field)
449
563
  end
450
564
  end
451
565
 
452
- # Specifies the audit configuration for a service.
453
- # The configuration determines which permission types are logged, and what
454
- # identities, if any, are exempted from logging.
455
- # An AuditConfig must have one or more AuditLogConfigs.
456
- # If there are AuditConfigs for both `allServices` and a specific service,
457
- # the union of the two AuditConfigs is used for that service: the log_types
458
- # specified in each AuditConfig are enabled, and the exempted_members in each
459
- # AuditConfig are exempted.
460
- # Example Policy with multiple AuditConfigs:
461
- # `
462
- # "audit_configs": [
566
+ # Provides the configuration for logging a type of permissions.
567
+ # Example:
463
568
  # `
464
- # "service": "allServices"
465
569
  # "audit_log_configs": [
466
570
  # `
467
571
  # "log_type": "DATA_READ",
@@ -471,48 +575,22 @@ module Google
471
575
  # `,
472
576
  # `
473
577
  # "log_type": "DATA_WRITE",
474
- # `,
475
- # `
476
- # "log_type": "ADMIN_READ",
477
- # `
478
- # ]
479
- # `,
480
- # `
481
- # "service": "fooservice.googleapis.com"
482
- # "audit_log_configs": [
483
- # `
484
- # "log_type": "DATA_READ",
485
- # `,
486
- # `
487
- # "log_type": "DATA_WRITE",
488
- # "exempted_members": [
489
- # "user:bar@gmail.com"
490
- # ]
491
- # `
492
- # ]
493
578
  # `
494
579
  # ]
495
580
  # `
496
- # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
497
- # logging. It also exempts foo@gmail.com from DATA_READ logging, and
498
- # bar@gmail.com from DATA_WRITE logging.
499
- class AuditConfig
581
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
582
+ # foo@gmail.com from DATA_READ logging.
583
+ class AuditLogConfig
500
584
  include Google::Apis::Core::Hashable
501
585
 
502
- # Specifies a service that will be enabled for audit logging.
503
- # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
504
- # `allServices` is a special value that covers all services.
505
- # Corresponds to the JSON property `service`
586
+ # The log type that this config enables.
587
+ # Corresponds to the JSON property `logType`
506
588
  # @return [String]
507
- attr_accessor :service
508
-
509
- # The configuration for logging of each type of permission.
510
- # Next ID: 4
511
- # Corresponds to the JSON property `auditLogConfigs`
512
- # @return [Array<Google::Apis::SourcerepoV1::AuditLogConfig>]
513
- attr_accessor :audit_log_configs
589
+ attr_accessor :log_type
514
590
 
515
- #
591
+ # Specifies the identities that do not cause logging for this type of
592
+ # permission.
593
+ # Follows the same format of Binding.members.
516
594
  # Corresponds to the JSON property `exemptedMembers`
517
595
  # @return [Array<String>]
518
596
  attr_accessor :exempted_members
@@ -523,128 +601,56 @@ module Google
523
601
 
524
602
  # Update properties of this object
525
603
  def update!(**args)
526
- @service = args[:service] if args.key?(:service)
527
- @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
604
+ @log_type = args[:log_type] if args.key?(:log_type)
528
605
  @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
529
606
  end
530
607
  end
531
608
 
532
- # Request message for `SetIamPolicy` method.
533
- class SetIamPolicyRequest
609
+ # A rule to be applied in a Policy.
610
+ class Rule
534
611
  include Google::Apis::Core::Hashable
535
612
 
536
- # Defines an Identity and Access Management (IAM) policy. It is used to
537
- # specify access control policies for Cloud Platform resources.
538
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
539
- # `members` to a `role`, where the members can be user accounts, Google groups,
540
- # Google domains, and service accounts. A `role` is a named list of permissions
541
- # defined by IAM.
542
- # **Example**
543
- # `
544
- # "bindings": [
545
- # `
546
- # "role": "roles/owner",
547
- # "members": [
548
- # "user:mike@example.com",
549
- # "group:admins@example.com",
550
- # "domain:google.com",
551
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
552
- # ]
553
- # `,
554
- # `
555
- # "role": "roles/viewer",
556
- # "members": ["user:sean@example.com"]
557
- # `
558
- # ]
559
- # `
560
- # For a description of IAM and its features, see the
561
- # [IAM developer's guide](https://cloud.google.com/iam).
562
- # Corresponds to the JSON property `policy`
563
- # @return [Google::Apis::SourcerepoV1::Policy]
564
- attr_accessor :policy
613
+ # If one or more 'not_in' clauses are specified, the rule matches
614
+ # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
615
+ # The format for in and not_in entries is the same as for members in a
616
+ # Binding (see google/iam/v1/policy.proto).
617
+ # Corresponds to the JSON property `notIn`
618
+ # @return [Array<String>]
619
+ attr_accessor :not_in
565
620
 
566
- # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
567
- # the fields in the mask will be modified. If no mask is provided, the
568
- # following default mask is used:
569
- # paths: "bindings, etag"
570
- # This field is only used by Cloud IAM.
571
- # Corresponds to the JSON property `updateMask`
621
+ # Human-readable description of the rule.
622
+ # Corresponds to the JSON property `description`
572
623
  # @return [String]
573
- attr_accessor :update_mask
574
-
575
- def initialize(**args)
576
- update!(**args)
577
- end
578
-
579
- # Update properties of this object
580
- def update!(**args)
581
- @policy = args[:policy] if args.key?(:policy)
582
- @update_mask = args[:update_mask] if args.key?(:update_mask)
583
- end
584
- end
585
-
586
- # Write a Cloud Audit log
587
- class CloudAuditOptions
588
- include Google::Apis::Core::Hashable
624
+ attr_accessor :description
589
625
 
590
- def initialize(**args)
591
- update!(**args)
592
- end
626
+ # Additional restrictions that must be met
627
+ # Corresponds to the JSON property `conditions`
628
+ # @return [Array<Google::Apis::SourcerepoV1::Condition>]
629
+ attr_accessor :conditions
593
630
 
594
- # Update properties of this object
595
- def update!(**args)
596
- end
597
- end
631
+ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
632
+ # that match the LOG action.
633
+ # Corresponds to the JSON property `logConfig`
634
+ # @return [Array<Google::Apis::SourcerepoV1::LogConfig>]
635
+ attr_accessor :log_config
598
636
 
599
- # Associates `members` with a `role`.
600
- class Binding
601
- include Google::Apis::Core::Hashable
637
+ # If one or more 'in' clauses are specified, the rule matches if
638
+ # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
639
+ # Corresponds to the JSON property `in`
640
+ # @return [Array<String>]
641
+ attr_accessor :in
602
642
 
603
- # Specifies the identities requesting access for a Cloud Platform resource.
604
- # `members` can have the following values:
605
- # * `allUsers`: A special identifier that represents anyone who is
606
- # on the internet; with or without a Google account.
607
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
608
- # who is authenticated with a Google account or a service account.
609
- # * `user:`emailid``: An email address that represents a specific Google
610
- # account. For example, `alice@gmail.com` or `joe@example.com`.
611
- # * `serviceAccount:`emailid``: An email address that represents a service
612
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
613
- # * `group:`emailid``: An email address that represents a Google group.
614
- # For example, `admins@example.com`.
615
- # * `domain:`domain``: A Google Apps domain name that represents all the
616
- # users of that domain. For example, `google.com` or `example.com`.
617
- # Corresponds to the JSON property `members`
643
+ # A permission is a string of form '<service>.<resource type>.<verb>'
644
+ # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
645
+ # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
646
+ # Corresponds to the JSON property `permissions`
618
647
  # @return [Array<String>]
619
- attr_accessor :members
648
+ attr_accessor :permissions
620
649
 
621
- # Role that is assigned to `members`.
622
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
623
650
  # Required
624
- # Corresponds to the JSON property `role`
651
+ # Corresponds to the JSON property `action`
625
652
  # @return [String]
626
- attr_accessor :role
627
-
628
- def initialize(**args)
629
- update!(**args)
630
- end
631
-
632
- # Update properties of this object
633
- def update!(**args)
634
- @members = args[:members] if args.key?(:members)
635
- @role = args[:role] if args.key?(:role)
636
- end
637
- end
638
-
639
- # A generic empty message that you can re-use to avoid defining duplicated
640
- # empty messages in your APIs. A typical example is to use it as the request
641
- # or the response type of an API method. For instance:
642
- # service Foo `
643
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
644
- # `
645
- # The JSON representation for `Empty` is empty JSON object ````.
646
- class Empty
647
- include Google::Apis::Core::Hashable
653
+ attr_accessor :action
648
654
 
649
655
  def initialize(**args)
650
656
  update!(**args)
@@ -652,33 +658,34 @@ module Google
652
658
 
653
659
  # Update properties of this object
654
660
  def update!(**args)
661
+ @not_in = args[:not_in] if args.key?(:not_in)
662
+ @description = args[:description] if args.key?(:description)
663
+ @conditions = args[:conditions] if args.key?(:conditions)
664
+ @log_config = args[:log_config] if args.key?(:log_config)
665
+ @in = args[:in] if args.key?(:in)
666
+ @permissions = args[:permissions] if args.key?(:permissions)
667
+ @action = args[:action] if args.key?(:action)
655
668
  end
656
669
  end
657
670
 
658
- # Configuration to automatically mirror a repository from another
659
- # hosting service, for example GitHub or BitBucket.
660
- class MirrorConfig
671
+ # Specifies what kind of log the caller must write
672
+ class LogConfig
661
673
  include Google::Apis::Core::Hashable
662
674
 
663
- # ID of the webhook listening to updates to trigger mirroring.
664
- # Removing this webook from the other hosting service will stop
665
- # Google Cloud Source Repositories from receiving notifications,
666
- # and thereby disabling mirroring.
667
- # Corresponds to the JSON property `webhookId`
668
- # @return [String]
669
- attr_accessor :webhook_id
675
+ # Options for counters
676
+ # Corresponds to the JSON property `counter`
677
+ # @return [Google::Apis::SourcerepoV1::CounterOptions]
678
+ attr_accessor :counter
670
679
 
671
- # ID of the SSH deploy key at the other hosting service.
672
- # Removing this key from the other service would deauthorize
673
- # Google Cloud Source Repositories from mirroring.
674
- # Corresponds to the JSON property `deployKeyId`
675
- # @return [String]
676
- attr_accessor :deploy_key_id
680
+ # Write a Data Access (Gin) log
681
+ # Corresponds to the JSON property `dataAccess`
682
+ # @return [Google::Apis::SourcerepoV1::DataAccessOptions]
683
+ attr_accessor :data_access
677
684
 
678
- # URL of the main repository at the other hosting service.
679
- # Corresponds to the JSON property `url`
680
- # @return [String]
681
- attr_accessor :url
685
+ # Write a Cloud Audit log
686
+ # Corresponds to the JSON property `cloudAudit`
687
+ # @return [Google::Apis::SourcerepoV1::CloudAuditOptions]
688
+ attr_accessor :cloud_audit
682
689
 
683
690
  def initialize(**args)
684
691
  update!(**args)
@@ -686,9 +693,9 @@ module Google
686
693
 
687
694
  # Update properties of this object
688
695
  def update!(**args)
689
- @webhook_id = args[:webhook_id] if args.key?(:webhook_id)
690
- @deploy_key_id = args[:deploy_key_id] if args.key?(:deploy_key_id)
691
- @url = args[:url] if args.key?(:url)
696
+ @counter = args[:counter] if args.key?(:counter)
697
+ @data_access = args[:data_access] if args.key?(:data_access)
698
+ @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
692
699
  end
693
700
  end
694
701
  end