google-api-client 0.43.0 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (863) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +462 -0
  3. data/api_names.yaml +1 -0
  4. data/docs/oauth-server.md +4 -6
  5. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  8. data/generated/google/apis/accessapproval_v1.rb +1 -1
  9. data/generated/google/apis/accessapproval_v1/classes.rb +53 -86
  10. data/generated/google/apis/accessapproval_v1/service.rb +93 -132
  11. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  12. data/generated/google/apis/accesscontextmanager_v1/classes.rb +198 -236
  13. data/generated/google/apis/accesscontextmanager_v1/service.rb +128 -171
  14. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  15. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +153 -184
  16. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +82 -111
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -6
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +47 -2
  22. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +18 -0
  23. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  24. data/generated/google/apis/admin_datatransfer_v1.rb +6 -4
  25. data/generated/google/apis/admin_datatransfer_v1/classes.rb +16 -4
  26. data/generated/google/apis/admin_datatransfer_v1/service.rb +30 -48
  27. data/generated/google/apis/admin_directory_v1.rb +6 -8
  28. data/generated/google/apis/admin_directory_v1/classes.rb +209 -242
  29. data/generated/google/apis/admin_directory_v1/representations.rb +0 -39
  30. data/generated/google/apis/admin_directory_v1/service.rb +535 -998
  31. data/generated/google/apis/admin_reports_v1.rb +6 -5
  32. data/generated/google/apis/admin_reports_v1/classes.rb +31 -33
  33. data/generated/google/apis/admin_reports_v1/service.rb +131 -187
  34. data/generated/google/apis/admob_v1.rb +4 -1
  35. data/generated/google/apis/admob_v1/classes.rb +2 -2
  36. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  37. data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
  38. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
  39. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
  40. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2135 -0
  41. data/generated/google/apis/analyticsdata_v1alpha.rb +37 -0
  42. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +1610 -0
  43. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +789 -0
  44. data/generated/google/apis/analyticsdata_v1alpha/service.rb +220 -0
  45. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
  48. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  49. data/generated/google/apis/androidmanagement_v1/classes.rb +98 -61
  50. data/generated/google/apis/androidmanagement_v1/representations.rb +17 -0
  51. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  52. data/generated/google/apis/androidpublisher_v3/service.rb +2 -2
  53. data/generated/google/apis/apigateway_v1alpha1.rb +34 -0
  54. data/generated/google/apis/apigateway_v1alpha1/classes.rb +633 -0
  55. data/generated/google/apis/apigateway_v1alpha1/representations.rb +250 -0
  56. data/generated/google/apis/apigateway_v1alpha1/service.rb +623 -0
  57. data/generated/google/apis/apigateway_v1alpha2.rb +34 -0
  58. data/generated/google/apis/apigateway_v1alpha2/classes.rb +633 -0
  59. data/generated/google/apis/apigateway_v1alpha2/representations.rb +250 -0
  60. data/generated/google/apis/apigateway_v1alpha2/service.rb +623 -0
  61. data/generated/google/apis/apigateway_v1beta.rb +34 -0
  62. data/generated/google/apis/apigateway_v1beta/classes.rb +1162 -0
  63. data/generated/google/apis/{memcache_v1 → apigateway_v1beta}/representations.rb +156 -157
  64. data/generated/google/apis/apigateway_v1beta/service.rb +1172 -0
  65. data/generated/google/apis/apigee_v1.rb +6 -7
  66. data/generated/google/apis/apigee_v1/classes.rb +432 -82
  67. data/generated/google/apis/apigee_v1/representations.rb +139 -1
  68. data/generated/google/apis/apigee_v1/service.rb +158 -41
  69. data/generated/google/apis/appengine_v1.rb +1 -1
  70. data/generated/google/apis/appengine_v1/classes.rb +96 -59
  71. data/generated/google/apis/appengine_v1/representations.rb +17 -0
  72. data/generated/google/apis/appengine_v1/service.rb +38 -47
  73. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  74. data/generated/google/apis/appengine_v1alpha/classes.rb +9 -11
  75. data/generated/google/apis/appengine_v1beta.rb +1 -1
  76. data/generated/google/apis/appengine_v1beta/classes.rb +103 -59
  77. data/generated/google/apis/appengine_v1beta/representations.rb +18 -0
  78. data/generated/google/apis/appengine_v1beta/service.rb +37 -47
  79. data/generated/google/apis/appsmarket_v2.rb +1 -1
  80. data/generated/google/apis/appsmarket_v2/classes.rb +14 -16
  81. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  82. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +242 -337
  83. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
  84. data/generated/google/apis/artifactregistry_v1beta1/service.rb +44 -57
  85. data/generated/google/apis/{accessapproval_v1beta1.rb → assuredworkloads_v1beta1.rb} +8 -8
  86. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +458 -0
  87. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +230 -0
  88. data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
  89. data/generated/google/apis/bigquery_v2.rb +1 -1
  90. data/generated/google/apis/bigquery_v2/classes.rb +403 -553
  91. data/generated/google/apis/bigquery_v2/representations.rb +17 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +32 -40
  93. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  94. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +192 -337
  95. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +29 -32
  96. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  97. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +132 -158
  98. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +232 -282
  99. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  100. data/generated/google/apis/bigqueryreservation_v1/classes.rb +116 -123
  101. data/generated/google/apis/bigqueryreservation_v1/representations.rb +2 -0
  102. data/generated/google/apis/bigqueryreservation_v1/service.rb +137 -183
  103. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  104. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +88 -100
  105. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +77 -100
  106. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  107. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +93 -98
  108. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +2 -0
  109. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +114 -151
  110. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  111. data/generated/google/apis/bigtableadmin_v1/classes.rb +137 -119
  112. data/generated/google/apis/bigtableadmin_v1/representations.rb +29 -0
  113. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  114. data/generated/google/apis/bigtableadmin_v2/classes.rb +455 -607
  115. data/generated/google/apis/bigtableadmin_v2/representations.rb +29 -0
  116. data/generated/google/apis/bigtableadmin_v2/service.rb +194 -247
  117. data/generated/google/apis/billingbudgets_v1beta1.rb +4 -1
  118. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +15 -5
  119. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  120. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  121. data/generated/google/apis/binaryauthorization_v1/classes.rb +433 -354
  122. data/generated/google/apis/binaryauthorization_v1/representations.rb +75 -0
  123. data/generated/google/apis/binaryauthorization_v1/service.rb +109 -89
  124. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  125. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +433 -354
  126. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +75 -0
  127. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +109 -89
  128. data/generated/google/apis/calendar_v3.rb +1 -1
  129. data/generated/google/apis/calendar_v3/classes.rb +13 -10
  130. data/generated/google/apis/chat_v1.rb +1 -1
  131. data/generated/google/apis/chat_v1/classes.rb +165 -116
  132. data/generated/google/apis/chat_v1/representations.rb +35 -0
  133. data/generated/google/apis/chat_v1/service.rb +30 -42
  134. data/generated/google/apis/civicinfo_v2.rb +1 -1
  135. data/generated/google/apis/civicinfo_v2/classes.rb +18 -8
  136. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  137. data/generated/google/apis/classroom_v1.rb +7 -1
  138. data/generated/google/apis/classroom_v1/classes.rb +132 -0
  139. data/generated/google/apis/classroom_v1/representations.rb +43 -0
  140. data/generated/google/apis/classroom_v1/service.rb +240 -0
  141. data/generated/google/apis/cloudasset_v1.rb +1 -1
  142. data/generated/google/apis/cloudasset_v1/classes.rb +764 -1039
  143. data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
  144. data/generated/google/apis/cloudasset_v1/service.rb +125 -167
  145. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  146. data/generated/google/apis/cloudasset_v1beta1/classes.rb +531 -777
  147. data/generated/google/apis/cloudasset_v1beta1/service.rb +59 -75
  148. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  149. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +204 -349
  150. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +35 -47
  151. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  152. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +222 -276
  153. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +75 -93
  154. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  155. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +481 -720
  156. data/generated/google/apis/cloudasset_v1p5beta1/service.rb +25 -28
  157. data/generated/google/apis/cloudbilling_v1.rb +7 -1
  158. data/generated/google/apis/cloudbilling_v1/classes.rb +284 -445
  159. data/generated/google/apis/cloudbilling_v1/service.rb +104 -124
  160. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  161. data/generated/google/apis/cloudbuild_v1/classes.rb +337 -343
  162. data/generated/google/apis/cloudbuild_v1/representations.rb +8 -0
  163. data/generated/google/apis/cloudbuild_v1/service.rb +268 -66
  164. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  165. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +291 -329
  166. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +2 -0
  167. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +15 -18
  168. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  169. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +277 -313
  170. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +2 -0
  171. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +22 -28
  172. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  173. data/generated/google/apis/clouddebugger_v2/classes.rb +185 -252
  174. data/generated/google/apis/clouddebugger_v2/service.rb +53 -59
  175. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  176. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +127 -156
  177. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +53 -69
  178. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  179. data/generated/google/apis/cloudfunctions_v1/classes.rb +335 -494
  180. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  181. data/generated/google/apis/cloudfunctions_v1/service.rb +79 -93
  182. data/generated/google/apis/cloudidentity_v1.rb +4 -1
  183. data/generated/google/apis/cloudidentity_v1/classes.rb +943 -75
  184. data/generated/google/apis/cloudidentity_v1/representations.rb +371 -0
  185. data/generated/google/apis/cloudidentity_v1/service.rb +841 -62
  186. data/generated/google/apis/cloudidentity_v1beta1.rb +4 -1
  187. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1233 -307
  188. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +424 -21
  189. data/generated/google/apis/cloudidentity_v1beta1/service.rb +906 -96
  190. data/generated/google/apis/cloudiot_v1.rb +1 -1
  191. data/generated/google/apis/cloudiot_v1/classes.rb +270 -373
  192. data/generated/google/apis/cloudiot_v1/representations.rb +1 -0
  193. data/generated/google/apis/cloudiot_v1/service.rb +147 -154
  194. data/generated/google/apis/cloudkms_v1.rb +1 -1
  195. data/generated/google/apis/cloudkms_v1/classes.rb +509 -692
  196. data/generated/google/apis/cloudkms_v1/representations.rb +18 -0
  197. data/generated/google/apis/cloudkms_v1/service.rb +170 -216
  198. data/generated/google/apis/cloudprofiler_v2.rb +1 -1
  199. data/generated/google/apis/cloudprofiler_v2/classes.rb +28 -33
  200. data/generated/google/apis/cloudprofiler_v2/service.rb +17 -19
  201. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  202. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +14 -7
  203. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
  204. data/generated/google/apis/cloudresourcemanager_v1/service.rb +62 -60
  205. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  206. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +11 -4
  207. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +1 -0
  208. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +26 -25
  209. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  210. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -0
  211. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +1 -0
  212. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  213. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +7 -0
  214. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +1 -0
  215. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  216. data/generated/google/apis/cloudscheduler_v1/classes.rb +272 -383
  217. data/generated/google/apis/cloudscheduler_v1/service.rb +45 -62
  218. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  219. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +273 -384
  220. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +45 -62
  221. data/generated/google/apis/cloudsearch_v1.rb +2 -2
  222. data/generated/google/apis/cloudsearch_v1/classes.rb +650 -781
  223. data/generated/google/apis/cloudsearch_v1/representations.rb +15 -0
  224. data/generated/google/apis/cloudsearch_v1/service.rb +286 -326
  225. data/generated/google/apis/cloudshell_v1.rb +1 -1
  226. data/generated/google/apis/cloudshell_v1/classes.rb +36 -227
  227. data/generated/google/apis/cloudshell_v1/representations.rb +0 -67
  228. data/generated/google/apis/cloudshell_v1/service.rb +21 -25
  229. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  230. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +69 -78
  231. data/generated/google/apis/cloudshell_v1alpha1/service.rb +20 -24
  232. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  233. data/generated/google/apis/cloudtasks_v2/classes.rb +612 -933
  234. data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
  235. data/generated/google/apis/cloudtasks_v2/service.rb +146 -217
  236. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  237. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +608 -964
  238. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
  239. data/generated/google/apis/cloudtasks_v2beta2/service.rb +178 -270
  240. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  241. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +616 -938
  242. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  243. data/generated/google/apis/cloudtasks_v2beta3/service.rb +146 -217
  244. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  245. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -61
  246. data/generated/google/apis/cloudtrace_v1/service.rb +37 -51
  247. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  248. data/generated/google/apis/cloudtrace_v2/classes.rb +92 -107
  249. data/generated/google/apis/cloudtrace_v2/service.rb +8 -11
  250. data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
  251. data/generated/google/apis/cloudtrace_v2beta1/classes.rb +23 -33
  252. data/generated/google/apis/cloudtrace_v2beta1/service.rb +30 -37
  253. data/generated/google/apis/composer_v1.rb +1 -1
  254. data/generated/google/apis/composer_v1/classes.rb +190 -242
  255. data/generated/google/apis/composer_v1/service.rb +79 -150
  256. data/generated/google/apis/composer_v1beta1.rb +1 -1
  257. data/generated/google/apis/composer_v1beta1/classes.rb +203 -262
  258. data/generated/google/apis/composer_v1beta1/service.rb +92 -179
  259. data/generated/google/apis/compute_alpha.rb +1 -1
  260. data/generated/google/apis/compute_alpha/classes.rb +681 -127
  261. data/generated/google/apis/compute_alpha/representations.rb +110 -6
  262. data/generated/google/apis/compute_alpha/service.rb +695 -692
  263. data/generated/google/apis/compute_beta.rb +1 -1
  264. data/generated/google/apis/compute_beta/classes.rb +570 -70
  265. data/generated/google/apis/compute_beta/representations.rb +112 -1
  266. data/generated/google/apis/compute_beta/service.rb +608 -605
  267. data/generated/google/apis/compute_v1.rb +1 -1
  268. data/generated/google/apis/compute_v1/classes.rb +977 -85
  269. data/generated/google/apis/compute_v1/representations.rb +372 -0
  270. data/generated/google/apis/compute_v1/service.rb +747 -15
  271. data/generated/google/apis/container_v1.rb +1 -1
  272. data/generated/google/apis/container_v1/classes.rb +970 -965
  273. data/generated/google/apis/container_v1/representations.rb +60 -0
  274. data/generated/google/apis/container_v1/service.rb +435 -502
  275. data/generated/google/apis/container_v1beta1.rb +1 -1
  276. data/generated/google/apis/container_v1beta1/classes.rb +1094 -1044
  277. data/generated/google/apis/container_v1beta1/representations.rb +91 -0
  278. data/generated/google/apis/container_v1beta1/service.rb +403 -466
  279. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  280. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +463 -596
  281. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  282. data/generated/google/apis/containeranalysis_v1alpha1/service.rb +149 -169
  283. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  284. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +461 -613
  285. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +1 -0
  286. data/generated/google/apis/containeranalysis_v1beta1/service.rb +75 -90
  287. data/generated/google/apis/content_v2.rb +1 -1
  288. data/generated/google/apis/content_v2/classes.rb +5 -2
  289. data/generated/google/apis/content_v2_1.rb +1 -1
  290. data/generated/google/apis/content_v2_1/classes.rb +107 -5
  291. data/generated/google/apis/content_v2_1/representations.rb +35 -0
  292. data/generated/google/apis/content_v2_1/service.rb +54 -3
  293. data/generated/google/apis/customsearch_v1.rb +1 -1
  294. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  295. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  296. data/generated/google/apis/datacatalog_v1beta1/classes.rb +389 -573
  297. data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
  298. data/generated/google/apis/datacatalog_v1beta1/service.rb +319 -440
  299. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  300. data/generated/google/apis/dataflow_v1b3/classes.rb +1162 -973
  301. data/generated/google/apis/dataflow_v1b3/representations.rb +145 -0
  302. data/generated/google/apis/dataflow_v1b3/service.rb +308 -257
  303. data/generated/google/apis/datafusion_v1.rb +5 -8
  304. data/generated/google/apis/datafusion_v1/classes.rb +283 -397
  305. data/generated/google/apis/datafusion_v1/representations.rb +5 -0
  306. data/generated/google/apis/datafusion_v1/service.rb +76 -89
  307. data/generated/google/apis/datafusion_v1beta1.rb +5 -8
  308. data/generated/google/apis/datafusion_v1beta1/classes.rb +283 -397
  309. data/generated/google/apis/datafusion_v1beta1/representations.rb +5 -0
  310. data/generated/google/apis/datafusion_v1beta1/service.rb +81 -95
  311. data/generated/google/apis/dataproc_v1.rb +1 -1
  312. data/generated/google/apis/dataproc_v1/classes.rb +60 -14
  313. data/generated/google/apis/dataproc_v1/representations.rb +18 -0
  314. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  315. data/generated/google/apis/dataproc_v1beta2/classes.rb +80 -10
  316. data/generated/google/apis/dataproc_v1beta2/representations.rb +33 -0
  317. data/generated/google/apis/datastore_v1.rb +1 -1
  318. data/generated/google/apis/datastore_v1/classes.rb +330 -472
  319. data/generated/google/apis/datastore_v1/service.rb +52 -63
  320. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  321. data/generated/google/apis/datastore_v1beta1/classes.rb +150 -217
  322. data/generated/google/apis/datastore_v1beta1/service.rb +11 -12
  323. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  324. data/generated/google/apis/datastore_v1beta3/classes.rb +255 -371
  325. data/generated/google/apis/datastore_v1beta3/service.rb +1 -2
  326. data/generated/google/apis/dfareporting_v3_3.rb +2 -2
  327. data/generated/google/apis/dfareporting_v3_3/classes.rb +162 -339
  328. data/generated/google/apis/dfareporting_v3_3/service.rb +646 -1262
  329. data/generated/google/apis/dfareporting_v3_4.rb +2 -2
  330. data/generated/google/apis/dfareporting_v3_4/classes.rb +184 -350
  331. data/generated/google/apis/dfareporting_v3_4/representations.rb +1 -0
  332. data/generated/google/apis/dfareporting_v3_4/service.rb +681 -1261
  333. data/generated/google/apis/dialogflow_v2.rb +1 -1
  334. data/generated/google/apis/dialogflow_v2/classes.rb +199 -70
  335. data/generated/google/apis/dialogflow_v2/representations.rb +104 -15
  336. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  337. data/generated/google/apis/dialogflow_v2beta1/classes.rb +210 -78
  338. data/generated/google/apis/dialogflow_v2beta1/representations.rb +104 -15
  339. data/generated/google/apis/dialogflow_v2beta1/service.rb +500 -325
  340. data/generated/google/apis/{securitycenter_v1p1alpha1.rb → dialogflow_v3beta1.rb} +13 -10
  341. data/generated/google/apis/dialogflow_v3beta1/classes.rb +8352 -0
  342. data/generated/google/apis/dialogflow_v3beta1/representations.rb +3544 -0
  343. data/generated/google/apis/dialogflow_v3beta1/service.rb +2812 -0
  344. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  345. data/generated/google/apis/digitalassetlinks_v1/classes.rb +66 -92
  346. data/generated/google/apis/digitalassetlinks_v1/service.rb +131 -188
  347. data/generated/google/apis/displayvideo_v1.rb +1 -1
  348. data/generated/google/apis/displayvideo_v1/classes.rb +63 -8
  349. data/generated/google/apis/displayvideo_v1/representations.rb +6 -0
  350. data/generated/google/apis/displayvideo_v1/service.rb +47 -35
  351. data/generated/google/apis/displayvideo_v1beta.rb +38 -0
  352. data/generated/google/apis/displayvideo_v1beta/classes.rb +146 -0
  353. data/generated/google/apis/displayvideo_v1beta/representations.rb +72 -0
  354. data/generated/google/apis/displayvideo_v1beta/service.rb +161 -0
  355. data/generated/google/apis/displayvideo_v1beta2.rb +38 -0
  356. data/generated/google/apis/displayvideo_v1beta2/classes.rb +146 -0
  357. data/generated/google/apis/displayvideo_v1beta2/representations.rb +72 -0
  358. data/generated/google/apis/displayvideo_v1beta2/service.rb +130 -0
  359. data/generated/google/apis/displayvideo_v1dev.rb +38 -0
  360. data/generated/google/apis/displayvideo_v1dev/classes.rb +146 -0
  361. data/generated/google/apis/displayvideo_v1dev/representations.rb +72 -0
  362. data/generated/google/apis/displayvideo_v1dev/service.rb +130 -0
  363. data/generated/google/apis/dlp_v2.rb +1 -1
  364. data/generated/google/apis/dlp_v2/classes.rb +1102 -1302
  365. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  366. data/generated/google/apis/dlp_v2/service.rb +962 -905
  367. data/generated/google/apis/dns_v1.rb +1 -1
  368. data/generated/google/apis/dns_v1/classes.rb +175 -198
  369. data/generated/google/apis/dns_v1/service.rb +82 -97
  370. data/generated/google/apis/dns_v1beta2.rb +1 -1
  371. data/generated/google/apis/dns_v1beta2/classes.rb +180 -205
  372. data/generated/google/apis/dns_v1beta2/service.rb +82 -97
  373. data/generated/google/apis/docs_v1.rb +1 -1
  374. data/generated/google/apis/docs_v1/classes.rb +894 -1229
  375. data/generated/google/apis/docs_v1/service.rb +17 -22
  376. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  377. data/generated/google/apis/documentai_v1beta2/classes.rb +2253 -824
  378. data/generated/google/apis/documentai_v1beta2/representations.rb +701 -0
  379. data/generated/google/apis/documentai_v1beta2/service.rb +22 -24
  380. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -2
  381. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +7 -14
  382. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -64
  383. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +3 -2
  384. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +12 -20
  385. data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +33 -64
  386. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  387. data/generated/google/apis/doubleclicksearch_v2/service.rb +2 -2
  388. data/generated/google/apis/drive_v2.rb +1 -1
  389. data/generated/google/apis/drive_v2/classes.rb +14 -6
  390. data/generated/google/apis/drive_v2/representations.rb +1 -0
  391. data/generated/google/apis/drive_v2/service.rb +79 -15
  392. data/generated/google/apis/drive_v3.rb +1 -1
  393. data/generated/google/apis/drive_v3/classes.rb +14 -6
  394. data/generated/google/apis/drive_v3/representations.rb +1 -0
  395. data/generated/google/apis/drive_v3/service.rb +59 -11
  396. data/generated/google/apis/file_v1.rb +1 -1
  397. data/generated/google/apis/file_v1/classes.rb +154 -173
  398. data/generated/google/apis/file_v1/service.rb +43 -52
  399. data/generated/google/apis/file_v1beta1.rb +1 -1
  400. data/generated/google/apis/file_v1beta1/classes.rb +334 -193
  401. data/generated/google/apis/file_v1beta1/representations.rb +55 -0
  402. data/generated/google/apis/file_v1beta1/service.rb +267 -55
  403. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  404. data/generated/google/apis/firebase_v1beta1/classes.rb +33 -51
  405. data/generated/google/apis/firebase_v1beta1/representations.rb +2 -16
  406. data/generated/google/apis/firebase_v1beta1/service.rb +8 -1
  407. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  408. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  409. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +186 -0
  410. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +83 -0
  411. data/generated/google/apis/firebasehosting_v1beta1/service.rb +418 -4
  412. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  413. data/generated/google/apis/firebaseml_v1beta2/classes.rb +8 -8
  414. data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -1
  415. data/generated/google/apis/firebaserules_v1.rb +1 -1
  416. data/generated/google/apis/firebaserules_v1/classes.rb +102 -137
  417. data/generated/google/apis/firebaserules_v1/service.rb +87 -110
  418. data/generated/google/apis/firestore_v1.rb +1 -1
  419. data/generated/google/apis/firestore_v1/classes.rb +402 -498
  420. data/generated/google/apis/firestore_v1/service.rb +165 -201
  421. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  422. data/generated/google/apis/firestore_v1beta1/classes.rb +334 -409
  423. data/generated/google/apis/firestore_v1beta1/service.rb +106 -122
  424. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  425. data/generated/google/apis/firestore_v1beta2/classes.rb +135 -165
  426. data/generated/google/apis/firestore_v1beta2/service.rb +65 -86
  427. data/generated/google/apis/fitness_v1.rb +85 -0
  428. data/generated/google/apis/fitness_v1/classes.rb +982 -0
  429. data/generated/google/apis/fitness_v1/representations.rb +398 -0
  430. data/generated/google/apis/fitness_v1/service.rb +626 -0
  431. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  432. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -3
  433. data/generated/google/apis/games_configuration_v1configuration/service.rb +6 -6
  434. data/generated/google/apis/games_management_v1management.rb +2 -3
  435. data/generated/google/apis/games_management_v1management/classes.rb +14 -20
  436. data/generated/google/apis/games_management_v1management/service.rb +35 -36
  437. data/generated/google/apis/games_v1.rb +2 -3
  438. data/generated/google/apis/games_v1/classes.rb +76 -83
  439. data/generated/google/apis/games_v1/representations.rb +2 -0
  440. data/generated/google/apis/games_v1/service.rb +84 -90
  441. data/generated/google/apis/gameservices_v1.rb +1 -1
  442. data/generated/google/apis/gameservices_v1/classes.rb +7 -0
  443. data/generated/google/apis/gameservices_v1/representations.rb +1 -0
  444. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  445. data/generated/google/apis/gameservices_v1beta/classes.rb +7 -0
  446. data/generated/google/apis/gameservices_v1beta/representations.rb +1 -0
  447. data/generated/google/apis/genomics_v1.rb +1 -1
  448. data/generated/google/apis/genomics_v1/classes.rb +70 -76
  449. data/generated/google/apis/genomics_v1/service.rb +28 -43
  450. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  451. data/generated/google/apis/genomics_v1alpha2/classes.rb +223 -290
  452. data/generated/google/apis/genomics_v1alpha2/service.rb +54 -76
  453. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  454. data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -275
  455. data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
  456. data/generated/google/apis/genomics_v2alpha1/service.rb +47 -66
  457. data/generated/google/apis/gmail_v1.rb +1 -1
  458. data/generated/google/apis/gmail_v1/classes.rb +37 -43
  459. data/generated/google/apis/gmail_v1/service.rb +5 -4
  460. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +2 -2
  461. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +1 -1
  462. data/generated/google/apis/groupsmigration_v1.rb +35 -0
  463. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  464. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  465. data/generated/google/apis/groupsmigration_v1/service.rb +100 -0
  466. data/generated/google/apis/healthcare_v1.rb +1 -1
  467. data/generated/google/apis/healthcare_v1/classes.rb +637 -826
  468. data/generated/google/apis/healthcare_v1/representations.rb +32 -0
  469. data/generated/google/apis/healthcare_v1/service.rb +840 -854
  470. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  471. data/generated/google/apis/healthcare_v1beta1/classes.rb +1833 -1102
  472. data/generated/google/apis/healthcare_v1beta1/representations.rb +474 -0
  473. data/generated/google/apis/healthcare_v1beta1/service.rb +2476 -1281
  474. data/generated/google/apis/homegraph_v1.rb +4 -1
  475. data/generated/google/apis/homegraph_v1/classes.rb +76 -164
  476. data/generated/google/apis/homegraph_v1/service.rb +23 -35
  477. data/generated/google/apis/iam_v1.rb +5 -2
  478. data/generated/google/apis/iam_v1/classes.rb +395 -592
  479. data/generated/google/apis/iam_v1/representations.rb +1 -0
  480. data/generated/google/apis/iam_v1/service.rb +431 -556
  481. data/generated/google/apis/iamcredentials_v1.rb +4 -2
  482. data/generated/google/apis/iamcredentials_v1/classes.rb +75 -85
  483. data/generated/google/apis/iamcredentials_v1/service.rb +15 -13
  484. data/generated/google/apis/iap_v1.rb +1 -1
  485. data/generated/google/apis/iap_v1/classes.rb +253 -355
  486. data/generated/google/apis/iap_v1/representations.rb +1 -0
  487. data/generated/google/apis/iap_v1/service.rb +61 -71
  488. data/generated/google/apis/iap_v1beta1.rb +1 -1
  489. data/generated/google/apis/iap_v1beta1/classes.rb +164 -254
  490. data/generated/google/apis/iap_v1beta1/representations.rb +1 -0
  491. data/generated/google/apis/iap_v1beta1/service.rb +17 -19
  492. data/generated/google/apis/indexing_v3.rb +1 -1
  493. data/generated/google/apis/indexing_v3/classes.rb +11 -11
  494. data/generated/google/apis/jobs_v2.rb +1 -1
  495. data/generated/google/apis/jobs_v2/classes.rb +786 -1086
  496. data/generated/google/apis/jobs_v2/service.rb +85 -126
  497. data/generated/google/apis/jobs_v3.rb +1 -1
  498. data/generated/google/apis/jobs_v3/classes.rb +637 -856
  499. data/generated/google/apis/jobs_v3/service.rb +101 -139
  500. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  501. data/generated/google/apis/jobs_v3p1beta1/classes.rb +762 -1023
  502. data/generated/google/apis/jobs_v3p1beta1/service.rb +103 -142
  503. data/generated/google/apis/kgsearch_v1.rb +1 -1
  504. data/generated/google/apis/kgsearch_v1/classes.rb +4 -4
  505. data/generated/google/apis/kgsearch_v1/service.rb +11 -11
  506. data/generated/google/apis/licensing_v1.rb +4 -3
  507. data/generated/google/apis/licensing_v1/classes.rb +1 -1
  508. data/generated/google/apis/licensing_v1/service.rb +55 -85
  509. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  510. data/generated/google/apis/lifesciences_v2beta/classes.rb +262 -290
  511. data/generated/google/apis/lifesciences_v2beta/service.rb +30 -42
  512. data/generated/google/apis/localservices_v1.rb +31 -0
  513. data/generated/google/apis/localservices_v1/classes.rb +419 -0
  514. data/generated/google/apis/localservices_v1/representations.rb +172 -0
  515. data/generated/google/apis/localservices_v1/service.rb +199 -0
  516. data/generated/google/apis/logging_v2.rb +1 -1
  517. data/generated/google/apis/logging_v2/classes.rb +230 -227
  518. data/generated/google/apis/logging_v2/representations.rb +47 -0
  519. data/generated/google/apis/logging_v2/service.rb +2056 -673
  520. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  521. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +8 -0
  522. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +1 -0
  523. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  524. data/generated/google/apis/managedidentities_v1beta1/classes.rb +8 -0
  525. data/generated/google/apis/managedidentities_v1beta1/representations.rb +1 -0
  526. data/generated/google/apis/manufacturers_v1.rb +1 -1
  527. data/generated/google/apis/manufacturers_v1/classes.rb +99 -109
  528. data/generated/google/apis/manufacturers_v1/service.rb +44 -55
  529. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  530. data/generated/google/apis/memcache_v1beta2/classes.rb +170 -249
  531. data/generated/google/apis/memcache_v1beta2/representations.rb +0 -19
  532. data/generated/google/apis/memcache_v1beta2/service.rb +58 -71
  533. data/generated/google/apis/ml_v1.rb +1 -1
  534. data/generated/google/apis/ml_v1/classes.rb +956 -1144
  535. data/generated/google/apis/ml_v1/representations.rb +65 -0
  536. data/generated/google/apis/ml_v1/service.rb +194 -253
  537. data/generated/google/apis/monitoring_v1.rb +1 -1
  538. data/generated/google/apis/monitoring_v1/classes.rb +107 -26
  539. data/generated/google/apis/monitoring_v1/representations.rb +35 -0
  540. data/generated/google/apis/monitoring_v1/service.rb +10 -11
  541. data/generated/google/apis/monitoring_v3.rb +1 -1
  542. data/generated/google/apis/monitoring_v3/classes.rb +232 -328
  543. data/generated/google/apis/monitoring_v3/service.rb +121 -140
  544. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  545. data/generated/google/apis/networkmanagement_v1/classes.rb +273 -429
  546. data/generated/google/apis/networkmanagement_v1/service.rb +97 -120
  547. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  548. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +456 -429
  549. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +63 -0
  550. data/generated/google/apis/networkmanagement_v1beta1/service.rb +97 -120
  551. data/generated/google/apis/osconfig_v1.rb +1 -1
  552. data/generated/google/apis/osconfig_v1/classes.rb +154 -902
  553. data/generated/google/apis/osconfig_v1/representations.rb +0 -337
  554. data/generated/google/apis/osconfig_v1/service.rb +22 -27
  555. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  556. data/generated/google/apis/osconfig_v1beta/classes.rb +327 -411
  557. data/generated/google/apis/osconfig_v1beta/service.rb +39 -52
  558. data/generated/google/apis/oslogin_v1.rb +1 -1
  559. data/generated/google/apis/oslogin_v1/classes.rb +14 -12
  560. data/generated/google/apis/oslogin_v1/representations.rb +1 -0
  561. data/generated/google/apis/oslogin_v1/service.rb +12 -16
  562. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  563. data/generated/google/apis/oslogin_v1alpha/classes.rb +16 -14
  564. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  565. data/generated/google/apis/oslogin_v1alpha/service.rb +17 -17
  566. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  567. data/generated/google/apis/oslogin_v1beta/classes.rb +14 -12
  568. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  569. data/generated/google/apis/oslogin_v1beta/service.rb +12 -16
  570. data/generated/google/apis/pagespeedonline_v5.rb +2 -2
  571. data/generated/google/apis/pagespeedonline_v5/classes.rb +18 -24
  572. data/generated/google/apis/pagespeedonline_v5/service.rb +3 -4
  573. data/generated/google/apis/people_v1.rb +1 -1
  574. data/generated/google/apis/people_v1/classes.rb +121 -12
  575. data/generated/google/apis/people_v1/representations.rb +41 -0
  576. data/generated/google/apis/people_v1/service.rb +47 -45
  577. data/generated/google/apis/playablelocations_v3.rb +1 -1
  578. data/generated/google/apis/playablelocations_v3/classes.rb +108 -155
  579. data/generated/google/apis/playablelocations_v3/service.rb +10 -10
  580. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  581. data/generated/google/apis/playcustomapp_v1/service.rb +2 -2
  582. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  583. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +26 -0
  584. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +14 -0
  585. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +479 -0
  586. data/generated/google/apis/pubsub_v1.rb +1 -1
  587. data/generated/google/apis/pubsub_v1/classes.rb +399 -518
  588. data/generated/google/apis/pubsub_v1/representations.rb +2 -0
  589. data/generated/google/apis/pubsub_v1/service.rb +220 -246
  590. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  591. data/generated/google/apis/pubsub_v1beta1a/classes.rb +71 -86
  592. data/generated/google/apis/pubsub_v1beta1a/service.rb +31 -38
  593. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  594. data/generated/google/apis/pubsub_v1beta2/classes.rb +251 -354
  595. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
  596. data/generated/google/apis/pubsub_v1beta2/service.rb +96 -108
  597. data/generated/google/apis/{memcache_v1.rb → pubsublite_v1.rb} +8 -9
  598. data/generated/google/apis/pubsublite_v1/classes.rb +461 -0
  599. data/generated/google/apis/pubsublite_v1/representations.rb +261 -0
  600. data/generated/google/apis/{memcache_v1 → pubsublite_v1}/service.rb +228 -228
  601. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  602. data/generated/google/apis/realtimebidding_v1/classes.rb +4 -4
  603. data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
  604. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  605. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +335 -456
  606. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +0 -16
  607. data/generated/google/apis/recommendationengine_v1beta1/service.rb +140 -206
  608. data/generated/google/apis/redis_v1.rb +1 -1
  609. data/generated/google/apis/redis_v1/classes.rb +91 -513
  610. data/generated/google/apis/redis_v1/representations.rb +0 -139
  611. data/generated/google/apis/redis_v1/service.rb +93 -110
  612. data/generated/google/apis/redis_v1beta1.rb +1 -1
  613. data/generated/google/apis/redis_v1beta1/classes.rb +95 -517
  614. data/generated/google/apis/redis_v1beta1/representations.rb +0 -139
  615. data/generated/google/apis/redis_v1beta1/service.rb +93 -110
  616. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  617. data/generated/google/apis/remotebuildexecution_v1/classes.rb +951 -1078
  618. data/generated/google/apis/remotebuildexecution_v1/representations.rb +61 -0
  619. data/generated/google/apis/remotebuildexecution_v1/service.rb +26 -33
  620. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  621. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +946 -1071
  622. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +61 -0
  623. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +103 -65
  624. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  625. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1099 -1250
  626. data/generated/google/apis/remotebuildexecution_v2/representations.rb +61 -0
  627. data/generated/google/apis/remotebuildexecution_v2/service.rb +147 -206
  628. data/generated/google/apis/reseller_v1.rb +2 -2
  629. data/generated/google/apis/reseller_v1/classes.rb +151 -219
  630. data/generated/google/apis/reseller_v1/service.rb +122 -173
  631. data/generated/google/apis/run_v1.rb +1 -1
  632. data/generated/google/apis/run_v1/classes.rb +12 -135
  633. data/generated/google/apis/run_v1/representations.rb +1 -62
  634. data/generated/google/apis/run_v1/service.rb +0 -342
  635. data/generated/google/apis/run_v1alpha1.rb +1 -1
  636. data/generated/google/apis/run_v1alpha1/classes.rb +1 -1
  637. data/generated/google/apis/run_v1alpha1/representations.rb +1 -1
  638. data/generated/google/apis/run_v1beta1.rb +1 -1
  639. data/generated/google/apis/run_v1beta1/classes.rb +3 -2
  640. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  641. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +302 -412
  642. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +1 -0
  643. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +135 -159
  644. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  645. data/generated/google/apis/safebrowsing_v4/classes.rb +55 -64
  646. data/generated/google/apis/safebrowsing_v4/service.rb +4 -4
  647. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  648. data/generated/google/apis/sasportal_v1alpha1/classes.rb +26 -0
  649. data/generated/google/apis/sasportal_v1alpha1/representations.rb +14 -0
  650. data/generated/google/apis/sasportal_v1alpha1/service.rb +479 -0
  651. data/generated/google/apis/script_v1.rb +1 -1
  652. data/generated/google/apis/script_v1/classes.rb +88 -111
  653. data/generated/google/apis/script_v1/service.rb +63 -69
  654. data/generated/google/apis/searchconsole_v1.rb +7 -1
  655. data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
  656. data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
  657. data/generated/google/apis/searchconsole_v1/service.rb +287 -0
  658. data/generated/google/apis/secretmanager_v1.rb +1 -1
  659. data/generated/google/apis/secretmanager_v1/classes.rb +379 -365
  660. data/generated/google/apis/secretmanager_v1/representations.rb +92 -0
  661. data/generated/google/apis/secretmanager_v1/service.rb +66 -82
  662. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  663. data/generated/google/apis/secretmanager_v1beta1/classes.rb +218 -363
  664. data/generated/google/apis/secretmanager_v1beta1/representations.rb +1 -0
  665. data/generated/google/apis/secretmanager_v1beta1/service.rb +66 -82
  666. data/generated/google/apis/securitycenter_v1.rb +1 -1
  667. data/generated/google/apis/securitycenter_v1/classes.rb +20 -204
  668. data/generated/google/apis/securitycenter_v1/representations.rb +1 -72
  669. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  670. data/generated/google/apis/securitycenter_v1beta1/classes.rb +22 -204
  671. data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -72
  672. data/generated/google/apis/{securitycenter_v1p1beta1.rb → securitycenter_v1beta2.rb} +6 -6
  673. data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/classes.rb +275 -291
  674. data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/representations.rb +83 -84
  675. data/generated/google/apis/securitycenter_v1beta2/service.rb +1494 -0
  676. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  677. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +30 -60
  678. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +31 -29
  679. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  680. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +19 -49
  681. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  682. data/generated/google/apis/servicecontrol_v1/classes.rb +525 -641
  683. data/generated/google/apis/servicecontrol_v1/service.rb +36 -46
  684. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  685. data/generated/google/apis/servicecontrol_v2/classes.rb +281 -325
  686. data/generated/google/apis/servicecontrol_v2/service.rb +33 -43
  687. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  688. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +221 -333
  689. data/generated/google/apis/servicedirectory_v1beta1/representations.rb +1 -0
  690. data/generated/google/apis/servicedirectory_v1beta1/service.rb +94 -129
  691. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  692. data/generated/google/apis/servicemanagement_v1/classes.rb +1263 -2135
  693. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
  694. data/generated/google/apis/servicemanagement_v1/service.rb +141 -228
  695. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  696. data/generated/google/apis/servicenetworking_v1/classes.rb +93 -57
  697. data/generated/google/apis/servicenetworking_v1/representations.rb +52 -1
  698. data/generated/google/apis/servicenetworking_v1/service.rb +116 -0
  699. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  700. data/generated/google/apis/servicenetworking_v1beta/classes.rb +74 -48
  701. data/generated/google/apis/servicenetworking_v1beta/representations.rb +38 -0
  702. data/generated/google/apis/serviceusage_v1.rb +1 -1
  703. data/generated/google/apis/serviceusage_v1/classes.rb +52 -48
  704. data/generated/google/apis/serviceusage_v1/representations.rb +4 -0
  705. data/generated/google/apis/serviceusage_v1/service.rb +5 -1
  706. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  707. data/generated/google/apis/serviceusage_v1beta1/classes.rb +87 -49
  708. data/generated/google/apis/serviceusage_v1beta1/representations.rb +8 -0
  709. data/generated/google/apis/sheets_v4.rb +1 -1
  710. data/generated/google/apis/sheets_v4/classes.rb +3933 -5008
  711. data/generated/google/apis/sheets_v4/representations.rb +625 -0
  712. data/generated/google/apis/sheets_v4/service.rb +113 -149
  713. data/generated/google/apis/site_verification_v1.rb +1 -1
  714. data/generated/google/apis/slides_v1.rb +1 -1
  715. data/generated/google/apis/slides_v1/classes.rb +841 -1114
  716. data/generated/google/apis/slides_v1/service.rb +23 -30
  717. data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
  718. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +313 -0
  719. data/generated/google/apis/{accessapproval_v1beta1 → smartdevicemanagement_v1}/representations.rb +44 -73
  720. data/generated/google/apis/smartdevicemanagement_v1/service.rb +312 -0
  721. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  722. data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
  723. data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
  724. data/generated/google/apis/spanner_v1.rb +1 -1
  725. data/generated/google/apis/spanner_v1/classes.rb +1553 -2157
  726. data/generated/google/apis/spanner_v1/representations.rb +1 -0
  727. data/generated/google/apis/spanner_v1/service.rb +443 -618
  728. data/generated/google/apis/speech_v1.rb +1 -1
  729. data/generated/google/apis/speech_v1/classes.rb +174 -220
  730. data/generated/google/apis/speech_v1/service.rb +27 -32
  731. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  732. data/generated/google/apis/speech_v1p1beta1/classes.rb +253 -306
  733. data/generated/google/apis/speech_v1p1beta1/service.rb +27 -32
  734. data/generated/google/apis/speech_v2beta1.rb +1 -1
  735. data/generated/google/apis/speech_v2beta1/classes.rb +66 -76
  736. data/generated/google/apis/speech_v2beta1/service.rb +10 -12
  737. data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
  738. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +469 -452
  739. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +122 -87
  740. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +295 -300
  741. data/generated/google/apis/storage_v1.rb +1 -1
  742. data/generated/google/apis/storage_v1/classes.rb +8 -7
  743. data/generated/google/apis/storage_v1/representations.rb +2 -2
  744. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  745. data/generated/google/apis/storagetransfer_v1/classes.rb +261 -339
  746. data/generated/google/apis/storagetransfer_v1/service.rb +43 -64
  747. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  748. data/generated/google/apis/streetviewpublish_v1/classes.rb +106 -148
  749. data/generated/google/apis/streetviewpublish_v1/service.rb +94 -177
  750. data/generated/google/apis/sts_v1.rb +32 -0
  751. data/generated/google/apis/sts_v1/classes.rb +120 -0
  752. data/generated/google/apis/sts_v1/representations.rb +59 -0
  753. data/generated/google/apis/sts_v1/service.rb +90 -0
  754. data/generated/google/apis/sts_v1beta.rb +32 -0
  755. data/generated/google/apis/sts_v1beta/classes.rb +194 -0
  756. data/generated/google/apis/{oauth2_v2 → sts_v1beta}/representations.rb +14 -21
  757. data/generated/google/apis/sts_v1beta/service.rb +92 -0
  758. data/generated/google/apis/tagmanager_v1.rb +1 -1
  759. data/generated/google/apis/tagmanager_v1/service.rb +2 -2
  760. data/generated/google/apis/tagmanager_v2.rb +1 -1
  761. data/generated/google/apis/tagmanager_v2/service.rb +2 -2
  762. data/generated/google/apis/tasks_v1.rb +1 -1
  763. data/generated/google/apis/tasks_v1/classes.rb +21 -22
  764. data/generated/google/apis/tasks_v1/service.rb +19 -19
  765. data/generated/google/apis/testing_v1.rb +1 -1
  766. data/generated/google/apis/testing_v1/classes.rb +317 -382
  767. data/generated/google/apis/testing_v1/representations.rb +2 -0
  768. data/generated/google/apis/testing_v1/service.rb +22 -28
  769. data/generated/google/apis/texttospeech_v1.rb +1 -1
  770. data/generated/google/apis/texttospeech_v1/classes.rb +51 -57
  771. data/generated/google/apis/texttospeech_v1/service.rb +9 -10
  772. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  773. data/generated/google/apis/texttospeech_v1beta1/classes.rb +96 -57
  774. data/generated/google/apis/texttospeech_v1beta1/representations.rb +19 -0
  775. data/generated/google/apis/texttospeech_v1beta1/service.rb +9 -10
  776. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  777. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -0
  778. data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
  779. data/generated/google/apis/tpu_v1.rb +1 -1
  780. data/generated/google/apis/tpu_v1/classes.rb +54 -0
  781. data/generated/google/apis/tpu_v1/representations.rb +19 -0
  782. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  783. data/generated/google/apis/tpu_v1alpha1/classes.rb +54 -0
  784. data/generated/google/apis/tpu_v1alpha1/representations.rb +19 -0
  785. data/generated/google/apis/trafficdirector_v2.rb +34 -0
  786. data/generated/google/apis/trafficdirector_v2/classes.rb +1347 -0
  787. data/generated/google/apis/trafficdirector_v2/representations.rb +620 -0
  788. data/generated/google/apis/trafficdirector_v2/service.rb +89 -0
  789. data/generated/google/apis/translate_v3.rb +1 -1
  790. data/generated/google/apis/translate_v3/classes.rb +148 -175
  791. data/generated/google/apis/translate_v3/service.rb +122 -151
  792. data/generated/google/apis/translate_v3beta1.rb +1 -1
  793. data/generated/google/apis/translate_v3beta1/classes.rb +149 -170
  794. data/generated/google/apis/translate_v3beta1/service.rb +122 -151
  795. data/generated/google/apis/vault_v1.rb +1 -1
  796. data/generated/google/apis/vault_v1/classes.rb +80 -103
  797. data/generated/google/apis/vault_v1/service.rb +31 -37
  798. data/generated/google/apis/vectortile_v1.rb +1 -1
  799. data/generated/google/apis/vectortile_v1/classes.rb +185 -267
  800. data/generated/google/apis/vectortile_v1/service.rb +75 -88
  801. data/generated/google/apis/verifiedaccess_v1.rb +1 -1
  802. data/generated/google/apis/verifiedaccess_v1/classes.rb +20 -27
  803. data/generated/google/apis/videointelligence_v1.rb +1 -1
  804. data/generated/google/apis/videointelligence_v1/classes.rb +753 -918
  805. data/generated/google/apis/videointelligence_v1/service.rb +71 -48
  806. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  807. data/generated/google/apis/videointelligence_v1beta2/classes.rb +748 -911
  808. data/generated/google/apis/videointelligence_v1beta2/service.rb +4 -4
  809. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  810. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +748 -911
  811. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +4 -4
  812. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  813. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +748 -911
  814. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +4 -4
  815. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  816. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +754 -920
  817. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +4 -4
  818. data/generated/google/apis/vision_v1.rb +1 -1
  819. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  820. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  821. data/generated/google/apis/webfonts_v1.rb +2 -3
  822. data/generated/google/apis/webfonts_v1/classes.rb +1 -2
  823. data/generated/google/apis/webfonts_v1/service.rb +2 -4
  824. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  825. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  826. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  827. data/generated/google/apis/workflowexecutions_v1beta.rb +34 -0
  828. data/generated/google/apis/workflowexecutions_v1beta/classes.rb +155 -0
  829. data/generated/google/apis/workflowexecutions_v1beta/representations.rb +88 -0
  830. data/generated/google/apis/{securitycenter_v1p1alpha1 → workflowexecutions_v1beta}/service.rb +73 -69
  831. data/generated/google/apis/workflows_v1beta.rb +34 -0
  832. data/generated/google/apis/workflows_v1beta/classes.rb +406 -0
  833. data/generated/google/apis/workflows_v1beta/representations.rb +173 -0
  834. data/generated/google/apis/workflows_v1beta/service.rb +437 -0
  835. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  836. data/generated/google/apis/youtube_v3.rb +1 -1
  837. data/generated/google/apis/youtube_v3/classes.rb +0 -586
  838. data/generated/google/apis/youtube_v3/representations.rb +0 -269
  839. data/generated/google/apis/youtube_v3/service.rb +0 -117
  840. data/google-api-client.gemspec +2 -1
  841. data/lib/google/apis/version.rb +1 -1
  842. metadata +106 -40
  843. data/generated/google/apis/accessapproval_v1beta1/classes.rb +0 -417
  844. data/generated/google/apis/accessapproval_v1beta1/service.rb +0 -857
  845. data/generated/google/apis/dns_v2beta1.rb +0 -43
  846. data/generated/google/apis/dns_v2beta1/classes.rb +0 -1447
  847. data/generated/google/apis/dns_v2beta1/representations.rb +0 -588
  848. data/generated/google/apis/dns_v2beta1/service.rb +0 -928
  849. data/generated/google/apis/memcache_v1/classes.rb +0 -1157
  850. data/generated/google/apis/oauth2_v2.rb +0 -40
  851. data/generated/google/apis/oauth2_v2/classes.rb +0 -165
  852. data/generated/google/apis/oauth2_v2/service.rb +0 -158
  853. data/generated/google/apis/plus_v1.rb +0 -43
  854. data/generated/google/apis/plus_v1/classes.rb +0 -2094
  855. data/generated/google/apis/plus_v1/representations.rb +0 -907
  856. data/generated/google/apis/plus_v1/service.rb +0 -451
  857. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +0 -2059
  858. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +0 -789
  859. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +0 -1243
  860. data/generated/google/apis/storage_v1beta2.rb +0 -40
  861. data/generated/google/apis/storage_v1beta2/classes.rb +0 -1047
  862. data/generated/google/apis/storage_v1beta2/representations.rb +0 -425
  863. data/generated/google/apis/storage_v1beta2/service.rb +0 -1667
