Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataSource

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

Overview

The data source for DataScan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1DataSource

Returns a new instance of GoogleCloudDataplexV1DataSource.



3781
3782
3783
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3781

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

Instance Attribute Details

#entityString

Immutable. The Dataplex entity that represents the data source (e.g. BigQuery table) for DataScan, of the form: projects/project_number/locations/ location_id/lakes/lake_id/zones/zone_id/entities/entity_id. Corresponds to the JSON property entity

Returns:

  • (String)


3771
3772
3773
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3771

def entity
  @entity
end

#resourceString

Immutable. The service-qualified full resource name of the cloud resource for a DataScan job to scan against. The field could be: BigQuery table of type " TABLE" for DataProfileScan/DataQualityScan Format: //bigquery.googleapis.com/ projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID Corresponds to the JSON property resource

Returns:

  • (String)


3779
3780
3781
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3779

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3786
3787
3788
3789
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3786

def update!(**args)
  @entity = args[:entity] if args.key?(:entity)
  @resource = args[:resource] if args.key?(:resource)
end