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.



1239
1240
1241
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1239

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)


1221
1222
1223
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1221

def mode
  @mode
end

#nameString

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

Returns:

  • (String)


1226
1227
1228
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1226

def name
  @name
end

#profileGoogle::Apis::DataplexV1::GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfo

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



1231
1232
1233
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1231

def profile
  @profile
end

#typeString

The field data type. Possible values include: STRING BYTE INT64 INT32 INT16 DOUBLE FLOAT DECIMAL BOOLEAN BINARY TIMESTAMP DATE TIME NULL RECORD Corresponds to the JSON property type

Returns:

  • (String)


1237
1238
1239
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1237

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1244
1245
1246
1247
1248
1249
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1244

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