Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1AssetResourceSpec

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

Identifies the cloud resource that is referenced by this asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1AssetResourceSpec

Returns a new instance of GoogleCloudDataplexV1AssetResourceSpec.



671
672
673
# File 'lib/google/apis/dataplex_v1/classes.rb', line 671

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

Instance Attribute Details

#nameString

Immutable. Relative name of the cloud resource that contains the data that is being managed within a lake. For example: projects/project_number/buckets/ bucket_id projects/project_number/datasets/dataset_id Corresponds to the JSON property name

Returns:

  • (String)


658
659
660
# File 'lib/google/apis/dataplex_v1/classes.rb', line 658

def name
  @name
end

#read_access_modeString

Optional. Determines how read permissions are handled for each asset and their associated tables. Only available to storage buckets assets. Corresponds to the JSON property readAccessMode

Returns:

  • (String)


664
665
666
# File 'lib/google/apis/dataplex_v1/classes.rb', line 664

def read_access_mode
  @read_access_mode
end

#typeString

Required. Immutable. Type of resource. Corresponds to the JSON property type

Returns:

  • (String)


669
670
671
# File 'lib/google/apis/dataplex_v1/classes.rb', line 669

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



676
677
678
679
680
# File 'lib/google/apis/dataplex_v1/classes.rb', line 676

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @read_access_mode = args[:read_access_mode] if args.key?(:read_access_mode)
  @type = args[:type] if args.key?(:type)
end