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.
850 851 852 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 850 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
833 834 835 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 833 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
842 843 844 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 842 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
848 849 850 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 848 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
855 856 857 858 859 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 855 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 |