Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
Request for CatalogService.ReplaceCatalogAttribute method.
Instance Attribute Summary collapse
-
#catalog_attribute ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute
Catalog level attribute config for an attribute.
-
#update_mask ⇒ String
Indicates which fields in the provided CatalogAttribute to update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest
constructor
A new instance of GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest
Returns a new instance of GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest.
5997 5998 5999 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5997 def initialize(**args) update!(**args) end |
Instance Attribute Details
#catalog_attribute ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute
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
5988 5989 5990 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5988 def catalog_attribute @catalog_attribute end |
#update_mask ⇒ String
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
5995 5996 5997 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5995 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6002 6003 6004 6005 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6002 def update!(**args) @catalog_attribute = args[:catalog_attribute] if args.key?(:catalog_attribute) @update_mask = args[:update_mask] if args.key?(:update_mask) end |