Class: Google::Apis::CloudassetV1::TableFieldSchema
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::TableFieldSchema
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb
Overview
A field in TableSchema.
Instance Attribute Summary collapse
-
#field ⇒ String
The field name.
-
#fields ⇒ Array<Google::Apis::CloudassetV1::TableFieldSchema>
Describes the nested schema fields if the type property is set to RECORD.
-
#mode ⇒ String
The field mode.
-
#type ⇒ String
The field data type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TableFieldSchema
constructor
A new instance of TableFieldSchema.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TableFieldSchema
Returns a new instance of TableFieldSchema.
5627 5628 5629 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5627 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field ⇒ String
The field name. The name must contain only letters (a-z, A-Z), numbers (0-9),
or underscores (_), and must start with a letter or underscore. The maximum
length is 128 characters.
Corresponds to the JSON property field
5606 5607 5608 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5606 def field @field end |
#fields ⇒ Array<Google::Apis::CloudassetV1::TableFieldSchema>
Describes the nested schema fields if the type property is set to RECORD.
Corresponds to the JSON property fields
5611 5612 5613 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5611 def fields @fields end |
#mode ⇒ String
The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The
default value is NULLABLE.
Corresponds to the JSON property mode
5617 5618 5619 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5617 def mode @mode end |
#type ⇒ String
The field data type. Possible values include * STRING * BYTES * INTEGER *
FLOAT * BOOLEAN * TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY, * NUMERIC, *
BIGNUMERIC, * RECORD (where RECORD indicates that the field contains a nested
schema).
Corresponds to the JSON property type
5625 5626 5627 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5625 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5632 5633 5634 5635 5636 5637 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5632 def update!(**args) @field = args[:field] if args.key?(:field) @fields = args[:fields] if args.key?(:fields) @mode = args[:mode] if args.key?(:mode) @type = args[:type] if args.key?(:type) end |