Class: Google::Apis::BigqueryV2::TableFieldSchema

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb

Defined Under Namespace

Classes: Categories, PolicyTags

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TableFieldSchema

Returns a new instance of TableFieldSchema.



6421
6422
6423
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6421

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

Instance Attribute Details

#categoriesGoogle::Apis::BigqueryV2::TableFieldSchema::Categories

[Optional] The categories attached to this field, used for field-level access control. Corresponds to the JSON property categories



6381
6382
6383
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6381

def categories
  @categories
end

#descriptionString

[Optional] The field description. The maximum length is 1,024 characters. Corresponds to the JSON property description

Returns:

  • (String)


6386
6387
6388
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6386

def description
  @description
end

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

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



6392
6393
6394
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6392

def fields
  @fields
end

#modeString

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

Returns:

  • (String)


6398
6399
6400
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6398

def mode
  @mode
end

#nameString

[Required] 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 name

Returns:

  • (String)


6405
6406
6407
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6405

def name
  @name
end

#policy_tagsGoogle::Apis::BigqueryV2::TableFieldSchema::PolicyTags

Corresponds to the JSON property policyTags



6410
6411
6412
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6410

def policy_tags
  @policy_tags
end

#typeString

[Required] The field data type. Possible values include STRING, BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), NUMERIC, BIGNUMERIC, BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD ( where RECORD indicates that the field contains a nested schema) or STRUCT ( same as RECORD). Corresponds to the JSON property type

Returns:

  • (String)


6419
6420
6421
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6419

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6426
6427
6428
6429
6430
6431
6432
6433
6434
# File 'lib/google/apis/bigquery_v2/classes.rb', line 6426

def update!(**args)
  @categories = args[:categories] if args.key?(:categories)
  @description = args[:description] if args.key?(:description)
  @fields = args[:fields] if args.key?(:fields)
  @mode = args[:mode] if args.key?(:mode)
  @name = args[:name] if args.key?(:name)
  @policy_tags = args[:policy_tags] if args.key?(:policy_tags)
  @type = args[:type] if args.key?(:type)
end