Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1GraphProfileField

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

Represents a field in a node or edge type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1GraphProfileField

Returns a new instance of GoogleCloudDataplexV1GraphProfileField.



7547
7548
7549
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7547

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

Instance Attribute Details

#data_typeString

Output only. The data type of the field, e.g., STRING, INTEGER, DATE. Corresponds to the JSON property dataType

Returns:

  • (String)


7515
7516
7517
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7515

def data_type
  @data_type
end

#descriptionString

Output only. Description of the field. Corresponds to the JSON property description

Returns:

  • (String)


7520
7521
7522
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7520

def description
  @description
end

#extraction_hintsGoogle::Apis::DataplexV1::GoogleCloudDataplexV1GraphProfileFieldExtractionHints

Extraction hints (field-level). Corresponds to the JSON property extractionHints



7525
7526
7527
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7525

def extraction_hints
  @extraction_hints
end

#fieldsArray<Google::Apis::DataplexV1::GoogleCloudDataplexV1GraphProfileField>

Output only. Sub-fields of this field (for STRUCT types). Corresponds to the JSON property fields



7530
7531
7532
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7530

def fields
  @fields
end

#metadata_typeString

Output only. The mapped metadata type. Corresponds to the JSON property metadataType

Returns:

  • (String)


7535
7536
7537
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7535

def 
  @metadata_type
end

#modeString

Output only. The mode of the field. Corresponds to the JSON property mode

Returns:

  • (String)


7540
7541
7542
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7540

def mode
  @mode
end

#nameString

Output only. Name of the field. Corresponds to the JSON property name

Returns:

  • (String)


7545
7546
7547
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7545

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7552
7553
7554
7555
7556
7557
7558
7559
7560
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7552

def update!(**args)
  @data_type = args[:data_type] if args.key?(:data_type)
  @description = args[:description] if args.key?(:description)
  @extraction_hints = args[:extraction_hints] if args.key?(:extraction_hints)
  @fields = args[:fields] if args.key?(:fields)
  @metadata_type = args[:metadata_type] if args.key?(:metadata_type)
  @mode = args[:mode] if args.key?(:mode)
  @name = args[:name] if args.key?(:name)
end