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.
5970 5971 5972 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5970 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
5949 5950 5951 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5949 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
5954 5955 5956 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5954 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
5960 5961 5962 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5960 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
5968 5969 5970 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5968 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5975 5976 5977 5978 5979 5980 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5975 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 |