Class: Google::Apis::AnalyticshubV1beta1::Subscription
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticshubV1beta1::Subscription
- 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.
Instance Attribute Summary collapse
-
#creation_time ⇒ String
Output only.
-
#data_exchange ⇒ String
Output only.
-
#last_modify_time ⇒ String
Output only.
-
#linked_dataset_map ⇒ Hash<String,Google::Apis::AnalyticshubV1beta1::LinkedResource>
Output only.
-
#listing ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#organization_display_name ⇒ String
Output only.
-
#organization_id ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#subscriber_contact ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Subscription
constructor
A new instance of Subscription.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Subscription
Returns a new instance of Subscription.
1096 1097 1098 |
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1096 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_time ⇒ String
Output only. Timestamp when the subscription was created.
Corresponds to the JSON property creationTime
1043 1044 1045 |
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1043 def creation_time @creation_time end |
#data_exchange ⇒ String
Output only. Resource name of the source Data Exchange. e.g. projects/123/
locations/US/dataExchanges/456
Corresponds to the JSON property dataExchange
1049 1050 1051 |
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1049 def data_exchange @data_exchange end |
#last_modify_time ⇒ String
Output only. Timestamp when the subscription was last modified.
Corresponds to the JSON property lastModifyTime
1054 1055 1056 |
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1054 def last_modify_time @last_modify_time end |
#linked_dataset_map ⇒ Hash<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
1062 1063 1064 |
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1062 def linked_dataset_map @linked_dataset_map end |
#listing ⇒ String
Output only. Resource name of the source Listing. e.g. projects/123/locations/
US/dataExchanges/456/listings/789
Corresponds to the JSON property listing
1068 1069 1070 |
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1068 def listing @listing end |
#name ⇒ String
Output only. The resource name of the subscription. e.g. projects/myproject/
locations/US/subscriptions/123.
Corresponds to the JSON property name
1074 1075 1076 |
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1074 def name @name end |
#organization_display_name ⇒ String
Output only. Display name of the project of this subscription.
Corresponds to the JSON property organizationDisplayName
1079 1080 1081 |
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1079 def organization_display_name @organization_display_name end |
#organization_id ⇒ String
Output only. Organization of the project this subscription belongs to.
Corresponds to the JSON property organizationId
1084 1085 1086 |
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1084 def organization_id @organization_id end |
#state ⇒ String
Output only. Current state of the subscription.
Corresponds to the JSON property state
1089 1090 1091 |
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1089 def state @state end |
#subscriber_contact ⇒ String
Output only. Email of the subscriber.
Corresponds to the JSON property subscriberContact
1094 1095 1096 |
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1094 def subscriber_contact @subscriber_contact end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 |
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 1101 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 |