google-api-client 0.30.8 → 0.30.9

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -150,6 +150,7 @@ module Google
150
150
  collection :accelerator_types, as: 'acceleratorTypes', class: Google::Apis::TpuV1::AcceleratorType, decorator: Google::Apis::TpuV1::AcceleratorType::Representation
151
151
 
152
152
  property :next_page_token, as: 'nextPageToken'
153
+ collection :unreachable, as: 'unreachable'
153
154
  end
154
155
  end
155
156
 
@@ -187,6 +188,7 @@ module Google
187
188
  property :next_page_token, as: 'nextPageToken'
188
189
  collection :tensorflow_versions, as: 'tensorflowVersions', class: Google::Apis::TpuV1::TensorFlowVersion, decorator: Google::Apis::TpuV1::TensorFlowVersion::Representation
189
190
 
191
+ collection :unreachable, as: 'unreachable'
190
192
  end
191
193
  end
192
194
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/tpu/
26
26
  module TpuV1alpha1
27
27
  VERSION = 'V1alpha1'
28
- REVISION = '20190619'
28
+ REVISION = '20190821'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -80,6 +80,11 @@ module Google
80
80
  # @return [String]
81
81
  attr_accessor :next_page_token
82
82
 
83
+ # Locations that could not be reached.
84
+ # Corresponds to the JSON property `unreachable`
85
+ # @return [Array<String>]
86
+ attr_accessor :unreachable
87
+
83
88
  def initialize(**args)
84
89
  update!(**args)
85
90
  end
@@ -88,6 +93,7 @@ module Google
88
93
  def update!(**args)
89
94
  @accelerator_types = args[:accelerator_types] if args.key?(:accelerator_types)
90
95
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
96
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
91
97
  end
92
98
  end
93
99
 
@@ -186,6 +192,11 @@ module Google
186
192
  # @return [Array<Google::Apis::TpuV1alpha1::TensorFlowVersion>]
187
193
  attr_accessor :tensorflow_versions
188
194
 
195
+ # Locations that could not be reached.
196
+ # Corresponds to the JSON property `unreachable`
197
+ # @return [Array<String>]
198
+ attr_accessor :unreachable
199
+
189
200
  def initialize(**args)
190
201
  update!(**args)
191
202
  end
@@ -194,6 +205,7 @@ module Google
194
205
  def update!(**args)
195
206
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
196
207
  @tensorflow_versions = args[:tensorflow_versions] if args.key?(:tensorflow_versions)
208
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
197
209
  end
198
210
  end
199
211
 
@@ -150,6 +150,7 @@ module Google
150
150
  collection :accelerator_types, as: 'acceleratorTypes', class: Google::Apis::TpuV1alpha1::AcceleratorType, decorator: Google::Apis::TpuV1alpha1::AcceleratorType::Representation
151
151
 
152
152
  property :next_page_token, as: 'nextPageToken'
153
+ collection :unreachable, as: 'unreachable'
153
154
  end
154
155
  end
155
156
 
@@ -187,6 +188,7 @@ module Google
187
188
  property :next_page_token, as: 'nextPageToken'
188
189
  collection :tensorflow_versions, as: 'tensorflowVersions', class: Google::Apis::TpuV1alpha1::TensorFlowVersion, decorator: Google::Apis::TpuV1alpha1::TensorFlowVersion::Representation
189
190
 
191
+ collection :unreachable, as: 'unreachable'
190
192
  end
191
193
  end
192
194
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/translate/docs/quickstarts
26
26
  module TranslateV3beta1
27
27
  VERSION = 'V3beta1'
28
- REVISION = '20190713'
28
+ REVISION = '20190822'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -420,6 +420,31 @@ module Google
420
420
  end
421
421
  end
422
422
 
423
+ # The response message for Locations.ListLocations.
424
+ class ListLocationsResponse
425
+ include Google::Apis::Core::Hashable
426
+
427
+ # A list of locations that matches the specified filter in the request.
428
+ # Corresponds to the JSON property `locations`
429
+ # @return [Array<Google::Apis::TranslateV3beta1::Location>]
430
+ attr_accessor :locations
431
+
432
+ # The standard List next-page token.
433
+ # Corresponds to the JSON property `nextPageToken`
434
+ # @return [String]
435
+ attr_accessor :next_page_token
436
+
437
+ def initialize(**args)
438
+ update!(**args)
439
+ end
440
+
441
+ # Update properties of this object
442
+ def update!(**args)
443
+ @locations = args[:locations] if args.key?(:locations)
444
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
445
+ end
446
+ end
447
+
423
448
  # The response message for Operations.ListOperations.
424
449
  class ListOperationsResponse
425
450
  include Google::Apis::Core::Hashable
@@ -445,6 +470,53 @@ module Google
445
470
  end
446
471
  end
447
472
 
473
+ # A resource that represents Google Cloud Platform location.
474
+ class Location
475
+ include Google::Apis::Core::Hashable
476
+
477
+ # The friendly name for this location, typically a nearby city name.
478
+ # For example, "Tokyo".
479
+ # Corresponds to the JSON property `displayName`
480
+ # @return [String]
481
+ attr_accessor :display_name
482
+
483
+ # Cross-service attributes for the location. For example
484
+ # `"cloud.googleapis.com/region": "us-east1"`
485
+ # Corresponds to the JSON property `labels`
486
+ # @return [Hash<String,String>]
487
+ attr_accessor :labels
488
+
489
+ # The canonical id for this location. For example: `"us-east1"`.
490
+ # Corresponds to the JSON property `locationId`
491
+ # @return [String]
492
+ attr_accessor :location_id
493
+
494
+ # Service-specific metadata. For example the available capacity at the given
495
+ # location.
496
+ # Corresponds to the JSON property `metadata`
497
+ # @return [Hash<String,Object>]
498
+ attr_accessor :metadata
499
+
500
+ # Resource name for the location, which may vary between implementations.
501
+ # For example: `"projects/example-project/locations/us-east1"`
502
+ # Corresponds to the JSON property `name`
503
+ # @return [String]
504
+ attr_accessor :name
505
+
506
+ def initialize(**args)
507
+ update!(**args)
508
+ end
509
+
510
+ # Update properties of this object
511
+ def update!(**args)
512
+ @display_name = args[:display_name] if args.key?(:display_name)
513
+ @labels = args[:labels] if args.key?(:labels)
514
+ @location_id = args[:location_id] if args.key?(:location_id)
515
+ @metadata = args[:metadata] if args.key?(:metadata)
516
+ @name = args[:name] if args.key?(:name)
517
+ end
518
+ end
519
+
448
520
  # This resource represents a long-running operation that is the result of a
449
521
  # network API call.
450
522
  class Operation
@@ -106,12 +106,24 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
+ class ListLocationsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
109
115
  class ListOperationsResponse
110
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
117
 
112
118
  include Google::Apis::Core::JsonObjectSupport
113
119
  end
114
120
 
121
+ class Location
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
115
127
  class Operation
116
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
129
 
@@ -295,6 +307,15 @@ module Google
295
307
  end
296
308
  end
297
309
 
