Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig
- 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
Catalog level attribute config.
Instance Attribute Summary collapse
-
#attribute_config_level ⇒ String
Output only.
-
#catalog_attributes ⇒ Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute>
Enable attribute(s) config at catalog level.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaAttributesConfig
constructor
A new instance of GoogleCloudRetailV2alphaAttributesConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaAttributesConfig
Returns a new instance of GoogleCloudRetailV2alphaAttributesConfig.
1485 1486 1487 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1485 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute_config_level ⇒ String
Output only. The AttributeConfigLevel used for this catalog.
Corresponds to the JSON property attributeConfigLevel
1468 1469 1470 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1468 def attribute_config_level @attribute_config_level end |
#catalog_attributes ⇒ Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalogAttribute>
Enable attribute(s) config at catalog level. For example, indexable,
dynamic_facetable, or searchable for each attribute. The key is catalog
attribute's name. For example: color
, brands
, attributes.custom_attribute
, such as attributes.xyz
. The maximum number of catalog attributes allowed
in a request is 1000.
Corresponds to the JSON property catalogAttributes
1477 1478 1479 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1477 def catalog_attributes @catalog_attributes end |
#name ⇒ String
Required. Immutable. The fully qualified resource name of the attribute config.
Format: projects/*/locations/*/catalogs/*/attributesConfig
Corresponds to the JSON property name
1483 1484 1485 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1483 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1490 1491 1492 1493 1494 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1490 def update!(**args) @attribute_config_level = args[:attribute_config_level] if args.key?(:attribute_config_level) @catalog_attributes = args[:catalog_attributes] if args.key?(:catalog_attributes) @name = args[:name] if args.key?(:name) end |