Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1SchemaSchemaField

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 column field within a table schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1SchemaSchemaField

Returns a new instance of GoogleCloudDataplexV1SchemaSchemaField.



5969
5970
5971
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5969

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

Instance Attribute Details

#descriptionString

Optional. User friendly field description. Must be less than or equal to 1024 characters. Corresponds to the JSON property description

Returns:

  • (String)


5945
5946
5947
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5945

def description
  @description
end

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

Optional. Any nested field for complex types. Corresponds to the JSON property fields



5950
5951
5952
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5950

def fields
  @fields
end

#modeString

Required. Additional field semantics. Corresponds to the JSON property mode

Returns:

  • (String)


5955
5956
5957
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5955

def mode
  @mode
end

#nameString

Required. The name of the field. Must contain only letters, numbers and underscores, with a maximum length of 767 characters, and must begin with a letter or underscore. Corresponds to the JSON property name

Returns:

  • (String)


5962
5963
5964
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5962

def name
  @name
end

#typeString

Required. The type of field. Corresponds to the JSON property type

Returns:

  • (String)


5967
5968
5969
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5967

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5974
5975
5976
5977
5978
5979
5980
# File 'lib/google/apis/dataplex_v1/classes.rb', line 5974

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