REST Resource: projects.locations.lakes.content

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 data can be only one of the following:
  "dataText": string
  // End of list of possible types for union field data.

  // Union field content can be only one of the following:
  "sqlScript": {
    object (SqlScript)
  },
  "notebook": {
    object (Notebook)
  }
  // End of list of possible types for union field content.
}
Fields
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.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. The time when the content was last updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

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.

Union field 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.

Union field 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 (QueryEngine)
}
Fields
engine

enum (QueryEngine)

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 (KernelType)
}
Fields
kernelType

enum (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

Create a content.

delete

Delete a content.

get

Get a content resource.

getIamPolicy

Gets the access control policy for a contentitem resource.

list

List content.

patch

Update a content.

setIamPolicy

Sets the access control policy on the specified contentitem resource.

testIamPermissions

Returns the caller's permissions on a resource.