Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataProfileResultProfileField

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

A field within a table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1DataProfileResultProfileField

Returns a new instance of GoogleCloudDataplexV1DataProfileResultProfileField.



2107
2108
2109
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2107

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

Instance Attribute Details

#modeString

The mode of the field. Possible values include: REQUIRED, if it is a required field. NULLABLE, if it is an optional field. REPEATED, if it is a repeated field. Corresponds to the JSON property mode

Returns:

  • (String)


2086
2087
2088
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2086

def mode
  @mode
end

#nameString

The name of the field. Corresponds to the JSON property name

Returns:

  • (String)


2091
2092
2093
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2091

def name
  @name
end

#profileGoogle::Apis::DataplexV1::GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo

The profile information for each field type. Corresponds to the JSON property profile



2096
2097
2098
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2096

def profile
  @profile
end

#typeString

The data type retrieved from the schema of the data source. For instance, for a BigQuery native table, it is the BigQuery Table Schema (https://cloud.google. com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). For a Dataplex Entity, it is the Entity Schema (https://cloud.google.com/dataplex/docs/ reference/rpc/google.cloud.dataplex.v1#type_3). Corresponds to the JSON property type

Returns:

  • (String)


2105
2106
2107
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2105

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2112
2113
2114
2115
2116
2117
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2112

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