310
+ class ListLocationsResponse
311
+ # @private
312
+ class Representation < Google::Apis::Core::JsonRepresentation
313
+ collection :locations, as: 'locations', class: Google::Apis::TranslateV3beta1::Location, decorator: Google::Apis::TranslateV3beta1::Location::Representation
314
+
315
+ property :next_page_token, as: 'nextPageToken'
316
+ end
317
+ end
318
+
298
319
  class ListOperationsResponse
299
320
  # @private
300
321
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -304,6 +325,17 @@ module Google
304
325
  end
305
326
  end
306
327
 
328
+ class Location
329
+ # @private
330
+ class Representation < Google::Apis::Core::JsonRepresentation
331
+ property :display_name, as: 'displayName'
332
+ hash :labels, as: 'labels'
333
+ property :location_id, as: 'locationId'
334
+ hash :metadata, as: 'metadata'
335
+ property :name, as: 'name'
336
+ end
337
+ end
338
+
307
339
  class Operation
308
340
  # @private
309
341
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -49,7 +49,8 @@ module Google
49
49
 
50
50
  # Detects the language of text within a request.
51
51
  # @param [String] parent
52
- # Required. Target project or location to make a call.
52
+ # Required. Project or location to make a call. Must refer to a caller's
53
+ # project.
53
54
  # Format: `projects/`project-id`/locations/`location-id`` or
54
55
  # `projects/`project-id``.
55
56
  # For global calls, use `projects/`project-id`/locations/global` or
@@ -88,7 +89,8 @@ module Google
88
89
 
89
90
  # Returns a list of supported languages for translation.
90
91
  # @param [String] parent
91
- # Required. Target project or location to make a call.
92
+ # Required. Project or location to make a call. Must refer to a caller's
93
+ # project.
92
94
  # Format: `projects/`project-id`` or
93
95
  # `projects/`project-id`/locations/`location-id``.
94
96
  # For global calls, use `projects/`project-id`/locations/global` or
@@ -141,7 +143,8 @@ module Google
141
143
 
142
144
  # Translates input text and returns translated text.
143
145
  # @param [String] parent
144
- # Required. Target project or location to make a call.
146
+ # Required. Project or location to make a call. Must refer to a caller's
147
+ # project.
145
148
  # Format: `projects/`project-id`` or
146
149
  # `projects/`project-id`/locations/`location-id``.
147
150
  # For global calls, use `projects/`project-id`/locations/global` or
@@ -187,7 +190,7 @@ module Google
187
190
  # This call returns immediately and you can
188
191
  # use google.longrunning.Operation.name to poll the status of the call.
189
192
  # @param [String] parent
190
- # Required. Location to make a regional call.
193
+ # Required. Location to make a call. Must refer to a caller's project.
191
194
  # Format: `projects/`project-id`/locations/`location-id``.
192
195
  # The `global` location is not supported for batch translation.
193
196
  # Only AutoML Translation models or glossaries within the same region (have
@@ -225,7 +228,8 @@ module Google
225
228
 
226
229
  # Detects the language of text within a request.
227
230
  # @param [String] parent
228
- # Required. Target project or location to make a call.
231
+ # Required. Project or location to make a call. Must refer to a caller's
232
+ # project.
229
233
  # Format: `projects/`project-id`/locations/`location-id`` or
230
234
  # `projects/`project-id``.
231
235
  # For global calls, use `projects/`project-id`/locations/global` or
@@ -262,9 +266,40 @@ module Google
262
266
  execute_or_queue_command(command, &block)
263
267
  end
264
268
 
269
+ # Gets information about a location.
270
+ # @param [String] name
271
+ # Resource name for the location.
272
+ # @param [String] fields
273
+ # Selector specifying which fields to include in a partial response.
274
+ # @param [String] quota_user
275
+ # Available to use for quota purposes for server-side applications. Can be any
276
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
277
+ # @param [Google::Apis::RequestOptions] options
278
+ # Request-specific options
279
+ #
280
+ # @yield [result, err] Result & error if block supplied
281
+ # @yieldparam result [Google::Apis::TranslateV3beta1::Location] parsed result object
282
+ # @yieldparam err [StandardError] error object if request failed
283
+ #
284
+ # @return [Google::Apis::TranslateV3beta1::Location]
285
+ #
286
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
287
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
288
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
289
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
290
+ command = make_simple_command(:get, 'v3beta1/{+name}', options)
291
+ command.response_representation = Google::Apis::TranslateV3beta1::Location::Representation
292
+ command.response_class = Google::Apis::TranslateV3beta1::Location
293
+ command.params['name'] = name unless name.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
+
265
299
  # Returns a list of supported languages for translation.
266
300
  # @param [String] parent
267
- # Required. Target project or location to make a call.
301
+ # Required. Project or location to make a call. Must refer to a caller's
302
+ # project.
268
303
  # Format: `projects/`project-id`` or
269
304
  # `projects/`project-id`/locations/`location-id``.
270
305
  # For global calls, use `projects/`project-id`/locations/global` or
@@ -315,9 +350,49 @@ module Google
315
350
  execute_or_queue_command(command, &block)
316
351
  end
317
352
 
353
+ # Lists information about the supported locations for this service.
354
+ # @param [String] name
355
+ # The resource that owns the locations collection, if applicable.
356
+ # @param [String] filter
357
+ # The standard list filter.
358
+ # @param [Fixnum] page_size
359
+ # The standard list page size.
360
+ # @param [String] page_token
361
+ # The standard list page token.
362
+ # @param [String] fields
363
+ # Selector specifying which fields to include in a partial response.
364
+ # @param [String] quota_user
365
+ # Available to use for quota purposes for server-side applications. Can be any
366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
367
+ # @param [Google::Apis::RequestOptions] options
368
+ # Request-specific options
369
+ #
370
+ # @yield [result, err] Result & error if block supplied
371
+ # @yieldparam result [Google::Apis::TranslateV3beta1::ListLocationsResponse] parsed result object
372
+ # @yieldparam err [StandardError] error object if request failed
373
+ #
374
+ # @return [Google::Apis::TranslateV3beta1::ListLocationsResponse]
375
+ #
376
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
377
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
378
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
379
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
380
+ command = make_simple_command(:get, 'v3beta1/{+name}/locations', options)
381
+ command.response_representation = Google::Apis::TranslateV3beta1::ListLocationsResponse::Representation
382
+ command.response_class = Google::Apis::TranslateV3beta1::ListLocationsResponse
383
+ command.params['name'] = name unless name.nil?
384
+ command.query['filter'] = filter unless filter.nil?
385
+ command.query['pageSize'] = page_size unless page_size.nil?
386
+ command.query['pageToken'] = page_token unless page_token.nil?
387
+ command.query['fields'] = fields unless fields.nil?
388
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
389
+ execute_or_queue_command(command, &block)
390
+ end
391
+
318
392
  # Translates input text and returns translated text.
319
393
  # @param [String] parent
320
- # Required. Target project or location to make a call.
394
+ # Required. Project or location to make a call. Must refer to a caller's
395
+ # project.
321
396
  # Format: `projects/`project-id`` or
322
397
  # `projects/`project-id`/locations/`location-id``.
