View Source GoogleApi.BigQuery.V2.Model.ViewDefinition (google_api_big_query v0.79.0)

Describes the definition of a logical view.

Attributes

  • privacyPolicy (type: GoogleApi.BigQuery.V2.Model.PrivacyPolicy.t, default: nil) - Optional. Specifices the privacy policy for the view.
  • query (type: String.t, default: nil) - Required. A query that BigQuery executes when the view is referenced.
  • useExplicitColumnNames (type: boolean(), default: nil) - True if the column names are explicitly specified. For example by using the 'CREATE VIEW v(c1, c2) AS ...' syntax. Can only be set for GoogleSQL views.
  • useLegacySql (type: boolean(), default: nil) - Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery's GoogleSQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value. A wrapper is used here because the default value is True.
  • userDefinedFunctionResources (type: list(GoogleApi.BigQuery.V2.Model.UserDefinedFunctionResource.t), default: nil) - Describes user-defined function resources used in the query.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.BigQuery.V2.Model.ViewDefinition{
  privacyPolicy: GoogleApi.BigQuery.V2.Model.PrivacyPolicy.t() | nil,
  query: String.t() | nil,
  useExplicitColumnNames: boolean() | nil,
  useLegacySql: boolean() | nil,
  userDefinedFunctionResources:
    [GoogleApi.BigQuery.V2.Model.UserDefinedFunctionResource.t()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.