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.



3997
3998
3999
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3997

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

Instance Attribute Details

#entityString

Immutable. The Dataplex Universal Catalog 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)


3985
3986
3987
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3985

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 either be: Cloud Storage bucket for DataDiscoveryScan Format: //storage.googleapis.com/projects/ PROJECT_ID/buckets/BUCKET_ID or 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)


3995
3996
3997
# File 'lib/google/apis/dataplex_v1/classes.rb', line 3995

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4002
4003
4004
4005
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4002

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