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.
5983 5984 5985 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5983 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
5962 5963 5964 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5962 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
5967 5968 5969 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5967 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
5973 5974 5975 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5973 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
5981 5982 5983 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5981 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5988 5989 5990 5991 5992 5993 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5988 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 |