google-api-client 0.24.3 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -2
  3. data/CHANGELOG.md +99 -0
  4. data/Gemfile +1 -0
  5. data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
  6. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +0 -1
  7. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
  8. data/generated/google/apis/{content_v2sandbox.rb → accesscontextmanager_v1beta.rb} +11 -12
  9. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +697 -0
  10. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +240 -0
  11. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +666 -0
  12. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +16 -0
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +2 -0
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -2
  16. data/generated/google/apis/adexperiencereport_v1.rb +2 -2
  17. data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
  18. data/generated/google/apis/alertcenter_v1beta1.rb +4 -3
  19. data/generated/google/apis/alertcenter_v1beta1/classes.rb +9 -2
  20. data/generated/google/apis/alertcenter_v1beta1/representations.rb +1 -0
  21. data/generated/google/apis/alertcenter_v1beta1/service.rb +3 -2
  22. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  23. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +3 -2
  24. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  25. data/generated/google/apis/androidenterprise_v1/classes.rb +68 -6
  26. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -0
  27. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  28. data/generated/google/apis/androidmanagement_v1/classes.rb +92 -0
  29. data/generated/google/apis/androidmanagement_v1/representations.rb +36 -0
  30. data/generated/google/apis/androidpublisher_v1.rb +2 -2
  31. data/generated/google/apis/androidpublisher_v1/service.rb +1 -1
  32. data/generated/google/apis/androidpublisher_v1_1.rb +2 -2
  33. data/generated/google/apis/androidpublisher_v1_1/service.rb +1 -1
  34. data/generated/google/apis/androidpublisher_v2.rb +2 -2
  35. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  36. data/generated/google/apis/androidpublisher_v3.rb +2 -2
  37. data/generated/google/apis/androidpublisher_v3/service.rb +3 -2
  38. data/generated/google/apis/appengine_v1.rb +2 -3
  39. data/generated/google/apis/appengine_v1/service.rb +1 -2
  40. data/generated/google/apis/appengine_v1alpha.rb +2 -3
  41. data/generated/google/apis/appengine_v1alpha/service.rb +1 -2
  42. data/generated/google/apis/appengine_v1beta.rb +2 -3
  43. data/generated/google/apis/appengine_v1beta/service.rb +1 -2
  44. data/generated/google/apis/appengine_v1beta4.rb +2 -3
  45. data/generated/google/apis/appengine_v1beta4/service.rb +1 -2
  46. data/generated/google/apis/appengine_v1beta5.rb +2 -3
  47. data/generated/google/apis/appengine_v1beta5/service.rb +1 -2
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +98 -7
  50. data/generated/google/apis/bigquery_v2/representations.rb +35 -0
  51. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  52. data/generated/google/apis/civicinfo_v2.rb +1 -1
  53. data/generated/google/apis/civicinfo_v2/classes.rb +18 -0
  54. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  55. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudasset_v1beta1/classes.rb +5 -5
  57. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  58. data/generated/google/apis/cloudbuild_v1/classes.rb +10 -1
  59. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  60. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  61. data/generated/google/apis/cloudfunctions_v1/classes.rb +418 -0
  62. data/generated/google/apis/cloudfunctions_v1/representations.rb +121 -0
  63. data/generated/google/apis/cloudfunctions_v1/service.rb +107 -0
  64. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  65. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +16 -0
  66. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  67. data/generated/google/apis/cloudkms_v1.rb +1 -1
  68. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  69. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -1
  70. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  71. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +3 -3
  72. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +2 -1
  73. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  74. data/generated/google/apis/cloudresourcemanager_v2.rb +3 -3
  75. data/generated/google/apis/cloudresourcemanager_v2/service.rb +2 -2
  76. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +3 -3
  77. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +2 -2
  78. data/generated/google/apis/cloudsearch_v1.rb +59 -0
  79. data/generated/google/apis/cloudsearch_v1/classes.rb +4697 -0
  80. data/generated/google/apis/cloudsearch_v1/representations.rb +2151 -0
  81. data/generated/google/apis/cloudsearch_v1/service.rb +1351 -0
  82. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  83. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +34 -0
  84. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  85. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +34 -30
  86. data/generated/google/apis/composer_v1beta1.rb +1 -1
  87. data/generated/google/apis/composer_v1beta1/classes.rb +5 -8
  88. data/generated/google/apis/compute_alpha.rb +1 -1
  89. data/generated/google/apis/compute_beta.rb +1 -1
  90. data/generated/google/apis/compute_v1.rb +1 -1
  91. data/generated/google/apis/content_v2.rb +1 -1
  92. data/generated/google/apis/content_v2/classes.rb +197 -69
  93. data/generated/google/apis/content_v2/representations.rb +64 -33
  94. data/generated/google/apis/content_v2/service.rb +1 -1
  95. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  96. data/generated/google/apis/dataflow_v1b3/classes.rb +42 -0
  97. data/generated/google/apis/dataflow_v1b3/representations.rb +17 -0
  98. data/generated/google/apis/dataproc_v1.rb +1 -1
  99. data/generated/google/apis/dataproc_v1/classes.rb +19 -19
  100. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  101. data/generated/google/apis/dataproc_v1beta2/classes.rb +19 -19
  102. data/generated/google/apis/dialogflow_v2.rb +6 -3
  103. data/generated/google/apis/dialogflow_v2/classes.rb +112 -8
  104. data/generated/google/apis/dialogflow_v2/representations.rb +30 -0
  105. data/generated/google/apis/dialogflow_v2/service.rb +7 -2
  106. data/generated/google/apis/dialogflow_v2beta1.rb +6 -3
  107. data/generated/google/apis/dialogflow_v2beta1/classes.rb +116 -8
  108. data/generated/google/apis/dialogflow_v2beta1/representations.rb +30 -0
  109. data/generated/google/apis/dialogflow_v2beta1/service.rb +19 -8
  110. data/generated/google/apis/digitalassetlinks_v1.rb +2 -3
  111. data/generated/google/apis/digitalassetlinks_v1/service.rb +1 -2
  112. data/generated/google/apis/dlp_v2.rb +1 -1
  113. data/generated/google/apis/dlp_v2/classes.rb +17 -5
  114. data/generated/google/apis/dlp_v2/representations.rb +2 -0
  115. data/generated/google/apis/dns_v1beta2.rb +1 -1
  116. data/generated/google/apis/dns_v1beta2/classes.rb +81 -0
  117. data/generated/google/apis/dns_v1beta2/representations.rb +34 -0
  118. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  119. data/generated/google/apis/doubleclicksearch_v2/classes.rb +1 -1
  120. data/generated/google/apis/drive_v2.rb +1 -1
  121. data/generated/google/apis/drive_v2/classes.rb +3 -1
  122. data/generated/google/apis/firebaserules_v1.rb +1 -1
  123. data/generated/google/apis/firestore_v1.rb +1 -1
  124. data/generated/google/apis/firestore_v1/classes.rb +637 -0
  125. data/generated/google/apis/firestore_v1/representations.rb +260 -0
  126. data/generated/google/apis/firestore_v1/service.rb +377 -0
  127. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  128. data/generated/google/apis/firestore_v1beta2/classes.rb +205 -0
  129. data/generated/google/apis/firestore_v1beta2/representations.rb +83 -0
  130. data/generated/google/apis/firestore_v1beta2/service.rb +79 -0
  131. data/generated/google/apis/genomics_v1.rb +2 -2
  132. data/generated/google/apis/genomics_v1/service.rb +1 -1
  133. data/generated/google/apis/genomics_v1alpha2.rb +2 -2
  134. data/generated/google/apis/genomics_v1alpha2/service.rb +1 -1
  135. data/generated/google/apis/genomics_v2alpha1.rb +2 -2
  136. data/generated/google/apis/genomics_v2alpha1/service.rb +1 -1
  137. data/generated/google/apis/iam_v1.rb +1 -1
  138. data/generated/google/apis/iam_v1/classes.rb +4 -3
  139. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  140. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  141. data/generated/google/apis/indexing_v3.rb +2 -3
  142. data/generated/google/apis/indexing_v3/service.rb +1 -2
  143. data/generated/google/apis/jobs_v2.rb +1 -1
  144. data/generated/google/apis/jobs_v2/classes.rb +2 -2
  145. data/generated/google/apis/jobs_v3.rb +1 -1
  146. data/generated/google/apis/jobs_v3/classes.rb +3 -3
  147. data/generated/google/apis/jobs_v3/service.rb +20 -2
  148. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  149. data/generated/google/apis/jobs_v3p1beta1/classes.rb +3 -3
  150. data/generated/google/apis/jobs_v3p1beta1/service.rb +20 -2
  151. data/generated/google/apis/language_v1.rb +4 -4
  152. data/generated/google/apis/language_v1/service.rb +3 -3
  153. data/generated/google/apis/language_v1beta1.rb +4 -4
  154. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  155. data/generated/google/apis/language_v1beta2.rb +4 -4
  156. data/generated/google/apis/language_v1beta2/service.rb +3 -3
  157. data/generated/google/apis/logging_v2.rb +1 -1
  158. data/generated/google/apis/logging_v2/classes.rb +2 -13
  159. data/generated/google/apis/logging_v2/representations.rb +0 -2
  160. data/generated/google/apis/logging_v2beta1.rb +1 -1
  161. data/generated/google/apis/logging_v2beta1/classes.rb +2 -41
  162. data/generated/google/apis/logging_v2beta1/representations.rb +0 -16
  163. data/generated/google/apis/logging_v2beta1/service.rb +0 -255
  164. data/generated/google/apis/monitoring_v3.rb +1 -1
  165. data/generated/google/apis/monitoring_v3/classes.rb +25 -15
  166. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  167. data/generated/google/apis/monitoring_v3/service.rb +366 -1
  168. data/generated/google/apis/oslogin_v1.rb +1 -1
  169. data/generated/google/apis/oslogin_v1/service.rb +7 -1
  170. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  171. data/generated/google/apis/oslogin_v1alpha/service.rb +10 -1
  172. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  173. data/generated/google/apis/oslogin_v1beta/service.rb +7 -1
  174. data/generated/google/apis/redis_v1.rb +1 -1
  175. data/generated/google/apis/redis_v1/classes.rb +6 -0
  176. data/generated/google/apis/redis_v1/representations.rb +1 -0
  177. data/generated/google/apis/redis_v1beta1.rb +1 -1
  178. data/generated/google/apis/redis_v1beta1/classes.rb +6 -0
  179. data/generated/google/apis/redis_v1beta1/representations.rb +1 -0
  180. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  181. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +7 -6
  182. data/generated/google/apis/script_v1.rb +2 -2
  183. data/generated/google/apis/script_v1/service.rb +7 -3
  184. data/generated/google/apis/serviceconsumermanagement_v1.rb +2 -3
  185. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +7 -0
  186. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  187. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +1 -2
  188. data/generated/google/apis/servicecontrol_v1.rb +3 -3
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +18 -230
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +2 -99
  191. data/generated/google/apis/servicecontrol_v1/service.rb +2 -140
  192. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -1
  194. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  195. data/generated/google/apis/servicenetworking_v1beta/classes.rb +24 -0
  196. data/generated/google/apis/servicenetworking_v1beta/representations.rb +3 -0
  197. data/generated/google/apis/serviceusage_v1.rb +1 -1
  198. data/generated/google/apis/serviceusage_v1/classes.rb +7 -0
  199. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  200. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  201. data/generated/google/apis/serviceusage_v1beta1/classes.rb +7 -0
  202. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  203. data/generated/google/apis/slides_v1.rb +2 -2
  204. data/generated/google/apis/slides_v1/classes.rb +4 -3
  205. data/generated/google/apis/slides_v1/service.rb +1 -1
  206. data/generated/google/apis/storage_v1.rb +1 -1
  207. data/generated/google/apis/storage_v1/service.rb +2 -3
  208. data/generated/google/apis/testing_v1.rb +1 -1
  209. data/generated/google/apis/testing_v1/classes.rb +9 -0
  210. data/generated/google/apis/testing_v1/representations.rb +1 -0
  211. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  212. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -1
  213. data/generated/google/apis/tpu_v1.rb +1 -1
  214. data/generated/google/apis/tpu_v1/classes.rb +6 -0
  215. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  216. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  217. data/generated/google/apis/tpu_v1alpha1/classes.rb +6 -0
  218. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  219. data/generated/google/apis/vault_v1.rb +1 -1
  220. data/generated/google/apis/vault_v1/classes.rb +7 -0
  221. data/generated/google/apis/vault_v1/representations.rb +1 -0
  222. data/generated/google/apis/videointelligence_v1.rb +3 -2
  223. data/generated/google/apis/videointelligence_v1/classes.rb +547 -12
  224. data/generated/google/apis/videointelligence_v1/representations.rb +190 -2
  225. data/generated/google/apis/videointelligence_v1/service.rb +2 -1
  226. data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
  227. data/generated/google/apis/videointelligence_v1beta2/classes.rb +547 -12
  228. data/generated/google/apis/videointelligence_v1beta2/representations.rb +190 -2
  229. data/generated/google/apis/videointelligence_v1beta2/service.rb +2 -1
  230. data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
  231. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +418 -13
  232. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +153 -2
  233. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +2 -1
  234. data/generated/google/apis/vision_v1.rb +1 -1
  235. data/generated/google/apis/vision_v1/classes.rb +1139 -54
  236. data/generated/google/apis/vision_v1/representations.rb +478 -0
  237. data/generated/google/apis/vision_v1/service.rb +744 -0
  238. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  239. data/generated/google/apis/vision_v1p1beta1/classes.rb +761 -16
  240. data/generated/google/apis/vision_v1p1beta1/representations.rb +333 -0
  241. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  242. data/generated/google/apis/vision_v1p2beta1/classes.rb +758 -13
  243. data/generated/google/apis/vision_v1p2beta1/representations.rb +333 -0
  244. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  245. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  246. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  247. data/generated/google/apis/youtube_v3.rb +1 -1
  248. data/lib/google/apis/core/http_command.rb +83 -10
  249. data/lib/google/apis/options.rb +5 -1
  250. data/lib/google/apis/version.rb +1 -1
  251. metadata +10 -14
  252. data/generated/google/apis/content_v2sandbox/classes.rb +0 -4436
  253. data/generated/google/apis/content_v2sandbox/representations.rb +0 -1956
  254. data/generated/google/apis/content_v2sandbox/service.rb +0 -1296
  255. data/generated/google/apis/dfareporting_v2_8.rb +0 -40
  256. data/generated/google/apis/dfareporting_v2_8/classes.rb +0 -12043
  257. data/generated/google/apis/dfareporting_v2_8/representations.rb +0 -4311
  258. data/generated/google/apis/dfareporting_v2_8/service.rb +0 -8727
  259. data/generated/google/apis/serviceuser_v1.rb +0 -42
  260. data/generated/google/apis/serviceuser_v1/classes.rb +0 -3472
  261. data/generated/google/apis/serviceuser_v1/representations.rb +0 -1030
  262. data/generated/google/apis/serviceuser_v1/service.rb +0 -215
