Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAddCatalogAttributeRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAddCatalogAttributeRequest
- 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.AddCatalogAttribute method.
Instance Attribute Summary collapse
-
#catalog_attribute ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute
Catalog level attribute config for an attribute.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaAddCatalogAttributeRequest
constructor
A new instance of GoogleCloudRetailV2alphaAddCatalogAttributeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaAddCatalogAttributeRequest
Returns a new instance of GoogleCloudRetailV2alphaAddCatalogAttributeRequest.
1186 1187 1188 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1186 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
1184 1185 1186 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1184 def catalog_attribute @catalog_attribute end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1191 1192 1193 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1191 def update!(**args) @catalog_attribute = args[:catalog_attribute] if args.key?(:catalog_attribute) end |