google-api-client 0.30.8 → 0.30.9

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 (329) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +108 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +16 -0
  5. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  6. data/generated/google/apis/accessapproval_v1beta1/classes.rb +51 -0
  7. data/generated/google/apis/accessapproval_v1beta1/representations.rb +16 -0
  8. data/generated/google/apis/accessapproval_v1beta1/service.rb +30 -6
  9. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  10. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  11. data/generated/google/apis/adexperiencereport_v1/classes.rb +2 -0
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +55 -5
  14. data/generated/google/apis/admin_directory_v1/representations.rb +6 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +11 -10
  16. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  17. data/generated/google/apis/alertcenter_v1beta1/classes.rb +235 -0
  18. data/generated/google/apis/alertcenter_v1beta1/representations.rb +95 -0
  19. data/generated/google/apis/alertcenter_v1beta1/service.rb +99 -1
  20. data/generated/google/apis/analytics_v3.rb +1 -1
  21. data/generated/google/apis/analytics_v3/classes.rb +6 -0
  22. data/generated/google/apis/analytics_v3/representations.rb +1 -0
  23. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +3 -1
  25. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  26. data/generated/google/apis/androidenterprise_v1/classes.rb +2 -1
  27. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  28. data/generated/google/apis/androidmanagement_v1/classes.rb +65 -0
  29. data/generated/google/apis/androidmanagement_v1/representations.rb +33 -0
  30. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +9 -2
  32. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  33. data/generated/google/apis/androidpublisher_v2/service.rb +12 -12
  34. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  35. data/generated/google/apis/androidpublisher_v3/classes.rb +39 -2
  36. data/generated/google/apis/androidpublisher_v3/representations.rb +4 -0
  37. data/generated/google/apis/androidpublisher_v3/service.rb +25 -13
  38. data/generated/google/apis/bigquery_v2.rb +4 -1
  39. data/generated/google/apis/bigquery_v2/classes.rb +137 -5
  40. data/generated/google/apis/bigquery_v2/representations.rb +64 -0
  41. data/generated/google/apis/bigquery_v2/service.rb +5 -1
  42. data/generated/google/apis/bigquerydatatransfer_v1.rb +4 -1
  43. data/generated/google/apis/bigqueryreservation_v1.rb +37 -0
  44. data/generated/google/apis/bigqueryreservation_v1/classes.rb +216 -0
  45. data/generated/google/apis/bigqueryreservation_v1/representations.rb +112 -0
  46. data/generated/google/apis/bigqueryreservation_v1/service.rb +139 -0
  47. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +37 -0
  48. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +514 -0
  49. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +237 -0
  50. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +714 -0
  51. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  52. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +2 -2
  53. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +2 -2
  54. data/generated/google/apis/cloudasset_v1.rb +1 -1
  55. data/generated/google/apis/cloudasset_v1/classes.rb +0 -9
  56. data/generated/google/apis/cloudasset_v1/representations.rb +0 -1
  57. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudasset_v1beta1/classes.rb +0 -9
  59. data/generated/google/apis/cloudasset_v1beta1/representations.rb +0 -1
  60. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  61. data/generated/google/apis/cloudbilling_v1/service.rb +1 -1
  62. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  63. data/generated/google/apis/cloudbuild_v1/classes.rb +14 -4
  64. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  65. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +6 -2
  67. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  68. data/generated/google/apis/cloudfunctions_v1/classes.rb +18 -22
  69. data/generated/google/apis/cloudfunctions_v1/service.rb +7 -1
  70. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  71. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +8 -11
  72. data/generated/google/apis/cloudiot_v1.rb +1 -1
  73. data/generated/google/apis/cloudiot_v1/classes.rb +1 -1
  74. data/generated/google/apis/cloudkms_v1.rb +1 -1
  75. data/generated/google/apis/cloudkms_v1/classes.rb +26 -11
  76. data/generated/google/apis/cloudkms_v1/representations.rb +2 -0
  77. data/generated/google/apis/cloudkms_v1/service.rb +28 -16
  78. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  79. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +0 -9
  80. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +0 -1
  81. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +1 -1
  82. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  83. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
  84. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  85. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1 -1
  86. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  87. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +1 -1
  88. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  89. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
  90. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  91. data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -4
  92. data/generated/google/apis/cloudscheduler_v1/service.rb +7 -14
  93. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  94. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -4
  95. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +7 -14
  96. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  97. data/generated/google/apis/cloudsearch_v1/classes.rb +0 -18
  98. data/generated/google/apis/cloudsearch_v1/representations.rb +0 -2
  99. data/generated/google/apis/cloudsearch_v1/service.rb +17 -9
  100. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  101. data/generated/google/apis/cloudtasks_v2/classes.rb +59 -17
  102. data/generated/google/apis/cloudtasks_v2/representations.rb +15 -0
  103. data/generated/google/apis/cloudtasks_v2/service.rb +12 -24
  104. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  105. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +35 -12
  106. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +15 -0
  107. data/generated/google/apis/cloudtasks_v2beta2/service.rb +16 -32
  108. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  109. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +30 -2
  110. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +15 -0
  111. data/generated/google/apis/cloudtasks_v2beta3/service.rb +12 -24
  112. data/generated/google/apis/compute_v1/service.rb +1 -1
  113. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  114. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +138 -138
  115. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +54 -32
  116. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  117. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +19 -135
  118. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +2 -32
  119. data/generated/google/apis/content_v2.rb +1 -1
  120. data/generated/google/apis/content_v2/classes.rb +10 -5
  121. data/generated/google/apis/content_v2/service.rb +3 -2
  122. data/generated/google/apis/content_v2_1.rb +1 -1
  123. data/generated/google/apis/content_v2_1/classes.rb +618 -6
  124. data/generated/google/apis/content_v2_1/representations.rb +271 -0
  125. data/generated/google/apis/content_v2_1/service.rb +357 -2
  126. data/generated/google/apis/dataproc_v1.rb +1 -1
  127. data/generated/google/apis/dataproc_v1/classes.rb +69 -8
  128. data/generated/google/apis/dataproc_v1/representations.rb +18 -0
  129. data/generated/google/apis/dataproc_v1/service.rb +121 -57
  130. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  131. data/generated/google/apis/dataproc_v1beta2/classes.rb +35 -11
  132. data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
  133. data/generated/google/apis/dataproc_v1beta2/service.rb +203 -97
  134. data/generated/google/apis/dialogflow_v2.rb +1 -1
  135. data/generated/google/apis/dialogflow_v2/service.rb +94 -0
  136. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  137. data/generated/google/apis/dialogflow_v2beta1/classes.rb +51 -0
  138. data/generated/google/apis/dialogflow_v2beta1/representations.rb +16 -0
  139. data/generated/google/apis/dialogflow_v2beta1/service.rb +1989 -0
  140. data/generated/google/apis/dlp_v2.rb +1 -1
  141. data/generated/google/apis/dlp_v2/classes.rb +1 -1
  142. data/generated/google/apis/docs_v1.rb +1 -1
  143. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  144. data/generated/google/apis/doubleclicksearch_v2.rb +2 -2
  145. data/generated/google/apis/doubleclicksearch_v2/classes.rb +1 -1
  146. data/generated/google/apis/doubleclicksearch_v2/service.rb +1 -1
  147. data/generated/google/apis/drive_v2/service.rb +6 -6
  148. data/generated/google/apis/drive_v3/service.rb +6 -6
  149. data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
  150. data/generated/google/apis/factchecktools_v1alpha1/classes.rb +6 -0
  151. data/generated/google/apis/factchecktools_v1alpha1/representations.rb +1 -0
  152. data/generated/google/apis/fcm_v1.rb +1 -1
  153. data/generated/google/apis/fcm_v1/classes.rb +419 -0
  154. data/generated/google/apis/fcm_v1/representations.rb +45 -0
  155. data/generated/google/apis/file_v1.rb +1 -1
  156. data/generated/google/apis/file_v1/classes.rb +12 -1
  157. data/generated/google/apis/file_v1/representations.rb +1 -0
  158. data/generated/google/apis/file_v1beta1.rb +1 -1
  159. data/generated/google/apis/file_v1beta1/classes.rb +12 -1
  160. data/generated/google/apis/file_v1beta1/representations.rb +1 -0
  161. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  162. data/generated/google/apis/firebase_v1beta1/classes.rb +164 -4
  163. data/generated/google/apis/firebase_v1beta1/representations.rb +71 -0
  164. data/generated/google/apis/firebase_v1beta1/service.rb +165 -2
  165. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  166. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +27 -6
  167. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +3 -0
  168. data/generated/google/apis/firebaserules_v1.rb +1 -1
  169. data/generated/google/apis/firebaserules_v1/classes.rb +6 -0
  170. data/generated/google/apis/firebaserules_v1/representations.rb +1 -0
  171. data/generated/google/apis/games_management_v1management.rb +1 -1
  172. data/generated/google/apis/games_management_v1management/classes.rb +1 -2
  173. data/generated/google/apis/games_v1.rb +1 -1
  174. data/generated/google/apis/games_v1/classes.rb +1 -2
  175. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  176. data/generated/google/apis/genomics_v2alpha1/classes.rb +18 -7
  177. data/generated/google/apis/genomics_v2alpha1/service.rb +5 -1
  178. data/generated/google/apis/groupssettings_v1.rb +1 -1
  179. data/generated/google/apis/groupssettings_v1/classes.rb +367 -99
  180. data/generated/google/apis/groupssettings_v1/service.rb +3 -3
  181. data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
  182. data/generated/google/apis/healthcare_v1alpha2/classes.rb +4 -21
  183. data/generated/google/apis/healthcare_v1alpha2/representations.rb +0 -2
  184. data/generated/google/apis/healthcare_v1alpha2/service.rb +101 -117
  185. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  186. data/generated/google/apis/healthcare_v1beta1/classes.rb +18 -13
  187. data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -1
  188. data/generated/google/apis/healthcare_v1beta1/service.rb +90 -22
  189. data/generated/google/apis/iam_v1.rb +1 -1
  190. data/generated/google/apis/iam_v1/classes.rb +31 -1
  191. data/generated/google/apis/iam_v1/representations.rb +14 -0
  192. data/generated/google/apis/iam_v1/service.rb +45 -4
  193. data/generated/google/apis/iap_v1.rb +1 -1
  194. data/generated/google/apis/iap_v1/classes.rb +1 -1
  195. data/generated/google/apis/iap_v1beta1.rb +1 -1
  196. data/generated/google/apis/iap_v1beta1/classes.rb +1 -1
  197. data/generated/google/apis/jobs_v3.rb +1 -1
  198. data/generated/google/apis/jobs_v3/classes.rb +2 -1
  199. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  200. data/generated/google/apis/jobs_v3p1beta1/classes.rb +2 -1
  201. data/generated/google/apis/libraryagent_v1.rb +1 -1
  202. data/generated/google/apis/libraryagent_v1/service.rb +5 -5
  203. data/generated/google/apis/logging_v2.rb +1 -1
  204. data/generated/google/apis/logging_v2/classes.rb +2 -2
  205. data/generated/google/apis/ml_v1.rb +1 -1
  206. data/generated/google/apis/ml_v1/classes.rb +63 -9
  207. data/generated/google/apis/ml_v1/representations.rb +16 -1
  208. data/generated/google/apis/ml_v1/service.rb +2 -2
  209. data/generated/google/apis/monitoring_v3.rb +1 -1
  210. data/generated/google/apis/monitoring_v3/classes.rb +29 -2
  211. data/generated/google/apis/monitoring_v3/representations.rb +4 -0
  212. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  213. data/generated/google/apis/people_v1.rb +1 -1
  214. data/generated/google/apis/people_v1/classes.rb +7 -0
  215. data/generated/google/apis/people_v1/representations.rb +1 -0
  216. data/generated/google/apis/people_v1/service.rb +5 -4
  217. data/generated/google/apis/pubsub_v1.rb +1 -1
  218. data/generated/google/apis/pubsub_v1/classes.rb +12 -11
  219. data/generated/google/apis/pubsub_v1/service.rb +3 -3
  220. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  221. data/generated/google/apis/pubsub_v1beta2/classes.rb +2 -2
  222. data/generated/google/apis/pubsub_v1beta2/service.rb +2 -2
  223. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  224. data/generated/google/apis/remotebuildexecution_v1/classes.rb +32 -0
  225. data/generated/google/apis/remotebuildexecution_v1/representations.rb +16 -0
  226. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  227. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +32 -0
  228. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +16 -0
  229. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  230. data/generated/google/apis/remotebuildexecution_v2/classes.rb +32 -0
  231. data/generated/google/apis/remotebuildexecution_v2/representations.rb +16 -0
  232. data/generated/google/apis/run_v1.rb +1 -1
  233. data/generated/google/apis/run_v1/classes.rb +25 -0
  234. data/generated/google/apis/run_v1/representations.rb +15 -0
  235. data/generated/google/apis/run_v1/service.rb +39 -0
  236. data/generated/google/apis/run_v1alpha1.rb +1 -1
  237. data/generated/google/apis/run_v1alpha1/classes.rb +338 -22
  238. data/generated/google/apis/run_v1alpha1/representations.rb +141 -1
  239. data/generated/google/apis/run_v1alpha1/service.rb +1 -1
  240. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  241. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
  242. data/generated/google/apis/securitycenter_v1.rb +1 -1
  243. data/generated/google/apis/securitycenter_v1/classes.rb +16 -13
  244. data/generated/google/apis/securitycenter_v1/representations.rb +0 -1
  245. data/generated/google/apis/securitycenter_v1/service.rb +19 -6
  246. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  247. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1 -10
  248. data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -1
  249. data/generated/google/apis/servicebroker_v1.rb +1 -1
  250. data/generated/google/apis/servicebroker_v1/service.rb +1 -1
  251. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  252. data/generated/google/apis/servicebroker_v1alpha1/service.rb +1 -1
  253. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  254. data/generated/google/apis/servicebroker_v1beta1/service.rb +1 -1
  255. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  256. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +4 -0
  257. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  258. data/generated/google/apis/servicecontrol_v1/classes.rb +54 -19
  259. data/generated/google/apis/servicecontrol_v1/representations.rb +17 -2
  260. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  261. data/generated/google/apis/servicemanagement_v1/classes.rb +11 -20
  262. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  263. data/generated/google/apis/serviceusage_v1.rb +1 -1
  264. data/generated/google/apis/serviceusage_v1/classes.rb +0 -2
  265. data/generated/google/apis/serviceusage_v1/service.rb +1 -0
  266. data/generated/google/apis/sheets_v4.rb +1 -1
  267. data/generated/google/apis/sheets_v4/classes.rb +53 -10
  268. data/generated/google/apis/sheets_v4/representations.rb +17 -0
  269. data/generated/google/apis/spanner_v1.rb +1 -1
  270. data/generated/google/apis/spanner_v1/classes.rb +50 -54
  271. data/generated/google/apis/spanner_v1/service.rb +8 -15
  272. data/generated/google/apis/speech_v1.rb +1 -1
  273. data/generated/google/apis/speech_v1/classes.rb +2 -1
  274. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  275. data/generated/google/apis/speech_v1p1beta1/classes.rb +9 -16
  276. data/generated/google/apis/{run_v1beta1.rb → speech_v2beta.rb} +9 -10
  277. data/generated/google/apis/speech_v2beta/classes.rb +355 -0
  278. data/generated/google/apis/speech_v2beta/representations.rb +152 -0
  279. data/generated/google/apis/speech_v2beta/service.rb +138 -0
  280. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  281. data/generated/google/apis/storagetransfer_v1/classes.rb +14 -12
  282. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  283. data/generated/google/apis/toolresults_v1beta3/classes.rb +44 -9
  284. data/generated/google/apis/toolresults_v1beta3/representations.rb +2 -0
  285. data/generated/google/apis/toolresults_v1beta3/service.rb +3 -6
  286. data/generated/google/apis/tpu_v1.rb +1 -1
  287. data/generated/google/apis/tpu_v1/classes.rb +12 -0
  288. data/generated/google/apis/tpu_v1/representations.rb +2 -0
  289. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  290. data/generated/google/apis/tpu_v1alpha1/classes.rb +12 -0
  291. data/generated/google/apis/tpu_v1alpha1/representations.rb +2 -0
  292. data/generated/google/apis/translate_v3beta1.rb +1 -1
  293. data/generated/google/apis/translate_v3beta1/classes.rb +72 -0
  294. data/generated/google/apis/translate_v3beta1/representations.rb +32 -0
  295. data/generated/google/apis/translate_v3beta1/service.rb +82 -7
  296. data/generated/google/apis/vision_v1.rb +1 -1
  297. data/generated/google/apis/vision_v1/classes.rb +579 -0
  298. data/generated/google/apis/vision_v1/representations.rb +172 -0
  299. data/generated/google/apis/vision_v1/service.rb +404 -0
  300. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  301. data/generated/google/apis/vision_v1p1beta1/classes.rb +523 -0
  302. data/generated/google/apis/vision_v1p1beta1/representations.rb +143 -0
  303. data/generated/google/apis/vision_v1p1beta1/service.rb +352 -0
  304. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  305. data/generated/google/apis/vision_v1p2beta1/classes.rb +187 -0
  306. data/generated/google/apis/vision_v1p2beta1/representations.rb +23 -0
  307. data/generated/google/apis/vision_v1p2beta1/service.rb +352 -0
  308. data/generated/google/apis/websecurityscanner_v1.rb +4 -1
  309. data/generated/google/apis/websecurityscanner_v1/classes.rb +924 -0
  310. data/generated/google/apis/websecurityscanner_v1/representations.rb +426 -0
  311. data/generated/google/apis/websecurityscanner_v1/service.rb +487 -0
  312. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  313. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  314. data/generated/google/apis/youtube_partner_v1/service.rb +2 -3
  315. data/generated/google/apis/youtube_v3.rb +1 -1
  316. data/generated/google/apis/youtube_v3/classes.rb +322 -0
  317. data/generated/google/apis/youtube_v3/representations.rb +139 -0
  318. data/generated/google/apis/youtube_v3/service.rb +85 -0
  319. data/lib/google/api_client/client_secrets.rb +1 -2
  320. data/lib/google/apis/core/api_command.rb +12 -0
  321. data/lib/google/apis/core/batch.rb +2 -0
  322. data/lib/google/apis/core/http_command.rb +8 -1
  323. data/lib/google/apis/core/json_representation.rb +1 -1
  324. data/lib/google/apis/generator/annotator.rb +1 -0
  325. data/lib/google/apis/version.rb +1 -1
  326. metadata +14 -6
  327. data/generated/google/apis/run_v1beta1/classes.rb +0 -98
  328. data/generated/google/apis/run_v1beta1/representations.rb +0 -58
  329. data/generated/google/apis/run_v1beta1/service.rb +0 -99
