Google Cloud Ai Platform V1 Client - Class NotebookExecutionJob (1.19.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class NotebookExecutionJob.

NotebookExecutionJob represents an instance of a notebook execution.

Generated from protobuf message google.cloud.aiplatform.v1.NotebookExecutionJob

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ dataform_repository_source
NotebookExecutionJob\DataformRepositorySource

The Dataform Repository pointing to a single file notebook repository.

↳ gcs_notebook_source
NotebookExecutionJob\GcsNotebookSource

The Cloud Storage url pointing to the ipynb file. Format: gs://bucket/notebook_file.ipynb

↳ direct_notebook_source
NotebookExecutionJob\DirectNotebookSource

The contents of an input notebook file.

↳ notebook_runtime_template_resource_name
string

The NotebookRuntimeTemplate to source compute configuration from.

↳ custom_environment_spec
NotebookExecutionJob\CustomEnvironmentSpec

The custom compute configuration for an execution job.

↳ gcs_output_uri
string

The Cloud Storage location to upload the result to. Format: gs://bucket-name

↳ execution_user
string

The user email to run the execution as. Only supported by Colab runtimes.

↳ service_account
string

The service account to run the execution as.

↳ workbench_runtime
NotebookExecutionJob\WorkbenchRuntime

The Workbench runtime configuration to use for the notebook execution.

↳ name
string

Output only. The resource name of this NotebookExecutionJob. Format: projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}

↳ display_name
string

The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.

↳ execution_timeout
Google\Protobuf\Duration

Max running time of the execution job in seconds (default 86400s / 24 hrs).

↳ schedule_resource_name
string

Output only. The Schedule resource name if this job is triggered by one. Format: projects/{project_id}/locations/{location}/schedules/{schedule_id}

↳ job_state
int

Output only. The state of the NotebookExecutionJob.

↳ status
Google\Rpc\Status

Output only. Populated when the NotebookExecutionJob is completed. When there is an error during notebook execution, the error details are populated.

↳ create_time
Google\Protobuf\Timestamp

Output only. Timestamp when this NotebookExecutionJob was created.

↳ update_time
Google\Protobuf\Timestamp

Output only. Timestamp when this NotebookExecutionJob was most recently updated.

↳ labels
array| Google\Protobuf\Internal\MapField

The labels with user-defined metadata to organize NotebookExecutionJobs. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.

↳ kernel_name
string

The name of the kernel to use during notebook execution. If unset, the default kernel is used.

↳ encryption_spec
EncryptionSpec

Customer-managed encryption key spec for the notebook execution job. This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec.

getDataformRepositorySource

The Dataform Repository pointing to a single file notebook repository.

Returns
Type
Description

hasDataformRepositorySource

setDataformRepositorySource

The Dataform Repository pointing to a single file notebook repository.

Parameter
Name
Description
Returns
Type
Description
$this

getGcsNotebookSource

The Cloud Storage url pointing to the ipynb file. Format: gs://bucket/notebook_file.ipynb

Returns
Type
Description

hasGcsNotebookSource

setGcsNotebookSource

The Cloud Storage url pointing to the ipynb file. Format: gs://bucket/notebook_file.ipynb

Parameter
Name
Description
Returns
Type
Description
$this

getDirectNotebookSource

The contents of an input notebook file.

Returns
Type
Description

hasDirectNotebookSource

setDirectNotebookSource

The contents of an input notebook file.

Parameter
Name
Description
Returns
Type
Description
$this

getNotebookRuntimeTemplateResourceName

The NotebookRuntimeTemplate to source compute configuration from.

Returns
Type
Description
string

hasNotebookRuntimeTemplateResourceName

setNotebookRuntimeTemplateResourceName

The NotebookRuntimeTemplate to source compute configuration from.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCustomEnvironmentSpec

The custom compute configuration for an execution job.

Returns
Type
Description

hasCustomEnvironmentSpec

setCustomEnvironmentSpec

