Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalog
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCatalog
- 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
The catalog configuration.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Required.
-
#merchant_center_linking_config ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaMerchantCenterLinkingConfig
Configures Merchant Center linking.
-
#name ⇒ String
Required.
-
#product_level_config ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductLevelConfig
Configures what level the product should be uploaded with regards to how users will be send events and how predictions will be made.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaCatalog
constructor
A new instance of GoogleCloudRetailV2alphaCatalog.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaCatalog
Returns a new instance of GoogleCloudRetailV2alphaCatalog.
1871 1872 1873 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1871 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Required. Immutable. The catalog display name. This field must be a UTF-8
encoded string with a length limit of 128 characters. Otherwise, an
INVALID_ARGUMENT error is returned.
Corresponds to the JSON property displayName
1852 1853 1854 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1852 def display_name @display_name end |
#merchant_center_linking_config ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaMerchantCenterLinkingConfig
Configures Merchant Center linking. Links contained in the config will be used
to sync data from a Merchant Center account to a Cloud Retail branch.
Corresponds to the JSON property merchantCenterLinkingConfig
1858 1859 1860 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1858 def merchant_center_linking_config @merchant_center_linking_config end |
#name ⇒ String
Required. Immutable. The fully qualified resource name of the catalog.
Corresponds to the JSON property name
1863 1864 1865 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1863 def name @name end |
#product_level_config ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductLevelConfig
Configures what level the product should be uploaded with regards to how users
will be send events and how predictions will be made.
Corresponds to the JSON property productLevelConfig
1869 1870 1871 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1869 def product_level_config @product_level_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1876 1877 1878 1879 1880 1881 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1876 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @merchant_center_linking_config = args[:merchant_center_linking_config] if args.key?(:merchant_center_linking_config) @name = args[:name] if args.key?(:name) @product_level_config = args[:product_level_config] if args.key?(:product_level_config) end |