323
398
  # For global calls, use `projects/`project-id`/locations/global` or
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1
29
29
  VERSION = 'V1'
30
- REVISION = '20190718'
30
+ REVISION = '20190823'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -94,6 +94,16 @@ module Google
94
94
  class AnnotateFileResponse
95
95
  include Google::Apis::Core::Hashable
96
96
 
97
+ # The `Status` type defines a logical error model that is suitable for
98
+ # different programming environments, including REST APIs and RPC APIs. It is
99
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
100
+ # three pieces of data: error code, error message, and error details.
101
+ # You can find out more about this error model and how to work with it in the
102
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
103
+ # Corresponds to the JSON property `error`
104
+ # @return [Google::Apis::VisionV1::Status]
105
+ attr_accessor :error
106
+
97
107
  # The desired input location and metadata.
98
108
  # Corresponds to the JSON property `inputConfig`
99
109
  # @return [Google::Apis::VisionV1::InputConfig]
@@ -116,6 +126,7 @@ module Google
116
126
 
117
127
  # Update properties of this object
118
128
  def update!(**args)
129
+ @error = args[:error] if args.key?(:error)
119
130
  @input_config = args[:input_config] if args.key?(:input_config)
120
131
  @responses = args[:responses] if args.key?(:responses)
121
132
  @total_pages = args[:total_pages] if args.key?(:total_pages)
@@ -327,6 +338,18 @@ module Google
327
338
  class AsyncBatchAnnotateFilesRequest
328
339
  include Google::Apis::Core::Hashable
329
340
 
341
+ # Optional. Target project and location to make a call.
342
+ # Format: `projects/`project-id`/locations/`location-id``.
343
+ # If no parent is specified, a region will be chosen automatically.
344
+ # Supported location-ids:
345
+ # `us`: USA country only,
346
+ # `asia`: East asia areas, like Japan, Taiwan,
347
+ # `eu`: The European Union.
348
+ # Example: `projects/project-A/locations/eu`.
349
+ # Corresponds to the JSON property `parent`
350
+ # @return [String]
351
+ attr_accessor :parent
352
+
330
353
  # Individual async file annotation requests for this batch.
331
354
  # Corresponds to the JSON property `requests`
332
355
  # @return [Array<Google::Apis::VisionV1::AsyncAnnotateFileRequest>]
@@ -338,6 +361,7 @@ module Google
338
361
 
339
362
  # Update properties of this object
340
363
  def update!(**args)
364
+ @parent = args[:parent] if args.key?(:parent)
341
365
  @requests = args[:requests] if args.key?(:requests)
342
366
  end
343
367
  end
@@ -371,6 +395,18 @@ module Google
371
395
  # @return [Google::Apis::VisionV1::OutputConfig]
372
396
  attr_accessor :output_config
373
397
 
398
+ # Optional. Target project and location to make a call.
399
+ # Format: `projects/`project-id`/locations/`location-id``.
400
+ # If no parent is specified, a region will be chosen automatically.
401
+ # Supported location-ids:
402
+ # `us`: USA country only,
403
+ # `asia`: East asia areas, like Japan, Taiwan,
404
+ # `eu`: The European Union.
405
+ # Example: `projects/project-A/locations/eu`.
406
+ # Corresponds to the JSON property `parent`
407
+ # @return [String]
408
+ attr_accessor :parent
409
+
374
410
  # Individual image annotation requests for this batch.
375
411
  # Corresponds to the JSON property `requests`
376
412
  # @return [Array<Google::Apis::VisionV1::AnnotateImageRequest>]
@@ -383,6 +419,7 @@ module Google
383
419
  # Update properties of this object
384
420
  def update!(**args)
385
421
  @output_config = args[:output_config] if args.key?(:output_config)
422
+ @parent = args[:parent] if args.key?(:parent)
386
423
  @requests = args[:requests] if args.key?(:requests)
387
424
  end
388
425
  end
@@ -410,6 +447,18 @@ module Google
410
447
  class BatchAnnotateFilesRequest
411
448
  include Google::Apis::Core::Hashable
412
449
 
450
+ # Optional. Target project and location to make a call.
451
+ # Format: `projects/`project-id`/locations/`location-id``.
452
+ # If no parent is specified, a region will be chosen automatically.
453
+ # Supported location-ids:
454
+ # `us`: USA country only,
455
+ # `asia`: East asia areas, like Japan, Taiwan,
456
+ # `eu`: The European Union.
457
+ # Example: `projects/project-A/locations/eu`.
458
+ # Corresponds to the JSON property `parent`
459
+ # @return [String]
460
+ attr_accessor :parent
461
+
413
462
  # The list of file annotation requests. Right now we support only one
414
463
  # AnnotateFileRequest in BatchAnnotateFilesRequest.
415
464
  # Corresponds to the JSON property `requests`
@@ -422,6 +471,7 @@ module Google
422
471
 
423
472
  # Update properties of this object
424
473
  def update!(**args)
474
+ @parent = args[:parent] if args.key?(:parent)
425
475
  @requests = args[:requests] if args.key?(:requests)
426
476
  end
427
477
  end
@@ -450,6 +500,18 @@ module Google
450
500
  class BatchAnnotateImagesRequest
451
501
  include Google::Apis::Core::Hashable
452
502
 
503
+ # Optional. Target project and location to make a call.
504
+ # Format: `projects/`project-id`/locations/`location-id``.
505
+ # If no parent is specified, a region will be chosen automatically.
506
+ # Supported location-ids:
507
+ # `us`: USA country only,
508
+ # `asia`: East asia areas, like Japan, Taiwan,
509
+ # `eu`: The European Union.
510
+ # Example: `projects/project-A/locations/eu`.
511
+ # Corresponds to the JSON property `parent`
512
+ # @return [String]
513
+ attr_accessor :parent
514
+
453
515
  # Individual image annotation requests for this batch.
454
516
  # Corresponds to the JSON property `requests`
455
517
  # @return [Array<Google::Apis::VisionV1::AnnotateImageRequest>]
@@ -461,6 +523,7 @@ module Google
461
523
 
462
524
  # Update properties of this object
463
525
  def update!(**args)
526
+ @parent = args[:parent] if args.key?(:parent)
464
527
  @requests = args[:requests] if args.key?(:requests)
465
528
  end
466
529
  end
@@ -1335,6 +1398,16 @@ module Google
1335
1398
  class GoogleCloudVisionV1p1beta1AnnotateFileResponse
1336
1399
  include Google::Apis::Core::Hashable
1337
1400
 
1401
+ # The `Status` type defines a logical error model that is suitable for
1402
+ # different programming environments, including REST APIs and RPC APIs. It is
1403
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1404
+ # three pieces of data: error code, error message, and error details.
1405
+ # You can find out more about this error model and how to work with it in the
1406
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
1407
+ # Corresponds to the JSON property `error`
1408
+ # @return [Google::Apis::VisionV1::Status]
1409
+ attr_accessor :error
1410
+
1338
1411
  # The desired input location and metadata.
1339
1412
  # Corresponds to the JSON property `inputConfig`
