Class: Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1DataSource

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

Overview

Physical location of an entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1DataSource

Returns a new instance of GoogleCloudDatacatalogV1DataSource.



564
565
566
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 564

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

Instance Attribute Details

#resourceString

Full name of a resource as defined by the service. For example: //bigquery. googleapis.com/projects/PROJECT_ID/locations/LOCATION/datasets/DATASET_ID /tables/TABLE_ID` Corresponds to the JSON propertyresource`

Returns:

  • (String)


547
548
549
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 547

def resource
  @resource
end

#serviceString

Service that physically stores the data. Corresponds to the JSON property service

Returns:

  • (String)


552
553
554
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 552

def service
  @service
end

#source_entryString

Output only. Data Catalog entry name, if applicable. Corresponds to the JSON property sourceEntry

Returns:

  • (String)


557
558
559
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 557

def source_entry
  @source_entry
end

#storage_propertiesGoogle::Apis::DatacatalogV1::GoogleCloudDatacatalogV1StorageProperties

Details the properties of the underlying storage. Corresponds to the JSON property storageProperties



562
563
564
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 562

def storage_properties
  @storage_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



569
570
571
572
573
574
# File 'lib/google/apis/datacatalog_v1/classes.rb', line 569

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