Class: Google::Apis::AnalyticshubV1beta1::Subscription

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticshub_v1beta1/classes.rb,
lib/google/apis/analyticshub_v1beta1/representations.rb,
lib/google/apis/analyticshub_v1beta1/representations.rb

Overview

A subscription represents a subscribers' access to a particular set of published data. It contains references to associated listings, data exchanges, and linked datasets. TODO(b/267528977) Consider port the new resource to v1beta1 and dataexchange APIs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Subscription

Returns a new instance of Subscription.



1099
1100
1101
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1099

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

Instance Attribute Details

#creation_timeString

Output only. Timestamp when the subscription was created. Corresponds to the JSON property creationTime

Returns:

  • (String)


1046
1047
1048
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1046

def creation_time
  @creation_time
end

#data_exchangeString

Output only. Resource name of the source Data Exchange. e.g. projects/123/ locations/US/dataExchanges/456 Corresponds to the JSON property dataExchange

Returns:

  • (String)


1052
1053
1054
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1052

def data_exchange
  @data_exchange
end

#last_modify_timeString

Output only. Timestamp when the subscription was last modified. Corresponds to the JSON property lastModifyTime

Returns:

  • (String)


1057
1058
1059
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1057

def last_modify_time
  @last_modify_time
end

#linked_dataset_mapHash<String,Google::Apis::AnalyticshubV1beta1::LinkedResource>

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. Corresponds to the JSON property linkedDatasetMap



1065
1066
1067
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1065

def linked_dataset_map
  @linked_dataset_map
end

#listingString

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

Returns:

  • (String)


1071
1072
1073
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1071

def listing
  @listing
end

#nameString

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

Returns:

  • (String)


1077
1078
1079
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1077

def name
  @name
end

#organization_display_nameString

Output only. Display name of the project of this subscription. Corresponds to the JSON property organizationDisplayName

Returns:

  • (String)


1082
1083
1084
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1082

def organization_display_name
  @organization_display_name
end

#organization_idString

Output only. Organization of the project this subscription belongs to. Corresponds to the JSON property organizationId

Returns:

  • (String)


1087
1088
1089
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1087

def organization_id
  @organization_id
end

#stateString

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

Returns:

  • (String)


1092
1093
1094
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1092

def state
  @state
end

#subscriber_contactString

Output only. Email of the subscriber. Corresponds to the JSON property subscriberContact

Returns:

  • (String)


1097
1098
1099
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1097

def subscriber_contact
  @subscriber_contact
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1104

def update!(**args)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @data_exchange = args[:data_exchange] if args.key?(:data_exchange)
  @last_modify_time = args[:last_modify_time] if args.key?(:last_modify_time)
  @linked_dataset_map = args[:linked_dataset_map] if args.key?(:linked_dataset_map)
  @listing = args[:listing] if args.key?(:listing)
  @name = args[:name] if args.key?(:name)
  @organization_display_name = args[:organization_display_name] if args.key?(:organization_display_name)
  @organization_id = args[:organization_id] if args.key?(:organization_id)
  @state = args[:state] if args.key?(:state)
  @subscriber_contact = args[:subscriber_contact] if args.key?(:subscriber_contact)
end