Class: Google::Apis::AnalyticshubV1::Listing
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticshubV1::Listing
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticshub_v1/classes.rb,
lib/google/apis/analyticshub_v1/representations.rb,
lib/google/apis/analyticshub_v1/representations.rb
Overview
A listing is what gets published into a data exchange that a subscriber can subscribe to. It contains a reference to the data source along with descriptive information that will help subscribers find and subscribe the data.
Instance Attribute Summary collapse
-
#bigquery_dataset ⇒ Google::Apis::AnalyticshubV1::BigQueryDatasetSource
A reference to a shared dataset.
-
#categories ⇒ Array<String>
Optional.
-
#data_provider ⇒ Google::Apis::AnalyticshubV1::DataProvider
Contains details of the data provider.
-
#description ⇒ String
Optional.
-
#discovery_type ⇒ String
Optional.
-
#display_name ⇒ String
Required.
-
#documentation ⇒ String
Optional.
-
#icon ⇒ String
Optional.
-
#name ⇒ String
Output only.
-
#primary_contact ⇒ String
Optional.
-
#publisher ⇒ Google::Apis::AnalyticshubV1::Publisher
Contains details of the listing publisher.
-
#pubsub_topic ⇒ Google::Apis::AnalyticshubV1::PubSubTopicSource
Pub/Sub topic source.
-
#request_access ⇒ String
Optional.
-
#resource_type ⇒ String
Output only.
-
#restricted_export_config ⇒ Google::Apis::AnalyticshubV1::RestrictedExportConfig
Restricted export config, used to configure restricted export on linked dataset.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Listing
constructor
A new instance of Listing.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Listing
Returns a new instance of Listing.
1358 1359 1360 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1358 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bigquery_dataset ⇒ Google::Apis::AnalyticshubV1::BigQueryDatasetSource
A reference to a shared dataset. It is an existing BigQuery dataset with a
collection of objects such as tables and views that you want to share with
subscribers. When subscriber's subscribe to a listing, Analytics Hub creates a
linked dataset in the subscriber's project. A Linked dataset is an opaque,
read-only BigQuery dataset that serves as a symbolic link to a shared
dataset.
Corresponds to the JSON property bigqueryDataset
1266 1267 1268 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1266 def bigquery_dataset @bigquery_dataset end |
#categories ⇒ Array<String>
Optional. Categories of the listing. Up to two categories are allowed.
Corresponds to the JSON property categories
1271 1272 1273 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1271 def categories @categories end |
#data_provider ⇒ Google::Apis::AnalyticshubV1::DataProvider
Contains details of the data provider.
Corresponds to the JSON property dataProvider
1276 1277 1278 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1276 def data_provider @data_provider end |
#description ⇒ String
Optional. Short description of the listing. The description must not contain
Unicode non-characters and C0 and C1 control codes except tabs (HT), new lines
(LF), carriage returns (CR), and page breaks (FF). Default value is an empty
string. Max length: 2000 bytes.
Corresponds to the JSON property description
1284 1285 1286 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1284 def description @description end |
#discovery_type ⇒ String
Optional. Type of discovery of the listing on the discovery page.
Corresponds to the JSON property discoveryType
1289 1290 1291 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1289 def discovery_type @discovery_type end |
#display_name ⇒ String
Required. Human-readable display name of the listing. The display name must
contain only Unicode letters, numbers (0-9), underscores (_), dashes (-),
spaces ( ), ampersands (&) and can't start or end with spaces. Default value
is an empty string. Max length: 63 bytes.
Corresponds to the JSON property displayName
1297 1298 1299 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1297 def display_name @display_name end |
#documentation ⇒ String
Optional. Documentation describing the listing.
Corresponds to the JSON property documentation
1302 1303 1304 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1302 def documentation @documentation end |
#icon ⇒ String
Optional. Base64 encoded image representing the listing. Max Size: 3.0MiB
Expected image dimensions are 512x512 pixels, however the API only performs
validation on size of the encoded data. Note: For byte fields, the contents of
the field are base64-encoded (which increases the size of the data by 33-36%)
when using JSON on the wire.
Corresponds to the JSON property icon
NOTE: Values are automatically base64 encoded/decoded in the client library.
1312 1313 1314 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1312 def icon @icon end |
#name ⇒ String
Output only. The resource name of the listing. e.g. projects/myproject/
locations/US/dataExchanges/123/listings/456
Corresponds to the JSON property name
1318 1319 1320 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1318 def name @name end |
#primary_contact ⇒ String
Optional. Email or URL of the primary point of contact of the listing. Max
Length: 1000 bytes.
Corresponds to the JSON property primaryContact
1324 1325 1326 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1324 def primary_contact @primary_contact end |
#publisher ⇒ Google::Apis::AnalyticshubV1::Publisher
Contains details of the listing publisher.
Corresponds to the JSON property publisher
1329 1330 1331 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1329 def publisher @publisher end |
#pubsub_topic ⇒ Google::Apis::AnalyticshubV1::PubSubTopicSource
Pub/Sub topic source.
Corresponds to the JSON property pubsubTopic
1334 1335 1336 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1334 def pubsub_topic @pubsub_topic end |
#request_access ⇒ String
Optional. Email or URL of the request access of the listing. Subscribers can
use this reference to request access. Max Length: 1000 bytes.
Corresponds to the JSON property requestAccess
1340 1341 1342 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1340 def request_access @request_access end |
#resource_type ⇒ String
Output only. Listing shared asset type.
Corresponds to the JSON property resourceType
1345 1346 1347 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1345 def resource_type @resource_type end |
#restricted_export_config ⇒ Google::Apis::AnalyticshubV1::RestrictedExportConfig
Restricted export config, used to configure restricted export on linked
dataset.
Corresponds to the JSON property restrictedExportConfig
1351 1352 1353 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1351 def restricted_export_config @restricted_export_config end |
#state ⇒ String
Output only. Current state of the listing.
Corresponds to the JSON property state
1356 1357 1358 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1356 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1363 def update!(**args) @bigquery_dataset = args[:bigquery_dataset] if args.key?(:bigquery_dataset) @categories = args[:categories] if args.key?(:categories) @data_provider = args[:data_provider] if args.key?(:data_provider) @description = args[:description] if args.key?(:description) @discovery_type = args[:discovery_type] if args.key?(:discovery_type) @display_name = args[:display_name] if args.key?(:display_name) @documentation = args[:documentation] if args.key?(:documentation) @icon = args[:icon] if args.key?(:icon) @name = args[:name] if args.key?(:name) @primary_contact = args[:primary_contact] if args.key?(:primary_contact) @publisher = args[:publisher] if args.key?(:publisher) @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic) @request_access = args[:request_access] if args.key?(:request_access) @resource_type = args[:resource_type] if args.key?(:resource_type) @restricted_export_config = args[:restricted_export_config] if args.key?(:restricted_export_config) @state = args[:state] if args.key?(:state) end |