Class: Google::Apis::AnalyticshubV1::BigQueryDatasetSource

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

Overview

A reference to a shared dataset. It is an existing BigQuery dataset with a collection of objects such as tables and views that you want to share with subscribers. When subscriber's subscribe to a listing, Analytics Hub creates a linked dataset in the subscriber's project. A Linked dataset is an opaque, read-only BigQuery dataset that serves as a symbolic link to a shared dataset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BigQueryDatasetSource

Returns a new instance of BigQueryDatasetSource.



123
124
125
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 123

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

Instance Attribute Details

#datasetString

Resource name of the dataset source for this listing. e.g. projects/myproject/ datasets/123 Corresponds to the JSON property dataset

Returns:

  • (String)


109
110
111
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 109

def dataset
  @dataset
end

#restricted_export_policyGoogle::Apis::AnalyticshubV1::RestrictedExportPolicy

Restricted export policy used to configure restricted export on linked dataset. Corresponds to the JSON property restrictedExportPolicy



114
115
116
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 114

def restricted_export_policy
  @restricted_export_policy
end

#selected_resourcesArray<Google::Apis::AnalyticshubV1::SelectedResource>

Optional. Resources in this dataset that are selectively shared. If this field is empty, then the entire dataset (all resources) are shared. This field is only valid for data clean room exchanges. Corresponds to the JSON property selectedResources



121
122
123
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 121

def selected_resources
  @selected_resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



128
129
130
131
132
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 128

def update!(**args)
  @dataset = args[:dataset] if args.key?(:dataset)
  @restricted_export_policy = args[:restricted_export_policy] if args.key?(:restricted_export_policy)
  @selected_resources = args[:selected_resources] if args.key?(:selected_resources)
end