@@ -400,6 +400,12 @@ module Google
400
400
  include Google::Apis::Core::JsonObjectSupport
401
401
  end
402
402
 
403
+ class GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation
404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
405
+
406
+ include Google::Apis::Core::JsonObjectSupport
407
+ end
408
+
403
409
  class GoogleCloudVisionV1p1beta1ProductSearchResultsResult
404
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
405
411
 
@@ -670,6 +676,12 @@ module Google
670
676
  include Google::Apis::Core::JsonObjectSupport
671
677
  end
672
678
 
679
+ class GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation
680
+ class Representation < Google::Apis::Core::JsonRepresentation; end
681
+
682
+ include Google::Apis::Core::JsonObjectSupport
683
+ end
684
+
673
685
  class GoogleCloudVisionV1p2beta1ProductSearchResultsResult
674
686
  class Representation < Google::Apis::Core::JsonRepresentation; end
675
687
 
@@ -952,6 +964,12 @@ module Google
952
964
  include Google::Apis::Core::JsonObjectSupport
953
965
  end
954
966
 
967
+ class GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation
968
+ class Representation < Google::Apis::Core::JsonRepresentation; end
969
+
970
+ include Google::Apis::Core::JsonObjectSupport
971
+ end
972
+
955
973
  class GoogleCloudVisionV1p3beta1ProductSearchResultsResult
