Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaReplaceCatalogAttributeRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaReplaceCatalogAttributeRequest
- 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
-
#catalog_attribute ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute
Catalog level attribute config for an attribute.
-
#update_mask ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaReplaceCatalogAttributeRequest
constructor
A new instance of GoogleCloudRetailV2betaReplaceCatalogAttributeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaReplaceCatalogAttributeRequest
Returns a new instance of GoogleCloudRetailV2betaReplaceCatalogAttributeRequest.
7542 7543 7544 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7542 def initialize(**args) update!(**args) end |
Instance Attribute Details
#catalog_attribute ⇒ Google::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
7533 7534 7535 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7533 def catalog_attribute @catalog_attribute end |
#update_mask ⇒ String
Optional. 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
7540 7541 7542 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7540 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7547 7548 7549 7550 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7547 def update!(**args) @catalog_attribute = args[:catalog_attribute] if args.key?(:catalog_attribute) @update_mask = args[:update_mask] if args.key?(:update_mask) end |