The custom compute configuration for an execution job.

Parameter
Name
Description
Returns
Type
Description
$this

getGcsOutputUri

The Cloud Storage location to upload the result to. Format: gs://bucket-name

Returns
Type
Description
string

hasGcsOutputUri

setGcsOutputUri

The Cloud Storage location to upload the result to. Format: gs://bucket-name

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getExecutionUser

The user email to run the execution as. Only supported by Colab runtimes.

Returns
Type
Description
string

hasExecutionUser

setExecutionUser

The user email to run the execution as. Only supported by Colab runtimes.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getServiceAccount

The service account to run the execution as.

Returns
Type
Description
string

hasServiceAccount

setServiceAccount

The service account to run the execution as.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getWorkbenchRuntime

The Workbench runtime configuration to use for the notebook execution.

Returns
Type
Description

hasWorkbenchRuntime

setWorkbenchRuntime

The Workbench runtime configuration to use for the notebook execution.

Parameter
Name
Description
Returns
Type
Description
$this

getName

Output only. The resource name of this NotebookExecutionJob. Format: projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}

Returns
Type
Description
string

setName

Output only. The resource name of this NotebookExecutionJob. Format: projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDisplayName

The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.

Returns
Type
Description
string

setDisplayName

The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getExecutionTimeout

Max running time of the execution job in seconds (default 86400s / 24 hrs).

Returns
Type
Description

hasExecutionTimeout

clearExecutionTimeout

setExecutionTimeout

Max running time of the execution job in seconds (default 86400s / 24 hrs).

Parameter
Name
Description
Returns
Type
Description
$this

getScheduleResourceName

Output only. The Schedule resource name if this job is triggered by one.

Format: projects/{project_id}/locations/{location}/schedules/{schedule_id}

Returns
Type
Description
string

setScheduleResourceName

Output only. The Schedule resource name if this job is triggered by one.

Format: projects/{project_id}/locations/{location}/schedules/{schedule_id}

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getJobState

Output only. The state of the NotebookExecutionJob.

Returns
Type
Description
int

setJobState

Output only. The state of the NotebookExecutionJob.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getStatus

Output only. Populated when the NotebookExecutionJob is completed. When there is an error during notebook execution, the error details are populated.

Returns
Type
Description

hasStatus

clearStatus

setStatus

Output only. Populated when the NotebookExecutionJob is completed. When there is an error during notebook execution, the error details are populated.

Parameter
Name
Description
Returns
Type
Description
$this

getCreateTime

Output only. Timestamp when this NotebookExecutionJob was created.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. Timestamp when this NotebookExecutionJob was created.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

Output only. Timestamp when this NotebookExecutionJob was most recently updated.

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Timestamp when this NotebookExecutionJob was most recently updated.

Parameter
Name
Description
Returns
Type
Description
$this

getLabels

The labels with user-defined metadata to organize NotebookExecutionJobs.

Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.

Returns
Type
Description

setLabels

The labels with user-defined metadata to organize NotebookExecutionJobs.

Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.

Parameter
Name
Description
Returns
Type
Description
$this

getKernelName

The name of the kernel to use during notebook execution. If unset, the default kernel is used.

Returns
Type
Description
string

setKernelName

The name of the kernel to use during notebook execution. If unset, the default kernel is used.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getEncryptionSpec

Customer-managed encryption key spec for the notebook execution job.

This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec.

Returns
Type
Description

hasEncryptionSpec

clearEncryptionSpec

setEncryptionSpec

Customer-managed encryption key spec for the notebook execution job.

This field is auto-populated if the NotebookRuntimeTemplate has an encryption spec.

Parameter
Name
Description
Returns
Type
Description
$this

getNotebookSource

Returns
Type
Description
string

getEnvironmentSpec

Returns
Type
Description
string

getExecutionSink

Returns
Type
Description
string

getExecutionIdentity

Returns
Type
Description
string

getRuntimeEnvironment

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: