Class: Google::Apis::BigqueryV2::TableList::Table::View

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

Overview

Information about a logical view.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ View

Returns a new instance of View.



10332
10333
10334
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10332

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

Instance Attribute Details

#privacy_policyGoogle::Apis::BigqueryV2::PrivacyPolicy

Represents privacy policy that contains the privacy requirements specified by the data owner. Currently, this is only supported on views. Corresponds to the JSON property privacyPolicy



10324
10325
10326
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10324

def privacy_policy
  @privacy_policy
end

#use_legacy_sqlBoolean Also known as: use_legacy_sql?

True if view is defined in legacy SQL dialect, false if in GoogleSQL. Corresponds to the JSON property useLegacySql

Returns:

  • (Boolean)


10329
10330
10331
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10329

def use_legacy_sql
  @use_legacy_sql
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10337
10338
10339
10340
# File 'lib/google/apis/bigquery_v2/classes.rb', line 10337

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