1340
1413
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1InputConfig]
@@ -1357,6 +1430,7 @@ module Google
1357
1430
 
1358
1431
  # Update properties of this object
1359
1432
  def update!(**args)
1433
+ @error = args[:error] if args.key?(:error)
1360
1434
  @input_config = args[:input_config] if args.key?(:input_config)
1361
1435
  @responses = args[:responses] if args.key?(:responses)
1362
1436
  @total_pages = args[:total_pages] if args.key?(:total_pages)
@@ -2552,6 +2626,11 @@ module Google
2552
2626
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly]
2553
2627
  attr_accessor :bounding_poly
2554
2628
 
2629
+ # List of generic predictions for the object in the bounding box.
2630
+ # Corresponds to the JSON property `objectAnnotations`
2631
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation>]
2632
+ attr_accessor :object_annotations
2633
+
2555
2634
  # List of results, one for each product match.
2556
2635
  # Corresponds to the JSON property `results`
2557
2636
  # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductSearchResultsResult>]
@@ -2564,10 +2643,50 @@ module Google
2564
2643
  # Update properties of this object
2565
2644
  def update!(**args)
2566
2645
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
2646
+ @object_annotations = args[:object_annotations] if args.key?(:object_annotations)
2567
2647
  @results = args[:results] if args.key?(:results)
2568
2648
  end
2569
2649
  end
2570
2650
 
2651
+ # Prediction for what the object in the bounding box is.
2652
+ class GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation
2653
+ include Google::Apis::Core::Hashable
2654
+
2655
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
2656
+ # information, see
2657
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2658
+ # Corresponds to the JSON property `languageCode`
2659
+ # @return [String]
2660
+ attr_accessor :language_code
2661
+
2662
+ # Object ID that should align with EntityAnnotation mid.
2663
+ # Corresponds to the JSON property `mid`
2664
+ # @return [String]
2665
+ attr_accessor :mid
2666
+
2667
+ # Object name, expressed in its `language_code` language.
2668
+ # Corresponds to the JSON property `name`
2669
+ # @return [String]
2670
+ attr_accessor :name
2671
+
2672
+ # Score of the result. Range [0, 1].
2673
+ # Corresponds to the JSON property `score`
2674
+ # @return [Float]
2675
+ attr_accessor :score
2676
+
2677
+ def initialize(**args)
2678
+ update!(**args)
2679
+ end
2680
+
2681
+ # Update properties of this object
2682
+ def update!(**args)
2683
+ @language_code = args[:language_code] if args.key?(:language_code)
2684
+ @mid = args[:mid] if args.key?(:mid)
2685
+ @name = args[:name] if args.key?(:name)
2686
+ @score = args[:score] if args.key?(:score)
2687
+ end
2688
+ end
2689
+
2571
2690
  # Information about a product.
2572
2691
  class GoogleCloudVisionV1p1beta1ProductSearchResultsResult
2573
2692
  include Google::Apis::Core::Hashable
@@ -3083,6 +3202,16 @@ module Google
3083
3202
  class GoogleCloudVisionV1p2beta1AnnotateFileResponse
3084
3203
  include Google::Apis::Core::Hashable
3085
3204
 
3205
+ # The `Status` type defines a logical error model that is suitable for
3206
+ # different programming environments, including REST APIs and RPC APIs. It is
3207
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3208
+ # three pieces of data: error code, error message, and error details.
3209
+ # You can find out more about this error model and how to work with it in the
3210
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
3211
+ # Corresponds to the JSON property `error`
3212
+ # @return [Google::Apis::VisionV1::Status]
3213
+ attr_accessor :error
3214
+
3086
3215
  # The desired input location and metadata.
3087
3216
  # Corresponds to the JSON property `inputConfig`
3088
3217
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig]
@@ -3105,6 +3234,7 @@ module Google
3105
3234
 
3106
3235
  # Update properties of this object
3107
3236
  def update!(**args)
3237
+ @error = args[:error] if args.key?(:error)
3108
3238
  @input_config = args[:input_config] if args.key?(:input_config)
3109
3239
  @responses = args[:responses] if args.key?(:responses)
3110
3240
  @total_pages = args[:total_pages] if args.key?(:total_pages)
@@ -4300,6 +4430,11 @@ module Google
4300
4430
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
4301
4431
  attr_accessor :bounding_poly
4302
4432
 
4433
+ # List of generic predictions for the object in the bounding box.
4434
+ # Corresponds to the JSON property `objectAnnotations`
4435
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation>]
4436
+ attr_accessor :object_annotations
4437
+
4303
4438
  # List of results, one for each product match.
4304
4439
  # Corresponds to the JSON property `results`
4305
4440
  # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductSearchResultsResult>]
@@ -4312,10 +4447,50 @@ module Google
4312
4447
  # Update properties of this object
4313
4448
  def update!(**args)
4314
4449
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
4450
+ @object_annotations = args[:object_annotations] if args.key?(:object_annotations)
4315
4451
  @results = args[:results] if args.key?(:results)
4316
4452
  end
4317
4453
  end
4318
4454
 
4455
+ # Prediction for what the object in the bounding box is.
4456
+ class GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation
4457
+ include Google::Apis::Core::Hashable
4458
+
4459
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
4460
+ # information, see
4461
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
4462
+ # Corresponds to the JSON property `languageCode`
4463
+ # @return [String]
4464
+ attr_accessor :language_code
4465
+
4466
+ # Object ID that should align with EntityAnnotation mid.
4467
+ # Corresponds to the JSON property `mid`
4468
+ # @return [String]
4469
+ attr_accessor :mid
4470
+
4471
+ # Object name, expressed in its `language_code` language.
4472
+ # Corresponds to the JSON property `name`
4473
+ # @return [String]
4474
+ attr_accessor :name
4475
+
4476
+ # Score of the result. Range [0, 1].
4477
+ # Corresponds to the JSON property `score`
4478
+ # @return [Float]
4479
+ attr_accessor :score
4480
+
4481
+ def initialize(**args)
4482
+ update!(**args)
4483
+ end
4484
+
4485
+ # Update properties of this object
4486
+ def update!(**args)
4487
+ @language_code = args[:language_code] if args.key?(:language_code)
4488
+ @mid = args[:mid] if args.key?(:mid)
4489
+ @name = args[:name] if args.key?(:name)
4490
+ @score = args[:score] if args.key?(:score)
4491
+ end
4492
+ end
4493
+
4319
4494
  # Information about a product.
4320
4495
  class GoogleCloudVisionV1p2beta1ProductSearchResultsResult
4321
4496
  include Google::Apis::Core::Hashable
@@ -4831,6 +5006,16 @@ module Google
4831
5006
  class GoogleCloudVisionV1p3beta1AnnotateFileResponse
4832
5007
  include Google::Apis::Core::Hashable
4833
5008
 
5009
+ # The `Status` type defines a logical error model that is suitable for
5010
+ # different programming environments, including REST APIs and RPC APIs. It is
5011
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
5012
+ # three pieces of data: error code, error message, and error details.
5013
+ # You can find out more about this error model and how to work with it in the
5014
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
5015
+ # Corresponds to the JSON property `error`
5016
+ # @return [Google::Apis::VisionV1::Status]
5017
+ attr_accessor :error
5018
+
4834
5019
  # The desired input location and metadata.
