Class: Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference
- 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
Data source reference can be used to manage related data sources within the data source service.
Instance Attribute Summary collapse
-
#primary_data_source_name ⇒ String
Optional.
-
#self ⇒ Boolean
(also: #self?)
Self should be used to reference the primary data source itself.
-
#supplemental_data_source_name ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataSourceReference
constructor
A new instance of DataSourceReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataSourceReference
Returns a new instance of DataSourceReference.
140 141 142 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 140 def initialize(**args) update!(**args) end |
Instance Attribute Details
#primary_data_source_name ⇒ String
Optional. The name of the primary data source. Format: accounts/
account/
dataSources/
datasource`
Corresponds to the JSON property
primaryDataSourceName`
126 127 128 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 126 def primary_data_source_name @primary_data_source_name end |
#self ⇒ Boolean Also known as: self?
Self should be used to reference the primary data source itself.
Corresponds to the JSON property self
131 132 133 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 131 def self @self end |
#supplemental_data_source_name ⇒ String
Optional. The name of the supplemental data source. Format: accounts/
account
/dataSources/
datasource`
Corresponds to the JSON property
supplementalDataSourceName`
138 139 140 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 138 def supplemental_data_source_name @supplemental_data_source_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
145 146 147 148 149 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 145 def update!(**args) @primary_data_source_name = args[:primary_data_source_name] if args.key?(:primary_data_source_name) @self = args[:self] if args.key?(:self) @supplemental_data_source_name = args[:supplemental_data_source_name] if args.key?(:supplemental_data_source_name) end |