blob: 23a5ba2e5a4424de61043575945e94cc9d5f674c [file] [log] [blame] [edit]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="dataplex_v1.html">Cloud Dataplex API</a> . <a href="dataplex_v1.projects.html">projects</a> . <a href="dataplex_v1.projects.locations.html">locations</a> . <a href="dataplex_v1.projects.locations.lakes.html">lakes</a> . <a href="dataplex_v1.projects.locations.lakes.contentitems.html">contentitems</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#create">create(parent, body=None, validateOnly=None, x__xgafv=None)</a></code></p>
<p class="firstline">Create a content.</p>
<p class="toc_element">
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
<p class="firstline">Delete a content.</p>
<p class="toc_element">
<code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
<p class="firstline">Get a content resource.</p>
<p class="toc_element">
<code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">List content.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#patch">patch(name, body=None, updateMask=None, validateOnly=None, x__xgafv=None)</a></code></p>
<p class="firstline">Update a content. Only supports full resource update.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="create">create(parent, body=None, validateOnly=None, x__xgafv=None)</code>
<pre>Create a content.
Args:
parent: string, Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id} (required)
body: object, The request body.
The object takes the form of:
{ # Content represents a user-visible notebook or a sql script
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Content creation time.
&quot;dataText&quot;: &quot;A String&quot;, # Required. Content data in string format.
&quot;description&quot;: &quot;A String&quot;, # Optional. Description of the content.
&quot;labels&quot;: { # Optional. User defined labels for the content.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;name&quot;: &quot;A String&quot;, # Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
&quot;notebook&quot;: { # Configuration for Notebook content. # Notebook related configurations.
&quot;kernelType&quot;: &quot;A String&quot;, # Required. Kernel Type of the notebook.
},
&quot;path&quot;: &quot;A String&quot;, # Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
&quot;sqlScript&quot;: { # Configuration for the Sql Script content. # Sql Script related configurations.
&quot;engine&quot;: &quot;A String&quot;, # Required. Query Engine to be used for the Sql Query.
},
&quot;uid&quot;: &quot;A String&quot;, # 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.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the content was last updated.
}
validateOnly: boolean, Optional. Only validate the request, but do not perform mutations. The default is false.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Content represents a user-visible notebook or a sql script
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Content creation time.
&quot;dataText&quot;: &quot;A String&quot;, # Required. Content data in string format.
&quot;description&quot;: &quot;A String&quot;, # Optional. Description of the content.
&quot;labels&quot;: { # Optional. User defined labels for the content.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;name&quot;: &quot;A String&quot;, # Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
&quot;notebook&quot;: { # Configuration for Notebook content. # Notebook related configurations.
&quot;kernelType&quot;: &quot;A String&quot;, # Required. Kernel Type of the notebook.
},
&quot;path&quot;: &quot;A String&quot;, # Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
&quot;sqlScript&quot;: { # Configuration for the Sql Script content. # Sql Script related configurations.
&quot;engine&quot;: &quot;A String&quot;, # Required. Query Engine to be used for the Sql Query.
},
&quot;uid&quot;: &quot;A String&quot;, # 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.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the content was last updated.
}</pre>
</div>
<div class="method">
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
<pre>Delete a content.
Args:
name: string, Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty is empty JSON object {}.
}</pre>
</div>
<div class="method">
<code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
<pre>Get a content resource.
Args:
name: string, Required. The resource name of the content: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} (required)
view: string, Optional. Specify content view to make a partial request.
Allowed values
CONTENT_VIEW_UNSPECIFIED - Content view not specified. Defaults to BASIC. The API will default to the BASIC view.
BASIC - Will not return the data_text field.
FULL - Returns the complete proto.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Content represents a user-visible notebook or a sql script
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Content creation time.
&quot;dataText&quot;: &quot;A String&quot;, # Required. Content data in string format.
&quot;description&quot;: &quot;A String&quot;, # Optional. Description of the content.
&quot;labels&quot;: { # Optional. User defined labels for the content.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;name&quot;: &quot;A String&quot;, # Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
&quot;notebook&quot;: { # Configuration for Notebook content. # Notebook related configurations.
&quot;kernelType&quot;: &quot;A String&quot;, # Required. Kernel Type of the notebook.
},
&quot;path&quot;: &quot;A String&quot;, # Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
&quot;sqlScript&quot;: { # Configuration for the Sql Script content. # Sql Script related configurations.
&quot;engine&quot;: &quot;A String&quot;, # Required. Query Engine to be used for the Sql Query.
},
&quot;uid&quot;: &quot;A String&quot;, # 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.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the content was last updated.
}</pre>
</div>
<div class="method">
<code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
<pre>List content.
Args:
parent: string, Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id} (required)
filter: string, Optional. Filter request. Filters are case-sensitive. The following formats are supported:labels.key1 = &quot;value1&quot; labels:key1 type = &quot;NOTEBOOK&quot; type = &quot;SQL_SCRIPT&quot;These restrictions can be coinjoined with AND, OR and NOT conjunctions.
pageSize: integer, Optional. Maximum number of content to return. The service may return fewer than this value. If unspecified, at most 10 content will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
pageToken: string, Optional. Page token received from a previous ListContent call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListContent must match the call that provided the page token.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # List content response.
&quot;content&quot;: [ # Content under the given parent lake.
{ # Content represents a user-visible notebook or a sql script
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Content creation time.
&quot;dataText&quot;: &quot;A String&quot;, # Required. Content data in string format.
&quot;description&quot;: &quot;A String&quot;, # Optional. Description of the content.
&quot;labels&quot;: { # Optional. User defined labels for the content.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;name&quot;: &quot;A String&quot;, # Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
&quot;notebook&quot;: { # Configuration for Notebook content. # Notebook related configurations.
&quot;kernelType&quot;: &quot;A String&quot;, # Required. Kernel Type of the notebook.
},
&quot;path&quot;: &quot;A String&quot;, # Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
&quot;sqlScript&quot;: { # Configuration for the Sql Script content. # Sql Script related configurations.
&quot;engine&quot;: &quot;A String&quot;, # Required. Query Engine to be used for the Sql Query.
},
&quot;uid&quot;: &quot;A String&quot;, # 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.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the content was last updated.
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
}</pre>
</div>
<div class="method">
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
<pre>Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>
<div class="method">
<code class="details" id="patch">patch(name, body=None, updateMask=None, validateOnly=None, x__xgafv=None)</code>
<pre>Update a content. Only supports full resource update.
Args:
name: string, Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} (required)
body: object, The request body.
The object takes the form of:
{ # Content represents a user-visible notebook or a sql script
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Content creation time.
&quot;dataText&quot;: &quot;A String&quot;, # Required. Content data in string format.
&quot;description&quot;: &quot;A String&quot;, # Optional. Description of the content.
&quot;labels&quot;: { # Optional. User defined labels for the content.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;name&quot;: &quot;A String&quot;, # Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
&quot;notebook&quot;: { # Configuration for Notebook content. # Notebook related configurations.
&quot;kernelType&quot;: &quot;A String&quot;, # Required. Kernel Type of the notebook.
},
&quot;path&quot;: &quot;A String&quot;, # Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
&quot;sqlScript&quot;: { # Configuration for the Sql Script content. # Sql Script related configurations.
&quot;engine&quot;: &quot;A String&quot;, # Required. Query Engine to be used for the Sql Query.
},
&quot;uid&quot;: &quot;A String&quot;, # 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.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the content was last updated.
}
updateMask: string, Required. Mask of fields to update.
validateOnly: boolean, Optional. Only validate the request, but do not perform mutations. The default is false.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Content represents a user-visible notebook or a sql script
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Content creation time.
&quot;dataText&quot;: &quot;A String&quot;, # Required. Content data in string format.
&quot;description&quot;: &quot;A String&quot;, # Optional. Description of the content.
&quot;labels&quot;: { # Optional. User defined labels for the content.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;name&quot;: &quot;A String&quot;, # Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}
&quot;notebook&quot;: { # Configuration for Notebook content. # Notebook related configurations.
&quot;kernelType&quot;: &quot;A String&quot;, # Required. Kernel Type of the notebook.
},
&quot;path&quot;: &quot;A String&quot;, # Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes.
&quot;sqlScript&quot;: { # Configuration for the Sql Script content. # Sql Script related configurations.
&quot;engine&quot;: &quot;A String&quot;, # Required. Query Engine to be used for the Sql Query.
},
&quot;uid&quot;: &quot;A String&quot;, # 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.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the content was last updated.
}</pre>
</div>
</body></html>