Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig
- 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
Catalog level attribute config.
Instance Attribute Summary collapse
-
#attribute_config_level ⇒ String
Output only.
-
#catalog_attributes ⇒ Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute>
Enable attribute(s) config at catalog level.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaAttributesConfig
constructor
A new instance of GoogleCloudRetailV2betaAttributesConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaAttributesConfig
Returns a new instance of GoogleCloudRetailV2betaAttributesConfig.
1269 1270 1271 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1269 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
1252 1253 1254 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1252 def attribute_config_level @attribute_config_level end |
#catalog_attributes ⇒ Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute>
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
1261 1262 1263 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1261 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
1267 1268 1269 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1267 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1274 1275 1276 1277 1278 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 1274 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 |