google-api-client 0.36.4 → 0.37.0

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