Class: Google::Apis::VisionV1::PurgeProductsRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vision_v1/classes.rb,
lib/google/apis/vision_v1/representations.rb,
lib/google/apis/vision_v1/representations.rb

Overview

Request message for the PurgeProducts method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PurgeProductsRequest

Returns a new instance of PurgeProductsRequest.



9724
9725
9726
# File 'lib/google/apis/vision_v1/classes.rb', line 9724

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#delete_orphan_productsBoolean 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

Returns:

  • (Boolean)


9709
9710
9711
# File 'lib/google/apis/vision_v1/classes.rb', line 9709

def delete_orphan_products
  @delete_orphan_products
end

#forceBoolean 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

Returns:

  • (Boolean)


9716
9717
9718
# File 'lib/google/apis/vision_v1/classes.rb', line 9716

def force
  @force
end

#product_set_purge_configGoogle::Apis::VisionV1::ProductSetPurgeConfig

Config to control which ProductSet contains the Products to be deleted. Corresponds to the JSON property productSetPurgeConfig



9722
9723
9724
# File 'lib/google/apis/vision_v1/classes.rb', line 9722

def product_set_purge_config
  @product_set_purge_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9729
9730
9731
9732
9733
# File 'lib/google/apis/vision_v1/classes.rb', line 9729

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