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.
2320 2321 2322 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2320 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
2297 2298 2299 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2297 def description @description end |
#fields ⇒ Array<Google::Apis::DataplexV1::GoogleCloudDataplexV1SchemaSchemaField>
Optional. Any nested field for complex types.
Corresponds to the JSON property fields
2302 2303 2304 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2302 def fields @fields end |
#mode ⇒ String
Required. Additional field semantics.
Corresponds to the JSON property mode
2307 2308 2309 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2307 def mode @mode end |
#name ⇒ String
Required. The name of the field. The maximum length is 767 characters. The
name must begins with a letter and not contains : and ..
Corresponds to the JSON property name
2313 2314 2315 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2313 def name @name end |
#type ⇒ String
Required. The type of field.
Corresponds to the JSON property type
2318 2319 2320 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2318 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2325 2326 2327 2328 2329 2330 2331 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 2325 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 |