4835
5020
  # Corresponds to the JSON property `inputConfig`
4836
5021
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1InputConfig]
@@ -4853,6 +5038,7 @@ module Google
4853
5038
 
4854
5039
  # Update properties of this object
4855
5040
  def update!(**args)
5041
+ @error = args[:error] if args.key?(:error)
4856
5042
  @input_config = args[:input_config] if args.key?(:input_config)
4857
5043
  @responses = args[:responses] if args.key?(:responses)
4858
5044
  @total_pages = args[:total_pages] if args.key?(:total_pages)
@@ -6114,6 +6300,11 @@ module Google
6114
6300
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly]
6115
6301
  attr_accessor :bounding_poly
6116
6302
 
6303
+ # List of generic predictions for the object in the bounding box.
6304
+ # Corresponds to the JSON property `objectAnnotations`
6305
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation>]
6306
+ attr_accessor :object_annotations
6307
+
6117
6308
  # List of results, one for each product match.
6118
6309
  # Corresponds to the JSON property `results`
6119
6310
  # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult>]
@@ -6126,10 +6317,50 @@ module Google
6126
6317
  # Update properties of this object
6127
6318
  def update!(**args)
6128
6319
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
6320
+ @object_annotations = args[:object_annotations] if args.key?(:object_annotations)
6129
6321
  @results = args[:results] if args.key?(:results)
6130
6322
  end
6131
6323
  end
6132
6324
 
6325
+ # Prediction for what the object in the bounding box is.
6326
+ class GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation
6327
+ include Google::Apis::Core::Hashable
6328
+
6329
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
6330
+ # information, see
6331
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
6332
+ # Corresponds to the JSON property `languageCode`
6333
+ # @return [String]
6334
+ attr_accessor :language_code
6335
+
6336
+ # Object ID that should align with EntityAnnotation mid.
6337
+ # Corresponds to the JSON property `mid`
6338
+ # @return [String]
6339
+ attr_accessor :mid
6340
+
6341
+ # Object name, expressed in its `language_code` language.
6342
+ # Corresponds to the JSON property `name`
6343
+ # @return [String]
6344
+ attr_accessor :name
6345
+
6346
+ # Score of the result. Range [0, 1].
6347
+ # Corresponds to the JSON property `score`
6348
+ # @return [Float]
6349
+ attr_accessor :score
6350
+
6351
+ def initialize(**args)
6352
+ update!(**args)
6353
+ end
6354
+
6355
+ # Update properties of this object
6356
+ def update!(**args)
6357
+ @language_code = args[:language_code] if args.key?(:language_code)
6358
+ @mid = args[:mid] if args.key?(:mid)
6359
+ @name = args[:name] if args.key?(:name)
6360
+ @score = args[:score] if args.key?(:score)
6361
+ end
6362
+ end
6363
+
6133
6364
  # Information about a product.
6134
6365
  class GoogleCloudVisionV1p3beta1ProductSearchResultsResult
6135
6366
  include Google::Apis::Core::Hashable
@@ -6689,6 +6920,16 @@ module Google
6689
6920
  class GoogleCloudVisionV1p4beta1AnnotateFileResponse
6690
6921
  include Google::Apis::Core::Hashable
6691
6922
 
6923
+ # The `Status` type defines a logical error model that is suitable for
6924
+ # different programming environments, including REST APIs and RPC APIs. It is
6925
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
6926
+ # three pieces of data: error code, error message, and error details.
6927
+ # You can find out more about this error model and how to work with it in the
6928
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
6929
+ # Corresponds to the JSON property `error`
6930
+ # @return [Google::Apis::VisionV1::Status]
6931
+ attr_accessor :error
6932
+
6692
6933
  # The desired input location and metadata.
6693
6934
  # Corresponds to the JSON property `inputConfig`
6694
6935
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1InputConfig]
@@ -6711,6 +6952,7 @@ module Google
6711
6952
 
6712
6953
  # Update properties of this object
6713
6954
  def update!(**args)
6955
+ @error = args[:error] if args.key?(:error)
6714
6956
  @input_config = args[:input_config] if args.key?(:input_config)
6715
6957
  @responses = args[:responses] if args.key?(:responses)
6716
6958
  @total_pages = args[:total_pages] if args.key?(:total_pages)
@@ -7550,12 +7792,21 @@ module Google
7550
7792
  class GoogleCloudVisionV1p4beta1ImageQuality
7551
7793
  include Google::Apis::Core::Hashable
7552
7794
 
7795
+ # A score representing the aesthetic/technical quality of the image. The
7796
+ # score is in range [0, 1]. Higher value corresponds to more professional
7797
+ # looking photos. 0 means the image looks very bad, 1 means the image with
7798
+ # very high quality.
7799
+ # Corresponds to the JSON property `qualityScore`
7800
+ # @return [Float]
7801
+ attr_accessor :quality_score
7802
+
7553
7803
  def initialize(**args)
7554
7804
  update!(**args)
7555
7805
  end
7556
7806
 
7557
7807
  # Update properties of this object
7558
7808
  def update!(**args)
7809
+ @quality_score = args[:quality_score] if args.key?(:quality_score)
7559
7810
  end
7560
7811
  end
7561
7812
 
@@ -8036,6 +8287,11 @@ module Google
8036
8287
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
8037
8288
  attr_accessor :bounding_poly
8038
8289
 
8290
+ # List of generic predictions for the object in the bounding box.
8291
+ # Corresponds to the JSON property `objectAnnotations`
8292
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation>]
8293
+ attr_accessor :object_annotations
8294
+
8039
8295
  # List of results, one for each product match.
8040
8296
  # Corresponds to the JSON property `results`
8041
8297
  # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult>]
@@ -8048,10 +8304,50 @@ module Google
8048
8304
  # Update properties of this object
8049
8305
  def update!(**args)
8050
8306
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
8307
+ @object_annotations = args[:object_annotations] if args.key?(:object_annotations)
8051
8308
  @results = args[:results] if args.key?(:results)
8052
8309
  end
8053
8310
  end
8054
8311
 
8312
+ # Prediction for what the object in the bounding box is.
8313
+ class GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation
8314
+ include Google::Apis::Core::Hashable
8315
+
8316
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
8317
+ # information, see
8318
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
8319
+ # Corresponds to the JSON property `languageCode`
8320
+ # @return [String]
8321
+ attr_accessor :language_code
8322
+
8323
+ # Object ID that should align with EntityAnnotation mid.
8324
+ # Corresponds to the JSON property `mid`
8325
+ # @return [String]
8326
+ attr_accessor :mid
8327
+
8328
+ # Object name, expressed in its `language_code` language.
8329
+ # Corresponds to the JSON property `name`
8330
+ # @return [String]
8331
+ attr_accessor :name
8332
+
8333
+ # Score of the result. Range [0, 1].
8334
+ # Corresponds to the JSON property `score`
8335
+ # @return [Float]
8336
+ attr_accessor :score
8337
+
8338
+ def initialize(**args)
8339
+ update!(**args)
8340
+ end
8341
+
8342
+ # Update properties of this object
8343
+ def update!(**args)
8344
+ @language_code = args[:language_code] if args.key?(:language_code)
8345
+ @mid = args[:mid] if args.key?(:mid)
8346
+ @name = args[:name] if args.key?(:name)
8347
+ @score = args[:score] if args.key?(:score)
8348
+ end
8349
+ end
8350
+
8055
8351
  # Information about a product.
