Reference documentation and code samples for the Google Cloud BigQuery Analytics Hub V1 Client class Subscription.
A subscription represents a subscribers' access to a particular set of published data. It contains references to associated listings, data exchanges, and linked datasets.
Generated from protobuf message google.cloud.bigquery.analyticshub.v1.Subscription
Namespace
Google \ Cloud \ BigQuery \ AnalyticsHub \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ listing
string
Output only. Resource name of the source Listing. e.g. projects/123/locations/US/dataExchanges/456/listings/789
↳ data_exchange
string
Output only. Resource name of the source Data Exchange. e.g. projects/123/locations/US/dataExchanges/456
↳ name
string
Output only. The resource name of the subscription. e.g. projects/myproject/locations/US/subscriptions/123
.
↳ creation_time
↳ last_modify_time
↳ organization_id
string
Output only. Organization of the project this subscription belongs to.
↳ organization_display_name
string
Output only. Display name of the project of this subscription.
↳ state
int
Output only. Current state of the subscription.
↳ linked_dataset_map
array| Google\Protobuf\Internal\MapField
Output only. Map of listing resource names to associated linked resource, e.g. projects/123/locations/US/dataExchanges/456/listings/789 -> projects/123/datasets/my_dataset For listing-level subscriptions, this is a map of size 1. Only contains values if state == STATE_ACTIVE.
↳ subscriber_contact
string
Output only. Email of the subscriber.
getListing
Output only. Resource name of the source Listing.
e.g. projects/123/locations/US/dataExchanges/456/listings/789
string
hasListing
setListing
Output only. Resource name of the source Listing.
e.g. projects/123/locations/US/dataExchanges/456/listings/789
var
string
$this
getDataExchange
Output only. Resource name of the source Data Exchange.
e.g. projects/123/locations/US/dataExchanges/456
string
hasDataExchange
setDataExchange
Output only. Resource name of the source Data Exchange.
e.g. projects/123/locations/US/dataExchanges/456
var
string
$this
getName
Output only. The resource name of the subscription.
e.g. projects/myproject/locations/US/subscriptions/123
.
string
setName
Output only. The resource name of the subscription.
e.g. projects/myproject/locations/US/subscriptions/123
.
var
string
$this
getCreationTime
Output only. Timestamp when the subscription was created.
hasCreationTime
clearCreationTime
setCreationTime
Output only. Timestamp when the subscription was created.
$this
getLastModifyTime
Output only. Timestamp when the subscription was last modified.
hasLastModifyTime
clearLastModifyTime
setLastModifyTime
Output only. Timestamp when the subscription was last modified.
$this
getOrganizationId
Output only. Organization of the project this subscription belongs to.
string
setOrganizationId
Output only. Organization of the project this subscription belongs to.
var
string
$this
getOrganizationDisplayName
Output only. Display name of the project of this subscription.
string
setOrganizationDisplayName
Output only. Display name of the project of this subscription.
var
string
$this
getState
Output only. Current state of the subscription.
int
setState
Output only. Current state of the subscription.
var
int
$this
getLinkedDatasetMap
Output only. Map of listing resource names to associated linked resource, e.g. projects/123/locations/US/dataExchanges/456/listings/789 -> projects/123/datasets/my_dataset For listing-level subscriptions, this is a map of size 1.
Only contains values if state == STATE_ACTIVE.
setLinkedDatasetMap
Output only. Map of listing resource names to associated linked resource, e.g. projects/123/locations/US/dataExchanges/456/listings/789 -> projects/123/datasets/my_dataset For listing-level subscriptions, this is a map of size 1.
Only contains values if state == STATE_ACTIVE.
$this
getSubscriberContact
Output only. Email of the subscriber.
string
setSubscriberContact
Output only. Email of the subscriber.
var
string
$this
getResourceName
string