Class: Google::Apis::VisionV1::PurgeProductsRequest
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::PurgeProductsRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/vision_v1/classes.rb,
generated/google/apis/vision_v1/representations.rb,
generated/google/apis/vision_v1/representations.rb
Overview
Request message for the PurgeProducts
method.
Instance Attribute Summary collapse
-
#delete_orphan_products ⇒ Boolean
(also: #delete_orphan_products?)
If delete_orphan_products is true, all Products that are not in any ProductSet will be deleted.
-
#force ⇒ Boolean
(also: #force?)
The default value is false.
-
#product_set_purge_config ⇒ Google::Apis::VisionV1::ProductSetPurgeConfig
Config to control which ProductSet contains the Products to be deleted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PurgeProductsRequest
constructor
A new instance of PurgeProductsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PurgeProductsRequest
Returns a new instance of PurgeProductsRequest.
10211 10212 10213 |
# File 'generated/google/apis/vision_v1/classes.rb', line 10211 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delete_orphan_products ⇒ Boolean Also known as: delete_orphan_products?
If delete_orphan_products is true, all Products that are not in any
ProductSet will be deleted.
Corresponds to the JSON property deleteOrphanProducts
10196 10197 10198 |
# File 'generated/google/apis/vision_v1/classes.rb', line 10196 def delete_orphan_products @delete_orphan_products end |
#force ⇒ Boolean Also known as: force?
The default value is false. Override this value to true to actually perform
the purge.
Corresponds to the JSON property force
10203 10204 10205 |
# File 'generated/google/apis/vision_v1/classes.rb', line 10203 def force @force end |
#product_set_purge_config ⇒ Google::Apis::VisionV1::ProductSetPurgeConfig
Config to control which ProductSet contains the Products to be deleted.
Corresponds to the JSON property productSetPurgeConfig
10209 10210 10211 |
# File 'generated/google/apis/vision_v1/classes.rb', line 10209 def product_set_purge_config @product_set_purge_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10216 10217 10218 10219 10220 |
# File 'generated/google/apis/vision_v1/classes.rb', line 10216 def update!(**args) @delete_orphan_products = args[:delete_orphan_products] if args.key?(:delete_orphan_products) @force = args[:force] if args.key?(:force) @product_set_purge_config = args[:product_set_purge_config] if args.key?(:product_set_purge_config) end |