Class: Google::Apis::MerchantapiDatasourcesV1beta::DataSource
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiDatasourcesV1beta::DataSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_datasources_v1beta/classes.rb,
lib/google/apis/merchantapi_datasources_v1beta/representations.rb,
lib/google/apis/merchantapi_datasources_v1beta/representations.rb
Overview
The data source for the Merchant Center account.
Instance Attribute Summary collapse
-
#data_source_id ⇒ Fixnum
Output only.
-
#display_name ⇒ String
Required.
-
#file_input ⇒ Google::Apis::MerchantapiDatasourcesV1beta::FileInput
The data specific for file data sources.
-
#input ⇒ String
Output only.
-
#local_inventory_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::LocalInventoryDataSource
The local inventory data source.
-
#merchant_review_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::MerchantReviewDataSource
The merchant review data source.
-
#name ⇒ String
Identifier.
-
#primary_product_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::PrimaryProductDataSource
The primary data source for local and online products.
-
#product_review_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::ProductReviewDataSource
The product review data source.
-
#promotion_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::PromotionDataSource
The promotion data source.
-
#regional_inventory_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::RegionalInventoryDataSource
The regional inventory data source.
-
#supplemental_product_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::SupplementalProductDataSource
The supplemental data source for local and online products.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataSource
constructor
A new instance of DataSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataSource
Returns a new instance of DataSource.
96 97 98 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 96 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_source_id ⇒ Fixnum
Output only. The data source id.
Corresponds to the JSON property dataSourceId
33 34 35 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 33 def data_source_id @data_source_id end |
#display_name ⇒ String
Required. The displayed data source name in the Merchant Center UI.
Corresponds to the JSON property displayName
38 39 40 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 38 def display_name @display_name end |
#file_input ⇒ Google::Apis::MerchantapiDatasourcesV1beta::FileInput
The data specific for file data sources. This field is empty for other data
source inputs.
Corresponds to the JSON property fileInput
44 45 46 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 44 def file_input @file_input end |
#input ⇒ String
Output only. Determines the type of input to the data source. Based on the
input some settings might not work. Only generic data sources can be created
through the API.
Corresponds to the JSON property input
51 52 53 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 51 def input @input end |
#local_inventory_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::LocalInventoryDataSource
The local inventory data source.
Corresponds to the JSON property localInventoryDataSource
56 57 58 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 56 def local_inventory_data_source @local_inventory_data_source end |
#merchant_review_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::MerchantReviewDataSource
The merchant review data source.
Corresponds to the JSON property merchantReviewDataSource
61 62 63 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 61 def merchant_review_data_source @merchant_review_data_source end |
#name ⇒ String
Identifier. The name of the data source. Format: datasource.name=accounts/`
account`/dataSources/`datasource
Corresponds to the JSON property
name`
67 68 69 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 67 def name @name end |
#primary_product_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::PrimaryProductDataSource
The primary data source for local and online products.
Corresponds to the JSON property primaryProductDataSource
72 73 74 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 72 def primary_product_data_source @primary_product_data_source end |
#product_review_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::ProductReviewDataSource
The product review data source.
Corresponds to the JSON property productReviewDataSource
77 78 79 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 77 def product_review_data_source @product_review_data_source end |
#promotion_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::PromotionDataSource
The promotion data source.
Corresponds to the JSON property promotionDataSource
82 83 84 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 82 def promotion_data_source @promotion_data_source end |
#regional_inventory_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::RegionalInventoryDataSource
The regional inventory data source.
Corresponds to the JSON property regionalInventoryDataSource
87 88 89 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 87 def regional_inventory_data_source @regional_inventory_data_source end |
#supplemental_product_data_source ⇒ Google::Apis::MerchantapiDatasourcesV1beta::SupplementalProductDataSource
The supplemental data source for local and online products. After creation,
you should make sure to link the supplemental product data source into one or
more primary product data sources.
Corresponds to the JSON property supplementalProductDataSource
94 95 96 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 94 def supplemental_product_data_source @supplemental_product_data_source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 101 def update!(**args) @data_source_id = args[:data_source_id] if args.key?(:data_source_id) @display_name = args[:display_name] if args.key?(:display_name) @file_input = args[:file_input] if args.key?(:file_input) @input = args[:input] if args.key?(:input) @local_inventory_data_source = args[:local_inventory_data_source] if args.key?(:local_inventory_data_source) @merchant_review_data_source = args[:merchant_review_data_source] if args.key?(:merchant_review_data_source) @name = args[:name] if args.key?(:name) @primary_product_data_source = args[:primary_product_data_source] if args.key?(:primary_product_data_source) @product_review_data_source = args[:product_review_data_source] if args.key?(:product_review_data_source) @promotion_data_source = args[:promotion_data_source] if args.key?(:promotion_data_source) @regional_inventory_data_source = args[:regional_inventory_data_source] if args.key?(:regional_inventory_data_source) @supplemental_product_data_source = args[:supplemental_product_data_source] if args.key?(:supplemental_product_data_source) end |