Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1ActionIncompatibleDataSchema

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

Action details for incompatible schemas detected by discovery.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1ActionIncompatibleDataSchema

Returns a new instance of GoogleCloudDataplexV1ActionIncompatibleDataSchema.



218
219
220
# File 'lib/google/apis/dataplex_v1/classes.rb', line 218

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

Instance Attribute Details

#existing_schemaString

The existing and expected schema of the table. The schema is provided as a JSON formatted structure listing columns and data types. Corresponds to the JSON property existingSchema

Returns:

  • (String)


195
196
197
# File 'lib/google/apis/dataplex_v1/classes.rb', line 195

def existing_schema
  @existing_schema
end

#new_schemaString

The new and incompatible schema within the table. The schema is provided as a JSON formatted structured listing columns and data types. Corresponds to the JSON property newSchema

Returns:

  • (String)


201
202
203
# File 'lib/google/apis/dataplex_v1/classes.rb', line 201

def new_schema
  @new_schema
end

#sampled_data_locationsArray<String>

The list of data locations sampled and used for format/schema inference. Corresponds to the JSON property sampledDataLocations

Returns:

  • (Array<String>)


206
207
208
# File 'lib/google/apis/dataplex_v1/classes.rb', line 206

def sampled_data_locations
  @sampled_data_locations
end

#schema_changeString

Whether the action relates to a schema that is incompatible or modified. Corresponds to the JSON property schemaChange

Returns:

  • (String)


211
212
213
# File 'lib/google/apis/dataplex_v1/classes.rb', line 211

def schema_change
  @schema_change
end

#tableString

The name of the table containing invalid data. Corresponds to the JSON property table

Returns:

  • (String)


216
217
218
# File 'lib/google/apis/dataplex_v1/classes.rb', line 216

def table
  @table
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



223
224
225
226
227
228
229
# File 'lib/google/apis/dataplex_v1/classes.rb', line 223

def update!(**args)
  @existing_schema = args[:existing_schema] if args.key?(:existing_schema)
  @new_schema = args[:new_schema] if args.key?(:new_schema)
  @sampled_data_locations = args[:sampled_data_locations] if args.key?(:sampled_data_locations)
  @schema_change = args[:schema_change] if args.key?(:schema_change)
  @table = args[:table] if args.key?(:table)
end