google-api-client 0.28.7 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (358) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/build.bat +9 -6
  3. data/.kokoro/build.sh +2 -32
  4. data/.kokoro/continuous/common.cfg +6 -1
  5. data/.kokoro/continuous/windows.cfg +17 -1
  6. data/.kokoro/osx.sh +2 -33
  7. data/.kokoro/presubmit/common.cfg +6 -1
  8. data/.kokoro/presubmit/windows.cfg +17 -1
  9. data/.kokoro/trampoline.bat +10 -0
  10. data/.kokoro/trampoline.sh +3 -23
  11. data/CHANGELOG.md +138 -0
  12. data/Rakefile +31 -0
  13. data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
  14. data/generated/google/apis/accessapproval_v1beta1/classes.rb +306 -0
  15. data/generated/google/apis/accessapproval_v1beta1/representations.rb +159 -0
  16. data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +96 -131
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -42
  20. data/generated/google/apis/admin_reports_v1.rb +1 -1
  21. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  22. data/generated/google/apis/alertcenter_v1beta1/classes.rb +98 -0
  23. data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
  24. data/generated/google/apis/alertcenter_v1beta1/service.rb +2 -1
  25. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  26. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +40 -0
  27. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  28. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  29. data/generated/google/apis/androidenterprise_v1/classes.rb +0 -26
  30. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -14
  31. data/generated/google/apis/androidenterprise_v1/service.rb +0 -36
  32. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  33. data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
  34. data/generated/google/apis/androidmanagement_v1/representations.rb +82 -0
  35. data/generated/google/apis/androidmanagement_v1/service.rb +170 -0
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/service.rb +6 -12
  38. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  39. data/generated/google/apis/androidpublisher_v3/service.rb +6 -12
  40. data/generated/google/apis/appengine_v1.rb +1 -1
  41. data/generated/google/apis/appengine_v1/service.rb +7 -1
  42. data/generated/google/apis/appengine_v1beta.rb +1 -1
  43. data/generated/google/apis/appengine_v1beta/classes.rb +2 -1
  44. data/generated/google/apis/appengine_v1beta/service.rb +7 -1
  45. data/generated/google/apis/appsactivity_v1.rb +1 -1
  46. data/generated/google/apis/appsactivity_v1/service.rb +4 -3
  47. data/generated/google/apis/bigquery_v2.rb +1 -1
  48. data/generated/google/apis/bigquery_v2/classes.rb +28 -4
  49. data/generated/google/apis/bigquery_v2/representations.rb +13 -0
  50. data/generated/google/apis/bigtableadmin_v1.rb +2 -2
  51. data/generated/google/apis/bigtableadmin_v1/service.rb +1 -1
  52. data/generated/google/apis/bigtableadmin_v2.rb +2 -2
  53. data/generated/google/apis/bigtableadmin_v2/classes.rb +10 -10
  54. data/generated/google/apis/bigtableadmin_v2/service.rb +111 -2
  55. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/calendar_v3/service.rb +16 -16
  58. data/generated/google/apis/classroom_v1.rb +7 -1
  59. data/generated/google/apis/classroom_v1/classes.rb +77 -0
  60. data/generated/google/apis/classroom_v1/representations.rb +32 -0
  61. data/generated/google/apis/classroom_v1/service.rb +224 -0
  62. data/generated/google/apis/cloudasset_v1.rb +1 -1
  63. data/generated/google/apis/cloudasset_v1/classes.rb +15 -2
  64. data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
  65. data/generated/google/apis/cloudasset_v1/service.rb +3 -2
  66. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  67. data/generated/google/apis/cloudasset_v1beta1/classes.rb +13 -0
  68. data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
  69. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  70. data/generated/google/apis/cloudbilling_v1/service.rb +2 -2
  71. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  72. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1 -1
  73. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  74. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
  75. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -5
  76. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  77. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -10
  78. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  79. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -4
  80. data/generated/google/apis/cloudiot_v1.rb +1 -1
  81. data/generated/google/apis/cloudkms_v1.rb +1 -1
  82. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  83. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  84. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
  85. data/generated/google/apis/cloudresourcemanager_v1/service.rb +30 -21
  86. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  87. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +37 -26
  88. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  89. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  90. data/generated/google/apis/cloudscheduler_v1.rb +34 -0
  91. data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
  92. data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
  93. data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
  94. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  95. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -2
  96. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  97. data/generated/google/apis/cloudsearch_v1/classes.rb +25 -11
  98. data/generated/google/apis/cloudsearch_v1/service.rb +36 -32
  99. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  100. data/generated/google/apis/cloudtasks_v2/service.rb +13 -13
  101. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  102. data/generated/google/apis/cloudtasks_v2beta2/service.rb +13 -13
  103. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  104. data/generated/google/apis/cloudtasks_v2beta3/service.rb +13 -13
  105. data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
  106. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
  107. data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
  108. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
  109. data/generated/google/apis/compute_alpha.rb +1 -1
  110. data/generated/google/apis/compute_alpha/classes.rb +328 -25
  111. data/generated/google/apis/compute_alpha/representations.rb +134 -0
  112. data/generated/google/apis/compute_alpha/service.rb +465 -0
  113. data/generated/google/apis/compute_beta.rb +1 -1
  114. data/generated/google/apis/compute_beta/classes.rb +86 -20
  115. data/generated/google/apis/compute_beta/representations.rb +7 -0
  116. data/generated/google/apis/compute_v1.rb +1 -1
  117. data/generated/google/apis/compute_v1/classes.rb +994 -103
  118. data/generated/google/apis/compute_v1/representations.rb +346 -0
  119. data/generated/google/apis/compute_v1/service.rb +533 -0
  120. data/generated/google/apis/container_v1.rb +1 -1
  121. data/generated/google/apis/container_v1/classes.rb +167 -21
  122. data/generated/google/apis/container_v1/representations.rb +66 -0
  123. data/generated/google/apis/container_v1/service.rb +85 -36
  124. data/generated/google/apis/container_v1beta1.rb +1 -1
  125. data/generated/google/apis/container_v1beta1/classes.rb +86 -21
  126. data/generated/google/apis/container_v1beta1/representations.rb +32 -0
  127. data/generated/google/apis/container_v1beta1/service.rb +38 -38
  128. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  129. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  130. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +95 -6
  131. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +25 -0
  132. data/generated/google/apis/content_v2.rb +1 -1
  133. data/generated/google/apis/content_v2/classes.rb +5 -5
  134. data/generated/google/apis/content_v2/service.rb +6 -6
  135. data/generated/google/apis/content_v2_1.rb +1 -1
  136. data/generated/google/apis/content_v2_1/classes.rb +18 -4
  137. data/generated/google/apis/content_v2_1/representations.rb +2 -0
  138. data/generated/google/apis/content_v2_1/service.rb +6 -6
  139. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  140. data/generated/google/apis/dataflow_v1b3/classes.rb +56 -1
  141. data/generated/google/apis/dataflow_v1b3/representations.rb +39 -0
  142. data/generated/google/apis/dataflow_v1b3/service.rb +251 -0
  143. data/generated/google/apis/datafusion_v1beta1.rb +43 -0
  144. data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
  145. data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
  146. data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
  147. data/generated/google/apis/dataproc_v1.rb +1 -1
  148. data/generated/google/apis/dataproc_v1/classes.rb +5 -5
  149. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  150. data/generated/google/apis/dataproc_v1beta2/classes.rb +37 -24
  151. data/generated/google/apis/datastore_v1.rb +1 -1
  152. data/generated/google/apis/datastore_v1/classes.rb +20 -16
  153. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  154. data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
  155. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  156. data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
  157. data/generated/google/apis/dialogflow_v2.rb +1 -1
  158. data/generated/google/apis/dialogflow_v2/classes.rb +236 -0
  159. data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
  160. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  161. data/generated/google/apis/dialogflow_v2beta1/classes.rb +64 -2
  162. data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
  163. data/generated/google/apis/dlp_v2.rb +1 -1
  164. data/generated/google/apis/dlp_v2/classes.rb +19 -2
  165. data/generated/google/apis/dns_v1.rb +1 -1
  166. data/generated/google/apis/dns_v1/classes.rb +202 -93
  167. data/generated/google/apis/dns_v1/service.rb +110 -15
  168. data/generated/google/apis/dns_v1beta2.rb +1 -1
  169. data/generated/google/apis/dns_v1beta2/classes.rb +262 -122
  170. data/generated/google/apis/dns_v1beta2/service.rb +141 -21
  171. data/generated/google/apis/dns_v2beta1.rb +1 -1
  172. data/generated/google/apis/dns_v2beta1/classes.rb +202 -93
  173. data/generated/google/apis/dns_v2beta1/service.rb +110 -15
  174. data/generated/google/apis/docs_v1.rb +1 -1
  175. data/generated/google/apis/docs_v1/classes.rb +10 -0
  176. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  177. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
  178. data/generated/google/apis/drive_v2.rb +1 -1
  179. data/generated/google/apis/drive_v2/classes.rb +601 -69
  180. data/generated/google/apis/drive_v2/representations.rb +152 -0
  181. data/generated/google/apis/drive_v2/service.rb +452 -96
  182. data/generated/google/apis/drive_v3.rb +1 -1
  183. data/generated/google/apis/drive_v3/classes.rb +591 -64
  184. data/generated/google/apis/drive_v3/representations.rb +151 -0
  185. data/generated/google/apis/drive_v3/service.rb +407 -77
  186. data/generated/google/apis/driveactivity_v2.rb +1 -1
  187. data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
  188. data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
  189. data/generated/google/apis/file_v1.rb +1 -1
  190. data/generated/google/apis/file_v1/classes.rb +399 -8
  191. data/generated/google/apis/file_v1/representations.rb +121 -0
  192. data/generated/google/apis/file_v1beta1.rb +1 -1
  193. data/generated/google/apis/file_v1beta1/classes.rb +399 -8
  194. data/generated/google/apis/file_v1beta1/representations.rb +121 -0
  195. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  196. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +28 -4
  197. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
  198. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  199. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
  200. data/generated/google/apis/firebaserules_v1.rb +1 -1
  201. data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
  202. data/generated/google/apis/firestore_v1.rb +1 -1
  203. data/generated/google/apis/firestore_v1/classes.rb +15 -15
  204. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  205. data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
  206. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  207. data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
  208. data/generated/google/apis/fitness_v1.rb +1 -1
  209. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  210. data/generated/google/apis/games_v1.rb +2 -2
  211. data/generated/google/apis/gmail_v1.rb +1 -1
  212. data/generated/google/apis/gmail_v1/classes.rb +29 -0
  213. data/generated/google/apis/gmail_v1/representations.rb +13 -0
  214. data/generated/google/apis/gmail_v1/service.rb +76 -0
  215. data/generated/google/apis/healthcare_v1beta1.rb +34 -0
  216. data/generated/google/apis/healthcare_v1beta1/classes.rb +2462 -0
  217. data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
  218. data/generated/google/apis/healthcare_v1beta1/service.rb +3403 -0
  219. data/generated/google/apis/iap_v1.rb +1 -1
  220. data/generated/google/apis/iap_v1beta1.rb +1 -1
  221. data/generated/google/apis/jobs_v2.rb +1 -1
  222. data/generated/google/apis/jobs_v2/classes.rb +9 -8
  223. data/generated/google/apis/jobs_v3.rb +1 -1
  224. data/generated/google/apis/jobs_v3/classes.rb +13 -7
  225. data/generated/google/apis/jobs_v3/service.rb +1 -2
  226. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  227. data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -7
  228. data/generated/google/apis/jobs_v3p1beta1/service.rb +1 -2
  229. data/generated/google/apis/language_v1.rb +1 -1
  230. data/generated/google/apis/language_v1/classes.rb +3 -2
  231. data/generated/google/apis/language_v1beta2.rb +1 -1
  232. data/generated/google/apis/language_v1beta2/classes.rb +3 -2
  233. data/generated/google/apis/ml_v1.rb +1 -1
  234. data/generated/google/apis/ml_v1/classes.rb +64 -16
  235. data/generated/google/apis/ml_v1/representations.rb +2 -0
  236. data/generated/google/apis/ml_v1/service.rb +5 -5
  237. data/generated/google/apis/monitoring_v3.rb +1 -1
  238. data/generated/google/apis/monitoring_v3/classes.rb +0 -10
  239. data/generated/google/apis/monitoring_v3/representations.rb +0 -1
  240. data/generated/google/apis/oauth2_v1.rb +1 -1
  241. data/generated/google/apis/oauth2_v2.rb +1 -1
  242. data/generated/google/apis/oslogin_v1.rb +3 -2
  243. data/generated/google/apis/oslogin_v1/service.rb +2 -1
  244. data/generated/google/apis/oslogin_v1alpha.rb +3 -2
  245. data/generated/google/apis/oslogin_v1alpha/service.rb +2 -1
  246. data/generated/google/apis/oslogin_v1beta.rb +3 -2
  247. data/generated/google/apis/oslogin_v1beta/service.rb +2 -1
  248. data/generated/google/apis/people_v1.rb +1 -4
  249. data/generated/google/apis/people_v1/classes.rb +19 -11
  250. data/generated/google/apis/people_v1/representations.rb +1 -0
  251. data/generated/google/apis/people_v1/service.rb +1 -0
  252. data/generated/google/apis/plus_domains_v1.rb +2 -5
  253. data/generated/google/apis/plus_domains_v1/service.rb +8 -90
  254. data/generated/google/apis/plus_v1.rb +2 -2
  255. data/generated/google/apis/plus_v1/service.rb +7 -7
  256. data/generated/google/apis/poly_v1.rb +1 -1
  257. data/generated/google/apis/poly_v1/classes.rb +3 -2
  258. data/generated/google/apis/poly_v1/service.rb +11 -8
  259. data/generated/google/apis/pubsub_v1.rb +1 -1
  260. data/generated/google/apis/pubsub_v1/classes.rb +2 -1
  261. data/generated/google/apis/pubsub_v1/service.rb +8 -8
  262. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  263. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  264. data/generated/google/apis/remotebuildexecution_v1/classes.rb +7 -6
  265. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  266. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -4
  267. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  268. data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -4
  269. data/generated/google/apis/run_v1alpha1.rb +1 -1
  270. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  271. data/generated/google/apis/securitycenter_v1.rb +35 -0
  272. data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
  273. data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
  274. data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
  275. data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
  276. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
  277. data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
  278. data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
  279. data/generated/google/apis/servicebroker_v1.rb +1 -1
  280. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  281. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  282. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  283. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +324 -13
  284. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +174 -0
  285. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +5 -0
  286. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  287. data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
  288. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  289. data/generated/google/apis/servicemanagement_v1/classes.rb +101 -20
  290. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  291. data/generated/google/apis/servicenetworking_v1/classes.rb +16 -13
  292. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  293. data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -13
  294. data/generated/google/apis/serviceusage_v1.rb +1 -1
  295. data/generated/google/apis/serviceusage_v1/classes.rb +110 -13
  296. data/generated/google/apis/serviceusage_v1/representations.rb +43 -0
  297. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  298. data/generated/google/apis/serviceusage_v1beta1/classes.rb +110 -13
  299. data/generated/google/apis/serviceusage_v1beta1/representations.rb +43 -0
  300. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  301. data/generated/google/apis/sourcerepo_v1/classes.rb +182 -0
  302. data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
  303. data/generated/google/apis/sourcerepo_v1/service.rb +35 -0
  304. data/generated/google/apis/spanner_v1.rb +1 -1
  305. data/generated/google/apis/spanner_v1/classes.rb +20 -19
  306. data/generated/google/apis/spanner_v1/service.rb +1 -1
  307. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  308. data/generated/google/apis/sqladmin_v1beta4/classes.rb +9 -2
  309. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  310. data/generated/google/apis/storage_v1.rb +1 -1
  311. data/generated/google/apis/storage_v1/classes.rb +144 -0
  312. data/generated/google/apis/storage_v1/representations.rb +56 -0
  313. data/generated/google/apis/storage_v1/service.rb +441 -46
  314. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  315. data/generated/google/apis/storagetransfer_v1/classes.rb +3 -3
  316. data/generated/google/apis/testing_v1.rb +1 -1
  317. data/generated/google/apis/testing_v1/classes.rb +6 -0
  318. data/generated/google/apis/testing_v1/representations.rb +1 -0
  319. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  320. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  321. data/generated/google/apis/toolresults_v1beta3/classes.rb +240 -0
  322. data/generated/google/apis/toolresults_v1beta3/representations.rb +43 -0
  323. data/generated/google/apis/toolresults_v1beta3/service.rb +116 -0
  324. data/generated/google/apis/tpu_v1.rb +1 -1
  325. data/generated/google/apis/tpu_v1/classes.rb +10 -4
  326. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  327. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  328. data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -4
  329. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  330. data/generated/google/apis/vault_v1.rb +1 -1
  331. data/generated/google/apis/vault_v1/classes.rb +37 -18
  332. data/generated/google/apis/vault_v1/representations.rb +3 -0
  333. data/generated/google/apis/vision_v1.rb +1 -1
  334. data/generated/google/apis/vision_v1/classes.rb +84 -47
  335. data/generated/google/apis/vision_v1/service.rb +68 -4
  336. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  337. data/generated/google/apis/vision_v1p1beta1/classes.rb +84 -47
  338. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  339. data/generated/google/apis/vision_v1p2beta1/classes.rb +84 -47
  340. data/generated/google/apis/webmasters_v3.rb +1 -1
  341. data/generated/google/apis/webmasters_v3/classes.rb +0 -166
  342. data/generated/google/apis/webmasters_v3/representations.rb +0 -93
  343. data/generated/google/apis/webmasters_v3/service.rb +0 -171
  344. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  345. data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
  346. data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
  347. data/generated/google/apis/youtube_v3.rb +1 -1
  348. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  349. data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
  350. data/google-api-client.gemspec +1 -1
  351. data/lib/google/apis/version.rb +1 -1
  352. metadata +31 -9
  353. data/.kokoro/common.cfg +0 -22
  354. data/.kokoro/windows.sh +0 -32
  355. data/generated/google/apis/logging_v2beta1.rb +0 -46
  356. data/generated/google/apis/logging_v2beta1/classes.rb +0 -1764
  357. data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
  358. data/generated/google/apis/logging_v2beta1/service.rb +0 -570
