Class: Google::Apis::VisionV1::ProductSetPurgeConfig

Inherits:
Object
  • Object
show all
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

Config to control which ProductSet contains the Products to be deleted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ProductSetPurgeConfig

Returns a new instance of ProductSetPurgeConfig.



10147
10148
10149
# File 'generated/google/apis/vision_v1/classes.rb', line 10147

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

Instance Attribute Details

#product_set_idString

The ProductSet that contains the Products to delete. If a Product is a member of product_set_id in addition to other ProductSets, the Product will still be deleted. Corresponds to the JSON property productSetId

Returns:

  • (String)


10145
10146
10147
# File 'generated/google/apis/vision_v1/classes.rb', line 10145

def product_set_id
  @product_set_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10152
10153
10154
# File 'generated/google/apis/vision_v1/classes.rb', line 10152

def update!(**args)
  @product_set_id = args[:product_set_id] if args.key?(:product_set_id)
end