REST Resource: projects.locations.instances.dataTables

Resource: DataTable

DataTable represents the data table resource.

JSON representation
{
  "name": string,
  "display_name": string,
  "description": string,
  "create_time": string,
  "update_time": string,
  "column_info": [
    {
      object (DataTableColumnInfo)
    }
  ],
  "data_table_uuid": string,
  "rules": [
    string
  ],
  "rule_associations_count": integer,
  "row_time_to_live": string,
  "approximate_row_count": string
}
Fields
name

string

Identifier. The resource name of the data table Format: "{project}/locations/{region}/instances/{instance}/dataTables/{data_table}"

display_name

string

Output only. The unique display name of the data table.

description

string

Required. A user-provided description of the data table.

create_time

string (Timestamp format)

Output only. Table create time

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted.Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

update_time

string (Timestamp format)

Output only. Table update time

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted.Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

column_info[]

object (DataTableColumnInfo)

Immutable. Details of all the columns in the table

data_table_uuid

string

Output only. Data table unique id

rules[]

string

Output only. The resource names for the associated Rules that use this data table. Format: projects/{project}/locations/{location}/instances/{instance}/rules/{rule}. {rule} here refers to the rule id.

rule_associations_count

integer

Output only. The count of rules using the data table.

row_time_to_live

string

Optional. User-provided TTL of the data table.

approximate_row_count

string (int64 format)

Output only. The count of rows in the data table.

DataTableColumnInfo

DataTableColumnInfo represents the column metadata of the datatable. The column_index represents the ordering of the values in DataTableRow. NEXT TAG: 6

JSON representation
{
  "column_index": integer,
  "original_column": string,
  "key_column": boolean,

  // Union field path_or_type can be only one of the following:
  "mapped_column_path": string,
  "column_type": enum (DataTableColumnType)
  // End of list of possible types for union field path_or_type.
}
Fields
column_index

integer

Required. Column Index. 0,1,2...

original_column

string

Required. Original column name of the Data Table (present in the CSV header in case of creation of data tables using file uploads). It must satisfy the following requirements: - Starts with letter. - Contains only letters, numbers and underscore. - Must be unique and has length < 256.

key_column

boolean

Optional. Whether to include this column in the calculation of the row ID. If no columns have key_column = true, all columns will be included in the calculation of the row ID.

Union field path_or_type.

path_or_type can be only one of the following:

mapped_column_path

string

Entity proto field path that the column is mapped to

column_type

enum (DataTableColumnType)

Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX

DataTableColumnType

DataTableColumnType denotes the type of the column to be referenced in the rule. NEXT TAG: 4

Enums
DATA_TABLE_COLUMN_TYPE_UNSPECIFIED The default Data Table Column Type.
STRING Denotes the type of the column as STRING.
REGEX Denotes the type of the column as REGEX.
CIDR Denotes the type of the column as CIDR.

Methods

create

Create a new data table.

delete

Delete data table.

get

Get data table info.

list

List data tables.

patch

Update data table.

upload

Create data table from a bulk file.