Analytics Hub v1 API - Class Subscription (1.1.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
NameDescription
otherSubscription

Properties

CreationTime

public Timestamp CreationTime { get; set; }

Output only. Timestamp when the subscription was created.

Property Value
TypeDescription
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
TypeDescription
string

HasDataExchange

public bool HasDataExchange { get; }

Gets whether the "data_exchange" field is set

Property Value
TypeDescription
bool

HasListing

public bool HasListing { get; }

Gets whether the "listing" field is set

Property Value
TypeDescription
bool

LastModifyTime

public Timestamp LastModifyTime { get; set; }

Output only. Timestamp when the subscription was last modified.

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
string

OrganizationDisplayName

public string OrganizationDisplayName { get; set; }

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

Property Value
TypeDescription
string

OrganizationId

public string OrganizationId { get; set; }

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

Property Value
TypeDescription
string

ResourceNameCase

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

State

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

Output only. Current state of the subscription.

Property Value
TypeDescription
SubscriptionTypesState

SubscriberContact

public string SubscriberContact { get; set; }

Output only. Email of the subscriber.

Property Value
TypeDescription
string

SubscriptionName

public SubscriptionName SubscriptionName { get; set; }

SubscriptionName-typed view over the Name resource name property.

Property Value
TypeDescription
SubscriptionName