956
974
  class Representation < Google::Apis::Core::JsonRepresentation; end
957
975
 
@@ -1258,6 +1276,12 @@ module Google
1258
1276
  include Google::Apis::Core::JsonObjectSupport
1259
1277
  end
1260
1278
 
1279
+ class GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation
1280
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1281
+
1282
+ include Google::Apis::Core::JsonObjectSupport
1283
+ end
1284
+
1261
1285
  class GoogleCloudVisionV1p4beta1ProductSearchResultsResult
1262
1286
  class Representation < Google::Apis::Core::JsonRepresentation; end
1263
1287
 
@@ -1570,6 +1594,12 @@ module Google
1570
1594
  include Google::Apis::Core::JsonObjectSupport
1571
1595
  end
1572
1596
 
1597
+ class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation
1598
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1599
+
1600
+ include Google::Apis::Core::JsonObjectSupport
1601
+ end
1602
+
1573
1603
  class GoogleCloudVisionV1p5beta1ProductSearchResultsResult
1574
1604
  class Representation < Google::Apis::Core::JsonRepresentation; end
1575
1605
 
@@ -1822,6 +1852,12 @@ module Google
1822
1852
  include Google::Apis::Core::JsonObjectSupport
1823
1853
  end
1824
1854
 
1855
+ class ObjectAnnotation
1856
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1857
+
1858
+ include Google::Apis::Core::JsonObjectSupport
1859
+ end
1860
+
1825
1861
  class Operation
1826
1862
  class Representation < Google::Apis::Core::JsonRepresentation; end
