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,1110 @@
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 SecuritycenterV1
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_v1'
30
+ #
31
+ # Securitycenter = Google::Apis::SecuritycenterV1 # 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::SecuritycenterV1::OrganizationSettings] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::SecuritycenterV1::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, 'v1/{+name}', options)
74
+ command.response_representation = Google::Apis::SecuritycenterV1::OrganizationSettings::Representation
75
+ command.response_class = Google::Apis::SecuritycenterV1::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::SecuritycenterV1::OrganizationSettings] organization_settings_object
89
+ # @param [String] update_mask
90
+ # The FieldMask to use when updating the settings resource.
91
+ # If empty all mutable fields will be updated.
92
+ # @param [String] fields
93
+ # Selector specifying which fields to include in a partial response.
94
+ # @param [String] quota_user
95
+ # Available to use for quota purposes for server-side applications. Can be any
96
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
97
+ # @param [Google::Apis::RequestOptions] options
98
+ # Request-specific options
99
+ #
100
+ # @yield [result, err] Result & error if block supplied
101
+ # @yieldparam result [Google::Apis::SecuritycenterV1::OrganizationSettings] parsed result object
102
+ # @yieldparam err [StandardError] error object if request failed
103
+ #
104
+ # @return [Google::Apis::SecuritycenterV1::OrganizationSettings]
105
+ #
106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
109
+ def update_organization_organization_settings(name, organization_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
110
+ command = make_simple_command(:patch, 'v1/{+name}', options)
111
+ command.request_representation = Google::Apis::SecuritycenterV1::OrganizationSettings::Representation
112
+ command.request_object = organization_settings_object
113
+ command.response_representation = Google::Apis::SecuritycenterV1::OrganizationSettings::Representation
114
+ command.response_class = Google::Apis::SecuritycenterV1::OrganizationSettings
115
+ command.params['name'] = name unless name.nil?
116
+ command.query['updateMask'] = update_mask unless update_mask.nil?
117
+ command.query['fields'] = fields unless fields.nil?
118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
119
+ execute_or_queue_command(command, &block)
120
+ end
121
+
122
+ # Filters an organization's assets and groups them by their specified
123
+ # properties.
124
+ # @param [String] parent
125
+ # Name of the organization to groupBy. Its format is
126
+ # "organizations/[organization_id]".
127
+ # @param [Google::Apis::SecuritycenterV1::GroupAssetsRequest] group_assets_request_object
128
+ # @param [String] fields
129
+ # Selector specifying which fields to include in a partial response.
130
+ # @param [String] quota_user
131
+ # Available to use for quota purposes for server-side applications. Can be any
132
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
133
+ # @param [Google::Apis::RequestOptions] options
134
+ # Request-specific options
135
+ #
136
+ # @yield [result, err] Result & error if block supplied
137
+ # @yieldparam result [Google::Apis::SecuritycenterV1::GroupAssetsResponse] parsed result object
138
+ # @yieldparam err [StandardError] error object if request failed
139
+ #
140
+ # @return [Google::Apis::SecuritycenterV1::GroupAssetsResponse]
141
+ #
142
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
145
+ def group_assets(parent, group_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
146
+ command = make_simple_command(:post, 'v1/{+parent}/assets:group', options)
147
+ command.request_representation = Google::Apis::SecuritycenterV1::GroupAssetsRequest::Representation
148
+ command.request_object = group_assets_request_object
149
+ command.response_representation = Google::Apis::SecuritycenterV1::GroupAssetsResponse::Representation
150
+ command.response_class = Google::Apis::SecuritycenterV1::GroupAssetsResponse
151
+ command.params['parent'] = parent unless parent.nil?
152
+ command.query['fields'] = fields unless fields.nil?
153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
154
+ execute_or_queue_command(command, &block)
155
+ end
156
+
157
+ # Lists an organization's assets.
158
+ # @param [String] parent
159
+ # Name of the organization assets should belong to. Its format is
160
+ # "organizations/[organization_id]".
161
+ # @param [String] compare_duration
162
+ # When compare_duration is set, the ListAssetsResult's "state_change"
163
+ # attribute is updated to indicate whether the asset was added, removed, or
164
+ # remained present during the compare_duration period of time that precedes
165
+ # the read_time. This is the time between (read_time - compare_duration) and
166
+ # read_time.
167
+ # The state_change value is derived based on the presence of the asset at the
168
+ # two points in time. Intermediate state changes between the two times don't
169
+ # affect the result. For example, the results aren't affected if the asset is
170
+ # removed and re-created again.
171
+ # Possible "state_change" values when compare_duration is specified:
172
+ # * "ADDED": indicates that the asset was not present at the start of
173
+ # compare_duration, but present at read_time.
174
+ # * "REMOVED": indicates that the asset was present at the start of
175
+ # compare_duration, but not present at read_time.
176
+ # * "ACTIVE": indicates that the asset was present at both the
177
+ # start and the end of the time period defined by
178
+ # compare_duration and read_time.
179
+ # If compare_duration is not specified, then the only possible state_change
180
+ # is "UNUSED", which will be the state_change set for all assets present at
181
+ # read_time.
182
+ # @param [String] field_mask
183
+ # Optional.
184
+ # A field mask to specify the ListAssetsResult fields to be listed in the
185
+ # response.
186
+ # An empty field mask will list all fields.
187
+ # @param [String] filter
188
+ # Expression that defines the filter to apply across assets.
189
+ # The expression is a list of zero or more restrictions combined via logical
190
+ # operators `AND` and `OR`.
191
+ # Parentheses are supported, and `OR` has higher precedence than `AND`.
192
+ # Restrictions have the form `<field> <operator> <value>` and may have a `-`
193
+ # character in front of them to indicate negation. The fields map to those
194
+ # defined in the Asset resource. Examples include:
195
+ # * name
196
+ # * security_center_properties.resource_name
197
+ # * resource_properties.a_property
198
+ # * security_marks.marks.marka
199
+ # The supported operators are:
200
+ # * `=` for all value types.
201
+ # * `>`, `<`, `>=`, `<=` for integer values.
202
+ # * `:`, meaning substring matching, for strings.
203
+ # The supported value types are:
204
+ # * string literals in quotes.
205
+ # * integer literals without quotes.
206
+ # * boolean literals `true` and `false` without quotes.
207
+ # The following are the allowed field and operator combinations:
208
+ # * name: `=`
209
+ # * update_time: `>`, `<`, `>=`, `<=`
210
+ # * iam_policy.policy_blob: `=`, `:`
211
+ # * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
212
+ # * security_marks: `=`, `:`
213
+ # * security_center_properties.resource_name: `=`, `:`
214
+ # * security_center_properties.resource_type: `=`, `:`
215
+ # * security_center_properties.resource_parent: `=`, `:`
216
+ # * security_center_properties.resource_project: `=`, `:`
217
+ # * security_center_properties.resource_owners: `=`, `:`
218
+ # For example, `resource_properties.size = 100` is a valid filter string.
219
+ # @param [String] order_by
220
+ # Expression that defines what fields and order to use for sorting. The
221
+ # string value should follow SQL syntax: comma separated list of fields. For
222
+ # example: "name,resource_properties.a_property". The default sorting order
223
+ # is ascending. To specify descending order for a field, a suffix " desc"
224
+ # should be appended to the field name. For example: "name
225
+ # desc,resource_properties.a_property". Redundant space characters in the
226
+ # syntax are insignificant. "name desc,resource_properties.a_property" and "
227
+ # name desc , resource_properties.a_property " are equivalent.
228
+ # The following fields are supported:
229
+ # name
230
+ # update_time
231
+ # resource_properties
232
+ # security_marks
233
+ # security_center_properties.resource_name
234
+ # security_center_properties.resource_parent
235
+ # security_center_properties.resource_project
236
+ # security_center_properties.resource_type
237
+ # @param [Fixnum] page_size
238
+ # The maximum number of results to return in a single response. Default is
239
+ # 10, minimum is 1, maximum is 1000.
240
+ # @param [String] page_token
241
+ # The value returned by the last `ListAssetsResponse`; indicates
242
+ # that this is a continuation of a prior `ListAssets` call, and
243
+ # that the system should return the next page of data.
244
+ # @param [String] read_time
245
+ # Time used as a reference point when filtering assets. The filter is limited
246
+ # to assets existing at the supplied time and their values are those at that
247
+ # specific time. Absence of this field will default to the API's version of
248
+ # NOW.
249
+ # @param [String] fields
250
+ # Selector specifying which fields to include in a partial response.
251
+ # @param [String] quota_user
252
+ # Available to use for quota purposes for server-side applications. Can be any
253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
254
+ # @param [Google::Apis::RequestOptions] options
255
+ # Request-specific options
256
+ #
257
+ # @yield [result, err] Result & error if block supplied
258
+ # @yieldparam result [Google::Apis::SecuritycenterV1::ListAssetsResponse] parsed result object
259
+ # @yieldparam err [StandardError] error object if request failed
260
+ #
261
+ # @return [Google::Apis::SecuritycenterV1::ListAssetsResponse]
262
+ #
263
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
264
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
265
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
266
+ 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)
267
+ command = make_simple_command(:get, 'v1/{+parent}/assets', options)
268
+ command.response_representation = Google::Apis::SecuritycenterV1::ListAssetsResponse::Representation
269
+ command.response_class = Google::Apis::SecuritycenterV1::ListAssetsResponse
270
+ command.params['parent'] = parent unless parent.nil?
271
+ command.query['compareDuration'] = compare_duration unless compare_duration.nil?
272
+ command.query['fieldMask'] = field_mask unless field_mask.nil?
273
+ command.query['filter'] = filter unless filter.nil?
274
+ command.query['orderBy'] = order_by unless order_by.nil?
275
+ command.query['pageSize'] = page_size unless page_size.nil?
276
+ command.query['pageToken'] = page_token unless page_token.nil?
277
+ command.query['readTime'] = read_time unless read_time.nil?
278
+ command.query['fields'] = fields unless fields.nil?
279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
+ execute_or_queue_command(command, &block)
281
+ end
282
+
283
+ # Runs asset discovery. The discovery is tracked with a long-running
284
+ # operation.
285
+ # This API can only be called with limited frequency for an organization. If
286
+ # it is called too frequently the caller will receive a TOO_MANY_REQUESTS
287
+ # error.
288
+ # @param [String] parent
289
+ # Name of the organization to run asset discovery for. Its format is
290
+ # "organizations/[organization_id]".
291
+ # @param [Google::Apis::SecuritycenterV1::RunAssetDiscoveryRequest] run_asset_discovery_request_object
292
+ # @param [String] fields
293
+ # Selector specifying which fields to include in a partial response.
294
+ # @param [String] quota_user
295
+ # Available to use for quota purposes for server-side applications. Can be any
296
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
297
+ # @param [Google::Apis::RequestOptions] options
298
+ # Request-specific options
299
+ #
300
+ # @yield [result, err] Result & error if block supplied
301
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Operation] parsed result object
302
+ # @yieldparam err [StandardError] error object if request failed
303
+ #
304
+ # @return [Google::Apis::SecuritycenterV1::Operation]
305
+ #
306
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
307
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
308
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
309
+ def run_organization_asset_discovery(parent, run_asset_discovery_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
310
+ command = make_simple_command(:post, 'v1/{+parent}/assets:runDiscovery', options)
311
+ command.request_representation = Google::Apis::SecuritycenterV1::RunAssetDiscoveryRequest::Representation
312
+ command.request_object = run_asset_discovery_request_object
313
+ command.response_representation = Google::Apis::SecuritycenterV1::Operation::Representation
314
+ command.response_class = Google::Apis::SecuritycenterV1::Operation
315
+ command.params['parent'] = parent unless parent.nil?
316
+ command.query['fields'] = fields unless fields.nil?
317
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
318
+ execute_or_queue_command(command, &block)
319
+ end
320
+
321
+ # Updates security marks.
322
+ # @param [String] name
323
+ # The relative resource name of the SecurityMarks. See:
324
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
325
+ # Examples:
326
+ # "organizations/123/assets/456/securityMarks"
327
+ # "organizations/123/sources/456/findings/789/securityMarks".
328
+ # @param [Google::Apis::SecuritycenterV1::SecurityMarks] security_marks_object
329
+ # @param [String] start_time
330
+ # The time at which the updated SecurityMarks take effect.
331
+ # If not set uses current server time. Updates will be applied to the
332
+ # SecurityMarks that are active immediately preceding this time.
333
+ # @param [String] update_mask
334
+ # The FieldMask to use when updating the security marks resource.
335
+ # The field mask must not contain duplicate fields.
336
+ # If empty or set to "marks", all marks will be replaced. Individual
337
+ # marks can be updated using "marks.<mark_key>".
338
+ # @param [String] fields
339
+ # Selector specifying which fields to include in a partial response.
340
+ # @param [String] quota_user
341
+ # Available to use for quota purposes for server-side applications. Can be any
342
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
343
+ # @param [Google::Apis::RequestOptions] options
344
+ # Request-specific options
345
+ #
346
+ # @yield [result, err] Result & error if block supplied
347
+ # @yieldparam result [Google::Apis::SecuritycenterV1::SecurityMarks] parsed result object
348
+ # @yieldparam err [StandardError] error object if request failed
349
+ #
350
+ # @return [Google::Apis::SecuritycenterV1::SecurityMarks]
351
+ #
352
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
353
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
354
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
355
+ 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)
356
+ command = make_simple_command(:patch, 'v1/{+name}', options)
357
+ command.request_representation = Google::Apis::SecuritycenterV1::SecurityMarks::Representation
358
+ command.request_object = security_marks_object
359
+ command.response_representation = Google::Apis::SecuritycenterV1::SecurityMarks::Representation
360
+ command.response_class = Google::Apis::SecuritycenterV1::SecurityMarks
361
+ command.params['name'] = name unless name.nil?
362
+ command.query['startTime'] = start_time unless start_time.nil?
363
+ command.query['updateMask'] = update_mask unless update_mask.nil?
364
+ command.query['fields'] = fields unless fields.nil?
365
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
366
+ execute_or_queue_command(command, &block)
367
+ end
368
+
369
+ # Starts asynchronous cancellation on a long-running operation. The server
370
+ # makes a best effort to cancel the operation, but success is not
371
+ # guaranteed. If the server doesn't support this method, it returns
372
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
373
+ # Operations.GetOperation or
374
+ # other methods to check whether the cancellation succeeded or whether the
375
+ # operation completed despite cancellation. On successful cancellation,
376
+ # the operation is not deleted; instead, it becomes an operation with
377
+ # an Operation.error value with a google.rpc.Status.code of 1,
378
+ # corresponding to `Code.CANCELLED`.
379
+ # @param [String] name
380
+ # The name of the operation resource to be cancelled.
381
+ # @param [String] fields
382
+ # Selector specifying which fields to include in a partial response.
383
+ # @param [String] quota_user
384
+ # Available to use for quota purposes for server-side applications. Can be any
385
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
386
+ # @param [Google::Apis::RequestOptions] options
387
+ # Request-specific options
388
+ #
389
+ # @yield [result, err] Result & error if block supplied
390
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
391
+ # @yieldparam err [StandardError] error object if request failed
392
+ #
393
+ # @return [Google::Apis::SecuritycenterV1::Empty]
394
+ #
395
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
396
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
397
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
398
+ def cancel_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
399
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
400
+ command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
401
+ command.response_class = Google::Apis::SecuritycenterV1::Empty
402
+ command.params['name'] = name unless name.nil?
403
+ command.query['fields'] = fields unless fields.nil?
404
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
405
+ execute_or_queue_command(command, &block)
406
+ end
407
+
408
+ # Deletes a long-running operation. This method indicates that the client is
409
+ # no longer interested in the operation result. It does not cancel the
410
+ # operation. If the server doesn't support this method, it returns
411
+ # `google.rpc.Code.UNIMPLEMENTED`.
412
+ # @param [String] name
413
+ # The name of the operation resource to be deleted.
414
+ # @param [String] fields
415
+ # Selector specifying which fields to include in a partial response.
416
+ # @param [String] quota_user
417
+ # Available to use for quota purposes for server-side applications. Can be any
418
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
419
+ # @param [Google::Apis::RequestOptions] options
420
+ # Request-specific options
421
+ #
422
+ # @yield [result, err] Result & error if block supplied
423
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Empty] parsed result object
424
+ # @yieldparam err [StandardError] error object if request failed
425
+ #
426
+ # @return [Google::Apis::SecuritycenterV1::Empty]
427
+ #
428
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
429
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
430
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
431
+ def delete_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
432
+ command = make_simple_command(:delete, 'v1/{+name}', options)
433
+ command.response_representation = Google::Apis::SecuritycenterV1::Empty::Representation
434
+ command.response_class = Google::Apis::SecuritycenterV1::Empty
435
+ command.params['name'] = name unless name.nil?
436
+ command.query['fields'] = fields unless fields.nil?
437
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
438
+ execute_or_queue_command(command, &block)
439
+ end
440
+
441
+ # Gets the latest state of a long-running operation. Clients can use this
442
+ # method to poll the operation result at intervals as recommended by the API
443
+ # service.
444
+ # @param [String] name
445
+ # The name of the operation resource.
446
+ # @param [String] fields
447
+ # Selector specifying which fields to include in a partial response.
448
+ # @param [String] quota_user
449
+ # Available to use for quota purposes for server-side applications. Can be any
450
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
451
+ # @param [Google::Apis::RequestOptions] options
452
+ # Request-specific options
453
+ #
454
+ # @yield [result, err] Result & error if block supplied
455
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Operation] parsed result object
456
+ # @yieldparam err [StandardError] error object if request failed
457
+ #
458
+ # @return [Google::Apis::SecuritycenterV1::Operation]
459
+ #
460
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
461
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
462
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
463
+ def get_organization_operation(name, fields: nil, quota_user: nil, options: nil, &block)
464
+ command = make_simple_command(:get, 'v1/{+name}', options)
465
+ command.response_representation = Google::Apis::SecuritycenterV1::Operation::Representation
466
+ command.response_class = Google::Apis::SecuritycenterV1::Operation
467
+ command.params['name'] = name unless name.nil?
468
+ command.query['fields'] = fields unless fields.nil?
469
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
470
+ execute_or_queue_command(command, &block)
471
+ end
472
+
473
+ # Lists operations that match the specified filter in the request. If the
474
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
475
+ # NOTE: the `name` binding allows API services to override the binding
476
+ # to use different resource name schemes, such as `users/*/operations`. To
477
+ # override the binding, API services can add a binding such as
478
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
479
+ # For backwards compatibility, the default name includes the operations
480
+ # collection id, however overriding users must ensure the name binding
481
+ # is the parent resource, without the operations collection id.
482
+ # @param [String] name
483
+ # The name of the operation's parent resource.
484
+ # @param [String] filter
485
+ # The standard list filter.
486
+ # @param [Fixnum] page_size
487
+ # The standard list page size.
488
+ # @param [String] page_token
489
+ # The standard list page token.
490
+ # @param [String] fields
491
+ # Selector specifying which fields to include in a partial response.
492
+ # @param [String] quota_user
493
+ # Available to use for quota purposes for server-side applications. Can be any
494
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
495
+ # @param [Google::Apis::RequestOptions] options
496
+ # Request-specific options
497
+ #
498
+ # @yield [result, err] Result & error if block supplied
499
+ # @yieldparam result [Google::Apis::SecuritycenterV1::ListOperationsResponse] parsed result object
500
+ # @yieldparam err [StandardError] error object if request failed
501
+ #
502
+ # @return [Google::Apis::SecuritycenterV1::ListOperationsResponse]
503
+ #
504
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
505
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
506
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
507
+ def list_organization_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
508
+ command = make_simple_command(:get, 'v1/{+name}', options)
509
+ command.response_representation = Google::Apis::SecuritycenterV1::ListOperationsResponse::Representation
510
+ command.response_class = Google::Apis::SecuritycenterV1::ListOperationsResponse
511
+ command.params['name'] = name unless name.nil?
512
+ command.query['filter'] = filter unless filter.nil?
513
+ command.query['pageSize'] = page_size unless page_size.nil?
514
+ command.query['pageToken'] = page_token unless page_token.nil?
515
+ command.query['fields'] = fields unless fields.nil?
516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
517
+ execute_or_queue_command(command, &block)
518
+ end
519
+
520
+ # Creates a source.
521
+ # @param [String] parent
522
+ # Resource name of the new source's parent. Its format should be
523
+ # "organizations/[organization_id]".
524
+ # @param [Google::Apis::SecuritycenterV1::Source] source_object
525
+ # @param [String] fields
526
+ # Selector specifying which fields to include in a partial response.
527
+ # @param [String] quota_user
528
+ # Available to use for quota purposes for server-side applications. Can be any
529
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
530
+ # @param [Google::Apis::RequestOptions] options
531
+ # Request-specific options
532
+ #
533
+ # @yield [result, err] Result & error if block supplied
534
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Source] parsed result object
535
+ # @yieldparam err [StandardError] error object if request failed
536
+ #
537
+ # @return [Google::Apis::SecuritycenterV1::Source]
538
+ #
539
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
540
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
541
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
542
+ def create_organization_source(parent, source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
543
+ command = make_simple_command(:post, 'v1/{+parent}/sources', options)
544
+ command.request_representation = Google::Apis::SecuritycenterV1::Source::Representation
545
+ command.request_object = source_object
546
+ command.response_representation = Google::Apis::SecuritycenterV1::Source::Representation
547
+ command.response_class = Google::Apis::SecuritycenterV1::Source
548
+ command.params['parent'] = parent unless parent.nil?
549
+ command.query['fields'] = fields unless fields.nil?
550
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
551
+ execute_or_queue_command(command, &block)
552
+ end
553
+
554
+ # Gets a source.
555
+ # @param [String] name
556
+ # Relative resource name of the source. Its format is
557
+ # "organizations/[organization_id]/source/[source_id]".
558
+ # @param [String] fields
559
+ # Selector specifying which fields to include in a partial response.
560
+ # @param [String] quota_user
561
+ # Available to use for quota purposes for server-side applications. Can be any
562
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
563
+ # @param [Google::Apis::RequestOptions] options
564
+ # Request-specific options
565
+ #
566
+ # @yield [result, err] Result & error if block supplied
567
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Source] parsed result object
568
+ # @yieldparam err [StandardError] error object if request failed
569
+ #
570
+ # @return [Google::Apis::SecuritycenterV1::Source]
571
+ #
572
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
573
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
574
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
575
+ def get_organization_source(name, fields: nil, quota_user: nil, options: nil, &block)
576
+ command = make_simple_command(:get, 'v1/{+name}', options)
577
+ command.response_representation = Google::Apis::SecuritycenterV1::Source::Representation
578
+ command.response_class = Google::Apis::SecuritycenterV1::Source
579
+ command.params['name'] = name unless name.nil?
580
+ command.query['fields'] = fields unless fields.nil?
581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
582
+ execute_or_queue_command(command, &block)
583
+ end
584
+
585
+ # Gets the access control policy on the specified Source.
586
+ # @param [String] resource
587
+ # REQUIRED: The resource for which the policy is being requested.
588
+ # See the operation documentation for the appropriate value for this field.
589
+ # @param [Google::Apis::SecuritycenterV1::GetIamPolicyRequest] get_iam_policy_request_object
590
+ # @param [String] fields
591
+ # Selector specifying which fields to include in a partial response.
592
+ # @param [String] quota_user
593
+ # Available to use for quota purposes for server-side applications. Can be any
594
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
595
+ # @param [Google::Apis::RequestOptions] options
596
+ # Request-specific options
597
+ #
598
+ # @yield [result, err] Result & error if block supplied
599
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Policy] parsed result object
600
+ # @yieldparam err [StandardError] error object if request failed
601
+ #
602
+ # @return [Google::Apis::SecuritycenterV1::Policy]
603
+ #
604
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
607
+ def get_source_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
608
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
609
+ command.request_representation = Google::Apis::SecuritycenterV1::GetIamPolicyRequest::Representation
610
+ command.request_object = get_iam_policy_request_object
611
+ command.response_representation = Google::Apis::SecuritycenterV1::Policy::Representation
612
+ command.response_class = Google::Apis::SecuritycenterV1::Policy
613
+ command.params['resource'] = resource unless resource.nil?
614
+ command.query['fields'] = fields unless fields.nil?
615
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
616
+ execute_or_queue_command(command, &block)
617
+ end
618
+
619
+ # Lists all sources belonging to an organization.
620
+ # @param [String] parent
621
+ # Resource name of the parent of sources to list. Its format should be
622
+ # "organizations/[organization_id]".
623
+ # @param [Fixnum] page_size
624
+ # The maximum number of results to return in a single response. Default is
625
+ # 10, minimum is 1, maximum is 1000.
626
+ # @param [String] page_token
627
+ # The value returned by the last `ListSourcesResponse`; indicates
628
+ # that this is a continuation of a prior `ListSources` call, and
629
+ # that the system should return the next page of data.
630
+ # @param [String] fields
631
+ # Selector specifying which fields to include in a partial response.
632
+ # @param [String] quota_user
633
+ # Available to use for quota purposes for server-side applications. Can be any
634
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
635
+ # @param [Google::Apis::RequestOptions] options
636
+ # Request-specific options
637
+ #
638
+ # @yield [result, err] Result & error if block supplied
639
+ # @yieldparam result [Google::Apis::SecuritycenterV1::ListSourcesResponse] parsed result object
640
+ # @yieldparam err [StandardError] error object if request failed
641
+ #
642
+ # @return [Google::Apis::SecuritycenterV1::ListSourcesResponse]
643
+ #
644
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
645
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
646
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
647
+ def list_organization_sources(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
648
+ command = make_simple_command(:get, 'v1/{+parent}/sources', options)
649
+ command.response_representation = Google::Apis::SecuritycenterV1::ListSourcesResponse::Representation
650
+ command.response_class = Google::Apis::SecuritycenterV1::ListSourcesResponse
651
+ command.params['parent'] = parent unless parent.nil?
652
+ command.query['pageSize'] = page_size unless page_size.nil?
653
+ command.query['pageToken'] = page_token unless page_token.nil?
654
+ command.query['fields'] = fields unless fields.nil?
655
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
656
+ execute_or_queue_command(command, &block)
657
+ end
658
+
659
+ # Updates a source.
660
+ # @param [String] name
661
+ # The relative resource name of this source. See:
662
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
663
+ # Example:
664
+ # "organizations/123/sources/456"
665
+ # @param [Google::Apis::SecuritycenterV1::Source] source_object
666
+ # @param [String] update_mask
667
+ # The FieldMask to use when updating the source resource.
668
+ # If empty all mutable fields will be updated.
669
+ # @param [String] fields
670
+ # Selector specifying which fields to include in a partial response.
671
+ # @param [String] quota_user
672
+ # Available to use for quota purposes for server-side applications. Can be any
673
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
674
+ # @param [Google::Apis::RequestOptions] options
675
+ # Request-specific options
676
+ #
677
+ # @yield [result, err] Result & error if block supplied
678
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Source] parsed result object
679
+ # @yieldparam err [StandardError] error object if request failed
680
+ #
681
+ # @return [Google::Apis::SecuritycenterV1::Source]
682
+ #
683
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
684
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
685
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
686
+ def patch_organization_source(name, source_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
687
+ command = make_simple_command(:patch, 'v1/{+name}', options)
688
+ command.request_representation = Google::Apis::SecuritycenterV1::Source::Representation
689
+ command.request_object = source_object
690
+ command.response_representation = Google::Apis::SecuritycenterV1::Source::Representation
691
+ command.response_class = Google::Apis::SecuritycenterV1::Source
692
+ command.params['name'] = name unless name.nil?
693
+ command.query['updateMask'] = update_mask unless update_mask.nil?
694
+ command.query['fields'] = fields unless fields.nil?
695
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
696
+ execute_or_queue_command(command, &block)
697
+ end
698
+
699
+ # Sets the access control policy on the specified Source.
700
+ # @param [String] resource
701
+ # REQUIRED: The resource for which the policy is being specified.
702
+ # See the operation documentation for the appropriate value for this field.
703
+ # @param [Google::Apis::SecuritycenterV1::SetIamPolicyRequest] set_iam_policy_request_object
704
+ # @param [String] fields
705
+ # Selector specifying which fields to include in a partial response.
706
+ # @param [String] quota_user
707
+ # Available to use for quota purposes for server-side applications. Can be any
708
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
709
+ # @param [Google::Apis::RequestOptions] options
710
+ # Request-specific options
711
+ #
712
+ # @yield [result, err] Result & error if block supplied
713
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Policy] parsed result object
714
+ # @yieldparam err [StandardError] error object if request failed
715
+ #
716
+ # @return [Google::Apis::SecuritycenterV1::Policy]
717
+ #
718
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
719
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
720
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
721
+ def set_source_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
722
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
723
+ command.request_representation = Google::Apis::SecuritycenterV1::SetIamPolicyRequest::Representation
724
+ command.request_object = set_iam_policy_request_object
725
+ command.response_representation = Google::Apis::SecuritycenterV1::Policy::Representation
726
+ command.response_class = Google::Apis::SecuritycenterV1::Policy
727
+ command.params['resource'] = resource unless resource.nil?
728
+ command.query['fields'] = fields unless fields.nil?
729
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
730
+ execute_or_queue_command(command, &block)
731
+ end
732
+
733
+ # Returns the permissions that a caller has on the specified source.
734
+ # @param [String] resource
735
+ # REQUIRED: The resource for which the policy detail is being requested.
736
+ # See the operation documentation for the appropriate value for this field.
737
+ # @param [Google::Apis::SecuritycenterV1::TestIamPermissionsRequest] test_iam_permissions_request_object
738
+ # @param [String] fields
739
+ # Selector specifying which fields to include in a partial response.
740
+ # @param [String] quota_user
741
+ # Available to use for quota purposes for server-side applications. Can be any
742
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
743
+ # @param [Google::Apis::RequestOptions] options
744
+ # Request-specific options
745
+ #
746
+ # @yield [result, err] Result & error if block supplied
747
+ # @yieldparam result [Google::Apis::SecuritycenterV1::TestIamPermissionsResponse] parsed result object
748
+ # @yieldparam err [StandardError] error object if request failed
749
+ #
750
+ # @return [Google::Apis::SecuritycenterV1::TestIamPermissionsResponse]
751
+ #
752
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
753
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
754
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
755
+ def test_source_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
756
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
757
+ command.request_representation = Google::Apis::SecuritycenterV1::TestIamPermissionsRequest::Representation
758
+ command.request_object = test_iam_permissions_request_object
759
+ command.response_representation = Google::Apis::SecuritycenterV1::TestIamPermissionsResponse::Representation
760
+ command.response_class = Google::Apis::SecuritycenterV1::TestIamPermissionsResponse
761
+ command.params['resource'] = resource unless resource.nil?
762
+ command.query['fields'] = fields unless fields.nil?
763
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
764
+ execute_or_queue_command(command, &block)
765
+ end
766
+
767
+ # Creates a finding. The corresponding source must exist for finding creation
768
+ # to succeed.
769
+ # @param [String] parent
770
+ # Resource name of the new finding's parent. Its format should be
771
+ # "organizations/[organization_id]/sources/[source_id]".
772
+ # @param [Google::Apis::SecuritycenterV1::Finding] finding_object
773
+ # @param [String] finding_id
774
+ # Unique identifier provided by the client within the parent scope.
775
+ # It must be alphanumeric and less than or equal to 32 characters and
776
+ # greater than 0 characters in length.
777
+ # @param [String] fields
778
+ # Selector specifying which fields to include in a partial response.
779
+ # @param [String] quota_user
780
+ # Available to use for quota purposes for server-side applications. Can be any
781
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
782
+ # @param [Google::Apis::RequestOptions] options
783
+ # Request-specific options
784
+ #
785
+ # @yield [result, err] Result & error if block supplied
786
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Finding] parsed result object
787
+ # @yieldparam err [StandardError] error object if request failed
788
+ #
789
+ # @return [Google::Apis::SecuritycenterV1::Finding]
790
+ #
791
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
792
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
793
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
794
+ def create_organization_source_finding(parent, finding_object = nil, finding_id: nil, fields: nil, quota_user: nil, options: nil, &block)
795
+ command = make_simple_command(:post, 'v1/{+parent}/findings', options)
796
+ command.request_representation = Google::Apis::SecuritycenterV1::Finding::Representation
797
+ command.request_object = finding_object
798
+ command.response_representation = Google::Apis::SecuritycenterV1::Finding::Representation
799
+ command.response_class = Google::Apis::SecuritycenterV1::Finding
800
+ command.params['parent'] = parent unless parent.nil?
801
+ command.query['findingId'] = finding_id unless finding_id.nil?
802
+ command.query['fields'] = fields unless fields.nil?
803
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
804
+ execute_or_queue_command(command, &block)
805
+ end
806
+
807
+ # Filters an organization or source's findings and groups them by their
808
+ # specified properties.
809
+ # To group across all sources provide a `-` as the source id.
810
+ # Example: /v1/organizations/123/sources/-/findings
811
+ # @param [String] parent
812
+ # Name of the source to groupBy. Its format is
813
+ # "organizations/[organization_id]/sources/[source_id]". To groupBy across
814
+ # all sources provide a source_id of `-`. For example:
815
+ # organizations/123/sources/-
816
+ # @param [Google::Apis::SecuritycenterV1::GroupFindingsRequest] group_findings_request_object
817
+ # @param [String] fields
818
+ # Selector specifying which fields to include in a partial response.
819
+ # @param [String] quota_user
820
+ # Available to use for quota purposes for server-side applications. Can be any
821
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
822
+ # @param [Google::Apis::RequestOptions] options
823
+ # Request-specific options
824
+ #
825
+ # @yield [result, err] Result & error if block supplied
826
+ # @yieldparam result [Google::Apis::SecuritycenterV1::GroupFindingsResponse] parsed result object
827
+ # @yieldparam err [StandardError] error object if request failed
828
+ #
829
+ # @return [Google::Apis::SecuritycenterV1::GroupFindingsResponse]
830
+ #
831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
834
+ def group_findings(parent, group_findings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
835
+ command = make_simple_command(:post, 'v1/{+parent}/findings:group', options)
836
+ command.request_representation = Google::Apis::SecuritycenterV1::GroupFindingsRequest::Representation
837
+ command.request_object = group_findings_request_object
838
+ command.response_representation = Google::Apis::SecuritycenterV1::GroupFindingsResponse::Representation
839
+ command.response_class = Google::Apis::SecuritycenterV1::GroupFindingsResponse
840
+ command.params['parent'] = parent unless parent.nil?
841
+ command.query['fields'] = fields unless fields.nil?
842
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
843
+ execute_or_queue_command(command, &block)
844
+ end
845
+
846
+ # Lists an organization or source's findings.
847
+ # To list across all sources provide a `-` as the source id.
848
+ # Example: /v1/organizations/123/sources/-/findings
849
+ # @param [String] parent
850
+ # Name of the source the findings belong to. Its format is
851
+ # "organizations/[organization_id]/sources/[source_id]". To list across all
852
+ # sources provide a source_id of `-`. For example:
853
+ # organizations/123/sources/-
854
+ # @param [String] compare_duration
855
+ # When compare_duration is set, the ListFindingsResult's "state_change"
856
+ # attribute is updated to indicate whether the finding had its state changed,
857
+ # the finding's state remained unchanged, or if the finding was added in any
858
+ # state during the compare_duration period of time that precedes the
859
+ # read_time. This is the time between (read_time - compare_duration) and
860
+ # read_time.
861
+ # The state_change value is derived based on the presence and state of the
862
+ # finding at the two points in time. Intermediate state changes between the
863
+ # two times don't affect the result. For example, the results aren't affected
864
+ # if the finding is made inactive and then active again.
865
+ # Possible "state_change" values when compare_duration is specified:
866
+ # * "CHANGED": indicates that the finding was present at the start of
867
+ # compare_duration, but changed its state at read_time.
868
+ # * "UNCHANGED": indicates that the finding was present at the start of
869
+ # compare_duration and did not change state at read_time.
870
+ # * "ADDED": indicates that the finding was not present at the start
871
+ # of compare_duration, but was present at read_time.
872
+ # If compare_duration is not specified, then the only possible state_change
873
+ # is "UNUSED", which will be the state_change set for all findings present at
874
+ # read_time.
875
+ # @param [String] field_mask
876
+ # Optional.
877
+ # A field mask to specify the Finding fields to be listed in the response.
878
+ # An empty field mask will list all fields.
879
+ # @param [String] filter
880
+ # Expression that defines the filter to apply across findings.
881
+ # The expression is a list of one or more restrictions combined via logical
882
+ # operators `AND` and `OR`.
883
+ # Parentheses are supported, and `OR` has higher precedence than `AND`.
884
+ # Restrictions have the form `<field> <operator> <value>` and may have a `-`
885
+ # character in front of them to indicate negation. Examples include:
886
+ # * name
887
+ # * source_properties.a_property
888
+ # * security_marks.marks.marka
889
+ # The supported operators are:
890
+ # * `=` for all value types.
891
+ # * `>`, `<`, `>=`, `<=` for integer values.
892
+ # * `:`, meaning substring matching, for strings.
893
+ # The supported value types are:
894
+ # * string literals in quotes.
895
+ # * integer literals without quotes.
896
+ # * boolean literals `true` and `false` without quotes.
897
+ # The following field and operator combinations are supported:
898
+ # name: `=`
899
+ # parent: `=`, `:`
900
+ # resource_name: `=`, `:`
901
+ # state: `=`, `:`
902
+ # category: `=`, `:`
903
+ # external_uri: `=`, `:`
904
+ # event_time: `>`, `<`, `>=`, `<=`
905
+ # security_marks: `=`, `:`
906
+ # source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
907
+ # For example, `source_properties.size = 100` is a valid filter string.
908
+ # @param [String] order_by
909
+ # Expression that defines what fields and order to use for sorting. The
910
+ # string value should follow SQL syntax: comma separated list of fields. For
911
+ # example: "name,resource_properties.a_property". The default sorting order
912
+ # is ascending. To specify descending order for a field, a suffix " desc"
913
+ # should be appended to the field name. For example: "name
914
+ # desc,source_properties.a_property". Redundant space characters in the
915
+ # syntax are insignificant. "name desc,source_properties.a_property" and "
916
+ # name desc , source_properties.a_property " are equivalent.
917
+ # The following fields are supported:
918
+ # name
919
+ # parent
920
+ # state
921
+ # category
922
+ # resource_name
923
+ # event_time
924
+ # source_properties
925
+ # security_marks
926
+ # @param [Fixnum] page_size
927
+ # The maximum number of results to return in a single response. Default is
928
+ # 10, minimum is 1, maximum is 1000.
929
+ # @param [String] page_token
930
+ # The value returned by the last `ListFindingsResponse`; indicates
931
+ # that this is a continuation of a prior `ListFindings` call, and
932
+ # that the system should return the next page of data.
933
+ # @param [String] read_time
934
+ # Time used as a reference point when filtering findings. The filter is
935
+ # limited to findings existing at the supplied time and their values are
936
+ # those at that specific time. Absence of this field will default to the
937
+ # API's version of NOW.
938
+ # @param [String] fields
939
+ # Selector specifying which fields to include in a partial response.
940
+ # @param [String] quota_user
941
+ # Available to use for quota purposes for server-side applications. Can be any
942
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
943
+ # @param [Google::Apis::RequestOptions] options
944
+ # Request-specific options
945
+ #
946
+ # @yield [result, err] Result & error if block supplied
947
+ # @yieldparam result [Google::Apis::SecuritycenterV1::ListFindingsResponse] parsed result object
948
+ # @yieldparam err [StandardError] error object if request failed
949
+ #
950
+ # @return [Google::Apis::SecuritycenterV1::ListFindingsResponse]
951
+ #
952
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
953
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
954
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
955
+ 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)
956
+ command = make_simple_command(:get, 'v1/{+parent}/findings', options)
957
+ command.response_representation = Google::Apis::SecuritycenterV1::ListFindingsResponse::Representation
958
+ command.response_class = Google::Apis::SecuritycenterV1::ListFindingsResponse
959
+ command.params['parent'] = parent unless parent.nil?
960
+ command.query['compareDuration'] = compare_duration unless compare_duration.nil?
961
+ command.query['fieldMask'] = field_mask unless field_mask.nil?
962
+ command.query['filter'] = filter unless filter.nil?
963
+ command.query['orderBy'] = order_by unless order_by.nil?
964
+ command.query['pageSize'] = page_size unless page_size.nil?
965
+ command.query['pageToken'] = page_token unless page_token.nil?
966
+ command.query['readTime'] = read_time unless read_time.nil?
967
+ command.query['fields'] = fields unless fields.nil?
968
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
969
+ execute_or_queue_command(command, &block)
970
+ end
971
+
972
+ # Creates or updates a finding. The corresponding source must exist for a
973
+ # finding creation to succeed.
974
+ # @param [String] name
975
+ # The relative resource name of this finding. See:
976
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
977
+ # Example:
978
+ # "organizations/123/sources/456/findings/789"
979
+ # @param [Google::Apis::SecuritycenterV1::Finding] finding_object
980
+ # @param [String] update_mask
981
+ # The FieldMask to use when updating the finding resource. This field should
982
+ # not be specified when creating a finding.
983
+ # When updating a finding, an empty mask is treated as updating all mutable
984
+ # fields and replacing source_properties. Individual source_properties can
985
+ # be added/updated by using "source_properties.<property key>" in the field
986
+ # mask.
987
+ # @param [String] fields
988
+ # Selector specifying which fields to include in a partial response.
989
+ # @param [String] quota_user
990
+ # Available to use for quota purposes for server-side applications. Can be any
991
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
992
+ # @param [Google::Apis::RequestOptions] options
993
+ # Request-specific options
994
+ #
995
+ # @yield [result, err] Result & error if block supplied
996
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Finding] parsed result object
997
+ # @yieldparam err [StandardError] error object if request failed
998
+ #
999
+ # @return [Google::Apis::SecuritycenterV1::Finding]
1000
+ #
1001
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1002
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1003
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1004
+ def patch_organization_source_finding(name, finding_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1005
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1006
+ command.request_representation = Google::Apis::SecuritycenterV1::Finding::Representation
1007
+ command.request_object = finding_object
1008
+ command.response_representation = Google::Apis::SecuritycenterV1::Finding::Representation
1009
+ command.response_class = Google::Apis::SecuritycenterV1::Finding
1010
+ command.params['name'] = name unless name.nil?
1011
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1012
+ command.query['fields'] = fields unless fields.nil?
1013
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1014
+ execute_or_queue_command(command, &block)
1015
+ end
1016
+
1017
+ # Updates the state of a finding.
1018
+ # @param [String] name
1019
+ # The relative resource name of the finding. See:
1020
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
1021
+ # Example:
1022
+ # "organizations/123/sources/456/finding/789".
1023
+ # @param [Google::Apis::SecuritycenterV1::SetFindingStateRequest] set_finding_state_request_object
1024
+ # @param [String] fields
1025
+ # Selector specifying which fields to include in a partial response.
1026
+ # @param [String] quota_user
1027
+ # Available to use for quota purposes for server-side applications. Can be any
1028
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1029
+ # @param [Google::Apis::RequestOptions] options
1030
+ # Request-specific options
1031
+ #
1032
+ # @yield [result, err] Result & error if block supplied
1033
+ # @yieldparam result [Google::Apis::SecuritycenterV1::Finding] parsed result object
1034
+ # @yieldparam err [StandardError] error object if request failed
1035
+ #
1036
+ # @return [Google::Apis::SecuritycenterV1::Finding]
1037
+ #
1038
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1039
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1040
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1041
+ def set_organization_source_finding_state(name, set_finding_state_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1042
+ command = make_simple_command(:post, 'v1/{+name}:setState', options)
1043
+ command.request_representation = Google::Apis::SecuritycenterV1::SetFindingStateRequest::Representation
1044
+ command.request_object = set_finding_state_request_object
1045
+ command.response_representation = Google::Apis::SecuritycenterV1::Finding::Representation
1046
+ command.response_class = Google::Apis::SecuritycenterV1::Finding
1047
+ command.params['name'] = name unless name.nil?
1048
+ command.query['fields'] = fields unless fields.nil?
1049
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1050
+ execute_or_queue_command(command, &block)
1051
+ end
1052
+
1053
+ # Updates security marks.
1054
+ # @param [String] name
1055
+ # The relative resource name of the SecurityMarks. See:
1056
+ # https://cloud.google.com/apis/design/resource_names#relative_resource_name
1057
+ # Examples:
1058
+ # "organizations/123/assets/456/securityMarks"
1059
+ # "organizations/123/sources/456/findings/789/securityMarks".
1060
+ # @param [Google::Apis::SecuritycenterV1::SecurityMarks] security_marks_object
1061
+ # @param [String] start_time
1062
+ # The time at which the updated SecurityMarks take effect.
1063
+ # If not set uses current server time. Updates will be applied to the
1064
+ # SecurityMarks that are active immediately preceding this time.
1065
+ # @param [String] update_mask
1066
+ # The FieldMask to use when updating the security marks resource.
1067
+ # The field mask must not contain duplicate fields.
1068
+ # If empty or set to "marks", all marks will be replaced. Individual
1069
+ # marks can be updated using "marks.<mark_key>".
1070
+ # @param [String] fields
1071
+ # Selector specifying which fields to include in a partial response.
1072
+ # @param [String] quota_user
1073
+ # Available to use for quota purposes for server-side applications. Can be any
1074
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1075
+ # @param [Google::Apis::RequestOptions] options
1076
+ # Request-specific options
1077
+ #
1078
+ # @yield [result, err] Result & error if block supplied
1079
+ # @yieldparam result [Google::Apis::SecuritycenterV1::SecurityMarks] parsed result object
1080
+ # @yieldparam err [StandardError] error object if request failed
1081
+ #
1082
+ # @return [Google::Apis::SecuritycenterV1::SecurityMarks]
1083
+ #
1084
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1085
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1086
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1087
+ 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)
1088
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1089
+ command.request_representation = Google::Apis::SecuritycenterV1::SecurityMarks::Representation
1090
+ command.request_object = security_marks_object
1091
+ command.response_representation = Google::Apis::SecuritycenterV1::SecurityMarks::Representation
1092
+ command.response_class = Google::Apis::SecuritycenterV1::SecurityMarks
1093
+ command.params['name'] = name unless name.nil?
1094
+ command.query['startTime'] = start_time unless start_time.nil?
1095
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1096
+ command.query['fields'] = fields unless fields.nil?
1097
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1098
+ execute_or_queue_command(command, &block)
1099
+ end
1100
+
1101
+ protected
1102
+
1103
+ def apply_command_defaults(command)
1104
+ command.query['key'] = key unless key.nil?
1105
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1106
+ end
1107
+ end
1108
+ end
1109
+ end
1110
+ end