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.



3953
3954
3955
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3953

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)


3943
3944
3945
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3943

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)


3951
3952
3953
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3951

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3958
3959
3960
3961
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3958

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