8056
8352
  class GoogleCloudVisionV1p4beta1ProductSearchResultsResult
8057
8353
  include Google::Apis::Core::Hashable
@@ -8205,11 +8501,29 @@ module Google
8205
8501
  # @return [String]
8206
8502
  attr_accessor :adult
8207
8503
 
8504
+ # Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means
8505
+ # very confident.
8506
+ # Corresponds to the JSON property `adultConfidence`
8507
+ # @return [Float]
8508
+ attr_accessor :adult_confidence
8509
+
8208
8510
  # Likelihood that this is a medical image.
8209
8511
  # Corresponds to the JSON property `medical`
8210
8512
  # @return [String]
8211
8513
  attr_accessor :medical
8212
8514
 
8515
+ # Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means
8516
+ # very confident.
8517
+ # Corresponds to the JSON property `medicalConfidence`
8518
+ # @return [Float]
8519
+ attr_accessor :medical_confidence
8520
+
8521
+ # Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very
8522
+ # confident.
8523
+ # Corresponds to the JSON property `nsfwConfidence`
8524
+ # @return [Float]
8525
+ attr_accessor :nsfw_confidence
8526
+
8213
8527
  # Likelihood that the request image contains racy content. Racy content may
8214
8528
  # include (but is not limited to) skimpy or sheer clothing, strategically
8215
8529
  # covered nudity, lewd or provocative poses, or close-ups of sensitive
@@ -8218,6 +8532,12 @@ module Google
8218
8532
  # @return [String]
8219
8533
  attr_accessor :racy
8220
8534
 
8535
+ # Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very
8536
+ # confident.
8537
+ # Corresponds to the JSON property `racyConfidence`
8538
+ # @return [Float]
8539
+ attr_accessor :racy_confidence
8540
+
8221
8541
  # Spoof likelihood. The likelihood that an modification
8222
8542
  # was made to the image's canonical version to make it appear
8223
8543
  # funny or offensive.
@@ -8225,11 +8545,23 @@ module Google
8225
8545
  # @return [String]
8226
8546
  attr_accessor :spoof
8227
8547
 
8548
+ # Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means
8549
+ # very confident.
8550
+ # Corresponds to the JSON property `spoofConfidence`
8551
+ # @return [Float]
8552
+ attr_accessor :spoof_confidence
8553
+
8228
8554
  # Likelihood that this image contains violent content.
8229
8555
  # Corresponds to the JSON property `violence`
8230
8556
  # @return [String]
8231
8557
  attr_accessor :violence
8232
8558
 
8559
+ # Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means
8560
+ # very confident.
8561
+ # Corresponds to the JSON property `violenceConfidence`
8562
+ # @return [Float]
8563
+ attr_accessor :violence_confidence
8564
+
8233
8565
  def initialize(**args)
8234
8566
  update!(**args)
8235
8567
  end
@@ -8237,10 +8569,16 @@ module Google
8237
8569
  # Update properties of this object
8238
8570
  def update!(**args)
8239
8571
  @adult = args[:adult] if args.key?(:adult)
8572
+ @adult_confidence = args[:adult_confidence] if args.key?(:adult_confidence)
8240
8573
  @medical = args[:medical] if args.key?(:medical)
8574
+ @medical_confidence = args[:medical_confidence] if args.key?(:medical_confidence)
8575
+ @nsfw_confidence = args[:nsfw_confidence] if args.key?(:nsfw_confidence)
8241
8576
  @racy = args[:racy] if args.key?(:racy)
8577
+ @racy_confidence = args[:racy_confidence] if args.key?(:racy_confidence)
8242
8578
  @spoof = args[:spoof] if args.key?(:spoof)
8579
+ @spoof_confidence = args[:spoof_confidence] if args.key?(:spoof_confidence)
8243
8580
  @violence = args[:violence] if args.key?(:violence)
8581
+ @violence_confidence = args[:violence_confidence] if args.key?(:violence_confidence)
8244
8582
  end
8245
8583
  end
8246
8584
 
@@ -8643,6 +8981,16 @@ module Google
8643
8981
  class GoogleCloudVisionV1p5beta1AnnotateFileResponse
8644
8982
  include Google::Apis::Core::Hashable
8645
8983
 
8984
+ # The `Status` type defines a logical error model that is suitable for
8985
+ # different programming environments, including REST APIs and RPC APIs. It is
8986
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
8987
+ # three pieces of data: error code, error message, and error details.
8988
+ # You can find out more about this error model and how to work with it in the
8989
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
8990
+ # Corresponds to the JSON property `error`
8991
+ # @return [Google::Apis::VisionV1::Status]
8992
+ attr_accessor :error
8993
+
8646
8994
  # The desired input location and metadata.
8647
8995
  # Corresponds to the JSON property `inputConfig`
8648
8996
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1InputConfig]
@@ -8665,6 +9013,7 @@ module Google
8665
9013
 
8666
9014
  # Update properties of this object
8667
9015
  def update!(**args)
9016
+ @error = args[:error] if args.key?(:error)
8668
9017
  @input_config = args[:input_config] if args.key?(:input_config)
8669
9018
  @responses = args[:responses] if args.key?(:responses)
8670
9019
  @total_pages = args[:total_pages] if args.key?(:total_pages)
@@ -10052,6 +10401,11 @@ module Google
10052
10401
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1BoundingPoly]
10053
10402
  attr_accessor :bounding_poly
10054
10403
 
10404
+ # List of generic predictions for the object in the bounding box.
10405
+ # Corresponds to the JSON property `objectAnnotations`
10406
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation>]
10407
+ attr_accessor :object_annotations
10408
+
10055
10409
  # List of results, one for each product match.
10056
10410
  # Corresponds to the JSON property `results`
10057
10411
  # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult>]
@@ -10064,10 +10418,50 @@ module Google
10064
10418
  # Update properties of this object
10065
10419
  def update!(**args)
10066
10420
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
10421
+ @object_annotations = args[:object_annotations] if args.key?(:object_annotations)
10067
10422
  @results = args[:results] if args.key?(:results)
10068
10423
  end
10069
10424
  end
10070
10425
 
