Resource: Content
Content represents a user-visible notebook or a sql script
JSON representation |
---|
{ "name" : string , "uid" : string , "path" : string , "createTime" : string , "updateTime" : string , "labels" : { string : string , ... } , "description" : string , // Union field |
name
string
Output only. The relative resource name of the content, of the form: projects/{projectId}/locations/{locationId}/lakes/{lakeId}/content/{content_id}
uid
string
Output only. System generated globally unique ID for the content. This ID will be different if the content is deleted and re-created with the same name.
path
string
Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
createTime
string (
Timestamp
format)
Output only. Content creation 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"
.
updateTime
string (
Timestamp
format)
Output only. The time when the content was last updated.
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"
.
labels
map (key: string, value: string)
Optional. User defined labels for the content.
An object containing a list of "key": value
pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }
.
description
string
Optional. Description of the content.
data
. Only returned in GetContent
requests and not in ListContent
request. data
can be only one of the following:dataText
string
Required. Content data in string format.
content
. Types of content content
can be only one of the following:sqlScript
object (
SqlScript
)
Sql Script related configurations.
notebook
object (
Notebook
)
Notebook related configurations.
SqlScript
Configuration for the Sql Script content.
JSON representation |
---|
{
"engine"
:
enum (
|
Fields | |
---|---|
engine
|
Required. Query Engine to be used for the Sql Query. |
QueryEngine
Query Engine Type of the SQL Script.
Enums | |
---|---|
QUERY_ENGINE_UNSPECIFIED
|
Value was unspecified. |
SPARK
|
Spark SQL Query. |
Notebook
Configuration for Notebook content.
JSON representation |
---|
{
"kernelType"
:
enum (
|
Fields | |
---|---|
kernelType
|
Required. Kernel Type of the notebook. |
KernelType
Kernel Type of the Jupyter notebook.
Enums | |
---|---|
KERNEL_TYPE_UNSPECIFIED
|
Kernel Type unspecified. |
PYTHON3
|
Python 3 Kernel. |
Methods |
|
---|---|
|
Create a content. |
|
Delete a content. |
|
Get a content resource. |
|
Gets the access control policy for a contentitem resource. |
|
List content. |
|
Update a content. |
|
Sets the access control policy on the specified contentitem resource. |
|
Returns the caller's permissions on a resource. |