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

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Categories

Returns a new instance of Categories



4903
4904
4905
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4903

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

Instance Attribute Details

#namesArray<String>

A list of category resource names. For example, "projects/1/taxonomies/2/ categories/3". At most 5 categories are allowed. Corresponds to the JSON property names

Returns:

  • (Array<String>)


4901
4902
4903
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4901

def names
  @names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4908
4909
4910
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4908

def update!(**args)
  @names = args[:names] if args.key?(:names)
end