10426
+ # Prediction for what the object in the bounding box is.
10427
+ class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation
10428
+ include Google::Apis::Core::Hashable
10429
+
10430
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
10431
+ # information, see
10432
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
10433
+ # Corresponds to the JSON property `languageCode`
10434
+ # @return [String]
10435
+ attr_accessor :language_code
10436
+
10437
+ # Object ID that should align with EntityAnnotation mid.
10438
+ # Corresponds to the JSON property `mid`
10439
+ # @return [String]
10440
+ attr_accessor :mid
10441
+
10442
+ # Object name, expressed in its `language_code` language.
10443
+ # Corresponds to the JSON property `name`
10444
+ # @return [String]
10445
+ attr_accessor :name
10446
+
10447
+ # Score of the result. Range [0, 1].
10448
+ # Corresponds to the JSON property `score`
10449
+ # @return [Float]
10450
+ attr_accessor :score
10451
+
10452
+ def initialize(**args)
10453
+ update!(**args)
10454
+ end
10455
+
10456
+ # Update properties of this object
10457
+ def update!(**args)
10458
+ @language_code = args[:language_code] if args.key?(:language_code)
10459
+ @mid = args[:mid] if args.key?(:mid)
10460
+ @name = args[:name] if args.key?(:name)
10461
+ @score = args[:score] if args.key?(:score)
10462
+ end
10463
+ end
10464
+
10071
10465
  # Information about a product.
10072
10466
  class GoogleCloudVisionV1p5beta1ProductSearchResultsResult
10073
10467
  include Google::Apis::Core::Hashable
@@ -10189,11 +10583,29 @@ module Google
10189
10583
  # @return [String]
10190
10584
  attr_accessor :adult
10191
10585
 
10586
+ # Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means
10587
+ # very confident.
10588
+ # Corresponds to the JSON property `adultConfidence`
10589
+ # @return [Float]
10590
+ attr_accessor :adult_confidence
10591
+
10192
10592
  # Likelihood that this is a medical image.
10193
10593
  # Corresponds to the JSON property `medical`
10194
10594
  # @return [String]
10195
10595
  attr_accessor :medical
10196
10596
 
10597
+ # Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means
10598
+ # very confident.
10599
+ # Corresponds to the JSON property `medicalConfidence`
10600
+ # @return [Float]
10601
+ attr_accessor :medical_confidence
10602
+
10603
+ # Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very
10604
+ # confident.
10605
+ # Corresponds to the JSON property `nsfwConfidence`
10606
+ # @return [Float]
10607
+ attr_accessor :nsfw_confidence
10608
+
10197
10609
  # Likelihood that the request image contains racy content. Racy content may
10198
10610
  # include (but is not limited to) skimpy or sheer clothing, strategically
10199
10611
  # covered nudity, lewd or provocative poses, or close-ups of sensitive
@@ -10202,6 +10614,12 @@ module Google
10202
10614
  # @return [String]
10203
10615
  attr_accessor :racy
10204
10616
 
10617
+ # Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very
10618
+ # confident.
10619
+ # Corresponds to the JSON property `racyConfidence`
10620
+ # @return [Float]
10621
+ attr_accessor :racy_confidence
10622
+
10205
10623
  # Spoof likelihood. The likelihood that an modification
10206
10624
  # was made to the image's canonical version to make it appear
10207
10625
  # funny or offensive.
@@ -10209,11 +10627,23 @@ module Google
10209
10627
  # @return [String]
10210
10628
  attr_accessor :spoof
10211
10629
 
10630
+ # Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means
10631
+ # very confident.
10632
+ # Corresponds to the JSON property `spoofConfidence`
10633
+ # @return [Float]
10634
+ attr_accessor :spoof_confidence
10635
+
10212
10636
  # Likelihood that this image contains violent content.
10213
10637
  # Corresponds to the JSON property `violence`
10214
10638
  # @return [String]
10215
10639
  attr_accessor :violence
10216
10640
 
10641
+ # Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means
10642
+ # very confident.
10643
+ # Corresponds to the JSON property `violenceConfidence`
10644
+ # @return [Float]
10645
+ attr_accessor :violence_confidence
10646
+
10217
10647
  def initialize(**args)
10218
10648
  update!(**args)
10219
10649
  end
@@ -10221,10 +10651,16 @@ module Google
10221
10651
  # Update properties of this object
10222
10652
  def update!(**args)
10223
10653
  @adult = args[:adult] if args.key?(:adult)
10654
+ @adult_confidence = args[:adult_confidence] if args.key?(:adult_confidence)
10224
10655
  @medical = args[:medical] if args.key?(:medical)
10656
+ @medical_confidence = args[:medical_confidence] if args.key?(:medical_confidence)
10657
+ @nsfw_confidence = args[:nsfw_confidence] if args.key?(:nsfw_confidence)
10225
10658
  @racy = args[:racy] if args.key?(:racy)
10659
+ @racy_confidence = args[:racy_confidence] if args.key?(:racy_confidence)
10226
10660
  @spoof = args[:spoof] if args.key?(:spoof)
10661
+ @spoof_confidence = args[:spoof_confidence] if args.key?(:spoof_confidence)
10227
10662
  @violence = args[:violence] if args.key?(:violence)
10663
+ @violence_confidence = args[:violence_confidence] if args.key?(:violence_confidence)
10228
10664
  end
10229
10665
  end
10230
10666
 
@@ -10721,6 +11157,11 @@ module Google
10721
11157
  # @return [Google::Apis::VisionV1::BoundingPoly]
10722
11158
  attr_accessor :bounding_poly
10723
11159
 
11160
+ # List of generic predictions for the object in the bounding box.
11161
+ # Corresponds to the JSON property `objectAnnotations`
11162
+ # @return [Array<Google::Apis::VisionV1::ObjectAnnotation>]
11163
+ attr_accessor :object_annotations
11164
+
10724
11165
  # List of results, one for each product match.
10725
11166
  # Corresponds to the JSON property `results`
10726
11167
  # @return [Array<Google::Apis::VisionV1::Result>]
@@ -10733,6 +11174,7 @@ module Google
10733
11174
  # Update properties of this object
10734
11175
  def update!(**args)
10735
11176
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
11177
+ @object_annotations = args[:object_annotations] if args.key?(:object_annotations)
10736
11178
  @results = args[:results] if args.key?(:results)
10737
11179
  end
10738
11180
  end
@@ -11422,6 +11864,45 @@ module Google
11422
11864
  end
11423
11865
  end
11424
11866
 
11867
+ # Prediction for what the object in the bounding box is.
11868
+ class ObjectAnnotation
11869
+ include Google::Apis::Core::Hashable
11870
+
11871
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
11872
+ # information, see
11873
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
11874
+ # Corresponds to the JSON property `languageCode`
11875
+ # @return [String]
11876
+ attr_accessor :language_code
11877
+
11878
+ # Object ID that should align with EntityAnnotation mid.
11879
+ # Corresponds to the JSON property `mid`
11880
+ # @return [String]
11881
+ attr_accessor :mid
11882
+
11883
+ # Object name, expressed in its `language_code` language.
11884
+ # Corresponds to the JSON property `name`
11885
+ # @return [String]
11886
+ attr_accessor :name
11887
+
11888
+ # Score of the result. Range [0, 1].
11889
+ # Corresponds to the JSON property `score`
11890
+ # @return [Float]
11891
+ attr_accessor :score
11892
+
11893
+ def initialize(**args)
11894
+ update!(**args)
11895
+ end
11896
+
11897
+ # Update properties of this object
11898
+ def update!(**args)
11899
+ @language_code = args[:language_code] if args.key?(:language_code)
11900
+ @mid = args[:mid] if args.key?(:mid)
11901
+ @name = args[:name] if args.key?(:name)
11902
+ @score = args[:score] if args.key?(:score)
11903
+ end
11904
+ end
11905
+
11425
11906
  # This resource represents a long-running operation that is the result of a
