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.



5917
5918
5919
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5917

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)


5896
5897
5898
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5896

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



5901
5902
5903
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5901

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)


5907
5908
5909
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5907

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)


5915
5916
5917
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5915

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5922
5923
5924
5925
5926
5927
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5922

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