@@ -0,0 +1,1035 @@
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 SecuritycenterV1beta1
23
+ # Cloud Security Command Center API
24
+ #
25
+ # Cloud Security Command Center API provides access to temporal views of assets
26
+ # and findings within an organization.
27
+ #
28
+ # @example
29
+ # require 'google/apis/securitycenter_v1beta1'
30
+ #
31
+ # Securitycenter = Google::Apis::SecuritycenterV1beta1 # 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
+ # Name of the organization to get organization settings for. Its format is
54
+ # "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::SecuritycenterV1beta1::OrganizationSettings] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::SecuritycenterV1beta1::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, 'v1beta1/{+name}', options)
74
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::OrganizationSettings::Representation
75
+ command.response_class = Google::Apis::SecuritycenterV1beta1::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:
85
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
86
+ # Example:
87
+ # "organizations/123/organizationSettings".
88
+ # @param [Google::Apis::SecuritycenterV1beta1::OrganizationSettings] organization_settings_object
89
+ # @param [String] update_mask
90
+ # The FieldMask to use when updating the settings resource.
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::SecuritycenterV1beta1::OrganizationSettings] parsed result object
101
+ # @yieldparam err [StandardError] error object if request failed
102
+ #
103
+ # @return [Google::Apis::SecuritycenterV1beta1::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, 'v1beta1/{+name}', options)
110
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::OrganizationSettings::Representation
111
+ command.request_object = organization_settings_object
112
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::OrganizationSettings::Representation
113
+ command.response_class = Google::Apis::SecuritycenterV1beta1::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
122
+ # properties.
123
+ # @param [String] parent
124
+ # Name of the organization to groupBy. Its format is
125
+ # "organizations/[organization_id]".
126
+ # @param [Google::Apis::SecuritycenterV1beta1::GroupAssetsRequest] group_assets_request_object
127
+ # @param [String] fields
128
+ # Selector specifying which fields to include in a partial response.
129
+ # @param [String] quota_user
130
+ # Available to use for quota purposes for server-side applications. Can be any
131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
132
+ # @param [Google::Apis::RequestOptions] options
133
+ # Request-specific options
134
+ #
135
+ # @yield [result, err] Result & error if block supplied
136
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::GroupAssetsResponse] parsed result object
137
+ # @yieldparam err [StandardError] error object if request failed
138
+ #
139
+ # @return [Google::Apis::SecuritycenterV1beta1::GroupAssetsResponse]
140
+ #
141
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
142
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
143
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
144
+ def group_assets(parent, group_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
145
+ command = make_simple_command(:post, 'v1beta1/{+parent}/assets:group', options)
146
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::GroupAssetsRequest::Representation
147
+ command.request_object = group_assets_request_object
148
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::GroupAssetsResponse::Representation
149
+ command.response_class = Google::Apis::SecuritycenterV1beta1::GroupAssetsResponse
150
+ command.params['parent'] = parent unless parent.nil?
151
+ command.query['fields'] = fields unless fields.nil?
152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
153
+ execute_or_queue_command(command, &block)
154
+ end
155
+
156
+ # Lists an organization's assets.
157
+ # @param [String] parent
158
+ # Name of the organization assets should belong to. Its format is
159
+ # "organizations/[organization_id]".
160
+ # @param [String] compare_duration
161
+ # When compare_duration is set, the ListAssetResult's "state" attribute is
162
+ # updated to indicate whether the asset was added, removed, or remained
163
+ # present during the compare_duration period of time that precedes the
164
+ # read_time. This is the time between (read_time -
165
+ # compare_duration) and read_time.
166
+ # The state value is derived based on the presence of the asset at the two
167
+ # points in time. Intermediate state changes between the two times don't
168
+ # affect the result. For example, the results aren't affected if the asset is
169
+ # removed and re-created again.
170
+ # Possible "state" values when compare_duration is specified:
171
+ # * "ADDED": indicates that the asset was not present before
172
+ # compare_duration, but present at read_time.
173
+ # * "REMOVED": indicates that the asset was present at the start of
174
+ # compare_duration, but not present at read_time.
175
+ # * "ACTIVE": indicates that the asset was present at both the
176
+ # start and the end of the time period defined by
177
+ # compare_duration and read_time.
178
+ # If compare_duration is not specified, then the only possible state is
179
+ # "UNUSED", which indicates that the asset is present at read_time.
180
+ # @param [String] field_mask
181
+ # Optional.
182
+ # A field mask to specify the ListAssetsResult fields to be listed in the
183
+ # response.
184
+ # An empty field mask will list all fields.
185
+ # @param [String] filter
186
+ # Expression that defines the filter to apply across assets.
187
+ # The expression is a list of zero or more restrictions combined via logical
188
+ # operators `AND` and `OR`.
189
+ # Parentheses are not supported, and `OR` has higher precedence than `AND`.
190
+ # Restrictions have the form `<field> <operator> <value>` and may have a `-`
191
+ # character in front of them to indicate negation. The fields map to those
192
+ # defined in the Asset resource. Examples include:
193
+ # * name
194
+ # * security_center_properties.resource_name
195
+ # * resource_properties.a_property
196
+ # * security_marks.marks.marka
197
+ # The supported operators are:
198
+ # * `=` for all value types.
199
+ # * `>`, `<`, `>=`, `<=` for integer values.
200
+ # * `:`, meaning substring matching, for strings.
201
+ # The supported value types are:
202
+ # * string literals in quotes.
203
+ # * integer literals without quotes.
204
+ # * boolean literals `true` and `false` without quotes.
205
+ # For example, `resource_properties.size = 100` is a valid filter string.
206
+ # @param [String] order_by
207
+ # Expression that defines what fields and order to use for sorting. The
208
+ # string value should follow SQL syntax: comma separated list of fields. For
209
+ # example: "name,resource_properties.a_property". The default sorting order
210
+ # is ascending. To specify descending order for a field, a suffix " desc"
211
+ # should be appended to the field name. For example: "name
212
+ # desc,resource_properties.a_property". Redundant space characters in the
213
+ # syntax are insignificant. "name desc,resource_properties.a_property" and "
214
+ # name desc , resource_properties.a_property " are equivalent.
215
+ # @param [Fixnum] page_size
216
+ # The maximum number of results to return in a single response. Default is
217
+ # 10, minimum is 1, maximum is 1000.
218
+ # @param [String] page_token
219
+ # The value returned by the last `ListAssetsResponse`; indicates
220
+ # that this is a continuation of a prior `ListAssets` call, and
221
+ # that the system should return the next page of data.
222
+ # @param [String] read_time
223
+ # Time used as a reference point when filtering assets. The filter is limited
224
+ # to assets existing at the supplied time and their values are those at that
225
+ # specific time. Absence of this field will default to the API's version of
226
+ # NOW.
227
+ # @param [String] fields
228
+ # Selector specifying which fields to include in a partial response.
229
+ # @param [String] quota_user
230
+ # Available to use for quota purposes for server-side applications. Can be any
231
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
232
+ # @param [Google::Apis::RequestOptions] options
233
+ # Request-specific options
234
+ #
235
+ # @yield [result, err] Result & error if block supplied
236
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::ListAssetsResponse] parsed result object
237
+ # @yieldparam err [StandardError] error object if request failed
238
+ #
239
+ # @return [Google::Apis::SecuritycenterV1beta1::ListAssetsResponse]
240
+ #
241
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
242
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
243
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
244
+ 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)
245
+ command = make_simple_command(:get, 'v1beta1/{+parent}/assets', options)
246
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::ListAssetsResponse::Representation
247
+ command.response_class = Google::Apis::SecuritycenterV1beta1::ListAssetsResponse
248
+ command.params['parent'] = parent unless parent.nil?
249
+ command.query['compareDuration'] = compare_duration unless compare_duration.nil?
250
+ command.query['fieldMask'] = field_mask unless field_mask.nil?
251
+ command.query['filter'] = filter unless filter.nil?
252
+ command.query['orderBy'] = order_by unless order_by.nil?
253
+ command.query['pageSize'] = page_size unless page_size.nil?
254
+ command.query['pageToken'] = page_token unless page_token.nil?
255
+ command.query['readTime'] = read_time unless read_time.nil?
256
+ command.query['fields'] = fields unless fields.nil?
257
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
258
+ execute_or_queue_command(command, &block)
259
+ end
260
+
261
+ # Runs asset discovery. The discovery is tracked with a long-running
262
+ # operation.
263
+ # This API can only be called with limited frequency for an organization. If
264
+ # it is called too frequently the caller will receive a TOO_MANY_REQUESTS
265
+ # error.
266
+ # @param [String] parent
267
+ # Name of the organization to run asset discovery for. Its format is
268
+ # "organizations/[organization_id]".
269
+ # @param [Google::Apis::SecuritycenterV1beta1::RunAssetDiscoveryRequest] run_asset_discovery_request_object
270
+ # @param [String] fields
271
+ # Selector specifying which fields to include in a partial response.
272
+ # @param [String] quota_user
273
+ # Available to use for quota purposes for server-side applications. Can be any
274
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
275
+ # @param [Google::Apis::RequestOptions] options
276
+ # Request-specific options
277
+ #
278
+ # @yield [result, err] Result & error if block supplied
279
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::Operation] parsed result object
280
+ # @yieldparam err [StandardError] error object if request failed
281
+ #
282
+ # @return [Google::Apis::SecuritycenterV1beta1::Operation]
283
+ #
284
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
285
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
286
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
287
+ def run_organization_asset_discovery(parent, run_asset_discovery_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
288
+ command = make_simple_command(:post, 'v1beta1/{+parent}/assets:runDiscovery', options)
289
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::RunAssetDiscoveryRequest::Representation
290
+ command.request_object = run_asset_discovery_request_object
291
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::Operation::Representation
292
+ command.response_class = Google::Apis::SecuritycenterV1beta1::Operation
293
+ command.params['parent'] = parent unless parent.nil?
294
+ command.query['fields'] = fields unless fields.nil?
295
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
296
+ execute_or_queue_command(command, &block)
297
+ end
298
+
299
+ # Updates security marks.
300
+ # @param [String] name
301
+ # The relative resource name of the SecurityMarks. See:
302
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
303
+ # Examples:
304
+ # "organizations/123/assets/456/securityMarks"
305
+ # "organizations/123/sources/456/findings/789/securityMarks".
306
+ # @param [Google::Apis::SecuritycenterV1beta1::SecurityMarks] security_marks_object
307
+ # @param [String] start_time
308
+ # The time at which the updated SecurityMarks take effect.
309
+ # @param [String] update_mask
310
+ # The FieldMask to use when updating the security marks resource.
311
+ # @param [String] fields
312
+ # Selector specifying which fields to include in a partial response.
313
+ # @param [String] quota_user
314
+ # Available to use for quota purposes for server-side applications. Can be any
315
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
316
+ # @param [Google::Apis::RequestOptions] options
317
+ # Request-specific options
318
+ #
319
+ # @yield [result, err] Result & error if block supplied
320
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::SecurityMarks] parsed result object
321
+ # @yieldparam err [StandardError] error object if request failed
322
+ #
323
+ # @return [Google::Apis::SecuritycenterV1beta1::SecurityMarks]
324
+ #
325
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
326
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
327
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
328
+ def update_organization_asset_security_marks(name, security_marks_object = nil, start_time: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
329
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
330
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::SecurityMarks::Representation
331
+ command.request_object = security_marks_object
332
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::SecurityMarks::Representation
333
+ command.response_class = Google::Apis::SecuritycenterV1beta1::SecurityMarks
334
+ command.params['name'] = name unless name.nil?
335
+ command.query['startTime'] = start_time unless start_time.nil?
336
+ command.query['updateMask'] = update_mask unless update_mask.nil?
337
+ command.query['fields'] = fields unless fields.nil?
338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
339
+ execute_or_queue_command(command, &block)
340
+ end
341
+
342
+ # Starts asynchronous cancellation on a long-running operation. The server
343
+ # makes a best effort to cancel the operation, but success is not
344
+ # guaranteed. If the server doesn't support this method, it returns
345
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
346
+ # Operations.GetOperation or
347
+ # other methods to check whether the cancellation succeeded or whether the
348
+ # operation completed despite cancellation. On successful cancellation,
349
+ # the operation is not deleted; instead, it becomes an operation with
350
+ # an Operation.error value with a google.rpc.Status.code of 1,
351
+ # corresponding to `Code.CANCELLED`.
352
+ # @param [String] name
353
+ # The name of the operation resource to be cancelled.
354
+ # @param [Google::Apis::SecuritycenterV1beta1::CancelOperationRequest] cancel_operation_request_object
355
+ # @param [String] fields
356
+ # Selector specifying which fields to include in a partial response.
357
+ # @param [String] quota_user
358
+ # Available to use for quota purposes for server-side applications. Can be any
359
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
360
+ # @param [Google::Apis::RequestOptions] options
361
+ # Request-specific options
362
+ #
363
+ # @yield [result, err] Result & error if block supplied
364
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::Empty] parsed result object
365
+ # @yieldparam err [StandardError] error object if request failed
366
+ #
367
+ # @return [Google::Apis::SecuritycenterV1beta1::Empty]
368
+ #
369
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
370
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
371
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
372
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
373
+ command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
374
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::CancelOperationRequest::Representation
375
+ command.request_object = cancel_operation_request_object
376
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::Empty::Representation
377
+ command.response_class = Google::Apis::SecuritycenterV1beta1::Empty
378
+ command.params['name'] = name unless name.nil?
379
+ command.query['fields'] = fields unless fields.nil?
380
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
381
+ execute_or_queue_command(command, &block)
382
+ end
383
+
384
+ # Deletes a long-running operation. This method indicates that the client is
385
+ # no longer interested in the operation result. It does not cancel the
386
+ # operation. If the server doesn't support this method, it returns
387
+ # `google.rpc.Code.UNIMPLEMENTED`.
388
+ # @param [String] name
389
+ # The name of the operation resource to be deleted.
390
+ # @param [String] fields
391
+ # Selector specifying which fields to include in a partial response.
392
+ # @param [String] quota_user
393
+ # Available to use for quota purposes for server-side applications. Can be any
394
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
395
+ # @param [Google::Apis::RequestOptions] options
396
+ # Request-specific options
397
+ #
398
+ # @yield [result, err] Result & error if block supplied
399
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::Empty] parsed result object
400
+ # @yieldparam err [StandardError] error object if request failed
401
+ #
402
+ # @return [Google::Apis::SecuritycenterV1beta1::Empty]
403
+ #
404
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
405
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
406
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
407
+ def delete_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
408
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
409
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::Empty::Representation
410
+ command.response_class = Google::Apis::SecuritycenterV1beta1::Empty
411
+ command.params['name'] = name unless name.nil?
412
+ command.query['fields'] = fields unless fields.nil?
413
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
414
+ execute_or_queue_command(command, &block)
415
+ end
416
+
417
+ # Gets the latest state of a long-running operation. Clients can use this
418
+ # method to poll the operation result at intervals as recommended by the API
419
+ # service.
420
+ # @param [String] name
421
+ # The name of the operation resource.
422
+ # @param [String] fields
423
+ # Selector specifying which fields to include in a partial response.
424
+ # @param [String] quota_user
425
+ # Available to use for quota purposes for server-side applications. Can be any
426
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
427
+ # @param [Google::Apis::RequestOptions] options
428
+ # Request-specific options
429
+ #
430
+ # @yield [result, err] Result & error if block supplied
431
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::Operation] parsed result object
432
+ # @yieldparam err [StandardError] error object if request failed
433
+ #
434
+ # @return [Google::Apis::SecuritycenterV1beta1::Operation]
435
+ #
436
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
437
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
438
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
439
+ def get_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
440
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
441
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::Operation::Representation
442
+ command.response_class = Google::Apis::SecuritycenterV1beta1::Operation
443
+ command.params['name'] = name unless name.nil?
444
+ command.query['fields'] = fields unless fields.nil?
445
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
446
+ execute_or_queue_command(command, &block)
447
+ end
448
+
449
+ # Lists operations that match the specified filter in the request. If the
450
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
451
+ # NOTE: the `name` binding allows API services to override the binding
452
+ # to use different resource name schemes, such as `users/*/operations`. To
453
+ # override the binding, API services can add a binding such as
454
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
455
+ # For backwards compatibility, the default name includes the operations
456
+ # collection id, however overriding users must ensure the name binding
457
+ # is the parent resource, without the operations collection id.
458
+ # @param [String] name
459
+ # The name of the operation's parent resource.
460
+ # @param [String] filter
461
+ # The standard list filter.
462
+ # @param [Fixnum] page_size
463
+ # The standard list page size.
464
+ # @param [String] page_token
465
+ # The standard list page token.
466
+ # @param [String] fields
467
+ # Selector specifying which fields to include in a partial response.
468
+ # @param [String] quota_user
469
+ # Available to use for quota purposes for server-side applications. Can be any
470
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
471
+ # @param [Google::Apis::RequestOptions] options
472
+ # Request-specific options
473
+ #
474
+ # @yield [result, err] Result & error if block supplied
475
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::ListOperationsResponse] parsed result object
476
+ # @yieldparam err [StandardError] error object if request failed
477
+ #
478
+ # @return [Google::Apis::SecuritycenterV1beta1::ListOperationsResponse]
479
+ #
480
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
481
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
482
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
483
+ def list_organization_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
484
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
485
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::ListOperationsResponse::Representation
486
+ command.response_class = Google::Apis::SecuritycenterV1beta1::ListOperationsResponse
487
+ command.params['name'] = name unless name.nil?
488
+ command.query['filter'] = filter unless filter.nil?
489
+ command.query['pageSize'] = page_size unless page_size.nil?
490
+ command.query['pageToken'] = page_token unless page_token.nil?
491
+ command.query['fields'] = fields unless fields.nil?
492
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
493
+ execute_or_queue_command(command, &block)
494
+ end
495
+
496
+ # Creates a source.
497
+ # @param [String] parent
498
+ # Resource name of the new source's parent. Its format should be
499
+ # "organizations/[organization_id]".
500
+ # @param [Google::Apis::SecuritycenterV1beta1::Source] source_object
501
+ # @param [String] fields
502
+ # Selector specifying which fields to include in a partial response.
503
+ # @param [String] quota_user
504
+ # Available to use for quota purposes for server-side applications. Can be any
505
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
506
+ # @param [Google::Apis::RequestOptions] options
507
+ # Request-specific options
508
+ #
509
+ # @yield [result, err] Result & error if block supplied
510
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::Source] parsed result object
511
+ # @yieldparam err [StandardError] error object if request failed
512
+ #
513
+ # @return [Google::Apis::SecuritycenterV1beta1::Source]
514
+ #
515
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
516
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
517
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
518
+ def create_organization_source(parent, source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
519
+ command = make_simple_command(:post, 'v1beta1/{+parent}/sources', options)
520
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::Source::Representation
521
+ command.request_object = source_object
522
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::Source::Representation
523
+ command.response_class = Google::Apis::SecuritycenterV1beta1::Source
524
+ command.params['parent'] = parent unless parent.nil?
525
+ command.query['fields'] = fields unless fields.nil?
526
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
527
+ execute_or_queue_command(command, &block)
528
+ end
529
+
530
+ # Gets a source.
531
+ # @param [String] name
532
+ # Relative resource name of the source. Its format is
533
+ # "organizations/[organization_id]/source/[source_id]".
534
+ # @param [String] fields
535
+ # Selector specifying which fields to include in a partial response.
536
+ # @param [String] quota_user
537
+ # Available to use for quota purposes for server-side applications. Can be any
538
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
539
+ # @param [Google::Apis::RequestOptions] options
540
+ # Request-specific options
541
+ #
542
+ # @yield [result, err] Result & error if block supplied
543
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::Source] parsed result object
544
+ # @yieldparam err [StandardError] error object if request failed
545
+ #
546
+ # @return [Google::Apis::SecuritycenterV1beta1::Source]
547
+ #
548
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
549
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
550
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
551
+ def get_organization_source(name, fields: nil, quota_user: nil, options: nil, &block)
552
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
553
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::Source::Representation
554
+ command.response_class = Google::Apis::SecuritycenterV1beta1::Source
555
+ command.params['name'] = name unless name.nil?
556
+ command.query['fields'] = fields unless fields.nil?
557
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
558
+ execute_or_queue_command(command, &block)
559
+ end
560
+
561
+ # Gets the access control policy on the specified Source.
562
+ # @param [String] resource
563
+ # REQUIRED: The resource for which the policy is being requested.
564
+ # See the operation documentation for the appropriate value for this field.
565
+ # @param [Google::Apis::SecuritycenterV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
566
+ # @param [String] fields
567
+ # Selector specifying which fields to include in a partial response.
568
+ # @param [String] quota_user
569
+ # Available to use for quota purposes for server-side applications. Can be any
570
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
571
+ # @param [Google::Apis::RequestOptions] options
572
+ # Request-specific options
573
+ #
574
+ # @yield [result, err] Result & error if block supplied
575
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::Policy] parsed result object
576
+ # @yieldparam err [StandardError] error object if request failed
577
+ #
578
+ # @return [Google::Apis::SecuritycenterV1beta1::Policy]
579
+ #
580
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
581
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
582
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
583
+ def get_source_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
584
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
585
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::GetIamPolicyRequest::Representation
586
+ command.request_object = get_iam_policy_request_object
587
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::Policy::Representation
588
+ command.response_class = Google::Apis::SecuritycenterV1beta1::Policy
589
+ command.params['resource'] = resource unless resource.nil?
590
+ command.query['fields'] = fields unless fields.nil?
591
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
592
+ execute_or_queue_command(command, &block)
593
+ end
594
+
595
+ # Lists all sources belonging to an organization.
596
+ # @param [String] parent
597
+ # Resource name of the parent of sources to list. Its format should be
598
+ # "organizations/[organization_id]".
599
+ # @param [Fixnum] page_size
600
+ # The maximum number of results to return in a single response. Default is
601
+ # 10, minimum is 1, maximum is 1000.
602
+ # @param [String] page_token
603
+ # The value returned by the last `ListSourcesResponse`; indicates
604
+ # that this is a continuation of a prior `ListSources` call, and
605
+ # that the system should return the next page of data.
606
+ # @param [String] fields
607
+ # Selector specifying which fields to include in a partial response.
608
+ # @param [String] quota_user
609
+ # Available to use for quota purposes for server-side applications. Can be any
610
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
611
+ # @param [Google::Apis::RequestOptions] options
612
+ # Request-specific options
613
+ #
614
+ # @yield [result, err] Result & error if block supplied
615
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::ListSourcesResponse] parsed result object
616
+ # @yieldparam err [StandardError] error object if request failed
617
+ #
618
+ # @return [Google::Apis::SecuritycenterV1beta1::ListSourcesResponse]
619
+ #
620
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
621
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
622
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
623
+ def list_organization_sources(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
624
+ command = make_simple_command(:get, 'v1beta1/{+parent}/sources', options)
625
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::ListSourcesResponse::Representation
626
+ command.response_class = Google::Apis::SecuritycenterV1beta1::ListSourcesResponse
627
+ command.params['parent'] = parent unless parent.nil?
628
+ command.query['pageSize'] = page_size unless page_size.nil?
629
+ command.query['pageToken'] = page_token unless page_token.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
+ # Updates a source.
636
+ # @param [String] name
637
+ # The relative resource name of this source. See:
638
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
639
+ # Example:
640
+ # "organizations/123/sources/456"
641
+ # @param [Google::Apis::SecuritycenterV1beta1::Source] source_object
642
+ # @param [String] update_mask
643
+ # The FieldMask to use when updating the source resource.
644
+ # @param [String] fields
645
+ # Selector specifying which fields to include in a partial response.
646
+ # @param [String] quota_user
647
+ # Available to use for quota purposes for server-side applications. Can be any
648
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
649
+ # @param [Google::Apis::RequestOptions] options
650
+ # Request-specific options
651
+ #
652
+ # @yield [result, err] Result & error if block supplied
653
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::Source] parsed result object
654
+ # @yieldparam err [StandardError] error object if request failed
655
+ #
656
+ # @return [Google::Apis::SecuritycenterV1beta1::Source]
657
+ #
658
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
659
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
660
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
661
+ def patch_organization_source(name, source_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
662
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
663
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::Source::Representation
664
+ command.request_object = source_object
665
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::Source::Representation
666
+ command.response_class = Google::Apis::SecuritycenterV1beta1::Source
667
+ command.params['name'] = name unless name.nil?
668
+ command.query['updateMask'] = update_mask unless update_mask.nil?
669
+ command.query['fields'] = fields unless fields.nil?
670
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
671
+ execute_or_queue_command(command, &block)
672
+ end
673
+
674
+ # Sets the access control policy on the specified Source.
675
+ # @param [String] resource
676
+ # REQUIRED: The resource for which the policy is being specified.
677
+ # See the operation documentation for the appropriate value for this field.
678
+ # @param [Google::Apis::SecuritycenterV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
679
+ # @param [String] fields
680
+ # Selector specifying which fields to include in a partial response.
681
+ # @param [String] quota_user
682
+ # Available to use for quota purposes for server-side applications. Can be any
683
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
684
+ # @param [Google::Apis::RequestOptions] options
685
+ # Request-specific options
686
+ #
687
+ # @yield [result, err] Result & error if block supplied
688
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::Policy] parsed result object
689
+ # @yieldparam err [StandardError] error object if request failed
690
+ #
691
+ # @return [Google::Apis::SecuritycenterV1beta1::Policy]
692
+ #
693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
696
+ def set_source_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
697
+ command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
698
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::SetIamPolicyRequest::Representation
699
+ command.request_object = set_iam_policy_request_object
700
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::Policy::Representation
701
+ command.response_class = Google::Apis::SecuritycenterV1beta1::Policy
702
+ command.params['resource'] = resource unless resource.nil?
703
+ command.query['fields'] = fields unless fields.nil?
704
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
705
+ execute_or_queue_command(command, &block)
706
+ end
707
+
708
+ # Returns the permissions that a caller has on the specified source.
709
+ # @param [String] resource
710
+ # REQUIRED: The resource for which the policy detail is being requested.
711
+ # See the operation documentation for the appropriate value for this field.
712
+ # @param [Google::Apis::SecuritycenterV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
713
+ # @param [String] fields
714
+ # Selector specifying which fields to include in a partial response.
715
+ # @param [String] quota_user
716
+ # Available to use for quota purposes for server-side applications. Can be any
717
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
718
+ # @param [Google::Apis::RequestOptions] options
719
+ # Request-specific options
720
+ #
721
+ # @yield [result, err] Result & error if block supplied
722
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::TestIamPermissionsResponse] parsed result object
723
+ # @yieldparam err [StandardError] error object if request failed
724
+ #
725
+ # @return [Google::Apis::SecuritycenterV1beta1::TestIamPermissionsResponse]
726
+ #
727
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
728
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
729
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
730
+ def test_source_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
731
+ command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
732
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::TestIamPermissionsRequest::Representation
733
+ command.request_object = test_iam_permissions_request_object
734
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::TestIamPermissionsResponse::Representation
735
+ command.response_class = Google::Apis::SecuritycenterV1beta1::TestIamPermissionsResponse
736
+ command.params['resource'] = resource unless resource.nil?
737
+ command.query['fields'] = fields unless fields.nil?
738
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
739
+ execute_or_queue_command(command, &block)
740
+ end
741
+
742
+ # Creates a finding. The corresponding source must exist for finding creation
743
+ # to succeed.
744
+ # @param [String] parent
745
+ # Resource name of the new finding's parent. Its format should be
746
+ # "organizations/[organization_id]/sources/[source_id]".
747
+ # @param [Google::Apis::SecuritycenterV1beta1::Finding] finding_object
748
+ # @param [String] finding_id
749
+ # Unique identifier provided by the client within the parent scope.
750
+ # It must be alphanumeric and less than or equal to 32 characters and
751
+ # greater than 0 characters in length.
752
+ # @param [String] fields
753
+ # Selector specifying which fields to include in a partial response.
754
+ # @param [String] quota_user
755
+ # Available to use for quota purposes for server-side applications. Can be any
756
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
757
+ # @param [Google::Apis::RequestOptions] options
758
+ # Request-specific options
759
+ #
760
+ # @yield [result, err] Result & error if block supplied
761
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::Finding] parsed result object
762
+ # @yieldparam err [StandardError] error object if request failed
763
+ #
764
+ # @return [Google::Apis::SecuritycenterV1beta1::Finding]
765
+ #
766
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
769
+ def create_organization_source_finding(parent, finding_object = nil, finding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
770
+ command = make_simple_command(:post, 'v1beta1/{+parent}/findings', options)
771
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::Finding::Representation
772
+ command.request_object = finding_object
773
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::Finding::Representation
774
+ command.response_class = Google::Apis::SecuritycenterV1beta1::Finding
775
+ command.params['parent'] = parent unless parent.nil?
776
+ command.query['findingId'] = finding_id unless finding_id.nil?
777
+ command.query['fields'] = fields unless fields.nil?
778
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
779
+ execute_or_queue_command(command, &block)
780
+ end
781
+
782
+ # Filters an organization or source's findings and groups them by their
783
+ # specified properties.
784
+ # To group across all sources provide a `-` as the source id.
785
+ # Example: /v1beta1/organizations/123/sources/-/findings
786
+ # @param [String] parent
787
+ # Name of the source to groupBy. Its format is
788
+ # "organizations/[organization_id]/sources/[source_id]". To groupBy across
789
+ # all sources provide a source_id of `-`. For example:
790
+ # organizations/123/sources/-
791
+ # @param [Google::Apis::SecuritycenterV1beta1::GroupFindingsRequest] group_findings_request_object
792
+ # @param [String] fields
793
+ # Selector specifying which fields to include in a partial response.
794
+ # @param [String] quota_user
795
+ # Available to use for quota purposes for server-side applications. Can be any
796
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
797
+ # @param [Google::Apis::RequestOptions] options
798
+ # Request-specific options
799
+ #
800
+ # @yield [result, err] Result & error if block supplied
801
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::GroupFindingsResponse] parsed result object
802
+ # @yieldparam err [StandardError] error object if request failed
803
+ #
804
+ # @return [Google::Apis::SecuritycenterV1beta1::GroupFindingsResponse]
805
+ #
806
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
807
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
808
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
809
+ def group_findings(parent, group_findings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
810
+ command = make_simple_command(:post, 'v1beta1/{+parent}/findings:group', options)
811
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::GroupFindingsRequest::Representation
812
+ command.request_object = group_findings_request_object
813
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::GroupFindingsResponse::Representation
814
+ command.response_class = Google::Apis::SecuritycenterV1beta1::GroupFindingsResponse
815
+ command.params['parent'] = parent unless parent.nil?
816
+ command.query['fields'] = fields unless fields.nil?
817
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
818
+ execute_or_queue_command(command, &block)
819
+ end
820
+
821
+ # Lists an organization or source's findings.
822
+ # To list across all sources provide a `-` as the source id.
823
+ # Example: /v1beta1/organizations/123/sources/-/findings
824
+ # @param [String] parent
825
+ # Name of the source the findings belong to. Its format is
826
+ # "organizations/[organization_id]/sources/[source_id]". To list across all
827
+ # sources provide a source_id of `-`. For example:
828
+ # organizations/123/sources/-
829
+ # @param [String] field_mask
830
+ # Optional.
831
+ # A field mask to specify the Finding fields to be listed in the response.
832
+ # An empty field mask will list all fields.
833
+ # @param [String] filter
834
+ # Expression that defines the filter to apply across findings.
835
+ # The expression is a list of one or more restrictions combined via logical
836
+ # operators `AND` and `OR`.
837
+ # Parentheses are not supported, and `OR` has higher precedence than `AND`.
838
+ # Restrictions have the form `<field> <operator> <value>` and may have a `-`
839
+ # character in front of them to indicate negation. Examples include:
840
+ # * name
841
+ # * source_properties.a_property
842
+ # * security_marks.marks.marka
843
+ # The supported operators are:
844
+ # * `=` for all value types.
845
+ # * `>`, `<`, `>=`, `<=` for integer values.
846
+ # * `:`, meaning substring matching, for strings.
847
+ # The supported value types are:
848
+ # * string literals in quotes.
849
+ # * integer literals without quotes.
850
+ # * boolean literals `true` and `false` without quotes.
851
+ # For example, `source_properties.size = 100` is a valid filter string.
852
+ # @param [String] order_by
853
+ # Expression that defines what fields and order to use for sorting. The
854
+ # string value should follow SQL syntax: comma separated list of fields. For
855
+ # example: "name,resource_properties.a_property". The default sorting order
856
+ # is ascending. To specify descending order for a field, a suffix " desc"
857
+ # should be appended to the field name. For example: "name
858
+ # desc,source_properties.a_property". Redundant space characters in the
859
+ # syntax are insignificant. "name desc,source_properties.a_property" and "
860
+ # name desc , source_properties.a_property " are equivalent.
861
+ # @param [Fixnum] page_size
862
+ # The maximum number of results to return in a single response. Default is
863
+ # 10, minimum is 1, maximum is 1000.
864
+ # @param [String] page_token
865
+ # The value returned by the last `ListFindingsResponse`; indicates
866
+ # that this is a continuation of a prior `ListFindings` call, and
867
+ # that the system should return the next page of data.
868
+ # @param [String] read_time
869
+ # Time used as a reference point when filtering findings. The filter is
870
+ # limited to findings existing at the supplied time and their values are
871
+ # those at that specific time. Absence of this field will default to the
872
+ # API's version of NOW.
873
+ # @param [String] fields
874
+ # Selector specifying which fields to include in a partial response.
875
+ # @param [String] quota_user
876
+ # Available to use for quota purposes for server-side applications. Can be any
877
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
878
+ # @param [Google::Apis::RequestOptions] options
879
+ # Request-specific options
880
+ #
881
+ # @yield [result, err] Result & error if block supplied
882
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::ListFindingsResponse] parsed result object
883
+ # @yieldparam err [StandardError] error object if request failed
884
+ #
885
+ # @return [Google::Apis::SecuritycenterV1beta1::ListFindingsResponse]
886
+ #
887
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
888
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
889
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
890
+ def list_organization_source_findings(parent, 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)
891
+ command = make_simple_command(:get, 'v1beta1/{+parent}/findings', options)
892
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::ListFindingsResponse::Representation
893
+ command.response_class = Google::Apis::SecuritycenterV1beta1::ListFindingsResponse
894
+ command.params['parent'] = parent unless parent.nil?
895
+ command.query['fieldMask'] = field_mask unless field_mask.nil?
896
+ command.query['filter'] = filter unless filter.nil?
897
+ command.query['orderBy'] = order_by unless order_by.nil?
898
+ command.query['pageSize'] = page_size unless page_size.nil?
899
+ command.query['pageToken'] = page_token unless page_token.nil?
900
+ command.query['readTime'] = read_time unless read_time.nil?
901
+ command.query['fields'] = fields unless fields.nil?
902
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
903
+ execute_or_queue_command(command, &block)
904
+ end
905
+
906
+ # Creates or updates a finding. The corresponding source must exist for a
907
+ # finding creation to succeed.
908
+ # @param [String] name
909
+ # The relative resource name of this finding. See:
910
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
911
+ # Example:
912
+ # "organizations/123/sources/456/findings/789"
913
+ # @param [Google::Apis::SecuritycenterV1beta1::Finding] finding_object
914
+ # @param [String] update_mask
915
+ # The FieldMask to use when updating the finding resource. This field should
916
+ # not be specified when creating a finding.
917
+ # @param [String] fields
918
+ # Selector specifying which fields to include in a partial response.
919
+ # @param [String] quota_user
920
+ # Available to use for quota purposes for server-side applications. Can be any
921
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
922
+ # @param [Google::Apis::RequestOptions] options
923
+ # Request-specific options
924
+ #
925
+ # @yield [result, err] Result & error if block supplied
926
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::Finding] parsed result object
927
+ # @yieldparam err [StandardError] error object if request failed
928
+ #
929
+ # @return [Google::Apis::SecuritycenterV1beta1::Finding]
930
+ #
931
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
932
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
933
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
934
+ def patch_organization_source_finding(name, finding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
935
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
936
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::Finding::Representation
937
+ command.request_object = finding_object
938
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::Finding::Representation
939
+ command.response_class = Google::Apis::SecuritycenterV1beta1::Finding
940
+ command.params['name'] = name unless name.nil?
941
+ command.query['updateMask'] = update_mask unless update_mask.nil?
942
+ command.query['fields'] = fields unless fields.nil?
943
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
944
+ execute_or_queue_command(command, &block)
945
+ end
946
+
947
+ # Updates the state of a finding.
948
+ # @param [String] name
949
+ # The relative resource name of the finding. See:
950
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
951
+ # Example:
952
+ # "organizations/123/sources/456/finding/789".
953
+ # @param [Google::Apis::SecuritycenterV1beta1::SetFindingStateRequest] set_finding_state_request_object
954
+ # @param [String] fields
955
+ # Selector specifying which fields to include in a partial response.
956
+ # @param [String] quota_user
957
+ # Available to use for quota purposes for server-side applications. Can be any
958
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
959
+ # @param [Google::Apis::RequestOptions] options
960
+ # Request-specific options
961
+ #
962
+ # @yield [result, err] Result & error if block supplied
963
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::Finding] parsed result object
964
+ # @yieldparam err [StandardError] error object if request failed
965
+ #
966
+ # @return [Google::Apis::SecuritycenterV1beta1::Finding]
967
+ #
968
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
969
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
970
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
971
+ def set_organization_source_finding_state(name, set_finding_state_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
972
+ command = make_simple_command(:post, 'v1beta1/{+name}:setState', options)
973
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::SetFindingStateRequest::Representation
974
+ command.request_object = set_finding_state_request_object
975
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::Finding::Representation
976
+ command.response_class = Google::Apis::SecuritycenterV1beta1::Finding
977
+ command.params['name'] = name unless name.nil?
978
+ command.query['fields'] = fields unless fields.nil?
979
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
980
+ execute_or_queue_command(command, &block)
981
+ end
982
+
983
+ # Updates security marks.
984
+ # @param [String] name
985
+ # The relative resource name of the SecurityMarks. See:
986
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
987
+ # Examples:
988
+ # "organizations/123/assets/456/securityMarks"
989
+ # "organizations/123/sources/456/findings/789/securityMarks".
990
+ # @param [Google::Apis::SecuritycenterV1beta1::SecurityMarks] security_marks_object
991
+ # @param [String] start_time
992
+ # The time at which the updated SecurityMarks take effect.
993
+ # @param [String] update_mask
994
+ # The FieldMask to use when updating the security marks resource.
995
+ # @param [String] fields
996
+ # Selector specifying which fields to include in a partial response.
997
+ # @param [String] quota_user
998
+ # Available to use for quota purposes for server-side applications. Can be any
999
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1000
+ # @param [Google::Apis::RequestOptions] options
1001
+ # Request-specific options
1002
+ #
1003
+ # @yield [result, err] Result & error if block supplied
1004
+ # @yieldparam result [Google::Apis::SecuritycenterV1beta1::SecurityMarks] parsed result object
1005
+ # @yieldparam err [StandardError] error object if request failed
1006
+ #
1007
+ # @return [Google::Apis::SecuritycenterV1beta1::SecurityMarks]
1008
+ #
1009
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1010
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1011
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1012
+ def update_organization_source_finding_security_marks(name, security_marks_object = nil, start_time: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1013
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
1014
+ command.request_representation = Google::Apis::SecuritycenterV1beta1::SecurityMarks::Representation
1015
+ command.request_object = security_marks_object
1016
+ command.response_representation = Google::Apis::SecuritycenterV1beta1::SecurityMarks::Representation
1017
+ command.response_class = Google::Apis::SecuritycenterV1beta1::SecurityMarks
1018
+ command.params['name'] = name unless name.nil?
1019
+ command.query['startTime'] = start_time unless start_time.nil?
1020
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1021
+ command.query['fields'] = fields unless fields.nil?
1022
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1023
+ execute_or_queue_command(command, &block)
1024
+ end
1025
+
1026
+ protected
1027
+
1028
+ def apply_command_defaults(command)
1029
+ command.query['key'] = key unless key.nil?
1030
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1031
+ end
1032
+ end
1033
+ end
1034
+ end
1035
+ end