google-api-client 0.43.0 → 0.44.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (696) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +218 -0
  3. data/docs/oauth-server.md +4 -6
  4. data/generated/google/apis/accessapproval_v1.rb +1 -1
  5. data/generated/google/apis/accessapproval_v1/classes.rb +51 -86
  6. data/generated/google/apis/accessapproval_v1/service.rb +93 -132
  7. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  8. data/generated/google/apis/accesscontextmanager_v1/classes.rb +198 -236
  9. data/generated/google/apis/accesscontextmanager_v1/service.rb +128 -171
  10. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  11. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +153 -184
  12. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +82 -111
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -6
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  16. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +47 -2
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +18 -0
  19. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  20. data/generated/google/apis/admin_datatransfer_v1.rb +6 -4
  21. data/generated/google/apis/admin_datatransfer_v1/classes.rb +16 -4
  22. data/generated/google/apis/admin_datatransfer_v1/service.rb +30 -48
  23. data/generated/google/apis/admin_directory_v1.rb +6 -8
  24. data/generated/google/apis/admin_directory_v1/classes.rb +224 -243
  25. data/generated/google/apis/admin_directory_v1/representations.rb +14 -40
  26. data/generated/google/apis/admin_directory_v1/service.rb +475 -1026
  27. data/generated/google/apis/admin_reports_v1.rb +6 -5
  28. data/generated/google/apis/admin_reports_v1/classes.rb +31 -33
  29. data/generated/google/apis/admin_reports_v1/service.rb +131 -187
  30. data/generated/google/apis/admob_v1.rb +1 -1
  31. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  34. data/generated/google/apis/androidmanagement_v1/classes.rb +95 -59
  35. data/generated/google/apis/androidmanagement_v1/representations.rb +17 -0
  36. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v3/service.rb +2 -2
  38. data/generated/google/apis/apigee_v1.rb +6 -7
  39. data/generated/google/apis/apigee_v1/classes.rb +205 -75
  40. data/generated/google/apis/apigee_v1/representations.rb +51 -0
  41. data/generated/google/apis/apigee_v1/service.rb +133 -34
  42. data/generated/google/apis/appengine_v1.rb +1 -1
  43. data/generated/google/apis/appengine_v1/classes.rb +45 -35
  44. data/generated/google/apis/appengine_v1/representations.rb +2 -0
  45. data/generated/google/apis/appengine_v1/service.rb +38 -47
  46. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  47. data/generated/google/apis/appengine_v1alpha/classes.rb +9 -11
  48. data/generated/google/apis/appengine_v1beta.rb +1 -1
  49. data/generated/google/apis/appengine_v1beta/classes.rb +45 -35
  50. data/generated/google/apis/appengine_v1beta/representations.rb +2 -0
  51. data/generated/google/apis/appengine_v1beta/service.rb +37 -47
  52. data/generated/google/apis/appsmarket_v2.rb +1 -1
  53. data/generated/google/apis/appsmarket_v2/classes.rb +14 -16
  54. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  55. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +235 -337
  56. data/generated/google/apis/artifactregistry_v1beta1/service.rb +44 -57
  57. data/generated/google/apis/bigquery_v2.rb +1 -1
  58. data/generated/google/apis/bigquery_v2/classes.rb +355 -553
  59. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  60. data/generated/google/apis/bigquery_v2/service.rb +32 -40
  61. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  62. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +192 -337
  63. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +29 -32
  64. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  65. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +132 -158
  66. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +232 -282
  67. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  68. data/generated/google/apis/bigqueryreservation_v1/classes.rb +116 -123
  69. data/generated/google/apis/bigqueryreservation_v1/representations.rb +2 -0
  70. data/generated/google/apis/bigqueryreservation_v1/service.rb +137 -183
  71. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  72. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +88 -100
  73. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +77 -100
  74. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  75. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +93 -98
  76. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +2 -0
  77. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +114 -151
  78. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  79. data/generated/google/apis/bigtableadmin_v1/classes.rb +50 -0
  80. data/generated/google/apis/bigtableadmin_v1/representations.rb +29 -0
  81. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  82. data/generated/google/apis/bigtableadmin_v2/classes.rb +50 -0
  83. data/generated/google/apis/bigtableadmin_v2/representations.rb +29 -0
  84. data/generated/google/apis/billingbudgets_v1beta1.rb +4 -1
  85. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  86. data/generated/google/apis/binaryauthorization_v1/classes.rb +239 -354
  87. data/generated/google/apis/binaryauthorization_v1/service.rb +74 -89
  88. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  89. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +239 -354
  90. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +74 -89
  91. data/generated/google/apis/calendar_v3.rb +1 -1
  92. data/generated/google/apis/chat_v1.rb +1 -1
  93. data/generated/google/apis/chat_v1/classes.rb +90 -115
  94. data/generated/google/apis/chat_v1/service.rb +30 -42
  95. data/generated/google/apis/civicinfo_v2.rb +1 -1
  96. data/generated/google/apis/cloudasset_v1.rb +1 -1
  97. data/generated/google/apis/cloudasset_v1/classes.rb +712 -1039
  98. data/generated/google/apis/cloudasset_v1/service.rb +125 -167
  99. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  100. data/generated/google/apis/cloudasset_v1beta1/classes.rb +531 -777
  101. data/generated/google/apis/cloudasset_v1beta1/service.rb +59 -75
  102. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  103. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +204 -349
  104. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +35 -47
  105. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  106. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +220 -276
  107. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +75 -93
  108. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  109. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +481 -720
  110. data/generated/google/apis/cloudasset_v1p5beta1/service.rb +25 -28
  111. data/generated/google/apis/cloudbilling_v1.rb +7 -1
  112. data/generated/google/apis/cloudbilling_v1/classes.rb +284 -445
  113. data/generated/google/apis/cloudbilling_v1/service.rb +104 -124
  114. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  115. data/generated/google/apis/cloudbuild_v1/classes.rb +291 -343
  116. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  117. data/generated/google/apis/cloudbuild_v1/service.rb +48 -63
  118. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  119. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +283 -329
  120. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  121. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +15 -18
  122. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  123. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +269 -313
  124. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  125. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +22 -28
  126. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  127. data/generated/google/apis/clouddebugger_v2/classes.rb +185 -252
  128. data/generated/google/apis/clouddebugger_v2/service.rb +53 -59
  129. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  130. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +127 -156
  131. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +53 -69
  132. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  133. data/generated/google/apis/cloudfunctions_v1/classes.rb +323 -493
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +79 -93
  135. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  136. data/generated/google/apis/cloudidentity_v1/classes.rb +625 -75
  137. data/generated/google/apis/cloudidentity_v1/representations.rb +203 -0
  138. data/generated/google/apis/cloudidentity_v1/service.rb +43 -61
  139. data/generated/google/apis/cloudidentity_v1beta1.rb +4 -1
  140. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1045 -317
  141. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +331 -22
  142. data/generated/google/apis/cloudidentity_v1beta1/service.rb +742 -96
  143. data/generated/google/apis/cloudiot_v1.rb +1 -1
  144. data/generated/google/apis/cloudiot_v1/classes.rb +263 -373
  145. data/generated/google/apis/cloudiot_v1/service.rb +147 -154
  146. data/generated/google/apis/cloudkms_v1.rb +1 -1
  147. data/generated/google/apis/cloudkms_v1/classes.rb +502 -692
  148. data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
  149. data/generated/google/apis/cloudkms_v1/service.rb +170 -216
  150. data/generated/google/apis/cloudprofiler_v2.rb +1 -1
  151. data/generated/google/apis/cloudprofiler_v2/classes.rb +28 -33
  152. data/generated/google/apis/cloudprofiler_v2/service.rb +17 -19
  153. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  154. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1 -1
  155. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  156. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
  157. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  158. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  159. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  160. data/generated/google/apis/cloudscheduler_v1/classes.rb +272 -383
  161. data/generated/google/apis/cloudscheduler_v1/service.rb +45 -62
  162. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  163. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +273 -384
  164. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +45 -62
  165. data/generated/google/apis/cloudsearch_v1.rb +2 -2
  166. data/generated/google/apis/cloudsearch_v1/classes.rb +650 -781
  167. data/generated/google/apis/cloudsearch_v1/representations.rb +15 -0
  168. data/generated/google/apis/cloudsearch_v1/service.rb +286 -326
  169. data/generated/google/apis/cloudshell_v1.rb +1 -1
  170. data/generated/google/apis/cloudshell_v1/classes.rb +36 -227
  171. data/generated/google/apis/cloudshell_v1/representations.rb +0 -67
  172. data/generated/google/apis/cloudshell_v1/service.rb +21 -25
  173. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  174. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +69 -78
  175. data/generated/google/apis/cloudshell_v1alpha1/service.rb +20 -24
  176. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  177. data/generated/google/apis/cloudtasks_v2/classes.rb +605 -933
  178. data/generated/google/apis/cloudtasks_v2/service.rb +146 -217
  179. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  180. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +602 -964
  181. data/generated/google/apis/cloudtasks_v2beta2/service.rb +178 -270
  182. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  183. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +609 -938
  184. data/generated/google/apis/cloudtasks_v2beta3/service.rb +146 -217
  185. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  186. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -61
  187. data/generated/google/apis/cloudtrace_v1/service.rb +37 -51
  188. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  189. data/generated/google/apis/cloudtrace_v2/classes.rb +92 -107
  190. data/generated/google/apis/cloudtrace_v2/service.rb +8 -11
  191. data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
  192. data/generated/google/apis/cloudtrace_v2beta1/classes.rb +23 -33
  193. data/generated/google/apis/cloudtrace_v2beta1/service.rb +30 -37
  194. data/generated/google/apis/composer_v1.rb +1 -1
  195. data/generated/google/apis/composer_v1/classes.rb +190 -242
  196. data/generated/google/apis/composer_v1/service.rb +79 -150
  197. data/generated/google/apis/composer_v1beta1.rb +1 -1
  198. data/generated/google/apis/composer_v1beta1/classes.rb +203 -262
  199. data/generated/google/apis/composer_v1beta1/service.rb +92 -179
  200. data/generated/google/apis/compute_alpha.rb +1 -1
  201. data/generated/google/apis/compute_alpha/classes.rb +681 -127
  202. data/generated/google/apis/compute_alpha/representations.rb +110 -6
  203. data/generated/google/apis/compute_alpha/service.rb +695 -692
  204. data/generated/google/apis/compute_beta.rb +1 -1
  205. data/generated/google/apis/compute_beta/classes.rb +570 -70
  206. data/generated/google/apis/compute_beta/representations.rb +112 -1
  207. data/generated/google/apis/compute_beta/service.rb +608 -605
  208. data/generated/google/apis/compute_v1.rb +1 -1
  209. data/generated/google/apis/compute_v1/classes.rb +977 -85
  210. data/generated/google/apis/compute_v1/representations.rb +372 -0
  211. data/generated/google/apis/compute_v1/service.rb +747 -15
  212. data/generated/google/apis/container_v1.rb +1 -1
  213. data/generated/google/apis/container_v1/classes.rb +915 -965
  214. data/generated/google/apis/container_v1/representations.rb +53 -0
  215. data/generated/google/apis/container_v1/service.rb +435 -502
  216. data/generated/google/apis/container_v1beta1.rb +1 -1
  217. data/generated/google/apis/container_v1beta1/classes.rb +1021 -1043
  218. data/generated/google/apis/container_v1beta1/representations.rb +70 -0
  219. data/generated/google/apis/container_v1beta1/service.rb +403 -466
  220. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  221. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +456 -596
  222. data/generated/google/apis/containeranalysis_v1alpha1/service.rb +149 -169
  223. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  224. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +454 -613
  225. data/generated/google/apis/containeranalysis_v1beta1/service.rb +75 -90
  226. data/generated/google/apis/content_v2.rb +1 -1
  227. data/generated/google/apis/content_v2/classes.rb +3 -1
  228. data/generated/google/apis/content_v2_1.rb +1 -1
  229. data/generated/google/apis/content_v2_1/classes.rb +93 -2
  230. data/generated/google/apis/content_v2_1/representations.rb +34 -0
  231. data/generated/google/apis/content_v2_1/service.rb +53 -2
  232. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  233. data/generated/google/apis/datacatalog_v1beta1/classes.rb +382 -573
  234. data/generated/google/apis/datacatalog_v1beta1/service.rb +319 -440
  235. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  236. data/generated/google/apis/dataflow_v1b3/classes.rb +1015 -973
  237. data/generated/google/apis/dataflow_v1b3/representations.rb +115 -0
  238. data/generated/google/apis/dataflow_v1b3/service.rb +299 -257
  239. data/generated/google/apis/datafusion_v1.rb +5 -8
  240. data/generated/google/apis/datafusion_v1/classes.rb +268 -397
  241. data/generated/google/apis/datafusion_v1/representations.rb +3 -0
  242. data/generated/google/apis/datafusion_v1/service.rb +76 -89
  243. data/generated/google/apis/datafusion_v1beta1.rb +5 -8
  244. data/generated/google/apis/datafusion_v1beta1/classes.rb +268 -397
  245. data/generated/google/apis/datafusion_v1beta1/representations.rb +3 -0
  246. data/generated/google/apis/datafusion_v1beta1/service.rb +81 -95
  247. data/generated/google/apis/dataproc_v1.rb +1 -1
  248. data/generated/google/apis/dataproc_v1/classes.rb +37 -4
  249. data/generated/google/apis/dataproc_v1/representations.rb +16 -0
  250. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  251. data/generated/google/apis/dataproc_v1beta2/classes.rb +56 -0
  252. data/generated/google/apis/dataproc_v1beta2/representations.rb +31 -0
  253. data/generated/google/apis/datastore_v1.rb +1 -1
  254. data/generated/google/apis/datastore_v1/classes.rb +330 -472
  255. data/generated/google/apis/datastore_v1/service.rb +52 -63
  256. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  257. data/generated/google/apis/datastore_v1beta1/classes.rb +150 -217
  258. data/generated/google/apis/datastore_v1beta1/service.rb +11 -12
  259. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  260. data/generated/google/apis/datastore_v1beta3/classes.rb +255 -371
  261. data/generated/google/apis/datastore_v1beta3/service.rb +1 -2
  262. data/generated/google/apis/dfareporting_v3_3.rb +2 -2
  263. data/generated/google/apis/dfareporting_v3_3/classes.rb +326 -339
  264. data/generated/google/apis/dfareporting_v3_3/representations.rb +42 -0
  265. data/generated/google/apis/dfareporting_v3_3/service.rb +673 -1286
  266. data/generated/google/apis/dfareporting_v3_4.rb +2 -2
  267. data/generated/google/apis/dfareporting_v3_4/classes.rb +348 -350
  268. data/generated/google/apis/dfareporting_v3_4/representations.rb +43 -0
  269. data/generated/google/apis/dfareporting_v3_4/service.rb +708 -1285
  270. data/generated/google/apis/dialogflow_v2.rb +1 -1
  271. data/generated/google/apis/dialogflow_v2/classes.rb +84 -44
  272. data/generated/google/apis/dialogflow_v2/representations.rb +52 -15
  273. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  274. data/generated/google/apis/dialogflow_v2beta1/classes.rb +84 -44
  275. data/generated/google/apis/dialogflow_v2beta1/representations.rb +52 -15
  276. data/generated/google/apis/dialogflow_v2beta1/service.rb +37 -0
  277. data/generated/google/apis/{securitycenter_v1p1alpha1.rb → dialogflow_v3beta1.rb} +13 -10
  278. data/generated/google/apis/dialogflow_v3beta1/classes.rb +8183 -0
  279. data/generated/google/apis/dialogflow_v3beta1/representations.rb +3459 -0
  280. data/generated/google/apis/dialogflow_v3beta1/service.rb +2812 -0
  281. data/generated/google/apis/displayvideo_v1.rb +1 -1
  282. data/generated/google/apis/displayvideo_v1/classes.rb +55 -8
  283. data/generated/google/apis/displayvideo_v1/representations.rb +5 -0
  284. data/generated/google/apis/displayvideo_v1/service.rb +48 -36
  285. data/generated/google/apis/dlp_v2.rb +1 -1
  286. data/generated/google/apis/dlp_v2/classes.rb +1076 -1302
  287. data/generated/google/apis/dlp_v2/service.rb +962 -905
  288. data/generated/google/apis/dns_v1.rb +1 -1
  289. data/generated/google/apis/dns_v1/classes.rb +175 -198
  290. data/generated/google/apis/dns_v1/service.rb +82 -97
  291. data/generated/google/apis/dns_v1beta2.rb +1 -1
  292. data/generated/google/apis/dns_v1beta2/classes.rb +180 -205
  293. data/generated/google/apis/dns_v1beta2/service.rb +82 -97
  294. data/generated/google/apis/docs_v1.rb +1 -1
  295. data/generated/google/apis/docs_v1/classes.rb +894 -1229
  296. data/generated/google/apis/docs_v1/service.rb +17 -22
  297. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  298. data/generated/google/apis/documentai_v1beta2/classes.rb +1186 -810
  299. data/generated/google/apis/documentai_v1beta2/representations.rb +303 -0
  300. data/generated/google/apis/documentai_v1beta2/service.rb +22 -24
  301. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -2
  302. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -12
  303. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -64
  304. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +3 -2
  305. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +11 -18
  306. data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +33 -64
  307. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  308. data/generated/google/apis/doubleclicksearch_v2/service.rb +2 -2
  309. data/generated/google/apis/drive_v2.rb +1 -1
  310. data/generated/google/apis/drive_v2/classes.rb +14 -6
  311. data/generated/google/apis/drive_v2/representations.rb +1 -0
  312. data/generated/google/apis/drive_v2/service.rb +79 -15
  313. data/generated/google/apis/drive_v3.rb +1 -1
  314. data/generated/google/apis/drive_v3/classes.rb +14 -6
  315. data/generated/google/apis/drive_v3/representations.rb +1 -0
  316. data/generated/google/apis/drive_v3/service.rb +59 -11
  317. data/generated/google/apis/file_v1.rb +1 -1
  318. data/generated/google/apis/file_v1/classes.rb +154 -173
  319. data/generated/google/apis/file_v1/service.rb +43 -52
  320. data/generated/google/apis/file_v1beta1.rb +1 -1
  321. data/generated/google/apis/file_v1beta1/classes.rb +334 -193
  322. data/generated/google/apis/file_v1beta1/representations.rb +55 -0
  323. data/generated/google/apis/file_v1beta1/service.rb +267 -55
  324. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  325. data/generated/google/apis/firebase_v1beta1/classes.rb +25 -47
  326. data/generated/google/apis/firebase_v1beta1/representations.rb +2 -16
  327. data/generated/google/apis/firebase_v1beta1/service.rb +8 -1
  328. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  329. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +26 -0
  330. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +15 -0
  331. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  332. data/generated/google/apis/firebaseml_v1beta2/classes.rb +0 -8
  333. data/generated/google/apis/firebaseml_v1beta2/representations.rb +0 -1
  334. data/generated/google/apis/firebaserules_v1.rb +1 -1
  335. data/generated/google/apis/firebaserules_v1/classes.rb +102 -137
  336. data/generated/google/apis/firebaserules_v1/service.rb +87 -110
  337. data/generated/google/apis/firestore_v1.rb +1 -1
  338. data/generated/google/apis/firestore_v1/classes.rb +402 -498
  339. data/generated/google/apis/firestore_v1/service.rb +165 -201
  340. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  341. data/generated/google/apis/firestore_v1beta1/classes.rb +334 -409
  342. data/generated/google/apis/firestore_v1beta1/service.rb +106 -122
  343. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  344. data/generated/google/apis/firestore_v1beta2/classes.rb +135 -165
  345. data/generated/google/apis/firestore_v1beta2/service.rb +65 -86
  346. data/generated/google/apis/fitness_v1.rb +85 -0
  347. data/generated/google/apis/fitness_v1/classes.rb +982 -0
  348. data/generated/google/apis/fitness_v1/representations.rb +398 -0
  349. data/generated/google/apis/fitness_v1/service.rb +626 -0
  350. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  351. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -3
  352. data/generated/google/apis/games_configuration_v1configuration/service.rb +6 -6
  353. data/generated/google/apis/games_management_v1management.rb +2 -3
  354. data/generated/google/apis/games_management_v1management/classes.rb +14 -20
  355. data/generated/google/apis/games_management_v1management/service.rb +35 -36
  356. data/generated/google/apis/games_v1.rb +2 -3
  357. data/generated/google/apis/games_v1/classes.rb +76 -83
  358. data/generated/google/apis/games_v1/representations.rb +2 -0
  359. data/generated/google/apis/games_v1/service.rb +84 -90
  360. data/generated/google/apis/genomics_v1.rb +1 -1
  361. data/generated/google/apis/genomics_v1/classes.rb +70 -76
  362. data/generated/google/apis/genomics_v1/service.rb +28 -43
  363. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  364. data/generated/google/apis/genomics_v1alpha2/classes.rb +223 -290
  365. data/generated/google/apis/genomics_v1alpha2/service.rb +54 -76
  366. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  367. data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -275
  368. data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
  369. data/generated/google/apis/genomics_v2alpha1/service.rb +47 -66
  370. data/generated/google/apis/gmail_v1.rb +1 -1
  371. data/generated/google/apis/gmail_v1/classes.rb +37 -43
  372. data/generated/google/apis/gmail_v1/service.rb +4 -3
  373. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +2 -2
  374. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +1 -1
  375. data/generated/google/apis/groupsmigration_v1.rb +35 -0
  376. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  377. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  378. data/generated/google/apis/groupsmigration_v1/service.rb +100 -0
  379. data/generated/google/apis/healthcare_v1.rb +1 -1
  380. data/generated/google/apis/healthcare_v1/classes.rb +563 -826
  381. data/generated/google/apis/healthcare_v1/service.rb +675 -853
  382. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  383. data/generated/google/apis/healthcare_v1beta1/classes.rb +828 -1102
  384. data/generated/google/apis/healthcare_v1beta1/representations.rb +20 -0
  385. data/generated/google/apis/healthcare_v1beta1/service.rb +895 -1139
  386. data/generated/google/apis/homegraph_v1.rb +1 -1
  387. data/generated/google/apis/homegraph_v1/classes.rb +76 -164
  388. data/generated/google/apis/homegraph_v1/service.rb +23 -35
  389. data/generated/google/apis/iam_v1.rb +5 -2
  390. data/generated/google/apis/iam_v1/classes.rb +388 -592
  391. data/generated/google/apis/iam_v1/service.rb +429 -555
  392. data/generated/google/apis/iamcredentials_v1.rb +4 -2
  393. data/generated/google/apis/iamcredentials_v1/classes.rb +75 -85
  394. data/generated/google/apis/iamcredentials_v1/service.rb +15 -13
  395. data/generated/google/apis/iap_v1.rb +1 -1
  396. data/generated/google/apis/iap_v1/classes.rb +246 -355
  397. data/generated/google/apis/iap_v1/service.rb +61 -71
  398. data/generated/google/apis/iap_v1beta1.rb +1 -1
  399. data/generated/google/apis/iap_v1beta1/classes.rb +157 -254
  400. data/generated/google/apis/iap_v1beta1/service.rb +17 -19
  401. data/generated/google/apis/indexing_v3.rb +1 -1
  402. data/generated/google/apis/indexing_v3/classes.rb +11 -11
  403. data/generated/google/apis/kgsearch_v1.rb +1 -1
  404. data/generated/google/apis/kgsearch_v1/classes.rb +4 -4
  405. data/generated/google/apis/kgsearch_v1/service.rb +11 -11
  406. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  407. data/generated/google/apis/lifesciences_v2beta/classes.rb +262 -290
  408. data/generated/google/apis/lifesciences_v2beta/service.rb +30 -42
  409. data/generated/google/apis/localservices_v1.rb +31 -0
  410. data/generated/google/apis/localservices_v1/classes.rb +419 -0
  411. data/generated/google/apis/localservices_v1/representations.rb +172 -0
  412. data/generated/google/apis/localservices_v1/service.rb +199 -0
  413. data/generated/google/apis/logging_v2.rb +1 -1
  414. data/generated/google/apis/logging_v2/classes.rb +174 -214
  415. data/generated/google/apis/logging_v2/representations.rb +15 -0
  416. data/generated/google/apis/logging_v2/service.rb +1017 -584
  417. data/generated/google/apis/manufacturers_v1.rb +1 -1
  418. data/generated/google/apis/manufacturers_v1/classes.rb +99 -109
  419. data/generated/google/apis/manufacturers_v1/service.rb +44 -55
  420. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  421. data/generated/google/apis/memcache_v1beta2/classes.rb +170 -249
  422. data/generated/google/apis/memcache_v1beta2/representations.rb +0 -19
  423. data/generated/google/apis/memcache_v1beta2/service.rb +58 -71
  424. data/generated/google/apis/ml_v1.rb +1 -1
  425. data/generated/google/apis/ml_v1/classes.rb +949 -1144
  426. data/generated/google/apis/ml_v1/representations.rb +64 -0
  427. data/generated/google/apis/ml_v1/service.rb +194 -253
  428. data/generated/google/apis/monitoring_v1.rb +1 -1
  429. data/generated/google/apis/monitoring_v1/classes.rb +103 -26
  430. data/generated/google/apis/monitoring_v1/representations.rb +35 -0
  431. data/generated/google/apis/monitoring_v1/service.rb +10 -11
  432. data/generated/google/apis/monitoring_v3.rb +1 -1
  433. data/generated/google/apis/monitoring_v3/classes.rb +220 -322
  434. data/generated/google/apis/monitoring_v3/service.rb +121 -140
  435. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  436. data/generated/google/apis/networkmanagement_v1/classes.rb +273 -429
  437. data/generated/google/apis/networkmanagement_v1/service.rb +97 -120
  438. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  439. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +388 -429
  440. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +40 -0
  441. data/generated/google/apis/networkmanagement_v1beta1/service.rb +97 -120
  442. data/generated/google/apis/osconfig_v1.rb +1 -1
  443. data/generated/google/apis/osconfig_v1/classes.rb +226 -270
  444. data/generated/google/apis/osconfig_v1/service.rb +22 -27
  445. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  446. data/generated/google/apis/osconfig_v1beta/classes.rb +1031 -411
  447. data/generated/google/apis/osconfig_v1beta/representations.rb +337 -0
  448. data/generated/google/apis/osconfig_v1beta/service.rb +39 -52
  449. data/generated/google/apis/oslogin_v1.rb +1 -1
  450. data/generated/google/apis/oslogin_v1/classes.rb +14 -12
  451. data/generated/google/apis/oslogin_v1/representations.rb +1 -0
  452. data/generated/google/apis/oslogin_v1/service.rb +12 -16
  453. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  454. data/generated/google/apis/oslogin_v1alpha/classes.rb +14 -12
  455. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  456. data/generated/google/apis/oslogin_v1alpha/service.rb +14 -14
  457. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  458. data/generated/google/apis/oslogin_v1beta/classes.rb +14 -12
  459. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  460. data/generated/google/apis/oslogin_v1beta/service.rb +12 -16
  461. data/generated/google/apis/pagespeedonline_v5.rb +2 -2
  462. data/generated/google/apis/pagespeedonline_v5/classes.rb +18 -24
  463. data/generated/google/apis/pagespeedonline_v5/service.rb +3 -4
  464. data/generated/google/apis/people_v1.rb +1 -1
  465. data/generated/google/apis/people_v1/classes.rb +121 -12
  466. data/generated/google/apis/people_v1/representations.rb +41 -0
  467. data/generated/google/apis/people_v1/service.rb +39 -39
  468. data/generated/google/apis/playablelocations_v3.rb +1 -1
  469. data/generated/google/apis/playablelocations_v3/classes.rb +108 -155
  470. data/generated/google/apis/playablelocations_v3/service.rb +10 -10
  471. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  472. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +6 -0
  473. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +1 -0
  474. data/generated/google/apis/pubsub_v1.rb +1 -1
  475. data/generated/google/apis/pubsub_v1/classes.rb +392 -518
  476. data/generated/google/apis/pubsub_v1/representations.rb +1 -0
  477. data/generated/google/apis/pubsub_v1/service.rb +220 -246
  478. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  479. data/generated/google/apis/pubsub_v1beta1a/classes.rb +71 -86
  480. data/generated/google/apis/pubsub_v1beta1a/service.rb +31 -38
  481. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  482. data/generated/google/apis/pubsub_v1beta2/classes.rb +244 -354
  483. data/generated/google/apis/pubsub_v1beta2/service.rb +96 -108
  484. data/generated/google/apis/{memcache_v1.rb → pubsublite_v1.rb} +8 -9
  485. data/generated/google/apis/pubsublite_v1/classes.rb +389 -0
  486. data/generated/google/apis/{accessapproval_v1beta1 → pubsublite_v1}/representations.rb +78 -53
  487. data/generated/google/apis/{memcache_v1 → pubsublite_v1}/service.rb +195 -228
  488. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  489. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  490. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +335 -456
  491. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +0 -16
  492. data/generated/google/apis/recommendationengine_v1beta1/service.rb +140 -206
  493. data/generated/google/apis/redis_v1.rb +1 -1
  494. data/generated/google/apis/redis_v1/classes.rb +172 -208
  495. data/generated/google/apis/redis_v1/service.rb +93 -110
  496. data/generated/google/apis/redis_v1beta1.rb +1 -1
  497. data/generated/google/apis/redis_v1beta1/classes.rb +176 -212
  498. data/generated/google/apis/redis_v1beta1/service.rb +93 -110
  499. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  500. data/generated/google/apis/remotebuildexecution_v1/classes.rb +951 -1078
  501. data/generated/google/apis/remotebuildexecution_v1/representations.rb +61 -0
  502. data/generated/google/apis/remotebuildexecution_v1/service.rb +26 -33
  503. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  504. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +946 -1071
  505. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +61 -0
  506. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +103 -65
  507. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  508. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1099 -1250
  509. data/generated/google/apis/remotebuildexecution_v2/representations.rb +61 -0
  510. data/generated/google/apis/remotebuildexecution_v2/service.rb +147 -206
  511. data/generated/google/apis/run_v1.rb +1 -1
  512. data/generated/google/apis/run_v1/classes.rb +4 -3
  513. data/generated/google/apis/run_v1/representations.rb +1 -1
  514. data/generated/google/apis/run_v1alpha1.rb +1 -1
  515. data/generated/google/apis/run_v1alpha1/classes.rb +1 -1
  516. data/generated/google/apis/run_v1alpha1/representations.rb +1 -1
  517. data/generated/google/apis/run_v1beta1.rb +1 -1
  518. data/generated/google/apis/run_v1beta1/classes.rb +3 -2
  519. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  520. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +295 -412
  521. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +135 -159
  522. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  523. data/generated/google/apis/safebrowsing_v4/classes.rb +55 -64
  524. data/generated/google/apis/safebrowsing_v4/service.rb +4 -4
  525. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  526. data/generated/google/apis/sasportal_v1alpha1/classes.rb +6 -0
  527. data/generated/google/apis/sasportal_v1alpha1/representations.rb +1 -0
  528. data/generated/google/apis/script_v1.rb +1 -1
  529. data/generated/google/apis/script_v1/classes.rb +88 -111
  530. data/generated/google/apis/script_v1/service.rb +63 -69
  531. data/generated/google/apis/secretmanager_v1.rb +1 -1
  532. data/generated/google/apis/secretmanager_v1/classes.rb +211 -363
  533. data/generated/google/apis/secretmanager_v1/service.rb +66 -82
  534. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  535. data/generated/google/apis/secretmanager_v1beta1/classes.rb +211 -363
  536. data/generated/google/apis/secretmanager_v1beta1/service.rb +66 -82
  537. data/generated/google/apis/securitycenter_v1.rb +1 -1
  538. data/generated/google/apis/securitycenter_v1/classes.rb +16 -6
  539. data/generated/google/apis/securitycenter_v1/representations.rb +1 -0
  540. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  541. data/generated/google/apis/securitycenter_v1beta1/classes.rb +21 -9
  542. data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -0
  543. data/generated/google/apis/{securitycenter_v1p1beta1.rb → securitycenter_v1beta2.rb} +6 -6
  544. data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/classes.rb +281 -103
  545. data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/representations.rb +101 -30
  546. data/generated/google/apis/securitycenter_v1beta2/service.rb +1494 -0
  547. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  548. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +18 -48
  549. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  550. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +19 -49
  551. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  552. data/generated/google/apis/servicecontrol_v1/classes.rb +523 -641
  553. data/generated/google/apis/servicecontrol_v1/service.rb +36 -46
  554. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  555. data/generated/google/apis/servicecontrol_v2/classes.rb +279 -325
  556. data/generated/google/apis/servicecontrol_v2/service.rb +33 -43
  557. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  558. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +214 -333
  559. data/generated/google/apis/servicedirectory_v1beta1/service.rb +94 -129
  560. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  561. data/generated/google/apis/servicemanagement_v1/classes.rb +1266 -2116
  562. data/generated/google/apis/servicemanagement_v1/service.rb +144 -195
  563. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  564. data/generated/google/apis/servicenetworking_v1/classes.rb +93 -48
  565. data/generated/google/apis/servicenetworking_v1/representations.rb +52 -0
  566. data/generated/google/apis/servicenetworking_v1/service.rb +116 -0
  567. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  568. data/generated/google/apis/servicenetworking_v1beta/classes.rb +74 -48
  569. data/generated/google/apis/servicenetworking_v1beta/representations.rb +38 -0
  570. data/generated/google/apis/serviceusage_v1.rb +1 -1
  571. data/generated/google/apis/serviceusage_v1/classes.rb +52 -48
  572. data/generated/google/apis/serviceusage_v1/representations.rb +4 -0
  573. data/generated/google/apis/serviceusage_v1/service.rb +5 -1
  574. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  575. data/generated/google/apis/serviceusage_v1beta1/classes.rb +87 -49
  576. data/generated/google/apis/serviceusage_v1beta1/representations.rb +8 -0
  577. data/generated/google/apis/sheets_v4.rb +1 -1
  578. data/generated/google/apis/sheets_v4/classes.rb +3932 -5007
  579. data/generated/google/apis/sheets_v4/representations.rb +625 -0
  580. data/generated/google/apis/sheets_v4/service.rb +113 -149
  581. data/generated/google/apis/site_verification_v1.rb +1 -1
  582. data/generated/google/apis/slides_v1.rb +1 -1
  583. data/generated/google/apis/slides_v1/classes.rb +841 -1114
  584. data/generated/google/apis/slides_v1/service.rb +23 -30
  585. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  586. data/generated/google/apis/sourcerepo_v1/classes.rb +6 -6
  587. data/generated/google/apis/spanner_v1.rb +1 -1
  588. data/generated/google/apis/spanner_v1/classes.rb +1546 -2157
  589. data/generated/google/apis/spanner_v1/service.rb +443 -618
  590. data/generated/google/apis/speech_v1.rb +1 -1
  591. data/generated/google/apis/speech_v1/classes.rb +174 -220
  592. data/generated/google/apis/speech_v1/service.rb +27 -32
  593. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  594. data/generated/google/apis/speech_v1p1beta1/classes.rb +253 -306
  595. data/generated/google/apis/speech_v1p1beta1/service.rb +27 -32
  596. data/generated/google/apis/speech_v2beta1.rb +1 -1
  597. data/generated/google/apis/speech_v2beta1/classes.rb +66 -76
  598. data/generated/google/apis/speech_v2beta1/service.rb +10 -12
  599. data/generated/google/apis/sql_v1beta4.rb +1 -1
  600. data/generated/google/apis/sql_v1beta4/classes.rb +311 -370
  601. data/generated/google/apis/sql_v1beta4/representations.rb +2 -0
  602. data/generated/google/apis/sql_v1beta4/service.rb +51 -56
  603. data/generated/google/apis/storage_v1.rb +1 -1
  604. data/generated/google/apis/storage_v1/classes.rb +8 -7
  605. data/generated/google/apis/storage_v1/representations.rb +2 -2
  606. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  607. data/generated/google/apis/storagetransfer_v1/classes.rb +261 -339
  608. data/generated/google/apis/storagetransfer_v1/service.rb +43 -64
  609. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  610. data/generated/google/apis/streetviewpublish_v1/classes.rb +106 -148
  611. data/generated/google/apis/streetviewpublish_v1/service.rb +94 -177
  612. data/generated/google/apis/tagmanager_v1.rb +1 -1
  613. data/generated/google/apis/tagmanager_v1/service.rb +2 -2
  614. data/generated/google/apis/tagmanager_v2.rb +1 -1
  615. data/generated/google/apis/tagmanager_v2/service.rb +2 -2
  616. data/generated/google/apis/tasks_v1.rb +1 -1
  617. data/generated/google/apis/tasks_v1/classes.rb +20 -21
  618. data/generated/google/apis/tasks_v1/service.rb +16 -17
  619. data/generated/google/apis/testing_v1.rb +1 -1
  620. data/generated/google/apis/testing_v1/classes.rb +317 -382
  621. data/generated/google/apis/testing_v1/representations.rb +2 -0
  622. data/generated/google/apis/testing_v1/service.rb +22 -28
  623. data/generated/google/apis/texttospeech_v1.rb +1 -1
  624. data/generated/google/apis/texttospeech_v1/classes.rb +51 -57
  625. data/generated/google/apis/texttospeech_v1/service.rb +9 -10
  626. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  627. data/generated/google/apis/texttospeech_v1beta1/classes.rb +96 -57
  628. data/generated/google/apis/texttospeech_v1beta1/representations.rb +19 -0
  629. data/generated/google/apis/texttospeech_v1beta1/service.rb +9 -10
  630. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  631. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -0
  632. data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
  633. data/generated/google/apis/tpu_v1.rb +1 -1
  634. data/generated/google/apis/tpu_v1/classes.rb +11 -0
  635. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  636. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  637. data/generated/google/apis/tpu_v1alpha1/classes.rb +11 -0
  638. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  639. data/generated/google/apis/{accessapproval_v1beta1.rb → trafficdirector_v2.rb} +9 -9
  640. data/generated/google/apis/trafficdirector_v2/classes.rb +1347 -0
  641. data/generated/google/apis/trafficdirector_v2/representations.rb +620 -0
  642. data/generated/google/apis/trafficdirector_v2/service.rb +89 -0
  643. data/generated/google/apis/translate_v3.rb +1 -1
  644. data/generated/google/apis/translate_v3/classes.rb +148 -175
  645. data/generated/google/apis/translate_v3/service.rb +122 -151
  646. data/generated/google/apis/translate_v3beta1.rb +1 -1
  647. data/generated/google/apis/translate_v3beta1/classes.rb +149 -170
  648. data/generated/google/apis/translate_v3beta1/service.rb +122 -151
  649. data/generated/google/apis/vectortile_v1.rb +1 -1
  650. data/generated/google/apis/vectortile_v1/classes.rb +185 -267
  651. data/generated/google/apis/vectortile_v1/service.rb +75 -88
  652. data/generated/google/apis/videointelligence_v1.rb +1 -1
  653. data/generated/google/apis/videointelligence_v1/classes.rb +753 -918
  654. data/generated/google/apis/videointelligence_v1/service.rb +40 -48
  655. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  656. data/generated/google/apis/videointelligence_v1beta2/classes.rb +748 -911
  657. data/generated/google/apis/videointelligence_v1beta2/service.rb +4 -4
  658. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  659. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +748 -911
  660. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +4 -4
  661. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  662. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +748 -911
  663. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +4 -4
  664. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  665. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +754 -920
  666. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +4 -4
  667. data/generated/google/apis/webfonts_v1.rb +2 -3
  668. data/generated/google/apis/webfonts_v1/classes.rb +1 -2
  669. data/generated/google/apis/webfonts_v1/service.rb +2 -4
  670. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  671. data/generated/google/apis/youtube_v3.rb +1 -1
  672. data/generated/google/apis/youtube_v3/classes.rb +347 -0
  673. data/generated/google/apis/youtube_v3/representations.rb +176 -0
  674. data/generated/google/apis/youtube_v3/service.rb +78 -0
  675. data/lib/google/apis/version.rb +1 -1
  676. metadata +31 -31
  677. data/generated/google/apis/accessapproval_v1beta1/classes.rb +0 -417
  678. data/generated/google/apis/accessapproval_v1beta1/service.rb +0 -857
  679. data/generated/google/apis/dns_v2beta1.rb +0 -43
  680. data/generated/google/apis/dns_v2beta1/classes.rb +0 -1447
  681. data/generated/google/apis/dns_v2beta1/representations.rb +0 -588
  682. data/generated/google/apis/dns_v2beta1/service.rb +0 -928
  683. data/generated/google/apis/memcache_v1/classes.rb +0 -1157
  684. data/generated/google/apis/memcache_v1/representations.rb +0 -471
  685. data/generated/google/apis/oauth2_v2.rb +0 -40
  686. data/generated/google/apis/oauth2_v2/classes.rb +0 -165
  687. data/generated/google/apis/oauth2_v2/representations.rb +0 -68
  688. data/generated/google/apis/oauth2_v2/service.rb +0 -158
  689. data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +0 -207
  690. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +0 -2059
  691. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +0 -789
  692. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +0 -1243
  693. data/generated/google/apis/storage_v1beta2.rb +0 -40
  694. data/generated/google/apis/storage_v1beta2/classes.rb +0 -1047
  695. data/generated/google/apis/storage_v1beta2/representations.rb +0 -425
  696. data/generated/google/apis/storage_v1beta2/service.rb +0 -1667
