Class: Google::Apis::AnalyticshubV1::Listing

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Listing

Returns a new instance of Listing.



1450
1451
1452
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1450

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bigquery_datasetGoogle::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



1352
1353
1354
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1352

def bigquery_dataset
  @bigquery_dataset
end

#categoriesArray<String>

Optional. Categories of the listing. Up to two categories are allowed. Corresponds to the JSON property categories

Returns:

  • (Array<String>)


1357
1358
1359
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1357

def categories
  @categories
end

#commercial_infoGoogle::Apis::AnalyticshubV1::GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo

Commercial info contains the information about the commercial data products associated with the listing. Corresponds to the JSON property commercialInfo



1363
1364
1365
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1363

def commercial_info
  @commercial_info
end

#data_providerGoogle::Apis::AnalyticshubV1::DataProvider

Contains details of the data provider. Corresponds to the JSON property dataProvider



1368
1369
1370
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1368

def data_provider
  @data_provider
end

#descriptionString

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

Returns:

  • (String)


1376
1377
1378
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1376

def description
  @description
end

#discovery_typeString

Optional. Type of discovery of the listing on the discovery page. Corresponds to the JSON property discoveryType

Returns:

  • (String)


1381
1382
1383
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1381

def discovery_type
  @discovery_type
end

#display_nameString

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

Returns:

  • (String)


1389
1390
1391
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1389

def display_name
  @display_name
end

#documentationString

Optional. Documentation describing the listing. Corresponds to the JSON property documentation

Returns:

  • (String)


1394
1395
1396
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1394

def documentation
  @documentation
end

#iconString

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.

Returns:

  • (String)


1404
1405
1406
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1404

def icon
  @icon
end

#nameString

Output only. The resource name of the listing. e.g. projects/myproject/ locations/US/dataExchanges/123/listings/456 Corresponds to the JSON property name

Returns:

  • (String)


1410
1411
1412
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1410

def name
  @name
end

#primary_contactString

Optional. Email or URL of the primary point of contact of the listing. Max Length: 1000 bytes. Corresponds to the JSON property primaryContact

Returns:

  • (String)


1416
1417
1418
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1416

def primary_contact
  @primary_contact
end

#publisherGoogle::Apis::AnalyticshubV1::Publisher

Contains details of the listing publisher. Corresponds to the JSON property publisher



1421
1422
1423
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1421

def publisher
  @publisher
end

#pubsub_topicGoogle::Apis::AnalyticshubV1::PubSubTopicSource

Pub/Sub topic source. Corresponds to the JSON property pubsubTopic



1426
1427
1428
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1426

def pubsub_topic
  @pubsub_topic
end

#request_accessString

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

Returns:

  • (String)


1432
1433
1434
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1432

def request_access
  @request_access
end

#resource_typeString

Output only. Listing shared asset type. Corresponds to the JSON property resourceType

Returns:

  • (String)


1437
1438
1439
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1437

def resource_type
  @resource_type
end

#restricted_export_configGoogle::Apis::AnalyticshubV1::RestrictedExportConfig

Restricted export config, used to configure restricted export on linked dataset. Corresponds to the JSON property restrictedExportConfig



1443
1444
1445
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1443

def restricted_export_config
  @restricted_export_config
end

#stateString

Output only. Current state of the listing. Corresponds to the JSON property state

Returns:

  • (String)


1448
1449
1450
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1448

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1455

def update!(**args)
  @bigquery_dataset = args[:bigquery_dataset] if args.key?(:bigquery_dataset)
  @categories = args[:categories] if args.key?(:categories)
  @commercial_info = args[:commercial_info] if args.key?(:commercial_info)
  @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