Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaReplaceCatalogAttributeRequest

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

Overview

Request for CatalogService.ReplaceCatalogAttribute method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaReplaceCatalogAttributeRequest

Returns a new instance of GoogleCloudRetailV2betaReplaceCatalogAttributeRequest.



3664
3665
3666
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3664

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

Instance Attribute Details

#catalog_attributeGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute

Catalog level attribute config for an attribute. For example, if customers want to enable/disable facet for a specific attribute. Corresponds to the JSON property catalogAttribute



3655
3656
3657
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3655

def catalog_attribute
  @catalog_attribute
end

#update_maskString

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated. Corresponds to the JSON property updateMask

Returns:

  • (String)


3662
3663
3664
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3662

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3669
3670
3671
3672
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3669

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