@@ -1,451 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/core/base_service'
16
- require 'google/apis/core/json_representation'
17
- require 'google/apis/core/hashable'
18
- require 'google/apis/errors'
19
-
20
- module Google
21
- module Apis
22
- module PlusV1
23
- # Google+ API
24
- #
25
- # Builds on top of the Google+ platform.
26
- #
27
- # @example
28
- # require 'google/apis/plus_v1'
29
- #
30
- # Plus = Google::Apis::PlusV1 # Alias the module
31
- # service = Plus::PlusService.new
32
- #
33
- # @see https://developers.google.com/+/api/
34
- class PlusService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
- # @return [String]
41
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
43
- attr_accessor :quota_user
44
-
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
- def initialize
50
- super('https://www.googleapis.com/', 'plus/v1/')
51
- @batch_path = 'batch/plus/v1'
52
- end
53
-
54
- # Shut down. See https://developers.google.com/+/api-shutdown for more details.
55
- # @param [String] activity_id
56
- # The ID of the activity to get.
57
- # @param [String] fields
58
- # Selector specifying which fields to include in a partial response.
59
- # @param [String] quota_user
60
- # An opaque string that represents a user for quota purposes. Must not exceed 40
61
- # characters.
62
- # @param [String] user_ip
63
- # Deprecated. Please use quotaUser instead.
64
- # @param [Google::Apis::RequestOptions] options
65
- # Request-specific options
66
- #
67
- # @yield [result, err] Result & error if block supplied
68
- # @yieldparam result [Google::Apis::PlusV1::Activity] parsed result object
69
- # @yieldparam err [StandardError] error object if request failed
70
- #
71
- # @return [Google::Apis::PlusV1::Activity]
72
- #
73
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
- # @raise [Google::Apis::AuthorizationError] Authorization is required
76
- def get_activity(activity_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
77
- command = make_simple_command(:get, 'activities/{activityId}', options)
78
- command.response_representation = Google::Apis::PlusV1::Activity::Representation
79
- command.response_class = Google::Apis::PlusV1::Activity
80
- command.params['activityId'] = activity_id unless activity_id.nil?
81
- command.query['fields'] = fields unless fields.nil?
82
- command.query['quotaUser'] = quota_user unless quota_user.nil?
83
- command.query['userIp'] = user_ip unless user_ip.nil?
84
- execute_or_queue_command(command, &block)
85
- end
86
-
87
- # Shut down. See https://developers.google.com/+/api-shutdown for more details.
88
- # @param [String] user_id
89
- # The ID of the user to get activities for. The special value "me" can be used
90
- # to indicate the authenticated user.
91
- # @param [String] collection
92
- # The collection of activities to list.
93
- # @param [Fixnum] max_results
94
- # The maximum number of activities to include in the response, which is used for
95
- # paging. For any response, the actual number returned might be less than the
96
- # specified maxResults.
97
- # @param [String] page_token
98
- # The continuation token, which is used to page through large result sets. To
99
- # get the next page of results, set this parameter to the value of "
100
- # nextPageToken" from the previous response.
101
- # @param [String] fields
102
- # Selector specifying which fields to include in a partial response.
103
- # @param [String] quota_user
104
- # An opaque string that represents a user for quota purposes. Must not exceed 40
105
- # characters.
106
- # @param [String] user_ip
107
- # Deprecated. Please use quotaUser instead.
108
- # @param [Google::Apis::RequestOptions] options
109
- # Request-specific options
110
- #
111
- # @yield [result, err] Result & error if block supplied
112
- # @yieldparam result [Google::Apis::PlusV1::ActivityFeed] parsed result object
113
- # @yieldparam err [StandardError] error object if request failed
114
- #
115
- # @return [Google::Apis::PlusV1::ActivityFeed]
116
- #
117
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
118
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
119
- # @raise [Google::Apis::AuthorizationError] Authorization is required
120
- def list_activities(user_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
121
- command = make_simple_command(:get, 'people/{userId}/activities/{collection}', options)
122
- command.response_representation = Google::Apis::PlusV1::ActivityFeed::Representation
123
- command.response_class = Google::Apis::PlusV1::ActivityFeed
124
- command.params['userId'] = user_id unless user_id.nil?
125
- command.params['collection'] = collection unless collection.nil?
126
- command.query['maxResults'] = max_results unless max_results.nil?
127
- command.query['pageToken'] = page_token unless page_token.nil?
128
- command.query['fields'] = fields unless fields.nil?
129
- command.query['quotaUser'] = quota_user unless quota_user.nil?
130
- command.query['userIp'] = user_ip unless user_ip.nil?
131
- execute_or_queue_command(command, &block)
132
- end
133
-
134
- # Shut down. See https://developers.google.com/+/api-shutdown for more details.
135
- # @param [String] query
136
- # Full-text search query string.
137
- # @param [String] language
138
- # Specify the preferred language to search with. See search language codes for
139
- # available values.
140
- # @param [Fixnum] max_results
141
- # The maximum number of activities to include in the response, which is used for
142
- # paging. For any response, the actual number returned might be less than the
143
- # specified maxResults.
144
- # @param [String] order_by
145
- # Specifies how to order search results.
146
- # @param [String] page_token
147
- # The continuation token, which is used to page through large result sets. To
148
- # get the next page of results, set this parameter to the value of "
149
- # nextPageToken" from the previous response. This token can be of any length.
150
- # @param [String] fields
151
- # Selector specifying which fields to include in a partial response.
152
- # @param [String] quota_user
153
- # An opaque string that represents a user for quota purposes. Must not exceed 40
154
- # characters.
155
- # @param [String] user_ip
156
- # Deprecated. Please use quotaUser instead.
157
- # @param [Google::Apis::RequestOptions] options
158
- # Request-specific options
159
- #
160
- # @yield [result, err] Result & error if block supplied
161
- # @yieldparam result [Google::Apis::PlusV1::ActivityFeed] parsed result object
162
- # @yieldparam err [StandardError] error object if request failed
163
- #
164
- # @return [Google::Apis::PlusV1::ActivityFeed]
165
- #
166
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
167
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
168
- # @raise [Google::Apis::AuthorizationError] Authorization is required
169
- def search_activities(query, language: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
170
- command = make_simple_command(:get, 'activities', options)
171
- command.response_representation = Google::Apis::PlusV1::ActivityFeed::Representation
172
- command.response_class = Google::Apis::PlusV1::ActivityFeed
173
- command.query['language'] = language unless language.nil?
174
- command.query['maxResults'] = max_results unless max_results.nil?
175
- command.query['orderBy'] = order_by unless order_by.nil?
176
- command.query['pageToken'] = page_token unless page_token.nil?
177
- command.query['query'] = query unless query.nil?
178
- command.query['fields'] = fields unless fields.nil?
179
- command.query['quotaUser'] = quota_user unless quota_user.nil?
180
- command.query['userIp'] = user_ip unless user_ip.nil?
181
- execute_or_queue_command(command, &block)
182
- end
183
-
184
- # Shut down. See https://developers.google.com/+/api-shutdown for more details.
185
- # @param [String] comment_id
186
- # The ID of the comment to get.
187
- # @param [String] fields
188
- # Selector specifying which fields to include in a partial response.
189
- # @param [String] quota_user
190
- # An opaque string that represents a user for quota purposes. Must not exceed 40
191
- # characters.
192
- # @param [String] user_ip
193
- # Deprecated. Please use quotaUser instead.
194
- # @param [Google::Apis::RequestOptions] options
195
- # Request-specific options
196
- #
197
- # @yield [result, err] Result & error if block supplied
198
- # @yieldparam result [Google::Apis::PlusV1::Comment] parsed result object
199
- # @yieldparam err [StandardError] error object if request failed
200
- #
201
- # @return [Google::Apis::PlusV1::Comment]
202
- #
203
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
204
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
205
- # @raise [Google::Apis::AuthorizationError] Authorization is required
206
- def get_comment(comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
207
- command = make_simple_command(:get, 'comments/{commentId}', options)
208
- command.response_representation = Google::Apis::PlusV1::Comment::Representation
209
- command.response_class = Google::Apis::PlusV1::Comment
210
- command.params['commentId'] = comment_id unless comment_id.nil?
211
- command.query['fields'] = fields unless fields.nil?
212
- command.query['quotaUser'] = quota_user unless quota_user.nil?
213
- command.query['userIp'] = user_ip unless user_ip.nil?
214
- execute_or_queue_command(command, &block)
215
- end
216
-
217
- # Shut down. See https://developers.google.com/+/api-shutdown for more details.
218
- # @param [String] activity_id
219
- # The ID of the activity to get comments for.
220
- # @param [Fixnum] max_results
221
- # The maximum number of comments to include in the response, which is used for
222
- # paging. For any response, the actual number returned might be less than the
223
- # specified maxResults.
224
- # @param [String] page_token
225
- # The continuation token, which is used to page through large result sets. To
226
- # get the next page of results, set this parameter to the value of "
227
- # nextPageToken" from the previous response.
228
- # @param [String] sort_order
229
- # The order in which to sort the list of comments.
230
- # @param [String] fields
231
- # Selector specifying which fields to include in a partial response.
232
- # @param [String] quota_user
233
- # An opaque string that represents a user for quota purposes. Must not exceed 40
234
- # characters.
235
- # @param [String] user_ip
236
- # Deprecated. Please use quotaUser instead.
237
- # @param [Google::Apis::RequestOptions] options
238
- # Request-specific options
239
- #
240
- # @yield [result, err] Result & error if block supplied
241
- # @yieldparam result [Google::Apis::PlusV1::CommentFeed] parsed result object
242
- # @yieldparam err [StandardError] error object if request failed
243
- #
244
- # @return [Google::Apis::PlusV1::CommentFeed]
245
- #
246
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
247
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
248
- # @raise [Google::Apis::AuthorizationError] Authorization is required
249
- def list_comments(activity_id, max_results: nil, page_token: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
250
- command = make_simple_command(:get, 'activities/{activityId}/comments', options)
251
- command.response_representation = Google::Apis::PlusV1::CommentFeed::Representation
252
- command.response_class = Google::Apis::PlusV1::CommentFeed
253
- command.params['activityId'] = activity_id unless activity_id.nil?
254
- command.query['maxResults'] = max_results unless max_results.nil?
255
- command.query['pageToken'] = page_token unless page_token.nil?
256
- command.query['sortOrder'] = sort_order unless sort_order.nil?
257
- command.query['fields'] = fields unless fields.nil?
258
- command.query['quotaUser'] = quota_user unless quota_user.nil?
259
- command.query['userIp'] = user_ip unless user_ip.nil?
260
- execute_or_queue_command(command, &block)
261
- end
262
-
263
- # Get a person's profile. If your app uses scope https://www.googleapis.com/auth/
264
- # plus.login, this method is guaranteed to return ageRange and language.
265
- # @param [String] user_id
266
- # The ID of the person to get the profile for. The special value "me" can be
267
- # used to indicate the authenticated user.
268
- # @param [String] fields
269
- # Selector specifying which fields to include in a partial response.
270
- # @param [String] quota_user
271
- # An opaque string that represents a user for quota purposes. Must not exceed 40
272
- # characters.
273
- # @param [String] user_ip
274
- # Deprecated. Please use quotaUser instead.
275
- # @param [Google::Apis::RequestOptions] options
276
- # Request-specific options
277
- #
278
- # @yield [result, err] Result & error if block supplied
279
- # @yieldparam result [Google::Apis::PlusV1::Person] parsed result object
280
- # @yieldparam err [StandardError] error object if request failed
281
- #
282
- # @return [Google::Apis::PlusV1::Person]
283
- #
284
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
285
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
286
- # @raise [Google::Apis::AuthorizationError] Authorization is required
287
- def get_person(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
288
- command = make_simple_command(:get, 'people/{userId}', options)
289
- command.response_representation = Google::Apis::PlusV1::Person::Representation
290
- command.response_class = Google::Apis::PlusV1::Person
291
- command.params['userId'] = user_id unless user_id.nil?
292
- command.query['fields'] = fields unless fields.nil?
293
- command.query['quotaUser'] = quota_user unless quota_user.nil?
294
- command.query['userIp'] = user_ip unless user_ip.nil?
295
- execute_or_queue_command(command, &block)
296
- end
297
-
298
- # List all of the people in the specified collection.
299
- # @param [String] user_id
300
- # Get the collection of people for the person identified. Use "me" to indicate
301
- # the authenticated user.
302
- # @param [String] collection
303
- # The collection of people to list.
304
- # @param [Fixnum] max_results
305
- # The maximum number of people to include in the response, which is used for
306
- # paging. For any response, the actual number returned might be less than the
307
- # specified maxResults.
308
- # @param [String] order_by
309
- # The order to return people in.
310
- # @param [String] page_token
311
- # The continuation token, which is used to page through large result sets. To
312
- # get the next page of results, set this parameter to the value of "
313
- # nextPageToken" from the previous response.
314
- # @param [String] fields
315
- # Selector specifying which fields to include in a partial response.
316
- # @param [String] quota_user
317
- # An opaque string that represents a user for quota purposes. Must not exceed 40
318
- # characters.
319
- # @param [String] user_ip
320
- # Deprecated. Please use quotaUser instead.
321
- # @param [Google::Apis::RequestOptions] options
322
- # Request-specific options
323
- #
324
- # @yield [result, err] Result & error if block supplied
325
- # @yieldparam result [Google::Apis::PlusV1::PeopleFeed] parsed result object
326
- # @yieldparam err [StandardError] error object if request failed
327
- #
328
- # @return [Google::Apis::PlusV1::PeopleFeed]
329
- #
330
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
331
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
332
- # @raise [Google::Apis::AuthorizationError] Authorization is required
333
- def list_people(user_id, collection, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
334
- command = make_simple_command(:get, 'people/{userId}/people/{collection}', options)
335
- command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation
336
- command.response_class = Google::Apis::PlusV1::PeopleFeed
337
- command.params['userId'] = user_id unless user_id.nil?
338
- command.params['collection'] = collection unless collection.nil?
339
- command.query['maxResults'] = max_results unless max_results.nil?
340
- command.query['orderBy'] = order_by unless order_by.nil?
341
- command.query['pageToken'] = page_token unless page_token.nil?
342
- command.query['fields'] = fields unless fields.nil?
343
- command.query['quotaUser'] = quota_user unless quota_user.nil?
344
- command.query['userIp'] = user_ip unless user_ip.nil?
345
- execute_or_queue_command(command, &block)
346
- end
347
-
348
- # Shut down. See https://developers.google.com/+/api-shutdown for more details.
349
- # @param [String] activity_id
350
- # The ID of the activity to get the list of people for.
351
- # @param [String] collection
352
- # The collection of people to list.
353
- # @param [Fixnum] max_results
354
- # The maximum number of people to include in the response, which is used for
355
- # paging. For any response, the actual number returned might be less than the
356
- # specified maxResults.
357
- # @param [String] page_token
358
- # The continuation token, which is used to page through large result sets. To
359
- # get the next page of results, set this parameter to the value of "
360
- # nextPageToken" from the previous response.
361
- # @param [String] fields
362
- # Selector specifying which fields to include in a partial response.
363
- # @param [String] quota_user
364
- # An opaque string that represents a user for quota purposes. Must not exceed 40
365
- # characters.
366
- # @param [String] user_ip
367
- # Deprecated. Please use quotaUser instead.
368
- # @param [Google::Apis::RequestOptions] options
369
- # Request-specific options
370
- #
371
- # @yield [result, err] Result & error if block supplied
372
- # @yieldparam result [Google::Apis::PlusV1::PeopleFeed] parsed result object
373
- # @yieldparam err [StandardError] error object if request failed
374
- #
375
- # @return [Google::Apis::PlusV1::PeopleFeed]
376
- #
377
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
378
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
379
- # @raise [Google::Apis::AuthorizationError] Authorization is required
380
- def list_people_by_activity(activity_id, collection, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
381
- command = make_simple_command(:get, 'activities/{activityId}/people/{collection}', options)
382
- command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation
383
- command.response_class = Google::Apis::PlusV1::PeopleFeed
384
- command.params['activityId'] = activity_id unless activity_id.nil?
385
- command.params['collection'] = collection unless collection.nil?
386
- command.query['maxResults'] = max_results unless max_results.nil?
387
- command.query['pageToken'] = page_token unless page_token.nil?
388
- command.query['fields'] = fields unless fields.nil?
389
- command.query['quotaUser'] = quota_user unless quota_user.nil?
390
- command.query['userIp'] = user_ip unless user_ip.nil?
391
- execute_or_queue_command(command, &block)
392
- end
393
-
394
- # Shut down. See https://developers.google.com/+/api-shutdown for more details.
395
- # @param [String] query
396
- # Specify a query string for full text search of public text in all profiles.
397
- # @param [String] language
398
- # Specify the preferred language to search with. See search language codes for
399
- # available values.
400
- # @param [Fixnum] max_results
401
- # The maximum number of people to include in the response, which is used for
402
- # paging. For any response, the actual number returned might be less than the
403
- # specified maxResults.
404
- # @param [String] page_token
405
- # The continuation token, which is used to page through large result sets. To
406
- # get the next page of results, set this parameter to the value of "
407
- # nextPageToken" from the previous response. This token can be of any length.
408
- # @param [String] fields
409
- # Selector specifying which fields to include in a partial response.
410
- # @param [String] quota_user
411
- # An opaque string that represents a user for quota purposes. Must not exceed 40
412
- # characters.
413
- # @param [String] user_ip
414
- # Deprecated. Please use quotaUser instead.
415
- # @param [Google::Apis::RequestOptions] options
416
- # Request-specific options
417
- #
418
- # @yield [result, err] Result & error if block supplied
419
- # @yieldparam result [Google::Apis::PlusV1::PeopleFeed] parsed result object
420
- # @yieldparam err [StandardError] error object if request failed
421
- #
422
- # @return [Google::Apis::PlusV1::PeopleFeed]
423
- #
424
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
425
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
426
- # @raise [Google::Apis::AuthorizationError] Authorization is required
427
- def search_people(query, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
428
- command = make_simple_command(:get, 'people', options)
429
- command.response_representation = Google::Apis::PlusV1::PeopleFeed::Representation
430
- command.response_class = Google::Apis::PlusV1::PeopleFeed
431
- command.query['language'] = language unless language.nil?
432
- command.query['maxResults'] = max_results unless max_results.nil?
433
- command.query['pageToken'] = page_token unless page_token.nil?
434
- command.query['query'] = query unless query.nil?
435
- command.query['fields'] = fields unless fields.nil?
436
- command.query['quotaUser'] = quota_user unless quota_user.nil?
437
- command.query['userIp'] = user_ip unless user_ip.nil?
438
- execute_or_queue_command(command, &block)
439
- end
440
-
441
- protected
442
-
443
- def apply_command_defaults(command)
444
- command.query['key'] = key unless key.nil?
445
- command.query['quotaUser'] = quota_user unless quota_user.nil?
446
- command.query['userIp'] = user_ip unless user_ip.nil?
447
- end
448
- end
449
- end
450
- end
451
- end
@@ -1,2059 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module SecuritycenterV1p1beta1
24
-
25
- # The configuration used for Asset Discovery runs.
26
- class AssetDiscoveryConfig
27
- include Google::Apis::Core::Hashable
28
-
29
- # The mode to use for filtering asset discovery.
30
- # Corresponds to the JSON property `inclusionMode`
31
- # @return [String]
32
- attr_accessor :inclusion_mode
33
-
34
- # The project ids to use for filtering asset discovery.
35
- # Corresponds to the JSON property `projectIds`
36
- # @return [Array<String>]
37
- attr_accessor :project_ids
38
-
39
- def initialize(**args)
40
- update!(**args)
41
- end
42
-
43
- # Update properties of this object
44
- def update!(**args)
45
- @inclusion_mode = args[:inclusion_mode] if args.key?(:inclusion_mode)
46
- @project_ids = args[:project_ids] if args.key?(:project_ids)
47
- end
48
- end
49
-
50
- # Specifies the audit configuration for a service. The configuration determines
51
- # which permission types are logged, and what identities, if any, are exempted
52
- # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
53
- # are AuditConfigs for both `allServices` and a specific service, the union of
54
- # the two AuditConfigs is used for that service: the log_types specified in each
55
- # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
56
- # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
57
- # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
58
- # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
59
- # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
60
- # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
61
- # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
62
- # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
63
- # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
64
- # DATA_WRITE logging.
65
- class AuditConfig
66
- include Google::Apis::Core::Hashable
67
-
68
- # The configuration for logging of each type of permission.
69
- # Corresponds to the JSON property `auditLogConfigs`
70
- # @return [Array<Google::Apis::SecuritycenterV1p1beta1::AuditLogConfig>]
71
- attr_accessor :audit_log_configs
72
-
73
- # Specifies a service that will be enabled for audit logging. For example, `
74
- # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
75
- # value that covers all services.
76
- # Corresponds to the JSON property `service`
77
- # @return [String]
78
- attr_accessor :service
79
-
80
- def initialize(**args)
81
- update!(**args)
82
- end
83
-
84
- # Update properties of this object
85
- def update!(**args)
86
- @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
87
- @service = args[:service] if args.key?(:service)
88
- end
89
- end
90
-
91
- # Provides the configuration for logging a type of permissions. Example: ` "
92
- # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
93
- # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
94
- # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
95
- # DATA_READ logging.
96
- class AuditLogConfig
97
- include Google::Apis::Core::Hashable
98
-
99
- # Specifies the identities that do not cause logging for this type of permission.
100
- # Follows the same format of Binding.members.
101
- # Corresponds to the JSON property `exemptedMembers`
102
- # @return [Array<String>]
103
- attr_accessor :exempted_members
104
-
105
- # The log type that this config enables.
106
- # Corresponds to the JSON property `logType`
107
- # @return [String]
108
- attr_accessor :log_type
109
-
110
- def initialize(**args)
111
- update!(**args)
112
- end
113
-
114
- # Update properties of this object
115
- def update!(**args)
116
- @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
117
- @log_type = args[:log_type] if args.key?(:log_type)
118
- end
119
- end
120
-
121
- # Associates `members` with a `role`.
122
- class Binding
123
- include Google::Apis::Core::Hashable
124
-
125
- # Represents a textual expression in the Common Expression Language (CEL) syntax.
126
- # CEL is a C-like expression language. The syntax and semantics of CEL are
127
- # documented at https://github.com/google/cel-spec. Example (Comparison): title:
128
- # "Summary size limit" description: "Determines if a summary is less than 100
129
- # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
130
- # Requestor is owner" description: "Determines if requestor is the document
131
- # owner" expression: "document.owner == request.auth.claims.email" Example (
132
- # Logic): title: "Public documents" description: "Determine whether the document
133
- # should be publicly visible" expression: "document.type != 'private' &&
134
- # document.type != 'internal'" Example (Data Manipulation): title: "Notification
135
- # string" description: "Create a notification string with a timestamp."
136
- # expression: "'New message received at ' + string(document.create_time)" The
137
- # exact variables and functions that may be referenced within an expression are
138
- # determined by the service that evaluates it. See the service documentation for
139
- # additional information.
140
- # Corresponds to the JSON property `condition`
141
- # @return [Google::Apis::SecuritycenterV1p1beta1::Expr]
142
- attr_accessor :condition
143
-
144
- # Specifies the identities requesting access for a Cloud Platform resource. `
145
- # members` can have the following values: * `allUsers`: A special identifier
146
- # that represents anyone who is on the internet; with or without a Google
147
- # account. * `allAuthenticatedUsers`: A special identifier that represents
148
- # anyone who is authenticated with a Google account or a service account. * `
149
- # user:`emailid``: An email address that represents a specific Google account.
150
- # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
151
- # address that represents a service account. For example, `my-other-app@appspot.
152
- # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
153
- # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
154
- # `uniqueid``: An email address (plus unique identifier) representing a user
155
- # that has been recently deleted. For example, `alice@example.com?uid=
156
- # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
157
- # emailid`` and the recovered user retains the role in the binding. * `deleted:
158
- # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
159
- # identifier) representing a service account that has been recently deleted. For
160
- # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
161
- # If the service account is undeleted, this value reverts to `serviceAccount:`
162
- # emailid`` and the undeleted service account retains the role in the binding. *
163
- # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
164
- # identifier) representing a Google group that has been recently deleted. For
165
- # example, `admins@example.com?uid=123456789012345678901`. If the group is
166
- # recovered, this value reverts to `group:`emailid`` and the recovered group
167
- # retains the role in the binding. * `domain:`domain``: The G Suite domain (
168
- # primary) that represents all the users of that domain. For example, `google.
169
- # com` or `example.com`.
170
- # Corresponds to the JSON property `members`
171
- # @return [Array<String>]
172
- attr_accessor :members
173
-
174
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
175
- # , or `roles/owner`.
176
- # Corresponds to the JSON property `role`
177
- # @return [String]
178
- attr_accessor :role
179
-
180
- def initialize(**args)
181
- update!(**args)
182
- end
183
-
184
- # Update properties of this object
185
- def update!(**args)
186
- @condition = args[:condition] if args.key?(:condition)
187
- @members = args[:members] if args.key?(:members)
188
- @role = args[:role] if args.key?(:role)
189
- end
190
- end
191
-
192
- # A generic empty message that you can re-use to avoid defining duplicated empty
193
- # messages in your APIs. A typical example is to use it as the request or the
194
- # response type of an API method. For instance: service Foo ` rpc Bar(google.
195
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
196
- # `Empty` is empty JSON object ````.
197
- class Empty
198
- include Google::Apis::Core::Hashable
199
-
200
- def initialize(**args)
201
- update!(**args)
202
- end
203
-
204
- # Update properties of this object
205
- def update!(**args)
206
- end
207
- end
208
-
209
- # Represents a textual expression in the Common Expression Language (CEL) syntax.
210
- # CEL is a C-like expression language. The syntax and semantics of CEL are
211
- # documented at https://github.com/google/cel-spec. Example (Comparison): title:
212
- # "Summary size limit" description: "Determines if a summary is less than 100
213
- # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
214
- # Requestor is owner" description: "Determines if requestor is the document
215
- # owner" expression: "document.owner == request.auth.claims.email" Example (
216
- # Logic): title: "Public documents" description: "Determine whether the document
217
- # should be publicly visible" expression: "document.type != 'private' &&
218
- # document.type != 'internal'" Example (Data Manipulation): title: "Notification
219
- # string" description: "Create a notification string with a timestamp."
220
- # expression: "'New message received at ' + string(document.create_time)" The
221
- # exact variables and functions that may be referenced within an expression are
222
- # determined by the service that evaluates it. See the service documentation for
223
- # additional information.
224
- class Expr
225
- include Google::Apis::Core::Hashable
226
-
227
- # Optional. Description of the expression. This is a longer text which describes
228
- # the expression, e.g. when hovered over it in a UI.
229
- # Corresponds to the JSON property `description`
230
- # @return [String]
231
- attr_accessor :description
232
-
233
- # Textual representation of an expression in Common Expression Language syntax.
234
- # Corresponds to the JSON property `expression`
235
- # @return [String]
236
- attr_accessor :expression
237
-
238
- # Optional. String indicating the location of the expression for error reporting,
239
- # e.g. a file name and a position in the file.
240
- # Corresponds to the JSON property `location`
241
- # @return [String]
242
- attr_accessor :location
243
-
244
- # Optional. Title for the expression, i.e. a short string describing its purpose.
245
- # This can be used e.g. in UIs which allow to enter the expression.
246
- # Corresponds to the JSON property `title`
247
- # @return [String]
248
- attr_accessor :title
249
-
250
- def initialize(**args)
251
- update!(**args)
252
- end
253
-
254
- # Update properties of this object
255
- def update!(**args)
256
- @description = args[:description] if args.key?(:description)
257
- @expression = args[:expression] if args.key?(:expression)
258
- @location = args[:location] if args.key?(:location)
259
- @title = args[:title] if args.key?(:title)
260
- end
261
- end
262
-
263
- # Security Command Center finding. A finding is a record of assessment data like
264
- # security, risk, health, or privacy, that is ingested into Security Command
265
- # Center for presentation, notification, analysis, policy testing, and
266
- # enforcement. For example, a cross-site scripting (XSS) vulnerability in an App
267
- # Engine application is a finding.
268
- class Finding
269
- include Google::Apis::Core::Hashable
270
-
271
- # The additional taxonomy group within findings from a given source. This field
272
- # is immutable after creation time. Example: "XSS_FLASH_INJECTION"
273
- # Corresponds to the JSON property `category`
274
- # @return [String]
275
- attr_accessor :category
276
-
277
- # The time at which the finding was created in Security Command Center.
278
- # Corresponds to the JSON property `createTime`
279
- # @return [String]
280
- attr_accessor :create_time
281
-
282
- # The time at which the event took place. For example, if the finding represents
283
- # an open firewall it would capture the time the detector believes the firewall
284
- # became open. The accuracy is determined by the detector.
285
- # Corresponds to the JSON property `eventTime`
286
- # @return [String]
287
- attr_accessor :event_time
288
-
289
- # The URI that, if available, points to a web page outside of Security Command
290
- # Center where additional information about the finding can be found. This field
291
- # is guaranteed to be either empty or a well formed URL.
292
- # Corresponds to the JSON property `externalUri`
293
- # @return [String]
294
- attr_accessor :external_uri
295
-
296
- # The relative resource name of this finding. See: https://cloud.google.com/apis/
297
- # design/resource_names#relative_resource_name Example: "organizations/`
298
- # organization_id`/sources/`source_id`/findings/`finding_id`"
299
- # Corresponds to the JSON property `name`
300
- # @return [String]
301
- attr_accessor :name
302
-
303
- # The relative resource name of the source the finding belongs to. See: https://
304
- # cloud.google.com/apis/design/resource_names#relative_resource_name This field
305
- # is immutable after creation time. For example: "organizations/`organization_id`
306
- # /sources/`source_id`"
307
- # Corresponds to the JSON property `parent`
308
- # @return [String]
309
- attr_accessor :parent
310
-
311
- # For findings on Google Cloud resources, the full resource name of the Google
312
- # Cloud resource this finding is for. See: https://cloud.google.com/apis/design/
313
- # resource_names#full_resource_name When the finding is for a non-Google Cloud
314
- # resource, the resourceName can be a customer or partner defined string. This
315
- # field is immutable after creation time.
316
- # Corresponds to the JSON property `resourceName`
317
- # @return [String]
318
- attr_accessor :resource_name
319
-
320
- # User specified security marks that are attached to the parent Security Command
321
- # Center resource. Security marks are scoped within a Security Command Center
322
- # organization -- they can be modified and viewed by all users who have proper
323
- # permissions on the organization.
324
- # Corresponds to the JSON property `securityMarks`
325
- # @return [Google::Apis::SecuritycenterV1p1beta1::SecurityMarks]
326
- attr_accessor :security_marks
327
-
328
- # Source specific properties. These properties are managed by the source that
329
- # writes the finding. The key names in the source_properties map must be between
330
- # 1 and 255 characters, and must start with a letter and contain alphanumeric
331
- # characters or underscores only.
332
- # Corresponds to the JSON property `sourceProperties`
333
- # @return [Hash<String,Object>]
334
- attr_accessor :source_properties
335
-
336
- # The state of the finding.
337
- # Corresponds to the JSON property `state`
338
- # @return [String]
339
- attr_accessor :state
340
-
341
- def initialize(**args)
342
- update!(**args)
343
- end
344
-
345
- # Update properties of this object
346
- def update!(**args)
347
- @category = args[:category] if args.key?(:category)
348
- @create_time = args[:create_time] if args.key?(:create_time)
349
- @event_time = args[:event_time] if args.key?(:event_time)
350
- @external_uri = args[:external_uri] if args.key?(:external_uri)
351
- @name = args[:name] if args.key?(:name)
352
- @parent = args[:parent] if args.key?(:parent)
353
- @resource_name = args[:resource_name] if args.key?(:resource_name)
354
- @security_marks = args[:security_marks] if args.key?(:security_marks)
355
- @source_properties = args[:source_properties] if args.key?(:source_properties)
356
- @state = args[:state] if args.key?(:state)
357
- end
358
- end
359
-
360
- # Request message for `GetIamPolicy` method.
361
- class GetIamPolicyRequest
362
- include Google::Apis::Core::Hashable
363
-
364
- # Encapsulates settings provided to GetIamPolicy.
365
- # Corresponds to the JSON property `options`
366
- # @return [Google::Apis::SecuritycenterV1p1beta1::GetPolicyOptions]
367
- attr_accessor :options
368
-
369
- def initialize(**args)
370
- update!(**args)
371
- end
372
-
373
- # Update properties of this object
374
- def update!(**args)
375
- @options = args[:options] if args.key?(:options)
376
- end
377
- end
378
-
379
- # Encapsulates settings provided to GetIamPolicy.
380
- class GetPolicyOptions
381
- include Google::Apis::Core::Hashable
382
-
383
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
384
- # 3. Requests specifying an invalid value will be rejected. Requests for
385
- # policies with any conditional bindings must specify version 3. Policies
386
- # without any conditional bindings may specify any valid value or leave the
387
- # field unset. To learn which resources support conditions in their IAM policies,
388
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
389
- # resource-policies).
390
- # Corresponds to the JSON property `requestedPolicyVersion`
391
- # @return [Fixnum]
392
- attr_accessor :requested_policy_version
393
-
394
- def initialize(**args)
395
- update!(**args)
396
- end
397
-
398
- # Update properties of this object
399
- def update!(**args)
400
- @requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
401
- end
402
- end
403
-
404
- # Cloud SCC's Notification
405
- class GoogleCloudSecuritycenterV1NotificationMessage
406
- include Google::Apis::Core::Hashable
407
-
408
- # Security Command Center finding. A finding is a record of assessment data like
409
- # security, risk, health, or privacy, that is ingested into Security Command
410
- # Center for presentation, notification, analysis, policy testing, and
411
- # enforcement. For example, a cross-site scripting (XSS) vulnerability in an App
412
- # Engine application is a finding.
413
- # Corresponds to the JSON property `finding`
414
- # @return [Google::Apis::SecuritycenterV1p1beta1::Finding]
415
- attr_accessor :finding
416
-
417
- # Name of the notification config that generated current notification.
418
- # Corresponds to the JSON property `notificationConfigName`
419
- # @return [String]
420
- attr_accessor :notification_config_name
421
-
422
- # Information related to the Google Cloud resource.
423
- # Corresponds to the JSON property `resource`
424
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1Resource]
425
- attr_accessor :resource
426
-
427
- def initialize(**args)
428
- update!(**args)
429
- end
430
-
431
- # Update properties of this object
432
- def update!(**args)
433
- @finding = args[:finding] if args.key?(:finding)
434
- @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
435
- @resource = args[:resource] if args.key?(:resource)
436
- end
437
- end
438
-
439
- # Information related to the Google Cloud resource.
440
- class GoogleCloudSecuritycenterV1Resource
441
- include Google::Apis::Core::Hashable
442
-
443
- # The full resource name of the resource. See: https://cloud.google.com/apis/
444
- # design/resource_names#full_resource_name
445
- # Corresponds to the JSON property `name`
446
- # @return [String]
447
- attr_accessor :name
448
-
449
- # The full resource name of resource's parent.
450
- # Corresponds to the JSON property `parent`
451
- # @return [String]
452
- attr_accessor :parent
453
-
454
- # The human readable name of resource's parent.
455
- # Corresponds to the JSON property `parentDisplayName`
456
- # @return [String]
457
- attr_accessor :parent_display_name
458
-
459
- # The full resource name of project that the resource belongs to.
460
- # Corresponds to the JSON property `project`
461
- # @return [String]
462
- attr_accessor :project
463
-
464
- # The human readable name of project that the resource belongs to.
465
- # Corresponds to the JSON property `projectDisplayName`
466
- # @return [String]
467
- attr_accessor :project_display_name
468
-
469
- def initialize(**args)
470
- update!(**args)
471
- end
472
-
473
- # Update properties of this object
474
- def update!(**args)
475
- @name = args[:name] if args.key?(:name)
476
- @parent = args[:parent] if args.key?(:parent)
477
- @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
478
- @project = args[:project] if args.key?(:project)
479
- @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
480
- end
481
- end
482
-
483
- # Response of asset discovery run
484
- class GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse
485
- include Google::Apis::Core::Hashable
486
-
487
- # The duration between asset discovery run start and end
488
- # Corresponds to the JSON property `duration`
489
- # @return [String]
490
- attr_accessor :duration
491
-
492
- # The state of an asset discovery run.
493
- # Corresponds to the JSON property `state`
494
- # @return [String]
495
- attr_accessor :state
496
-
497
- def initialize(**args)
498
- update!(**args)
499
- end
500
-
501
- # Update properties of this object
502
- def update!(**args)
503
- @duration = args[:duration] if args.key?(:duration)
504
- @state = args[:state] if args.key?(:state)
505
- end
506
- end
507
-
508
- # Response of asset discovery run
509
- class GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse
510
- include Google::Apis::Core::Hashable
511
-
512
- # The duration between asset discovery run start and end
513
- # Corresponds to the JSON property `duration`
514
- # @return [String]
515
- attr_accessor :duration
516
-
517
- # The state of an asset discovery run.
518
- # Corresponds to the JSON property `state`
519
- # @return [String]
520
- attr_accessor :state
521
-
522
- def initialize(**args)
523
- update!(**args)
524
- end
525
-
526
- # Update properties of this object
527
- def update!(**args)
528
- @duration = args[:duration] if args.key?(:duration)
529
- @state = args[:state] if args.key?(:state)
530
- end
531
- end
532
-
533
- # Security Command Center representation of a Google Cloud resource. The Asset
534
- # is a Security Command Center resource that captures information about a single
535
- # Google Cloud resource. All modifications to an Asset are only within the
536
- # context of Security Command Center and don't affect the referenced Google
537
- # Cloud resource.
538
- class GoogleCloudSecuritycenterV1p1beta1Asset
539
- include Google::Apis::Core::Hashable
540
-
541
- # The time at which the asset was created in Security Command Center.
542
- # Corresponds to the JSON property `createTime`
543
- # @return [String]
544
- attr_accessor :create_time
545
-
546
- # Cloud IAM Policy information associated with the Google Cloud resource
547
- # described by the Security Command Center asset. This information is managed
548
- # and defined by the Google Cloud resource and cannot be modified by the user.
549
- # Corresponds to the JSON property `iamPolicy`
550
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1IamPolicy]
551
- attr_accessor :iam_policy
552
-
553
- # The relative resource name of this asset. See: https://cloud.google.com/apis/
554
- # design/resource_names#relative_resource_name Example: "organizations/`
555
- # organization_id`/assets/`asset_id`".
556
- # Corresponds to the JSON property `name`
557
- # @return [String]
558
- attr_accessor :name
559
-
560
- # Resource managed properties. These properties are managed and defined by the
561
- # Google Cloud resource and cannot be modified by the user.
562
- # Corresponds to the JSON property `resourceProperties`
563
- # @return [Hash<String,Object>]
564
- attr_accessor :resource_properties
565
-
566
- # Security Command Center managed properties. These properties are managed by
567
- # Security Command Center and cannot be modified by the user.
568
- # Corresponds to the JSON property `securityCenterProperties`
569
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties]
570
- attr_accessor :security_center_properties
571
-
572
- # User specified security marks that are attached to the parent Security Command
573
- # Center resource. Security marks are scoped within a Security Command Center
574
- # organization -- they can be modified and viewed by all users who have proper
575
- # permissions on the organization.
576
- # Corresponds to the JSON property `securityMarks`
577
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
578
- attr_accessor :security_marks
579
-
580
- # The time at which the asset was last updated, added, or deleted in Cloud SCC.
581
- # Corresponds to the JSON property `updateTime`
582
- # @return [String]
583
- attr_accessor :update_time
584
-
585
- def initialize(**args)
586
- update!(**args)
587
- end
588
-
589
- # Update properties of this object
590
- def update!(**args)
591
- @create_time = args[:create_time] if args.key?(:create_time)
592
- @iam_policy = args[:iam_policy] if args.key?(:iam_policy)
593
- @name = args[:name] if args.key?(:name)
594
- @resource_properties = args[:resource_properties] if args.key?(:resource_properties)
595
- @security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties)
596
- @security_marks = args[:security_marks] if args.key?(:security_marks)
597
- @update_time = args[:update_time] if args.key?(:update_time)
598
- end
599
- end
600
-
601
- # Security Command Center finding. A finding is a record of assessment data (
602
- # security, risk, health or privacy) ingested into Security Command Center for
603
- # presentation, notification, analysis, policy testing, and enforcement. For
604
- # example, an XSS vulnerability in an App Engine application is a finding.
605
- class GoogleCloudSecuritycenterV1p1beta1Finding
606
- include Google::Apis::Core::Hashable
607
-
608
- # The additional taxonomy group within findings from a given source. This field
609
- # is immutable after creation time. Example: "XSS_FLASH_INJECTION"
610
- # Corresponds to the JSON property `category`
611
- # @return [String]
612
- attr_accessor :category
613
-
614
- # The time at which the finding was created in Security Command Center.
615
- # Corresponds to the JSON property `createTime`
616
- # @return [String]
617
- attr_accessor :create_time
618
-
619
- # The time at which the event took place. For example, if the finding represents
620
- # an open firewall it would capture the time the detector believes the firewall
621
- # became open. The accuracy is determined by the detector.
622
- # Corresponds to the JSON property `eventTime`
623
- # @return [String]
624
- attr_accessor :event_time
625
-
626
- # The URI that, if available, points to a web page outside of Security Command
627
- # Center where additional information about the finding can be found. This field
628
- # is guaranteed to be either empty or a well formed URL.
629
- # Corresponds to the JSON property `externalUri`
630
- # @return [String]
631
- attr_accessor :external_uri
632
-
633
- # The relative resource name of this finding. See: https://cloud.google.com/apis/
634
- # design/resource_names#relative_resource_name Example: "organizations/`
635
- # organization_id`/sources/`source_id`/findings/`finding_id`"
636
- # Corresponds to the JSON property `name`
637
- # @return [String]
638
- attr_accessor :name
639
-
640
- # The relative resource name of the source the finding belongs to. See: https://
641
- # cloud.google.com/apis/design/resource_names#relative_resource_name This field
642
- # is immutable after creation time. For example: "organizations/`organization_id`
643
- # /sources/`source_id`"
644
- # Corresponds to the JSON property `parent`
645
- # @return [String]
646
- attr_accessor :parent
647
-
648
- # For findings on Google Cloud resources, the full resource name of the Google
649
- # Cloud resource this finding is for. See: https://cloud.google.com/apis/design/
650
- # resource_names#full_resource_name When the finding is for a non-Google Cloud
651
- # resource, the resourceName can be a customer or partner defined string. This
652
- # field is immutable after creation time.
653
- # Corresponds to the JSON property `resourceName`
654
- # @return [String]
655
- attr_accessor :resource_name
656
-
657
- # User specified security marks that are attached to the parent Security Command
658
- # Center resource. Security marks are scoped within a Security Command Center
659
- # organization -- they can be modified and viewed by all users who have proper
660
- # permissions on the organization.
661
- # Corresponds to the JSON property `securityMarks`
662
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
663
- attr_accessor :security_marks
664
-
665
- # Source specific properties. These properties are managed by the source that
666
- # writes the finding. The key names in the source_properties map must be between
667
- # 1 and 255 characters, and must start with a letter and contain alphanumeric
668
- # characters or underscores only.
669
- # Corresponds to the JSON property `sourceProperties`
670
- # @return [Hash<String,Object>]
671
- attr_accessor :source_properties
672
-
673
- # The state of the finding.
674
- # Corresponds to the JSON property `state`
675
- # @return [String]
676
- attr_accessor :state
677
-
678
- def initialize(**args)
679
- update!(**args)
680
- end
681
-
682
- # Update properties of this object
683
- def update!(**args)
684
- @category = args[:category] if args.key?(:category)
685
- @create_time = args[:create_time] if args.key?(:create_time)
686
- @event_time = args[:event_time] if args.key?(:event_time)
687
- @external_uri = args[:external_uri] if args.key?(:external_uri)
688
- @name = args[:name] if args.key?(:name)
689
- @parent = args[:parent] if args.key?(:parent)
690
- @resource_name = args[:resource_name] if args.key?(:resource_name)
691
- @security_marks = args[:security_marks] if args.key?(:security_marks)
692
- @source_properties = args[:source_properties] if args.key?(:source_properties)
693
- @state = args[:state] if args.key?(:state)
694
- end
695
- end
696
-
697
- # Cloud IAM Policy information associated with the Google Cloud resource
698
- # described by the Security Command Center asset. This information is managed
699
- # and defined by the Google Cloud resource and cannot be modified by the user.
700
- class GoogleCloudSecuritycenterV1p1beta1IamPolicy
701
- include Google::Apis::Core::Hashable
702
-
703
- # The JSON representation of the Policy associated with the asset. See https://
704
- # cloud.google.com/iam/docs/reference/rest/v1/Policy for format details.
705
- # Corresponds to the JSON property `policyBlob`
706
- # @return [String]
707
- attr_accessor :policy_blob
708
-
709
- def initialize(**args)
710
- update!(**args)
711
- end
712
-
713
- # Update properties of this object
714
- def update!(**args)
715
- @policy_blob = args[:policy_blob] if args.key?(:policy_blob)
716
- end
717
- end
718
-
719
- # Security Command Center's Notification
720
- class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
721
- include Google::Apis::Core::Hashable
722
-
723
- # Security Command Center finding. A finding is a record of assessment data (
724
- # security, risk, health or privacy) ingested into Security Command Center for
725
- # presentation, notification, analysis, policy testing, and enforcement. For
726
- # example, an XSS vulnerability in an App Engine application is a finding.
727
- # Corresponds to the JSON property `finding`
728
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding]
729
- attr_accessor :finding
730
-
731
- # Name of the notification config that generated current notification.
732
- # Corresponds to the JSON property `notificationConfigName`
733
- # @return [String]
734
- attr_accessor :notification_config_name
735
-
736
- # Information related to the Google Cloud resource.
737
- # Corresponds to the JSON property `resource`
738
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Resource]
739
- attr_accessor :resource
740
-
741
- # Wrapper over asset object that also captures the state change for the asset e.
742
- # g. if it was a newly created asset vs updated or deleted asset.
743
- # Corresponds to the JSON property `temporalAsset`
744
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1TemporalAsset]
745
- attr_accessor :temporal_asset
746
-
747
- def initialize(**args)
748
- update!(**args)
749
- end
750
-
751
- # Update properties of this object
752
- def update!(**args)
753
- @finding = args[:finding] if args.key?(:finding)
754
- @notification_config_name = args[:notification_config_name] if args.key?(:notification_config_name)
755
- @resource = args[:resource] if args.key?(:resource)
756
- @temporal_asset = args[:temporal_asset] if args.key?(:temporal_asset)
757
- end
758
- end
759
-
760
- # Information related to the Google Cloud resource.
761
- class GoogleCloudSecuritycenterV1p1beta1Resource
762
- include Google::Apis::Core::Hashable
763
-
764
- # The full resource name of the resource. See: https://cloud.google.com/apis/
765
- # design/resource_names#full_resource_name
766
- # Corresponds to the JSON property `name`
767
- # @return [String]
768
- attr_accessor :name
769
-
770
- # The full resource name of resource's parent.
771
- # Corresponds to the JSON property `parent`
772
- # @return [String]
773
- attr_accessor :parent
774
-
775
- # The human readable name of resource's parent.
776
- # Corresponds to the JSON property `parentDisplayName`
777
- # @return [String]
778
- attr_accessor :parent_display_name
779
-
780
- # The full resource name of project that the resource belongs to.
781
- # Corresponds to the JSON property `project`
782
- # @return [String]
783
- attr_accessor :project
784
-
785
- # The human readable name of project that the resource belongs to.
786
- # Corresponds to the JSON property `projectDisplayName`
787
- # @return [String]
788
- attr_accessor :project_display_name
789
-
790
- def initialize(**args)
791
- update!(**args)
792
- end
793
-
794
- # Update properties of this object
795
- def update!(**args)
796
- @name = args[:name] if args.key?(:name)
797
- @parent = args[:parent] if args.key?(:parent)
798
- @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
799
- @project = args[:project] if args.key?(:project)
800
- @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
801
- end
802
- end
803
-
804
- # Response of asset discovery run
805
- class GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse
806
- include Google::Apis::Core::Hashable
807
-
808
- # The duration between asset discovery run start and end
809
- # Corresponds to the JSON property `duration`
810
- # @return [String]
811
- attr_accessor :duration
812
-
813
- # The state of an asset discovery run.
814
- # Corresponds to the JSON property `state`
815
- # @return [String]
816
- attr_accessor :state
817
-
818
- def initialize(**args)
819
- update!(**args)
820
- end
821
-
822
- # Update properties of this object
823
- def update!(**args)
824
- @duration = args[:duration] if args.key?(:duration)
825
- @state = args[:state] if args.key?(:state)
826
- end
827
- end
828
-
829
- # Security Command Center managed properties. These properties are managed by
830
- # Security Command Center and cannot be modified by the user.
831
- class GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties
832
- include Google::Apis::Core::Hashable
833
-
834
- # The user defined display name for this resource.
835
- # Corresponds to the JSON property `resourceDisplayName`
836
- # @return [String]
837
- attr_accessor :resource_display_name
838
-
839
- # The full resource name of the Google Cloud resource this asset represents.
840
- # This field is immutable after create time. See: https://cloud.google.com/apis/
841
- # design/resource_names#full_resource_name
842
- # Corresponds to the JSON property `resourceName`
843
- # @return [String]
844
- attr_accessor :resource_name
845
-
846
- # Owners of the Google Cloud resource.
847
- # Corresponds to the JSON property `resourceOwners`
848
- # @return [Array<String>]
849
- attr_accessor :resource_owners
850
-
851
- # The full resource name of the immediate parent of the resource. See: https://
852
- # cloud.google.com/apis/design/resource_names#full_resource_name
853
- # Corresponds to the JSON property `resourceParent`
854
- # @return [String]
855
- attr_accessor :resource_parent
856
-
857
- # The user defined display name for the parent of this resource.
858
- # Corresponds to the JSON property `resourceParentDisplayName`
859
- # @return [String]
860
- attr_accessor :resource_parent_display_name
861
-
862
- # The full resource name of the project the resource belongs to. See: https://
863
- # cloud.google.com/apis/design/resource_names#full_resource_name
864
- # Corresponds to the JSON property `resourceProject`
865
- # @return [String]
866
- attr_accessor :resource_project
867
-
868
- # The user defined display name for the project of this resource.
869
- # Corresponds to the JSON property `resourceProjectDisplayName`
870
- # @return [String]
871
- attr_accessor :resource_project_display_name
872
-
873
- # The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT,
874
- # and ORGANIZATION. This is a case insensitive field defined by Security Command
875
- # Center and/or the producer of the resource and is immutable after create time.
876
- # Corresponds to the JSON property `resourceType`
877
- # @return [String]
878
- attr_accessor :resource_type
879
-
880
- def initialize(**args)
881
- update!(**args)
882
- end
883
-
884
- # Update properties of this object
885
- def update!(**args)
886
- @resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)
887
- @resource_name = args[:resource_name] if args.key?(:resource_name)
888
- @resource_owners = args[:resource_owners] if args.key?(:resource_owners)
889
- @resource_parent = args[:resource_parent] if args.key?(:resource_parent)
890
- @resource_parent_display_name = args[:resource_parent_display_name] if args.key?(:resource_parent_display_name)
891
- @resource_project = args[:resource_project] if args.key?(:resource_project)
892
- @resource_project_display_name = args[:resource_project_display_name] if args.key?(:resource_project_display_name)
893
- @resource_type = args[:resource_type] if args.key?(:resource_type)
894
- end
895
- end
896
-
897
- # User specified security marks that are attached to the parent Security Command
898
- # Center resource. Security marks are scoped within a Security Command Center
899
- # organization -- they can be modified and viewed by all users who have proper
900
- # permissions on the organization.
901
- class GoogleCloudSecuritycenterV1p1beta1SecurityMarks
902
- include Google::Apis::Core::Hashable
903
-
904
- # Mutable user specified security marks belonging to the parent resource.
905
- # Constraints are as follows: * Keys and values are treated as case insensitive *
906
- # Keys must be between 1 - 256 characters (inclusive) * Keys must be letters,
907
- # numbers, underscores, or dashes * Values have leading and trailing whitespace
908
- # trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
909
- # Corresponds to the JSON property `marks`
910
- # @return [Hash<String,String>]
911
- attr_accessor :marks
912
-
913
- # The relative resource name of the SecurityMarks. See: https://cloud.google.com/
914
- # apis/design/resource_names#relative_resource_name Examples: "organizations/`
915
- # organization_id`/assets/`asset_id`/securityMarks" "organizations/`
916
- # organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks".
917
- # Corresponds to the JSON property `name`
918
- # @return [String]
919
- attr_accessor :name
920
-
921
- def initialize(**args)
922
- update!(**args)
923
- end
924
-
925
- # Update properties of this object
926
- def update!(**args)
927
- @marks = args[:marks] if args.key?(:marks)
928
- @name = args[:name] if args.key?(:name)
929
- end
930
- end
931
-
932
- # Wrapper over asset object that also captures the state change for the asset e.
933
- # g. if it was a newly created asset vs updated or deleted asset.
934
- class GoogleCloudSecuritycenterV1p1beta1TemporalAsset
935
- include Google::Apis::Core::Hashable
936
-
937
- # Security Command Center representation of a Google Cloud resource. The Asset
938
- # is a Security Command Center resource that captures information about a single
939
- # Google Cloud resource. All modifications to an Asset are only within the
940
- # context of Security Command Center and don't affect the referenced Google
941
- # Cloud resource.
942
- # Corresponds to the JSON property `asset`
943
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset]
944
- attr_accessor :asset
945
-
946
- # Represents if the asset was created/updated/deleted.
947
- # Corresponds to the JSON property `changeType`
948
- # @return [String]
949
- attr_accessor :change_type
950
-
951
- def initialize(**args)
952
- update!(**args)
953
- end
954
-
955
- # Update properties of this object
956
- def update!(**args)
957
- @asset = args[:asset] if args.key?(:asset)
958
- @change_type = args[:change_type] if args.key?(:change_type)
959
- end
960
- end
961
-
962
- # Request message for grouping by assets.
963
- class GroupAssetsRequest
964
- include Google::Apis::Core::Hashable
965
-
966
- # When compare_duration is set, the GroupResult's "state_change" property is
967
- # updated to indicate whether the asset was added, removed, or remained present
968
- # during the compare_duration period of time that precedes the read_time. This
969
- # is the time between (read_time - compare_duration) and read_time. The state
970
- # change value is derived based on the presence of the asset at the two points
971
- # in time. Intermediate state changes between the two times don't affect the
972
- # result. For example, the results aren't affected if the asset is removed and
973
- # re-created again. Possible "state_change" values when compare_duration is
974
- # specified: * "ADDED": indicates that the asset was not present at the start of
975
- # compare_duration, but present at reference_time. * "REMOVED": indicates that
976
- # the asset was present at the start of compare_duration, but not present at
977
- # reference_time. * "ACTIVE": indicates that the asset was present at both the
978
- # start and the end of the time period defined by compare_duration and
979
- # reference_time. If compare_duration is not specified, then the only possible
980
- # state_change is "UNUSED", which will be the state_change set for all assets
981
- # present at read_time. If this field is set then `state_change` must be a
982
- # specified field in `group_by`.
983
- # Corresponds to the JSON property `compareDuration`
984
- # @return [String]
985
- attr_accessor :compare_duration
986
-
987
- # Expression that defines the filter to apply across assets. The expression is a
988
- # list of zero or more restrictions combined via logical operators `AND` and `OR`
989
- # . Parentheses are supported, and `OR` has higher precedence than `AND`.
990
- # Restrictions have the form ` ` and may have a `-` character in front of them
991
- # to indicate negation. The fields map to those defined in the Asset resource.
992
- # Examples include: * name * security_center_properties.resource_name *
993
- # resource_properties.a_property * security_marks.marks.marka The supported
994
- # operators are: * `=` for all value types. * `>`, `<`, `>=`, `<=` for integer
995
- # values. * `:`, meaning substring matching, for strings. The supported value
996
- # types are: * string literals in quotes. * integer literals without quotes. *
997
- # boolean literals `true` and `false` without quotes. The following field and
998
- # operator combinations are supported: * name: `=` * update_time: `=`, `>`, `<`,
999
- # `>=`, `<=` Usage: This should be milliseconds since epoch or an RFC3339 string.
1000
- # Examples: `update_time = "2019-06-10T16:07:18-07:00"` `update_time =
1001
- # 1560208038000` * create_time: `=`, `>`, `<`, `>=`, `<=` Usage: This should be
1002
- # milliseconds since epoch or an RFC3339 string. Examples: `create_time = "2019-
1003
- # 06-10T16:07:18-07:00"` `create_time = 1560208038000` * iam_policy.policy_blob:
1004
- # `=`, `:` * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` *
1005
- # security_marks.marks: `=`, `:` * security_center_properties.resource_name: `=`,
1006
- # `:` * security_center_properties.resource_name_display_name: `=`, `:` *
1007
- # security_center_properties.resource_type: `=`, `:` *
1008
- # security_center_properties.resource_parent: `=`, `:` *
1009
- # security_center_properties.resource_parent_display_name: `=`, `:` *
1010
- # security_center_properties.resource_project: `=`, `:` *
1011
- # security_center_properties.resource_project_display_name: `=`, `:` *
1012
- # security_center_properties.resource_owners: `=`, `:` For example, `
1013
- # resource_properties.size = 100` is a valid filter string. Use a partial match
1014
- # on the empty string to filter based on a property existing: `
1015
- # resource_properties.my_property : ""` Use a negated partial match on the empty
1016
- # string to filter based on a property not existing: `-resource_properties.
1017
- # my_property : ""`
1018
- # Corresponds to the JSON property `filter`
1019
- # @return [String]
1020
- attr_accessor :filter
1021
-
1022
- # Required. Expression that defines what assets fields to use for grouping. The
1023
- # string value should follow SQL syntax: comma separated list of fields. For
1024
- # example: "security_center_properties.resource_project,
1025
- # security_center_properties.project". The following fields are supported when
1026
- # compare_duration is not set: * security_center_properties.resource_project *
1027
- # security_center_properties.resource_project_display_name *
1028
- # security_center_properties.resource_type * security_center_properties.
1029
- # resource_parent * security_center_properties.resource_parent_display_name The
1030
- # following fields are supported when compare_duration is set: *
1031
- # security_center_properties.resource_type * security_center_properties.
1032
- # resource_project_display_name * security_center_properties.
1033
- # resource_parent_display_name
1034
- # Corresponds to the JSON property `groupBy`
1035
- # @return [String]
1036
- attr_accessor :group_by
1037
-
1038
- # The maximum number of results to return in a single response. Default is 10,
1039
- # minimum is 1, maximum is 1000.
1040
- # Corresponds to the JSON property `pageSize`
1041
- # @return [Fixnum]
1042
- attr_accessor :page_size
1043
-
1044
- # The value returned by the last `GroupAssetsResponse`; indicates that this is a
1045
- # continuation of a prior `GroupAssets` call, and that the system should return
1046
- # the next page of data.
1047
- # Corresponds to the JSON property `pageToken`
1048
- # @return [String]
1049
- attr_accessor :page_token
1050
-
1051
- # Time used as a reference point when filtering assets. The filter is limited to
1052
- # assets existing at the supplied time and their values are those at that
1053
- # specific time. Absence of this field will default to the API's version of NOW.
1054
- # Corresponds to the JSON property `readTime`
1055
- # @return [String]
1056
- attr_accessor :read_time
1057
-
1058
- def initialize(**args)
1059
- update!(**args)
1060
- end
1061
-
1062
- # Update properties of this object
1063
- def update!(**args)
1064
- @compare_duration = args[:compare_duration] if args.key?(:compare_duration)
1065
- @filter = args[:filter] if args.key?(:filter)
1066
- @group_by = args[:group_by] if args.key?(:group_by)
1067
- @page_size = args[:page_size] if args.key?(:page_size)
1068
- @page_token = args[:page_token] if args.key?(:page_token)
1069
- @read_time = args[:read_time] if args.key?(:read_time)
1070
- end
1071
- end
1072
-
1073
- # Response message for grouping by assets.
1074
- class GroupAssetsResponse
1075
- include Google::Apis::Core::Hashable
1076
-
1077
- # Group results. There exists an element for each existing unique combination of
1078
- # property/values. The element contains a count for the number of times those
1079
- # specific property/values appear.
1080
- # Corresponds to the JSON property `groupByResults`
1081
- # @return [Array<Google::Apis::SecuritycenterV1p1beta1::GroupResult>]
1082
- attr_accessor :group_by_results
1083
-
1084
- # Token to retrieve the next page of results, or empty if there are no more
1085
- # results.
1086
- # Corresponds to the JSON property `nextPageToken`
1087
- # @return [String]
1088
- attr_accessor :next_page_token
1089
-
1090
- # Time used for executing the groupBy request.
1091
- # Corresponds to the JSON property `readTime`
1092
- # @return [String]
1093
- attr_accessor :read_time
1094
-
1095
- # The total number of results matching the query.
1096
- # Corresponds to the JSON property `totalSize`
1097
- # @return [Fixnum]
1098
- attr_accessor :total_size
1099
-
1100
- def initialize(**args)
1101
- update!(**args)
1102
- end
1103
-
1104
- # Update properties of this object
1105
- def update!(**args)
1106
- @group_by_results = args[:group_by_results] if args.key?(:group_by_results)
1107
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1108
- @read_time = args[:read_time] if args.key?(:read_time)
1109
- @total_size = args[:total_size] if args.key?(:total_size)
1110
- end
1111
- end
1112
-
1113
- # Request message for grouping by findings.
1114
- class GroupFindingsRequest
1115
- include Google::Apis::Core::Hashable
1116
-
1117
- # When compare_duration is set, the GroupResult's "state_change" attribute is
1118
- # updated to indicate whether the finding had its state changed, the finding's
1119
- # state remained unchanged, or if the finding was added during the
1120
- # compare_duration period of time that precedes the read_time. This is the time
1121
- # between (read_time - compare_duration) and read_time. The state_change value
1122
- # is derived based on the presence and state of the finding at the two points in
1123
- # time. Intermediate state changes between the two times don't affect the result.
1124
- # For example, the results aren't affected if the finding is made inactive and
1125
- # then active again. Possible "state_change" values when compare_duration is
1126
- # specified: * "CHANGED": indicates that the finding was present and matched the
1127
- # given filter at the start of compare_duration, but changed its state at
1128
- # read_time. * "UNCHANGED": indicates that the finding was present and matched
1129
- # the given filter at the start of compare_duration and did not change state at
1130
- # read_time. * "ADDED": indicates that the finding did not match the given
1131
- # filter or was not present at the start of compare_duration, but was present at
1132
- # read_time. * "REMOVED": indicates that the finding was present and matched the
1133
- # filter at the start of compare_duration, but did not match the filter at
1134
- # read_time. If compare_duration is not specified, then the only possible
1135
- # state_change is "UNUSED", which will be the state_change set for all findings
1136
- # present at read_time. If this field is set then `state_change` must be a
1137
- # specified field in `group_by`.
1138
- # Corresponds to the JSON property `compareDuration`
1139
- # @return [String]
1140
- attr_accessor :compare_duration
1141
-
1142
- # Expression that defines the filter to apply across findings. The expression is
1143
- # a list of one or more restrictions combined via logical operators `AND` and `
1144
- # OR`. Parentheses are supported, and `OR` has higher precedence than `AND`.
1145
- # Restrictions have the form ` ` and may have a `-` character in front of them
1146
- # to indicate negation. Examples include: * name * source_properties.a_property *
1147
- # security_marks.marks.marka The supported operators are: * `=` for all value
1148
- # types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, meaning substring
1149
- # matching, for strings. The supported value types are: * string literals in
1150
- # quotes. * integer literals without quotes. * boolean literals `true` and `
1151
- # false` without quotes. The following field and operator combinations are
1152
- # supported: * name: `=` * parent: `=`, `:` * resource_name: `=`, `:` * state: `=
1153
- # `, `:` * category: `=`, `:` * external_uri: `=`, `:` * event_time: `=`, `>`, `<
1154
- # `, `>=`, `<=` Usage: This should be milliseconds since epoch or an RFC3339
1155
- # string. Examples: `event_time = "2019-06-10T16:07:18-07:00"` `event_time =
1156
- # 1560208038000` * security_marks.marks: `=`, `:` * source_properties: `=`, `:`,
1157
- # `>`, `<`, `>=`, `<=` For example, `source_properties.size = 100` is a valid
1158
- # filter string. Use a partial match on the empty string to filter based on a
1159
- # property existing: `source_properties.my_property : ""` Use a negated partial
1160
- # match on the empty string to filter based on a property not existing: `-
1161
- # source_properties.my_property : ""`
1162
- # Corresponds to the JSON property `filter`
1163
- # @return [String]
1164
- attr_accessor :filter
1165
-
1166
- # Required. Expression that defines what assets fields to use for grouping (
1167
- # including `state_change`). The string value should follow SQL syntax: comma
1168
- # separated list of fields. For example: "parent,resource_name". The following
1169
- # fields are supported: * resource_name * category * state * parent The
1170
- # following fields are supported when compare_duration is set: * state_change
1171
- # Corresponds to the JSON property `groupBy`
1172
- # @return [String]
1173
- attr_accessor :group_by
1174
-
1175
- # The maximum number of results to return in a single response. Default is 10,
1176
- # minimum is 1, maximum is 1000.
1177
- # Corresponds to the JSON property `pageSize`
1178
- # @return [Fixnum]
1179
- attr_accessor :page_size
1180
-
1181
- # The value returned by the last `GroupFindingsResponse`; indicates that this is
1182
- # a continuation of a prior `GroupFindings` call, and that the system should
1183
- # return the next page of data.
1184
- # Corresponds to the JSON property `pageToken`
1185
- # @return [String]
1186
- attr_accessor :page_token
1187
-
1188
- # Time used as a reference point when filtering findings. The filter is limited
1189
- # to findings existing at the supplied time and their values are those at that
1190
- # specific time. Absence of this field will default to the API's version of NOW.
1191
- # Corresponds to the JSON property `readTime`
1192
- # @return [String]
1193
- attr_accessor :read_time
1194
-
1195
- def initialize(**args)
1196
- update!(**args)
1197
- end
1198
-
1199
- # Update properties of this object
1200
- def update!(**args)
1201
- @compare_duration = args[:compare_duration] if args.key?(:compare_duration)
1202
- @filter = args[:filter] if args.key?(:filter)
1203
- @group_by = args[:group_by] if args.key?(:group_by)
1204
- @page_size = args[:page_size] if args.key?(:page_size)
1205
- @page_token = args[:page_token] if args.key?(:page_token)
1206
- @read_time = args[:read_time] if args.key?(:read_time)
1207
- end
1208
- end
1209
-
1210
- # Response message for group by findings.
1211
- class GroupFindingsResponse
1212
- include Google::Apis::Core::Hashable
1213
-
1214
- # Group results. There exists an element for each existing unique combination of
1215
- # property/values. The element contains a count for the number of times those
1216
- # specific property/values appear.
1217
- # Corresponds to the JSON property `groupByResults`
1218
- # @return [Array<Google::Apis::SecuritycenterV1p1beta1::GroupResult>]
1219
- attr_accessor :group_by_results
1220
-
1221
- # Token to retrieve the next page of results, or empty if there are no more
1222
- # results.
1223
- # Corresponds to the JSON property `nextPageToken`
1224
- # @return [String]
1225
- attr_accessor :next_page_token
1226
-
1227
- # Time used for executing the groupBy request.
1228
- # Corresponds to the JSON property `readTime`
1229
- # @return [String]
1230
- attr_accessor :read_time
1231
-
1232
- # The total number of results matching the query.
1233
- # Corresponds to the JSON property `totalSize`
1234
- # @return [Fixnum]
1235
- attr_accessor :total_size
1236
-
1237
- def initialize(**args)
1238
- update!(**args)
1239
- end
1240
-
1241
- # Update properties of this object
1242
- def update!(**args)
1243
- @group_by_results = args[:group_by_results] if args.key?(:group_by_results)
1244
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1245
- @read_time = args[:read_time] if args.key?(:read_time)
1246
- @total_size = args[:total_size] if args.key?(:total_size)
1247
- end
1248
- end
1249
-
1250
- # Result containing the properties and count of a groupBy request.
1251
- class GroupResult
1252
- include Google::Apis::Core::Hashable
1253
-
1254
- # Total count of resources for the given properties.
1255
- # Corresponds to the JSON property `count`
1256
- # @return [Fixnum]
1257
- attr_accessor :count
1258
-
1259
- # Properties matching the groupBy fields in the request.
1260
- # Corresponds to the JSON property `properties`
1261
- # @return [Hash<String,Object>]
1262
- attr_accessor :properties
1263
-
1264
- def initialize(**args)
1265
- update!(**args)
1266
- end
1267
-
1268
- # Update properties of this object
1269
- def update!(**args)
1270
- @count = args[:count] if args.key?(:count)
1271
- @properties = args[:properties] if args.key?(:properties)
1272
- end
1273
- end
1274
-
1275
- # Response message for listing assets.
1276
- class ListAssetsResponse
1277
- include Google::Apis::Core::Hashable
1278
-
1279
- # Assets matching the list request.
1280
- # Corresponds to the JSON property `listAssetsResults`
1281
- # @return [Array<Google::Apis::SecuritycenterV1p1beta1::ListAssetsResult>]
1282
- attr_accessor :list_assets_results
1283
-
1284
- # Token to retrieve the next page of results, or empty if there are no more
1285
- # results.
1286
- # Corresponds to the JSON property `nextPageToken`
1287
- # @return [String]
1288
- attr_accessor :next_page_token
1289
-
1290
- # Time used for executing the list request.
1291
- # Corresponds to the JSON property `readTime`
1292
- # @return [String]
1293
- attr_accessor :read_time
1294
-
1295
- # The total number of assets matching the query.
1296
- # Corresponds to the JSON property `totalSize`
1297
- # @return [Fixnum]
1298
- attr_accessor :total_size
1299
-
1300
- def initialize(**args)
1301
- update!(**args)
1302
- end
1303
-
1304
- # Update properties of this object
1305
- def update!(**args)
1306
- @list_assets_results = args[:list_assets_results] if args.key?(:list_assets_results)
1307
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1308
- @read_time = args[:read_time] if args.key?(:read_time)
1309
- @total_size = args[:total_size] if args.key?(:total_size)
1310
- end
1311
- end
1312
-
1313
- # Result containing the Asset and its State.
1314
- class ListAssetsResult
1315
- include Google::Apis::Core::Hashable
1316
-
1317
- # Security Command Center representation of a Google Cloud resource. The Asset
1318
- # is a Security Command Center resource that captures information about a single
1319
- # Google Cloud resource. All modifications to an Asset are only within the
1320
- # context of Security Command Center and don't affect the referenced Google
1321
- # Cloud resource.
1322
- # Corresponds to the JSON property `asset`
1323
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Asset]
1324
- attr_accessor :asset
1325
-
1326
- # State change of the asset between the points in time.
1327
- # Corresponds to the JSON property `stateChange`
1328
- # @return [String]
1329
- attr_accessor :state_change
1330
-
1331
- def initialize(**args)
1332
- update!(**args)
1333
- end
1334
-
1335
- # Update properties of this object
1336
- def update!(**args)
1337
- @asset = args[:asset] if args.key?(:asset)
1338
- @state_change = args[:state_change] if args.key?(:state_change)
1339
- end
1340
- end
1341
-
1342
- # Response message for listing findings.
1343
- class ListFindingsResponse
1344
- include Google::Apis::Core::Hashable
1345
-
1346
- # Findings matching the list request.
1347
- # Corresponds to the JSON property `listFindingsResults`
1348
- # @return [Array<Google::Apis::SecuritycenterV1p1beta1::ListFindingsResult>]
1349
- attr_accessor :list_findings_results
1350
-
1351
- # Token to retrieve the next page of results, or empty if there are no more
1352
- # results.
1353
- # Corresponds to the JSON property `nextPageToken`
1354
- # @return [String]
1355
- attr_accessor :next_page_token
1356
-
1357
- # Time used for executing the list request.
1358
- # Corresponds to the JSON property `readTime`
1359
- # @return [String]
1360
- attr_accessor :read_time
1361
-
1362
- # The total number of findings matching the query.
1363
- # Corresponds to the JSON property `totalSize`
1364
- # @return [Fixnum]
1365
- attr_accessor :total_size
1366
-
1367
- def initialize(**args)
1368
- update!(**args)
1369
- end
1370
-
1371
- # Update properties of this object
1372
- def update!(**args)
1373
- @list_findings_results = args[:list_findings_results] if args.key?(:list_findings_results)
1374
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1375
- @read_time = args[:read_time] if args.key?(:read_time)
1376
- @total_size = args[:total_size] if args.key?(:total_size)
1377
- end
1378
- end
1379
-
1380
- # Result containing the Finding and its StateChange.
1381
- class ListFindingsResult
1382
- include Google::Apis::Core::Hashable
1383
-
1384
- # Security Command Center finding. A finding is a record of assessment data (
1385
- # security, risk, health or privacy) ingested into Security Command Center for
1386
- # presentation, notification, analysis, policy testing, and enforcement. For
1387
- # example, an XSS vulnerability in an App Engine application is a finding.
1388
- # Corresponds to the JSON property `finding`
1389
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding]
1390
- attr_accessor :finding
1391
-
1392
- # Information related to the Google Cloud resource that is associated with this
1393
- # finding. LINT.IfChange
1394
- # Corresponds to the JSON property `resource`
1395
- # @return [Google::Apis::SecuritycenterV1p1beta1::Resource]
1396
- attr_accessor :resource
1397
-
1398
- # State change of the finding between the points in time.
1399
- # Corresponds to the JSON property `stateChange`
1400
- # @return [String]
1401
- attr_accessor :state_change
1402
-
1403
- def initialize(**args)
1404
- update!(**args)
1405
- end
1406
-
1407
- # Update properties of this object
1408
- def update!(**args)
1409
- @finding = args[:finding] if args.key?(:finding)
1410
- @resource = args[:resource] if args.key?(:resource)
1411
- @state_change = args[:state_change] if args.key?(:state_change)
1412
- end
1413
- end
1414
-
1415
- # Response message for listing notification configs.
1416
- class ListNotificationConfigsResponse
1417
- include Google::Apis::Core::Hashable
1418
-
1419
- # Token to retrieve the next page of results, or empty if there are no more
1420
- # results.
1421
- # Corresponds to the JSON property `nextPageToken`
1422
- # @return [String]
1423
- attr_accessor :next_page_token
1424
-
1425
- # Notification configs belonging to the requested parent.
1426
- # Corresponds to the JSON property `notificationConfigs`
1427
- # @return [Array<Google::Apis::SecuritycenterV1p1beta1::NotificationConfig>]
1428
- attr_accessor :notification_configs
1429
-
1430
- def initialize(**args)
1431
- update!(**args)
1432
- end
1433
-
1434
- # Update properties of this object
1435
- def update!(**args)
1436
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1437
- @notification_configs = args[:notification_configs] if args.key?(:notification_configs)
1438
- end
1439
- end
1440
-
1441
- # The response message for Operations.ListOperations.
1442
- class ListOperationsResponse
1443
- include Google::Apis::Core::Hashable
1444
-
1445
- # The standard List next-page token.
1446
- # Corresponds to the JSON property `nextPageToken`
1447
- # @return [String]
1448
- attr_accessor :next_page_token
1449
-
1450
- # A list of operations that matches the specified filter in the request.
1451
- # Corresponds to the JSON property `operations`
1452
- # @return [Array<Google::Apis::SecuritycenterV1p1beta1::Operation>]
1453
- attr_accessor :operations
1454
-
1455
- def initialize(**args)
1456
- update!(**args)
1457
- end
1458
-
1459
- # Update properties of this object
1460
- def update!(**args)
1461
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1462
- @operations = args[:operations] if args.key?(:operations)
1463
- end
1464
- end
1465
-
1466
- # Response message for listing sources.
1467
- class ListSourcesResponse
1468
- include Google::Apis::Core::Hashable
1469
-
1470
- # Token to retrieve the next page of results, or empty if there are no more
1471
- # results.
1472
- # Corresponds to the JSON property `nextPageToken`
1473
- # @return [String]
1474
- attr_accessor :next_page_token
1475
-
1476
- # Sources belonging to the requested parent.
1477
- # Corresponds to the JSON property `sources`
1478
- # @return [Array<Google::Apis::SecuritycenterV1p1beta1::Source>]
1479
- attr_accessor :sources
1480
-
1481
- def initialize(**args)
1482
- update!(**args)
1483
- end
1484
-
1485
- # Update properties of this object
1486
- def update!(**args)
1487
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1488
- @sources = args[:sources] if args.key?(:sources)
1489
- end
1490
- end
1491
-
1492
- # Security Command Center notification configs. A notification config is a
1493
- # Security Command Center resource that contains the configuration to send
1494
- # notifications for create/update events of findings, assets and etc.
1495
- class NotificationConfig
1496
- include Google::Apis::Core::Hashable
1497
-
1498
- # The description of the notification config (max of 1024 characters).
1499
- # Corresponds to the JSON property `description`
1500
- # @return [String]
1501
- attr_accessor :description
1502
-
1503
- # The type of events the config is for, e.g. FINDING.
1504
- # Corresponds to the JSON property `eventType`
1505
- # @return [String]
1506
- attr_accessor :event_type
1507
-
1508
- # The relative resource name of this notification config. See: https://cloud.
1509
- # google.com/apis/design/resource_names#relative_resource_name Example: "
1510
- # organizations/`organization_id`/notificationConfigs/notify_public_bucket".
1511
- # Corresponds to the JSON property `name`
1512
- # @return [String]
1513
- attr_accessor :name
1514
-
1515
- # The Pub/Sub topic to send notifications to. Its format is "projects/[
1516
- # project_id]/topics/[topic]".
1517
- # Corresponds to the JSON property `pubsubTopic`
1518
- # @return [String]
1519
- attr_accessor :pubsub_topic
1520
-
1521
- # Output only. The service account that needs "pubsub.topics.publish" permission
1522
- # to publish to the Pub/Sub topic.
1523
- # Corresponds to the JSON property `serviceAccount`
1524
- # @return [String]
1525
- attr_accessor :service_account
1526
-
1527
- # The config for streaming-based notifications, which send each event as soon as
1528
- # it is detected.
1529
- # Corresponds to the JSON property `streamingConfig`
1530
- # @return [Google::Apis::SecuritycenterV1p1beta1::StreamingConfig]
1531
- attr_accessor :streaming_config
1532
-
1533
- def initialize(**args)
1534
- update!(**args)
1535
- end
1536
-
1537
- # Update properties of this object
1538
- def update!(**args)
1539
- @description = args[:description] if args.key?(:description)
1540
- @event_type = args[:event_type] if args.key?(:event_type)
1541
- @name = args[:name] if args.key?(:name)
1542
- @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
1543
- @service_account = args[:service_account] if args.key?(:service_account)
1544
- @streaming_config = args[:streaming_config] if args.key?(:streaming_config)
1545
- end
1546
- end
1547
-
1548
- # This resource represents a long-running operation that is the result of a
1549
- # network API call.
1550
- class Operation
1551
- include Google::Apis::Core::Hashable
1552
-
1553
- # If the value is `false`, it means the operation is still in progress. If `true`
1554
- # , the operation is completed, and either `error` or `response` is available.
1555
- # Corresponds to the JSON property `done`
1556
- # @return [Boolean]
1557
- attr_accessor :done
1558
- alias_method :done?, :done
1559
-
1560
- # The `Status` type defines a logical error model that is suitable for different
1561
- # programming environments, including REST APIs and RPC APIs. It is used by [
1562
- # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1563
- # data: error code, error message, and error details. You can find out more
1564
- # about this error model and how to work with it in the [API Design Guide](https:
1565
- # //cloud.google.com/apis/design/errors).
1566
- # Corresponds to the JSON property `error`
1567
- # @return [Google::Apis::SecuritycenterV1p1beta1::Status]
1568
- attr_accessor :error
1569
-
1570
- # Service-specific metadata associated with the operation. It typically contains
1571
- # progress information and common metadata such as create time. Some services
1572
- # might not provide such metadata. Any method that returns a long-running
1573
- # operation should document the metadata type, if any.
1574
- # Corresponds to the JSON property `metadata`
1575
- # @return [Hash<String,Object>]
1576
- attr_accessor :metadata
1577
-
1578
- # The server-assigned name, which is only unique within the same service that
1579
- # originally returns it. If you use the default HTTP mapping, the `name` should
1580
- # be a resource name ending with `operations/`unique_id``.
1581
- # Corresponds to the JSON property `name`
1582
- # @return [String]
1583
- attr_accessor :name
1584
-
1585
- # The normal response of the operation in case of success. If the original
1586
- # method returns no data on success, such as `Delete`, the response is `google.
1587
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
1588
- # the response should be the resource. For other methods, the response should
1589
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
1590
- # example, if the original method name is `TakeSnapshot()`, the inferred
1591
- # response type is `TakeSnapshotResponse`.
1592
- # Corresponds to the JSON property `response`
1593
- # @return [Hash<String,Object>]
1594
- attr_accessor :response
1595
-
1596
- def initialize(**args)
1597
- update!(**args)
1598
- end
1599
-
1600
- # Update properties of this object
1601
- def update!(**args)
1602
- @done = args[:done] if args.key?(:done)
1603
- @error = args[:error] if args.key?(:error)
1604
- @metadata = args[:metadata] if args.key?(:metadata)
1605
- @name = args[:name] if args.key?(:name)
1606
- @response = args[:response] if args.key?(:response)
1607
- end
1608
- end
1609
-
1610
- # User specified settings that are attached to the Security Command Center
1611
- # organization.
1612
- class OrganizationSettings
1613
- include Google::Apis::Core::Hashable
1614
-
1615
- # The configuration used for Asset Discovery runs.
1616
- # Corresponds to the JSON property `assetDiscoveryConfig`
1617
- # @return [Google::Apis::SecuritycenterV1p1beta1::AssetDiscoveryConfig]
1618
- attr_accessor :asset_discovery_config
1619
-
1620
- # A flag that indicates if Asset Discovery should be enabled. If the flag is set
1621
- # to `true`, then discovery of assets will occur. If it is set to `false, all
1622
- # historical assets will remain, but discovery of future assets will not occur.
1623
- # Corresponds to the JSON property `enableAssetDiscovery`
1624
- # @return [Boolean]
1625
- attr_accessor :enable_asset_discovery
1626
- alias_method :enable_asset_discovery?, :enable_asset_discovery
1627
-
1628
- # The relative resource name of the settings. See: https://cloud.google.com/apis/
1629
- # design/resource_names#relative_resource_name Example: "organizations/`
1630
- # organization_id`/organizationSettings".
1631
- # Corresponds to the JSON property `name`
1632
- # @return [String]
1633
- attr_accessor :name
1634
-
1635
- def initialize(**args)
1636
- update!(**args)
1637
- end
1638
-
1639
- # Update properties of this object
1640
- def update!(**args)
1641
- @asset_discovery_config = args[:asset_discovery_config] if args.key?(:asset_discovery_config)
1642
- @enable_asset_discovery = args[:enable_asset_discovery] if args.key?(:enable_asset_discovery)
1643
- @name = args[:name] if args.key?(:name)
1644
- end
1645
- end
1646
-
1647
- # An Identity and Access Management (IAM) policy, which specifies access
1648
- # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1649
- # A `binding` binds one or more `members` to a single `role`. Members can be
1650
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1651
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1652
- # role or a user-created custom role. For some types of Google Cloud resources,
1653
- # a `binding` can also specify a `condition`, which is a logical expression that
1654
- # allows access to a resource only if the expression evaluates to `true`. A
1655
- # condition can add constraints based on attributes of the request, the resource,
1656
- # or both. To learn which resources support conditions in their IAM policies,
1657
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1658
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1659
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1660
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1661
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1662
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1663
- # title": "expirable access", "description": "Does not grant access after Sep
1664
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1665
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1666
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1667
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1668
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1669
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1670
- # description: Does not grant access after Sep 2020 expression: request.time <
1671
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1672
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1673
- # google.com/iam/docs/).
1674
- class Policy
1675
- include Google::Apis::Core::Hashable
1676
-
1677
- # Specifies cloud audit logging configuration for this policy.
1678
- # Corresponds to the JSON property `auditConfigs`
1679
- # @return [Array<Google::Apis::SecuritycenterV1p1beta1::AuditConfig>]
1680
- attr_accessor :audit_configs
1681
-
1682
- # Associates a list of `members` to a `role`. Optionally, may specify a `
1683
- # condition` that determines how and when the `bindings` are applied. Each of
1684
- # the `bindings` must contain at least one member.
1685
- # Corresponds to the JSON property `bindings`
1686
- # @return [Array<Google::Apis::SecuritycenterV1p1beta1::Binding>]
1687
- attr_accessor :bindings
1688
-
1689
- # `etag` is used for optimistic concurrency control as a way to help prevent
1690
- # simultaneous updates of a policy from overwriting each other. It is strongly
1691
- # suggested that systems make use of the `etag` in the read-modify-write cycle
1692
- # to perform policy updates in order to avoid race conditions: An `etag` is
1693
- # returned in the response to `getIamPolicy`, and systems are expected to put
1694
- # that etag in the request to `setIamPolicy` to ensure that their change will be
1695
- # applied to the same version of the policy. **Important:** If you use IAM
1696
- # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
1697
- # If you omit this field, then IAM allows you to overwrite a version `3` policy
1698
- # with a version `1` policy, and all of the conditions in the version `3` policy
1699
- # are lost.
1700
- # Corresponds to the JSON property `etag`
1701
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
1702
- # @return [String]
1703
- attr_accessor :etag
1704
-
1705
- # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
1706
- # Requests that specify an invalid value are rejected. Any operation that
1707
- # affects conditional role bindings must specify version `3`. This requirement
1708
- # applies to the following operations: * Getting a policy that includes a
1709
- # conditional role binding * Adding a conditional role binding to a policy *
1710
- # Changing a conditional role binding in a policy * Removing any role binding,
1711
- # with or without a condition, from a policy that includes conditions **
1712
- # Important:** If you use IAM Conditions, you must include the `etag` field
1713
- # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
1714
- # to overwrite a version `3` policy with a version `1` policy, and all of the
1715
- # conditions in the version `3` policy are lost. If a policy does not include
1716
- # any conditions, operations on that policy may specify any valid version or
1717
- # leave the field unset. To learn which resources support conditions in their
1718
- # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
1719
- # conditions/resource-policies).
1720
- # Corresponds to the JSON property `version`
1721
- # @return [Fixnum]
1722
- attr_accessor :version
1723
-
1724
- def initialize(**args)
1725
- update!(**args)
1726
- end
1727
-
1728
- # Update properties of this object
1729
- def update!(**args)
1730
- @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
1731
- @bindings = args[:bindings] if args.key?(:bindings)
1732
- @etag = args[:etag] if args.key?(:etag)
1733
- @version = args[:version] if args.key?(:version)
1734
- end
1735
- end
1736
-
1737
- # Information related to the Google Cloud resource that is associated with this
1738
- # finding. LINT.IfChange
1739
- class Resource
1740
- include Google::Apis::Core::Hashable
1741
-
1742
- # The full resource name of the resource. See: https://cloud.google.com/apis/
1743
- # design/resource_names#full_resource_name
1744
- # Corresponds to the JSON property `name`
1745
- # @return [String]
1746
- attr_accessor :name
1747
-
1748
- # The human readable name of resource's parent.
1749
- # Corresponds to the JSON property `parentDisplayName`
1750
- # @return [String]
1751
- attr_accessor :parent_display_name
1752
-
1753
- # The full resource name of resource's parent.
1754
- # Corresponds to the JSON property `parentName`
1755
- # @return [String]
1756
- attr_accessor :parent_name
1757
-
1758
- # The human readable name of project that the resource belongs to.
1759
- # Corresponds to the JSON property `projectDisplayName`
1760
- # @return [String]
1761
- attr_accessor :project_display_name
1762
-
1763
- # The full resource name of project that the resource belongs to.
1764
- # Corresponds to the JSON property `projectName`
1765
- # @return [String]
1766
- attr_accessor :project_name
1767
-
1768
- def initialize(**args)
1769
- update!(**args)
1770
- end
1771
-
1772
- # Update properties of this object
1773
- def update!(**args)
1774
- @name = args[:name] if args.key?(:name)
1775
- @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
1776
- @parent_name = args[:parent_name] if args.key?(:parent_name)
1777
- @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
1778
- @project_name = args[:project_name] if args.key?(:project_name)
1779
- end
1780
- end
1781
-
1782
- # Request message for running asset discovery for an organization.
1783
- class RunAssetDiscoveryRequest
1784
- include Google::Apis::Core::Hashable
1785
-
1786
- def initialize(**args)
1787
- update!(**args)
1788
- end
1789
-
1790
- # Update properties of this object
1791
- def update!(**args)
1792
- end
1793
- end
1794
-
1795
- # User specified security marks that are attached to the parent Security Command
1796
- # Center resource. Security marks are scoped within a Security Command Center
1797
- # organization -- they can be modified and viewed by all users who have proper
1798
- # permissions on the organization.
1799
- class SecurityMarks
1800
- include Google::Apis::Core::Hashable
1801
-
1802
- # Mutable user specified security marks belonging to the parent resource.
1803
- # Constraints are as follows: * Keys and values are treated as case insensitive *
1804
- # Keys must be between 1 - 256 characters (inclusive) * Keys must be letters,
1805
- # numbers, underscores, or dashes * Values have leading and trailing whitespace
1806
- # trimmed, remaining characters must be between 1 - 4096 characters (inclusive)
1807
- # Corresponds to the JSON property `marks`
1808
- # @return [Hash<String,String>]
1809
- attr_accessor :marks
1810
-
1811
- # The relative resource name of the SecurityMarks. See: https://cloud.google.com/
1812
- # apis/design/resource_names#relative_resource_name Examples: "organizations/`
1813
- # organization_id`/assets/`asset_id`/securityMarks" "organizations/`
1814
- # organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks".
1815
- # Corresponds to the JSON property `name`
1816
- # @return [String]
1817
- attr_accessor :name
1818
-
1819
- def initialize(**args)
1820
- update!(**args)
1821
- end
1822
-
1823
- # Update properties of this object
1824
- def update!(**args)
1825
- @marks = args[:marks] if args.key?(:marks)
1826
- @name = args[:name] if args.key?(:name)
1827
- end
1828
- end
1829
-
1830
- # Request message for updating a finding's state.
1831
- class SetFindingStateRequest
1832
- include Google::Apis::Core::Hashable
1833
-
1834
- # Required. The time at which the updated state takes effect.
1835
- # Corresponds to the JSON property `startTime`
1836
- # @return [String]
1837
- attr_accessor :start_time
1838
-
1839
- # Required. The desired State of the finding.
1840
- # Corresponds to the JSON property `state`
1841
- # @return [String]
1842
- attr_accessor :state
1843
-
1844
- def initialize(**args)
1845
- update!(**args)
1846
- end
1847
-
1848
- # Update properties of this object
1849
- def update!(**args)
1850
- @start_time = args[:start_time] if args.key?(:start_time)
1851
- @state = args[:state] if args.key?(:state)
1852
- end
1853
- end
1854
-
1855
- # Request message for `SetIamPolicy` method.
1856
- class SetIamPolicyRequest
1857
- include Google::Apis::Core::Hashable
1858
-
1859
- # An Identity and Access Management (IAM) policy, which specifies access
1860
- # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
1861
- # A `binding` binds one or more `members` to a single `role`. Members can be
1862
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
1863
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
1864
- # role or a user-created custom role. For some types of Google Cloud resources,
1865
- # a `binding` can also specify a `condition`, which is a logical expression that
1866
- # allows access to a resource only if the expression evaluates to `true`. A
1867
- # condition can add constraints based on attributes of the request, the resource,
1868
- # or both. To learn which resources support conditions in their IAM policies,
1869
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
1870
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
1871
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
1872
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
1873
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
1874
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
1875
- # title": "expirable access", "description": "Does not grant access after Sep
1876
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
1877
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
1878
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
1879
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
1880
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
1881
- # roles/resourcemanager.organizationViewer condition: title: expirable access
1882
- # description: Does not grant access after Sep 2020 expression: request.time <
1883
- # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
1884
- # description of IAM and its features, see the [IAM documentation](https://cloud.
1885
- # google.com/iam/docs/).
1886
- # Corresponds to the JSON property `policy`
1887
- # @return [Google::Apis::SecuritycenterV1p1beta1::Policy]
1888
- attr_accessor :policy
1889
-
1890
- # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
1891
- # the fields in the mask will be modified. If no mask is provided, the following
1892
- # default mask is used: `paths: "bindings, etag"`
1893
- # Corresponds to the JSON property `updateMask`
1894
- # @return [String]
1895
- attr_accessor :update_mask
1896
-
1897
- def initialize(**args)
1898
- update!(**args)
1899
- end
1900
-
1901
- # Update properties of this object
1902
- def update!(**args)
1903
- @policy = args[:policy] if args.key?(:policy)
1904
- @update_mask = args[:update_mask] if args.key?(:update_mask)
1905
- end
1906
- end
1907
-
1908
- # Security Command Center finding source. A finding source is an entity or a
1909
- # mechanism that can produce a finding. A source is like a container of findings
1910
- # that come from the same scanner, logger, monitor, etc.
1911
- class Source
1912
- include Google::Apis::Core::Hashable
1913
-
1914
- # The description of the source (max of 1024 characters). Example: "Web Security
1915
- # Scanner is a web security scanner for common vulnerabilities in App Engine
1916
- # applications. It can automatically scan and detect four common vulnerabilities,
1917
- # including cross-site-scripting (XSS), Flash injection, mixed content (HTTP in
1918
- # HTTPS), and outdated/insecure libraries."
1919
- # Corresponds to the JSON property `description`
1920
- # @return [String]
1921
- attr_accessor :description
1922
-
1923
- # The source's display name. A source's display name must be unique amongst its
1924
- # siblings, for example, two sources with the same parent can't share the same
1925
- # display name. The display name must have a length between 1 and 64 characters (
1926
- # inclusive).
1927
- # Corresponds to the JSON property `displayName`
1928
- # @return [String]
1929
- attr_accessor :display_name
1930
-
1931
- # The relative resource name of this source. See: https://cloud.google.com/apis/
1932
- # design/resource_names#relative_resource_name Example: "organizations/`
1933
- # organization_id`/sources/`source_id`"
1934
- # Corresponds to the JSON property `name`
1935
- # @return [String]
1936
- attr_accessor :name
1937
-
1938
- def initialize(**args)
1939
- update!(**args)
1940
- end
1941
-
1942
- # Update properties of this object
1943
- def update!(**args)
1944
- @description = args[:description] if args.key?(:description)
1945
- @display_name = args[:display_name] if args.key?(:display_name)
1946
- @name = args[:name] if args.key?(:name)
1947
- end
1948
- end
1949
-
1950
- # The `Status` type defines a logical error model that is suitable for different
1951
- # programming environments, including REST APIs and RPC APIs. It is used by [
1952
- # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1953
- # data: error code, error message, and error details. You can find out more
1954
- # about this error model and how to work with it in the [API Design Guide](https:
1955
- # //cloud.google.com/apis/design/errors).
1956
- class Status
1957
- include Google::Apis::Core::Hashable
1958
-
1959
- # The status code, which should be an enum value of google.rpc.Code.
1960
- # Corresponds to the JSON property `code`
1961
- # @return [Fixnum]
1962
- attr_accessor :code
1963
-
1964
- # A list of messages that carry the error details. There is a common set of
1965
- # message types for APIs to use.
1966
- # Corresponds to the JSON property `details`
1967
- # @return [Array<Hash<String,Object>>]
1968
- attr_accessor :details
1969
-
1970
- # A developer-facing error message, which should be in English. Any user-facing
1971
- # error message should be localized and sent in the google.rpc.Status.details
1972
- # field, or localized by the client.
1973
- # Corresponds to the JSON property `message`
1974
- # @return [String]
1975
- attr_accessor :message
1976
-
1977
- def initialize(**args)
1978
- update!(**args)
1979
- end
1980
-
1981
- # Update properties of this object
1982
- def update!(**args)
1983
- @code = args[:code] if args.key?(:code)
1984
- @details = args[:details] if args.key?(:details)
1985
- @message = args[:message] if args.key?(:message)
1986
- end
1987
- end
1988
-
1989
- # The config for streaming-based notifications, which send each event as soon as
1990
- # it is detected.
1991
- class StreamingConfig
1992
- include Google::Apis::Core::Hashable
1993
-
1994
- # Expression that defines the filter to apply across create/update events of
1995
- # assets or findings as specified by the event type. The expression is a list of
1996
- # zero or more restrictions combined via logical operators `AND` and `OR`.
1997
- # Parentheses are supported, and `OR` has higher precedence than `AND`.
1998
- # Restrictions have the form ` ` and may have a `-` character in front of them
1999
- # to indicate negation. The fields map to those defined in the corresponding
2000
- # resource. The supported operators are: * `=` for all value types. * `>`, `<`, `
2001
- # >=`, `<=` for integer values. * `:`, meaning substring matching, for strings.
2002
- # The supported value types are: * string literals in quotes. * integer literals
2003
- # without quotes. * boolean literals `true` and `false` without quotes.
2004
- # Corresponds to the JSON property `filter`
2005
- # @return [String]
2006
- attr_accessor :filter
2007
-
2008
- def initialize(**args)
2009
- update!(**args)
2010
- end
2011
-
2012
- # Update properties of this object
2013
- def update!(**args)
2014
- @filter = args[:filter] if args.key?(:filter)
2015
- end
2016
- end
2017
-
2018
- # Request message for `TestIamPermissions` method.
2019
- class TestIamPermissionsRequest
2020
- include Google::Apis::Core::Hashable
2021
-
2022
- # The set of permissions to check for the `resource`. Permissions with wildcards
2023
- # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
2024
- # Overview](https://cloud.google.com/iam/docs/overview#permissions).
2025
- # Corresponds to the JSON property `permissions`
2026
- # @return [Array<String>]
2027
- attr_accessor :permissions
2028
-
2029
- def initialize(**args)
2030
- update!(**args)
2031
- end
2032
-
2033
- # Update properties of this object
2034
- def update!(**args)
2035
- @permissions = args[:permissions] if args.key?(:permissions)
2036
- end
2037
- end
2038
-
2039
- # Response message for `TestIamPermissions` method.
2040
- class TestIamPermissionsResponse
2041
- include Google::Apis::Core::Hashable
2042
-
2043
- # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
2044
- # Corresponds to the JSON property `permissions`
2045
- # @return [Array<String>]
2046
- attr_accessor :permissions
2047
-
2048
- def initialize(**args)
2049
- update!(**args)
2050
- end
2051
-
2052
- # Update properties of this object
2053
- def update!(**args)
2054
- @permissions = args[:permissions] if args.key?(:permissions)
2055
- end
2056
- end
2057
- end
2058
- end
2059
- end