본문으로 건너뛰기

ViewUpdate

Partial update for a view. name must match the current name; changing tables or joins also requires owner permission on every backing resource in the new table set.

name object
하나 이상(anyOf)
string
alias object
하나 이상(anyOf)
string
type object
하나 이상(anyOf)
string

Possible values: [view, materialized]

collection_id object
하나 이상(anyOf)
string

Possible values: non-empty

folder_id object
하나 이상(anyOf)
string
tags object
하나 이상(anyOf)
  • Array [
  • string
  • ]
  • description object
    하나 이상(anyOf)
    string
    tables object
    하나 이상(anyOf)
  • Array [
  • aliasAlias (string)필수

    SQL alias used in column references

    typeType (string)필수

    Backing resource category

    Possible values: [dataset, source]

    resourceResource (string)필수

    Identifier of the dataset or source used by this view table.

  • ]
  • joins object
    하나 이상(anyOf)
  • Array [
  • targetTarget (string)필수

    alias of the ViewTable this join introduces

    kindJoinKind (string)

    Allowed Join Kind values. Values: inner, left, right, full.

    Possible values: [inner, left, right, full]

    기본값: inner
    on object[]필수

    AND'd binary conditions

  • Array [
  • left object필수

    Join condition operand. Exactly one of column / expression set.

    column object

    Backing column reference in 'alias.col' form

    하나 이상(anyOf)
    string
    expression object

    SQL fragment when the operand is a computed expression

    하나 이상(anyOf)
    string
    right object필수

    Join condition operand. Exactly one of column / expression set.

    column object

    Backing column reference in 'alias.col' form

    하나 이상(anyOf)
    string
    expression object

    SQL fragment when the operand is a computed expression

    하나 이상(anyOf)
    string
    operatorJoinOperator (string)

    Allowed Join Operator values. Values: eq, ne, gt, gte, lt, lte.

    Possible values: [eq, ne, gt, gte, lt, lte]

    기본값: eq
  • ]
  • ]
  • schema object
    하나 이상(anyOf)
    object
    column_masks object
    하나 이상(anyOf)
    object
    row_filters object
    하나 이상(anyOf)
    kindKind (string)

    Possible values: [and, or]

    기본값: and
    conditions object[]

    Nested conditions (leaf RowFilterCondition or group RowFilter)

  • Array [
  • 하나 이상(anyOf)
    kindKind (string)
    상수 값: condition
    기본값: condition
    columnColumn (string)필수

    Column name to filter on

    operatorRowFilterOperator (string)필수

    Allowed Row Filter Operator values. Values: eq, ne, gt, gte, lt, lte, in, not_in, and 4 more.

    Possible values: [eq, ne, gt, gte, lt, lte, in, not_in, between, like, is_null, is_not_null]

    value object

    Filter value. Single value for scalar operators, list for 'in'/'not_in', 2-element list for 'between'. Omit for 'is_null'/'is_not_null'.

    하나 이상(anyOf)
  • ]
  • group_by object
    하나 이상(anyOf)
  • Array [
  • string
  • ]
  • having object
    하나 이상(anyOf)
    kindKind (string)

    Possible values: [and, or]

    기본값: and
    conditions object[]

    Nested conditions (leaf RowFilterCondition or group RowFilter)

  • Array [
  • 하나 이상(anyOf)
    kindKind (string)
    상수 값: condition
    기본값: condition
    columnColumn (string)필수

    Column name to filter on

    operatorRowFilterOperator (string)필수

    Allowed Row Filter Operator values. Values: eq, ne, gt, gte, lt, lte, in, not_in, and 4 more.

    Possible values: [eq, ne, gt, gte, lt, lte, in, not_in, between, like, is_null, is_not_null]

    value object

    Filter value. Single value for scalar operators, list for 'in'/'not_in', 2-element list for 'between'. Omit for 'is_null'/'is_not_null'.

    하나 이상(anyOf)
  • ]
  • order_by object
    하나 이상(anyOf)
  • Array [
  • string
  • ]
  • partition_by object
    하나 이상(anyOf)
  • Array [
  • string
  • ]
  • options object
    하나 이상(anyOf)
    object
    ViewUpdate
    {
    "name": "string",
    "alias": "string",
    "type": "view",
    "collection_id": "string",
    "folder_id": "string",
    "tags": [
    "string"
    ],
    "description": "string",
    "tables": [
    {
    "alias": "string",
    "type": "dataset",
    "resource": "string"
    }
    ],
    "joins": [
    {
    "target": "string",
    "kind": "inner",
    "on": [
    {
    "left": {
    "column": "string",
    "expression": "string"
    },
    "right": {
    "column": "string",
    "expression": "string"
    },
    "operator": "eq"
    }
    ]
    }
    ],
    "schema": {},
    "column_masks": {},
    "row_filters": {
    "kind": "and",
    "conditions": [
    {
    "kind": "condition",
    "column": "string",
    "operator": "eq"
    },
    null
    ]
    },
    "group_by": [
    "string"
    ],
    "having": {
    "kind": "and",
    "conditions": [
    {
    "kind": "condition",
    "column": "string",
    "operator": "eq"
    },
    null
    ]
    },
    "order_by": [
    "string"
    ],
    "partition_by": [
    "string"
    ],
    "options": {}
    }