1827
1863
 
@@ -1882,12 +1918,24 @@ module Google
1882
1918
  include Google::Apis::Core::JsonObjectSupport
1883
1919
  end
1884
1920
 
1921
+ class ProductSetPurgeConfig
1922
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1923
+
1924
+ include Google::Apis::Core::JsonObjectSupport
1925
+ end
1926
+
1885
1927
  class Property
1886
1928
  class Representation < Google::Apis::Core::JsonRepresentation; end
1887
1929
 
1888
1930
  include Google::Apis::Core::JsonObjectSupport
1889
1931
  end
1890
1932
 
1933
+ class PurgeProductsRequest
1934
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1935
+
1936
+ include Google::Apis::Core::JsonObjectSupport
1937
+ end
1938
+
1891
1939
  class ReferenceImage
1892
1940
  class Representation < Google::Apis::Core::JsonRepresentation; end
1893
1941
 
@@ -2007,6 +2055,8 @@ module Google
2007
2055
  class AnnotateFileResponse
2008
2056
  # @private
2009
2057
  class Representation < Google::Apis::Core::JsonRepresentation
2058
+ property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
2059
+
2010
2060
  property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::InputConfig, decorator: Google::Apis::VisionV1::InputConfig::Representation
2011
2061
 
2012
2062
  collection :responses, as: 'responses', class: Google::Apis::VisionV1::AnnotateImageResponse, decorator: Google::Apis::VisionV1::AnnotateImageResponse::Representation
@@ -2086,6 +2136,7 @@ module Google
2086
2136
  class AsyncBatchAnnotateFilesRequest
2087
2137
  # @private
2088
2138
  class Representation < Google::Apis::Core::JsonRepresentation
2139
+ property :parent, as: 'parent'
2089
2140
  collection :requests, as: 'requests', class: Google::Apis::VisionV1::AsyncAnnotateFileRequest, decorator: Google::Apis::VisionV1::AsyncAnnotateFileRequest::Representation
2090
2141
 
2091
2142
  end
@@ -2104,6 +2155,7 @@ module Google
2104
2155
  class Representation < Google::Apis::Core::JsonRepresentation
2105
2156
  property :output_config, as: 'outputConfig', class: Google::Apis::VisionV1::OutputConfig, decorator: Google::Apis::VisionV1::OutputConfig::Representation
2106
2157
 
2158
+ property :parent, as: 'parent'
2107
2159
  collection :requests, as: 'requests', class: Google::Apis::VisionV1::AnnotateImageRequest, decorator: Google::Apis::VisionV1::AnnotateImageRequest::Representation
2108
2160
 
2109
2161
  end
@@ -2120,6 +2172,7 @@ module Google
2120
2172
  class BatchAnnotateFilesRequest
2121
2173
  # @private
2122
2174
  class Representation < Google::Apis::Core::JsonRepresentation
2175
+ property :parent, as: 'parent'
2123
2176
  collection :requests, as: 'requests', class: Google::Apis::VisionV1::AnnotateFileRequest, decorator: Google::Apis::VisionV1::AnnotateFileRequest::Representation
2124
2177
 
2125
2178
  end
@@ -2136,6 +2189,7 @@ module Google
2136
2189
  class BatchAnnotateImagesRequest
2137
2190
  # @private
2138
2191
  class Representation < Google::Apis::Core::JsonRepresentation
2192
+ property :parent, as: 'parent'
2139
2193
  collection :requests, as: 'requests', class: Google::Apis::VisionV1::AnnotateImageRequest, decorator: Google::Apis::VisionV1::AnnotateImageRequest::Representation
2140
2194
 
2141
2195
  end
@@ -2331,6 +2385,8 @@ module Google
2331
2385
  class GoogleCloudVisionV1p1beta1AnnotateFileResponse
2332
2386
  # @private
2333
2387
  class Representation < Google::Apis::Core::JsonRepresentation
2388
+ property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
2389
+
2334
2390
  property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1InputConfig::Representation
2335
2391
 
2336
2392
  collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1AnnotateImageResponse::Representation
@@ -2657,11 +2713,23 @@ module Google
2657
2713
  class Representation < Google::Apis::Core::JsonRepresentation
2658
2714
  property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation
2659
2715
 
2716
+ collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation::Representation
2717
+
2660
2718
  collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsResult::Representation
2661
2719
 
2662
2720
  end
2663
2721
  end
2664
2722
 
2723
+ class GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation
2724
+ # @private
2725
+ class Representation < Google::Apis::Core::JsonRepresentation
2726
+ property :language_code, as: 'languageCode'
2727
+ property :mid, as: 'mid'
2728
+ property :name, as: 'name'
2729
+ property :score, as: 'score'
2730
+ end
2731
+ end
2732
+
2665
2733
  class GoogleCloudVisionV1p1beta1ProductSearchResultsResult
2666
2734
  # @private
2667
2735
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2819,6 +2887,8 @@ module Google
2819
2887
  class GoogleCloudVisionV1p2beta1AnnotateFileResponse
2820
2888
  # @private
2821
2889
  class Representation < Google::Apis::Core::JsonRepresentation
2890
+ property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
2891
+
2822
2892
  property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig::Representation
2823
2893
 
2824
2894
  collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AnnotateImageResponse::Representation
@@ -3145,11 +3215,23 @@ module Google
3145
3215
  class Representation < Google::Apis::Core::JsonRepresentation
3146
3216
  property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
3147
3217
 
3218
+ collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation::Representation
3219
+
3148
3220
  collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductSearchResultsResult::Representation
3149
3221
 
3150
3222
  end
3151
3223
  end
3152
3224
 
3225
+ class GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation
3226
+ # @private
3227
+ class Representation < Google::Apis::Core::JsonRepresentation
3228
+ property :language_code, as: 'languageCode'
3229
+ property :mid, as: 'mid'
3230
+ property :name, as: 'name'
3231
+ property :score, as: 'score'
3232
+ end
3233
+ end
3234
+
3153
3235
  class GoogleCloudVisionV1p2beta1ProductSearchResultsResult
3154
3236
  # @private
3155
3237
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3307,6 +3389,8 @@ module Google
3307
3389
  class GoogleCloudVisionV1p3beta1AnnotateFileResponse
3308
3390
  # @private
3309
3391
  class Representation < Google::Apis::Core::JsonRepresentation
3392
+ property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
3393
+
3310
3394
  property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1InputConfig::Representation
3311
3395
 
3312
3396
  collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1AnnotateImageResponse::Representation
@@ -3652,11 +3736,23 @@ module Google
3652
3736
  class Representation < Google::Apis::Core::JsonRepresentation
3653
3737
  property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly::Representation
3654
3738
 
3739
+ collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation::Representation
3740
+
3655
3741
  collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult::Representation
3656
3742
 
3657
3743
  end
3658
3744
  end
3659
3745
 
3746
+ class GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation
3747
+ # @private
3748
+ class Representation < Google::Apis::Core::JsonRepresentation
3749
+ property :language_code, as: 'languageCode'
3750
+ property :mid, as: 'mid'
3751
+ property :name, as: 'name'
3752
+ property :score, as: 'score'
3753
+ end
3754
+ end
3755
+
3660
3756
  class GoogleCloudVisionV1p3beta1ProductSearchResultsResult