@@ -1,1243 +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 SecuritycenterV1p1beta1
23
- # Security Command Center API
24
- #
25
- # Security Command Center API provides access to temporal views of assets and
26
- # findings within an organization.
27
- #
28
- # @example
29
- # require 'google/apis/securitycenter_v1p1beta1'
30
- #
31
- # Securitycenter = Google::Apis::SecuritycenterV1p1beta1 # Alias the module
32
- # service = Securitycenter::SecurityCommandCenterService.new
33
- #
34
- # @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
35
- class SecurityCommandCenterService < Google::Apis::Core::BaseService
36
- # @return [String]
37
- # API key. Your API key identifies your project and provides you with API access,
38
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
- attr_accessor :key
40
-
41
- # @return [String]
42
- # Available to use for quota purposes for server-side applications. Can be any
43
- # arbitrary string assigned to a user, but should not exceed 40 characters.
44
- attr_accessor :quota_user
45
-
46
- def initialize
47
- super('https://securitycenter.googleapis.com/', '')
48
- @batch_path = 'batch'
49
- end
50
-
51
- # Gets the settings for an organization.
52
- # @param [String] name
53
- # Required. Name of the organization to get organization settings for. Its
54
- # format is "organizations/[organization_id]/organizationSettings".
55
- # @param [String] fields
56
- # Selector specifying which fields to include in a partial response.
57
- # @param [String] quota_user
58
- # Available to use for quota purposes for server-side applications. Can be any
59
- # arbitrary string assigned to a user, but should not exceed 40 characters.
60
- # @param [Google::Apis::RequestOptions] options
61
- # Request-specific options
62
- #
63
- # @yield [result, err] Result & error if block supplied
64
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::OrganizationSettings] parsed result object
65
- # @yieldparam err [StandardError] error object if request failed
66
- #
67
- # @return [Google::Apis::SecuritycenterV1p1beta1::OrganizationSettings]
68
- #
69
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
- # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def get_organization_organization_settings(name, fields: nil, quota_user: nil, options: nil, &block)
73
- command = make_simple_command(:get, 'v1p1beta1/{+name}', options)
74
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::OrganizationSettings::Representation
75
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::OrganizationSettings
76
- command.params['name'] = name unless name.nil?
77
- command.query['fields'] = fields unless fields.nil?
78
- command.query['quotaUser'] = quota_user unless quota_user.nil?
79
- execute_or_queue_command(command, &block)
80
- end
81
-
82
- # Updates an organization's settings.
83
- # @param [String] name
84
- # The relative resource name of the settings. See: https://cloud.google.com/apis/
85
- # design/resource_names#relative_resource_name Example: "organizations/`
86
- # organization_id`/organizationSettings".
87
- # @param [Google::Apis::SecuritycenterV1p1beta1::OrganizationSettings] organization_settings_object
88
- # @param [String] update_mask
89
- # The FieldMask to use when updating the settings resource. If empty all mutable
90
- # fields will be updated.
91
- # @param [String] fields
92
- # Selector specifying which fields to include in a partial response.
93
- # @param [String] quota_user
94
- # Available to use for quota purposes for server-side applications. Can be any
95
- # arbitrary string assigned to a user, but should not exceed 40 characters.
96
- # @param [Google::Apis::RequestOptions] options
97
- # Request-specific options
98
- #
99
- # @yield [result, err] Result & error if block supplied
100
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::OrganizationSettings] parsed result object
101
- # @yieldparam err [StandardError] error object if request failed
102
- #
103
- # @return [Google::Apis::SecuritycenterV1p1beta1::OrganizationSettings]
104
- #
105
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
- # @raise [Google::Apis::AuthorizationError] Authorization is required
108
- def update_organization_organization_settings(name, organization_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
109
- command = make_simple_command(:patch, 'v1p1beta1/{+name}', options)
110
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::OrganizationSettings::Representation
111
- command.request_object = organization_settings_object
112
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::OrganizationSettings::Representation
113
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::OrganizationSettings
114
- command.params['name'] = name unless name.nil?
115
- command.query['updateMask'] = update_mask unless update_mask.nil?
116
- command.query['fields'] = fields unless fields.nil?
117
- command.query['quotaUser'] = quota_user unless quota_user.nil?
118
- execute_or_queue_command(command, &block)
119
- end
120
-
121
- # Filters an organization's assets and groups them by their specified properties.
122
- # @param [String] parent
123
- # Required. Name of the organization to groupBy. Its format is "organizations/[
124
- # organization_id]".
125
- # @param [Google::Apis::SecuritycenterV1p1beta1::GroupAssetsRequest] group_assets_request_object
126
- # @param [String] fields
127
- # Selector specifying which fields to include in a partial response.
128
- # @param [String] quota_user
129
- # Available to use for quota purposes for server-side applications. Can be any
130
- # arbitrary string assigned to a user, but should not exceed 40 characters.
131
- # @param [Google::Apis::RequestOptions] options
132
- # Request-specific options
133
- #
134
- # @yield [result, err] Result & error if block supplied
135
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::GroupAssetsResponse] parsed result object
136
- # @yieldparam err [StandardError] error object if request failed
137
- #
138
- # @return [Google::Apis::SecuritycenterV1p1beta1::GroupAssetsResponse]
139
- #
140
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
141
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
142
- # @raise [Google::Apis::AuthorizationError] Authorization is required
143
- def group_assets(parent, group_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
144
- command = make_simple_command(:post, 'v1p1beta1/{+parent}/assets:group', options)
145
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::GroupAssetsRequest::Representation
146
- command.request_object = group_assets_request_object
147
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::GroupAssetsResponse::Representation
148
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::GroupAssetsResponse
149
- command.params['parent'] = parent unless parent.nil?
150
- command.query['fields'] = fields unless fields.nil?
151
- command.query['quotaUser'] = quota_user unless quota_user.nil?
152
- execute_or_queue_command(command, &block)
153
- end
154
-
155
- # Lists an organization's assets.
156
- # @param [String] parent
157
- # Required. Name of the organization assets should belong to. Its format is "
158
- # organizations/[organization_id]".
159
- # @param [String] compare_duration
160
- # When compare_duration is set, the ListAssetsResult's "state_change" attribute
161
- # is updated to indicate whether the asset was added, removed, or remained
162
- # present during the compare_duration period of time that precedes the read_time.
163
- # This is the time between (read_time - compare_duration) and read_time. The
164
- # state_change value is derived based on the presence of the asset at the two
165
- # points in time. Intermediate state changes between the two times don't affect
166
- # the result. For example, the results aren't affected if the asset is removed
167
- # and re-created again. Possible "state_change" values when compare_duration is
168
- # specified: * "ADDED": indicates that the asset was not present at the start of
169
- # compare_duration, but present at read_time. * "REMOVED": indicates that the
170
- # asset was present at the start of compare_duration, but not present at
171
- # read_time. * "ACTIVE": indicates that the asset was present at both the start
172
- # and the end of the time period defined by compare_duration and read_time. If
173
- # compare_duration is not specified, then the only possible state_change is "
174
- # UNUSED", which will be the state_change set for all assets present at
175
- # read_time.
176
- # @param [String] field_mask
177
- # A field mask to specify the ListAssetsResult fields to be listed in the
178
- # response. An empty field mask will list all fields.
179
- # @param [String] filter
180
- # Expression that defines the filter to apply across assets. The expression is a
181
- # list of zero or more restrictions combined via logical operators `AND` and `OR`
182
- # . Parentheses are supported, and `OR` has higher precedence than `AND`.
183
- # Restrictions have the form ` ` and may have a `-` character in front of them
184
- # to indicate negation. The fields map to those defined in the Asset resource.
185
- # Examples include: * name * security_center_properties.resource_name *
186
- # resource_properties.a_property * security_marks.marks.marka The supported
187
- # operators are: * `=` for all value types. * `>`, `<`, `>=`, `<=` for integer
188
- # values. * `:`, meaning substring matching, for strings. The supported value
189
- # types are: * string literals in quotes. * integer literals without quotes. *
190
- # boolean literals `true` and `false` without quotes. The following are the
191
- # allowed field and operator combinations: * name: `=` * update_time: `=`, `>`, `
192
- # <`, `>=`, `<=` Usage: This should be milliseconds since epoch or an RFC3339
193
- # string. Examples: `update_time = "2019-06-10T16:07:18-07:00"` `update_time =
194
- # 1560208038000` * create_time: `=`, `>`, `<`, `>=`, `<=` Usage: This should be
195
- # milliseconds since epoch or an RFC3339 string. Examples: `create_time = "2019-
196
- # 06-10T16:07:18-07:00"` `create_time = 1560208038000` * iam_policy.policy_blob:
197
- # `=`, `:` * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=` *
198
- # security_marks.marks: `=`, `:` * security_center_properties.resource_name: `=`,
199
- # `:` * security_center_properties.resource_display_name: `=`, `:` *
200
- # security_center_properties.resource_type: `=`, `:` *
201
- # security_center_properties.resource_parent: `=`, `:` *
202
- # security_center_properties.resource_parent_display_name: `=`, `:` *
203
- # security_center_properties.resource_project: `=`, `:` *
204
- # security_center_properties.resource_project_display_name: `=`, `:` *
205
- # security_center_properties.resource_owners: `=`, `:` For example, `
206
- # resource_properties.size = 100` is a valid filter string. Use a partial match
207
- # on the empty string to filter based on a property existing: `
208
- # resource_properties.my_property : ""` Use a negated partial match on the empty
209
- # string to filter based on a property not existing: `-resource_properties.
210
- # my_property : ""`
211
- # @param [String] order_by
212
- # Expression that defines what fields and order to use for sorting. The string
213
- # value should follow SQL syntax: comma separated list of fields. For example: "
214
- # name,resource_properties.a_property". The default sorting order is ascending.
215
- # To specify descending order for a field, a suffix " desc" should be appended
216
- # to the field name. For example: "name desc,resource_properties.a_property".
217
- # Redundant space characters in the syntax are insignificant. "name desc,
218
- # resource_properties.a_property" and " name desc , resource_properties.
219
- # a_property " are equivalent. The following fields are supported: name
220
- # update_time resource_properties security_marks.marks
221
- # security_center_properties.resource_name security_center_properties.
222
- # resource_display_name security_center_properties.resource_parent
223
- # security_center_properties.resource_parent_display_name
224
- # security_center_properties.resource_project security_center_properties.
225
- # resource_project_display_name security_center_properties.resource_type
226
- # @param [Fixnum] page_size
227
- # The maximum number of results to return in a single response. Default is 10,
228
- # minimum is 1, maximum is 1000.
229
- # @param [String] page_token
230
- # The value returned by the last `ListAssetsResponse`; indicates that this is a
231
- # continuation of a prior `ListAssets` call, and that the system should return
232
- # the next page of data.
233
- # @param [String] read_time
234
- # Time used as a reference point when filtering assets. The filter is limited to
235
- # assets existing at the supplied time and their values are those at that
236
- # specific time. Absence of this field will default to the API's version of NOW.
237
- # @param [String] fields
238
- # Selector specifying which fields to include in a partial response.
239
- # @param [String] quota_user
240
- # Available to use for quota purposes for server-side applications. Can be any
241
- # arbitrary string assigned to a user, but should not exceed 40 characters.
242
- # @param [Google::Apis::RequestOptions] options
243
- # Request-specific options
244
- #
245
- # @yield [result, err] Result & error if block supplied
246
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::ListAssetsResponse] parsed result object
247
- # @yieldparam err [StandardError] error object if request failed
248
- #
249
- # @return [Google::Apis::SecuritycenterV1p1beta1::ListAssetsResponse]
250
- #
251
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
252
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
253
- # @raise [Google::Apis::AuthorizationError] Authorization is required
254
- def list_organization_assets(parent, compare_duration: nil, field_mask: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_time: nil, fields: nil, quota_user: nil, options: nil, &block)
255
- command = make_simple_command(:get, 'v1p1beta1/{+parent}/assets', options)
256
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::ListAssetsResponse::Representation
257
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::ListAssetsResponse
258
- command.params['parent'] = parent unless parent.nil?
259
- command.query['compareDuration'] = compare_duration unless compare_duration.nil?
260
- command.query['fieldMask'] = field_mask unless field_mask.nil?
261
- command.query['filter'] = filter unless filter.nil?
262
- command.query['orderBy'] = order_by unless order_by.nil?
263
- command.query['pageSize'] = page_size unless page_size.nil?
264
- command.query['pageToken'] = page_token unless page_token.nil?
265
- command.query['readTime'] = read_time unless read_time.nil?
266
- command.query['fields'] = fields unless fields.nil?
267
- command.query['quotaUser'] = quota_user unless quota_user.nil?
268
- execute_or_queue_command(command, &block)
269
- end
270
-
271
- # Runs asset discovery. The discovery is tracked with a long-running operation. /
272
- # / This API can only be called with limited frequency for an organization. If
273
- # it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.
274
- # @param [String] parent
275
- # Required. Name of the organization to run asset discovery for. Its format is "
276
- # organizations/[organization_id]".
277
- # @param [Google::Apis::SecuritycenterV1p1beta1::RunAssetDiscoveryRequest] run_asset_discovery_request_object
278
- # @param [String] fields
279
- # Selector specifying which fields to include in a partial response.
280
- # @param [String] quota_user
281
- # Available to use for quota purposes for server-side applications. Can be any
282
- # arbitrary string assigned to a user, but should not exceed 40 characters.
283
- # @param [Google::Apis::RequestOptions] options
284
- # Request-specific options
285
- #
286
- # @yield [result, err] Result & error if block supplied
287
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::Operation] parsed result object
288
- # @yieldparam err [StandardError] error object if request failed
289
- #
290
- # @return [Google::Apis::SecuritycenterV1p1beta1::Operation]
291
- #
292
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
293
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
294
- # @raise [Google::Apis::AuthorizationError] Authorization is required
295
- def run_organization_asset_discovery(parent, run_asset_discovery_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
296
- command = make_simple_command(:post, 'v1p1beta1/{+parent}/assets:runDiscovery', options)
297
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::RunAssetDiscoveryRequest::Representation
298
- command.request_object = run_asset_discovery_request_object
299
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::Operation::Representation
300
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::Operation
301
- command.params['parent'] = parent unless parent.nil?
302
- command.query['fields'] = fields unless fields.nil?
303
- command.query['quotaUser'] = quota_user unless quota_user.nil?
304
- execute_or_queue_command(command, &block)
305
- end
306
-
307
- # Updates security marks.
308
- # @param [String] name
309
- # The relative resource name of the SecurityMarks. See: https://cloud.google.com/
310
- # apis/design/resource_names#relative_resource_name Examples: "organizations/`
311
- # organization_id`/assets/`asset_id`/securityMarks" "organizations/`
312
- # organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks".
313
- # @param [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks] google_cloud_securitycenter_v1p1beta1_security_marks_object
314
- # @param [String] start_time
315
- # The time at which the updated SecurityMarks take effect. If not set uses
316
- # current server time. Updates will be applied to the SecurityMarks that are
317
- # active immediately preceding this time.
318
- # @param [String] update_mask
319
- # The FieldMask to use when updating the security marks resource. The field mask
320
- # must not contain duplicate fields. If empty or set to "marks", all marks will
321
- # be replaced. Individual marks can be updated using "marks.".
322
- # @param [String] fields
323
- # Selector specifying which fields to include in a partial response.
324
- # @param [String] quota_user
325
- # Available to use for quota purposes for server-side applications. Can be any
326
- # arbitrary string assigned to a user, but should not exceed 40 characters.
327
- # @param [Google::Apis::RequestOptions] options
328
- # Request-specific options
329
- #
330
- # @yield [result, err] Result & error if block supplied
331
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks] parsed result object
332
- # @yieldparam err [StandardError] error object if request failed
333
- #
334
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
335
- #
336
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
337
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
338
- # @raise [Google::Apis::AuthorizationError] Authorization is required
339
- def update_organization_asset_security_marks(name, google_cloud_securitycenter_v1p1beta1_security_marks_object = nil, start_time: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
340
- command = make_simple_command(:patch, 'v1p1beta1/{+name}', options)
341
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
342
- command.request_object = google_cloud_securitycenter_v1p1beta1_security_marks_object
343
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
344
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks
345
- command.params['name'] = name unless name.nil?
346
- command.query['startTime'] = start_time unless start_time.nil?
347
- command.query['updateMask'] = update_mask unless update_mask.nil?
348
- command.query['fields'] = fields unless fields.nil?
349
- command.query['quotaUser'] = quota_user unless quota_user.nil?
350
- execute_or_queue_command(command, &block)
351
- end
352
-
353
- # Creates a notification config.
354
- # @param [String] parent
355
- # Required. Resource name of the new notification config's parent. Its format is
356
- # "organizations/[organization_id]".
357
- # @param [Google::Apis::SecuritycenterV1p1beta1::NotificationConfig] notification_config_object
358
- # @param [String] config_id
359
- # Required. Unique identifier provided by the client within the parent scope. It
360
- # must be between 1 and 128 characters, and contains alphanumeric characters,
361
- # underscores or hyphens only.
362
- # @param [String] fields
363
- # Selector specifying which fields to include in a partial response.
364
- # @param [String] quota_user
365
- # Available to use for quota purposes for server-side applications. Can be any
366
- # arbitrary string assigned to a user, but should not exceed 40 characters.
367
- # @param [Google::Apis::RequestOptions] options
368
- # Request-specific options
369
- #
370
- # @yield [result, err] Result & error if block supplied
371
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::NotificationConfig] parsed result object
372
- # @yieldparam err [StandardError] error object if request failed
373
- #
374
- # @return [Google::Apis::SecuritycenterV1p1beta1::NotificationConfig]
375
- #
376
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
377
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
378
- # @raise [Google::Apis::AuthorizationError] Authorization is required
379
- def create_organization_notification_config(parent, notification_config_object = nil, config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
380
- command = make_simple_command(:post, 'v1p1beta1/{+parent}/notificationConfigs', options)
381
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::NotificationConfig::Representation
382
- command.request_object = notification_config_object
383
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::NotificationConfig::Representation
384
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::NotificationConfig
385
- command.params['parent'] = parent unless parent.nil?
386
- command.query['configId'] = config_id unless config_id.nil?
387
- command.query['fields'] = fields unless fields.nil?
388
- command.query['quotaUser'] = quota_user unless quota_user.nil?
389
- execute_or_queue_command(command, &block)
390
- end
391
-
392
- # Deletes a notification config.
393
- # @param [String] name
394
- # Required. Name of the notification config to delete. Its format is "
395
- # organizations/[organization_id]/notificationConfigs/[config_id]".
396
- # @param [String] fields
397
- # Selector specifying which fields to include in a partial response.
398
- # @param [String] quota_user
399
- # Available to use for quota purposes for server-side applications. Can be any
400
- # arbitrary string assigned to a user, but should not exceed 40 characters.
401
- # @param [Google::Apis::RequestOptions] options
402
- # Request-specific options
403
- #
404
- # @yield [result, err] Result & error if block supplied
405
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::Empty] parsed result object
406
- # @yieldparam err [StandardError] error object if request failed
407
- #
408
- # @return [Google::Apis::SecuritycenterV1p1beta1::Empty]
409
- #
410
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
411
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
412
- # @raise [Google::Apis::AuthorizationError] Authorization is required
413
- def delete_organization_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
414
- command = make_simple_command(:delete, 'v1p1beta1/{+name}', options)
415
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::Empty::Representation
416
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::Empty
417
- command.params['name'] = name unless name.nil?
418
- command.query['fields'] = fields unless fields.nil?
419
- command.query['quotaUser'] = quota_user unless quota_user.nil?
420
- execute_or_queue_command(command, &block)
421
- end
422
-
423
- # Gets a notification config.
424
- # @param [String] name
425
- # Required. Name of the notification config to get. Its format is "organizations/
426
- # [organization_id]/notificationConfigs/[config_id]".
427
- # @param [String] fields
428
- # Selector specifying which fields to include in a partial response.
429
- # @param [String] quota_user
430
- # Available to use for quota purposes for server-side applications. Can be any
431
- # arbitrary string assigned to a user, but should not exceed 40 characters.
432
- # @param [Google::Apis::RequestOptions] options
433
- # Request-specific options
434
- #
435
- # @yield [result, err] Result & error if block supplied
436
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::NotificationConfig] parsed result object
437
- # @yieldparam err [StandardError] error object if request failed
438
- #
439
- # @return [Google::Apis::SecuritycenterV1p1beta1::NotificationConfig]
440
- #
441
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
442
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
443
- # @raise [Google::Apis::AuthorizationError] Authorization is required
444
- def get_organization_notification_config(name, fields: nil, quota_user: nil, options: nil, &block)
445
- command = make_simple_command(:get, 'v1p1beta1/{+name}', options)
446
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::NotificationConfig::Representation
447
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::NotificationConfig
448
- command.params['name'] = name unless name.nil?
449
- command.query['fields'] = fields unless fields.nil?
450
- command.query['quotaUser'] = quota_user unless quota_user.nil?
451
- execute_or_queue_command(command, &block)
452
- end
453
-
454
- # Lists notification configs.
455
- # @param [String] parent
456
- # Required. Name of the organization to list notification configs. Its format is
457
- # "organizations/[organization_id]".
458
- # @param [Fixnum] page_size
459
- # The maximum number of results to return in a single response. Default is 10,
460
- # minimum is 1, maximum is 1000.
461
- # @param [String] page_token
462
- # The value returned by the last `ListNotificationConfigsResponse`; indicates
463
- # that this is a continuation of a prior `ListNotificationConfigs` call, and
464
- # that the system should return the next page of data.
465
- # @param [String] fields
466
- # Selector specifying which fields to include in a partial response.
467
- # @param [String] quota_user
468
- # Available to use for quota purposes for server-side applications. Can be any
469
- # arbitrary string assigned to a user, but should not exceed 40 characters.
470
- # @param [Google::Apis::RequestOptions] options
471
- # Request-specific options
472
- #
473
- # @yield [result, err] Result & error if block supplied
474
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::ListNotificationConfigsResponse] parsed result object
475
- # @yieldparam err [StandardError] error object if request failed
476
- #
477
- # @return [Google::Apis::SecuritycenterV1p1beta1::ListNotificationConfigsResponse]
478
- #
479
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
480
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
481
- # @raise [Google::Apis::AuthorizationError] Authorization is required
482
- def list_organization_notification_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
483
- command = make_simple_command(:get, 'v1p1beta1/{+parent}/notificationConfigs', options)
484
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::ListNotificationConfigsResponse::Representation
485
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::ListNotificationConfigsResponse
486
- command.params['parent'] = parent unless parent.nil?
487
- command.query['pageSize'] = page_size unless page_size.nil?
488
- command.query['pageToken'] = page_token unless page_token.nil?
489
- command.query['fields'] = fields unless fields.nil?
490
- command.query['quotaUser'] = quota_user unless quota_user.nil?
491
- execute_or_queue_command(command, &block)
492
- end
493
-
494
- # Updates a notification config. The following update fields are allowed:
495
- # description, pubsub_topic, streaming_config.filter
496
- # @param [String] name
497
- # The relative resource name of this notification config. See: https://cloud.
498
- # google.com/apis/design/resource_names#relative_resource_name Example: "
499
- # organizations/`organization_id`/notificationConfigs/notify_public_bucket".
500
- # @param [Google::Apis::SecuritycenterV1p1beta1::NotificationConfig] notification_config_object
501
- # @param [String] update_mask
502
- # The FieldMask to use when updating the notification config. If empty all
503
- # mutable fields will be updated.
504
- # @param [String] fields
505
- # Selector specifying which fields to include in a partial response.
506
- # @param [String] quota_user
507
- # Available to use for quota purposes for server-side applications. Can be any
508
- # arbitrary string assigned to a user, but should not exceed 40 characters.
509
- # @param [Google::Apis::RequestOptions] options
510
- # Request-specific options
511
- #
512
- # @yield [result, err] Result & error if block supplied
513
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::NotificationConfig] parsed result object
514
- # @yieldparam err [StandardError] error object if request failed
515
- #
516
- # @return [Google::Apis::SecuritycenterV1p1beta1::NotificationConfig]
517
- #
518
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
519
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
520
- # @raise [Google::Apis::AuthorizationError] Authorization is required
521
- def patch_organization_notification_config(name, notification_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
522
- command = make_simple_command(:patch, 'v1p1beta1/{+name}', options)
523
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::NotificationConfig::Representation
524
- command.request_object = notification_config_object
525
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::NotificationConfig::Representation
526
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::NotificationConfig
527
- command.params['name'] = name unless name.nil?
528
- command.query['updateMask'] = update_mask unless update_mask.nil?
529
- command.query['fields'] = fields unless fields.nil?
530
- command.query['quotaUser'] = quota_user unless quota_user.nil?
531
- execute_or_queue_command(command, &block)
532
- end
533
-
534
- # Starts asynchronous cancellation on a long-running operation. The server makes
535
- # a best effort to cancel the operation, but success is not guaranteed. If the
536
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
537
- # Clients can use Operations.GetOperation or other methods to check whether the
538
- # cancellation succeeded or whether the operation completed despite cancellation.
539
- # On successful cancellation, the operation is not deleted; instead, it becomes
540
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
541
- # corresponding to `Code.CANCELLED`.
542
- # @param [String] name
543
- # The name of the operation resource to be cancelled.
544
- # @param [String] fields
545
- # Selector specifying which fields to include in a partial response.
546
- # @param [String] quota_user
547
- # Available to use for quota purposes for server-side applications. Can be any
548
- # arbitrary string assigned to a user, but should not exceed 40 characters.
549
- # @param [Google::Apis::RequestOptions] options
550
- # Request-specific options
551
- #
552
- # @yield [result, err] Result & error if block supplied
553
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::Empty] parsed result object
554
- # @yieldparam err [StandardError] error object if request failed
555
- #
556
- # @return [Google::Apis::SecuritycenterV1p1beta1::Empty]
557
- #
558
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
559
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
560
- # @raise [Google::Apis::AuthorizationError] Authorization is required
561
- def cancel_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
562
- command = make_simple_command(:post, 'v1p1beta1/{+name}:cancel', options)
563
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::Empty::Representation
564
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::Empty
565
- command.params['name'] = name unless name.nil?
566
- command.query['fields'] = fields unless fields.nil?
567
- command.query['quotaUser'] = quota_user unless quota_user.nil?
568
- execute_or_queue_command(command, &block)
569
- end
570
-
571
- # Deletes a long-running operation. This method indicates that the client is no
572
- # longer interested in the operation result. It does not cancel the operation.
573
- # If the server doesn't support this method, it returns `google.rpc.Code.
574
- # UNIMPLEMENTED`.
575
- # @param [String] name
576
- # The name of the operation resource to be deleted.
577
- # @param [String] fields
578
- # Selector specifying which fields to include in a partial response.
579
- # @param [String] quota_user
580
- # Available to use for quota purposes for server-side applications. Can be any
581
- # arbitrary string assigned to a user, but should not exceed 40 characters.
582
- # @param [Google::Apis::RequestOptions] options
583
- # Request-specific options
584
- #
585
- # @yield [result, err] Result & error if block supplied
586
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::Empty] parsed result object
587
- # @yieldparam err [StandardError] error object if request failed
588
- #
589
- # @return [Google::Apis::SecuritycenterV1p1beta1::Empty]
590
- #
591
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
592
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
593
- # @raise [Google::Apis::AuthorizationError] Authorization is required
594
- def delete_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
595
- command = make_simple_command(:delete, 'v1p1beta1/{+name}', options)
596
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::Empty::Representation
597
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::Empty
598
- command.params['name'] = name unless name.nil?
599
- command.query['fields'] = fields unless fields.nil?
600
- command.query['quotaUser'] = quota_user unless quota_user.nil?
601
- execute_or_queue_command(command, &block)
602
- end
603
-
604
- # Gets the latest state of a long-running operation. Clients can use this method
605
- # to poll the operation result at intervals as recommended by the API service.
606
- # @param [String] name
607
- # The name of the operation resource.
608
- # @param [String] fields
609
- # Selector specifying which fields to include in a partial response.
610
- # @param [String] quota_user
611
- # Available to use for quota purposes for server-side applications. Can be any
612
- # arbitrary string assigned to a user, but should not exceed 40 characters.
613
- # @param [Google::Apis::RequestOptions] options
614
- # Request-specific options
615
- #
616
- # @yield [result, err] Result & error if block supplied
617
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::Operation] parsed result object
618
- # @yieldparam err [StandardError] error object if request failed
619
- #
620
- # @return [Google::Apis::SecuritycenterV1p1beta1::Operation]
621
- #
622
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
623
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
624
- # @raise [Google::Apis::AuthorizationError] Authorization is required
625
- def get_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
626
- command = make_simple_command(:get, 'v1p1beta1/{+name}', options)
627
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::Operation::Representation
628
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::Operation
629
- command.params['name'] = name unless name.nil?
630
- command.query['fields'] = fields unless fields.nil?
631
- command.query['quotaUser'] = quota_user unless quota_user.nil?
632
- execute_or_queue_command(command, &block)
633
- end
634
-
635
- # Lists operations that match the specified filter in the request. If the server
636
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
637
- # binding allows API services to override the binding to use different resource
638
- # name schemes, such as `users/*/operations`. To override the binding, API
639
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
640
- # service configuration. For backwards compatibility, the default name includes
641
- # the operations collection id, however overriding users must ensure the name
642
- # binding is the parent resource, without the operations collection id.
643
- # @param [String] name
644
- # The name of the operation's parent resource.
645
- # @param [String] filter
646
- # The standard list filter.
647
- # @param [Fixnum] page_size
648
- # The standard list page size.
649
- # @param [String] page_token
650
- # The standard list page token.
651
- # @param [String] fields
652
- # Selector specifying which fields to include in a partial response.
653
- # @param [String] quota_user
654
- # Available to use for quota purposes for server-side applications. Can be any
655
- # arbitrary string assigned to a user, but should not exceed 40 characters.
656
- # @param [Google::Apis::RequestOptions] options
657
- # Request-specific options
658
- #
659
- # @yield [result, err] Result & error if block supplied
660
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::ListOperationsResponse] parsed result object
661
- # @yieldparam err [StandardError] error object if request failed
662
- #
663
- # @return [Google::Apis::SecuritycenterV1p1beta1::ListOperationsResponse]
664
- #
665
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
666
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
667
- # @raise [Google::Apis::AuthorizationError] Authorization is required
668
- def list_organization_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
669
- command = make_simple_command(:get, 'v1p1beta1/{+name}', options)
670
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::ListOperationsResponse::Representation
671
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::ListOperationsResponse
672
- command.params['name'] = name unless name.nil?
673
- command.query['filter'] = filter unless filter.nil?
674
- command.query['pageSize'] = page_size unless page_size.nil?
675
- command.query['pageToken'] = page_token unless page_token.nil?
676
- command.query['fields'] = fields unless fields.nil?
677
- command.query['quotaUser'] = quota_user unless quota_user.nil?
678
- execute_or_queue_command(command, &block)
679
- end
680
-
681
- # Creates a source.
682
- # @param [String] parent
683
- # Required. Resource name of the new source's parent. Its format should be "
684
- # organizations/[organization_id]".
685
- # @param [Google::Apis::SecuritycenterV1p1beta1::Source] source_object
686
- # @param [String] fields
687
- # Selector specifying which fields to include in a partial response.
688
- # @param [String] quota_user
689
- # Available to use for quota purposes for server-side applications. Can be any
690
- # arbitrary string assigned to a user, but should not exceed 40 characters.
691
- # @param [Google::Apis::RequestOptions] options
692
- # Request-specific options
693
- #
694
- # @yield [result, err] Result & error if block supplied
695
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::Source] parsed result object
696
- # @yieldparam err [StandardError] error object if request failed
697
- #
698
- # @return [Google::Apis::SecuritycenterV1p1beta1::Source]
699
- #
700
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
701
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
702
- # @raise [Google::Apis::AuthorizationError] Authorization is required
703
- def create_organization_source(parent, source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
704
- command = make_simple_command(:post, 'v1p1beta1/{+parent}/sources', options)
705
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::Source::Representation
706
- command.request_object = source_object
707
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::Source::Representation
708
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::Source
709
- command.params['parent'] = parent unless parent.nil?
710
- command.query['fields'] = fields unless fields.nil?
711
- command.query['quotaUser'] = quota_user unless quota_user.nil?
712
- execute_or_queue_command(command, &block)
713
- end
714
-
715
- # Gets a source.
716
- # @param [String] name
717
- # Required. Relative resource name of the source. Its format is "organizations/[
718
- # organization_id]/source/[source_id]".
719
- # @param [String] fields
720
- # Selector specifying which fields to include in a partial response.
721
- # @param [String] quota_user
722
- # Available to use for quota purposes for server-side applications. Can be any
723
- # arbitrary string assigned to a user, but should not exceed 40 characters.
724
- # @param [Google::Apis::RequestOptions] options
725
- # Request-specific options
726
- #
727
- # @yield [result, err] Result & error if block supplied
728
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::Source] parsed result object
729
- # @yieldparam err [StandardError] error object if request failed
730
- #
731
- # @return [Google::Apis::SecuritycenterV1p1beta1::Source]
732
- #
733
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
734
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
735
- # @raise [Google::Apis::AuthorizationError] Authorization is required
736
- def get_organization_source(name, fields: nil, quota_user: nil, options: nil, &block)
737
- command = make_simple_command(:get, 'v1p1beta1/{+name}', options)
738
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::Source::Representation
739
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::Source
740
- command.params['name'] = name unless name.nil?
741
- command.query['fields'] = fields unless fields.nil?
742
- command.query['quotaUser'] = quota_user unless quota_user.nil?
743
- execute_or_queue_command(command, &block)
744
- end
745
-
746
- # Gets the access control policy on the specified Source.
747
- # @param [String] resource
748
- # REQUIRED: The resource for which the policy is being requested. See the
749
- # operation documentation for the appropriate value for this field.
750
- # @param [Google::Apis::SecuritycenterV1p1beta1::GetIamPolicyRequest] get_iam_policy_request_object
751
- # @param [String] fields
752
- # Selector specifying which fields to include in a partial response.
753
- # @param [String] quota_user
754
- # Available to use for quota purposes for server-side applications. Can be any
755
- # arbitrary string assigned to a user, but should not exceed 40 characters.
756
- # @param [Google::Apis::RequestOptions] options
757
- # Request-specific options
758
- #
759
- # @yield [result, err] Result & error if block supplied
760
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::Policy] parsed result object
761
- # @yieldparam err [StandardError] error object if request failed
762
- #
763
- # @return [Google::Apis::SecuritycenterV1p1beta1::Policy]
764
- #
765
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
766
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
767
- # @raise [Google::Apis::AuthorizationError] Authorization is required
768
- def get_source_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
769
- command = make_simple_command(:post, 'v1p1beta1/{+resource}:getIamPolicy', options)
770
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::GetIamPolicyRequest::Representation
771
- command.request_object = get_iam_policy_request_object
772
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::Policy::Representation
773
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::Policy
774
- command.params['resource'] = resource unless resource.nil?
775
- command.query['fields'] = fields unless fields.nil?
776
- command.query['quotaUser'] = quota_user unless quota_user.nil?
777
- execute_or_queue_command(command, &block)
778
- end
779
-
780
- # Lists all sources belonging to an organization.
781
- # @param [String] parent
782
- # Required. Resource name of the parent of sources to list. Its format should be
783
- # "organizations/[organization_id]".
784
- # @param [Fixnum] page_size
785
- # The maximum number of results to return in a single response. Default is 10,
786
- # minimum is 1, maximum is 1000.
787
- # @param [String] page_token
788
- # The value returned by the last `ListSourcesResponse`; indicates that this is a
789
- # continuation of a prior `ListSources` call, and that the system should return
790
- # the next page of data.
791
- # @param [String] fields
792
- # Selector specifying which fields to include in a partial response.
793
- # @param [String] quota_user
794
- # Available to use for quota purposes for server-side applications. Can be any
795
- # arbitrary string assigned to a user, but should not exceed 40 characters.
796
- # @param [Google::Apis::RequestOptions] options
797
- # Request-specific options
798
- #
799
- # @yield [result, err] Result & error if block supplied
800
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::ListSourcesResponse] parsed result object
801
- # @yieldparam err [StandardError] error object if request failed
802
- #
803
- # @return [Google::Apis::SecuritycenterV1p1beta1::ListSourcesResponse]
804
- #
805
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
806
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
807
- # @raise [Google::Apis::AuthorizationError] Authorization is required
808
- def list_organization_sources(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
809
- command = make_simple_command(:get, 'v1p1beta1/{+parent}/sources', options)
810
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::ListSourcesResponse::Representation
811
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::ListSourcesResponse
812
- command.params['parent'] = parent unless parent.nil?
813
- command.query['pageSize'] = page_size unless page_size.nil?
814
- command.query['pageToken'] = page_token unless page_token.nil?
815
- command.query['fields'] = fields unless fields.nil?
816
- command.query['quotaUser'] = quota_user unless quota_user.nil?
817
- execute_or_queue_command(command, &block)
818
- end
819
-
820
- # Updates a source.
821
- # @param [String] name
822
- # The relative resource name of this source. See: https://cloud.google.com/apis/
823
- # design/resource_names#relative_resource_name Example: "organizations/`
824
- # organization_id`/sources/`source_id`"
825
- # @param [Google::Apis::SecuritycenterV1p1beta1::Source] source_object
826
- # @param [String] update_mask
827
- # The FieldMask to use when updating the source resource. If empty all mutable
828
- # fields will be updated.
829
- # @param [String] fields
830
- # Selector specifying which fields to include in a partial response.
831
- # @param [String] quota_user
832
- # Available to use for quota purposes for server-side applications. Can be any
833
- # arbitrary string assigned to a user, but should not exceed 40 characters.
834
- # @param [Google::Apis::RequestOptions] options
835
- # Request-specific options
836
- #
837
- # @yield [result, err] Result & error if block supplied
838
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::Source] parsed result object
839
- # @yieldparam err [StandardError] error object if request failed
840
- #
841
- # @return [Google::Apis::SecuritycenterV1p1beta1::Source]
842
- #
843
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
844
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
845
- # @raise [Google::Apis::AuthorizationError] Authorization is required
846
- def patch_organization_source(name, source_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
847
- command = make_simple_command(:patch, 'v1p1beta1/{+name}', options)
848
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::Source::Representation
849
- command.request_object = source_object
850
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::Source::Representation
851
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::Source
852
- command.params['name'] = name unless name.nil?
853
- command.query['updateMask'] = update_mask unless update_mask.nil?
854
- command.query['fields'] = fields unless fields.nil?
855
- command.query['quotaUser'] = quota_user unless quota_user.nil?
856
- execute_or_queue_command(command, &block)
857
- end
858
-
859
- # Sets the access control policy on the specified Source.
860
- # @param [String] resource
861
- # REQUIRED: The resource for which the policy is being specified. See the
862
- # operation documentation for the appropriate value for this field.
863
- # @param [Google::Apis::SecuritycenterV1p1beta1::SetIamPolicyRequest] set_iam_policy_request_object
864
- # @param [String] fields
865
- # Selector specifying which fields to include in a partial response.
866
- # @param [String] quota_user
867
- # Available to use for quota purposes for server-side applications. Can be any
868
- # arbitrary string assigned to a user, but should not exceed 40 characters.
869
- # @param [Google::Apis::RequestOptions] options
870
- # Request-specific options
871
- #
872
- # @yield [result, err] Result & error if block supplied
873
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::Policy] parsed result object
874
- # @yieldparam err [StandardError] error object if request failed
875
- #
876
- # @return [Google::Apis::SecuritycenterV1p1beta1::Policy]
877
- #
878
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
879
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
880
- # @raise [Google::Apis::AuthorizationError] Authorization is required
881
- def set_source_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
882
- command = make_simple_command(:post, 'v1p1beta1/{+resource}:setIamPolicy', options)
883
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::SetIamPolicyRequest::Representation
884
- command.request_object = set_iam_policy_request_object
885
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::Policy::Representation
886
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::Policy
887
- command.params['resource'] = resource unless resource.nil?
888
- command.query['fields'] = fields unless fields.nil?
889
- command.query['quotaUser'] = quota_user unless quota_user.nil?
890
- execute_or_queue_command(command, &block)
891
- end
892
-
893
- # Returns the permissions that a caller has on the specified source.
894
- # @param [String] resource
895
- # REQUIRED: The resource for which the policy detail is being requested. See the
896
- # operation documentation for the appropriate value for this field.
897
- # @param [Google::Apis::SecuritycenterV1p1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
898
- # @param [String] fields
899
- # Selector specifying which fields to include in a partial response.
900
- # @param [String] quota_user
901
- # Available to use for quota purposes for server-side applications. Can be any
902
- # arbitrary string assigned to a user, but should not exceed 40 characters.
903
- # @param [Google::Apis::RequestOptions] options
904
- # Request-specific options
905
- #
906
- # @yield [result, err] Result & error if block supplied
907
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::TestIamPermissionsResponse] parsed result object
908
- # @yieldparam err [StandardError] error object if request failed
909
- #
910
- # @return [Google::Apis::SecuritycenterV1p1beta1::TestIamPermissionsResponse]
911
- #
912
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
913
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
914
- # @raise [Google::Apis::AuthorizationError] Authorization is required
915
- def test_source_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
916
- command = make_simple_command(:post, 'v1p1beta1/{+resource}:testIamPermissions', options)
917
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::TestIamPermissionsRequest::Representation
918
- command.request_object = test_iam_permissions_request_object
919
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::TestIamPermissionsResponse::Representation
920
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::TestIamPermissionsResponse
921
- command.params['resource'] = resource unless resource.nil?
922
- command.query['fields'] = fields unless fields.nil?
923
- command.query['quotaUser'] = quota_user unless quota_user.nil?
924
- execute_or_queue_command(command, &block)
925
- end
926
-
927
- # Creates a finding. The corresponding source must exist for finding creation
928
- # to succeed.
929
- # @param [String] parent
930
- # Required. Resource name of the new finding's parent. Its format should be "
931
- # organizations/[organization_id]/sources/[source_id]".
932
- # @param [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding] google_cloud_securitycenter_v1p1beta1_finding_object
933
- # @param [String] finding_id
934
- # Required. Unique identifier provided by the client within the parent scope.
935
- # @param [String] fields
936
- # Selector specifying which fields to include in a partial response.
937
- # @param [String] quota_user
938
- # Available to use for quota purposes for server-side applications. Can be any
939
- # arbitrary string assigned to a user, but should not exceed 40 characters.
940
- # @param [Google::Apis::RequestOptions] options
941
- # Request-specific options
942
- #
943
- # @yield [result, err] Result & error if block supplied
944
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding] parsed result object
945
- # @yieldparam err [StandardError] error object if request failed
946
- #
947
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding]
948
- #
949
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
950
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
951
- # @raise [Google::Apis::AuthorizationError] Authorization is required
952
- def create_organization_source_finding(parent, google_cloud_securitycenter_v1p1beta1_finding_object = nil, finding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
953
- command = make_simple_command(:post, 'v1p1beta1/{+parent}/findings', options)
954
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
955
- command.request_object = google_cloud_securitycenter_v1p1beta1_finding_object
956
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
957
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding
958
- command.params['parent'] = parent unless parent.nil?
959
- command.query['findingId'] = finding_id unless finding_id.nil?
960
- command.query['fields'] = fields unless fields.nil?
961
- command.query['quotaUser'] = quota_user unless quota_user.nil?
962
- execute_or_queue_command(command, &block)
963
- end
964
-
965
- # Filters an organization or source's findings and groups them by their
966
- # specified properties. To group across all sources provide a `-` as the source
967
- # id. Example: /v1p1beta1/organizations/`organization_id`/sources/-/findings
968
- # @param [String] parent
969
- # Required. Name of the source to groupBy. Its format is "organizations/[
970
- # organization_id]/sources/[source_id]". To groupBy across all sources provide a
971
- # source_id of `-`. For example: organizations/`organization_id`/sources/-
972
- # @param [Google::Apis::SecuritycenterV1p1beta1::GroupFindingsRequest] group_findings_request_object
973
- # @param [String] fields
974
- # Selector specifying which fields to include in a partial response.
975
- # @param [String] quota_user
976
- # Available to use for quota purposes for server-side applications. Can be any
977
- # arbitrary string assigned to a user, but should not exceed 40 characters.
978
- # @param [Google::Apis::RequestOptions] options
979
- # Request-specific options
980
- #
981
- # @yield [result, err] Result & error if block supplied
982
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::GroupFindingsResponse] parsed result object
983
- # @yieldparam err [StandardError] error object if request failed
984
- #
985
- # @return [Google::Apis::SecuritycenterV1p1beta1::GroupFindingsResponse]
986
- #
987
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
988
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
989
- # @raise [Google::Apis::AuthorizationError] Authorization is required
990
- def group_findings(parent, group_findings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
991
- command = make_simple_command(:post, 'v1p1beta1/{+parent}/findings:group', options)
992
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::GroupFindingsRequest::Representation
993
- command.request_object = group_findings_request_object
994
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::GroupFindingsResponse::Representation
995
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::GroupFindingsResponse
996
- command.params['parent'] = parent unless parent.nil?
997
- command.query['fields'] = fields unless fields.nil?
998
- command.query['quotaUser'] = quota_user unless quota_user.nil?
999
- execute_or_queue_command(command, &block)
1000
- end
1001
-
1002
- # Lists an organization or source's findings. To list across all sources provide
1003
- # a `-` as the source id. Example: /v1p1beta1/organizations/`organization_id`/
1004
- # sources/-/findings
1005
- # @param [String] parent
1006
- # Required. Name of the source the findings belong to. Its format is "
1007
- # organizations/[organization_id]/sources/[source_id]". To list across all
1008
- # sources provide a source_id of `-`. For example: organizations/`
1009
- # organization_id`/sources/-
1010
- # @param [String] compare_duration
1011
- # When compare_duration is set, the ListFindingsResult's "state_change"
1012
- # attribute is updated to indicate whether the finding had its state changed,
1013
- # the finding's state remained unchanged, or if the finding was added in any
1014
- # state during the compare_duration period of time that precedes the read_time.
1015
- # This is the time between (read_time - compare_duration) and read_time. The
1016
- # state_change value is derived based on the presence and state of the finding
1017
- # at the two points in time. Intermediate state changes between the two times
1018
- # don't affect the result. For example, the results aren't affected if the
1019
- # finding is made inactive and then active again. Possible "state_change" values
1020
- # when compare_duration is specified: * "CHANGED": indicates that the finding
1021
- # was present and matched the given filter at the start of compare_duration, but
1022
- # changed its state at read_time. * "UNCHANGED": indicates that the finding was
1023
- # present and matched the given filter at the start of compare_duration and did
1024
- # not change state at read_time. * "ADDED": indicates that the finding did not
1025
- # match the given filter or was not present at the start of compare_duration,
1026
- # but was present at read_time. * "REMOVED": indicates that the finding was
1027
- # present and matched the filter at the start of compare_duration, but did not
1028
- # match the filter at read_time. If compare_duration is not specified, then the
1029
- # only possible state_change is "UNUSED", which will be the state_change set for
1030
- # all findings present at read_time.
1031
- # @param [String] field_mask
1032
- # A field mask to specify the Finding fields to be listed in the response. An
1033
- # empty field mask will list all fields.
1034
- # @param [String] filter
1035
- # Expression that defines the filter to apply across findings. The expression is
1036
- # a list of one or more restrictions combined via logical operators `AND` and `
1037
- # OR`. Parentheses are supported, and `OR` has higher precedence than `AND`.
1038
- # Restrictions have the form ` ` and may have a `-` character in front of them
1039
- # to indicate negation. Examples include: * name * source_properties.a_property *
1040
- # security_marks.marks.marka The supported operators are: * `=` for all value
1041
- # types. * `>`, `<`, `>=`, `<=` for integer values. * `:`, meaning substring
1042
- # matching, for strings. The supported value types are: * string literals in
1043
- # quotes. * integer literals without quotes. * boolean literals `true` and `
1044
- # false` without quotes. The following field and operator combinations are
1045
- # supported: name: `=` parent: `=`, `:` resource_name: `=`, `:` state: `=`, `:`
1046
- # category: `=`, `:` external_uri: `=`, `:` event_time: `=`, `>`, `<`, `>=`, `<=`
1047
- # Usage: This should be milliseconds since epoch or an RFC3339 string. Examples:
1048
- # `event_time = "2019-06-10T16:07:18-07:00"` `event_time = 1560208038000`
1049
- # security_marks.marks: `=`, `:` source_properties: `=`, `:`, `>`, `<`, `>=`, `<=
1050
- # ` For example, `source_properties.size = 100` is a valid filter string. Use a
1051
- # partial match on the empty string to filter based on a property existing: `
1052
- # source_properties.my_property : ""` Use a negated partial match on the empty
1053
- # string to filter based on a property not existing: `-source_properties.
1054
- # my_property : ""`
1055
- # @param [String] order_by
1056
- # Expression that defines what fields and order to use for sorting. The string
1057
- # value should follow SQL syntax: comma separated list of fields. For example: "
1058
- # name,resource_properties.a_property". The default sorting order is ascending.
1059
- # To specify descending order for a field, a suffix " desc" should be appended
1060
- # to the field name. For example: "name desc,source_properties.a_property".
1061
- # Redundant space characters in the syntax are insignificant. "name desc,
1062
- # source_properties.a_property" and " name desc , source_properties.a_property "
1063
- # are equivalent. The following fields are supported: name parent state category
1064
- # resource_name event_time source_properties security_marks.marks
1065
- # @param [Fixnum] page_size
1066
- # The maximum number of results to return in a single response. Default is 10,
1067
- # minimum is 1, maximum is 1000.
1068
- # @param [String] page_token
1069
- # The value returned by the last `ListFindingsResponse`; indicates that this is
1070
- # a continuation of a prior `ListFindings` call, and that the system should
1071
- # return the next page of data.
1072
- # @param [String] read_time
1073
- # Time used as a reference point when filtering findings. The filter is limited
1074
- # to findings existing at the supplied time and their values are those at that
1075
- # specific time. Absence of this field will default to the API's version of NOW.
1076
- # @param [String] fields
1077
- # Selector specifying which fields to include in a partial response.
1078
- # @param [String] quota_user
1079
- # Available to use for quota purposes for server-side applications. Can be any
1080
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1081
- # @param [Google::Apis::RequestOptions] options
1082
- # Request-specific options
1083
- #
1084
- # @yield [result, err] Result & error if block supplied
1085
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::ListFindingsResponse] parsed result object
1086
- # @yieldparam err [StandardError] error object if request failed
1087
- #
1088
- # @return [Google::Apis::SecuritycenterV1p1beta1::ListFindingsResponse]
1089
- #
1090
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1091
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1092
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1093
- def list_organization_source_findings(parent, compare_duration: nil, field_mask: nil, filter: nil, order_by: nil, page_size: nil, page_token: nil, read_time: nil, fields: nil, quota_user: nil, options: nil, &block)
1094
- command = make_simple_command(:get, 'v1p1beta1/{+parent}/findings', options)
1095
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::ListFindingsResponse::Representation
1096
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::ListFindingsResponse
1097
- command.params['parent'] = parent unless parent.nil?
1098
- command.query['compareDuration'] = compare_duration unless compare_duration.nil?
1099
- command.query['fieldMask'] = field_mask unless field_mask.nil?
1100
- command.query['filter'] = filter unless filter.nil?
1101
- command.query['orderBy'] = order_by unless order_by.nil?
1102
- command.query['pageSize'] = page_size unless page_size.nil?
1103
- command.query['pageToken'] = page_token unless page_token.nil?
1104
- command.query['readTime'] = read_time unless read_time.nil?
1105
- command.query['fields'] = fields unless fields.nil?
1106
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1107
- execute_or_queue_command(command, &block)
1108
- end
1109
-
1110
- # Creates or updates a finding. The corresponding source must exist for a
1111
- # finding creation to succeed.
1112
- # @param [String] name
1113
- # The relative resource name of this finding. See: https://cloud.google.com/apis/
1114
- # design/resource_names#relative_resource_name Example: "organizations/`
1115
- # organization_id`/sources/`source_id`/findings/`finding_id`"
1116
- # @param [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding] google_cloud_securitycenter_v1p1beta1_finding_object
1117
- # @param [String] update_mask
1118
- # The FieldMask to use when updating the finding resource. This field should not
1119
- # be specified when creating a finding. When updating a finding, an empty mask
1120
- # is treated as updating all mutable fields and replacing source_properties.
1121
- # Individual source_properties can be added/updated by using "source_properties."
1122
- # in the field mask.
1123
- # @param [String] fields
1124
- # Selector specifying which fields to include in a partial response.
1125
- # @param [String] quota_user
1126
- # Available to use for quota purposes for server-side applications. Can be any
1127
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1128
- # @param [Google::Apis::RequestOptions] options
1129
- # Request-specific options
1130
- #
1131
- # @yield [result, err] Result & error if block supplied
1132
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding] parsed result object
1133
- # @yieldparam err [StandardError] error object if request failed
1134
- #
1135
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding]
1136
- #
1137
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1138
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1139
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1140
- def patch_organization_source_finding(name, google_cloud_securitycenter_v1p1beta1_finding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1141
- command = make_simple_command(:patch, 'v1p1beta1/{+name}', options)
1142
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
1143
- command.request_object = google_cloud_securitycenter_v1p1beta1_finding_object
1144
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
1145
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding
1146
- command.params['name'] = name unless name.nil?
1147
- command.query['updateMask'] = update_mask unless update_mask.nil?
1148
- command.query['fields'] = fields unless fields.nil?
1149
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1150
- execute_or_queue_command(command, &block)
1151
- end
1152
-
1153
- # Updates the state of a finding.
1154
- # @param [String] name
1155
- # Required. The relative resource name of the finding. See: https://cloud.google.
1156
- # com/apis/design/resource_names#relative_resource_name Example: "organizations/`
1157
- # organization_id`/sources/`source_id`/finding/`finding_id`".
1158
- # @param [Google::Apis::SecuritycenterV1p1beta1::SetFindingStateRequest] set_finding_state_request_object
1159
- # @param [String] fields
1160
- # Selector specifying which fields to include in a partial response.
1161
- # @param [String] quota_user
1162
- # Available to use for quota purposes for server-side applications. Can be any
1163
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1164
- # @param [Google::Apis::RequestOptions] options
1165
- # Request-specific options
1166
- #
1167
- # @yield [result, err] Result & error if block supplied
1168
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding] parsed result object
1169
- # @yieldparam err [StandardError] error object if request failed
1170
- #
1171
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding]
1172
- #
1173
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1174
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1175
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1176
- def set_organization_source_finding_state(name, set_finding_state_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1177
- command = make_simple_command(:post, 'v1p1beta1/{+name}:setState', options)
1178
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::SetFindingStateRequest::Representation
1179
- command.request_object = set_finding_state_request_object
1180
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding::Representation
1181
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1Finding
1182
- command.params['name'] = name unless name.nil?
1183
- command.query['fields'] = fields unless fields.nil?
1184
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1185
- execute_or_queue_command(command, &block)
1186
- end
1187
-
1188
- # Updates security marks.
1189
- # @param [String] name
1190
- # The relative resource name of the SecurityMarks. See: https://cloud.google.com/
1191
- # apis/design/resource_names#relative_resource_name Examples: "organizations/`
1192
- # organization_id`/assets/`asset_id`/securityMarks" "organizations/`
1193
- # organization_id`/sources/`source_id`/findings/`finding_id`/securityMarks".
1194
- # @param [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks] google_cloud_securitycenter_v1p1beta1_security_marks_object
1195
- # @param [String] start_time
1196
- # The time at which the updated SecurityMarks take effect. If not set uses
1197
- # current server time. Updates will be applied to the SecurityMarks that are
1198
- # active immediately preceding this time.
1199
- # @param [String] update_mask
1200
- # The FieldMask to use when updating the security marks resource. The field mask
1201
- # must not contain duplicate fields. If empty or set to "marks", all marks will
1202
- # be replaced. Individual marks can be updated using "marks.".
1203
- # @param [String] fields
1204
- # Selector specifying which fields to include in a partial response.
1205
- # @param [String] quota_user
1206
- # Available to use for quota purposes for server-side applications. Can be any
1207
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1208
- # @param [Google::Apis::RequestOptions] options
1209
- # Request-specific options
1210
- #
1211
- # @yield [result, err] Result & error if block supplied
1212
- # @yieldparam result [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks] parsed result object
1213
- # @yieldparam err [StandardError] error object if request failed
1214
- #
1215
- # @return [Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks]
1216
- #
1217
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1218
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1219
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1220
- def update_organization_source_finding_security_marks(name, google_cloud_securitycenter_v1p1beta1_security_marks_object = nil, start_time: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1221
- command = make_simple_command(:patch, 'v1p1beta1/{+name}', options)
1222
- command.request_representation = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
1223
- command.request_object = google_cloud_securitycenter_v1p1beta1_security_marks_object
1224
- command.response_representation = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks::Representation
1225
- command.response_class = Google::Apis::SecuritycenterV1p1beta1::GoogleCloudSecuritycenterV1p1beta1SecurityMarks
1226
- command.params['name'] = name unless name.nil?
1227
- command.query['startTime'] = start_time unless start_time.nil?
1228
- command.query['updateMask'] = update_mask unless update_mask.nil?
1229
- command.query['fields'] = fields unless fields.nil?
1230
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1231
- execute_or_queue_command(command, &block)
1232
- end
1233
-
1234
- protected
1235
-
1236
- def apply_command_defaults(command)
1237
- command.query['key'] = key unless key.nil?
1238
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1239
- end
1240
- end
1241
- end
1242
- end
1243
- end