Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1SchemaSchemaField
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1SchemaSchemaField
- 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
-
#description ⇒ String
Optional.
-
#fields ⇒ Array<Google::Apis::DataplexV1::GoogleCloudDataplexV1SchemaSchemaField>
Optional.
-
#mode ⇒ String
Required.
-
#name ⇒ String
Required.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1SchemaSchemaField
constructor
A new instance of GoogleCloudDataplexV1SchemaSchemaField.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDataplexV1SchemaSchemaField
Returns a new instance of GoogleCloudDataplexV1SchemaSchemaField.
6672 6673 6674 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6672 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. User friendly field description. Must be less than or equal to 1024
characters.
Corresponds to the JSON property description
6648 6649 6650 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6648 def description @description end |
#fields ⇒ Array<Google::Apis::DataplexV1::GoogleCloudDataplexV1SchemaSchemaField>
Optional. Any nested field for complex types.
Corresponds to the JSON property fields
6653 6654 6655 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6653 def fields @fields end |
#mode ⇒ String
Required. Additional field semantics.
Corresponds to the JSON property mode
6658 6659 6660 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6658 def mode @mode end |
#name ⇒ String
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
6665 6666 6667 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6665 def name @name end |
#type ⇒ String
Required. The type of field.
Corresponds to the JSON property type
6670 6671 6672 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6670 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6677 6678 6679 6680 6681 6682 6683 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 6677 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 |