class Google::Apis::VisionV1::PurgeProductsRequest

Request message for the `PurgeProducts` method.

Attributes

delete_orphan_products[RW]

If delete_orphan_products is true, all Products that are not in any ProductSet will be deleted. Corresponds to the JSON property `deleteOrphanProducts` @return [Boolean]

delete_orphan_products?[RW]

If delete_orphan_products is true, all Products that are not in any ProductSet will be deleted. Corresponds to the JSON property `deleteOrphanProducts` @return [Boolean]

force[RW]

The default value is false. Override this value to true to actually perform the purge. Corresponds to the JSON property `force` @return [Boolean]

force?[RW]

The default value is false. Override this value to true to actually perform the purge. Corresponds to the JSON property `force` @return [Boolean]

product_set_purge_config[RW]

Config to control which ProductSet contains the Products to be deleted. Corresponds to the JSON property `productSetPurgeConfig` @return [Google::Apis::VisionV1::ProductSetPurgeConfig]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 9680
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vision_v1/classes.rb, line 9685
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