3661
3757
  # @private
3662
3758
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3824,6 +3920,8 @@ module Google
3824
3920
  class GoogleCloudVisionV1p4beta1AnnotateFileResponse
3825
3921
  # @private
3826
3922
  class Representation < Google::Apis::Core::JsonRepresentation
3923
+ property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
3924
+
3827
3925
  property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1InputConfig::Representation
3828
3926
 
3829
3927
  collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AnnotateImageResponse::Representation
@@ -4055,6 +4153,7 @@ module Google
4055
4153
  class GoogleCloudVisionV1p4beta1ImageQuality
4056
4154
  # @private
4057
4155
  class Representation < Google::Apis::Core::JsonRepresentation
4156
+ property :quality_score, as: 'qualityScore'
4058
4157
  end
4059
4158
  end
4060
4159
 
@@ -4195,11 +4294,23 @@ module Google
4195
4294
  class Representation < Google::Apis::Core::JsonRepresentation
4196
4295
  property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly::Representation
4197
4296
 
4297
+ collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation::Representation
4298
+
4198
4299
  collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult::Representation
4199
4300
 
4200
4301
  end
4201
4302
  end
4202
4303
 
4304
+ class GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation
4305
+ # @private
4306
+ class Representation < Google::Apis::Core::JsonRepresentation
4307
+ property :language_code, as: 'languageCode'
4308
+ property :mid, as: 'mid'
4309
+ property :name, as: 'name'
4310
+ property :score, as: 'score'
4311
+ end
4312
+ end
4313
+
4203
4314
  class GoogleCloudVisionV1p4beta1ProductSearchResultsResult
4204
4315
  # @private
4205
4316
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4242,10 +4353,16 @@ module Google
4242
4353
  # @private
4243
4354
  class Representation < Google::Apis::Core::JsonRepresentation
4244
4355
  property :adult, as: 'adult'
4356
+ property :adult_confidence, as: 'adultConfidence'
4245
4357
  property :medical, as: 'medical'
4358
+ property :medical_confidence, as: 'medicalConfidence'
4359
+ property :nsfw_confidence, as: 'nsfwConfidence'
4246
4360
  property :racy, as: 'racy'
4361
+ property :racy_confidence, as: 'racyConfidence'
4247
4362
  property :spoof, as: 'spoof'
4363
+ property :spoof_confidence, as: 'spoofConfidence'
4248
4364
  property :violence, as: 'violence'
4365
+ property :violence_confidence, as: 'violenceConfidence'
4249
4366
  end
4250
4367
  end
4251
4368
 
@@ -4376,6 +4493,8 @@ module Google
4376
4493
  class GoogleCloudVisionV1p5beta1AnnotateFileResponse
4377
4494
  # @private
4378
4495
  class Representation < Google::Apis::Core::JsonRepresentation
4496
+ property :error, as: 'error', class: Google::Apis::VisionV1::Status, decorator: Google::Apis::VisionV1::Status::Representation
4497
+
4379
4498
  property :input_config, as: 'inputConfig', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1InputConfig, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1InputConfig::Representation
4380
4499
 
4381
4500
  collection :responses, as: 'responses', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AnnotateImageResponse, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AnnotateImageResponse::Representation
@@ -4757,11 +4876,23 @@ module Google
4757
4876
  class Representation < Google::Apis::Core::JsonRepresentation
4758
4877
  property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly::Representation
4759
4878
 
4879
+ collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation::Representation
4880
+
4760
4881
  collection :results, as: 'results', class: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult::Representation
4761
4882
 
4762
4883
  end
4763
4884
  end
4764
4885
 
4886
+ class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation
4887
+ # @private
4888
+ class Representation < Google::Apis::Core::JsonRepresentation
4889
+ property :language_code, as: 'languageCode'
4890
+ property :mid, as: 'mid'
4891
+ property :name, as: 'name'
4892
+ property :score, as: 'score'
4893
+ end
4894
+ end
4895
+
4765
4896
  class GoogleCloudVisionV1p5beta1ProductSearchResultsResult
4766
4897
  # @private
4767
4898
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4795,10 +4926,16 @@ module Google
4795
4926
  # @private
4796
4927
  class Representation < Google::Apis::Core::JsonRepresentation
4797
4928
  property :adult, as: 'adult'
4929
+ property :adult_confidence, as: 'adultConfidence'
4798
4930
  property :medical, as: 'medical'
4931
+ property :medical_confidence, as: 'medicalConfidence'
4932
+ property :nsfw_confidence, as: 'nsfwConfidence'
4799
4933
  property :racy, as: 'racy'
4934
+ property :racy_confidence, as: 'racyConfidence'
4800
4935
  property :spoof, as: 'spoof'
4936
+ property :spoof_confidence, as: 'spoofConfidence'
4801
4937
  property :violence, as: 'violence'
4938
+ property :violence_confidence, as: 'violenceConfidence'
4802
4939
  end
4803
4940
  end
4804
4941
 
@@ -4961,6 +5098,8 @@ module Google
4961
5098
  class Representation < Google::Apis::Core::JsonRepresentation
4962
5099
  property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
4963
5100
 
5101
+ collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VisionV1::ObjectAnnotation, decorator: Google::Apis::VisionV1::ObjectAnnotation::Representation
5102
+
4964
5103
  collection :results, as: 'results', class: Google::Apis::VisionV1::Result, decorator: Google::Apis::VisionV1::Result::Representation
4965
5104
 
4966
5105
  end
@@ -5166,6 +5305,16 @@ module Google
5166
5305
  end
5167
5306
  end
5168
5307
 
5308
+ class ObjectAnnotation
5309
+ # @private
5310
+ class Representation < Google::Apis::Core::JsonRepresentation
5311
+ property :language_code, as: 'languageCode'
5312
+ property :mid, as: 'mid'
5313
+ property :name, as: 'name'
5314
+ property :score, as: 'score'
5315
+ end
5316
+ end
5317
+
5169
5318
  class Operation
5170
5319
  # @private
5171
5320
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5276,6 +5425,13 @@ module Google
5276
5425
  end
5277
5426
  end
5278
5427
 
5428
+ class ProductSetPurgeConfig
5429
+ # @private
5430
+ class Representation < Google::Apis::Core::JsonRepresentation
5431
+ property :product_set_id, as: 'productSetId'
5432
+ end
5433
+ end
5434
+
5279
5435
  class Property
5280
5436
  # @private
5281
5437
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5285,6 +5441,16 @@ module Google
5285
5441
  end
5286
5442
  end
5287
5443
 
5444
+ class PurgeProductsRequest
5445
+ # @private
5446
+ class Representation < Google::Apis::Core::JsonRepresentation
5447
+ property :delete_orphan_products, as: 'deleteOrphanProducts'
5448
+ property :force, as: 'force'
5449
+ property :product_set_purge_config, as: 'productSetPurgeConfig', class: Google::Apis::VisionV1::ProductSetPurgeConfig, decorator: Google::Apis::VisionV1::ProductSetPurgeConfig::Representation
5450
+
5451
+ end
5452
+ end
5453
+
5288
5454
  class ReferenceImage
5289
5455
  # @private
5290
5456
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5316,10 +5482,16 @@ module Google
5316
5482
  # @private
5317
5483
  class Representation < Google::Apis::Core::JsonRepresentation