11426
11907
  # network API call.
11427
11908
  class Operation
@@ -11865,6 +12346,27 @@ module Google
11865
12346
  end
11866
12347
  end
11867
12348
 
12349
+ # Config to control which ProductSet contains the Products to be deleted.
12350
+ class ProductSetPurgeConfig
12351
+ include Google::Apis::Core::Hashable
12352
+
12353
+ # The ProductSet that contains the Products to delete. If a Product is a
12354
+ # member of product_set_id in addition to other ProductSets, the Product will
12355
+ # still be deleted.
12356
+ # Corresponds to the JSON property `productSetId`
12357
+ # @return [String]
12358
+ attr_accessor :product_set_id
12359
+
12360
+ def initialize(**args)
12361
+ update!(**args)
12362
+ end
12363
+
12364
+ # Update properties of this object
12365
+ def update!(**args)
12366
+ @product_set_id = args[:product_set_id] if args.key?(:product_set_id)
12367
+ end
12368
+ end
12369
+
11868
12370
  # A `Property` consists of a user-supplied name/value pair.
11869
12371
  class Property
11870
12372
  include Google::Apis::Core::Hashable
@@ -11896,6 +12398,41 @@ module Google
11896
12398
  end
11897
12399
  end
11898
12400
 
12401
+ # Request message for the `PurgeProducts` method.
12402
+ class PurgeProductsRequest
12403
+ include Google::Apis::Core::Hashable
12404
+
12405
+ # If delete_orphan_products is true, all Products that are not in any
12406
+ # ProductSet will be deleted.
12407
+ # Corresponds to the JSON property `deleteOrphanProducts`
12408
+ # @return [Boolean]
12409
+ attr_accessor :delete_orphan_products
12410
+ alias_method :delete_orphan_products?, :delete_orphan_products
12411
+
12412
+ # The default value is false. Override this value to true to actually perform
12413
+ # the purge.
12414
+ # Corresponds to the JSON property `force`
12415
+ # @return [Boolean]
12416
+ attr_accessor :force
12417
+ alias_method :force?, :force
12418
+
12419
+ # Config to control which ProductSet contains the Products to be deleted.
12420
+ # Corresponds to the JSON property `productSetPurgeConfig`
12421
+ # @return [Google::Apis::VisionV1::ProductSetPurgeConfig]
12422
+ attr_accessor :product_set_purge_config
12423
+
12424
+ def initialize(**args)
12425
+ update!(**args)
12426
+ end
12427
+
12428
+ # Update properties of this object
12429
+ def update!(**args)
12430
+ @delete_orphan_products = args[:delete_orphan_products] if args.key?(:delete_orphan_products)
12431
+ @force = args[:force] if args.key?(:force)
12432
+ @product_set_purge_config = args[:product_set_purge_config] if args.key?(:product_set_purge_config)
12433
+ end
12434
+ end
12435
+
11899
12436
  # A `ReferenceImage` represents a product image and its associated metadata,
11900
12437
  # such as bounding boxes.
11901
12438
  class ReferenceImage
@@ -12007,11 +12544,29 @@ module Google
12007
12544
  # @return [String]
12008
12545
  attr_accessor :adult
12009
12546
 
12547
+ # Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means
12548
+ # very confident.
12549
+ # Corresponds to the JSON property `adultConfidence`
12550
+ # @return [Float]
12551
+ attr_accessor :adult_confidence
12552
+
12010
12553
  # Likelihood that this is a medical image.
12011
12554
  # Corresponds to the JSON property `medical`
12012
12555
  # @return [String]
12013
12556
  attr_accessor :medical
12014
12557
 
12558
+ # Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means
12559
+ # very confident.
12560
+ # Corresponds to the JSON property `medicalConfidence`
12561
+ # @return [Float]
12562
+ attr_accessor :medical_confidence
12563
+
12564
+ # Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very
12565
+ # confident.
12566
+ # Corresponds to the JSON property `nsfwConfidence`
12567
+ # @return [Float]
12568
+ attr_accessor :nsfw_confidence
12569
+
12015
12570
  # Likelihood that the request image contains racy content. Racy content may
12016
12571
  # include (but is not limited to) skimpy or sheer clothing, strategically
12017
12572
  # covered nudity, lewd or provocative poses, or close-ups of sensitive
@@ -12020,6 +12575,12 @@ module Google
12020
12575
  # @return [String]
12021
12576
  attr_accessor :racy
12022
12577
 
12578
+ # Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very
12579
+ # confident.
12580
+ # Corresponds to the JSON property `racyConfidence`
12581
+ # @return [Float]
12582
+ attr_accessor :racy_confidence
12583
+
12023
12584
  # Spoof likelihood. The likelihood that an modification
12024
12585
  # was made to the image's canonical version to make it appear
12025
12586
  # funny or offensive.
@@ -12027,11 +12588,23 @@ module Google
12027
12588
  # @return [String]
12028
12589
  attr_accessor :spoof
12029
12590
 
12591
+ # Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means
12592
+ # very confident.
12593
+ # Corresponds to the JSON property `spoofConfidence`
12594
+ # @return [Float]
12595
+ attr_accessor :spoof_confidence
12596
+
12030
12597
  # Likelihood that this image contains violent content.
12031
12598
  # Corresponds to the JSON property `violence`
12032
12599
  # @return [String]
12033
12600
  attr_accessor :violence
12034
12601
 
12602
+ # Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means
12603
+ # very confident.
12604
+ # Corresponds to the JSON property `violenceConfidence`
12605
+ # @return [Float]
12606
+ attr_accessor :violence_confidence
12607
+
12035
12608
  def initialize(**args)
12036
12609
  update!(**args)
12037
12610
  end
@@ -12039,10 +12612,16 @@ module Google
12039
12612
  # Update properties of this object
12040
12613
  def update!(**args)
12041
12614
  @adult = args[:adult] if args.key?(:adult)
12615
+ @adult_confidence = args[:adult_confidence] if args.key?(:adult_confidence)
12042
12616
  @medical = args[:medical] if args.key?(:medical)
12617
+ @medical_confidence = args[:medical_confidence] if args.key?(:medical_confidence)
12618
+ @nsfw_confidence = args[:nsfw_confidence] if args.key?(:nsfw_confidence)
12043
12619
  @racy = args[:racy] if args.key?(:racy)
12620
+ @racy_confidence = args[:racy_confidence] if args.key?(:racy_confidence)
12044
12621
  @spoof = args[:spoof] if args.key?(:spoof)
12622
+ @spoof_confidence = args[:spoof_confidence] if args.key?(:spoof_confidence)
12045
12623
  @violence = args[:violence] if args.key?(:violence)
12624
+ @violence_confidence = args[:violence_confidence] if args.key?(:violence_confidence)
12046
12625
  end
12047
12626
  end
12048
12627