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 ( |
Fields | |
---|---|
name |
Identifier. The resource name of the data table Format: "{project}/locations/{region}/instances/{instance}/dataTables/{data_table}" |
display_ |
Output only. The unique display name of the data table. |
description |
Required. A user-provided description of the data table. |
create_ |
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: |
update_ |
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: |
column_ |
Immutable. Details of all the columns in the table |
data_ |
Output only. Data table unique id |
rules[] |
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_ |
Output only. The count of rules using the data table. |
row_ |
Optional. User-provided TTL of the data table. |
approximate_ |
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 |
Fields | |
---|---|
column_ |
Required. Column Index. 0,1,2... |
original_ |
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_ |
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
|
|
mapped_ |
Entity proto field path that the column is mapped to |
column_ |
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 a new data table. |
|
Delete data table. |
|
Get data table info. |
|
List data tables. |
|
Update data table. |
|
Create data table from a bulk file. |