Class: Google::Apis::CloudassetV1::TableFieldSchema

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TableFieldSchema

Returns a new instance of TableFieldSchema.



5624
5625
5626
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5624

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fieldString

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

Returns:

  • (String)


5603
5604
5605
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5603

def field
  @field
end

#fieldsArray<Google::Apis::CloudassetV1::TableFieldSchema>

Describes the nested schema fields if the type property is set to RECORD. Corresponds to the JSON property fields



5608
5609
5610
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5608

def fields
  @fields
end

#modeString

The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE. Corresponds to the JSON property mode

Returns:

  • (String)


5614
5615
5616
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5614

def mode
  @mode
end

#typeString

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

Returns:

  • (String)


5622
5623
5624
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5622

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5629
5630
5631
5632
5633
5634
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5629

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