Class: Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

Optional. The name of the primary data source. Format: accounts/account/ dataSources/datasource` Corresponds to the JSON propertyprimaryDataSourceName`

Returns:

  • (String)


126
127
128
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 126

def primary_data_source_name
  @primary_data_source_name
end

#selfBoolean Also known as: self?

Self should be used to reference the primary data source itself. Corresponds to the JSON property self

Returns:

  • (Boolean)


131
132
133
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 131

def self
  @self
end

#supplemental_data_source_nameString

Optional. The name of the supplemental data source. Format: accounts/account /dataSources/datasource` Corresponds to the JSON propertysupplementalDataSourceName`

Returns:

  • (String)


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