Class: Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2AttributesConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/representations.rb
Overview
Catalog level attribute config.
Instance Attribute Summary collapse
-
#attribute_config_level ⇒ String
Output only.
-
#catalog_attributes ⇒ Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttribute>
Enable attribute(s) config at catalog level.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2AttributesConfig
constructor
A new instance of GoogleCloudRetailV2AttributesConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2AttributesConfig
Returns a new instance of GoogleCloudRetailV2AttributesConfig.
513 514 515 |
# File 'lib/google/apis/retail_v2/classes.rb', line 513 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
496 497 498 |
# File 'lib/google/apis/retail_v2/classes.rb', line 496 def attribute_config_level @attribute_config_level end |
#catalog_attributes ⇒ Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttribute>
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
505 506 507 |
# File 'lib/google/apis/retail_v2/classes.rb', line 505 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
511 512 513 |
# File 'lib/google/apis/retail_v2/classes.rb', line 511 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
518 519 520 521 522 |
# File 'lib/google/apis/retail_v2/classes.rb', line 518 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 |