@@ -299,6 +299,750 @@ module Google
299
299
  command.query['quotaUser'] = quota_user unless quota_user.nil?
300
300
  execute_or_queue_command(command, &block)
301
301
  end
302
+
303
+ # Adds a Product to the specified ProductSet. If the Product is already
304
+ # present, no change is made.
305
+ # One Product can be added to at most 100 ProductSets.
306
+ # Possible errors:
307
+ # * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
308
+ # @param [String] name
309
+ # The resource name for the ProductSet to modify.
310
+ # Format is:
311
+ # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
312
+ # @param [Google::Apis::VisionV1::AddProductToProductSetRequest] add_product_to_product_set_request_object
313
+ # @param [String] fields
314
+ # Selector specifying which fields to include in a partial response.
315
+ # @param [String] quota_user
316
+ # Available to use for quota purposes for server-side applications. Can be any
317
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
318
+ # @param [Google::Apis::RequestOptions] options
319
+ # Request-specific options
320
+ #
321
+ # @yield [result, err] Result & error if block supplied
322
+ # @yieldparam result [Google::Apis::VisionV1::Empty] parsed result object
323
+ # @yieldparam err [StandardError] error object if request failed
324
+ #
325
+ # @return [Google::Apis::VisionV1::Empty]
326
+ #
327
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
328
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
329
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
330
+ def add_product_to_product_set(name, add_product_to_product_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
331
+ command = make_simple_command(:post, 'v1/{+name}:addProduct', options)
332
+ command.request_representation = Google::Apis::VisionV1::AddProductToProductSetRequest::Representation
333
+ command.request_object = add_product_to_product_set_request_object
334
+ command.response_representation = Google::Apis::VisionV1::Empty::Representation
335
+ command.response_class = Google::Apis::VisionV1::Empty
336
+ command.params['name'] = name unless name.nil?
337
+ command.query['fields'] = fields unless fields.nil?
338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
339
+ execute_or_queue_command(command, &block)
340
+ end
341
+
342
+ # Creates and returns a new ProductSet resource.
343
+ # Possible errors:
344
+ # * Returns INVALID_ARGUMENT if display_name is missing, or is longer than
345
+ # 4096 characters.
346
+ # @param [String] parent
347
+ # The project in which the ProductSet should be created.
348
+ # Format is `projects/PROJECT_ID/locations/LOC_ID`.
349
+ # @param [Google::Apis::VisionV1::ProductSet] product_set_object
350
+ # @param [String] product_set_id
351
+ # A user-supplied resource id for this ProductSet. If set, the server will
352
+ # attempt to use this value as the resource id. If it is already in use, an
353
+ # error is returned with code ALREADY_EXISTS. Must be at most 128 characters
354
+ # long. It cannot contain the character `/`.
355
+ # @param [String] fields
356
+ # Selector specifying which fields to include in a partial response.
357
+ # @param [String] quota_user
358
+ # Available to use for quota purposes for server-side applications. Can be any
359
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
360
+ # @param [Google::Apis::RequestOptions] options
361
+ # Request-specific options
362
+ #
363
+ # @yield [result, err] Result & error if block supplied
364
+ # @yieldparam result [Google::Apis::VisionV1::ProductSet] parsed result object
365
+ # @yieldparam err [StandardError] error object if request failed
366
+ #
367
+ # @return [Google::Apis::VisionV1::ProductSet]
368
+ #
369
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
370
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
371
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
372
+ def create_project_location_product_set(parent, product_set_object = nil, product_set_id: nil, fields: nil, quota_user: nil, options: nil, &block)
373
+ command = make_simple_command(:post, 'v1/{+parent}/productSets', options)
374
+ command.request_representation = Google::Apis::VisionV1::ProductSet::Representation
375
+ command.request_object = product_set_object
376
+ command.response_representation = Google::Apis::VisionV1::ProductSet::Representation
377
+ command.response_class = Google::Apis::VisionV1::ProductSet
378
+ command.params['parent'] = parent unless parent.nil?
379
+ command.query['productSetId'] = product_set_id unless product_set_id.nil?
380
+ command.query['fields'] = fields unless fields.nil?
381
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
382
+ execute_or_queue_command(command, &block)
383
+ end
384
+
385
+ # Permanently deletes a ProductSet. All Products and ReferenceImages in the
386
+ # ProductSet will be deleted.
387
+ # The actual image files are not deleted from Google Cloud Storage.
388
+ # Possible errors:
389
+ # * Returns NOT_FOUND if the ProductSet does not exist.
390
+ # @param [String] name
391
+ # Resource name of the ProductSet to delete.
392
+ # Format is:
393
+ # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
394
+ # @param [String] fields
395
+ # Selector specifying which fields to include in a partial response.
396
+ # @param [String] quota_user
397
+ # Available to use for quota purposes for server-side applications. Can be any
398
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
399
+ # @param [Google::Apis::RequestOptions] options
400
+ # Request-specific options
401
+ #
402
+ # @yield [result, err] Result & error if block supplied
403
+ # @yieldparam result [Google::Apis::VisionV1::Empty] parsed result object
404
+ # @yieldparam err [StandardError] error object if request failed
405
+ #
406
+ # @return [Google::Apis::VisionV1::Empty]
407
+ #
408
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
409
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
410
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
411
+ def delete_project_location_product_set(name, fields: nil, quota_user: nil, options: nil, &block)
412
+ command = make_simple_command(:delete, 'v1/{+name}', options)
413
+ command.response_representation = Google::Apis::VisionV1::Empty::Representation
414
+ command.response_class = Google::Apis::VisionV1::Empty
415
+ command.params['name'] = name unless name.nil?
416
+ command.query['fields'] = fields unless fields.nil?
417
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
418
+ execute_or_queue_command(command, &block)
419
+ end
420
+
421
+ # Gets information associated with a ProductSet.
422
+ # Possible errors:
423
+ # * Returns NOT_FOUND if the ProductSet does not exist.
424
+ # @param [String] name
425
+ # Resource name of the ProductSet to get.
426
+ # Format is:
427
+ # `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
428
+ # @param [String] fields
429
+ # Selector specifying which fields to include in a partial response.
430
+ # @param [String] quota_user
431
+ # Available to use for quota purposes for server-side applications. Can be any
432
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
433
+ # @param [Google::Apis::RequestOptions] options
434
+ # Request-specific options
435
+ #
436
+ # @yield [result, err] Result & error if block supplied
437
+ # @yieldparam result [Google::Apis::VisionV1::ProductSet] parsed result object
438
+ # @yieldparam err [StandardError] error object if request failed
439
+ #
440
+ # @return [Google::Apis::VisionV1::ProductSet]
441
+ #
442
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
443
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
444
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
445
+ def get_project_location_product_set(name, fields: nil, quota_user: nil, options: nil, &block)
446
+ command = make_simple_command(:get, 'v1/{+name}', options)
447
+ command.response_representation = Google::Apis::VisionV1::ProductSet::Representation
448
+ command.response_class = Google::Apis::VisionV1::ProductSet
449
+ command.params['name'] = name unless name.nil?
450
+ command.query['fields'] = fields unless fields.nil?
451
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
452
+ execute_or_queue_command(command, &block)
453
+ end
454
+
455
+ # Asynchronous API that imports a list of reference images to specified
456
+ # product sets based on a list of image information.
457
+ # The google.longrunning.Operation API can be used to keep track of the
458
+ # progress and results of the request.
459
+ # `Operation.metadata` contains `BatchOperationMetadata`. (progress)
460
+ # `Operation.response` contains `ImportProductSetsResponse`. (results)
461
+ # The input source of this method is a csv file on Google Cloud Storage.
462
+ # For the format of the csv file please see
463
+ # ImportProductSetsGcsSource.csv_file_uri.
464
+ # @param [String] parent
465
+ # The project in which the ProductSets should be imported.
466
+ # Format is `projects/PROJECT_ID/locations/LOC_ID`.
467
+ # @param [Google::Apis::VisionV1::ImportProductSetsRequest] import_product_sets_request_object
468
+ # @param [String] fields
469
+ # Selector specifying which fields to include in a partial response.
470
+ # @param [String] quota_user
471
+ # Available to use for quota purposes for server-side applications. Can be any
472
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
473
+ # @param [Google::Apis::RequestOptions] options
474
+ # Request-specific options
475
+ #
476
+ # @yield [result, err] Result & error if block supplied
477
+ # @yieldparam result [Google::Apis::VisionV1::Operation] parsed result object
478
+ # @yieldparam err [StandardError] error object if request failed
479
+ #
480
+ # @return [Google::Apis::VisionV1::Operation]
481
+ #
482
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
483
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
484
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
485
+ def import_product_sets(parent, import_product_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
486
+ command = make_simple_command(:post, 'v1/{+parent}/productSets:import', options)
487
+ command.request_representation = Google::Apis::VisionV1::ImportProductSetsRequest::Representation
488
+ command.request_object = import_product_sets_request_object
489
+ command.response_representation = Google::Apis::VisionV1::Operation::Representation
490
+ command.response_class = Google::Apis::VisionV1::Operation
491
+ command.params['parent'] = parent unless parent.nil?
492
+ command.query['fields'] = fields unless fields.nil?
493
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
494
+ execute_or_queue_command(command, &block)
495
+ end
496
+
497
+ # Lists ProductSets in an unspecified order.
498
+ # Possible errors:
499
+ # * Returns INVALID_ARGUMENT if page_size is greater than 100, or less
500
+ # than 1.
501
+ # @param [String] parent
502
+ # The project from which ProductSets should be listed.
503
+ # Format is `projects/PROJECT_ID/locations/LOC_ID`.
504
+ # @param [Fixnum] page_size
505
+ # The maximum number of items to return. Default 10, maximum 100.
506
+ # @param [String] page_token
507
+ # The next_page_token returned from a previous List request, if any.
508
+ # @param [String] fields
509
+ # Selector specifying which fields to include in a partial response.
510
+ # @param [String] quota_user
511
+ # Available to use for quota purposes for server-side applications. Can be any
512
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
513
+ # @param [Google::Apis::RequestOptions] options
514
+ # Request-specific options
515
+ #
516
+ # @yield [result, err] Result & error if block supplied
517
+ # @yieldparam result [Google::Apis::VisionV1::ListProductSetsResponse] parsed result object
518
+ # @yieldparam err [StandardError] error object if request failed
519
+ #
520
+ # @return [Google::Apis::VisionV1::ListProductSetsResponse]
521
+ #
522
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
523
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
524
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
525
+ def list_project_location_product_sets(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
526
+ command = make_simple_command(:get, 'v1/{+parent}/productSets', options)
527
+ command.response_representation = Google::Apis::VisionV1::ListProductSetsResponse::Representation
528
+ command.response_class = Google::Apis::VisionV1::ListProductSetsResponse
529
+ command.params['parent'] = parent unless parent.nil?
530
+ command.query['pageSize'] = page_size unless page_size.nil?
531
+ command.query['pageToken'] = page_token unless page_token.nil?
532
+ command.query['fields'] = fields unless fields.nil?
533
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
534
+ execute_or_queue_command(command, &block)
535
+ end
536
+
537
+ # Makes changes to a ProductSet resource.
538
+ # Only display_name can be updated currently.
539
+ # Possible errors:
540
+ # * Returns NOT_FOUND if the ProductSet does not exist.
541
+ # * Returns INVALID_ARGUMENT if display_name is present in update_mask but
542
+ # missing from the request or longer than 4096 characters.
543
+ # @param [String] name
544
+ # The resource name of the ProductSet.
545
+ # Format is:
546
+ # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
547
+ # This field is ignored when creating a ProductSet.
548
+ # @param [Google::Apis::VisionV1::ProductSet] product_set_object
549
+ # @param [String] update_mask
550
+ # The FieldMask that specifies which fields to
551
+ # update.
552
+ # If update_mask isn't specified, all mutable fields are to be updated.
553
+ # Valid mask path is `display_name`.
554
+ # @param [String] fields
555
+ # Selector specifying which fields to include in a partial response.
556
+ # @param [String] quota_user
557
+ # Available to use for quota purposes for server-side applications. Can be any
558
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
559
+ # @param [Google::Apis::RequestOptions] options
560
+ # Request-specific options
561
+ #
562
+ # @yield [result, err] Result & error if block supplied
563
+ # @yieldparam result [Google::Apis::VisionV1::ProductSet] parsed result object
564
+ # @yieldparam err [StandardError] error object if request failed
565
+ #
566
+ # @return [Google::Apis::VisionV1::ProductSet]
567
+ #
568
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
569
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
570
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
571
+ def patch_project_location_product_set(name, product_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
572
+ command = make_simple_command(:patch, 'v1/{+name}', options)
573
+ command.request_representation = Google::Apis::VisionV1::ProductSet::Representation
574
+ command.request_object = product_set_object
575
+ command.response_representation = Google::Apis::VisionV1::ProductSet::Representation
576
+ command.response_class = Google::Apis::VisionV1::ProductSet
577
+ command.params['name'] = name unless name.nil?
578
+ command.query['updateMask'] = update_mask unless update_mask.nil?
579
+ command.query['fields'] = fields unless fields.nil?
580
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
581
+ execute_or_queue_command(command, &block)
582
+ end
583
+
584
+ # Removes a Product from the specified ProductSet.
585
+ # Possible errors:
586
+ # * Returns NOT_FOUND If the Product is not found under the ProductSet.
587
+ # @param [String] name
588
+ # The resource name for the ProductSet to modify.
589
+ # Format is:
590
+ # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
591
+ # @param [Google::Apis::VisionV1::RemoveProductFromProductSetRequest] remove_product_from_product_set_request_object
592
+ # @param [String] fields
593
+ # Selector specifying which fields to include in a partial response.
594
+ # @param [String] quota_user
595
+ # Available to use for quota purposes for server-side applications. Can be any
596
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
597
+ # @param [Google::Apis::RequestOptions] options
598
+ # Request-specific options
599
+ #
600
+ # @yield [result, err] Result & error if block supplied
601
+ # @yieldparam result [Google::Apis::VisionV1::Empty] parsed result object
602
+ # @yieldparam err [StandardError] error object if request failed
603
+ #
604
+ # @return [Google::Apis::VisionV1::Empty]
605
+ #
606
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
607
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
608
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
609
+ def remove_product_from_product_set(name, remove_product_from_product_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
610
+ command = make_simple_command(:post, 'v1/{+name}:removeProduct', options)
611
+ command.request_representation = Google::Apis::VisionV1::RemoveProductFromProductSetRequest::Representation
612
+ command.request_object = remove_product_from_product_set_request_object
613
+ command.response_representation = Google::Apis::VisionV1::Empty::Representation
614
+ command.response_class = Google::Apis::VisionV1::Empty
615
+ command.params['name'] = name unless name.nil?
616
+ command.query['fields'] = fields unless fields.nil?
617
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
618
+ execute_or_queue_command(command, &block)
619
+ end
620
+
621
+ # Lists the Products in a ProductSet, in an unspecified order. If the
622
+ # ProductSet does not exist, the products field of the response will be
623
+ # empty.
624
+ # Possible errors:
625
+ # * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
626
+ # @param [String] name
627
+ # The ProductSet resource for which to retrieve Products.
628
+ # Format is:
629
+ # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
630
+ # @param [Fixnum] page_size
631
+ # The maximum number of items to return. Default 10, maximum 100.
632
+ # @param [String] page_token
633
+ # The next_page_token returned from a previous List request, if any.
634
+ # @param [String] fields
635
+ # Selector specifying which fields to include in a partial response.
636
+ # @param [String] quota_user
637
+ # Available to use for quota purposes for server-side applications. Can be any
638
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
639
+ # @param [Google::Apis::RequestOptions] options
640
+ # Request-specific options
641
+ #
642
+ # @yield [result, err] Result & error if block supplied
643
+ # @yieldparam result [Google::Apis::VisionV1::ListProductsInProductSetResponse] parsed result object
644
+ # @yieldparam err [StandardError] error object if request failed
645
+ #
646
+ # @return [Google::Apis::VisionV1::ListProductsInProductSetResponse]
647
+ #
648
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
649
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
650
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
651
+ def list_project_location_product_set_products(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
652
+ command = make_simple_command(:get, 'v1/{+name}/products', options)
653
+ command.response_representation = Google::Apis::VisionV1::ListProductsInProductSetResponse::Representation
654
+ command.response_class = Google::Apis::VisionV1::ListProductsInProductSetResponse
655
+ command.params['name'] = name unless name.nil?
656
+ command.query['pageSize'] = page_size unless page_size.nil?
657
+ command.query['pageToken'] = page_token unless page_token.nil?
658
+ command.query['fields'] = fields unless fields.nil?
659
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
660
+ execute_or_queue_command(command, &block)
661
+ end
662
+
663
+ # Creates and returns a new product resource.
664
+ # Possible errors:
665
+ # * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096
666
+ # characters.
667
+ # * Returns INVALID_ARGUMENT if description is longer than 4096 characters.
668
+ # * Returns INVALID_ARGUMENT if product_category is missing or invalid.
669
+ # @param [String] parent
670
+ # The project in which the Product should be created.
671
+ # Format is
672
+ # `projects/PROJECT_ID/locations/LOC_ID`.
673
+ # @param [Google::Apis::VisionV1::Product] product_object
674
+ # @param [String] product_id
675
+ # A user-supplied resource id for this Product. If set, the server will
676
+ # attempt to use this value as the resource id. If it is already in use, an
677
+ # error is returned with code ALREADY_EXISTS. Must be at most 128 characters
678
+ # long. It cannot contain the character `/`.
679
+ # @param [String] fields
680
+ # Selector specifying which fields to include in a partial response.
681
+ # @param [String] quota_user
682
+ # Available to use for quota purposes for server-side applications. Can be any
683
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
684
+ # @param [Google::Apis::RequestOptions] options
685
+ # Request-specific options
686
+ #
687
+ # @yield [result, err] Result & error if block supplied
688
+ # @yieldparam result [Google::Apis::VisionV1::Product] parsed result object
689
+ # @yieldparam err [StandardError] error object if request failed
690
+ #
691
+ # @return [Google::Apis::VisionV1::Product]
692
+ #
693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
696
+ def create_project_location_product(parent, product_object = nil, product_id: nil, fields: nil, quota_user: nil, options: nil, &block)
697
+ command = make_simple_command(:post, 'v1/{+parent}/products', options)
698
+ command.request_representation = Google::Apis::VisionV1::Product::Representation
699
+ command.request_object = product_object
700
+ command.response_representation = Google::Apis::VisionV1::Product::Representation
701
+ command.response_class = Google::Apis::VisionV1::Product
702
+ command.params['parent'] = parent unless parent.nil?
703
+ command.query['productId'] = product_id unless product_id.nil?
704
+ command.query['fields'] = fields unless fields.nil?
705
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
706
+ execute_or_queue_command(command, &block)
707
+ end
708
+
709
+ # Permanently deletes a product and its reference images.
710
+ # Metadata of the product and all its images will be deleted right away, but
711
+ # search queries against ProductSets containing the product may still work
712
+ # until all related caches are refreshed.
713
+ # Possible errors:
714
+ # * Returns NOT_FOUND if the product does not exist.
715
+ # @param [String] name
716
+ # Resource name of product to delete.
717
+ # Format is:
718
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
719
+ # @param [String] fields
720
+ # Selector specifying which fields to include in a partial response.
721
+ # @param [String] quota_user
722
+ # Available to use for quota purposes for server-side applications. Can be any
723
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
724
+ # @param [Google::Apis::RequestOptions] options
725
+ # Request-specific options
726
+ #
727
+ # @yield [result, err] Result & error if block supplied
728
+ # @yieldparam result [Google::Apis::VisionV1::Empty] parsed result object
729
+ # @yieldparam err [StandardError] error object if request failed
730
+ #
731
+ # @return [Google::Apis::VisionV1::Empty]
732
+ #
733
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
734
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
735
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
736
+ def delete_project_location_product(name, fields: nil, quota_user: nil, options: nil, &block)
737
+ command = make_simple_command(:delete, 'v1/{+name}', options)
738
+ command.response_representation = Google::Apis::VisionV1::Empty::Representation
739
+ command.response_class = Google::Apis::VisionV1::Empty
740
+ command.params['name'] = name unless name.nil?
741
+ command.query['fields'] = fields unless fields.nil?
742
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
743
+ execute_or_queue_command(command, &block)
744
+ end
745
+
746
+ # Gets information associated with a Product.
747
+ # Possible errors:
748
+ # * Returns NOT_FOUND if the Product does not exist.
749
+ # @param [String] name
750
+ # Resource name of the Product to get.
751
+ # Format is:
752
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
753
+ # @param [String] fields
754
+ # Selector specifying which fields to include in a partial response.
755
+ # @param [String] quota_user
756
+ # Available to use for quota purposes for server-side applications. Can be any
757
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
758
+ # @param [Google::Apis::RequestOptions] options
759
+ # Request-specific options
760
+ #
761
+ # @yield [result, err] Result & error if block supplied
762
+ # @yieldparam result [Google::Apis::VisionV1::Product] parsed result object
763
+ # @yieldparam err [StandardError] error object if request failed
764
+ #
765
+ # @return [Google::Apis::VisionV1::Product]
766
+ #
767
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
768
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
769
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
770
+ def get_project_location_product(name, fields: nil, quota_user: nil, options: nil, &block)
771
+ command = make_simple_command(:get, 'v1/{+name}', options)
772
+ command.response_representation = Google::Apis::VisionV1::Product::Representation
773
+ command.response_class = Google::Apis::VisionV1::Product
774
+ command.params['name'] = name unless name.nil?
775
+ command.query['fields'] = fields unless fields.nil?
776
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
777
+ execute_or_queue_command(command, &block)
778
+ end
779
+
780
+ # Lists products in an unspecified order.
781
+ # Possible errors:
782
+ # * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
783
+ # @param [String] parent
784
+ # The project OR ProductSet from which Products should be listed.
785
+ # Format:
786
+ # `projects/PROJECT_ID/locations/LOC_ID`
787
+ # @param [Fixnum] page_size
788
+ # The maximum number of items to return. Default 10, maximum 100.
789
+ # @param [String] page_token
790
+ # The next_page_token returned from a previous List request, if any.
791
+ # @param [String] fields
792
+ # Selector specifying which fields to include in a partial response.
793
+ # @param [String] quota_user
794
+ # Available to use for quota purposes for server-side applications. Can be any
795
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
796
+ # @param [Google::Apis::RequestOptions] options
797
+ # Request-specific options
798
+ #
799
+ # @yield [result, err] Result & error if block supplied
800
+ # @yieldparam result [Google::Apis::VisionV1::ListProductsResponse] parsed result object
801
+ # @yieldparam err [StandardError] error object if request failed
802
+ #
803
+ # @return [Google::Apis::VisionV1::ListProductsResponse]
804
+ #
805
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
806
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
807
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
808
+ def list_project_location_products(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
809
+ command = make_simple_command(:get, 'v1/{+parent}/products', options)
810
+ command.response_representation = Google::Apis::VisionV1::ListProductsResponse::Representation
811
+ command.response_class = Google::Apis::VisionV1::ListProductsResponse
812
+ command.params['parent'] = parent unless parent.nil?
813
+ command.query['pageSize'] = page_size unless page_size.nil?
814
+ command.query['pageToken'] = page_token unless page_token.nil?
815
+ command.query['fields'] = fields unless fields.nil?
816
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
817
+ execute_or_queue_command(command, &block)
818
+ end
819
+
820
+ # Makes changes to a Product resource.
821
+ # Only the `display_name`, `description`, and `labels` fields can be updated
822
+ # right now.
823
+ # If labels are updated, the change will not be reflected in queries until
824
+ # the next index time.
825
+ # Possible errors:
826
+ # * Returns NOT_FOUND if the Product does not exist.
827
+ # * Returns INVALID_ARGUMENT if display_name is present in update_mask but is
828
+ # missing from the request or longer than 4096 characters.
829
+ # * Returns INVALID_ARGUMENT if description is present in update_mask but is
830
+ # longer than 4096 characters.
831
+ # * Returns INVALID_ARGUMENT if product_category is present in update_mask.
832
+ # @param [String] name
833
+ # The resource name of the product.
834
+ # Format is:
835
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
836
+ # This field is ignored when creating a product.
837
+ # @param [Google::Apis::VisionV1::Product] product_object
838
+ # @param [String] update_mask
839
+ # The FieldMask that specifies which fields
840
+ # to update.
841
+ # If update_mask isn't specified, all mutable fields are to be updated.
842
+ # Valid mask paths include `product_labels`, `display_name`, and
843
+ # `description`.
844
+ # @param [String] fields
845
+ # Selector specifying which fields to include in a partial response.
846
+ # @param [String] quota_user
847
+ # Available to use for quota purposes for server-side applications. Can be any
848
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
849
+ # @param [Google::Apis::RequestOptions] options
850
+ # Request-specific options
851
+ #
852
+ # @yield [result, err] Result & error if block supplied
853
+ # @yieldparam result [Google::Apis::VisionV1::Product] parsed result object
854
+ # @yieldparam err [StandardError] error object if request failed
855
+ #
856
+ # @return [Google::Apis::VisionV1::Product]
857
+ #
858
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
859
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
860
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
861
+ def patch_project_location_product(name, product_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
862
+ command = make_simple_command(:patch, 'v1/{+name}', options)
863
+ command.request_representation = Google::Apis::VisionV1::Product::Representation
864
+ command.request_object = product_object
865
+ command.response_representation = Google::Apis::VisionV1::Product::Representation
866
+ command.response_class = Google::Apis::VisionV1::Product
867
+ command.params['name'] = name unless name.nil?
868
+ command.query['updateMask'] = update_mask unless update_mask.nil?
869
+ command.query['fields'] = fields unless fields.nil?
870
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
871
+ execute_or_queue_command(command, &block)
872
+ end
873
+
874
+ # Creates and returns a new ReferenceImage resource.
875
+ # The `bounding_poly` field is optional. If `bounding_poly` is not specified,
876
+ # the system will try to detect regions of interest in the image that are
877
+ # compatible with the product_category on the parent product. If it is
878
+ # specified, detection is ALWAYS skipped. The system converts polygons into
879
+ # non-rotated rectangles.
880
+ # Note that the pipeline will resize the image if the image resolution is too
881
+ # large to process (above 50MP).
882
+ # Possible errors:
883
+ # * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096
884
+ # characters.
885
+ # * Returns INVALID_ARGUMENT if the product does not exist.
886
+ # * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing
887
+ # compatible with the parent product's product_category is detected.
888
+ # * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
889
+ # @param [String] parent
890
+ # Resource name of the product in which to create the reference image.
891
+ # Format is
892
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
893
+ # @param [Google::Apis::VisionV1::ReferenceImage] reference_image_object
894
+ # @param [String] reference_image_id
895
+ # A user-supplied resource id for the ReferenceImage to be added. If set,
896
+ # the server will attempt to use this value as the resource id. If it is
897
+ # already in use, an error is returned with code ALREADY_EXISTS. Must be at
898
+ # most 128 characters long. It cannot contain the character `/`.
899
+ # @param [String] fields
900
+ # Selector specifying which fields to include in a partial response.
901
+ # @param [String] quota_user
902
+ # Available to use for quota purposes for server-side applications. Can be any
903
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
904
+ # @param [Google::Apis::RequestOptions] options
905
+ # Request-specific options
906
+ #
907
+ # @yield [result, err] Result & error if block supplied
908
+ # @yieldparam result [Google::Apis::VisionV1::ReferenceImage] parsed result object
909
+ # @yieldparam err [StandardError] error object if request failed
910
+ #
911
+ # @return [Google::Apis::VisionV1::ReferenceImage]
912
+ #
913
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
914
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
915
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
916
+ def create_project_location_product_reference_image(parent, reference_image_object = nil, reference_image_id: nil, fields: nil, quota_user: nil, options: nil, &block)
917
+ command = make_simple_command(:post, 'v1/{+parent}/referenceImages', options)
918
+ command.request_representation = Google::Apis::VisionV1::ReferenceImage::Representation
919
+ command.request_object = reference_image_object
920
+ command.response_representation = Google::Apis::VisionV1::ReferenceImage::Representation
921
+ command.response_class = Google::Apis::VisionV1::ReferenceImage
922
+ command.params['parent'] = parent unless parent.nil?
923
+ command.query['referenceImageId'] = reference_image_id unless reference_image_id.nil?
924
+ command.query['fields'] = fields unless fields.nil?
925
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
926
+ execute_or_queue_command(command, &block)
927
+ end
928
+
929
+ # Permanently deletes a reference image.
930
+ # The image metadata will be deleted right away, but search queries
931
+ # against ProductSets containing the image may still work until all related
932
+ # caches are refreshed.
933
+ # The actual image files are not deleted from Google Cloud Storage.
934
+ # Possible errors:
935
+ # * Returns NOT_FOUND if the reference image does not exist.
936
+ # @param [String] name
937
+ # The resource name of the reference image to delete.
938
+ # Format is:
939
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
940
+ # IMAGE_ID`
941
+ # @param [String] fields
942
+ # Selector specifying which fields to include in a partial response.
943
+ # @param [String] quota_user
944
+ # Available to use for quota purposes for server-side applications. Can be any
945
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
946
+ # @param [Google::Apis::RequestOptions] options
947
+ # Request-specific options
948
+ #
949
+ # @yield [result, err] Result & error if block supplied
950
+ # @yieldparam result [Google::Apis::VisionV1::Empty] parsed result object
951
+ # @yieldparam err [StandardError] error object if request failed
952
+ #
953
+ # @return [Google::Apis::VisionV1::Empty]
954
+ #
955
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
956
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
957
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
958
+ def delete_project_location_product_reference_image(name, fields: nil, quota_user: nil, options: nil, &block)
959
+ command = make_simple_command(:delete, 'v1/{+name}', options)
960
+ command.response_representation = Google::Apis::VisionV1::Empty::Representation
961
+ command.response_class = Google::Apis::VisionV1::Empty
962
+ command.params['name'] = name unless name.nil?
963
+ command.query['fields'] = fields unless fields.nil?
964
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
965
+ execute_or_queue_command(command, &block)
966
+ end
967
+
968
+ # Gets information associated with a ReferenceImage.
969
+ # Possible errors:
970
+ # * Returns NOT_FOUND if the specified image does not exist.
971
+ # @param [String] name
972
+ # The resource name of the ReferenceImage to get.
973
+ # Format is:
974
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
975
+ # IMAGE_ID`.
976
+ # @param [String] fields
977
+ # Selector specifying which fields to include in a partial response.
978
+ # @param [String] quota_user
979
+ # Available to use for quota purposes for server-side applications. Can be any
980
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
981
+ # @param [Google::Apis::RequestOptions] options
982
+ # Request-specific options
983
+ #
984
+ # @yield [result, err] Result & error if block supplied
985
+ # @yieldparam result [Google::Apis::VisionV1::ReferenceImage] parsed result object
986
+ # @yieldparam err [StandardError] error object if request failed
987
+ #
988
+ # @return [Google::Apis::VisionV1::ReferenceImage]
989
+ #
990
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
991
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
992
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
993
+ def get_project_location_product_reference_image(name, fields: nil, quota_user: nil, options: nil, &block)
994
+ command = make_simple_command(:get, 'v1/{+name}', options)
995
+ command.response_representation = Google::Apis::VisionV1::ReferenceImage::Representation
996
+ command.response_class = Google::Apis::VisionV1::ReferenceImage
997
+ command.params['name'] = name unless name.nil?
998
+ command.query['fields'] = fields unless fields.nil?
999
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1000
+ execute_or_queue_command(command, &block)
1001
+ end
1002
+
1003
+ # Lists reference images.
1004
+ # Possible errors:
1005
+ # * Returns NOT_FOUND if the parent product does not exist.
1006
+ # * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less
1007
+ # than 1.
1008
+ # @param [String] parent
1009
+ # Resource name of the product containing the reference images.
1010
+ # Format is
1011
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
1012
+ # @param [Fixnum] page_size
1013
+ # The maximum number of items to return. Default 10, maximum 100.
1014
+ # @param [String] page_token
1015
+ # A token identifying a page of results to be returned. This is the value
1016
+ # of `nextPageToken` returned in a previous reference image list request.
1017
+ # Defaults to the first page if not specified.
1018
+ # @param [String] fields
1019
+ # Selector specifying which fields to include in a partial response.
1020
+ # @param [String] quota_user
1021
+ # Available to use for quota purposes for server-side applications. Can be any
1022
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1023
+ # @param [Google::Apis::RequestOptions] options
1024
+ # Request-specific options
1025
+ #
1026
+ # @yield [result, err] Result & error if block supplied
1027
+ # @yieldparam result [Google::Apis::VisionV1::ListReferenceImagesResponse] parsed result object
1028
+ # @yieldparam err [StandardError] error object if request failed
1029
+ #
1030
+ # @return [Google::Apis::VisionV1::ListReferenceImagesResponse]
1031
+ #
1032
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1033
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1034
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1035
+ def list_project_location_product_reference_images(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1036
+ command = make_simple_command(:get, 'v1/{+parent}/referenceImages', options)
1037
+ command.response_representation = Google::Apis::VisionV1::ListReferenceImagesResponse::Representation
1038
+ command.response_class = Google::Apis::VisionV1::ListReferenceImagesResponse
1039
+ command.params['parent'] = parent unless parent.nil?
1040
+ command.query['pageSize'] = page_size unless page_size.nil?
1041
+ command.query['pageToken'] = page_token unless page_token.nil?
1042
+ command.query['fields'] = fields unless fields.nil?
1043
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1044
+ execute_or_queue_command(command, &block)
1045
+ end
302
1046
 
303
1047
  protected
304
1048