Analytics Hub v1 API - Class Subscription (1.6.0)

public sealed class Subscription : IMessage<Subscription>, IEquatable<Subscription>, IDeepCloneable<Subscription>, IBufferMessage, IMessage

Reference documentation and code samples for the Analytics Hub v1 API 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.

Inheritance

object > Subscription

Namespace

Google.Cloud.BigQuery.AnalyticsHub.V1

Assembly

Google.Cloud.BigQuery.AnalyticsHub.V1.dll

Constructors

Subscription()

public Subscription()

Subscription(Subscription)

public Subscription(Subscription other)
Parameter
Name Description
other Subscription

Properties

CreationTime

public Timestamp CreationTime { get; set; }

Output only. Timestamp when the subscription was created.

Property Value
Type Description
Timestamp

DataExchange

public string DataExchange { get; set; }

Output only. Resource name of the source Data Exchange. e.g. projects/123/locations/US/dataExchanges/456

Property Value
Type Description
string

HasDataExchange

public bool HasDataExchange { get; }

Gets whether the "data_exchange" field is set

Property Value
Type Description
bool

HasListing

public bool HasListing { get; }

Gets whether the "listing" field is set

Property Value
Type Description
bool

LastModifyTime

public Timestamp LastModifyTime { get; set; }

Output only. Timestamp when the subscription was last modified.

Property Value
Type Description
Timestamp

LinkedDatasetMap

public MapField<string, Subscription.Types.LinkedResource> LinkedDatasetMap { get; }

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.

Property Value
Type Description
MapFieldstringSubscriptionTypesLinkedResource

Listing

public string Listing { get; set; }

Output only. Resource name of the source Listing. e.g. projects/123/locations/US/dataExchanges/456/listings/789

Property Value
Type Description
string

Name

public string Name { get; set; }

Output only. The resource name of the subscription. e.g. projects/myproject/locations/US/subscriptions/123.

Property Value
Type Description
string

OrganizationDisplayName

public string OrganizationDisplayName { get; set; }

Output only. Display name of the project of this subscription.

Property Value
Type Description
string

OrganizationId

public string OrganizationId { get; set; }

Output only. Organization of the project this subscription belongs to.

Property Value
Type Description
string

ResourceNameCase

public Subscription.ResourceNameOneofCase ResourceNameCase { get; }
Property Value
Type Description
SubscriptionResourceNameOneofCase

State

public Subscription.Types.State State { get; set; }

Output only. Current state of the subscription.

Property Value
Type Description
SubscriptionTypesState

SubscriberContact

public string SubscriberContact { get; set; }

Output only. Email of the subscriber.

Property Value
Type Description
string

SubscriptionName

public SubscriptionName SubscriptionName { get; set; }

SubscriptionName-typed view over the Name resource name property.

Property Value
Type Description
SubscriptionName