- Resource: DataTable
- DataTableColumnInfo
- DataTableColumnType
- DataTableScopeInfo
- DataTableUpdateSource
- Methods
Resource: DataTable
DataTable represents the data table resource.
JSON representation |
---|
{ "name": string, "displayName": string, "description": string, "createTime": string, "updateTime": string, "columnInfo": [ { object ( |
Fields | |
---|---|
name |
Identifier. The resource name of the data table Format: "{project}/locations/{region}/instances/{instance}/dataTables/{dataTable}" |
displayName |
Output only. The unique display name of the data table. |
description |
Required. A user-provided description of the data table. |
createTime |
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: |
updateTime |
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: |
columnInfo[] |
Immutable. Details of all the columns in the table |
dataTableUuid |
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. |
ruleAssociationsCount |
Output only. The count of rules using the data table. |
rowTimeToLive |
Optional. User-provided TTL of the data table. |
approximateRowCount |
Output only. The count of rows in the data table. |
scopeInfo |
Optional. The scope info of the data table. During data table creation, if this field is not set, the data table without scopes (an unscoped table) will be created for a global user. For a scoped user, this field must be set. During data table update, if scopeInfo is requested to be updated, this field must be set. |
updateSource |
Output only. Source of the data table update. |
DataTableColumnInfo
DataTableColumnInfo represents the column metadata of the datatable. The columnIndex represents the ordering of the values in DataTableRow. NEXT TAG: 7
JSON representation |
---|
{ "columnIndex": integer, "originalColumn": string, "keyColumn": boolean, "repeatedValues": boolean, // Union field |
Fields | |
---|---|
columnIndex |
Required. Column Index. 0,1,2... |
originalColumn |
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. |
keyColumn |
Optional. Whether to include this column in the calculation of the row ID. If no columns have keyColumn = true, all columns will be included in the calculation of the row ID. |
repeatedValues |
Optional. Whether the column is a repeated values column. |
Union field
|
|
mappedColumnPath |
Entity proto field path that the column is mapped to |
columnType |
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: 5
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. |
NUMBER |
Denotes the type of the column as NUMBER (includes int and float). |
DataTableScopeInfo
DataTableScopeInfo specifies the scope info of the data table.
JSON representation |
---|
{ "dataAccessScopes": [ string ] } |
Fields | |
---|---|
dataAccessScopes[] |
Required. Contains the list of scope names of the data table. If the list is empty, the data table is treated as unscoped. The scope names should be full resource names and should be of the format: "projects/{project}/locations/{location}/instances/{instance}/dataAccessScopes/{scopeName}" |
DataTableUpdateSource
DataTableUpdateSource denotes the source that updated the data table. NEXT TAG: 4
Enums | |
---|---|
DATA_TABLE_UPDATE_SOURCE_UNSPECIFIED |
The data table is updated by the user. |
USER |
The data table is updated by the user. |
RULE |
The data table is updated by the rule. |
SEARCH |
The data table is updated by the search. |
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. |