5318
5484
  property :adult, as: 'adult'
5485
+ property :adult_confidence, as: 'adultConfidence'
5319
5486
  property :medical, as: 'medical'
5487
+ property :medical_confidence, as: 'medicalConfidence'
5488
+ property :nsfw_confidence, as: 'nsfwConfidence'
5320
5489
  property :racy, as: 'racy'
5490
+ property :racy_confidence, as: 'racyConfidence'
5321
5491
  property :spoof, as: 'spoof'
5492
+ property :spoof_confidence, as: 'spoofConfidence'
5322
5493
  property :violence, as: 'violence'
5494
+ property :violence_confidence, as: 'violenceConfidence'
5323
5495
  end
5324
5496
  end
5325
5497
 
@@ -371,6 +371,358 @@ module Google
371
371
  execute_or_queue_command(command, &block)
372
372
  end
373
373
 
374
+ # Service that performs image detection and annotation for a batch of files.
375
+ # Now only "application/pdf", "image/tiff" and "image/gif" are supported.
376
+ # This service will extract at most 5 (customers can specify which 5 in
377
+ # AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each
378
+ # file provided and perform detection and annotation for each image
379
+ # extracted.
380
+ # @param [String] parent
381
+ # Optional. Target project and location to make a call.
382
+ # Format: `projects/`project-id`/locations/`location-id``.
383
+ # If no parent is specified, a region will be chosen automatically.
384
+ # Supported location-ids:
385
+ # `us`: USA country only,
386
+ # `asia`: East asia areas, like Japan, Taiwan,
387
+ # `eu`: The European Union.
388
+ # Example: `projects/project-A/locations/eu`.
389
+ # @param [Google::Apis::VisionV1::BatchAnnotateFilesRequest] batch_annotate_files_request_object
390
+ # @param [String] fields
391
+ # Selector specifying which fields to include in a partial response.
392
+ # @param [String] quota_user
393
+ # Available to use for quota purposes for server-side applications. Can be any
394
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
395
+ # @param [Google::Apis::RequestOptions] options
396
+ # Request-specific options
397
+ #
398
+ # @yield [result, err] Result & error if block supplied
399
+ # @yieldparam result [Google::Apis::VisionV1::BatchAnnotateFilesResponse] parsed result object
400
+ # @yieldparam err [StandardError] error object if request failed
401
+ #
402
+ # @return [Google::Apis::VisionV1::BatchAnnotateFilesResponse]
403
+ #
404
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
405
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
406
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
407
+ def annotate_project_file(parent, batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
408
+ command = make_simple_command(:post, 'v1/{+parent}/files:annotate', options)
409
+ command.request_representation = Google::Apis::VisionV1::BatchAnnotateFilesRequest::Representation
410
+ command.request_object = batch_annotate_files_request_object
411
+ command.response_representation = Google::Apis::VisionV1::BatchAnnotateFilesResponse::Representation
412
+ command.response_class = Google::Apis::VisionV1::BatchAnnotateFilesResponse
413
+ command.params['parent'] = parent unless parent.nil?
414
+ command.query['fields'] = fields unless fields.nil?
415
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
416
+ execute_or_queue_command(command, &block)
417
+ end
418
+
419
+ # Run asynchronous image detection and annotation for a list of generic
420
+ # files, such as PDF files, which may contain multiple pages and multiple
421
+ # images per page. Progress and results can be retrieved through the
422
+ # `google.longrunning.Operations` interface.
423
+ # `Operation.metadata` contains `OperationMetadata` (metadata).
424
+ # `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
425
+ # @param [String] parent
426
+ # Optional. Target project and location to make a call.
427
+ # Format: `projects/`project-id`/locations/`location-id``.
428
+ # If no parent is specified, a region will be chosen automatically.
429
+ # Supported location-ids:
430
+ # `us`: USA country only,
431
+ # `asia`: East asia areas, like Japan, Taiwan,
432
+ # `eu`: The European Union.
433
+ # Example: `projects/project-A/locations/eu`.
434
+ # @param [Google::Apis::VisionV1::AsyncBatchAnnotateFilesRequest] async_batch_annotate_files_request_object
435
+ # @param [String] fields
436
+ # Selector specifying which fields to include in a partial response.
437
+ # @param [String] quota_user
438
+ # Available to use for quota purposes for server-side applications. Can be any
439
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
440
+ # @param [Google::Apis::RequestOptions] options
441
+ # Request-specific options
442
+ #
443
+ # @yield [result, err] Result & error if block supplied
444
+ # @yieldparam result [Google::Apis::VisionV1::Operation] parsed result object
445
+ # @yieldparam err [StandardError] error object if request failed
446
+ #
447
+ # @return [Google::Apis::VisionV1::Operation]
448
+ #
449
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
450
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
451
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
452
+ def async_project_file_batch_annotate(parent, async_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
453
+ command = make_simple_command(:post, 'v1/{+parent}/files:asyncBatchAnnotate', options)
454
+ command.request_representation = Google::Apis::VisionV1::AsyncBatchAnnotateFilesRequest::Representation
455
+ command.request_object = async_batch_annotate_files_request_object
456
+ command.response_representation = Google::Apis::VisionV1::Operation::Representation
457
+ command.response_class = Google::Apis::VisionV1::Operation
458
+ command.params['parent'] = parent unless parent.nil?
459
+ command.query['fields'] = fields unless fields.nil?
460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
461
+ execute_or_queue_command(command, &block)
462
+ end
463
+
464
+ # Run image detection and annotation for a batch of images.
465
+ # @param [String] parent
466
+ # Optional. Target project and location to make a call.
467
+ # Format: `projects/`project-id`/locations/`location-id``.
468
+ # If no parent is specified, a region will be chosen automatically.
469
+ # Supported location-ids:
470
+ # `us`: USA country only,
471
+ # `asia`: East asia areas, like Japan, Taiwan,
472
+ # `eu`: The European Union.
473
+ # Example: `projects/project-A/locations/eu`.
474
+ # @param [Google::Apis::VisionV1::BatchAnnotateImagesRequest] batch_annotate_images_request_object
475
+ # @param [String] fields
476
+ # Selector specifying which fields to include in a partial response.
477
+ # @param [String] quota_user
478
+ # Available to use for quota purposes for server-side applications. Can be any
479
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
480
+ # @param [Google::Apis::RequestOptions] options
481
+ # Request-specific options
482
+ #
483
+ # @yield [result, err] Result & error if block supplied
484
+ # @yieldparam result [Google::Apis::VisionV1::BatchAnnotateImagesResponse] parsed result object
485
+ # @yieldparam err [StandardError] error object if request failed
486
+ #
487
+ # @return [Google::Apis::VisionV1::BatchAnnotateImagesResponse]
488
+ #
489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
492
+ def annotate_project_image(parent, batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
493
+ command = make_simple_command(:post, 'v1/{+parent}/images:annotate', options)
494
+ command.request_representation = Google::Apis::VisionV1::BatchAnnotateImagesRequest::Representation
495
+ command.request_object = batch_annotate_images_request_object
496
+ command.response_representation = Google::Apis::VisionV1::BatchAnnotateImagesResponse::Representation
497
+ command.response_class = Google::Apis::VisionV1::BatchAnnotateImagesResponse
498
+ command.params['parent'] = parent unless parent.nil?
499
+ command.query['fields'] = fields unless fields.nil?
500
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
501
+ execute_or_queue_command(command, &block)
502
+ end
503
+
504
+ # Run asynchronous image detection and annotation for a list of images.
505
+ # Progress and results can be retrieved through the
506
+ # `google.longrunning.Operations` interface.
507
+ # `Operation.metadata` contains `OperationMetadata` (metadata).
508
+ # `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results).
509
+ # This service will write image annotation outputs to json files in customer
510
+ # GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
511
+ # @param [String] parent
512
+ # Optional. Target project and location to make a call.
513
+ # Format: `projects/`project-id`/locations/`location-id``.
514
+ # If no parent is specified, a region will be chosen automatically.
515
+ # Supported location-ids:
516
+ # `us`: USA country only,
517
+ # `asia`: East asia areas, like Japan, Taiwan,
518
+ # `eu`: The European Union.
519
+ # Example: `projects/project-A/locations/eu`.
520
+ # @param [Google::Apis::VisionV1::AsyncBatchAnnotateImagesRequest] async_batch_annotate_images_request_object
521
+ # @param [String] fields
522
+ # Selector specifying which fields to include in a partial response.
523
+ # @param [String] quota_user
524
+ # Available to use for quota purposes for server-side applications. Can be any
525
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
526
+ # @param [Google::Apis::RequestOptions] options
527
+ # Request-specific options
528
+ #
529
+ # @yield [result, err] Result & error if block supplied
530
+ # @yieldparam result [Google::Apis::VisionV1::Operation] parsed result object
531
+ # @yieldparam err [StandardError] error object if request failed
532
+ #
533
+ # @return [Google::Apis::VisionV1::Operation]
534
+ #
535
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
536
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
537
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
538
+ def async_project_image_batch_annotate(parent, async_batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
539
+ command = make_simple_command(:post, 'v1/{+parent}/images:asyncBatchAnnotate', options)
540
+ command.request_representation = Google::Apis::VisionV1::AsyncBatchAnnotateImagesRequest::Representation
541
+ command.request_object = async_batch_annotate_images_request_object
542
+ command.response_representation = Google::Apis::VisionV1::Operation::Representation
543
+ command.response_class = Google::Apis::VisionV1::Operation
544
+ command.params['parent'] = parent unless parent.nil?
545
+ command.query['fields'] = fields unless fields.nil?
546
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
547
+ execute_or_queue_command(command, &block)
548
+ end
549
+
550
+ # Service that performs image detection and annotation for a batch of files.
551
+ # Now only "application/pdf", "image/tiff" and "image/gif" are supported.
552
+ # This service will extract at most 5 (customers can specify which 5 in
553
+ # AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each
554
+ # file provided and perform detection and annotation for each image
555
+ # extracted.
556
+ # @param [String] parent
557
+ # Optional. Target project and location to make a call.
558
+ # Format: `projects/`project-id`/locations/`location-id``.
559
+ # If no parent is specified, a region will be chosen automatically.
560
+ # Supported location-ids:
561
+ # `us`: USA country only,
562
+ # `asia`: East asia areas, like Japan, Taiwan,
563
+ # `eu`: The European Union.
564
+ # Example: `projects/project-A/locations/eu`.
565
+ # @param [Google::Apis::VisionV1::BatchAnnotateFilesRequest] batch_annotate_files_request_object
566
+ # @param [String] fields
567
+ # Selector specifying which fields to include in a partial response.
568
+ # @param [String] quota_user
569
+ # Available to use for quota purposes for server-side applications. Can be any
570
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
571
+ # @param [Google::Apis::RequestOptions] options
572
+ # Request-specific options
573
+ #
574
+ # @yield [result, err] Result & error if block supplied
575
+ # @yieldparam result [Google::Apis::VisionV1::BatchAnnotateFilesResponse] parsed result object
576
+ # @yieldparam err [StandardError] error object if request failed
577
+ #
578
+ # @return [Google::Apis::VisionV1::BatchAnnotateFilesResponse]
579
+ #
580
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
581
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
582
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
583
+ def annotate_project_location_file(parent, batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
584
+ command = make_simple_command(:post, 'v1/{+parent}/files:annotate', options)
585
+ command.request_representation = Google::Apis::VisionV1::BatchAnnotateFilesRequest::Representation
586
+ command.request_object = batch_annotate_files_request_object
587
+ command.response_representation = Google::Apis::VisionV1::BatchAnnotateFilesResponse::Representation
588
+ command.response_class = Google::Apis::VisionV1::BatchAnnotateFilesResponse
589
+ command.params['parent'] = parent unless parent.nil?
590
+ command.query['fields'] = fields unless fields.nil?
591
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
592
+ execute_or_queue_command(command, &block)
593
+ end
594
+
595
+ # Run asynchronous image detection and annotation for a list of generic
596
+ # files, such as PDF files, which may contain multiple pages and multiple
597
+ # images per page. Progress and results can be retrieved through the
598
+ # `google.longrunning.Operations` interface.
599
+ # `Operation.metadata` contains `OperationMetadata` (metadata).
600
+ # `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
601
+ # @param [String] parent
602
+ # Optional. Target project and location to make a call.
603
+ # Format: `projects/`project-id`/locations/`location-id``.
604
+ # If no parent is specified, a region will be chosen automatically.
605
+ # Supported location-ids:
606
+ # `us`: USA country only,
607
+ # `asia`: East asia areas, like Japan, Taiwan,
608
+ # `eu`: The European Union.
609
+ # Example: `projects/project-A/locations/eu`.
610
+ # @param [Google::Apis::VisionV1::AsyncBatchAnnotateFilesRequest] async_batch_annotate_files_request_object
611
+ # @param [String] fields
612
+ # Selector specifying which fields to include in a partial response.
613
+ # @param [String] quota_user
614
+ # Available to use for quota purposes for server-side applications. Can be any
615
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
616
+ # @param [Google::Apis::RequestOptions] options
617
+ # Request-specific options
618
+ #
619
+ # @yield [result, err] Result & error if block supplied
620
+ # @yieldparam result [Google::Apis::VisionV1::Operation] parsed result object
621
+ # @yieldparam err [StandardError] error object if request failed
622
+ #
623
+ # @return [Google::Apis::VisionV1::Operation]
624
+ #
625
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
626
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
627
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
628
+ def async_project_location_file_batch_annotate(parent, async_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
629
+ command = make_simple_command(:post, 'v1/{+parent}/files:asyncBatchAnnotate', options)
630
+ command.request_representation = Google::Apis::VisionV1::AsyncBatchAnnotateFilesRequest::Representation
631
+ command.request_object = async_batch_annotate_files_request_object
632
+ command.response_representation = Google::Apis::VisionV1::Operation::Representation
633
+ command.response_class = Google::Apis::VisionV1::Operation
634
+ command.params['parent'] = parent unless parent.nil?
635
+ command.query['fields'] = fields unless fields.nil?
636
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
637
+ execute_or_queue_command(command, &block)
638
+ end
639
+
640
+ # Run image detection and annotation for a batch of images.
641
+ # @param [String] parent
642
+ # Optional. Target project and location to make a call.
643
+ # Format: `projects/`project-id`/locations/`location-id``.
644
+ # If no parent is specified, a region will be chosen automatically.
645
+ # Supported location-ids:
646
+ # `us`: USA country only,
647
+ # `asia`: East asia areas, like Japan, Taiwan,
648
+ # `eu`: The European Union.
649
+ # Example: `projects/project-A/locations/eu`.
650
+ # @param [Google::Apis::VisionV1::BatchAnnotateImagesRequest] batch_annotate_images_request_object
651
+ # @param [String] fields
652
+ # Selector specifying which fields to include in a partial response.
653
+ # @param [String] quota_user
654
+ # Available to use for quota purposes for server-side applications. Can be any
655
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
656
+ # @param [Google::Apis::RequestOptions] options
657
+ # Request-specific options
658
+ #
659
+ # @yield [result, err] Result & error if block supplied
660
+ # @yieldparam result [Google::Apis::VisionV1::BatchAnnotateImagesResponse] parsed result object
661
+ # @yieldparam err [StandardError] error object if request failed
662
+ #
663
+ # @return [Google::Apis::VisionV1::BatchAnnotateImagesResponse]
664
+ #
665
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
666
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
667
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
668
+ def annotate_project_location_image(parent, batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
669
+ command = make_simple_command(:post, 'v1/{+parent}/images:annotate', options)
670
+ command.request_representation = Google::Apis::VisionV1::BatchAnnotateImagesRequest::Representation
671
+ command.request_object = batch_annotate_images_request_object
672
+ command.response_representation = Google::Apis::VisionV1::BatchAnnotateImagesResponse::Representation
673
+ command.response_class = Google::Apis::VisionV1::BatchAnnotateImagesResponse
674
+ command.params['parent'] = parent unless parent.nil?
675
+ command.query['fields'] = fields unless fields.nil?
676
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
677
+ execute_or_queue_command(command, &block)
678
+ end
679
+
680
+ # Run asynchronous image detection and annotation for a list of images.
681
+ # Progress and results can be retrieved through the
682
+ # `google.longrunning.Operations` interface.
683
+ # `Operation.metadata` contains `OperationMetadata` (metadata).
684
+ # `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results).
685
+ # This service will write image annotation outputs to json files in customer
686
+ # GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
687
+ # @param [String] parent
688
+ # Optional. Target project and location to make a call.
689
+ # Format: `projects/`project-id`/locations/`location-id``.
690
+ # If no parent is specified, a region will be chosen automatically.
691
+ # Supported location-ids:
692
+ # `us`: USA country only,
693
+ # `asia`: East asia areas, like Japan, Taiwan,
694
+ # `eu`: The European Union.
695
+ # Example: `projects/project-A/locations/eu`.
696
+ # @param [Google::Apis::VisionV1::AsyncBatchAnnotateImagesRequest] async_batch_annotate_images_request_object
697
+ # @param [String] fields
698
+ # Selector specifying which fields to include in a partial response.
699
+ # @param [String] quota_user
700
+ # Available to use for quota purposes for server-side applications. Can be any
701
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
702
+ # @param [Google::Apis::RequestOptions] options
703
+ # Request-specific options
704
+ #
705
+ # @yield [result, err] Result & error if block supplied
706
+ # @yieldparam result [Google::Apis::VisionV1::Operation] parsed result object
707
+ # @yieldparam err [StandardError] error object if request failed
708
+ #
709
+ # @return [Google::Apis::VisionV1::Operation]
710
+ #
711
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
712
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
713
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
714
+ def async_project_location_image_batch_annotate(parent, async_batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
715
+ command = make_simple_command(:post, 'v1/{+parent}/images:asyncBatchAnnotate', options)
716
+ command.request_representation = Google::Apis::VisionV1::AsyncBatchAnnotateImagesRequest::Representation
717
+ command.request_object = async_batch_annotate_images_request_object
718
+ command.response_representation = Google::Apis::VisionV1::Operation::Representation
719
+ command.response_class = Google::Apis::VisionV1::Operation
720
+ command.params['parent'] = parent unless parent.nil?
721
+ command.query['fields'] = fields unless fields.nil?
722
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
723
+ execute_or_queue_command(command, &block)
724
+ end
725
+
374
726
  # Gets the latest state of a long-running operation. Clients can use this
375
727
  # method to poll the operation result at intervals as recommended by the API
376
728
  # service.
@@ -968,6 +1320,58 @@ module Google
968
1320
  execute_or_queue_command(command, &block)
969
1321
  end
970
1322
 
1323
+ # Asynchronous API to delete all Products in a ProductSet or all Products
1324
+ # that are in no ProductSet.
1325
+ # If a Product is a member of the specified ProductSet in addition to other
1326
+ # ProductSets, the Product will still be deleted.
1327
+ # It is recommended to not delete the specified ProductSet until after this
1328
+ # operation has completed. It is also recommended to not add any of the
1329
+ # Products involved in the batch delete to a new ProductSet while this
1330
+ # operation is running because those Products may still end up deleted.
1331
+ # It's not possible to undo the PurgeProducts operation. Therefore, it is
1332
+ # recommended to keep the csv files used in ImportProductSets (if that was
1333
+ # how you originally built the Product Set) before starting PurgeProducts, in
1334
+ # case you need to re-import the data after deletion.
1335
+ # If the plan is to purge all of the Products from a ProductSet and then
1336
+ # re-use the empty ProductSet to re-import new Products into the empty
1337
+ # ProductSet, you must wait until the PurgeProducts operation has finished
1338
+ # for that ProductSet.
1339
+ # The google.longrunning.Operation API can be used to keep track of the
1340
+ # progress and results of the request.
1341
+ # `Operation.metadata` contains `BatchOperationMetadata`. (progress)
1342
+ # @param [String] parent
1343
+ # The project and location in which the Products should be deleted.
1344
+ # Format is `projects/PROJECT_ID/locations/LOC_ID`.
1345
+ # @param [Google::Apis::VisionV1::PurgeProductsRequest] purge_products_request_object
1346
+ # @param [String] fields
1347
+ # Selector specifying which fields to include in a partial response.
1348
+ # @param [String] quota_user
1349
+ # Available to use for quota purposes for server-side applications. Can be any
1350
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1351
+ # @param [Google::Apis::RequestOptions] options
1352
+ # Request-specific options
1353
+ #
1354
+ # @yield [result, err] Result & error if block supplied
1355
+ # @yieldparam result [Google::Apis::VisionV1::Operation] parsed result object
1356
+ # @yieldparam err [StandardError] error object if request failed
1357
+ #
1358
+ # @return [Google::Apis::VisionV1::Operation]
1359
+ #
1360
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1361
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1362
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1363
+ def purge_products(parent, purge_products_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1364
+ command = make_simple_command(:post, 'v1/{+parent}/products:purge', options)
1365
+ command.request_representation = Google::Apis::VisionV1::PurgeProductsRequest::Representation
1366
+ command.request_object = purge_products_request_object
1367
+ command.response_representation = Google::Apis::VisionV1::Operation::Representation
1368
+ command.response_class = Google::Apis::VisionV1::Operation
1369
+ command.params['parent'] = parent unless parent.nil?
1370
+ command.query['fields'] = fields unless fields.nil?
1371
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1372
+ execute_or_queue_command(command, &block)
1373
+ end
1374
+
971
1375
  # Creates and returns a new ReferenceImage resource.
972
1376
  # The `bounding_poly` field is optional. If `bounding_poly` is not specified,
973
1377
  # the system will try to detect regions of interest in the image that are